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

v1.0.3 - Added pad_image (with custom padding support) and make_square_image methods for generating square images.

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.3.tar.gz (560.0 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.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opencv_extra-1.0.3.tar.gz
  • Upload date:
  • Size: 560.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for opencv_extra-1.0.3.tar.gz
Algorithm Hash digest
SHA256 409efc8c682d046223ab10849f16d8c16f918fd1559abe86b37e4807de31128d
MD5 85abe66d02e67ff6fda229d249983bc4
BLAKE2b-256 a6392cdb672e58cf27a47c18fe8a8b52333277b89a7bf93971519c9962a38a70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opencv_extra-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for opencv_extra-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a63487281dda20c5f5098fd0efcabe17a0e9c6d51781db8af3d769cb7b4f0fae
MD5 d512dda602f39fbad0bf00150a96643f
BLAKE2b-256 fffa8ee5e45987dce5f565f6c75caf032513df0c4cf6546719b4f1772212ea0d

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