简体   繁体   中英

OpenCV Fullscreen Output -> Illegal Instruction

I have Raspian with the Raspberry camera and small Monitor connected via rca. Now I want to display the captured image in Fullscreen Mode.

import cv2
cv2.namedWindow("Frame", cv2.WND_PROP_FULLSCREEN)
#cv2.setWindowProperty("Frame", cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)

#while caputering
    cv2.imshow("Frame", image)
    key = cv2.waitKey(1) & 0xFF

    if key == ord("q"):
       break

When uncommenting the setWindowProperty Line, the program crashes with the output "Illigal instruction". Without the line it works perfect.

OpenCV 3.2 Python 3.4

Problem solved. I had the default GUI for Raspbian installed: PIXEL.

Now I installed MATE over an light image of Raspbian without xserver. Works perfect

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM