severin-lemaignan / gazr

3D head pose estimation using monocular vision
Other
179 stars 55 forks source link

gazr live_polt.py error #6

Closed sarmadm closed 7 years ago

sarmadm commented 7 years ago

I'm trying to plot the roll yaw , and pitch using live_plot.py

I have used this :

tofi@tofi:~/gazr-master/build$

./gazr_estimate_head_direction -c --model=shape_predictor_68_face_landmarks.dat | python -u ../tools/live_plot.py terminate called after throwing an instance of 'boost::exception_detail::clone_impl' what(): unrecognised option '-c' /usr/lib/python2.7/dist-packages/pkg_resources.py:1031: UserWarning: /home/tofi/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable). warnings.warn(msg, UserWarning) Traceback (most recent call last): File "../tools/live_plot.py", line 22, in data = eval(line) File "", line 0

^

SyntaxError: unexpected EOF while parsing

and also I tried :

tofi@tofi:~/gazr-master/build$ ./estimate_gaze_direction -c --model=shape_predictor_68_face_landmarks.dat | python -u ../tools/live_plot.py

bash: ./estimate_gaze_direction: No such file or directory /usr/lib/python2.7/dist-packages/pkg_resources.py:1031: UserWarning: /home/tofi/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable). warnings.warn(msg, UserWarning) Traceback (most recent call last): File "../tools/live_plot.py", line 22, in data = eval(line) File "", line 0

^

SyntaxError: unexpected EOF while parsin

sarmadm commented 7 years ago

HI

Could you please answer my question

severin-lemaignan commented 7 years ago

Well, the error message is quite obvious: you are using an non-existant option -c. Call gazr_estimate_head_direction without this spurious parameter.

severin-lemaignan commented 7 years ago

(note that other issues with live_plot.py prevented it to work properly. Please pull the latest version -- it should work fine)

sarmadm commented 7 years ago

I have updated live_plot.py but no it is showing this error :

./gazr_estimate_head_direction --model=shape_predictor_68_face_landmarks.dat | python -u ../tools/live_plot.py

terminate called after throwing an instance of 'dlib::serialization_error' what(): Unable to open shape_predictor_68_face_landmarks.dat for reading. Traceback (most recent call last): File "../tools/live_plot.py", line 24, in data = eval(line) File "", line 0

^

SyntaxError: unexpected EOF while parsing

severin-lemaignan commented 7 years ago

Please, please read the error message before asking question, because I am sure you can solve the problem yourself :-/

...the path to the model is not correct. I suppose it might be:

./gazr_estimate_head_direction --model=../shape_predictor_68_face_landmarks.dat | python -u ../tools/live_plot.py