greyworld-v1
jantman
released this
02 Oct 15:03
·
77 commits
to rpi-cam-awb-greyworld
since this release
Superseded by: https://github.com/jantman/OctoPi/releases/tag/1.0.0-greyworld-v1
mjpg-streamer patched with code from jacksonliam/mjpg-streamer#235 to allow the "greyworld" white-balance mode for NoIR cameras.
For the full image, see https://github.com/jantman/OctoPi/actions/runs/284405933
Will this fix my camera?
- Run
raspistill -o before.png
to take a snapshot with normal/default settings. If you have customized settings in/boot/octopi.txt
, you might want to add them to the raspistill command line (using the appropriate options) to ensure a valid comparison. - Run
raspistill -awb greyworld -o after.png
to take a snapshot with "greyworld" white balance. - If "after.png" looks much better (see examples below), then this patch is for you!
Installation
Below is a gzipped tarball of just the mjpg-streamer directory. IMPORTANT: This assumes you're using the current OctoPi build. Running this on older or newer builds of OctoPi might have library/version issues.
- Download
mjpg-streamer.tar.gz
, below, on/to your OctoPi, in/home/pi
. sudo systemctl stop webcamd
- Back up your current mjpg-streamer, just in case:
mv mjpg-streamer mjpg-streamer-old
- Extract the tarball:
tar -xzvf mjpg-streamer.tar.gz
(permissions should be correct in the archive) - If you want, test as-is to ensure it's working:
sudo systemctl start webcamd
(note it can take a long time to start) and stop again once you've tested. - Edit (
vim
or whatever)/boot/octopi.txt
and setcamera="raspi"
and then incamera_raspi_options
set-awb greyworld
. sudo systemctl start webcamd
- When it starts back up, you should have a much better, though still not perfect, image.