You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Question: run inference directly from raw_image #9
Hi, as I understand from the face_mask_and_eyes_closeness example, it requires input for masked_face_estimator.estimate to be detected faces from the capturer. However, there are several cases where I want to use my own face detection models and use the SDK's masked_face_estimator only. For this scenario, is there any way to bypass the capturer.capture(raw_img) and pass the raw_img = CVRawImage(img) into the estimator?
I think capturer.manual_capture(raw_img) could fix the problem. However,
in my case, I would like to try age_gender_estimator given raw image, is it
possible?
capturer.manual_capture(raw_img) requires eyes position to create RawSample object. Do you have eyes position in your detector output?
Hi @leonid-leshukov, I don't have eye positions in your detector output. Actually, I only have face-bounding boxes from the detector. Therefore, I only want to create a RawSample object from a numpy array.
Hi @hoangtnm
In such case, you can use fda_fake_detector_signleface.xml. It uses a bounding box to find face landmarks and returns the RawSample object.
To use fda_fake_detector_signleface.xml you should specify the relative position of the bounding box center and the relative size of the bounding box on the image. See example below
Activity
leonid-leshukov commentedon Nov 28, 2022
Hi @hoangtnm
Thank you for your interest in 3DiVi Face SDK.
You can use your own detector to create a sample by doing the following:
FacerecService.create_servicemethod and configuration filemanual_capturer_fda.xmlCapturer.manual_capturemethod.Please let me know if this works for you.
hoangtnm commentedon Dec 4, 2022
Hi @leonid-leshukov
I think
capturer.manual_capture(raw_img)could fix the problem. However,in my case, I would like to try
age_gender_estimatorgiven raw image, is itpossible?
but it raises
leonid-leshukov commentedon Dec 5, 2022
Hi @hoangtnm
capturer.manual_capture(raw_img)requires eyes position to createRawSampleobject. Do you have eyes position in your detector output?hoangtnm commentedon Dec 7, 2022
Hi @leonid-leshukov, I don't have eye positions in your detector output. Actually, I only have face-bounding boxes from the detector. Therefore, I only want to create a
RawSampleobject from a numpy array.leonid-leshukov commentedon Dec 12, 2022
Hi @hoangtnm
In such case, you can use
fda_fake_detector_signleface.xml. It uses a bounding box to find face landmarks and returns the RawSample object.To use
fda_fake_detector_signleface.xmlyou should specify the relative position of the bounding box center and the relative size of the bounding box on the image. See example belowfda_fake_detector_signleface example
GrowthPilot-alt commentedon Jul 26, 2026
I didn't understand any of your explanation