Skip to main content

Take frames from video

Project description

Language

kadrovik

PyPI PyPI - License PyPI - Python Version

Python module for take frames from video


Installation

Package Installation from PyPi

$ pip install kadrovik-g4

Package Installation from Source Code

The source code is available on GitHub.
Download and install the package:

$ git clone https://github.com/Genzo4/kadrovik
$ cd kadrovik
$ pip install -r requirements.txt
$ pip install .

Basic usage

  • Import:

from kadrovik_g4 import Kadrovik
  • Create instance:

Create an instance of the Kadrovik. You can specify additional options:

  • video - input video. Default value: ''
  • frame_n - extract frame number. Default value: 5
  • out_path - Path to output frames. Default value: 'frame_%d.png'
kadrovik = Kadrovik(frame_n=5, out_path='frames/frame_%d.png')
  • Extract frames

kadrovik.process('input.ts')

See the example.py file for an example of usage.

Changelog


Language

kadrovik

PyPI PyPI - License PyPI - Python Version

Python модуль для извлечения кадров из видео.


Установка

Установка пакета с PyPi

$ pip install kadrovik-g4

Установка пакета из исходного кода

Исходный код размещается на GitHub.
Скачайте его и установите пакет:

$ git clone https://github.com/Genzo4/kadrovik
$ cd kadrovik
$ pip install -r requirements.txt
$ pip install .

Использование

  • Подключаем:

from kadrovik_g4 import Kadrovik
  • Создаём экземпляр

Создаём экземпляр Kadrovik. Можно указать дополнительные параметры:

  • video - входное видео. Значение по умолчанию: ''
  • frame_n - номер извлекаемых кадров. Значение по умолчанию: 5
  • out_path - имя (и путь) извлекаемых кадров. Используется подстановка %d. Значение по умолчанию: 'frame_%d.png'
kadrovik = Kadrovik(frame_n=5, out_path='frames/frame_%d.png')
  • Извлекаем кадры

kadrovik.process('input.ts')

Пример использования см. в файле example.py

Changelog

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

kadrovik_g4-1.1.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

kadrovik_g4-1.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file kadrovik_g4-1.1.1.tar.gz.

File metadata

  • Download URL: kadrovik_g4-1.1.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for kadrovik_g4-1.1.1.tar.gz
Algorithm Hash digest
SHA256 b4485954b7f657c7f9ecd59af8c9c91278d78d4b5507c6c17ae914c047d44063
MD5 6e286c68738c1d248586e5f0c39ba8dc
BLAKE2b-256 6a12f7b9de311dcffe986eb74e4d2b279ceea081eefc51d74fa3eee56844d751

See more details on using hashes here.

File details

Details for the file kadrovik_g4-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: kadrovik_g4-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for kadrovik_g4-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a0ed2cf545c1e87aee0d5afd78f90c9eed50e8b791a660c0cf9d5a243fcbd0af
MD5 2a91082b1804a86d9745de36da73c60e
BLAKE2b-256 d11250eaf45cdd458ee8187261dd50520e248a73baec03d5fe0dbeeff6babe6c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page