syno3 / surge

we are building level 2 autonomous systems for self driving car
0 stars 0 forks source link

body pose error #22

Closed syno3 closed 2 years ago

syno3 commented 2 years ago

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 commented 2 years ago

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