Skip to main content

No project description provided

Project description

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)

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

yolo_dataset_redactor-0.2.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yolo_dataset_redactor-0.2.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file yolo_dataset_redactor-0.2.1.tar.gz.

File metadata

  • Download URL: yolo_dataset_redactor-0.2.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for yolo_dataset_redactor-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d20c32b269f0930a196ddd4a6f887c7d6ff6e5ae43d586fb6df15173cc83d00f
MD5 2184919dd96ae653e1b73074e7ab6017
BLAKE2b-256 f83445290c9ef734127c456cfa81150b042bd30e58888491e2dfd2b1632dcd64

See more details on using hashes here.

File details

Details for the file yolo_dataset_redactor-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for yolo_dataset_redactor-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1dc59ecfece241115c91e26f55f80975d0970d481ec6e95413683e1a2abc136
MD5 d8005040f14afb6d4705ca68be09c098
BLAKE2b-256 9e56158962deb6f52e591fbded66ea21feb1790af20d3171ece8b6d401a215e5

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