Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
139 Views

can't use openvino gaze-estimation-adas-0002 (python)

I'm trying to use pre-trained model gaze-estimation-adas-0002 from openvino. This link should tell me which inputs to use: https://docs.openvinotoolkit.org/2019_R1/_gaze_estimation_adas_0002_description_gaze_estimation_adas...

I detect left and right eye using haar cascades. An make blobs using:
```right_eye_image = cv.dnn.blobFromImage(right_eye, size = (60, 60), crop=False)```
```left_eye_image = cv.dnn.blobFromImage(left_eye, size = (60, 60), crop=False)```
head_pose_angles is just a list with the three headpose directions

by reading errors I know that only the first argument of model_gaze.setInput() contains a blob and that it should be of type cv::UMat. When i use ```model_gaze.setInput(cv.UMat(np.array([left_eye_image, right_eye_image, head_pose_angles])))``` I get the error ```TypeError: Required argument 'ranges' (pos 2) not found```. How do I correctly use the model?

0 Kudos
2 Replies
Highlighted
139 Views

Solved: https://github.com/opencv/opencv/issues/15248#issuecomment-518645343

0 Kudos
Highlighted
Employee
139 Views

Dear De Prins, Robbe,

Thanks for sharing your solution with the OpenVino community !

Shubha

 

0 Kudos