Python+opencv實現攝像頭的調取和中間1/4圖像的切割另外輸出窗口

opencv和python的安裝在上一篇博客中已經講過了。 1.實現代碼 import cv2 cap = cv2.VideoCapture(0) while(True): ret,frame = cap.read() cv2.imshow("camera",frame) h=len(frame) w=len(frame[0]) frame=frame[in
相關文章
相關標籤/搜索