Skip to main content

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)

Metadata

Release files for mv 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mv 0.0.11
File Size Uploaded
mv-0.0.11.tar.gz 1.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for mv 0.0.11
File Interpreter ABI Platform
mv-0.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 1.0 MB

Release files / mv-0.0.11.tar.gz

Download URL mv-0.0.11.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
ab72da01669792b9a3196fe85d4f00d43e43572c06415aaf8812255031e11c63
BLAKE2b-256 checksum
How to use checksums
643e35feabf41081caba00eea158b61c562f4cdcd4521b4b5d9224d738b03e14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}

Release files / mv-0.0.11-py3-none-any.whl

Download URL mv-0.0.11-py3-none-any.whl
Size 23.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a82b06aea7e4c6c8dea1ec51ece32d05e2fd41c157fd624e73c24a0c1d94a4e9
BLAKE2b-256 checksum
How to use checksums
68e2bf0c648346226357ff23327804bcbbe7b909a16f745e52331b0635d090a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page