These are the files/code of my camera calib using OpenCV-Python. These code files are not so much organized as I did not find spare time to clean the code or write a good documentation/tutorial.

lib

  • opencv 4.5.5
  • Pyqt5
  • yaml
  • Numpy

tab Calib Real time camera calibration tool

Calib matrixes, dist of camera from CHESSBOARD

  • Start Button : enable calib
  • Detect Corners: enable Corners detect
  • IGNORE: IGNORE image
  • CONFIRM: use image
  • Done : calib with num images take from camera

1

tab Calib World

  • Calib real world (Just XY ) from pixels position
  • Use 7 points
  • Step1: calculator position of points from realworld
  • Step2: calculator position of points from pixel
  • detect points Button: detecting a object pixel position,which will help to step2
  • calib Button: calib function
2.mp4

https://www.fdxlabs.com/calculate-x-y-z-real-world-coordinates-from-a-single-camera-using-opencv/

Tab Run Test

  • Run demo to detect objects with real-world-coordinates
3.mp4