This tool helps to get the distance on the image with the reference pixels.
If you have never run the python code before, strongly recommend you to install anaconda. It will make the installation more simple. All the command
python=3.6
matplotlib
numpy
- basic function
- UI
- load image from directory
Run 'anaconda prompt.exe'
Get the root to this repo directory(using a command like 'cd D:\xx\xx\Markline')
Run the code by
python mark_line_demo.py [the path of your image, you can drag the picture to the prompt to add the path]
And you can test by run
python mark_line_demo.py ./data/bone.jpeg
Draw the reference line. Click two points to get a line. In the example, the line was drawn on the needle. (the needle length is set to 5cm)
Press B on your keyboard. Click two points to draw the line on the object you want to know the length. (We may mention it as Baseline after)
When drawing the line. Press J to freeze the line. Combined with Zoom-In to get a precision point. (Press J again to activate drawing)
(Press Esc and you can restart drawing)
(Press X and the result will be saved on folder './data/result')
MIT License
This tool is created for my best friend - Yipeng Lin. It was used to collect the medical data. More details in https://journals.sagepub.com/doi/full/10.1177/2325967120923950