复制 importcv2importnumpyasnpimportpickleimportmatplotlib.pyplotasplt cap=cv2.VideoCapture(0)whileTrue:ret,frame=cap.read()# Our operations on the frame come here gray=cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY)# Display the resulting frame cv2.imshow('frame',gray)ifcv2.waitKey(1)&0xFF==ord('q...