/simple-AR

camera calibration & PnP

Primary LanguagePythonMIT LicenseMIT

simple-AR

camera calibration & PnP

  • Very simple AR using camera calibration and PnP
  • Camera calibration : find intrinsic matrix and distortion coefficient, parameters of camera
  • PnP : Pose estimation using 3D-2D correspondences
  • If you wanna use with your own camera, you should change the camera matrix and distortion coefficient (please follow the insturction in the source code)

Result of camera calibration

  • K : intrinsic matrix
[[1.05762127e+03 0.00000000e+00 3.60598208e+02]
[0.00000000e+00 1.05673443e+03 6.22182250e+02]
[0.00000000e+00 0.00000000e+00 1.00000000e+00]]
  • Dist_coef : distortion coefficient
[ 2.98849136e-01 -2.60614373e+00 -4.62963775e-04 -2.90435892e-03 8.67139039e+00]

Result

camera_calibration

pose_estimation

Source