Skip to content

Latest commit

 

History

History
139 lines (126 loc) · 8.65 KB

example.md

File metadata and controls

139 lines (126 loc) · 8.65 KB

Create Checkerboard Calibration Video

  1. Prepare checker board
    example checkboard
  2. Checkerboard squares must be of equal size, measure the distance between each square
  3. Ensure that the checkboard is perfectly flat throughout the process. A solid backing is required if it's a printed paper, so that it doesn't bend when it is being moved around.
  4. Move the checkerboard to cover the entire video field of view, move it over all pixels
  5. All the checkerboard intersection points need to be in the image frame to be counted as a proper detection.
  6. Focus on covering all the corners and side which are more difficult

  1. The goal is to have the checkerboard cover all the pixels in the video frame image with all the different position, each color shows one set of checkerboard:
    coverage results

  2. Example Video:
    Example Checkerboard Video

Example of checkboard video frames needed

example_results/Vid_20131219_105014_small_180p_s10_raw

Calibrate the Video File

  1. Create directory called CameraCalibration on your desktop
  2. Put all the videos you want to analyse in that director
  3. Install Julia 1.7.2 (https://julialang.org/downloads/oldreleases/): Windows 64bits, MacOS M1, MacOS Intel
  4. start julia
  5. Install this CameraCalibration package:
using Pkg
Pkg.add(url="https://github.com/AbelHo/CameraCalibration.jl")
using CameraCalibration
  1. This command will automatically search for the directory(Desktop/CameraCalibration) and process all the videos in it
calibrate_video_checkerboard()
  1. If the checkerboard rows and columns number is different than the above example, change the following [4,6] to [row,column]
calibrate_video_checkerboard([4,6]);
  1. After processing the video it will output the following to show you how well you have covered the checkerboard over the entire image pixel:
    coverage results

  2. This will show you the selected good images and the checkerboard coverage:
    selected coverage

Example result of checkerboard detection:

The calibration will select the best images required as shown below and show a yellow dot on the detected checkerboard intersection
example_results/Vid_20131219_105014_small_180p_s10

Further Settings

Input Arguments

  • [4 rows, 6 columns]
  • inpput video filepath
  • results directory
    ;
  • skipnumber of image frame in the video
calibrate_video_checkerboard([4,6],"Vid_20131219_105014_small_180p.mp4","/Users/USERNAME/Desktop/CameraCalibration/results"; numskipframe=10);

Calibrate and send result to default CameraCalibration directory

without skipping any video frame

calibrate_video_checkerboard([4,6],"Vid_20131219_105014_small_180p.mp4");

Calibrate and send result to default CameraCalibration directory

  • without skipping any video frame
  • calibrate all video files in directory username/Desktop/CameraCalibration
calibrate_video_checkerboard([4,6]);