pyROI — A simple roi selector built by python-opencv
Project description
opencv-roi
pyROI — A simple roi selector built by python-opencv
Installation
- from pypi
> pip install pyROI
- from github
> pip install -U git+https://github.com/lycantrope/pyROI
Usage
import pyROI
img_path = "luna.jpg"
img = cv2.imread(img_path)
# Support rect, circle, polygon, ellipse
rect_roi = pyROI.select(src = img, selector_type = "rect")
print(rect_roi)
# generate mask
mask = rect_roi.mask
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyROI-0.3.0.tar.gz
(11.0 kB
view details)
Built Distribution
pyroi-0.3.0-py2.py3-none-any.whl
(13.9 kB
view details)
File details
Details for the file pyROI-0.3.0.tar.gz
.
File metadata
- Download URL: pyROI-0.3.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c16672b9929b3a0fae7f2d73b5b4b99f5787f7617d4dc1687eb3be74bf5618a2 |
|
MD5 | 6831cad6a1fb1e574b770ac6daaa9180 |
|
BLAKE2b-256 | 65144cbdee2ccd34fa43e9bf898ceccb62855dae15b5cd4daf8a3a2e571fa747 |
File details
Details for the file pyroi-0.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pyroi-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca75eee61c25f2bfc1f8dc861815c6cc239a6353a48ab2a62943a7a49235e51b |
|
MD5 | fe4f85dba34615a4a6de233e8d2a3cfb |
|
BLAKE2b-256 | 26e10c910f3a55bb570846299df94b9a2fad766c6c9412761e0883a2eb55a7b9 |