我展示了这个基本的Python脚本,我用互联网一起攻击了一个做Python图像的公司,当我无法回答这个问题时他们结束了采访#34;你将如何设计图像测试? ?这"
import cv2
import numpy as np
from matplotlib import pyplot as plt
cv2.namedWindow("preview")
vc = cv2.VideoCapture(0)
if vc.isOpened(): # try to get the first frame
video, frame = vc.read()
else:
video = False
while video:
edges = cv2.Canny(frame,100,200)
cv2.imshow("preview", edges)
rval, frame = vc.read()
key = cv2.waitKey(20)
cv2.destroyWindow("preview")
现在问题在于我的脑海,我仍然不知道答案。任何人都可以帮助我开始,或演示一个例子吗?