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

how can I solve the error? #33

Open
KimYonghyun94 opened this issue Jul 2, 2020 · 8 comments
Open

how can I solve the error? #33

KimYonghyun94 opened this issue Jul 2, 2020 · 8 comments

Comments

@KimYonghyun94
Copy link

OpenCV version: 3.3.1
Linux is fine! Python multiprocessing works.
OpenCV Error: Unspecified error (FAILED: fs.is_open(). Can't open "assets/deploy.prototxt") in ReadProtoFromTextFile, file /io/opencv/modules/dnn/src/caffe/caffe_io.cpp, line 1113
Traceback (most recent call last):
File "/content/head-pose-estimation/estimate_head_pose.py", line 161, in
main()
File "/content/head-pose-estimation/estimate_head_pose.py", line 57, in main
mark_detector = MarkDetector()
File "/content/head-pose-estimation/mark_detector.py", line 68, in init
self.face_detector = FaceDetector()
File "/content/head-pose-estimation/mark_detector.py", line 14, in init
self.face_net = cv2.dnn.readNetFromCaffe(dnn_proto_text, dnn_model)
cv2.error: /io/opencv/modules/dnn/src/caffe/caffe_io.cpp:1113: error: (-2) FAILED: fs.is_open(). Can't open "assets/deploy.prototxt" in function ReadProtoFromTextFile

Could you help me?

@yinguobing
Copy link
Owner

yinguobing commented Jul 2, 2020 via email

@KimYonghyun94
Copy link
Author

all files are exist. I am using 'Google Colab'.
I dont know why this error...

@yinguobing
Copy link
Owner

There is no need to use Colab. Follow the instructions in the README file, please.

@KimYonghyun94
Copy link
Author

Really thank you for reply
I fixed all error but I have one question
How i save the videofile instead of immediately
When i runtime this code
'' python3 Estimate_head_pose.py --video video.mp4 ''
playing immediately but i need to save the files...

I really appreciate to you

@yinguobing
Copy link
Owner

You need cv2.VideoWriter to do that. The branch write_video can be of help.

@KimYonghyun94
Copy link
Author

KimYonghyun94 commented Jul 8, 2020 via email

@KevinTsaiCodes
Copy link

I have the same problem

@yinguobing
Copy link
Owner

@KevinTsaiCodes Please make sure all files tracked by Git are not modified in any way.

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