Skip to content

Commit 2a86688

Browse files
author
arch
committed
update build script
1 parent 9203abb commit 2a86688

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@echo off
2-
rmdir /Q /S "build" >/NUL
3-
rmdir /Q /S "dist/funscript-editor" >NUL
4-
del funscript-editor.spec >NUL
2+
rmdir /Q /S "build" 2>NUL
3+
rmdir /Q /S "dist/funscript-editor" 2>NUL
4+
del funscript-editor.spec 2>NUL
55
pyinstaller --add-data="funscript_editor/config/*;funscript_editor/config" --hidden-import "pynput.keyboard._win32" --hidden-import "pynput.mouse._win32" funscript-editor.py
66
xcopy /s "assets" "dist/funscript-editor"
77
copy /Y "funscript_editor\\VERSION.txt" "dist\\funscript-editor\\funscript_editor"

funscript_editor/algorithms/videotracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def run(self) -> None:
7676
# The movement is mostly up-down, so we can restrict left and right more than up and down
7777
dh, dw = int(frame_heigt/12), int(frame_width/38)
7878
else:
79-
dh, dw = int(frame_heigt/2), int(frame_width/2)
79+
dh, dw = int(frame_heigt/2), int(frame_width/4)
8080
x0, y0 = max([0, self.first_tracking_bbox[0] - dw]), max([0, self.first_tracking_bbox[1] - dh])
8181
y1 = min([frame_heigt, self.first_tracking_bbox[1] + self.first_tracking_bbox[3] + dh])
8282
x1 = min([frame_width, self.first_tracking_bbox[0] + self.first_tracking_bbox[2] + dw])

0 commit comments

Comments
 (0)