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

File "yolo_opencv.py", line 39, in draw_prediction #14

Open
vascobarbosa opened this issue Apr 25, 2019 · 2 comments
Open

File "yolo_opencv.py", line 39, in draw_prediction #14

vascobarbosa opened this issue Apr 25, 2019 · 2 comments

Comments

@vascobarbosa
Copy link

Mac OSX 10.14.1 (18B75)

Traceback (most recent call last):
File "yolo_opencv.py", line 98, in
draw_prediction(image, class_ids[i], confidences[i], round(x), round(y), round(x+w), round(y+h))
File "yolo_opencv.py", line 39, in draw_prediction
cv2.rectangle(img, (x,y), (x_plus_w,y_plus_h), color, 2)
TypeError: only length-1 arrays can be converted to Python scalars

@arunponnusamy
Copy link
Owner

May I know the OpenCV and Python version you are working with ?

@ziane-fawzi
Copy link

Hi i have the same problem
I use OpenCV 4.5.1 python3

can you help me please ?

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

3 participants