Commit ·
d270f25
1
Parent(s): e70c734
debug: 添加手势检测循环确认日志
Browse files
reachy_mini_ha_voice/camera_server.py
CHANGED
|
@@ -524,6 +524,13 @@ class MJPEGCameraServer:
|
|
| 524 |
if self._gesture_detector is None:
|
| 525 |
return
|
| 526 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 527 |
try:
|
| 528 |
# Detect gesture
|
| 529 |
detected_gesture, confidence = self._gesture_detector.detect(frame)
|
|
|
|
| 524 |
if self._gesture_detector is None:
|
| 525 |
return
|
| 526 |
|
| 527 |
+
# Log periodically to confirm detection is running
|
| 528 |
+
if not hasattr(self, '_gesture_call_count'):
|
| 529 |
+
self._gesture_call_count = 0
|
| 530 |
+
self._gesture_call_count += 1
|
| 531 |
+
if self._gesture_call_count % 50 == 1: # Every 50 calls (~10 seconds at 5fps)
|
| 532 |
+
_LOGGER.info("Gesture detection running (call #%d)", self._gesture_call_count)
|
| 533 |
+
|
| 534 |
try:
|
| 535 |
# Detect gesture
|
| 536 |
detected_gesture, confidence = self._gesture_detector.detect(frame)
|