A Python library for higher level OpenCV functions used in image analysis and computer vision
Project description
# 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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cv2_extras-0.5.4.tar.gz
.
File metadata
- Download URL: cv2_extras-0.5.4.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52427210673003076dd25f637ccc5bc0b2c7c7de6685511db83c8da947207654 |
|
MD5 | 95ab7a89668a45ced3f7368a72d23172 |
|
BLAKE2b-256 | f98e46c5115ebfab09e40ee160f6e6873bbefa2e65b8f02649cb16248aba67c8 |
File details
Details for the file cv2_extras-0.5.4-py3-none-any.whl
.
File metadata
- Download URL: cv2_extras-0.5.4-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0492b6146da122517463b7c1e7f52f1f1a341a2e96b03fa859f2fbf6308b61f8 |
|
MD5 | 61e0c6a90d2a4f9e14cd97372a39cc99 |
|
BLAKE2b-256 | db772c49537d2124a93fe6fead8de2336660f28d7411eb81de912881a34f0570 |