Skip to main content

CvNameWindow class that adds zoom and pan functions to OpenCV's namedWindow

Project description

CvZoomWindow

CvNameWindow class that adds zoom and pan functions to OpenCV's namedWindow

CvZoomWindow

Install

pip install cvzoomwindow

Sample

import cv2
import cvzoomwindow

# Image loading
img = cv2.imread("image.bmp")

# Instance of CvZoomWindow class
zw = cvzoomwindow.CvZoomWindow(
    "Zoom Window" # Name of the window 
    )

# Displays an image
zw.imshow(img)

# Waits for a pressed key.
cv2.waitKey()

How to operate

mouse operation operation
Double click of left button Display the entire image
Double click of right button Equal-size display of images
Left button drag Moving Images
Mouse wheel up Zoom up
Mouse wheel down Zoom down

More information

Blog) CvZoomWindow class

https://imagingsolution.net/program/python/opencv-python/cvzoomwindow_class/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

cvzoomwindow-0.0.3-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file cvzoomwindow-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for cvzoomwindow-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ddb538bc5ee21cafbc5f18105478ed7b9b5fe134fe477cc85a00ee3920e40200
MD5 45857f5f5b21bb88c80d37472f6f7835
BLAKE2b-256 baf05325e5a5ebd6fb42bfdbf3469c0cac4444de72d4e0d7f59d672e244e4baf

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