- Activate
libcamera
viasudo raspi-config
➡️interface
- Check
picamera
library (default at the Raspbian distro)
python3
import picamera
- Create
pics/
folder
mkdir pics
- Have a bright light source directly behind the camera
- Print a calibration pattern - our has 11 X 12 with 30cm side square (PDF)
picamera.PiCamera(resolution=(960,640), framerate=20, sensor_mode=2) # line 7 in calibCapture.py
- Refer to sensor mode docs
- Prefer bigger resolutions and modes with full sensor capture
- Use PNG over compressed types (JPG, bitmap)
- Change the FPS to the lower limit of the sensor mode you choose (see the table
- If you receive pitch-black images, increase the FPS
- The gain is set to adjust automatically at the first 5 seconds
- Approximate the calibration pattern in these 5 seconds so the image is very bright
- Run
python3 calibCapture.py
- Hit Ctrl+C to stop
- Copy the images to the server (use
scp
) and run the camera calibrator application