From 880e400708fff22c74a95f2eb8ae689041d9369c Mon Sep 17 00:00:00 2001 From: JE-Chen <33644111+JE-Chen@users.noreply.github.com> Date: Mon, 13 Nov 2023 15:25:50 +0800 Subject: [PATCH 1/2] Refactor and add screen recorder Refactor and add screen recorder --- .idea/workspace.xml | 76 +++++++++++++------ docs/source/conf.py | 2 +- je_auto_control/__init__.py | 29 +++---- .../callback/callback_function_executor.py | 10 +-- .../utils/{image => cv2_utils}/__init__.py | 0 .../utils/cv2_utils/screen_record.py | 40 ++++++++++ .../utils/{image => cv2_utils}/screenshot.py | 0 .../template_detection.py | 8 +- .../utils/exception/exception_tags.py | 4 +- .../utils/executor/action_executor.py | 2 +- je_auto_control/wrapper/auto_control_image.py | 50 ++++++------ .../wrapper/auto_control_screen.py | 4 +- pyproject.toml | 11 ++- dev.toml => stable.toml | 11 +-- .../calculator/calculator_executor.py | 50 ++++++------ 15 files changed, 183 insertions(+), 114 deletions(-) rename je_auto_control/utils/{image => cv2_utils}/__init__.py (100%) create mode 100644 je_auto_control/utils/cv2_utils/screen_record.py rename je_auto_control/utils/{image => cv2_utils}/screenshot.py (100%) rename je_auto_control/utils/{image => cv2_utils}/template_detection.py (79%) rename dev.toml => stable.toml (88%) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index f541f9e..cf42c7c 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,7 +4,21 @@