Skip to content

Commit 815fa8b

Browse files
author
arch
committed
add raw output flag to settings (#10)
1 parent 3571156 commit 815fa8b

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

funscript_editor/algorithms/funscriptgenerator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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'])))

funscript_editor/algorithms/signalprocessing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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])

funscript_editor/config/settings.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
3030
scene_detector: 'CSV'
31+
32+
# Output an position for each frame. This option disable post processing!
33+
raw_output: False

0 commit comments

Comments
 (0)