
上QQ阅读APP看本书,新人免费读10天
设备和账号都新为新人
2.1.1 原理分析
本项目利用边缘计算网关的摄像头实现图像数据采集,通过OpenCV视频处理接口VideoCapture进行图像和视频的处理,并使用Flask服务将采集到的图像推流到前端展示,常用OpenCV视频处理接口VideoCapture如表2.1所示。
表2.1 OpenCV视频处理接口VideoCapture

续表

OpenCV图像处理接口包括imread(filepath,flags)、imshow(window_name,image)和imwrite(filename,image),基本功能分析如表2.2所示。
表2.2 OpenCV图像处理接口
