Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting yaw and roll angles #20

Open
sarmadm opened this issue Dec 15, 2016 · 4 comments
Open

Plotting yaw and roll angles #20

sarmadm opened this issue Dec 15, 2016 · 4 comments

Comments

@sarmadm
Copy link

sarmadm commented Dec 15, 2016

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
Copy link
Member

You can find such an example in the gazr fork: severin-lemaignan@fc26ca2

@sarmadm
Copy link
Author

sarmadm commented Dec 16, 2016

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
Copy link
Member

@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:

  • gazr is a fork of attention_tracker: they do the same thing. If you launch both, one will fail as only one process can access the webcam at a time. In your case, do not start attention_tracker. Only use gazr.
  • python does not find live_plot.py because you are not in the right directory. $ ./estimate_gaze_direction -c --model=shape_predictor_68_face_landmarks.dat | python -u ../tools/live_plot.py should work.

@sarmadm
Copy link
Author

sarmadm commented Feb 9, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants