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.4.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.4-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: enot_vp-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 a389ec55c4a1cc3b6ee252de3dd0fe433a94724ecc67fa77d9a727cabb08087c
MD5 3937fb18fac81e3960a8d0509e99840a
BLAKE2b-256 70c1f1977a01f814dd3f6053ac4ce47cb21c1a5cd44a1a31892476f5b2df465f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: enot_vp-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0683e32e8bc0a1a7ce45442c6f4098a9ed96970950c27cd093ec1c56599bb34b
MD5 2cae9173c114315d41f4fffa37423ad6
BLAKE2b-256 dda4263691379e93c4651f8fdd1681e251a26f15f83e663c5fa25e013ee9e8be

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