File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class FunscriptGeneratorParameter:
4646 # Settings
4747 start_frame : int = 0 # default is video start (input: set current video position)
4848 end_frame : int = - 1 # default is video end (-1)
49- raw_output : bool = False
49+ raw_output : bool = SETTINGS [ "raw_output" ]
5050 max_playback_fps : int = max ((0 , int (SETTINGS ['max_playback_fps' ])))
5151 use_zoom : bool = SETTINGS ['use_zoom' ]
5252 zoom_factor : float = max ((1.0 , float (SETTINGS ['zoom_factor' ])))
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ def scale_signal_with_anomalies(
3838 list: list with scaled signal
3939 """
4040 if len (signal ) == 0 : return signal
41+ if len (signal ) == 1 : return [lower ]
4142 a1 = np .quantile (signal , lower_quantile )
4243 a2 = np .quantile (signal , upper_quantile )
4344 anomaly_free = np .array ([x for x in signal if a1 < x < a2 ])
Original file line number Diff line number Diff line change @@ -28,3 +28,6 @@ tracking_lost_time: 0
2828# - 'CONTENT': Detects cuts using changes in colour and intensity between frames.
2929# - 'THRESHOLD': Detects fades in video.
3030scene_detector : ' CSV'
31+
32+ # Output an position for each frame. This option disable post processing!
33+ raw_output : False
You can’t perform that action at this time.
0 commit comments