From 2fadf6fbe08de7150e0599a2fc699c07c4a72e90 Mon Sep 17 00:00:00 2001 From: lxowalle Date: Tue, 23 Jul 2024 12:03:05 +0800 Subject: [PATCH] * fix dirty data in vi --- components/vision/port/maixcam/maix_camera_mmf.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/vision/port/maixcam/maix_camera_mmf.hpp b/components/vision/port/maixcam/maix_camera_mmf.hpp index be9ca00e..b1ab2453 100644 --- a/components/vision/port/maixcam/maix_camera_mmf.hpp +++ b/components/vision/port/maixcam/maix_camera_mmf.hpp @@ -78,7 +78,7 @@ namespace maix::camera mmf_sys_cfg_t sys_cfg = {0}; if (width <= 1280 && height <= 720 && fps > 30) { sys_cfg.vb_pool[0].size = 1280 * 720 * 3 / 2; - sys_cfg.vb_pool[0].count = 5; + sys_cfg.vb_pool[0].count = 2; sys_cfg.vb_pool[0].map = 2; sys_cfg.max_pool_cnt = 1; @@ -89,7 +89,7 @@ namespace maix::camera } } else { sys_cfg.vb_pool[0].size = 2560 * 1440 * 3 / 2; - sys_cfg.vb_pool[0].count = 4; + sys_cfg.vb_pool[0].count = 2; sys_cfg.vb_pool[0].map = 2; sys_cfg.max_pool_cnt = 1; err::check_bool_raise(!setenv(MAIX_SENSOR_FPS, "30", 1), "setenv MAIX_SENSOR_FPS failed");