Skip to main content

# OpenCV Extras cv2-extras (cv2x) is a Python library for higher level functions used in image analysis and computer vision. OpenCV is an incredible library for building image analysis pipelines, but sometimes feels quite low-level, and it should stay that way. However, for those times when the lazy programmer finds themselves writing the same lines over and over or when there is just something too useful to keep to yourself…there’s cv2x.

Feel free to submit pull requests if some repetitive task is bugging you.

## Usage

Recommended import convention:

import cv2_extras as cv2x

Functions:

  • fill_holes(mask)

  • filter_contours_by_size(mask, min_size=1024, max_size=None)

  • find_border_contours(contours, img_h, img_w)

  • fill_border_contour(contour, img_shape)

  • find_border_by_mask(signal_mask,

    contour_mask, max_dilate_percentage=0.2, dilate_iterations=1)

  • find_contour_union(contour_list, img_shape)

  • generate_background_contours(hsv_img,

    non_bg_contours, remove_border_contours=True, plot=False)

  • elongate_contour(contour, img_shape, extend_length)

  • calculate_nonuniform_field(single_channel)

  • correct_nonuniformity(single_channel, mask=None)

  • color_transfer(ref_img, target_img, clip=True, preserve_paper=True)

Release files for cv2-extras 0.5.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cv2-extras 0.5.4
File Size Uploaded
cv2_extras-0.5.4.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cv2-extras 0.5.4
File Interpreter ABI Platform
cv2_extras-0.5.4-py3-none-any.whl Python 3 none any Details

Total release size: 21.9 kB

Release files / cv2_extras-0.5.4.tar.gz

Download URL cv2_extras-0.5.4.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
52427210673003076dd25f637ccc5bc0b2c7c7de6685511db83c8da947207654
BLAKE2b-256 checksum
How to use checksums
f98e46c5115ebfab09e40ee160f6e6873bbefa2e65b8f02649cb16248aba67c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.4.2 requests/2.23.0 setuptools/49.3.1 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.6

Release files / cv2_extras-0.5.4-py3-none-any.whl

Download URL cv2_extras-0.5.4-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0492b6146da122517463b7c1e7f52f1f1a341a2e96b03fa859f2fbf6308b61f8
BLAKE2b-256 checksum
How to use checksums
db772c49537d2124a93fe6fead8de2336660f28d7411eb81de912881a34f0570
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.4.2 requests/2.23.0 setuptools/49.3.1 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.5.4 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page