Skip to content

greyworld-v1

Compare
Choose a tag to compare
@jantman 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.

  1. Download mjpg-streamer.tar.gz, below, on/to your OctoPi, in /home/pi.
  2. sudo systemctl stop webcamd
  3. Back up your current mjpg-streamer, just in case: mv mjpg-streamer mjpg-streamer-old
  4. Extract the tarball: tar -xzvf mjpg-streamer.tar.gz (permissions should be correct in the archive)
  5. 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.
  6. Edit (vim or whatever) /boot/octopi.txt and set camera="raspi" and then in camera_raspi_options set -awb greyworld.
  7. sudo systemctl start webcamd
  8. When it starts back up, you should have a much better, though still not perfect, image.

Example Images

Before

before

After

after