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

TypeError: integer argument expected, got float #37

Open
YUVRAJ1912 opened this issue Apr 18, 2017 · 1 comment
Open

TypeError: integer argument expected, got float #37

YUVRAJ1912 opened this issue Apr 18, 2017 · 1 comment

Comments

@YUVRAJ1912
Copy link

Hello sir,
I got this error when i lock the forehead region
please help me......

face detection lock = True
Traceback (most recent call last):
File "C:/Users/thearn-webcam-pulse-detector-3060060/thearn-webcam-pulse-detector-3060060/get_pulse.py", line 212, in
App.main_loop()
File "C:/Users/thearn-webcam-pulse-detector-3060060/thearn-webcam-pulse-detector-3060060/get_pulse.py", line 180, in main_loop
self.processor.run(self.selected_cam)
File "C:\Users\thearn-webcam-pulse-detector-3060060\thearn-webcam-pulse-detector-3060060\lib\processors_noopenmdao.py", line 238, in run
cv2.putText(self.frame_out, text,(x - w / 2, y), cv2.FONT_HERSHEY_PLAIN, tsize, col)
TypeError: integer argument expected, got float

@YUVRAJ1912
Copy link
Author

i changed this line with this and it works......
cv2.putText(self.frame_out, text,(int(x - w / 2), y), cv2.FONT_HERSHEY_PLAIN, tsize, col)

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