Skip to content

About

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

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

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

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages