if cv2.waitKey(1000 / 12) & 0xff == ord("q"): TypeError: integer argument expected, got float
改成waitKey(1)