Skip to content

Commit

Permalink
* config max exposure to 1000000
Browse files Browse the repository at this point in the history
  • Loading branch information
lxowalle committed Sep 11, 2024
1 parent 88bc645 commit 67cfb3e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/vision/port/maixcam/maix_camera_mmf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,12 @@ namespace maix::camera
mmf_deinit_v2(false);
err::check_raise(err::ERR_RUNTIME, "mmf vi init failed");
}

ISP_EXPOSURE_ATTR_S stExpAttr;
memset(&stExpAttr, 0, sizeof(ISP_EXPOSURE_ATTR_S));
err::check_bool_raise(CVI_SUCCESS == CVI_ISP_GetExposureAttr(0, &stExpAttr), "GetExposureAttr failed!");
stExpAttr.stAuto.stExpTimeRange.u32Max = 1 * 1000 * 1000;
err::check_bool_raise(CVI_SUCCESS == CVI_ISP_SetExposureAttr(0, &stExpAttr), "SetExposureAttr failed!");
return 0;
}

Expand Down

0 comments on commit 67cfb3e

Please sign in to comment.