Skip to main content

Fast multiple zooms on a picture using cv2 and ffmpeg

Project description

Fast multiple zooms on a picture using cv2 and ffmpeg

# Allowed image formats: url/path/buffer/base64/PIL/np
# ffmpeg must be installed 
from cv2multizoom import multizoom
multizoom(
    img=r"https://github.com/hansalemaos/screenshots/raw/main/splitted1.png",
    howmanyzooms=10,  # number of output pictures might be a little less than howmanyzooms
    outputfolder=r"F:\cv2mergepics\tt4",  # will be created if it does not exist
    zoomfactor_start=1,
    zoom_speed=2.5,
    framerate=29.97,
    zfill=7,  # 0000001.png instead of 1.png
    prefix="zoompics_",
    threads=5,
)

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

cv2multizoom-0.10.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

cv2multizoom-0.10-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file cv2multizoom-0.10.tar.gz.

File metadata

  • Download URL: cv2multizoom-0.10.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for cv2multizoom-0.10.tar.gz
Algorithm Hash digest
SHA256 c6b6c4bb0ee078710899e81f9483e6c3d702c4f802335d81c468116d67e9c6bc
MD5 ebf6194785be0dbc7270b808ebbed042
BLAKE2b-256 5dfd0256f4ee536636fb5d45460c0060d2b72f6fcb6ef90d7e65af117aee6585

See more details on using hashes here.

File details

Details for the file cv2multizoom-0.10-py3-none-any.whl.

File metadata

  • Download URL: cv2multizoom-0.10-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for cv2multizoom-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 f206cd6e7ccf666fca8bf42e7740473cd14ff14c4c261b143bedeefc32106d0e
MD5 d889c543833f9ace2a07c57260faebba
BLAKE2b-256 0a802ec161f842134563dfd9492fbad12ce71bd8221b6570ffb4f980bd4dd927

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page