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
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
Release history Release notifications | RSS feed
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
File details
Details for the file cvzoomwindow-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: cvzoomwindow-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddb538bc5ee21cafbc5f18105478ed7b9b5fe134fe477cc85a00ee3920e40200 |
|
MD5 | 45857f5f5b21bb88c80d37472f6f7835 |
|
BLAKE2b-256 | baf05325e5a5ebd6fb42bfdbf3469c0cac4444de72d4e0d7f59d672e244e4baf |