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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mv-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 e7813a63e7029ea8b5424810e318ef450e30fde726b6ecc3de2c87bfd1cc399a
MD5 d1b079b096e23def377305e9ea6dc425
BLAKE2b-256 e215ee6a51e9a2f210a4149d763948639fa0edb788dc7391cbfd289e5508a073

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mv-0.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d1ad6d7fb237e32fe5b8c449068b77a81c4df3fa2d0ceb6b2769793a49090bfc
MD5 53c9981ccbe37929a4625d43b611d75c
BLAKE2b-256 06794da4418b5dc674e27e6cf96c82dc6315ddf1adc4881e318a0bfad7abea11

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