We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux Mint 21.3 Cinnamon
x86
4.0.9.80
Resizing the window doesn't properly scale the image within.
Observe the variable padding on the right window border:
import numpy as np import cv2 def main(): # Generate a random 32x160x3 image random_image = np.random.randint(low=0, high=256, size=(32, 160, 3), dtype=np.uint8) # Create a named window to display the image window_name = 'random image' cv2.namedWindow(window_name, cv2.WINDOW_NORMAL) cv2.imshow(window_name, random_image) # Resize it iteratively for width in range(random_image.shape[1]): cv2.setWindowTitle(window_name, str(width)) cv2.resizeWindow(window_name, width, 100) cv2.waitKey(50) # Exit cv2.destroyAllWindows() if __name__ == '__main__': main()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
System Information
Steps to reproduce
Linux Mint 21.3 Cinnamon
x86
4.0.9.80
Detailed description
Resizing the window doesn't properly scale the image within.
Observe the variable padding on the right window border:
Steps to reproduce
Issue submission checklist
The text was updated successfully, but these errors were encountered: