Remove spammy prints
This commit is contained in:
@@ -1654,7 +1654,7 @@ class VideoEditor:
|
||||
result = self.track_template(self.current_display_frame)
|
||||
if result:
|
||||
center_x, center_y, confidence = result
|
||||
print(f"DEBUG: Template match found at ({center_x}, {center_y}) with confidence {confidence:.2f}")
|
||||
# print(f"DEBUG: Template match found at ({center_x}, {center_y}) with confidence {confidence:.2f}")
|
||||
template_offset = (center_x, center_y)
|
||||
else:
|
||||
# Cropped mode - use only the cropped region for faster template matching
|
||||
@@ -1719,7 +1719,7 @@ class VideoEditor:
|
||||
# Add template matching position
|
||||
if template_offset:
|
||||
positions.append(template_offset)
|
||||
print(f"DEBUG: Template matching: ({template_offset[0]:.1f}, {template_offset[1]:.1f})")
|
||||
# print(f"DEBUG: Template matching: ({template_offset[0]:.1f}, {template_offset[1]:.1f})")
|
||||
|
||||
# Add feature tracking position
|
||||
if feature_offset:
|
||||
@@ -1730,7 +1730,7 @@ class VideoEditor:
|
||||
if positions:
|
||||
avg_x = sum(pos[0] for pos in positions) / len(positions)
|
||||
avg_y = sum(pos[1] for pos in positions) / len(positions)
|
||||
print(f"DEBUG: Average of {len(positions)} positions: ({avg_x:.1f}, {avg_y:.1f})")
|
||||
# print(f"DEBUG: Average of {len(positions)} positions: ({avg_x:.1f}, {avg_y:.1f})")
|
||||
return (avg_x, avg_y)
|
||||
|
||||
# Fall back to individual tracking methods if no base position
|
||||
|
Reference in New Issue
Block a user