From c57630182508a775b4f78d95ebe57bc13180a171 Mon Sep 17 00:00:00 2001 From: iChizer0 <62390647+iChizer0@users.noreply.github.com> Date: Wed, 22 May 2024 16:53:06 +0800 Subject: [PATCH] fix: weird color issue * feat: persist sensor opt to flash * fix: weird color issue --- porting/himax/we2/drivers/drv_ov5647.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/porting/himax/we2/drivers/drv_ov5647.c b/porting/himax/we2/drivers/drv_ov5647.c index 695194e8..31a4c89e 100644 --- a/porting/himax/we2/drivers/drv_ov5647.c +++ b/porting/himax/we2/drivers/drv_ov5647.c @@ -32,9 +32,7 @@ static HX_CIS_SensorSetting_t OV5647_stream_off[] = { static HX_CIS_SensorSetting_t OV5647_mirror_setting[] = { {HX_CIS_I2C_Action_W, 0x0101, 0x00}, #ifdef CONFIG_EL_BOARD_GROVE_VISION_AI_WE2 - {HX_CIS_I2C_Action_W, 0x3820, 0b00000000}, - {HX_CIS_I2C_Action_W, 0x3821, 0b00000010}, -// 76543210 + {HX_CIS_I2C_Action_W, 0x3821, 0b00000111}, #endif }; @@ -351,7 +349,7 @@ el_err_code_t drv_ov5647_init(uint16_t width, uint16_t height) { hw5x5_cfg.hw5x5_path = HW5x5_PATH_THROUGH_DEMOSAIC; hw5x5_cfg.demos_bndmode = DEMOS_BNDODE_REFLECT; hw5x5_cfg.demos_color_mode = DEMOS_COLORMODE_YUV422; - hw5x5_cfg.demos_pattern_mode = DEMOS_PATTENMODE_RGGB; + hw5x5_cfg.demos_pattern_mode = DEMOS_PATTENMODE_GRBG; hw5x5_cfg.demoslpf_roundmode = DEMOSLPF_ROUNDMODE_ROUNDING; hw5x5_cfg.hw55_crop_stx = start_x; hw5x5_cfg.hw55_crop_sty = start_y;