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.2.1.tar.gz
(10.0 kB
view hashes)
Built Distribution
pyroi-0.2.1-py2.py3-none-any.whl
(13.5 kB
view hashes)
Close
Hashes for pyroi-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f72a93c12ad9fc3658de597501a2a568e9caece3ffb8e75983fc28ce76fcc78 |
|
MD5 | 8d3187c4f69d7749757f1a6157733006 |
|
BLAKE2b-256 | dc71b9d28780508f34955f25687d3feb373c72f7b58ab77df8bdb3b199807685 |