Webcam exposure


#1

Is there any way to adjust the exposure of the webcam when streaming? I have a couple of LED spotlights on my extruder so I can see what is going on but they are too bright for the cam.. I can physically alter the circuit and add a higher value resistor to reduce the light output but I would rather not go that route if I don't have to.


#2

I don't think I could say it any better than Gina did. If you are using one of the webcams made for the Raspberry Pi then it includes an exposure setting which may be set in octopi.txt here if you're using the OctoPi image.


#3

Na, I have the logitech C270..
Just unplugged the LEDs seems much better
Think I should have gotten the pi cam..


#4

Logitech cameras all support different subsets of UVC controls. The C270 does allow for manual exposure control via UVC, so you may need to use v4l2-ctl to set parameters or set them in mjpg-streamer's coniguration. Not sure if the octopi.txt settings will work for UVC cameras or not.


#5

I'm going down to build something anyway, and I've got 2 of those C270's, so I can experiment.
Are there 2 of those octopi.txt files ? Cuz I'm only seeing one, and everything in it looks commented out with a # in front of every line

I checked the Logitech C270 FAQ page and didn't see anything helpful there

However, I also installed lights on the frame of my printer, and I'm not having any issues with it being too bright, but, my cams are aimed at the print head, not the lights


#6

also using the C270, so this solution will work for you : https://discourse.octoprint.org/t/changed-the-video-feed-brightness-contrast-and-settings-for-my-logitech-usb-video


#7

If there was an "embarrassed" emoji, I'd use it here

Can't believe I missed that


#8

Thanks Dave! We get spoiled with Googles ability to find things even if the search terms are not correct.. Did not find that post when I was searching for this prior to posting.. I will get this completed today and post a before and after pick If that is allowed on this forum.. don't recall seeing any attachments so far..


#9

FYI, Octolapse can (in many cases) control most of the camera settings without making config changes. They are applied before the print and rely on MJpegStreamer's web services, so won't always work.

You can disable rendering and stabilization, and still use Octolapse to apply the camera settings if you don't want to create a timelapse. You could even create multiple profiles to use in different lighting conditions.

Let me know if this helps, or if you have any questions.


#10

Actually the solution Dave provided works but not as he has described it in his original post. I have gotten my cam configured really well now but am waiting on a print to get it setup to apply the setting on startup. Once I have that complete I will update Dave's post with a summary of what I have done.