#!/bin/bash # ver=$1 configuration() { cat << EOF { "disable": [], "plot": [], "alsc": { "do_alsc_colour": 1, "luminance_strength": 0.5 }, "awb": { "greyworld": 0 }, "blacklevel": -1, "macbeth": { "small": 1, "show": 0 } } EOF } configuration > imx335_configuration_$ver.json ../libcamera/utils/raspberrypi/ctt/ctt.py \ -i . \ -o imx335_pisp_$ver.json \ -c imx335_configuration_$ver.json \ -t pisp LIBCAMERA_RPI_TUNING_FILE=$PWD/imx335_pisp_$ver.json \ rpicam-still --qt-preview --camera 1 -r -o imx335-tuned-$ver.jpg