Skip to content

ImagingSolution/CvZoomWindow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages