Zooming functionality in OpenCV imshow in Windows

✔ Recommended Answer

see https://gist.github.com/BartG95/1ce8ba1e9c25ec3698d1

appears to be a longer procedure though, so you could instead switch to matplotlib's pyplot function (uses Qt). you need to apply this oneliner before (see Extracting a region from an image using slicing in Python, OpenCV for details):

import cv2import matplotlib.pyplot as pltimage = cv2.imread("~\\imagedir\\image.jpg")plt_image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)imgplot = plt.imshow(plt_image)

Source: stackoverflow.com

Answered By: mluerig

Comments

Most Popular

PhpStorm, return value is expected to be 'A', 'object' returned

Remove Unicode Zero Width Space PHP

Laravel file upload returns forbidden 403, file permission is 700 not 755