Skip to main content

Video to Image frames converter

Project description

VIDEO TO IMAGE

A Python pip package for converting videos to sequential image frames


AVAILABLE ON PIP

https://pypi.org/project/videotoooimage/

pip install videotoooimage



PURPOSE

  • videotoooimage is a Python package that provides functionality to convert video files into sequences of images.
  • It utilizes the OpenCV library (cv2) to process video files and extract frames.
  • This package is useful for tasks such as video analysis, object detection, and machine learning model training using video data.


FEATURES

  • Convert video files (e.g., .mp4, .avi, .mov) into sequences of images.
  • Works with various video codecs and formats supported by OpenCV.
  • No need to create sub folders for directories manually, It will be created automatically.
  • Very useful for machine learning training purposes, the original folder structure is kept as is it.


PROCESSING

1 sec = 1 frame = 1 image file (.jpg format)


INSTALLATION

You can install videotoooimage via pip:

pip install videotoooimage



USAGE

Python3

import videotoooimage
result = videotoooimage.video_too_image("path/to/video/directory","path/to/output/directory")
print(result)



OUTPUT

Processing done, Check the folders : /output/folder


WORKING

  • Folder structure of videos directory (Input)
/project
    /videos
        /happy
            person1.mp4
            person2.mp4
            person3.mp4
        /sad
            person1.mp4
            person2.mp4
            person3.mp4
  • After conversion
    Folder structure of output directory
    /output/folder/
        /v2i_images
            /happy
                person1(frame_number_1).jpg
                person1(frame_number_2).jpg
                person2.mp4
                person3.mp4
                ...
            /sad
                person1(frame_number_1).jpg
                person1(frame_number_2).jpg
                person2.jpg
                person3.jpg
                ... 


AUTHOR

Name: Raghava
GitHub: https://github.com/@raghavavidyapriya/
Email: raghavavidyapriya@gmail.com
Date Created: March 18, 2024 | Last Updated: May 14, 2024


LICENSE

This package is licensed under the MIT License.


CONTRIBUTIONS

Contributions and feedback are welcome!
Please submit issues or pull requests on GitHub.

GitHub: https://github.com/raghavavidyapriya/videotoooimage/

END OF README

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

videotoooimage-2024.5.14.1.0.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

videotoooimage-2024.5.14.1.0.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file videotoooimage-2024.5.14.1.0.0.tar.gz.

File metadata

  • Download URL: videotoooimage-2024.5.14.1.0.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for videotoooimage-2024.5.14.1.0.0.tar.gz
Algorithm Hash digest
SHA256 f2089bccc7bb2fd9da7b72baa9d45262fd490f5ec7bb855916bf7da4aa7dcf96
MD5 d2e8f54efb7dfe30c6a0b415509ac883
BLAKE2b-256 6fb8f032aea8b120e0052823c7f82d111eeebe18cc9343a2d7dd9f179c50fc94

See more details on using hashes here.

File details

Details for the file videotoooimage-2024.5.14.1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for videotoooimage-2024.5.14.1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 56d099ad6062aa694a269f3fa103cdc3b0ac02a2d4369ab1b9e3a4c169b450bd
MD5 b9c396b2998a0af9bd0f541961c636f8
BLAKE2b-256 8079e3f604b4cba2ae95c45001f3a2fbe7cdc1a47e938a48c851c95814751014

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