Skip to main content

Yolo Dataset Redactor

  • Small library for yolo datasets

Examples:

yolo_dataset_redactor.video

Video:

from yolo_dataset_redactor.video import Video

video_path = "./videos/some.mp4"

images_path = "./images" # path for save images
period = 100 # every {period} frames save image
prefix = "png" # image suffixes

video = Video(video_path)

video.split(images_path, period, prefix)

Videos:

from yolo_dataset_redactor.video import Videos

videos_path = "./videos"

images_path = "./images" # path for save images
period = 100 # every {period} frames save image
video_suffixes = ["mp4"] # videos suffixes
image_suffix = "png" # image suffixes

videos = Videos(videos_path, video_suffixes)

videos.split(images_path, period, image_suffix)

yolo_dataset_redactor.image

Image:

from yolo_dataset_redactor.image import Image

image_path = "./images/some.png" # image path

new_size = (640, 640) # image resized to {new_size}

image = Image(image_path)

image.resize(new_size)

Images:

from yolo_dataset_redactor.image import Images

image_path = "./images" # images path
suffixes = ["png"] # images suffixes

new_size = (640, 640) # images resized to {new_size}

images = Images(image_path, suffixes)

images.resize(new_size)

Metadata

Release files for yolo-dataset-redactor 0.2.2

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

Source distribution (sdist)

Source distribution for yolo-dataset-redactor 0.2.2
File Size Uploaded
yolo_dataset_redactor-0.2.2.tar.gz 5.3 kB Details

Release files / yolo_dataset_redactor-0.2.2.tar.gz

Download URL yolo_dataset_redactor-0.2.2.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d0e70be507fc1154c75ef2e022ff3691fa63f39618cd1eaca7082ceb605db17a
BLAKE2b-256 checksum
How to use checksums
fd765075515a04740398a717c3b5571343fe91470406dbc2afe62c797acc5fd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.2.2 This release

1 release file

0.2.1

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