Skip to main content

[PYTHON] cv2drawx

This is source code for the cv2drawx package project. This package includes new drawing features for opencv-python such as draw dash lines, rounded boxes, etc.

Sample code

Import packages

import cv2
import numpy as np
from cv2drawx.drawing_utils import text_box

Setup a blank cv2 window

frame = np.zeros((720, 1280, 3), dtype=np.uint8)
frame.fill(200)

Draw elements

while True:
    # =======================================
    # DRAW TEXT BOX
    # =======================================
    text_box(
        frame,
"""
Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet""",
        (50, 200),
        cv2.FONT_HERSHEY_SIMPLEX,
        2, (0, 0, 0), 2,
        (255, 180, 20),
        (0, 0, 0), 3, [20, 50, 300, 80],
        dash_size=10, dash_gap=10, border_radius=10
    )

    cv2.imshow("frame", frame)

    if cv2.waitKey(1) & 0xFF == 27:
        break

cv2.destroyAllWindows()

Result

result

Metadata

Release files for cv2drawx 0.1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cv2drawx 0.1.11
File Size Uploaded Provenance
cv2drawx-0.1.11.tar.gz 5.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cv2drawx 0.1.11
File Interpreter ABI Platform
cv2drawx-0.1.11-py3-none-any.whl Python 3 none any Details

Total release size: 12.2 kB

Release files / cv2drawx-0.1.11.tar.gz

Download URL cv2drawx-0.1.11.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
dcaa6e68fd1df45fca88ac298cc10fa716bbe46ace72448f1f0ddbec0fdf5585
BLAKE2b-256 checksum
How to use checksums
10d321082e463d19d91861df938a3755633b26bfaa46c6f45dea856c5d8f6107
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release files / cv2drawx-0.1.11-py3-none-any.whl

Download URL cv2drawx-0.1.11-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6d5d0e5a5b0fb3cade1ee31150aafa3891ca17e1fef3a6c7bfa0ef1b3953601
BLAKE2b-256 checksum
How to use checksums
a040f52087e41191ae0eff2ae131a14a1f320ae819a933e16c362b60e3705edc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Security for cv2drawx 0.1.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page