Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 35 additions & 33 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "je_auto_control_dev"
version = "0.0.107"
version = "0.0.110"
authors = [
{ name = "JE-Chen", email = "[email protected]" },
]
Expand All @@ -16,7 +16,7 @@ license-files = ["LICENSE"]
dependencies = [
"je_open_cv",
"pillow",
"Pyside6==6.8.2.1",
"Pyside6==6.8.3",
"pyobjc-core;platform_system=='Darwin'",
"pyobjc;platform_system=='Darwin'",
"python-Xlib;platform_system=='Linux'",
Expand Down
5 changes: 3 additions & 2 deletions je_auto_control/utils/cv2_utils/video_recording.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ def __init__(self, video_name: str = "autocontrol_recoding"):
super().__init__()
self.recoding_flag = True
self.video_name = video_name
self.daemon = True
self.fps = 20

def set_recoding_flag(self, recoding_flag: bool):
autocontrol_logger.info(f"RecordingThread set_recoding_flag recoding_flag: {recoding_flag}")
Expand All @@ -24,8 +26,7 @@ def run(self):
resolution = sct.monitors[0]
self.video_name = self.video_name + '.mp4'
fourcc = cv2.VideoWriter_fourcc(*'mp4v')
desired_fps = 20
video_writer = cv2.VideoWriter(self.video_name, fourcc, desired_fps,
video_writer = cv2.VideoWriter(self.video_name, fourcc, self.fps,
(resolution['width'], resolution['height']))
while self.recoding_flag:
screen_image = sct.grab(resolution)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "je_auto_control"
version = "0.0.164"
version = "0.0.167"
authors = [
{ name = "JE-Chen", email = "[email protected]" },
]
Expand All @@ -16,7 +16,7 @@ license-files = ["LICENSE"]
dependencies = [
"je_open_cv",
"pillow",
"Pyside6==6.8.2.1",
"Pyside6==6.8.3",
"pyobjc-core;platform_system=='Darwin'",
"pyobjc;platform_system=='Darwin'",
"python-Xlib;platform_system=='Linux'",
Expand Down