Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4670

Camera board • When the Raspberry PI 5 takes pictures through the Camera module (V1 Camera (OV5647)), the background of the picture is

$
0
0
In the latest Raspberry PI system, using
Camera Module (V1 camera (OV5647)) When taking pictures, this picture shows blue, sometimes shows green, why is this? I'm using a Raspberry PI 5 and the photo command is libcamera-still -o test.jpg -t 0 keep capturing.
After a few more minutes, the image has a normal blue background. In addition, if you use the example in the picamera2 library, you will also display a blue background, such as the following code for testing:
from picamera2 import Picamera2
import numpy as np
picam2 = Picamera2()
picam2.configure(picam2.create_preview_configuration())
picam2.start(show_preview=True)
overlay = np.zeros((300, 400, 4), dtype=np.uint8)
overlay[:150, 200:] = (255, 0, 0, 64) # reddish
overlay[150:, :200] = (0, 255, 0, 64) # greenish
overlay[150:, 200:] = (0, 0, 255, 64) # blueish
picam2.set_overlay(overlay)

Statistics: Posted by poli — Tue Jan 23, 2024 8:10 am — Replies 2 — Views 36



Viewing all articles
Browse latest Browse all 4670

Trending Articles