# AmebaPro2 (RTL8735B): IQ files for sensors without a tuned IQ (incl. OV5647) + how to change sensor resolution/FPS from sensor.h

**URL:** <https://forum.amebaiot.com/t/amebapro2-rtl8735b-iq-files-for-sensors-without-a-tuned-iq-incl-ov5647-how-to-change-sensor-resolution-fps-from-sensor-h/5164>\
**Category:** Multimedia\
**Created:** [October 16, 2026, 7:38pm UTC](https://forum.amebaiot.com/t/amebapro2-rtl8735b-iq-files-for-sensors-without-a-tuned-iq-incl-ov5647-how-to-change-sensor-resolution-fps-from-sensor-h/5164 "2026-10-16T19:38:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepakkumarbinwal](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@deepakkumarbinwal](https://forum.amebaiot.com/u/deepakkumarbinwal)\
**Post date:** [October 16, 2026, 7:38pm UTC](https://forum.amebaiot.com/t/amebapro2-rtl8735b-iq-files-for-sensors-without-a-tuned-iq-incl-ov5647-how-to-change-sensor-resolution-fps-from-sensor-h/5164/1 "2026-10-16T19:38:46Z")

</div>

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:

1. 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.
2. 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.
3. Backlight. A person in front of a bright background comes out dark. WDR (ID 0xF00C/0xF00D) helps only a little.

Questions about IQ files:

1. 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?
2. For a video doorbell (wide dynamic range, IR night vision, cost-sensitive), which supported sensors do you recommend?
3. 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.)?
4. 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?
5. 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}.

1. 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?
2. 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?
3. 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?
4. 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.

---

<div class="post-metadata">

**Author:** ![KevinKL](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kevinkl/32/2632_2.png) [@KevinKL](https://forum.amebaiot.com/u/KevinKL)\
**Post date:** [October 19, 2026, 10:42am UTC](https://forum.amebaiot.com/t/amebapro2-rtl8735b-iq-files-for-sensors-without-a-tuned-iq-incl-ov5647-how-to-change-sensor-resolution-fps-from-sensor-h/5164/2 "2026-10-19T10:42:47Z")

</div>

Hi @deepakkumarbinwal ,

1. **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?**  
A: Currently, customers are encouraged to perform the IQ tuning themselves. Depending on user demands or requests, we might put this on our schedule to do in the future.
2. **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.)?**  
A: Yes, they are available. Please refer to the links below:
  - **Tool:** [GitHub - Ameba-AIoT IQ Tuning Tool](https://github.com/Ameba-AIoT/ameba-tool-rtos-pro2/tree/main/IQ%20Tuning)
  - **Guide:** [AmebaPro2 SDK IQ Tuning Guide](https://ameba-doc-rtos-pro2-sdk.readthedocs-hosted.com/en/latest/application_note/UM_IQ_tuning_guide/25_tuningguide_ENG.html)

3. **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?**  
A: The generic IQ file does contain 2 sets of IQ tables. However, we cannot guarantee that the RGB parameters will perfectly match the sensor. This could indeed be the cause of the green tint under certain conditions.
4. **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?**  
A: **AE Metering:** Adjusting the AE Meter is supported via the AT command `fATAE`. There is no default “recommended” way; we need the customer to provide more details about their specific product application scenarios before we can offer a tailored recommendation.  
**AE Target Brightness:** Currently, it is not supported to adjust the AE Target directly without updating the IQ file. However, we can provide an updated IQ file to adjust the target brightness for them.
5. **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?**  
A: These values are fixed as they relate to the settings that the drivers are set to. For example, the IMX681 sensor has multiple drivers at various resolutions 3MP, 5MP and 12MP. You can only use the sensors at the resolutions that are available in `sensor.h` at the moment.
6. **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?**  
A: The alternative is to rewrite the driver source code and compile a new driver to run the OV5647 in 1080p@30fps.
7. **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?**  
A: Yes, but values above the sensor\_params entry are not allowed. Do note that lowering the resolution does not immediately translate to higher FPS using this method. The HTS/VTS values are still unchanged which means that the FPS rate will remain the same.
8. **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?**  
A: Runtime use is fine. For FPS settings guidance, you may refer to the FPS settings section in [application note](https://ameba-doc-rtos-pro2-sdk.readthedocs-hosted.com/en/latest/application_note/UM_IQ_tuning_guide/28_IQ_Advance_Introduction_For_Fps_Setting.html).

Thank you.
