https://github.com/kvdomingo/image-segment
Conversion of kvdomingo/AP186 Activity 7 (Image Segmentation) into a standalone Python module
https://github.com/kvdomingo/image-segment
Last synced: 3 months ago
JSON representation
Conversion of kvdomingo/AP186 Activity 7 (Image Segmentation) into a standalone Python module
- Host: GitHub
- URL: https://github.com/kvdomingo/image-segment
- Owner: kvdomingo
- Created: 2022-01-22T11:57:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-22T12:21:32.000Z (over 3 years ago)
- Last Synced: 2025-01-04T06:24:13.378Z (5 months ago)
- Language: Python
- Homepage:
- Size: 920 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image Segmentation
## Background
This script uses two algorithms to perform image segmentation:
parametric segmentation via probability distribution estimation, and
non-parametric segmentation via histogram backprojection.Further reading: [Activity 7: Image Segmentation](https://kvdomingo.xyz/svip/ap186/image-segmentation).
## Requirements
- Python 3.10 or later## Setup
1. Clone the repo & install requirements
```shell
pip install -r requirements.txt
```
2. Run script
```shell
python main.py
```## Using
1. Select region of interest by dragging a rectangle over the image
2. Press c on your keyboard to preview the ROI.

3. Press c again to perform parametric & non-parametric segmentation.
