[Python] Make OpenCV frame non-resizable

Discussão em 'Python' iniciado por Stack, Julho 1, 2025.

  1. Stack

    Stack Membro Participativo

    I am making a frame using OpenCV in Python, but the frame can be resized with the mouse, and I don't want it to be resized. I googled it, but there was nothing similar to it.

    Here's the code that I am using:

    import cv2
    im = cv2.imread('E:/file.png')
    cv2.imshow('image', im)


    How can I alter it so that the frame cannot be resized?

    Continue reading...

Compartilhe esta Página