Skip to content

Commit

Permalink
コメント追加
Browse files Browse the repository at this point in the history
  • Loading branch information
melpon committed Mar 28, 2024
1 parent 02ae1f8 commit 881ce3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/src/media/sendonly.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def __init__(
self._connection.on_disconnect = self._on_disconnect

if platform.system() == "Windows":
# CAP_DSHOW を設定しないと、カメラの起動がめちゃめちゃ遅くなる
self._video_capture = cv2.VideoCapture(camera_id, cv2.CAP_DSHOW)
else:
self._video_capture = cv2.VideoCapture(camera_id)
Expand Down
1 change: 1 addition & 0 deletions examples/src/ml/hideface_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def __init__(
self._connection.on_disconnect = self._on_disconnect

if platform.system() == "Windows":
# CAP_DSHOW を設定しないと、カメラの起動がめちゃめちゃ遅くなる
self._video_capture = cv2.VideoCapture(camera_id, cv2.CAP_DSHOW)
else:
self._video_capture = cv2.VideoCapture(camera_id)
Expand Down

0 comments on commit 881ce3d

Please sign in to comment.