This a computer vision based calibration app whose applications range from measurement of dimensions of critical parts to robotic hand-eye calibration.
The following libraries and softwares need to be installed to run the code:
- Python3
- OpenCV
- Numpy
- PIL
- TKinter
- OptParse
- Math
- CSV
To start the app, run the following startscript:
./measure.sh
The script is structured in the following format:
python3 measurement.py -p <string Image-path> -s <float Scale-Factor> -t <string type("numpy","csv","tsv")> -c <int Space separated RGB code>
Press the Measure button to start measuring distances.
- Once in measure mode, select points on the displayed image using mouse clicks. This highlights the hole closest to the user’s choice. On choosing the second point, a line is drawn from start(Center of hole of start point) to goal (Center of hole of goal point) with the length of the line specified.
- Any clicks beyond that over-write the second point.
- The Clear button clears all the data and takes the user out of measure mode.
- The 'Generate' button saves all the points selected by the user in one session in the appropriate format.