int ret = MEDIA_VISION_ERROR_NONE;
if (roi) {
- int src_w = 0;
- int src_h = 0;
+ unsigned int src_w = 0;
+ unsigned int src_h = 0;
ret = mv_source_get_width(source, &src_w);
if (ret != MEDIA_VISION_ERROR_NONE) {
int ret = MEDIA_VISION_ERROR_NONE;
if (roi) {
- int src_w = 0;
- int src_h = 0;
+ unsigned int src_w = 0;
+ unsigned int src_h = 0;
ret = mv_source_get_width(source, &src_w);
if (ret != MEDIA_VISION_ERROR_NONE) {
#include "mv_private.h"
#include <stdio.h>
+#include <stdlib.h>
int mv_get_mask_buffer(
unsigned int buffer_width,
* limitations under the License.
*/
+#include <stdlib.h>
#include "mv_surveillance.h"
#include "mv_surveillance_private.h"
#include <string.h>
#include <stdio.h>
+#include <stdlib.h>
void print_fail_result(
const char *action_name,
case MV_FACE_UNKNOWN:
printf("Face expression isn't recognized");
break;
+ default:
+ printf("Face expression number %u called", facial_expression);
}
}
if (track_target_file_name == NULL)
return MEDIA_VISION_ERROR_INVALID_PARAMETER;
- image_data_s image_info;
-
int frame_idx;
int err = MEDIA_VISION_ERROR_NONE;
int frames_counter = 0;
int sel_opt = 0;
const int options[] = { 1, 2, 3, 4, 5 };
- const *names[] = { "Configuration",
+ const char *names[] = { "Configuration",
"TFLITE(CPU) + CPM",
"Prepare",
"Run",
if (err != MEDIA_VISION_ERROR_NONE) {
int err2 = mv_destroy_source(mvSource);
if (err2 != MEDIA_VISION_ERROR_NONE)
- printf("Fail to destroy mvSource.\n", err2);
+ printf("Fail to destroy mvSource err: %d.\n", err2);
mvSource = NULL;
free(in_file_name);
break;
int do_another = 0;
if (err != MEDIA_VISION_ERROR_NONE) {
- printf("ERROR: Action is finished with error code: %i\n");
+ printf("ERROR: Action is finished with error code: %i\n", err);
}
sel_opt = 0;