Skip to main content

ENOT video processor package for iterating over video frames easily.

Project description

ENOT Video Processor

Package for processing video with pyav package. Provides methods for reading from video and writing modified video frames.

Examples

Reading

from enot_vp import VideoProcessor
from ultralytics import YOLO

model = YOLO(MODEL_PATH)

with VideoProcessor(input_video=VIDEO_PATH) as vp:
    for frame in vp:
        ndarray = model(frame.to_image(), imgsz=1600, verbose=False)[0].plot()[..., ::-1]

Modification

from enot_vp import VideoProcessor
from ultralytics import YOLO

model = YOLO(MODEL_PATH)

with VideoProcessor(input_video=VIDEO_PATH, output_video=OUTPUT_VIDEO_PATH) as vp:
    for frame in vp:
        ndarray = model(frame.to_image(), imgsz=1600, verbose=False)[0].plot()[..., ::-1]
        vp.put(ndarray)

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

enot_vp-0.1.5.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

enot_vp-0.1.5-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file enot_vp-0.1.5.tar.gz.

File metadata

  • Download URL: enot_vp-0.1.5.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for enot_vp-0.1.5.tar.gz
Algorithm Hash digest
SHA256 feea9350e3c2f40ca9c824990b8b82bc8d9f1f36652c374ec75ccc89f2f14226
MD5 738ca11cb44855214d0e18b68f66ab96
BLAKE2b-256 97f522dbeda8785d09b7c19906831c7c125381cc4ed0a7b820c9a79a527bfcf7

See more details on using hashes here.

File details

Details for the file enot_vp-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: enot_vp-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for enot_vp-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8315cf4bdcea03395d4f67d3853bef7683194da74de63bbcc073bd06d9810657
MD5 2ee6b79219924b3613dfccf14a5dc76c
BLAKE2b-256 18549e4c49f62ef58bb5861a15c82b9d63581db970ca2da11efa6222c68d7a37

See more details on using hashes here.

Supported by

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