Comments on: Set Up Python Picamera2 on a Raspberry Pi (Take Photos and Capture Video) https://randomnerdtutorials.com/raspberry-pi-picamera2-python/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Tue, 20 Aug 2024 21:20:30 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Scott Johnson https://randomnerdtutorials.com/raspberry-pi-picamera2-python/#comment-949624 Tue, 20 Aug 2024 21:20:30 +0000 https://randomnerdtutorials.com/?p=146759#comment-949624 Sorry to have bothered you with my previous comment. I did what I should have done–I read the appropriate section of the picamera2 manual, Section 3.3. Starting and stopping previews.
“For example, the following script would start the camera system running, run for a short while, and then attempt to autodetect which preview window to use in order actually to start displaying the images:
I made the changes and this was the result:
[0:19:00.527456235] [1158] INFO Camera camera_manager.cpp:297 libcamera v0.0.5+83-bde9b04f
[0:19:00.727789181] [1159] INFO RPI vc4.cpp:437 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media3 and ISP device /dev/media0
[0:19:00.736081592] [1159] INFO RPI pipeline_base.cpp:1101 Using configuration file ‘/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml’
[0:19:00.799536736] [1158] INFO Camera camera.cpp:1033 configuring streams: (0) 640×480-XBGR8888 (1) 640×480-SGBRG10_CSI2P
[0:19:00.803759946] [1159] INFO RPI vc4.cpp:565 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 – Selected sensor format: 640×480-SGBRG10_1X10 – Selected unicam format: 640×480-pGAA

]]>
By: Scott Johnson https://randomnerdtutorials.com/raspberry-pi-picamera2-python/#comment-949619 Tue, 20 Aug 2024 19:54:05 +0000 https://randomnerdtutorials.com/?p=146759#comment-949619 I installed this on a Raspberry Pi Zero W. When I ran ‘python take_photo.py’ I got this error: qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

]]>