Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 719 Bytes

digital-zoom.md

File metadata and controls

36 lines (28 loc) · 719 Bytes

Digital Zoom with rpicam-hello

Use:

--roi x,y,width,height

All four values are normalized relative to the sensor image.

For centered zoom:

Zoom ROI
1x --roi 0,0,1,1
2x --roi 0.25,0.25,0.5,0.5
3x --roi 0.3333,0.3333,0.3333,0.3333
5x --roi 0.4,0.4,0.2,0.2
10x --roi 0.45,0.45,0.1,0.1

Example 5x:

rpicam-hello -t 0 \
  --fullscreen \
  --qt-preview 0 \
  --framerate 30 \
  --viewfinder-mode 1920:1080:12:P \
  --viewfinder-width 1280 \
  --viewfinder-height 720 \
  --denoise off \
  --buffer-count 2 \
  --roi 0.4,0.4,0.2,0.2

Digital zoom crops and enlarges part of the sensor image. Higher zoom therefore reduces source detail.