Skip to content

Commit 367089f

Browse files
authored
Merge pull request #42 from hawkeye217/current-frame-debug
debug logging for get_current_frame
2 parents 2d28185 + 60ebfa3 commit 367089f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

frigate/object_processing.py

+8
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ def __init__(
6767

6868
def get_current_frame(self, draw_options={}):
6969
with self.current_frame_lock:
70+
logger.info(f"self._current_frame type: {type(self._current_frame)}")
71+
if isinstance(
72+
self._current_frame, np.ndarray
73+
): # Check if it's a NumPy array
74+
logger.info(f"self._current_frame shape: {self._current_frame.shape}")
75+
logger.info(
76+
f"self._current_frame dtype: {self._current_frame.dtype}"
77+
) # Log the data type as well
7078
frame_copy = np.copy(self._current_frame)
7179
frame_time = self.current_frame_time
7280
tracked_objects = {k: v.to_dict() for k, v in self.tracked_objects.items()}

0 commit comments

Comments
 (0)