Creates a rectangle around a center point
$pip install cv2-rectangle-around-center
from cv2_rectangle_around_center import line_rectangle_center, rectangle_center
# Allowed image formats: url/path/buffer/base64/PIL/np
im1 = line_rectangle_center(
image=r"https://raw.githubusercontent.com/hansalemaos/screenshots/main/diff.png",
center=(150, 150),
width=200,
height=280,
thickness=6,
color1=(255, 0, 0),
color2=(255, 255, 0),
color3=(255, 0, 255),
color4=(0, 255, 255),
save_path="f:\\recta\\lines.png",
)
im2 = rectangle_center(
image=r"https://raw.githubusercontent.com/hansalemaos/screenshots/main/diff.png",
center=(150, 150),
width=200,
height=280,
thickness=6,
color=(255, 0, 0),
save_path="f:\\recta\\rect1.png",
)
im3 = rectangle_center(
image=r"https://raw.githubusercontent.com/hansalemaos/screenshots/main/diff.png",
center=(150, 150),
width=200,
height=280,
thickness=-1,
color=(255, 255, 0),
save_path="f:\\recta\\rect2.png",
)
Metadata
Release files for cv2-rectangle-around-center 0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cv2_rectangle_around_center-0.10.tar.gz | 3.6 kB | Without provenance | Details for cv2_rectangle_around_center-0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cv2_rectangle_around_center-0.10-py3-none-any.whl | Python 3 | none | any | Details for cv2_rectangle_around_center-0.10-py3-none-any.whl |
Total release size: 8.9 kB
Release files / cv2_rectangle_around_center-0.10.tar.gz
| Download URL | cv2_rectangle_around_center-0.10.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9465807e650c40624c1894cc0203b470581bf7168e5fcf62e69136b65119bc0a
|
|
BLAKE2b-256 checksum How to use checksums |
50110edc3839ae9d92c91317d9aa8369b04fab9861a55a9ea24ea1a2ba495810
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / cv2_rectangle_around_center-0.10-py3-none-any.whl
| Download URL | cv2_rectangle_around_center-0.10-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47634b1fcfafb279fd9c1c98fcb786cc3ae12462bf5bf79d5003770c4449b05f
|
|
BLAKE2b-256 checksum How to use checksums |
ae009e9fff1493c38f128cb26584d01798d84a2b09cf83eaa0004111094aead9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for cv2-rectangle-around-center 0.10
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.