python+opencv实现动态物体追踪源码

内容分享3小时前发布
0 1 0

简单几行就可以实现对动态物体的追踪,足见opencv在图像处理上的强大。python代码: import cv2 import numpy as np camera=cv2.VideoCapture(0) firstframe=None while True: ret, frame = camera.read() if not ret: break gray=cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) gray=cv2.GaussianBlur(gray, (21, 21),0) if firstframe is None:

python+opencv实现动态物体追踪源码

© 版权声明

相关文章

1 条评论

none
暂无评论...