qiwx2012 / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

ProCamCalib - Stereo calibration, without projector. #262

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello, 

It seems that the calibration of two camera is not working, and causing the 
program to crash : impossible to close.

What steps will reproduce the problem?
In ProCamCalib :  
1. Plug in two cameras  (any video input)
2. No projector. 
3. Run the calibration

What is the expected output? What do you see instead?

Expected : Two video input. 
Result   : Two grey windows.

What version of the product are you using? On what operating system?

Running with ProCamCalibBin  0.3, OpenCV 2.4.3.  I also tried with a previous 
version, which ended with the same problem. I tried with OpenCV input, and 
OpenKinect input. The results are the same. 
It works perfectly if one projector is enabled with the same configuration.

Please provide any additional information below.

It is critical to calibrate an Infrared camera with another camera (such as a 
Kinect, with another camear), as the image from projectors is not infrared. 

Original issue reported on code.google.com by poqud...@gmail.com on 5 Dec 2012 at 1:57

GoogleCodeExporter commented 8 years ago
I'm pretty sure it worked at some point at least. Can you tell me what's the 
last version that works? thanks

Original comment by samuel.a...@gmail.com on 6 Dec 2012 at 1:38

GoogleCodeExporter commented 8 years ago
I tried all the versions compatible with my OpenCV installation (since Fev 
2011). None of it worked with two cameras. And all of them worked with two 
cameras and one projector. 

I will have a look in the code, I think there is a minor bug somewhere. 

Original comment by poqud...@gmail.com on 7 Dec 2012 at 1:29

GoogleCodeExporter commented 8 years ago
And this is on what OS?

Original comment by samuel.a...@gmail.com on 7 Dec 2012 at 1:41

GoogleCodeExporter commented 8 years ago
Linux x86 - Debian testing. 

Original comment by poqud...@gmail.com on 7 Dec 2012 at 3:48

GoogleCodeExporter commented 8 years ago
I think I found the problem. Here's an update that fixes this I think: 
http://code.google.com/p/javacv/source/detail?r=40a5625238c2838b5db5b17704ca4441
ce963b08
Can you try to rebuild `javacv.jar` by calling, for example, `mvn package 
-Djavacpp.skip=true` and let me know if all is good? thanks!

Original comment by samuel.a...@gmail.com on 15 Dec 2012 at 4:39

GoogleCodeExporter commented 8 years ago
I have a few observations with this new version : 

1. It works when using two identical cameras. In my case two PS Eye using 
OpenCV frameGrabber.  
It works with two different cameras with different resolutions, both using 
OpenCV frameGrabber.

2. I had many crashes with OpenKinectFramegrabber. Though, it seems to be 
working now... It was freezing after one or a few poses. 

Thanks for everything !

----- 

It would be nice to be able to calibrate a Kinect with this (or any device with 
multiple cameras). When I tried, I just had freezes and one crash. 

Original comment by poqud...@gmail.com on 15 Dec 2012 at 8:14

GoogleCodeExporter commented 8 years ago
It should work with Kinect sure. I'm not doing anything out of the ordinary or 
anything in OpenKinectFrameGrabber, so it's probably crashing somewhere in the 
freenect library or driver. Can you attach the settings file you use in 
ProCamCalib and the crash log? thanks!

Original comment by samuel.a...@gmail.com on 16 Dec 2012 at 4:07

GoogleCodeExporter commented 8 years ago
I guess it doesn't make sense to try to synchronize cameras that use different 
drivers. I can't think of a case where their timestamps would be related. I 
modified FrameGrabber.java again to account for that:
http://code.google.com/p/javacv/source/detail?r=87966338a936a31f8716bfa263bbd811
bb0c53fd
So it should work for your use case, let me know, thanks!

Original comment by samuel.a...@gmail.com on 23 Dec 2012 at 3:12

GoogleCodeExporter commented 8 years ago
I think I've pretty much covered all the issues with the latest changes. They 
have been included in the new release of ProCamCalib 0.4. Let me know if you 
still have issues with that! thanks again for reporting

Original comment by samuel.a...@gmail.com on 3 Mar 2013 at 12:23