I'm trying to record video with an okdo CAM-OV5647 camera. I connected it successfully (i guess) because when i type this on the terminal the camera looks fine (not zoomed in and not too blurry, considering camera specs):However if I want to record video with a python program using Thonny, the camera looks zoomed in (i can see the same but it's like it zoomed in a lot because it looks pixelated, i don't know). Here's the code:I don't know whether is a problem directly from the library or my code. I would really appreaciate if you help me ![Very Happy :D]()
Code:
rpicam-hello
Code:
from picamera2 import Picamera2from picamera2.encoders import Qualitypicam2 = Picamera2()video_config = picam2.create_video_configuration(main={"size”:(640,480)}, lores={“size”: (640, 480)}, encode=“main”)picam2.start_and_record_video("test.mp4",quality=Quality.HIGH,config=video_config, duration=5,show_preview=True,audio=False)

Statistics: Posted by sandrapardo — Wed Dec 04, 2024 12:54 am — Replies 1 — Views 30