xhuvom / FaceID

An implementation of YOLO v2 for direct facial recognition within detection layer.
Other
159 stars 80 forks source link

terminate called after throwing an instance of 'cv::Exception' #11

Open j2wooooo opened 6 years ago

j2wooooo commented 6 years ago

Hi! I'm sorry to ask you such repeated question. for capturing my face ./darknet yolo demo cfg/yolo-face.cfg yolo-face_final.weights "nvcamerasrc ! video/x-raw(memory:NVMM), width=(int)1280, height=(int)720,format=(string)I420, framerate=(fraction)30/1 ! nvvidconv flip-method=2 ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink"

but It has error...

=================================================================================

FPS:0.0 Objects:

face: 31% OpenCV Error: Unspecified error (could not find a writer for the specified extension) in imwrite, file /home/nvidia/opencv-3.2.0/modules/imgcodecs/src/loadsave.cpp, line 531 terminate called after throwing an instance of 'cv::Exception' what(): /home/nvidia/opencv-3.2.0/modules/imgcodecs/src/loadsave.cpp:531: error: (-2) could not find a writer for the specified extension in function imwrite

Aborted

================================================================================= i'm using nvidia jetson tx1, and i reinstalled opencv 3.2.0. we try to effort for 2 weeks.. plz help me

xhuvom commented 5 years ago

This might be an issue with your OpenCV installation or Gstreamer either. I see you are using Gstreamer for video capture although the command takes OpenCV video capture functions. Could you test with
$ ./darknet yolo demo cfg/yolo-face.cfg yolo-face_final.weights <video_file.mp4> or with webcam $ ./darknet yolo demo cfg/yolo-face.cfg yolo-face_final.weights for a sanity check?