Program 1 performs feature extraction from an input picture based on 2D image points and corresponding 3D world points. Main purpose:
- Generate chessboard features automatically using OpenCV
- Manually select features through mouse click
Program 2 performs non-planar camera calibration using the feature points provided in the input file (3D world points and corresponding 2D image points). Main purpose:
- Non-planar Camera Calibration
- Mean Square Error between known points and computed points
- Random Sample Consensus (RANSAC) algorithm for projection matrix
- Testing with different noise percentages
Programs were implemented using Python and OpenCV. Refer the report for further implementation details, format of input files, and instructions to run the code:
View Report
- Input File Example:
- Features Extracted:
- Non-planar Camara Calibration Example:
- Non-planar Camara Calibration with RANSAC using noisy data Example:
- For more noisy data, we get huge mean square error with RANSAC as it fails completely. This is because of 2 main reasons:
- RANSAC does not work well with low inlier ratios as every point in the dataset gets a vote just for being in the model. This makes the model more robust towards outliers. So, we need more inliers and less outlier for RANSAC to work properly. It does not work well as especially when there are more than 50% outliers.
- RANSAC is also not reliable when there are a lot of parameters to tune. Here, we have 12 parameters which makes it more complicated.