Jump to content

Recommended Posts

Posted

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

Posted

 

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.

Posted

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
Posted

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.

Posted

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. 

Posted

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).

Posted

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.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines