Work flow
- Run cameraCalibration.py to obtain camera matrix.
- Then run initial_perspective_calibration.py to find GSD
Run find_pixel.py
- Define image path
- Set GSD (You may calculate the dedicated GSD from excel sheet or GSDcal.py)
- Define working distance (unchanged by default)
- Run the program
- Left click the mouse for the first point you want to measure
- Right click the mouse for the second point you want to measure, the distance of two points will be shown on the image
- Click the middle button of your mouse to reload the original image
- Measure the distance by going through step 4-6 again
- Press Enter to end the process and destroy window