jsbroks / coco-annotator

:pencil2: Web-based image segmentation tool for object detection, localization, and keypoints
MIT License
2.11k stars 460 forks source link

Feature: DEXTR erase mode! #203

Open NicksonYap opened 5 years ago

NicksonYap commented 5 years ago

HI,

DEXTR seems to be working very well, even with missed areas, we can patch it up by selecting the 4 points again.

However, when extra areas are covered, we cannot use DEXTR to exclude the area.

An exclude/erase mode for DEXTR will be great!

Regards

Nickson

jsbroks commented 5 years ago

Should be easy to implement. Maybe when a user is holding a key down it will subtract

NicksonYap commented 5 years ago

That would work, but we should consider re-organising the tools into modes: Include / Exclude

Then we have a set of tools to use for the two modes.

In this case it is using DEXTR to Exclude (erase) and we can choose to use brushes or polygons to exclude too.

In fact i was considering a rather interesting feature: Using already-drawn polygons to Exclude. So means we can use other labels, or customize our own shape as an Eraser... (Aka Custom brushes for Exluding and Including)

Mainly to use other labels as an eraser, so we can easily eliminate overlaps (if needed) instead of erasing the overlaps manually.

PS: I'd hope to be able to submit some PR someday, just that I haven't gone deep to this project yet