It looks like you're new here. If you want to get involved, click one of these buttons!Sign In
It looks like you're new here. If you want to get involved, click one of these buttons!
The plan of my project is do use multiple NCS 1 on Raspberry Pi 3 to do facial detection. Apparently there's gender age lbp available in C++ but that is giving inference on face of a same person. I want to have it detecting only 1 person's face with 1 result, not 1 person's face giving multiple results. The reason for this is I am doing person counting by face as well as doing recognition on their gender and age.
Therefore I break it down into facial detection by running different py files that taking snapshot of the ROI (bounding box of face only) through opencv dnn library and then feed these faces into gender and age net. I referred to pyimagesearch blog (https://www.pyimagesearch.com/2018/07/23/simple-object-tracking-with-opencv), this blog emphasis face detection and tracking, so I can output only 1 face of a person, not every face detected in every frame that gives me many faces of same person. The problem I faced using the code in this blog is slow inference speed as this code does not support NCS library yet. I am trying to modify the code to support NCS but I face problem in understanding codes like:
I get that second parameter in graph.LoadTensor None is for user object, but I do not really understand what does it use for
output, userobj = graph.GetResult()
Same as the line #1 above, userobj, what does it use for?
I am assuming output in line#2 gives me the bounding box coordinate of my ROI (face of person) which then I can use cv2.imwrite to take a snapshot of the ROI. (that's how i work without NCS on the blog code initially).
Any help from the community will be greatly appreciated!
Cheers! - Ricky