TFLITE_SSD_BOUNDING_BOX = 0,
TF_SSD_BOUNDING_BOX = 1,
OV_PERSON_DETECTION_BOUNDING_BOX = 2,
+ OV_FACE_DETECTION_BOUNDING_BOX = 3,
BOUNDING_BOX_UNKNOWN,
} bounding_box_modes;
[TFLITE_SSD_BOUNDING_BOX] = "tflite-ssd",
[TF_SSD_BOUNDING_BOX] = "tf-ssd",
[OV_PERSON_DETECTION_BOUNDING_BOX] = "ov-person-detection",
+ [OV_FACE_DETECTION_BOUNDING_BOX] = "ov-face-detection",
NULL,
};
return TRUE;
} else if (bdata->mode == TF_SSD_BOUNDING_BOX) {
return TRUE;
- } else if (bdata->mode == OV_PERSON_DETECTION_BOUNDING_BOX) {
- return TRUE;
}
return TRUE;
}
if (bdata->mode == TFLITE_SSD_BOUNDING_BOX) {
/* properties_TFLite_SSD *data = &bdata->tflite_ssd; */
} else if (bdata->mode == TF_SSD_BOUNDING_BOX) {
- } else if (bdata->mode == OV_PERSON_DETECTION_BOUNDING_BOX) {
}
}
if (!_set_max_detection (data, max_detection, TF_SSD_DETECTION_MAX)) {
return NULL;
}
- } else if (data->mode == OV_PERSON_DETECTION_BOUNDING_BOX) {
+ } else if ((data->mode == OV_PERSON_DETECTION_BOUNDING_BOX) ||
+ (data->mode == OV_FACE_DETECTION_BOUNDING_BOX)){
const guint *dim;
if (!_check_tensors (config, OV_PERSON_DETECTION_MAX_TENSORS))
default:
g_assert (0);
}
- } else if (bdata->mode == OV_PERSON_DETECTION_BOUNDING_BOX) {
+ } else if ((bdata->mode == OV_PERSON_DETECTION_BOUNDING_BOX) ||
+ (bdata->mode == OV_FACE_DETECTION_BOUNDING_BOX)) {
results = g_array_sized_new (FALSE, TRUE, sizeof (detectedObject),
OV_PERSON_DETECTION_MAX);