-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add function to parse and calculate crop parameters
A new function 'parse_crop_params' has been added to parse the crop parameters. This function uses regex to parse the crop string and returns a tuple if it matches the pattern. The 'detect_crop_parameters' function is now also improved to calculate and return composite crop parameters. It now gathers all crop parameters, finds the maximum dimensions, and the minimum offsets, and composites the largest frame. If no crop parameters are found, it returns an empty string.
- Loading branch information
Showing
1 changed file
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters