File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
funscript_editor/algorithms Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 77import math
88import json
99import logging
10+ import platform
1011import threading
1112from numpy .core .fromnumeric import take
1213from numpy .lib .function_base import append
@@ -327,7 +328,7 @@ def min_max_selector(self,
327328 self .clear_keypress_queue ()
328329 trackbarValueMin = lower_limit
329330 trackbarValueMax = upper_limit
330- self .logger .info ("Waiting for user input for max and min action position " )
331+ self .logger .info ("Waiting for user input" )
331332 while True :
332333 try :
333334 preview = image .copy ()
@@ -341,7 +342,9 @@ def min_max_selector(self,
341342 trackbarValueMax = cv2 .getTrackbarPos ("Max" , self .window_name )
342343 except : pass
343344
344- # do not log here this cause problems on windows
345+ if platform .system () != 'Windows' :
346+ # TODO logging here on windows cause open background process
347+ self .logger .info ("Receive User Input" )
345348 self .__show_loading_screen (preview .shape )
346349 return (trackbarValueMin , trackbarValueMax ) if trackbarValueMin < trackbarValueMax else (trackbarValueMax , trackbarValueMin )
347350
Original file line number Diff line number Diff line change 44import cv2
55import time
66import logging
7+ import platform
78
89from dataclasses import dataclass
910from threading import Thread
@@ -226,5 +227,8 @@ def run(self) -> None:
226227 status = StaticVideoTracker .Status .IMPLAUSIBLE
227228
228229 self .queue_out .put ((status , bbox ))
229- self .__logger .info ("Video Tracker Stoped" )
230+
231+ if platform .system () != 'Windows' :
232+ # TODO logging here on windows cause open background process
233+ self .__logger .info ("Video Tracker Stoped" )
230234
You can’t perform that action at this time.
0 commit comments