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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2089bccc7bb2fd9da7b72baa9d45262fd490f5ec7bb855916bf7da4aa7dcf96
|
|
| MD5 |
d2e8f54efb7dfe30c6a0b415509ac883
|
|
| BLAKE2b-256 |
6fb8f032aea8b120e0052823c7f82d111eeebe18cc9343a2d7dd9f179c50fc94
|
File details
Details for the file videotoooimage-2024.5.14.1.0.0-py3-none-any.whl.
File metadata
- Download URL: videotoooimage-2024.5.14.1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56d099ad6062aa694a269f3fa103cdc3b0ac02a2d4369ab1b9e3a4c169b450bd
|
|
| MD5 |
b9c396b2998a0af9bd0f541961c636f8
|
|
| BLAKE2b-256 |
8079e3f604b4cba2ae95c45001f3a2fbe7cdc1a47e938a48c851c95814751014
|