Skip to main content

Stylized OpenCV rectangle and frame drawing helpers for detection overlays.

Project description

drawcv

drawcv is a lightweight Python package for drawing polished, style-rich bounding boxes with OpenCV.

Installation

pip install drawcv

Quick Start

import cv2
from drawcv import draw_visionframe_rectangle

image = cv2.imread("input.jpg")
draw_visionframe_rectangle(
    image=image,
    style_id="pro-clean-blue",
    coords=(80, 60, 280, 220),
)
cv2.imwrite("output.jpg", image)

Local Development

python -m venv .venv
.venv\Scripts\activate
pip install -e .[dev]

Build Distributions

python -m build

Artifacts are written to dist/.

Publish

TestPyPI:

twine upload --repository testpypi dist/*

PyPI:

twine upload dist/*

Set your credentials using either a ~/.pypirc file or TWINE_USERNAME/TWINE_PASSWORD.

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

drawcv-0.1.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

drawcv-0.1.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file drawcv-0.1.0.tar.gz.

File metadata

  • Download URL: drawcv-0.1.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for drawcv-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d541273eec33b22524d61487d00e63248f63e66ba2c4640df31521f13bbe5472
MD5 3694f005198ee15f59faa5937d0efdb9
BLAKE2b-256 fe089960f54e1b79faa9dd61ce39c81588f0e82ddfa33d0f3560c03a3b458417

See more details on using hashes here.

File details

Details for the file drawcv-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: drawcv-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for drawcv-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec50eece2cbcb715a050eae460be9e7a679053faacef0bcd9263d1347b84789b
MD5 de11045aa4c87bab94018f536ce26188
BLAKE2b-256 53b41bf0ff659fc5932b39321c55a486163dfb762a46b5fd308655444848eb22

See more details on using hashes here.

Supported by

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