I am using OpenCV 3.2.0's example project for achieving CameraCalibration. I have a chessboard checker printed which I use to check for a 4 x 6 pattern of checkers.
For the sample image, I use the following: [C:\fakepath\pattern.png](/upfiles/15427084752483776.png)
The sample project is provided with the OpenCV Android SDK libraries directly from the OpenCV page: https://opencv.org/releases.html
or simply download the version (3.2.0) that I am using: https://sourceforge.net/projects/opencvlibrary/files/opencv-android/3.4.2/opencv-3.4.2-android-sdk.zip/download
To locate the sample project, select: opencv-3.2.0-android-sdk.zip > OpenCV-android-sdk > samples > camera-calibration
import the project camera-calibration. I have also attached the checkerboard sample images that I used with the project.
When I run the project, it computes NAN for (fx and fy) of the CameraMatrix as well as (k1 and k2) of the DistortionCoefficients.
↧