Problems while taking screenshots of a window and displaying it with OpenCV
问题 When i run this code on my desktop pc it runs fine. but when i run it op my laptop something goes wrong when i set the bounding box for the image grab to the bounding box of the windows calculator and the screen recording of the window and places it self a little up and to the left. import cv2 import numpy as np from PIL import ImageGrab import win32gui def windowGrab(window_title=None): if window_title: global hwnd hwnd = win32gui.FindWindow(None, window_title) if hwnd: win32gui