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: argument for rectangle() given by name ('color') and position (3) #6

Closed
Trendle opened this issue Feb 14, 2021 · 1 comment

Comments

@Trendle
Copy link

Trendle commented Feb 14, 2021

Hello, I got started yesterday with this great tutorial, but I'm stuck at step 5.

When I run my code I get:

cv.rectangle(haystack_img, top_left, bottom_right, color=(0,255,0), thickness=2, lineType=cv.LINE_4)
TypeError: argument for rectangle() given by name ('color') and position (3)

I do not know why.

@Trendle
Copy link
Author

Trendle commented Feb 14, 2021

Ok, the solution was to use np.ascontiguousarray, I either forgot to include it or I accidentally deleted it.

@Trendle Trendle closed this as completed Feb 14, 2021
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