python opencv3 背景分割 mog2 knn

git:https://github.com/linyi0604/Computer-Vision 使用mog2算法进行背景分割 1 # coding:utf-8 2 3 import cv2 4 5 # 获取摄像头对象 6 cap = cv2.VideoCapture(0) 7 # 背景分割器对象 8 mog = cv2.createBackgroundSubtractorMOG2(
相关文章
相关标签/搜索