By: Fitra Rahmamuliani
This program made for Image Processing Homework.
This program made using Python3 with some Python3 function. Please make sure to run this program using Python3.
Users will choose by themselves which paper is A4.
- Open your Terminal or Windows PowerShell
- Go to the folder of this program using
cd
- Run the python using command
python3 calculateDistance.py
and press enter. Make sure your image is on the same folder as the program. - Input your image name with the extension. For example
DSC_0300s.jpg
- First, let's set the position of A4 paper in the image. See the instruction on the top left corner.
Click TOP LEFT image of A4 paper
Click TOP RIGHT image of A4 paper
Click BOTTOM RIGHT image of A4 paper
Click BOTTOM LEFT image of A4 paper
- Second, click the 1st point that you want to calculate the distance for.
CLICK 1st point
CLICK 2nd point
- Press
q
button to end choosing.type q to END
- The window will be closed and open a new window of
Distance Result
. You can see the line between 2 points and the number. Or you can check your terminal and seeDistance: X mm
- Press anything to quit the windows.