khushi Posted January 4, 2017 Posted January 4, 2017 Is there any way to change brightness settings on CAM500B? I can't get clear images fswebcam. Using nanopi neo air with CAM500B and Ubuntu core. :~# v4l2-ctl -l error 25 getting ctrl White Balance, Automatic error 25 getting ctrl Exposure error 25 getting ctrl Horizontal Flip error 25 getting ctrl Vertical Flip error 25 getting ctrl Color Effects Thanks
Igor Posted January 4, 2017 Posted January 4, 2017 Is there any way to change brightness settings on CAM500B? I can't get clear images fswebcam. Using nanopi neo air with CAM500B and Ubuntu core. :~# v4l2-ctl -l error 25 getting ctrl White Balance, Automatic error 25 getting ctrl Exposure error 25 getting ctrl Horizontal Flip error 25 getting ctrl Vertical Flip error 25 getting ctrl Color Effects Thanks There is different / patched driver within Armbian kernel. This problem might be the same or not ... We can't support 3rd party image builds.
Iso9660 Posted January 4, 2017 Posted January 4, 2017 Did you try the same command with sudo? Enviado desde mi XT1021 mediante Tapatalk
khushi Posted January 4, 2017 Author Posted January 4, 2017 Yes I have tried same command with sudo sudo v4l2-ctl -l sudo: unable to resolve host FriendlyARM error 25 getting ctrl White Balance, Automatic error 25 getting ctrl Exposure error 25 getting ctrl Horizontal Flip error 25 getting ctrl Vertical Flip error 25 getting ctrl Color Effects Same error
Iso9660 Posted January 4, 2017 Posted January 4, 2017 Try to run the program cheese: sudo apt install cheese Also check kernel messages with the command dmesg to see if the camera is detected, pluging the camera and checking dmesg messages. If the camera is not detected maybe you will need to build the kernel with uvc driver.
khushi Posted January 5, 2017 Author Posted January 5, 2017 I am using nanopi neo air with CAM500B.I want to set Camera parameters like brightness, contrast, hue,sharpness etc using command line (manually).Is there another method other then v4l2-utils.v4l2-ctl -l command giving me error.
@lex Posted January 5, 2017 Posted January 5, 2017 Chances are you have issues with Auto Focus. Auto Focus will work on video streaming. You can try to use the parameter: --exposure 4 to get a "brighter" image. You can also try to skip some frames before saving the image with this parameter: -S 2 (where 2 is the # of frames skipped, adjust if needed).
Trey Dempsey Posted July 5, 2017 Posted July 5, 2017 It looks like the function that sets the brightness does nothing. https://github.com/friendlyarm/linux-3.4.y/blob/nanopi2-lollipop-mr1/drivers/media/video/ov5640.c#L1528 Maybe I'm reading it wrong and brightness is a "standard" value that v4l2 controls. I'm still digging in to the code to understand it. To answer the original question, brightness for v4l2 drivers is supposed to be controlled with v4l2-ctl. eg v4l2-ctl -c brightness=200.
Recommended Posts