Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to set brightness setting on CAM500B

Featured Replies

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

 

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.

  • Author

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

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.

  • Author

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. 

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

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.