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(
相關文章
相關標籤/搜索