Open KimYonghyun94 opened 4 years ago
Please make sure the file exist.
KimYonghyun94 notifications@github.com于2020年7月2日 周四下午7:34写道:
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?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yinguobing/head-pose-estimation/issues/33, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOK2BXESILE2TT4H4F4H23RZRWEDANCNFSM4OOZQIKQ .
all files are exist. I am using 'Google Colab'. I dont know why this error...
There is no need to use Colab. Follow the instructions in the README file, please.
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
You need cv2.VideoWriter
to do that. The branch write_video
can be of help.
thank you so much~ have a good day~
2020년 7월 7일 (화) 오후 5:04, Yin Guobing notifications@github.com님이 작성:
You need cv2.VideoWriter to do that. The branch write_video can be of help.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yinguobing/head-pose-estimation/issues/33#issuecomment-654674167, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOIWGKUNQCR6TW6H6DVM7HLR2LJJ5ANCNFSM4OOZQIKQ .
I have the same problem
@KevinTsaiCodes Please make sure all files tracked by Git are not modified in any way.
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?