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 hashes)

Uploaded Python 3

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