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.2.tar.gz
(10.0 kB
view hashes)
Built Distribution
pyroi-0.2.2-py2.py3-none-any.whl
(13.6 kB
view hashes)
Close
Hashes for pyroi-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63d26b6e7b71bb0a92a629039f9026e183b420dc0c02909d54dbce03782ffa56 |
|
MD5 | adb4195fe4f7336a03e9414cd43b07d3 |
|
BLAKE2b-256 | 7822cb5d8f1b4ee1e1572e7b32b940bb60ca5a8b1e2969e3c9ec1817b9d208b5 |