Page 1 of 1

Dark camera

Posted: Thu Jan 23, 2014 5:31 pm
by int2str
Running OctoPrint on OctoPi using the Raspberry Pi Camera.

The web cam image is way too dark. As in, black screen unless I shine a flashlight directly at the lens, resulting in a bright spot.
Does anybody know a way I can crank the brightness/ISO sensitivity?

Thx

Re: Dark camera

Posted: Fri Jan 24, 2014 5:39 pm
by bubbasnow
I would try another webcam and see if it works better?

if not you can hook the PI up to a monitor and run raspian GUI mode and run the app to see if there are any settings you can adjust.

I am using a logitech camera on the 2014-01-07 weezy octo pi and i can see everything ok.

Re: Dark camera

Posted: Sun Jan 26, 2014 1:49 am
by daftscience
If you're using mjpg-streamer then point your browser to that port (http://ip:8080" onclick="window.open(this.href);return false;) and click on the control link. From there you should be able to adjust the camera settings.


http://ip:8080" onclick="window.open(this.href);return false;

Re: Dark camera

Posted: Sun Jan 26, 2014 6:26 am
by foosel
While I've not yet figured out what's causing this (since my own RaspiCam I use for testing works perfectly fine with the current default settings in OctoPrint), some people have reported better results with changing the exposure or image mode options of their cam.

OctoPi allows to do this via the file /boot/octopi.txt which can also be directly accessed as octopi.txt when you just put the SD card into a card reader and take a look at it in your Windows or (AFAIK) Mac explorer thingy. RaspiCam settings can be configured via the config switch camera_raspi_options:

Code: Select all

### additional options to supply to MJPG Streamer for the RasPi Cam
#
# See https://github.com/foosel/OctoPrint/wiki/MJPG-Streamer-configuration
# for available options
#
# Defaults to 10fps
#
#camera_raspi_options="-fps 10"
Remove the leading # and then add options as needed. People reported success by settings the cam into night exposure mode, so try changing the above to this:

Code: Select all

### additional options to supply to MJPG Streamer for the RasPi Cam
#
# See https://github.com/foosel/OctoPrint/wiki/MJPG-Streamer-configuration
# for available options
#
# Defaults to 10fps
#
camera_raspi_options="-fps 10 -ex night"
Save, reboot, keep fingers crossed ;)

Re: Dark camera

Posted: Sun Jan 26, 2014 5:04 pm
by int2str
Sweet, working now, thanks!