I want to display an image using OpenCV imshow, but it cannot be displayed properly due to an error.
The environment is
procedure:
apt updateapt install libopencv-dev python3-opencv
Start weston
export XDG_RUNTIME_DIR=/usr/bin/weston_socketweston --tty=1 --idle-time=9999 &
Execute the following code
opencv_test.py
import cv2img = cv2.imread("image.jpg")cv2.imshow("Image", img)cv2.waitKey()
python3 opencv_test.py
[05:33:31.612] libwayland: message too short, object (101), message resize(ouu)Gdk-Message: 05:33:31.616: Error flushing display: Broken pipe