Ask Your Question

Pedro Nogueira's profile - activity

2019-04-01 06:31:34 -0500 received badge  Popular Question (source)
2016-09-30 19:22:51 -0500 received badge  Student (source)
2015-12-09 04:39:15 -0500 received badge  Editor (source)
2015-12-09 04:25:11 -0500 asked a question Video Capture of Avermedia c874 with opencv

Hi, I am developing a image analysis software with opencv (runs in both 2.4.11 and 3.0). I use it with webcams without problems but I tried to use a Avermedia C874 video capture device. Under windows the software recognizes "Avermedia USB HD Capture" as a video device, but when I choose it, the function (in java):

  VideoCapture capture = new VideoCapture( -1); 

  Thread.sleep(1000); // Wait for video to start

The call...

capture.isOpened();

returns always false. Does anyone knw a solution to capture frames from this device?

By the way I tried it also in linux and it also does not recognize the board. Thanks for your answers, PN

2015-09-02 11:03:52 -0500 commented question Error compiling opencv 2.4.11 with mingw

GNU Make 3.82.90

After downloading the latest version (3) from Github and runing with the cmake and mingw32-make instruction (including renaming sh.exe) everuthing worked fine.

2015-09-02 06:53:06 -0500 asked a question Error compiling opencv 2.4.11 with mingw

Hi there,

While compiling I get this error:

[ 29%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_w32.cpp.obj
F:\Transferencias\opencv\sources\modules\highgui\src\window_w32.cpp:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
 /*M///////////////////////////////////////////////////////////////////////////////////////
 ^
F:\Transferencias\opencv\sources\modules\highgui\src\window_w32.cpp: In function 'int icvCreateTrackbar(const char*, const char*, int*, int, CvTrackbarCallback, CvTrackbarCallback2, void*)':
F:\Transferencias\opencv\sources\modules\highgui\src\window_w32.cpp:1853:81: error: 'BTNS_AUTOSIZE' was not declared in this scope
                                         WS_CHILD | CCS_TOP | TBSTYLE_WRAPABLE | BTNS_AUTOSIZE | BTNS_BUTTON,
                                                                                 ^
F:\Transferencias\opencv\sources\modules\highgui\src\window_w32.cpp:1853:97: error: 'BTNS_BUTTON' was not declared in this scope
                                         WS_CHILD | CCS_TOP | TBSTYLE_WRAPABLE | BTNS_AUTOSIZE | BTNS_BUTTON,
                                                                                                 ^
modules\highgui\CMakeFiles\opencv_highgui.dir\build.make:187: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_w32.cpp.obj' failed
mingw32-make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_w32.cpp.obj] Error 1
CMakeFiles\Makefile2:2230: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
mingw32-make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
Makefile:159: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

Any sugestions? Thanks, PN