Hello
Device: Jetson Xavier NX
Firmware: JP5.1
I’m using a pipeline containing a sequence of emotion and gaze detectors (based on an emotion detector application where the gaze detector was added to the pipeline after the emotion detector).
Is it possible to recognize different people?
For example, one person went out of view of the camera, then returned back (or, for example, if people switched places), will the ID binding to the face of a certain person be preserved?
I tried to output NvDsObjectMeta fields in the static GstPadProbeReturn pgie_pad_buffer_probe (GstPad * pad, GstPadProbeInfo * info, gpointer u_data)
callback in deepstream_emotion_app.cpp and in the void EmotionAlgorithm::OutputThread(void)
method in emotion_impl.cpp:
//...
for(NvDsMetaList * l_obj = frame_meta->obj_meta_list; l_obj != NULL; l_obj = l_obj->next)
{
NvDsObjectMeta *obj_meta = (NvDsObjectMeta *)l_obj->data;
if(!obj_meta)
{
g_print("No obj meta\n");
break;
}
g_print("%s: ---NvDsObjectMeta info---\n", __PRETTY_FUNCTION__);
g_print("obj_meta->class_id = %d\n", obj_meta->class_id);
g_print("obj_meta->object_id = %ld\n", obj_meta->object_id);
g_print("obj_meta->obj_label = %s\n", obj_meta->obj_label);
g_print("obj_meta->unique_component_id = %d\n", obj_meta->unique_component_id);
g_print("obj_meta->rect_params = {%f,%f,%f,%f})\n----------------------\n",
obj_meta->rect_params.left,
obj_meta->rect_params.top,
obj_meta->rect_params.width,
obj_meta->rect_params.height);
//...
}
//...
As a result, I got an output like:
void EmotionAlgorithm::OutputThread(): ---NvDsObjectMeta info---
obj_meta->class_id = 0
obj_meta->object_id = -1
obj_meta->obj_label = Face
obj_meta->unique_component_id = 1
obj_meta->rect_params = {545.970703,194.758850,361.450195,361.450195})
----------------------
Frame Number = 373 Face Count = 2
GstPadProbeReturn pgie_pad_buffer_probe(GstPad*, GstPadProbeInfo*, gpointer): ---NvDsObjectMeta info---
obj_meta->class_id = 0
obj_meta->object_id = -1
obj_meta->obj_label = Face
obj_meta->unique_component_id = 1
obj_meta->rect_params = {1024.824219,490.591949,115.467903,148.661926})
----------------------