Changing Brightness (more brightness settings)

Discussion related to "under the hood" OpenMV topics.
JS8019
Posts: 2
Joined: Tue Aug 02, 2016 10:34 pm

Changing Brightness (more brightness settings)

Postby JS8019 » Tue Aug 02, 2016 10:47 pm

Good Day,

I need to have more resolution in the Brightness settings. I have used sensor.set_brightness(), but the inputs are limited to -3 to +3.

I guess I will have to modify this code and re-build?
https://github.com/openmv/openmv/blob/m ... 650.c#L295

Or is there an easier way? :)

Best,
Jack
User avatar
kwagyeman
Posts: 4430
Joined: Sun May 24, 2015 2:10 pm

Re: Changing Brightness (more brightness settings)

Postby kwagyeman » Tue Aug 02, 2016 11:24 pm

Um, are you using the OV7725 camera?

Anyway, just use this function: https://openmv.io/docs/library/omv.imag ... mage.morph

You can adjust the image brightness/contrast with it.
Nyamekye,
User avatar
iabdalkader
Posts: 1214
Joined: Sun May 24, 2015 3:53 pm

Re: Changing Brightness (more brightness settings)

Postby iabdalkader » Wed Aug 03, 2016 6:55 am

you can use sensor.__write_reg(addr, value) for quick testing.
JS8019
Posts: 2
Joined: Tue Aug 02, 2016 10:34 pm

Re: Changing Brightness (more brightness settings)

Postby JS8019 » Mon Aug 08, 2016 11:27 pm

Thanks! If I can get sensor.__write_reg(addr, value) to work, that will be VERY helpful in speeding up my workflow.

I have the $70 "OPENMV CAM".
User avatar
kwagyeman
Posts: 4430
Joined: Sun May 24, 2015 2:10 pm

Re: Changing Brightness (more brightness settings)

Postby kwagyeman » Mon Aug 08, 2016 11:49 pm

Use the write reg function to set registers.
Nyamekye,

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests