Enhance VideoEditor with improved point transformation, bounds checking, and debugging features

This commit refines the point transformation methods in the VideoEditor class, ensuring coordinates are validated against frame dimensions and crop areas. It adds detailed logging for point transformations and mouse interactions, improving visibility into the state of tracking points. Additionally, it introduces debug features for visualizing crop rectangles and point indices, enhancing the debugging experience during video editing.
This commit is contained in:
2025-09-16 20:32:33 +02:00
parent 70364d0458
commit cb097c55f1
2 changed files with 81 additions and 19 deletions

View File

@@ -108,8 +108,6 @@ class MotionTracker:
def get_tracking_offset(self, frame_number: int) -> Tuple[float, float]:
"""Get the offset to center the crop on the tracked point"""
import logging
logger = logging.getLogger('croppa')
if not self.tracking_enabled:
print(f"get_tracking_offset: tracking not enabled, returning (0,0)")