質問編集履歴
1
コードの誤字 cv.waitKey(0) --> cv.waitKey(1)
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
cv.imshow("Preview", frame)
|
|
39
39
|
|
|
40
40
|
# qキーが押されたら途中終了
|
|
41
|
-
if cv.waitKey(
|
|
41
|
+
if cv.waitKey(1) & 0xFF == ord('q'):
|
|
42
42
|
break
|
|
43
43
|
|
|
44
44
|
cap.release()
|