Fast multiple zooms on a picture using cv2 and ffmpeg
# Allowed image formats: url/path/buffer/base64/PIL/np# ffmpeg must be installed fromcv2multizoomimportmultizoommultizoom(
img=r"https://github.com/hansalemaos/screenshots/raw/main/splitted1.png",
howmanyzooms=10, # number of output pictures might be a little less than howmanyzoomsoutputfolder=r"F:\cv2mergepics\tt4", # will be created if it does not existzoomfactor_start=1,
zoom_speed=2.5,
framerate=29.97,
zfill=7, # 0000001.png instead of 1.pngprefix="zoompics_",
threads=5,
)
The Tidelift Subscription provides access to a continuously curated stream of human-researched and maintainer-verified data on open source packages and their licenses, releases, vulnerabilities, and development practices.