scitex-cv
Small cv2-based image utilities — I/O, transform, filters, drawing.
Full Documentation · uv pip install scitex-cv[all]
Installation
pip install scitex-cv
Architecture
scitex_cv/
├── __init__.py ← public API (load, save, resize, blur, edge_detect, ...)
├── _io.py ← image I/O wrappers (PIL / OpenCV backends)
├── _transform.py ← geometric transforms (resize, crop, rotate)
├── _filters.py ← blur, sharpen, edge-detect filters
├── _draw.py ← annotation helpers (draw boxes, text, masks)
└── _ocr.py ← image → text (EasyOCR; optional `ocr` extra)
Thin, opinionated wrapper around PIL + OpenCV — every public name in
__init__.py re-exports from one of the five leaf modules above.
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]]))
# OCR (image → text; requires the optional `ocr` extra: pip install 'scitex-cv[ocr]')
cv.ocr("scan.png") # → recognized text (str)
cv.ocr(img, languages=("en",)) # in-memory array, English only
cv.ocr(img, detail=True) # → [(bbox, text, confidence), ...]
Demo
flowchart LR
F["input.png"] --> L["cv.load()"]
L --> R["cv.resize(scale=0.5)"]
R --> B["cv.blur(ksize=5)"]
B --> E["cv.edge_detect(method='canny')"]
E --> S["cv.save('edges.png')"]
S --> O["edges.png"]
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. Install via
the umbrella with pip install scitex[cv] to use as
scitex.cv (Python) or scitex cv ... (CLI).
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).
Metadata
Release files for scitex-cv 0.4.0
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 | |
|---|---|---|---|---|
| scitex_cv-0.4.0.tar.gz | 48.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scitex_cv-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 101.2 kB
Release files / scitex_cv-0.4.0.tar.gz
| Download URL | scitex_cv-0.4.0.tar.gz |
|---|---|
| Size | 48.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57ba8fa906af05e8b233e2bdb0af42582fcd20eca216a6d59674b4aa31603ab7
|
|
BLAKE2b-256 checksum How to use checksums |
a0a74ab29b3b7a04d2b6ada18a7e13a5e9028a9bb5bfcc793c47b8c418b652d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / scitex_cv-0.4.0-py3-none-any.whl
| Download URL | scitex_cv-0.4.0-py3-none-any.whl |
|---|---|
| Size | 52.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c280c96c094f130052b790ef62be2b5eecbe1fc5bc7dd14bdd1c1211cdb0b7d
|
|
BLAKE2b-256 checksum How to use checksums |
5147883ab962f724234e65cf3534b7beb9d825573a05ac980d0cb6ecec76b6bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for scitex-cv 0.4.0
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.