https://github.com/coolmunzi/roi_selection
Select polygonal region of interest on image using opencv and store the selection coordinates in csv file.
https://github.com/coolmunzi/roi_selection
Last synced: 3 months ago
JSON representation
Select polygonal region of interest on image using opencv and store the selection coordinates in csv file.
- Host: GitHub
- URL: https://github.com/coolmunzi/roi_selection
- Owner: coolmunzi
- Created: 2021-01-22T04:04:55.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-22T04:59:15.000Z (over 5 years ago)
- Last Synced: 2025-01-21T00:50:51.191Z (over 1 year ago)
- Language: Python
- Size: 14 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **Introduction**
Roi selection tool allows you to select the region of interest of your
choice using simple mouse click. x & y coordinates of your mouse clicks are
then stored in a csv file at the end. The produced csv file can be used for
computer vision based application development.
# **Demo**

# **Usage**
1. Clone the repo: `$git clone https://github.com/coolmunzi/roi_selection`
2. Create a virtual environment: `$conda create -n roi_selection python=3.6`
3. Install the dependencies: `$pip install -r requirements.txt`
4. Paste the image of your interest in the cloned directory and rename it to 'image.jpg'
5. Run the project: `$python roi_selection.py`
6. Select the region of your interest using _left click_ of the mouse
7. Once you have selected a polygonal shaped region of interest, click _middle button_ in mouse.
8. Polygonal Region of interest selected by you will be shown in an opencv window and (x,y) coordinates
of points clicked will be saved in a csv file named 'roi_coordinates.csv'