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

Scalar value for argument 'color' is not numeric type error in cv2.circle() #9

Open
gizemozd opened this issue Feb 14, 2022 · 0 comments

Comments

@gizemozd
Copy link
Member

The following error occurs while generating the video with a stimulus indicator.

~/Desktop/GIT/utils_video/utils_video/utils.py in add_dot(image, radius, center, color)
    589 
    590 def add_dot(image, radius=35, center=(50, 50), color=(255, 0, 0)):
--> 591     image = cv2.circle(image, center, radius, color, -1)
    592     return image
    593 

TypeError: Scalar value for argument 'color' is not numeric

I tried these options but neither worked for me:
color = np.array((255,0,0), dtype=np.uint8)
and
color = tuple([int(x) for x in (255,0,0)])

OpenCV version: 4.1.2

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