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

body pose error #22

Closed
syno3 opened this issue Oct 21, 2021 · 1 comment
Closed

body pose error #22

syno3 opened this issue Oct 21, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@syno3
Copy link
Owner

syno3 commented Oct 21, 2021

Traceback (most recent call last):
File "C:\Users\Harry Muge\Desktop\surge\drivermonitoring\main.py", line 289, in
run.debug() # we run the actual video when the file is called
File "C:\Users\Harry Muge\Desktop\surge\drivermonitoring\main.py", line 209, in debug
cx, cy = Face.body_pose(frame)
File "C:\Users\Harry Muge\Desktop\surge\drivermonitoring\face.py", line 254, in body_pose
return cx, cy
UnboundLocalError: local variable 'cx' referenced before assignment

@syno3 syno3 added the bug Something isn't working label Oct 21, 2021
@syno3
Copy link
Owner Author

syno3 commented Feb 25, 2022

fixed this part with try except block to catch the error should work perfectly now

@syno3 syno3 closed this as completed Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant