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.7.tar.gz
(10.9 kB
view hashes)
Built Distribution
pyroi-0.2.7-py2.py3-none-any.whl
(13.8 kB
view hashes)
Close
Hashes for pyroi-0.2.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fbbda3e056a7140eaadd3bb5eb79aa3ba5d0417965be72c9db35c6a9bbca996 |
|
MD5 | d3f8132567da95159e10571d1f89bb24 |
|
BLAKE2b-256 | df0158e9d06914d5a5b35b683be0dade445305c9985d8d80f6b1b949b85c22a7 |