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

main.py returns assertion failed #44

Open
priyankansrivastav opened this issue Mar 13, 2019 · 5 comments
Open

main.py returns assertion failed #44

priyankansrivastav opened this issue Mar 13, 2019 · 5 comments

Comments

@priyankansrivastav
Copy link

priyankansrivastav commented Mar 13, 2019

Issues should contain the following details which increases the probability of it get resolved quickly

  • Exact error or Issue details
D:\python\Human-detection-and-Tracking-master>python main.py -v D:\python\Human-detection-and-Tracking-master\videos
D:\python\Human-detection-and-Tracking-master\videos\VID-20181220-WA0006.mp4*.mp4
['D:\\python\\Human-detection-and-Tracking-master\\videos\\VID-20181220-WA0006.mp4']
Traceback (most recent call last):
  File "main.py", line 140, in <module>
    recognizer.read("model.yaml")
cv2.error: OpenCV(4.0.0) C:\projects\opencv-python\opencv\modules\core\src\persistence.cpp:2047: error: (-215:Assertion failed) isMap() in function 'cv::FileNode::operator []'
  • OpenCV Version - 4.0
  • Python 3.x
    ** Windows 10*
  • Changes done, if any in the original code - nope !
@prsntmaurya
Copy link
Member

Have you created your own "model.yaml" or using the one provided in the repository?
Please make sure that you can sucessfully read and display the frame of the video you are using.

@priyankansrivastav
Copy link
Author

I am using the same model.yaml file but i am still facing that issue

@stawo
Copy link

stawo commented Apr 8, 2019

I had the same exact issue, but then I fixed it by reading better the docs! :)
I just had to rebuild model.yaml by running
python create_face_model.py

@freedom9393
Copy link

freedom9393 commented May 7, 2019

I think this is opencv incompatible. Maybe you are installing some models using conda and some models using pip? I hope this will help:
pip install opencv-python

@leijuzi
Copy link

leijuzi commented Jun 27, 2019

i met this error too,do you solve it?

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

5 participants