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

Camera board • Camera looks zoomed in

$
0
0
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):

Code:

 rpicam-hello 
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:

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)
I don't know whether is a problem directly from the library or my code. I would really appreaciate if you help me :D

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



Viewing all articles
Browse latest Browse all 4920

Trending Articles