Skip to content

Python video and image manipulation utilities using opencv

License

Notifications You must be signed in to change notification settings

rh-id/python-CVUtils

Repository files navigation

CVUtils (Computer Vision Utils)

Python video and image manipulation utilities mainly using opencv

Main Scripts

File with pattern main_xxxx were executable scripts for scripting usage

main_dlib_train_object_detector.py

Used as sample to train object detector. refer to https://github.com/davisking/dlib/blob/v19.24.4/python_examples/train_object_detector.py

main_image_analysis.py

Used to perform image analysis on the input image

main_image_contours.py

Used to find image contours on the input image

main_image_feature_matching.py

Used to match image feature

main_image_histogram_color.py

Used to show input image histogram on color

main_image_histogram_gray.py

Used to show input image histogram on gray color

main_image_threshold.py

Used to show input image threshold

main_pascalvoc_mediapipe_rename.py

Used to rename image in Pascal VOC dataset. PASCAL VOC based on mediapipe dataset structure where dataset directory consist of images and Annotations see: https://developers.google.com/mediapipe/api/solutions/python/mediapipe_model_maker/object_detector/Dataset

main_video2image.py

Used to split video to images.

Use --filter-path to point to your custom filter for each frame. Example run python with: main_video2image.py assets/video/test.avi output/video2image --filter-path main_video2image/filter/colormap_autumn.py

See example on how to write filter function

main_video2image_youtube.py

Used to split video to images from youtube links.

links_path point to text file that contains youtube link per line see example

Use --filter-path to point to your custom filter for each frame. Example run python with: main_video2image.py assets/video/test.avi output/video2image --filter-path main_video2image/filter/colormap_autumn.py

See example on how to write filter function

main_video_info.py

Used to show video attributes/information

main_video_info_scan.py

Used to scan directory and export video attributes/information

Attributions

Special thanks to Mastering OpenCV 4 (MIT License)

Other images from https://www.youtube.com/@watchersclub

About

Python video and image manipulation utilities using opencv

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published