Ask Your Question

Miguel Lorenzo's profile - activity

2018-08-22 09:26:33 -0500 received badge  Enthusiast
2018-08-09 13:52:21 -0500 asked a question loading tensorflow model without .pbtxt file

loading tensorflow model without .pbtxt file Hi, complete DNN newbie here. I'm loading opencv_face_detector_uint8.pb wit

2018-04-06 08:49:47 -0500 received badge  Student (source)
2015-09-08 15:46:55 -0500 received badge  Necromancer (source)
2015-03-15 01:55:32 -0500 received badge  Supporter (source)
2015-03-15 01:51:09 -0500 asked a question Eclipse CDT Documentation & could not be resolved error

Hello, I just switched from Code::Blocks to Eclipse for OpenCV development. To check if I set up the environment properly, I ran a test program:


As you can see, the code compiles fine and correctly transposes a Mat object. It also displays my webcam feed appropiately until 'q' is pressed.

However, in the source code, when I hover at VideoCapture, I get the message: Type 'VideoCapture' could not be resolved. And over imshow I get: Invalid arguments ' Candidates are: void imshow(const ? &, ?) '

And if I hover above either Mat or Mat_ I get the very nice documentation of those classes, which is extremely helpful. How do I make this documentation show up for the error-marked class and method? In fact, how is this documentation called, and why is it not in Code::Blocks?


Why do these errors show, but the program compiles perfectly? I apologize if these are noobish questions but the sooner I understand them the best.

My project configuration is as following:

Compiler Linker

2015-03-09 14:00:19 -0500 answered a question opencv_traincascade crash without explanation

Hello i'd just like to comment something:

I had the same problem, using 60x20 window size, and my problem was that I had recently installed MinGW w64 on my system, and had deleted my old path to MinGW32/bin in my PATH env variable, to replace it with the 64 one. Since my openCV had been built using the old mingw, I suppose there were issues. As soon as I reinstated the old /bin directory in my system path, my problem was fixed.

2015-02-27 19:30:39 -0500 commented question Java Link error when compiling from console (2.4.9)

I haven't, however when I want to add external jar's and dll's i've done that and it's worked. I did the same thing with Jinput ( access to joysticks) and rtxSerial (serial comm). And I can run those projects from the command line. I wonder what the difference is between OpenCV java implementation and any other library.

2015-02-27 13:25:08 -0500 asked a question Java Link error when compiling from console (2.4.9)

Hi, when I try to compile and run a basic java program using openCV I get Link errors, however it compiles just fine. I've added opencv_java249.dll to my jre/bin folder, and opencv-249.jar to jre/lib/ext. My java version is 1.8.0_31 I can run java programs using openCV with eclipse without problems, importing the library as suggested in the documentation. The folder in which my source code is, contains also the opencv_java249.dll (although i really ignore if that helps)

import org.opencv.core.Core; import org.opencv.core.Mat; import org.opencv.core.MatOfRect; import org.opencv.core.Point; import org.opencv.core.Rect; import org.opencv.core.Scalar;

public class Test {

public static void main(String[] args) {

            Mat mm = new Mat();


When running, the exception I get is:

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_Mat()J at org.opencv.core.Mat.n_Mat(Native Method) at org.opencv.core.Mat.<init>( at Test.main(

Exceptions also happen if I try to access another Class, such as CascadeClassifier, so it is really a linker problem.

I hope someone can help.


2014-09-21 13:20:39 -0500 commented question Cannot compile OpenCV 3.0

mingw32-make: * [all] Error 2

2014-09-21 13:20:03 -0500 commented question Cannot compile OpenCV 3.0

[ 32%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/umatrix.cpp.obj [ 32%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/opencl_kernels_core.cpp.obj Linking CXX shared library ....\bin\libopencv_core300.dll c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lRunTmChk collect2.exe: error: ld returned 1 exit status modules\core\CMakeFiles\opencv_core.dir\build.make:1260: recipe for target 'bin/libopencv_core300.dll' failed mingw32-make[2]: * [bin/libopencv_core300.dll] Error 1 CMakeFiles\Makefile2:1334: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed mingw32-make[1]: * [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 Makefile:135: recipe for target 'all' failed

2014-09-21 13:13:59 -0500 commented question Cannot compile OpenCV 3.0

I have the same problem. I'm running Windows7 32 bits.

First i get the following warning:

[ 31%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.obj C:\opencv3alfa\opencv\sources\modules\core\src\system.cpp: In function 'BOOL cv::DllMain(HINSTANCE, DWORD, LPVOID)': C:\opencv3alfa\opencv\sources\modules\core\src\system.cpp:918:13: warning: no previous declaration for 'BOOL cv::DllMain(HINSTANCE, DWORD, L PVOID)' [-Wmissing-declarations] BOOL WINAPI DllMain(HINSTANCE, DWORD fdwReason, LPVOID lpReserved) ^


[ 31%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/tables.cpp.obj [ 32%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/types.cpp.obj