04-16-2020 08:23 PM
I would like to use a checkerboard grid, like a chessboard, to obtain the calibration parameters for the stereo view. Can anybody help me? There is the possibility to input the calibration data performed outside Labview?
04-16-2020 09:48 PM
I'm unsure what it is you are attempting to do. Do you have a reference for the algorithm you want to perform? Is the "checkered grid" a physical object whose image you acquire with one or two cameras? Is it something you want to generate as an IMAQ image and use in some algorithm (what algorithm)?
Bob Schor
04-16-2020 10:34 PM
Bob_Schor. I appreciate the attention. I have several images taken with two cameras that I would like to analyze. The calibration of the stereo system was performed, using MATLAB, with a chessboard. So, I have two options at the moment to generate the depth map of these scenes: use some VI that learns the camera model from a chess board or find some way to input the intrinsic and extrinsic parameters, that I know, in the stereo session of my VI. I don't have the cameras now, but I would need to have the VI that performs the depth map when joining the devices.
04-17-2020 06:52 AM
OpenCV has functions for this... Not sure if that helps. You can use OCV from Python... And Python from LabVIEW 😁.
https://docs.opencv.org/2.4/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html
04-17-2020 08:11 AM
It is a possibility. I had'n thought this way. I knew I could use Matlab from Labview but not Python. I will analyze that approach. Thank you.
04-17-2020 08:22 AM
I am working on an open\free OpenCV library for LabVIEW.
Those functions are advanced though, and where simple functions can be used directly from the OCV dll, advanced functions will need a wrapper. I'm not that far in the process. A few more months is optimistic 😒.
04-17-2020 08:32 AM
Really? Who am I to try? I couldn't even install OCV.
04-17-2020 08:44 AM
From Python it doesn't seem too hard: py_setup_in_windows. Of course if you're not familiar with Python there's a learning curve.
There's also OpenCVSharp, one of the OCV .NET wrappers, but you still have to figure out the .net<>LV interface. And, IIRC, it's only has some of the advanced stuff. Checkerboard calibration is there, but 3D I don't know. It doesn't support OCV GPU features well, AFAIK.