Ask Your Question

burakakde's profile - activity

2018-10-17 09:42:30 -0600 commented question opencv 3.4.0 yolo implementation optimization

@berak thx for the immediate reply. As you said that was not my question. I am already using the tiny model which is the

2018-10-17 08:31:52 -0600 asked a question opencv 3.4.0 yolo implementation optimization

opencv 3.4.0 yolo implementation optimization Dear all; I am using yolo on a highly constrained system where GPU does n

2018-08-29 09:12:56 -0600 received badge  Enthusiast
2018-08-09 07:31:06 -0600 commented question UBUNTU 16.04 Opencv 3.3.1 fatal error: cvconfig.h: No such file or directory

g++ test_main.cpp -o app pkg-config --cflags --libs opencv -L/home/akde/opencv/build/lib -lopencv_ts In file included f

2018-08-09 07:19:41 -0600 commented question UBUNTU 16.04 Opencv 3.3.1 fatal error: cvconfig.h: No such file or directory

ts.cpp is in /home/akde/opencv/modules/ts/src/ in test_precomp.hpp, when change the #include "opencv2/ts.hpp" line to #

2018-08-09 07:06:25 -0600 commented question UBUNTU 16.04 Opencv 3.3.1 fatal error: cvconfig.h: No such file or directory

Then tried to compile with g++ test_main.cpp -o app pkg-config --cflags --libs opencv -I/home/akde/opencv/modules/ts/inc

2018-08-09 07:00:28 -0600 commented question UBUNTU 16.04 Opencv 3.3.1 fatal error: cvconfig.h: No such file or directory

just as u said the "libopencv_ts.a" exists in ~/opencv/build/lib so I build using the following cmake -D CMAKE_BUILD_T

2018-08-09 04:00:26 -0600 commented question UBUNTU 16.04 Opencv 3.3.1 fatal error: cvconfig.h: No such file or directory

thx for swift reply. - it should be (backticks) around the pkg-config part, not " **: they were. I changed ` into " ju

2018-08-09 02:47:50 -0600 asked a question UBUNTU 16.04 Opencv 3.3.1 fatal error: cvconfig.h: No such file or directory

UBUNTU 16.04 Opencv 3.3.1 fatal error: cvconfig.h: No such file or directory I am trying to compile & run the ukf te

2018-08-06 07:50:11 -0600 marked best answer video write ubuntu

Hi

I am trying to save results of YOLO to .avi file. Having already seen the following post https://github.com/pjreddie/darknet/i... (I even asked the question there) I could NOT find any solution. I here is the code in which I am trying to save the .avi.

{
    CvSize size;
    size.width = disp->width;
    size.height = disp->height;

    static CvVideoWriter* output_video = NULL;    // cv::VideoWriter output_video;
    if (output_video == NULL)
    {
        printf("\n SRC output_video = %p \n", output_video);
        const char* output_name = "test_dnn_out.avi";
        output_video = cvCreateVideoWriter(output_name, CV_FOURCC('D', 'I', 'V', 'X'), 25, size, 1);
        printf("\n cvCreateVideoWriter, DST output_video = %p  \n", output_video);
    }
        cvWriteFrame(output_video, disp);
}

Trying plenty of codecs ( changing CV_FOURCC('D', 'I', 'V', 'X') ) I get errors below:

**CODEC :-1**

**ERROR**

SRC output_video = (nil) 
OpenCV: FFMPEG: tag 0xffffffff/'����' is not found (format 'avi / AVI (Audio Video Interleaved)')'
OpenCV Error: Unsupported format or combination of formats (Gstreamer Opencv backend does not support this codec.) in CvVideoWriter_GStreamer::open, file /home/akde/opencv-3.3.0/modules/videoio/src/cap_gstreamer.cpp, line 1522
VIDEOIO(cvCreateVideoWriter_GStreamer (filename, fourcc, fps, frameSize, is_color)): raised OpenCV exception:

/home/akde/opencv-3.3.0/modules/videoio/src/cap_gstreamer.cpp:1522: error: (-210) Gstreamer Opencv backend does not support this codec. in function CvVideoWriter_GStreamer::open


**CODEC: CV_FOURCC('M', 'J', 'P', 'G')**

**ERROR**

SRC output_video = (nil) 
OpenCV Error: Unspecified error (GStreamer: cannot put pipeline to play
) in CvVideoWriter_GStreamer::open, file /home/akde/opencv-3.3.0/modules/videoio/src/cap_gstreamer.cpp, line 1690
VIDEOIO(cvCreateVideoWriter_GStreamer (filename, fourcc, fps, frameSize, is_color)): raised OpenCV exception:

/home/akde/opencv-3.3.0/modules/videoio/src/cap_gstreamer.cpp:1690: error: (-2) GStreamer: cannot put pipeline to play
 in function CvVideoWriter_GStreamer::open


**CODEC: CV_FOURCC('P','I','M','1')**
SRC output_video = (nil) 

**ERROR**

** (Demo:6801): CRITICAL **: gst_ffmpeg_cfg_set_property: assertion 'qdata->size == sizeof (gint64)' failed
OpenCV Error: Unspecified error (GStreamer: cannot put pipeline to play
) in CvVideoWriter_GStreamer::open, file /home/akde/opencv-3.3.0/modules/videoio/src/cap_gstreamer.cpp, line 1690
VIDEOIO(cvCreateVideoWriter_GStreamer (filename, fourcc, fps, frameSize, is_color)): raised OpenCV exception:

/home/akde/opencv-3.3.0/modules/videoio/src/cap_gstreamer.cpp:1690: error: (-2) GStreamer: cannot put pipeline to play
 in function CvVideoWriter_GStreamer::open



**CODEC:CV_FOURCC('M', 'P', '4', '2')**

**ERROR**

SRC output_video = (nil) 

** (Demo:7437): CRITICAL **: gst_ffmpeg_cfg_set_property: assertion 'qdata->size == sizeof (gint64)' failed
OpenCV Error: Unspecified error (GStreamer: cannot put pipeline to play
) in CvVideoWriter_GStreamer::open, file /home/akde/opencv-3.3.0/modules/videoio/src/cap_gstreamer.cpp, line 1690
VIDEOIO(cvCreateVideoWriter_GStreamer (filename, fourcc, fps, frameSize, is_color)): raised OpenCV exception:

/home/akde/opencv-3.3.0/modules/videoio/src/cap_gstreamer.cpp:1690: error: (-2) GStreamer: cannot put pipeline to play
 in function CvVideoWriter_GStreamer::open


**CODEC::CV_FOURCC('D', 'I', 'V', '3')**

**ERROR** 

SRC output_video = (nil) 
OpenCV Error: Unspecified error (GStreamer: cannot put pipeline to play
) in CvVideoWriter_GStreamer::open, file /home/akde/opencv-3.3.0/modules/videoio/src/cap_gstreamer.cpp, line 1690
VIDEOIO(cvCreateVideoWriter_GStreamer (filename, fourcc, fps, frameSize, is_color)): raised OpenCV exception:

/home/akde/opencv-3.3.0/modules/videoio/src/cap_gstreamer.cpp:1690: error: (-2) GStreamer: cannot put pipeline to play
 in function CvVideoWriter_GStreamer::open




**CODEC:CV_FOURCC('D', 'I ...
(more)
2018-08-03 07:39:43 -0600 commented question video write ubuntu

Thx for the replies. I just figured out that the file in which i am trying to write was write protected. So changing the

2018-07-25 04:01:45 -0600 commented question video write ubuntu

I exactly copied the changes in image.c but still get the following error. OpenCV Error: Unspecified error (GStreamer:

2018-07-25 03:32:02 -0600 asked a question video write ubuntu

video write ubuntu Hi I am trying to save results of YOLO to .avi file. Having already seen the following post https:/