jinjudnjs / javacv

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

flycaptureConvertImage() Error 2 #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Running the calibration
2. The entire calibration is done normally, when the last capture is done the 
error occurs.

What is the expected output? What do you see instead?
Expected to get the calibration matrices. Instead the calibration fails and 
 returns the error below.

Please provide any additional information below.

I am using windows 7, but i'm running all 32-bit software.

The error is reported as follows in NetBeans:

Sep 15, 2010 9:00:25 PM name.audet.samuel.procamcalib.CalibrationWorker 
doInBackground
SEVERE: Could not perform calibration
java.lang.Exception: flycaptureConvertImage() Error 2
        at name.audet.samuel.javacv.FlyCaptureFrameGrabber.grab(FlyCaptureFrameGrabber.java:411)
        at name.audet.samuel.javacv.FrameGrabber$Array.grab(FrameGrabber.java:238)
        at name.audet.samuel.procamcalib.CalibrationWorker.calibrateColor(CalibrationWorker.java:469)
        at name.audet.samuel.procamcalib.CalibrationWorker.doInBackground(CalibrationWorker.java:234)
        at javax.swing.SwingWorker$1.call(SwingWorker.java:277)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at javax.swing.SwingWorker.run(SwingWorker.java:316)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)

Original issue reported on code.google.com by andre01...@gmail.com on 15 Sep 2010 at 7:06

GoogleCodeExporter commented 9 years ago
It seems you are trying to calibrate the colors of a monochrome camera, or some 
other conversion your installation of flycapture does not support. So try to 
disable color calibration, and change the format of your camera, this is not a 
problem with JavaCV

Original comment by samuel.a...@gmail.com on 16 Sep 2010 at 12:54

GoogleCodeExporter commented 9 years ago
It was another camera issue (sigh), thank you for your reply.

I have another question, what model did you use for your calibration and 
distortion matrices? Can you point me to any documentation that explains what 
each value is? I have very little experience with such this.

thanks again.

Kind regards,
A.

Original comment by andre01...@gmail.com on 21 Sep 2010 at 6:47

GoogleCodeExporter commented 9 years ago
You can read all about it here:
http://vision.caltech.edu/bouguetj/calib_doc/

Original comment by samuel.a...@gmail.com on 22 Sep 2010 at 10:58