Small cv2/Pillow image-processing utilities (load/save, resize/rotate/crop, blur/sharpen/edge, drawing) — standalone module from the SciTeX ecosystem
Project description
scitex-cv
Small cv2-based image utilities — I/O, transform, filters, drawing.
Full Documentation · pip install scitex-cv
Installation
pip install scitex-cv
Quick Start
import scitex_cv as cv
img = cv.load("input.png")
img = cv.resize(img, scale=0.5)
img = cv.blur(img, ksize=5)
edges = cv.edge_detect(img, method="canny")
cv.save(edges, "edges.png")
1 Interfaces
Python API
import scitex_cv as cv
# I/O
img = cv.load("input.png")
cv.save(img, "out.png")
gray = cv.to_gray(img); rgb = cv.to_rgb(img); bgr = cv.to_bgr(img)
# Transform
cv.resize(img, scale=0.5)
cv.rotate(img, angle=90)
cv.flip(img, direction="horizontal")
cv.crop(img, x=10, y=10, width=100, height=100)
cv.pad(img, top=10, bottom=10, left=10, right=10)
# Filters
cv.blur(img, ksize=5); cv.sharpen(img)
cv.edge_detect(img, method="canny")
cv.threshold(img, thresh=128); cv.denoise(img)
# Drawing
cv.rectangle(img, (5, 5), (30, 30), color=(0, 255, 0))
cv.circle(img, (50, 50), radius=10)
cv.line(img, (0, 0), (100, 100))
cv.arrow(img, (0, 0), (50, 50))
cv.text(img, "label", (10, 30))
cv.polylines(img, points=np.array([[0, 0], [100, 0], [100, 100]]))
Status
Standalone fork of scitex.cv. Only deps are numpy + opencv-python.
The umbrella package's scitex.cv import path is preserved via a
sys.modules-alias bridge.
Part of SciTeX
scitex-cv is part of SciTeX.
Four Freedoms for Research
- The freedom to run your research anywhere — your machine, your terms.
- The freedom to study how every step works — from raw data to final manuscript.
- The freedom to redistribute your workflows, not just your papers.
- The freedom to modify any module and share improvements with the community.
AGPL-3.0 — because we believe research infrastructure deserves the same freedoms as the software it runs on.
License
AGPL-3.0-only (see LICENSE).
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scitex_cv-0.1.3.tar.gz.
File metadata
- Download URL: scitex_cv-0.1.3.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d421fd5009fc55d5c669f35fc687c71f8e02d9e66d6fd522dc26a52deede0fe4
|
|
| MD5 |
d2e2d62ef6ae68c11189e31f9fe44d7b
|
|
| BLAKE2b-256 |
63044dabcc0c7a11982aab28a1175e058d296a3ecb109dfd39a8176a58c49690
|
Provenance
The following attestation bundles were made for scitex_cv-0.1.3.tar.gz:
Publisher:
publish-pypi.yml on ywatanabe1989/scitex-cv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scitex_cv-0.1.3.tar.gz -
Subject digest:
d421fd5009fc55d5c669f35fc687c71f8e02d9e66d6fd522dc26a52deede0fe4 - Sigstore transparency entry: 1417398772
- Sigstore integration time:
-
Permalink:
ywatanabe1989/scitex-cv@0cf9e1192f47b3b6317bd1e934e7acb3fd612ad4 -
Branch / Tag:
refs/heads/develop - Owner: https://github.com/ywatanabe1989
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@0cf9e1192f47b3b6317bd1e934e7acb3fd612ad4 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file scitex_cv-0.1.3-py3-none-any.whl.
File metadata
- Download URL: scitex_cv-0.1.3-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db2887c1f11e0a90d1c2a09fcced3d1b4d9462acf7c3bd9394ef7c4770381e58
|
|
| MD5 |
ddb0cf6f59ba90ecd97d1e2db253b04f
|
|
| BLAKE2b-256 |
13a6b26b5904c335768be47cf35a2e3a781a3acb106a4f1443cea6660be12e5d
|
Provenance
The following attestation bundles were made for scitex_cv-0.1.3-py3-none-any.whl:
Publisher:
publish-pypi.yml on ywatanabe1989/scitex-cv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scitex_cv-0.1.3-py3-none-any.whl -
Subject digest:
db2887c1f11e0a90d1c2a09fcced3d1b4d9462acf7c3bd9394ef7c4770381e58 - Sigstore transparency entry: 1417398797
- Sigstore integration time:
-
Permalink:
ywatanabe1989/scitex-cv@0cf9e1192f47b3b6317bd1e934e7acb3fd612ad4 -
Branch / Tag:
refs/heads/develop - Owner: https://github.com/ywatanabe1989
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@0cf9e1192f47b3b6317bd1e934e7acb3fd612ad4 -
Trigger Event:
workflow_dispatch
-
Statement type: