|
|
@@ -215,14 +215,12 @@ class SleepReplayAnalyzer:
|
|
|
# ---------------- 使用示例 ----------------
|
|
|
if __name__ == "__main__":
|
|
|
start_ts = get_utc_time_s()
|
|
|
- if 1:
|
|
|
- dev_id = "94A9900B0B38"
|
|
|
- bed_rect = [0, 250, 200, 115]
|
|
|
- else:
|
|
|
- dev_id = "94A9900B0B80"
|
|
|
- bed_rect = [80, 130, 120, 210]
|
|
|
- file_path = f"demos/record/{dev_id}.raw.json"
|
|
|
- # file_path = f"demos/record/2025-10-13_21-03-13_94A9900B0B80.raw.json"
|
|
|
+ # dev_id = "806599CFA6D4"
|
|
|
+ # bed_rect = [80, 130, 120, 210]
|
|
|
+ # file_path = f"demos/record/{dev_id}.raw.json"
|
|
|
+ dev_id = "806599CFA6D4"
|
|
|
+ bed_rect = [-80, 134, 200, 120]
|
|
|
+ file_path = f"demos/record/2025-10-22_23-44-49_806599CFA6D4.raw.json"
|
|
|
analyzer = SleepReplayAnalyzer(file_path, bed_rect)
|
|
|
analyzer.analyze()
|
|
|
|