7,647
社区成员
发帖
与我相关
我的任务
分享高通 IoT 设备运行 AI 视觉任务时,白天识别正常、晚上识别准确率明显下降,该如何优化低照度场景?
这是典型的端侧视觉 AI 场景问题,不能只靠模型本身解决,需要同时优化成像、预处理和模型策略。
3. 增加低照度图像预处理
AI 模型对输入图像质量非常敏感。夜间图像可以做:
降噪
亮度增强
对比度增强
局部直方图均衡
锐化
伽马校正
参考 OpenCV 思路:
```python
import cv2
def low_light_enhance(image):
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8,8))
enhanced = clahe.apply(gray)
denoised = cv2.fastNlMeansDenoising(enhanced, None, 3, 7, 21)
return denoised
return night_model
elif lux_value < 50: return low_light_model
else: return day_model
```6. 参考方向
可参考:
《Low-Light Vision AI on Qualcomm IoT Devices》
《Camera Tuning for Edge AI Applications》
《Robust Object Detection in Low-Light Conditions》
这类问题的优化重点是:
先让图像变得更容易识别,再让模型适应夜间特征