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

UnboundLocalError: local variable 'face_detector' referenced before assignment #16

Open
ccoa opened this issue Jul 24, 2019 · 0 comments

Comments

@ccoa
Copy link

ccoa commented Jul 24, 2019

I executed agegenderemotion_webcam.py and I got the following error message:

Using TensorFlow backend.
Warning, check if models and trained dataset models exists!
Traceback (most recent call last):
File "/home/omar/eclipse-workspace/libfaceid/agegenderemotion_webcam.py", line 192, in
main(parse_arguments(sys.argv[1:]))
File "/home/omar/eclipse-workspace/libfaceid/agegenderemotion_webcam.py", line 177, in main
run(cam_index, cam_resolution)
File "/home/omar/eclipse-workspace/libfaceid/agegenderemotion_webcam.py", line 147, in run
cam_index)
File "/home/omar/eclipse-workspace/libfaceid/agegenderemotion_webcam.py", line 81, in process_facedetection
faces = face_detector.detect(frame)
UnboundLocalError: local variable 'face_detector' referenced before assignment

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

1 participant