OpenIPC / majestic

Majestic Community edition integration kit
MIT License
37 stars 6 forks source link

hi3518ev100 + jxh22 produce dark image #170

Closed Flole998 closed 4 months ago

Flole998 commented 4 months ago

Required information

Issue description

The image is very dark compared to stock firmware. When writing a high value to i2c reg 0x01 of the sensor, the image briefly flashes up correctly, until something resets it almost immediately. Seems like this is related to the exposure settings. I also tried manually specifying the exposure in the isp settings of majestic, but with no change. I also tried to stop majestic, change the exposure with the i2c write, then bind-mount something else over the i2c device so majestic is unable to set the values over i2c, and then start up majestic, that yielded to a lot of errors during startup (due to majestic being unable to write to the i2c device) but no change in the picture brightness.

With a lot of sunlight it looks better, but still very dark. I also tried messing with the luminance, hue and contrast settings, which helps to some point but is not able to get a nice and bright image.

Expectations

An image that is not too dark is shown

Steps to reproduce

  1. Look at the rtsp or mjpeg preview
  2. Notice that it is too dark :(

Information to attach

Flole998 commented 4 months ago

What seems to help is doing a i2cset 0x60 0x12 0x30, however the picture is upside down afterwards, so I need to set both flip settings to make it work. The colors appear to be messed up though, red and blue appear to be swapped. The image is significantly brighter though.

Flole998 commented 4 months ago

This is rather a sensor driver issue. So this is at the wrong place.