Skip to content

Python-Opencv Script for select and save roi's (Segment) to JSON File

Notifications You must be signed in to change notification settings

Acuno41/roiSelector-opencv-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

roiSelector-opencv-python

roiSelector-opencv-python is a Python script for selecting and segmentin ROI's in images and saves in a JSON File. Currently working for only 1 segment per image.

Download

git clone https://github.com/Acuno41/roiSelector-opencv-python.git

Installation

Use the pip to install requirements.

pip3 install -r requirements.txt

Usage

python roiSelector.py --path images --ext jpg
print('[INFO] This is a ROI selector script for multiple images')
print('[INFO] Click the left button: select the point, right click: delete the last selected point')
print('[INFO] Press ‘S’ to determine the selection area and save it')
print('[INFO] Press ‘D’ to delete the selection area')
print('[INFO] Press ESC to quit')

Alt text

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

About

Python-Opencv Script for select and save roi's (Segment) to JSON File

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages