Skip to main content

This package is built as a opencv utilities. Additional algorithms to write text and making boxes on the image.

Project description

OpenCV Extra Utilities

Table of Contents

About

This package is built as a opencv utilities. Additional algorithms to write text on the image without thinking about the image size. My algorithm will do it own its own.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installing

pip install opencv-extra

Usage

image = cv.imread("car.jpg", cv.IMREAD_COLOR)
cv.namedWindow("Image", cv.WINDOW_NORMAL)
image = put_text(image, "car", (0, 255, 0), (0, 0), True)
cv.imshow("Image", image)
cv.waitKey(0)

v1.0.1 - Added draw_label in this version

v1.0.2 - Added CaptureRead class in this version

from opencv_extra.capture_read_utils import CaptureRead
import cv2 as cv

cap = CaptureRead(path=0, mode="bgr")   # it will show the webcam feed
cap = CaptureRead(path="/path/to/folder", mode="bgr") # it will load all the images from the given folder
cap = CaptureRead(path="/path/to/video_file", mode="bgr") # it will load the video file

cv.namedWindow("image", cv.WINDOW_NORMAL)
for image in cap.next():
    cv.imshow("image", image)
    cv.waitKey(1)

Additional algorithms will be updated regularly, keep in touch with this python package.

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

opencv_extra-1.0.2.tar.gz (559.6 kB view details)

Uploaded Source

Built Distribution

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

opencv_extra-1.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file opencv_extra-1.0.2.tar.gz.

File metadata

  • Download URL: opencv_extra-1.0.2.tar.gz
  • Upload date:
  • Size: 559.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.13

File hashes

Hashes for opencv_extra-1.0.2.tar.gz
Algorithm Hash digest
SHA256 6537cfffb19e3d04a5ad8d78a94b93116d4adaa850c64a37c6c5dca379922328
MD5 04c319bbda3b918342260e4868a50e15
BLAKE2b-256 74521a909c6935c6a7543e928dfdc76f0b1d1e2881420621dc3ebe98e5afc42a

See more details on using hashes here.

File details

Details for the file opencv_extra-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: opencv_extra-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.13

File hashes

Hashes for opencv_extra-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a8c1f516f5f3850b7687383391c80e79ebca5b345dc2d8845a5b55de6557b62a
MD5 2354bec9579940fd14b44973ac839368
BLAKE2b-256 77b0a908fedadf3ff62f1645a213ae179251675ad14d4e537d260ff0fe1d018a

See more details on using hashes here.

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