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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mv-0.0.9.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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.9.tar.gz
Algorithm Hash digest
SHA256 0120dce69df8575bb5474547643d0b29273f9a0356f5a5cc271881737cbb0fdc
MD5 3902b2fdc8d13f11fbd38a50d29672dc
BLAKE2b-256 77b4acf592a4518f15b45801ef9f0baa6167422204bd149666ec45dc86595580

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mv-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 fa58bc32747da701ce4f0b5c0d36594d3cc2daa7ce4a1187998dc0d76b1bc518
MD5 c4e5fca0fa3f9d0d0ca41e94fbc8ee32
BLAKE2b-256 65c4aebd3f8c62f358c327d19d6d87d108c5256d2547b787826680f71c638131

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