Skip to content

Commit 681458f

Browse files
author
arch
committed
add fisheye 200 projection
1 parent 78f0ced commit 681458f

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

funscript_editor/algorithms/funscriptgenerator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ def determin_change_points(self) -> dict:
891891
Returns:
892892
dict: all local max and min points in score {'min':[idx1, idx2, ...], 'max':[idx1, idx2, ...]}
893893
"""
894-
self.logger.info("Determine local max and min")
894+
self.logger.info("Determine change points")
895895
if self.params.direction == 'd':
896896
idx_dict = sp.get_local_max_and_min_idx(self.score['d'], self.video_info.fps)
897897
elif self.params.direction == 'x':

funscript_editor/config/projection.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ vr_he_sbs:
1111
fov: 100
1212
phi: -45
1313

14+
vr_fisheye_200_sbs:
15+
name: '3D VR Video (Fisheye 200)'
16+
video_filter: 'v360=input=fisheye:in_stereo=sbs:id_fov=200:pitch=${phi}:output=flat:d_fov=${fov}:w=${width}:h=${height}'
17+
parameter:
18+
height: 720
19+
width: 1240
20+
fov: 100
21+
phi: -45
22+
1423
flat:
1524
name: '2D Video'
1625
video_filter: 'scale=${width}:${height}'

funscript_editor/ui/settings_dialog.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ def __setup_ui_bindings(self):
3535
self.ui.videoTypeComboBox.currentTextChanged.connect(
3636
lambda value: self.__set_setting(
3737
'videoType',
38-
list(filter(lambda x: PROJECTION[x]['name'] == value, PROJECTION.keys()))[0]))
38+
list(filter(lambda x: PROJECTION[x]['name'] == value, PROJECTION.keys()))[0]
39+
)
40+
)
3941
self.ui.trackingAxisComboBox.currentTextChanged.connect(lambda value: self.__set_setting('trackingAxis', value))
4042
self.ui.trackingMethodComboBox.currentTextChanged.connect(lambda value: self.__set_setting('trackingMethod', value))
4143

0 commit comments

Comments
 (0)