Skip to content

Added camera calibration sample for android#1070

Merged
opencv-pushbot merged 1 commit intoopencv:2.4from
Daniil-Osokin:calibrationSampleAndroid
Jul 30, 2013
Merged

Added camera calibration sample for android#1070
opencv-pushbot merged 1 commit intoopencv:2.4from
Daniil-Osokin:calibrationSampleAndroid

Conversation

@Daniil-Osokin
Copy link
Copy Markdown

Added camera calibration sample for android. It is useful for pinhole cameras. Sample based on "Camera calibration With OpenCV" tutorial (http://docs.opencv.org/trunk/doc/tutorials/calib3d/camera_calibration/camera_calibration.html). It uses standard OpenCV asymmetric circles grid patern 11x4 (https://github.com/Itseez/opencv/blob/2.4/doc/acircles_pattern.png). The results are the camera matrix and 5 distortion coefficients.

When pattern is recognized it's highlighted. Tap on highlighted pattern, to capture pattern corners for calibration. When you've captured necessary amount of pattern corners, press "Calibrate" button for performing camera calibration. Results are logged in current version.

Going to add next features:

  1. Display calibration error and save calibration results.
  2. Show undistorted preview.
  3. Show comparison real/undistorted view: half screen for every.
  4. Add help with description of calibration process and tips.

@ghost ghost assigned asmorkalov Jul 2, 2013
@kirill-korniakov
Copy link
Copy Markdown

Alexander, could you please check it? We can also ask Ivan to try it if you want.

@mdim
Copy link
Copy Markdown
Contributor

mdim commented Jul 2, 2013

@asmorkalov could you please review this PR?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix formatting here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, thanks. Will update.

@SeninAndrew
Copy link
Copy Markdown
Contributor

@Daniil-Osokin Daniil, just wanted to make sure you don't forget about this PR which is 2 weeks old at the moment. Are you planning to send a fix?

@Daniil-Osokin
Copy link
Copy Markdown
Author

@SeninAndrew Thanks, I was on vacation these days, but now I'm working on it.

@asmorkalov
Copy link
Copy Markdown
Contributor

Cool sample! It can be useful as base for other applications! :shipit:

@opencv-pushbot opencv-pushbot merged commit 23c802b into opencv:2.4 Jul 30, 2013
@SpecLad SpecLad mentioned this pull request Aug 6, 2013
@cbodenst
Copy link
Copy Markdown

cbodenst commented Oct 2, 2013

Hi,
i tried to open the project in eclipse and run it on my phone, but eclipse said me that the gen folder is missing.
How can i fix this or can u give me a link to the apk?
Using Windows 8 x64.

@Daniil-Osokin Daniil-Osokin deleted the calibrationSampleAndroid branch October 2, 2013 09:29
@Daniil-Osokin
Copy link
Copy Markdown
Author

@Crossfire75 Just create a new android project in eclipse, copy & past sample's code, and run it in your device. Better place to ask such things is OpenCV's Q&A site: www.answers.opencv.org.

@VineetTambe
Copy link
Copy Markdown

Hey, I am is there example out there for camera calibration using chessboard pattern?

savuor pushed a commit to nickyu-zhu/opencv that referenced this pull request Oct 27, 2023
Test data for half pixel NN resize from ONNX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants