For the convenience of starting the examples, we recommend you to install Anaconda and PyCharm packages on your PC. Link to the article with a detailed description.
The project uses: Python 3.х, libraries pyQT5, scikit-image, opencv 3, NumPy.
For the correct functioning of the program segmentation_tool.py, you need to do the following steps (for Windows):
Create dependencies between Python 3, pyQT5, package scikit-image and OpenCV 3.
1 Press the key combination Win + R, enter the command cmd in the appeared window (call the command line)
2 Create a python 35 environment with the command:
conda create –n python35 python=3.5 anaconda
3 Activate the python 35 environment with the command:
activate python 35
4 Now you can check the version of python using the command
python --version
5 Now you need to install the necessary libraries for work:
OpenCV:
conda install -c conda-forge opencv
scikit-image:
pip install scikit-image or conda install -c conda-forge scikit-image
NumPy:
pip install numpy
pyQT5: link to the official website.
Next, you need to clone files from repository and run the program in PyCharm.
Example of program operation:
Youtube Video of Segmentation-Tool usage by Maxim Shchendrygin: