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.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: kadrovik_g4-1.1.0.tar.gz
  • Upload date:
  • Size: 5.0 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.0.tar.gz
Algorithm Hash digest
SHA256 4b1f50101b6520bfe90ce585963856c2c346e2c7fd575de29585b0cc6a00fe47
MD5 921591523286c8324c70a7af61fc66b2
BLAKE2b-256 1e936cc4ea5958df51e37f09f8d25321d718bbea163f566ff088e38468955cb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kadrovik_g4-1.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ec929f6f88482d5c2f0b67823c2a64038c7b5752c4db26151e8157c27190295
MD5 f4d27104b895af5e215a41687751c9c8
BLAKE2b-256 993ed44d217622cdb058c5ee5fde2585e0c264121b3efc8964b1bc5db9199fbd

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