if c & 0xFF == ordq # 按下q程序结束 stop = True cv2destroyAllWindows # 释放窗口ValueError The truth value of an array with more than one element is ambiguous Use aany or
if (c & 0xFF == ord('q')).any(): # 按下q程序结束 stop = True cv2.destroyAllWindows() # 释放窗口
原文地址: https://www.cveoy.top/t/topic/bq3O 著作权归作者所有。请勿转载和采集!