chili-epfl / attention-tracker

136 stars 96 forks source link

Plotting yaw and roll angles #20

Open sarmadm opened 7 years ago

sarmadm commented 7 years ago

HI

I have question , I want to draw yaw angles and roll , how can I do something like this image : head pose plot

severin-lemaignan commented 7 years ago

You can find such an example in the gazr fork: https://github.com/severin-lemaignan/gazr/commit/fc26ca28ec5859f78ae4bd1969ec41dd457a3da4

sarmadm commented 7 years ago

I compiled gazr and attention tracker . for attentatio tracker it works fine with this command : ./head_pose_test ../share/shape_predictor_68_face_landmarks.dat .

but with gazr this error shows : opengl support available (ERROR)icvOpenAVI_XINE(): Unable to initialize video driver. Couldn't open camera

when I tried to run live_plot.py :

./estimate_gaze_direction -c --model=shape_predictor_68_face_landmarks.dat | python -u live_plot.py

this error shows :

tofi@tofi:~/gazr/build$ ./estimate_gaze_direction -c --model=shape_predictor_68_face_landmarks.dat | python -u live_plot.py bash: ./estimate_gaze_direction: No such file or directory python: can't open file 'live_plot.py': [Errno 2] No such file or directory

severin-lemaignan commented 7 years ago

@sarmadm These are basic mistakes, and I fear that github issues are not the right place to teach about the basics of computer science... that said:

sarmadm commented 7 years ago

When I run :

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 parsing