Skip to content

Commit efbd164

Browse files
committed
Update stable and dev version
Update stable and dev version
1 parent fc13288 commit efbd164

File tree

4 files changed

+42
-39
lines changed

4 files changed

+42
-39
lines changed

.idea/workspace.xml

+35-33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "je_auto_control_dev"
9-
version = "0.0.107"
9+
version = "0.0.110"
1010
authors = [
1111
{ name = "JE-Chen", email = "[email protected]" },
1212
]
@@ -16,7 +16,7 @@ license-files = ["LICENSE"]
1616
dependencies = [
1717
"je_open_cv",
1818
"pillow",
19-
"Pyside6==6.8.2.1",
19+
"Pyside6==6.8.3",
2020
"pyobjc-core;platform_system=='Darwin'",
2121
"pyobjc;platform_system=='Darwin'",
2222
"python-Xlib;platform_system=='Linux'",

je_auto_control/utils/cv2_utils/video_recording.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ def __init__(self, video_name: str = "autocontrol_recoding"):
1414
super().__init__()
1515
self.recoding_flag = True
1616
self.video_name = video_name
17+
self.daemon = True
18+
self.fps = 20
1719

1820
def set_recoding_flag(self, recoding_flag: bool):
1921
autocontrol_logger.info(f"RecordingThread set_recoding_flag recoding_flag: {recoding_flag}")
@@ -24,8 +26,7 @@ def run(self):
2426
resolution = sct.monitors[0]
2527
self.video_name = self.video_name + '.mp4'
2628
fourcc = cv2.VideoWriter_fourcc(*'mp4v')
27-
desired_fps = 20
28-
video_writer = cv2.VideoWriter(self.video_name, fourcc, desired_fps,
29+
video_writer = cv2.VideoWriter(self.video_name, fourcc, self.fps,
2930
(resolution['width'], resolution['height']))
3031
while self.recoding_flag:
3132
screen_image = sct.grab(resolution)

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "je_auto_control"
9-
version = "0.0.164"
9+
version = "0.0.167"
1010
authors = [
1111
{ name = "JE-Chen", email = "[email protected]" },
1212
]
@@ -16,7 +16,7 @@ license-files = ["LICENSE"]
1616
dependencies = [
1717
"je_open_cv",
1818
"pillow",
19-
"Pyside6==6.8.2.1",
19+
"Pyside6==6.8.3",
2020
"pyobjc-core;platform_system=='Darwin'",
2121
"pyobjc;platform_system=='Darwin'",
2222
"python-Xlib;platform_system=='Linux'",

0 commit comments

Comments
 (0)