GC4663

Hi @Pammy ,

We captured again with your suggestions and below are the video and log files.

Still flicker exists with 50Hz setting and HDR mode.

Below are my answers to your questions.

  1. How was HDR enabled? Through the initialization parameter: init_params.init_isp_items.init_hdr_mode = 1, set in our application. We did not edit video_api.c. HDR_ENABLE is already 1 in our module_video.c.

  2. Was isp_init_enable set to 1? Yes.

  3. About FLICKER 0: you were right. With isp_init_enable = 1 we had filled only the HDR/WDR items, so anti-flicker, contrast and saturation started at 0. We now set them at start-up, and the log shows FLICKER 1, CONTRAST 50, SATURATION 50.

  4. Anti-flicker after boot: our application sets it again after start-up. The call returns 0 and reading it back gives 1 (50 Hz).

  5. Is the white color issue got fixed? We have not repeated the 12+ hour run with these settings yet. We will report back.

  6. Two values still differ from yours: WDR_MODE is 1 for us (yours is 2), and mirrorflip is 0x0 (yours is 0xf0). Do these matter?

I have few questions for you.

  1. The engine first prints ... 'linear' at 30 fps and then ... 'hdr line 2to1' at 20 fps in the same boot. Is that expected?

  2. The VOE debug logs captured (by setting APP_VOE_LOG_EN to 1) in the shared log file are sufficient to analyze or still need to enable anyting?

  3. Can the VOE debug log be sent to the application instead of the UART? Our field cameras have no UART and in production version also we need to access the logs over network, but we are unable to capture APP_VOE_LOG_EN logs which are appearing with prefix [VOE].

The camera under testing which produced the HDR mode white color issue is installed outdoor and don’t have access to UART pins too. So we added simpel logic to route all printf data to a buffer and reading them over http, but the APP_VOE_LOG_EN logs are going directly to UART and not using printf, so we are unable to capture them, this is the above mentioned 3rd question.

We have below analysis for white color issue and mostly occuring with outdoor cameras. The white picture in HDR is a large overexposure that does not depend on the WDR level. It is the HDR mode itself, with the camera’s exposure staying at a high value that doesn’t match the scene.

State Mean luma Blown pixels (>235) Washed-out Saturation Exposure Gain
Linear 132.6 0.8 % 1.1 % 0.131 45 µs 359
HDR level 0 238.6 70.8 % 89.1 % 0.029 — —
HDR level 25 238.1 69.7 % 88.8 % 0.029 1000 µs 256
HDR level 50 238.7 70.8 % 89.2 % 0.030 1000 µs 256
HDR level 75 238.8 71.0 % 89.3 % 0.029 1000 µs 256
HDR level 100 238.6 70.5 % 89.1 % 0.029 1000 µs 256
Linear again 132.1 0.7 % 1.0 % 0.129 45 µs 369
  • WDR level: it makes no difference. All five levels from 0 to 100 give the same picture to within noise.
  • Not lighting drift: linear before and after the HDR test gave the same numbers (132.6 and 132.1).
  • Exposure: in HDR mode the camera sits at exactly 1000 µs and gain 256 (1×) at every level. Linear needs 45 µs for this scene. So HDR is about 22 times, roughly 4.5 stops, overexposed. That fits the picture: the flat, washed-out look with bleached ground and low saturation.
  • Looks like a stuck or limited value: a round 1000 µs / gain 256 is suspicious. It may be a lower limit for exposure in HDR line mode on this sensor, or the exposure control not running.

What this suggests

  • Not the WDR level and not manual versus auto mode: the level setting is not the cause.
  • Likely cause: the exposure control in HDR (hdr line 2to1) cannot reach short exposures. That matches your forum thread (the picture is white in HDR). It is probably also related to the exposure floor of the HDR line mode, but that is my reading, not a confirmed cause.
  • Earlier HDR capture: hdr_flicker_issue.txt (indoor, lower light) showed exposures of 5–6 ms, so the exposure control did move in HDR then. In bright light it may be pinned at the floor.

Hope this analysis may help you to identify the cause of the issue.

Thank you.

Hi @Pammy ,

We captured camera logs (VOE log enabled) to identify white color issue in HDR mode using another camera over UART since camera boot. Initially camera booted with Linear mode and then switched to HDR to see the difference in picture quality. Below are the log and video files.

The videos are captured with ISP meta data enabled only.

Hope these will help to analyze the problem.

The major issue with HDR mode is during day time, the picture is becoming more white, not like after 12+ hours only the white is spreading.

Thank you.