My requirement is to create a window in which I have a square frame. And I need to play the video inside this square frame.
I think I can solve my requirement if I can correctly run the code here: How to display a cv2 video inside a python GUI?.
As I am new to Python coding, I am facing some issues...
Traceback (most recent call last):
File "exp2.py", line 10, in <module>
img = QImage(frame, frame.shape[1], frame.shape[0], QImage.Format_RGB888)
NameError: name 'QImage' is not defined
please help!