Skip to main content

pyROI — A simple roi selector built by python-opencv

Project description

opencv-roi

pyROI — A simple roi selector built by python-opencv

Installation

> pip install -U git+https://github.com/lycantrope/pyROI

Usage

import pyROI

# Support rect, circle, polygon, ellipse
img_path = "luna.jpg"
img = cv2.imread(img_path)  
rect_roi = pyROI.select(src = img, selector_type =  "rect")
print(rect_roi)

Project details


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.0.tar.gz (10.3 kB view hashes)

Uploaded Source

Built Distribution

pyroi-0.2.0-py2.py3-none-any.whl (13.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page