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

cv2.error: OpenCV(4.2.0) ../modules/core/src/persistence.cpp:719: error: (-49:Unknown error code -49) Input file is invalid in function 'open' #27

Closed
kravenor opened this issue Aug 11, 2020 · 1 comment

Comments

@kravenor
Copy link

When I try to execute the example i have this output :
cv2.error: OpenCV(4.2.0) ../modules/core/src/persistence.cpp:719: error: (-49:Unknown error code -49) Input file is invalid in function 'open'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "face.py", line 9, in <module>
    faceCascade = cv2.CascadeClassifier(cascPath)
SystemError: <class 'cv2.CascadeClassifier'> returned a result with an error set

How i can fix it?

@baronrustamov
Copy link

same thing

@shantnu shantnu closed this as completed Jun 19, 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

3 participants