Hello,
We are building a video doorbell on AmebaPro2 (RTL8735B) with SDK ameba-rtos-pro2, release 9.6_r. We are evaluating several camera sensors from the SDK’s supported list to find a good low-cost option.
Some supported sensors have their own tuned IQ file (iq_.bin). Others don’t, so manual_iq in project/realtek_amebapro2_v0_example/inc/sensor.h points them to the generic “iq” file. The sensor .bin loads fine and video works, but image quality with the generic IQ has problems.
Image problems with the generic IQ:
- Image is dark. We raised ISP brightness to the maximum (ATIC=1,0,64; values above 64 are clipped) and tested gamma (range 100–500, default 300). It’s better but still not good. Auto-exposure doesn’t seem to be the limit: in a normal room, gain is a small fraction of its maximum.
- Green / tinted colour. Auto white balance is on (ATIC=0,12 returns 1). After a day/night switch (isp_set_day_night(1) then back to 0, plus isp_set_gray_mode), the colour stays tinted and doesn’t recover until a reboot.
- Backlight. A person in front of a bright background comes out dark. WDR (ID 0xF00C/0xF00D) helps only a little.
Questions about IQ files:
- Which sensors in the 9.6_r supported list have a fully tuned IQ (day and night) for RTL8735B? Specifically, can you provide a tuned iq_ov5647.bin? The SDK includes sensor_ov5647.bin, but manual_iq uses the generic iq for it. Are tuned IQ files for the other sensors that currently use the generic iq available, or planned in a newer SDK release?
- For a video doorbell (wide dynamic range, IR night vision, cost-sensitive), which supported sensors do you recommend?
- Can we get the IQ tuning tool and a tuning guide to tune a sensor ourselves? What equipment is needed (light box, colour chart, etc.)?
- Does the generic iq file have a usable night table for isp_set_day_night()? Could switching to it and back explain the colour that stays tinted after a day/night switch?
- What’s the recommended way to set AE metering weights (centre/spot) for backlight compensation in production: isp_set_AE_meter() called from the application? Can the AE target brightness be changed without a new IQ file?
Questions about sensor resolution and FPS:
sensor.h has sensor_params with one entry per sensor, for example [SENSOR_xxx] = {width, height, fps}.
- Is that entry the sensor’s only mode (fixed in its sensor_.bin), or just a default? Can we change these numbers directly, for example to run a sensor at 1920x1080 at 30fps instead of its listed mode?
- If the sensor .bin contains only one mode, how do we get another mode (different resolution or higher FPS)? Can you provide additional sensor .bin files, or is there a tool to generate them?
- Can a video channel use a resolution or FPS different from the sensor mode, for example a 1920x1080 stream from a higher-resolution sensor through ISP scaling, or a lower FPS than the sensor? What are the limits? Are values above the sensor_params entry not allowed?
- Is it OK to use isp_set_max_fps() / isp_set_min_fps() (IDs 0xF022/0xF021) to limit frame rate at runtime, or should FPS only be set when the video channel is configured?
Thank you.