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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: enot_vp-0.2.0-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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4dd1b0bbcc2ea4864f087cb8f235e0f87a248285c4bd5849cb83e713b31f96e4
MD5 553ca2d4c504abe0a77e7abbfbd053fa
BLAKE2b-256 447a5f4d3c71596edb8289d4afceffcf5a0b7d99efd3da8efc92c77d9c8afb3a

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