This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Advanced Automation System with AI Integration | |
| Robust version with multiple screenshot methods | |
| """ | |
| import pyautogui | |
| import cv2 | |
| import numpy as np | |
| import torch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def load_learned_patterns(self): | |
| """Load previously learned interaction patterns""" | |
| try: | |
| patterns_file = self.memory_dir / "learned_patterns.json" | |
| if patterns_file.exists(): | |
| with open(patterns_file, 'r') as f: | |
| return json.load(f) | |
| except Exception as e: | |
| print(f"Could not load learned patterns: {e}") | |
| return {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def load_learned_patterns(self): | |
| """Load previously learned interaction patterns""" | |
| try: | |
| patterns_file = self.memory_dir / "learned_patterns.json" | |
| if patterns_file.exists(): | |
| with open(patterns_file, 'r') as f: | |
| return json.load(f) | |
| except Exception as e: | |
| print(f"Could not load learned patterns: {e}") | |
| return {} |