diff --git a/examples/src/media/sendonly.py b/examples/src/media/sendonly.py index d6b593a7..9d63f752 100644 --- a/examples/src/media/sendonly.py +++ b/examples/src/media/sendonly.py @@ -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) diff --git a/examples/src/ml/hideface_sender.py b/examples/src/ml/hideface_sender.py index 149ad63d..dea43b7c 100644 --- a/examples/src/ml/hideface_sender.py +++ b/examples/src/ml/hideface_sender.py @@ -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)