Skip to main content

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

PyPI Python Tests Install Test Coverage Docs License: AGPL v3

Small cv2/Pillow image-processing utilities, extracted from the SciTeX ecosystem as a standalone package.

Install

pip install scitex-cv

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, 90); cv.flip(img, axis="horizontal")
cv.crop(img, x=10, y=10, w=100, h=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, value=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=[(0,0),(100,0),(100,100)])

Status

Standalone fork of scitex.cv. Only deps are numpy + opencv-python + Pillow. The umbrella package's scitex.cv import path is preserved via a sys.modules-alias bridge.

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

scitex_cv-0.1.2.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

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

scitex_cv-0.1.2-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file scitex_cv-0.1.2.tar.gz.

File metadata

  • Download URL: scitex_cv-0.1.2.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_cv-0.1.2.tar.gz
Algorithm Hash digest
SHA256 497ff79b80f8a69b2d2342487107aa4c87fa8ad7765d23bf8ba2517133390501
MD5 87d323a70b63d99c8240cdab9d44db85
BLAKE2b-256 e3a0472d024c628e5732149763a8b7fdcef5e0d773ea2fc26c1f4937c09e6b1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_cv-0.1.2.tar.gz:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-cv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scitex_cv-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: scitex_cv-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_cv-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bab993e025bf0c3b28c87c8dfa00a6a5fd73a2d638db7d28eab427eb945ef221
MD5 fc2acf7481c2d0ec756382c3f7fdc437
BLAKE2b-256 3350c3874e1ab30908c020436c0d730ae57a18bc83b0268dc7bdacfc353a5c7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_cv-0.1.2-py3-none-any.whl:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-cv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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