Frame Extraction
Project description
AGL-Frame2Vid: Convert Extracted Frames to Video
Description
AGL-Frame2Vid is a Python package that enables users to create videos from a sequence of extracted frames. This tool is especially designed to work in tandem with the agl-frame-extractor
package, utilizing its metadata to determine video attributes like framerate.
The package aims to facilitate research in the field of gastrointestinal endoscopy by providing an easy and standardized way to create videos for both training and clinical practice.
Installation
Requirements
- Python 3.11 or higher
- OpenCV-Python 4.5 or higher
- FFmpeg-Python 0.2.0 or higher
Using Poetry
To install the package, navigate to the package directory and run:
poetry install
Usage
Basic Example
Here's a basic example that shows how to use Frame2Vid
:
from agl_frame2vid import Frame2Vid
# Initialize the converter
converter = Frame2Vid("input_frames", "output.mp4")
# Generate the video
converter.generate_video()
Documentation
For complete documentation, refer to the official documentation.
Testing
Tests can be run using pytest
:
pytest
Contributing
Contributions are welcomed to improve the package. Please read the contribution guidelines for more information.
Authors
- Thomas J. Lux lux_t1@ukw.de
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
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
File details
Details for the file agl_frame2vid-0.1.1.tar.gz
.
File metadata
- Download URL: agl_frame2vid-0.1.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.12.0 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ed7d82fa09635d5924dcdb9787b4b12841f912afdc4f4a95a750abe10281115 |
|
MD5 | 2d0f2dbd5616ad1eeeffdca27c306aa7 |
|
BLAKE2b-256 | e99a92a3839cb16c6b0283f519b19f51719b3ce29328c2ca9fb5da1a3c93fa23 |
File details
Details for the file agl_frame2vid-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: agl_frame2vid-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.12.0 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f475cf8aeb3e9ee669d033e1042049429ddb92a34079a257b4420f9d93a7d194 |
|
MD5 | 0471a82e47f4133a66a072c0405bbb3a |
|
BLAKE2b-256 | 980b704e236cce80fc13d9bffe69848ad3bd29975021a7e94a20cd83a6e8cd9a |