@@ -296,8 +296,8 @@ def min_max_selector(self,
296296 cv2 .putText (image , "Use 'space' to quit and set the trackbar values" ,
297297 (self .x_text_start , 100 ), cv2 .FONT_HERSHEY_SIMPLEX , self .font_size , (255 ,0 ,0 ), 2 )
298298
299- beep_thread = threading .Thread (target = self .beep )
300- beep_thread .start ()
299+ # beep_thread = threading.Thread(target=self.beep)
300+ # beep_thread.start()
301301 self .clear_keypress_queue ()
302302 trackbarValueMin = lower_limit
303303 trackbarValueMax = upper_limit
@@ -320,11 +320,13 @@ def min_max_selector(self,
320320
321321 def beep (self ) -> None :
322322 """ Play an sound to signal an event """
323- if NOTIFICATION_SOUND_FILE is not None :
324- if os .path .exists (NOTIFICATION_SOUND_FILE ):
325- playsound (NOTIFICATION_SOUND_FILE )
326- else :
327- self .logger .warning ("Notification sound file not found (%s)" , NOTIFICATION_SOUND_FILE )
323+ if False :
324+ # we have problems on windows with this
325+ if NOTIFICATION_SOUND_FILE is not None :
326+ if os .path .exists (NOTIFICATION_SOUND_FILE ):
327+ playsound (NOTIFICATION_SOUND_FILE )
328+ else :
329+ self .logger .warning ("Notification sound file not found (%s)" , NOTIFICATION_SOUND_FILE )
328330
329331
330332 def calculate_score (self , bboxes ) -> None :
@@ -858,8 +860,8 @@ def tracking(self) -> str:
858860
859861 scene_change_quit_flag = False
860862 if scene_detector .is_scene_change (frame_num - 1 + self .params .start_frame ):
861- beep_thread = threading .Thread (target = self .beep )
862- beep_thread .start ()
863+ # beep_thread = threading.Thread(target=self.beep)
864+ # beep_thread.start()
863865 cv2 .putText (last_frame , "Scene change detected, Press 'space' to continue tracking or press 'q' to finalize tracking" ,
864866 (self .x_text_start , 75 ), cv2 .FONT_HERSHEY_SIMPLEX , self .font_size , (255 ,0 ,0 ), 2 )
865867 cv2 .imshow (self .window_name , self .preview_scaling (last_frame ))
0 commit comments