项目作者: tamasino52

项目描述 :
Segmentation masking tool using watershed transform.
高级语言: Python
项目地址: git://github.com/tamasino52/Masking_Tool.git
创建时间: 2020-03-03T07:03:14Z
项目社区:https://github.com/tamasino52/Masking_Tool

开源协议:

下载


Masking_Tool

Segmentation masking tool using watershed transform. Draw your object easily!

Requirement

You should move to ‘Masking_Tool’ folder, then input this command on console.

  1. pip install -r requirement.txt

Open file

After download all library, open python file according to language.

  1. // English
  2. python main.py
  3. // Korean
  4. python main.py --korean

How to use

  1. Select your Image folder path



  2. Select folder path where you wanna save mask



  3. In Brush Setting, you can change brush thickness and colors. You can control thickness by mouse wheel Too, also control colors by keyboard 1,2,3,4,5,6,7,8,9,0,-,=



  4. You can move to other images to press this button and dial. Check combobox if you want it to be saved automatically every time you move to the next image. Also you can control all of these things in keyboard. (KEY LEFT, KEY RIGHT, KEY SPACE) Be careful not to save automatically when using dials.



  5. Press Save Image button to save mask on Mask Folder you choose. If you mess up the picture, press the Repatin Image button to redraw it. Also you can control all of these things in keyboard. (KEY S, KEY R)



  6. Paint and Enjoy!



Caution

In your Image folder, It does not work if there are files other than images. This program does not guarantee that JPG, PNG, GIF, JPEG files or other image formats are supported. Mask files are always stored in the same format as image files. We developed in Python 3.6 and did not test running in other versions. If you leave a comment because of a problem while using it, I will correct it. Thanks.

Update

It used to be 12 colors, but now it’s 21 colors. Previously, the stored mask type was the same as the existing image type. However, we found a bug with mixed colors in the edges and modified it to be stored only in a bitmap file.