Skip to content

Commit fcfa098

Browse files
committed
* update camera doc
1 parent 418333d commit fcfa098

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

docs/doc/en/vision/camera.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,16 @@ cam.awb_mode(camera.AwbMode.Manual)
243243
cam.set_wb_gain([0.134, 0.0625, 0.0625, 0.1239])
244244
```
245245

246+
### Setting Lower Capture Latency
247+
You can reduce image capture latency by setting the buff_num parameter. However, note that changing this parameter affects the image buffer size, and setting it too low may lead to image loss.
248+
249+
For MaixCam, due to limitations in the internal software framework, even if buff_num is set to 1, there will still be at least a double-buffering mechanism in place. In testing, the minimum achievable capture latency is around 30+ ms.
250+
251+
```python
252+
from maix import camera
253+
cam = camera.Camera(buff_num=1) # Use only 1 buffer
254+
```
255+
246256
### Set Brightness, Contrast, Saturation
247257

248258
```python

docs/doc/zh/vision/camera.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,15 @@ cam.awb_mode(camera.AwbMode.Manual) # AwbMode.Auto,开启自动白平衡, AwbM
242242
cam.set_wb_gain([0.134, 0.0625, 0.0625, 0.1239]) # 设置r, gr, gb, b四个通道的增益
243243
```
244244

245+
### 设置更低抓图延时
246+
247+
通过设置buff_num来减小抓图的延时, 需要注意修改该参数会改变图片缓存大小,降低后可能会导致图像丢失的情况.
248+
对于maixcam, 由于内部软件框架的限制, 即使设置buff_num为1, 实际至少还是会存在一个双缓存, 测试取图延时最低在30+ms左右
249+
```python
250+
from maix import camera
251+
cam = camera.Camera(buff_num=1) # 只使用1个缓存
252+
```
253+
245254
### 设置亮度、对比度和饱和度
246255

247256
```python

0 commit comments

Comments
 (0)