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

Camera board • Take a small picture by setting size but use scale not crop

$
0
0
I don't know if I'm not understanding something...

If you use:

Code:

picam2.create_still_configuration(main={"size": (320, 320)})
and compare that with a full res shot, it seems to be a crop. I want to have a scaled down version of full res 4056x2592 to 320x... (match aspect ratio)

I'm hoping that's possible on the camera layer, trying to do it in PIL as a middle step is too slow

I tried setting ScalerCrop too but that didn't help

It may not make sense to condense a 4000px image to 320 but that's what I'm using for my SPI display live preview

I just realized I was viewing a crop not the full image

Statistics: Posted by jcun4128 — Tue Mar 26, 2024 9:41 pm



Viewing all articles
Browse latest Browse all 3847

Trending Articles