Skip to main content

Live video ML pipeline toolbox

Project description

mv

Live video ML pipeline toolbox.

To install: pip install mv

Make it easy to build components for live video processing, to compute video features, run ML models, and display results.

Examples

Record video from camera

from mv.util import record_video_from_camera

# To record and save to a file (auto-named if not given):
record_video_from_camera()  # Press ESC or Ctrl+C to stop

# Or specify a filename:
record_video_from_camera("my_recording.mp4")

Reverse video

import mv.wip.video_transforms as vt 
reversed_video_path = vt.reverse_video_w_moviepy("input.mp4", "output.mp4")

or, with only builtins (but you need ffmpeg installed on your system)

import mv.wip.video_transforms as vt 
reversed_video_path = vt.reverse_video_w_ffmpeg("input.mp4", "output.mp4")

OverlayManager: Manages persistent overlays on video frames.

To see examples of use, run mv.wip.live_qr_codes.run_example_with_qr_detector(...) or from terminal, python ...path_to__live_qr_codes__module

More examples (for images)

Make qr code

>>> qr_img = create_qr_code("https://www.example.com")  # doctest: +SKIP
>>> qr_img.size  # doctest: +SKIP
(410, 410)

grid_image: Create a grid of images from a list of images.

>>> from PIL import Image
>>> img1 = Image.new('RGB', (100, 100), color='red')
>>> img2 = Image.new('RGB', (100, 100), color='blue')
>>> img3 = Image.new('RGB', (100, 100), color='green')
>>> img4 = Image.new('RGB', (100, 100), color='yellow')
>>> imgs = [img1, img2, img3, img4]
>>> grid = grid_image(imgs, n_rows=2, n_cols=2, v_padding=10, h_padding=10)
>>> grid.size  # Check the size of the resulting grid image
(220, 220)

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

mv-0.0.10.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

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

mv-0.0.10-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file mv-0.0.10.tar.gz.

File metadata

  • Download URL: mv-0.0.10.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mv-0.0.10.tar.gz
Algorithm Hash digest
SHA256 0852a1d8765d4eafc15d77c7054743e8fc6443a67a9b2a924dcca3368508473c
MD5 1ab2c91afde51e77386133fd76d33b7e
BLAKE2b-256 3ef2c8e6f209c42a92fb5f0c6687b9c127d4f5bbd26be4aee1c5a09b127370cc

See more details on using hashes here.

File details

Details for the file mv-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: mv-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mv-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 700ce9ac54be8b0f79f661083985eeeb25016800637ce441187faacf554bea8e
MD5 5b73c72024b38dc7ad76c89d597e955f
BLAKE2b-256 b80cc25f91d680e851155e810ef835f7a8c052f3890274e39601993edf022520

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