Ask Your Question

maxdoom's profile - activity

2020-09-13 10:41:09 -0600 received badge  Popular Question (source)
2019-01-26 13:21:47 -0600 received badge  Notable Question (source)
2018-10-08 03:17:13 -0600 received badge  Notable Question (source)
2018-03-12 19:45:59 -0600 received badge  Popular Question (source)
2018-01-10 20:41:35 -0600 received badge  Popular Question (source)
2014-10-11 04:41:32 -0600 commented question Device or resource busy

And what do you suggest I do? No Threads? How do I properly close the video stream?

2014-10-11 04:11:36 -0600 commented question Device or resource busy

Yeah I thought so, but how do I close it properly?

2014-10-11 03:34:00 -0600 commented question Device or resource busy

The 2 threads run fine if I don't use registerCameras(). I need to register them because I have 3 cameras and need to know which one is left or right.

2014-10-11 02:52:24 -0600 commented question Device or resource busy

It's done, pastbin link is up.

2014-10-11 01:00:50 -0600 commented question Stereo Vision and video capture and object detection

I don't understand what you're trying to do!?

2014-10-11 00:59:47 -0600 commented question Capture of 3D videos

I don't think you seem to understand how OpenCV works. Google if you find some source which may have an working algorithm. I think here you'll only get tips on how to write it yourself.

2014-10-11 00:16:34 -0600 asked a question Device or resource busy

Hi there,

I'm trying to write a program that uses 2 cameras. In the first step I open the cameras on by one for configuration (which is left, right, not to use and so on). After that I open the left and right camera each in on thread. I close the configuration with:

destroyWindow(id);

cap.release();

The Problem is after the configuration I get the following massage when I try to open the capturing:

  VIDEOIO ERROR: V4L/V4L2: VIDIOC_CROPCAP
    VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
    VIDIOC_REQBUFS: Device or resource busy
    VIDIOC_G_FMT: Bad file descriptor
    Unable to stop the stream.: Device or resource busy
    VIDIOC_G_FMT: Bad file descriptor

Another thing thats happening is that the camera window stays open for much to long. I put a sleep(60) after closing the video feed and the window stays open until the sleep is over. It's like the command is not even executed when the command is given.

Edit: Full Code in here: http://pastebin.com/MgYen8pL The important part is the main function and the registerCameras function.

2014-10-09 23:04:20 -0600 asked a question What is: vector<vector<Point2f> > imagePoints;

Hi there,

I am trying to understand the following Structure: vector<vector<Point2f> > imagePoints; What is a vector in OpenCV, I the documentation there was nothing under Basic Structures and so on. So i figured it must be the standard c++ vector. So I have an one-dimensional array filled with one-dimensional arrays but what does Point2f mean?

Thanks in Advance

2014-10-09 22:43:06 -0600 answered a question Setting up OpenCV2.4.10 with C++

I usually compile programms by exporting the path with: export LD_LIBRARY_PATH=/usr/local/lib and then compile with g++ pkg-config --cflags --libs opencv test.cpp -o test

So far I haven't figured out a way to do it otherwise. Hope that might help, good luck.

P.S. ups, you're using windows. Since then I think the commands won't work. I don't know how to run this on windows, sorry.

2014-10-05 18:09:05 -0600 received badge  Student (source)
2014-10-05 13:04:33 -0600 commented question Compiling Tutorial: error: ‘import’ does not name a type

Thanks for the information. I used you command and it worked. Since I don't know about python I didn't recognized it.

2014-10-05 00:37:17 -0600 asked a question Compiling Tutorial: error: ‘import’ does not name a type

Hi there,

my compiler complains that the imports in the following tutorial aren't correct: http://docs.opencv.org/trunk/doc/py_tutorials/py_gui/py_video_display/py_video_display.html

I compiled with g++, or is this a different kind of code? g++ pkg-config --cflags --libs opencv test.cpp -o test

The Massage: test.cpp:14:16: warning: character constant too long for its type [enabled by default] test.cpp:1:1: error: ‘import’ does not name a type

I was wondering what to do to compile it. Thanks in advance.

2014-10-04 23:46:14 -0600 asked a question Where do I find information about the methods of structures?

Hi there,

I was looking over some opencv code and wanted to know what the .depth() method of an mat object does. However I failed to find any reference. http://docs.opencv.org/modules/core/doc/basic_structures.html Lists the Mat Object but says nothing more than that it has methods.

Where do I look stuff like this up?

Thanks in advance.

2014-10-04 21:32:04 -0600 asked a question error while trying to compile opencv3

[ 95%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_undistort.cpp.o Linking CXX executable ../../bin/opencv_test_calib3d [ 95%] Built target opencv_test_calib3d make: * [all] Error 2

This is the Error I get while trying to compile (make -j4) OpenCV3 on Debian. Anyone an Idea whats wrong.

SOLVED: I previously change the java version from 1.6 to 1.7 using sudo update-alternatives --config java I changed it back and everything compiled sucessfully.

2014-10-04 01:51:20 -0600 commented question Compilation errror: XY was no declared in this scope

Nice you fixed it, thanks a lot. Btw thanks for the link, very useful stuff. Anyhow I'am new to OpenCV so I'll need to work through the tutorials.

2014-10-03 23:19:43 -0600 received badge  Editor (source)
2014-10-03 21:23:16 -0600 asked a question Compilation errror: XY was no declared in this scope

I there,

i was trying to follow this tutorial: http://docs.opencv.org/doc/tutorials/core/how_to_scan_images/how_to_scan_images.html#howtoscanimagesopencv and tried to compile the sample code given here: http://docs.opencv.org/_downloads/how_to_scan_images.cpp and get the following error:

wx@yz:~/Workspace/OpenCV/scan images$ g++ `pkg-config --cflags opencv` how_to_scan_images.cpp `pkg-config --libs opencv` -o test
how_to_scan_images.cpp: In function ‘int main(int, char**)’:
how_to_scan_images.cpp:38:29: error: ‘CV_LOAD_IMAGE_GRAYSCALE’ was not declared in this scope
how_to_scan_images.cpp:40:29: error: ‘CV_LOAD_IMAGE_COLOR’ was not declared in this scope

I was using the following compilation command

g++ `pkg-config --cflags opencv` how_to_scan_images.cpp `pkg-config --libs opencv` -o test

The Code itself is correct, so why do I still get this error. Edit: I'm using Debian Linux and OpenCV 3.

Thanks in advance!