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

module 'cv2.cv2' has no attribute 'cv' #31

Open
seyedmohammadmousavi opened this issue Aug 21, 2021 · 2 comments
Open

module 'cv2.cv2' has no attribute 'cv' #31

seyedmohammadmousavi opened this issue Aug 21, 2021 · 2 comments

Comments

@seyedmohammadmousavi
Copy link

font=cv2.cv.InitFont(cv2.cv.cv_FONT_HERSHEY_COMPLEX_SMALL,1,1,0,1)

when I write this the error of module 'cv2.cv2' has no attribute 'cv' come:(
help me plsssss

@AzethMeron
Copy link

AzethMeron commented Aug 28, 2021

Appearantly here's solution to this (well, similar) problem:
#21
But for me, installing contrib package didn't solve anything.

@0xCwrw
Copy link

0xCwrw commented Mar 2, 2022

Opencv removed the attribute in one of the updates, the alternative which works is cv2.CASCADE_SCALE_IMAGE. For more info: https://stackoverflow.com/questions/41341409/where-is-cv-haar-scale-image-in-opencv-3-1-0-with-python-3-5

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