Changing Brightness (more brightness settings)

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/master/src/omv/ov9650.c#L295

Or is there an easier way? :slight_smile:

Best,
Jack

Um, are you using the OV7725 camera?

Anyway, just use this function: https://openmv.io/docs/library/omv.image.html#image.image.morph

You can adjust the image brightness/contrast with it.

you can use sensor.__write_reg(addr, value) for quick testing.

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

http://www.haoyuelectronics.com/Attachment/OV7725%20+%20AL422B(FIFO)%20Camera%20Module(V1.0)/OV7725%20datasheet(V1.2).pdf

Use the write reg function to set registers.