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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for cv2multizoom-0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f206cd6e7ccf666fca8bf42e7740473cd14ff14c4c261b143bedeefc32106d0e |
|
MD5 | d889c543833f9ace2a07c57260faebba |
|
BLAKE2b-256 | 0a802ec161f842134563dfd9492fbad12ce71bd8221b6570ffb4f980bd4dd927 |