measure the distance on the image
tkinter PIL math
Really simple, just load the library lib_gui, one example is given in image_distance.py
the interface looks like the following:
- click "Load Path"
- click "Load Image"
- set the real length of the reference object.
- click "set Reference Length"
- click "Calibrate", choose the positions of the reference object
- click "Start Measuring", measure the distance you want in the image by click your left mouse. need click four times, time 1: choose the first point, time 2: choose the second point, time 3: draw the line, time 4: draw the text (current index)
- export the file as '*.txt' file by clicking 'Exper result' button.
Undo will undo the last action.