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

AttributeError: 'ImageDraw' object has no attribute 'textsize' #2

Open
sunwaterdev opened this issue Aug 30, 2024 · 0 comments
Open

Comments

@sunwaterdev
Copy link

When I start the script, no error but when a face is on the camera, this error appears:
Traceback (most recent call last):
File "/home/jules/Documents/Realtime_FacialRecognition/Realtime_FacialRecognition/facerec_ipcamera_knn.py", line 211, in
frame = show_prediction_labels_on_image(frame, predictions1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jules/Documents/Realtime_FacialRecognition/Realtime_FacialRecognition/facerec_ipcamera_knn.py", line 178, in show_prediction_labels_on_image
text_width, text_height = draw.textsize(name)
^^^^^^^^^^^^^
AttributeError: 'ImageDraw' object has no attribute 'textsize'

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