Generate the pictures from the Video file
Project description
About
Video2Pics library which helps to convert video file into pictures / image with adjustable time frame. The objective why I created this library is to ease the process of creating the video to pictures / image frames conversion process. We can generate picture / images of an video or a subpart of a video and that too custom frame capture rate and start / end time (in sec) of video. How to install? pip install Video2Pics
Requirements It requires to be installed • Opencv2 and numpy
Class Object Argument Description
Argument Description
video_srcpath source path of the video
start_time Default value is None i.e 0s will be considered
end_time Default value is None i.e till end of duration will be considered
frame_rate No. of frames you want to capture per second. For e.g if frame_rate= 15 then only first 15 frames will be captured out of input Frames per second
save_format Output picture / image file extension. By default "jpg"
output_dir Output directory for saving picture / images. If not specified the source file path the pictures will be saved
Note:- The capture_rate if not specified will consider the original video frames per second rate Frame Capture Rate Explaination
Valid Extensions
For Video • .mov • .avi • .mpg • .mpeg • .mp4 • .mkv • .wmv
For Image • .jpg, .jpeg • .png • .bmp • .tiff, .tif • .dicom, .dcm
How to use? Minimal setting (Basic)
from Video2Pics import Video2Pics Video2Pics(video_srcpath="--path-to-video-source file--",output_dir="--path-to-output-directory--")
Note:- The output will be saved in a pic_{timestamp}_count Output Process Screenshot
Author I will be happy to help and connect with you guys!! Any suggestions are most welcome.
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 Video2Pics-0.0.1.tar.gz.
File metadata
- Download URL: Video2Pics-0.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea1a40e30a67d929a7607ac854c108ac131cd91b32c182a501d72f4653c817e5
|
|
| MD5 |
9adef6aeb50649697c3437ed97905004
|
|
| BLAKE2b-256 |
7c5b211dfbb6efa21181919a4bb796d28dff44b8be9e97d4f62df7b8c37a626d
|
File details
Details for the file Video2Pics-0.0.1-py3-none-any.whl.
File metadata
- Download URL: Video2Pics-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
973be70232eed5518823f0203530d04598683311b83e8faccdf7029db8ddbba9
|
|
| MD5 |
6c51a6de495b6677706b4d133577f787
|
|
| BLAKE2b-256 |
6c303090a6a44308d2815248ff7f37087a9d7994d570bb3f7bc1f30e85ac0aef
|