python - how come its strange color of the camera? - Stack Overflow

why is it strange color when the camera turn on? i have my raspberry pie 5 connected to a global shutte

why is it strange color when the camera turn on? i have my raspberry pie 5 connected to a global shutter camera. trying to setup my camera.


from picamera2 import Picamera2
import cv2

picam2 = Picamera2()
picam2.configure(picam2.create_preview_configuration(main={"format": "RGB888", "size": (640, 480)}))
picam2.start()

while True:
    frame = picam2.capture_array()
    frame = cv2.cvtColor(frame, cv2.COLOR_RGB2BGR)  # Fixar färger
    cv2.imshow("RPICAM Test", frame)

    if cv2.waitKey(1) & 0xFF == ord("q"):
        break

picam2.stop()
cv2.destroyAllWindows()

i think the configuration is wrong?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744412219a4572936.html

相关推荐

  • python - how come its strange color of the camera? - Stack Overflow

    why is it strange color when the camera turn on? i have my raspberry pie 5 connected to a global shutte

    6天前
    70

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信