Metadata-Version: 2.2
Name: videotoooimage
Version: 2024.5.14.1.0.0
Summary: Video to Image frames converter
Home-page: https://github.com/raghavavidyapriya/videotoooimage
Author: Raghava
Author-email: raghavavidyapriya@gmail.com
License: MIT
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
Requires-Dist: opencv-python
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: requires-dist
Dynamic: summary

# VIDEO TO IMAGE

_A Python pip package for converting videos to sequential image frames_
<br><br><br>

# AVAILABLE ON PIP

https://pypi.org/project/videotoooimage/ <br>

```
pip install videotoooimage
```

<br><br>

# PURPOSE

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

# FEATURES

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

# PROCESSING

1 sec = 1 frame = 1 image file (.jpg format)
<br><br><br>

# INSTALLATION

You can install videotoooimage via pip:

```
pip install videotoooimage
```

<br><br>

# USAGE

Python3

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

<br><br>

# OUTPUT

Processing done, Check the folders : /output/folder
<br><br><br>

# WORKING

- Folder structure of videos directory (Input) <br>
<pre>
/project
    /videos
        /happy
            person1.mp4
            person2.mp4
            person3.mp4
        /sad
            person1.mp4
            person2.mp4
            person3.mp4
</pre>

- After conversion <br>
  Folder structure of output directory <br>
  <pre>
  /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
              ... <br>
  </pre>
  <br><br>

# AUTHOR

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

# LICENSE

This package is licensed under the MIT License.
<br><br><br>

# CONTRIBUTIONS

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

GitHub: https://github.com/raghavavidyapriya/videotoooimage/
<br><br>

_END OF README_
