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:
@@ -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)")
|
||||
|
||||
Reference in New Issue
Block a user