forked from HQU-gxy/CVTH3PE
- Introduced parallel processing using `ThreadPoolExecutor` to enhance the performance of the `calculate_affinity_matrix` function, allowing simultaneous processing of multiple cameras. - Added a new helper function `_single_camera_job` to encapsulate the logic for processing individual camera detections, improving code organization and readability. - Updated the function signature to include an optional `max_workers` parameter for controlling the number of threads used in parallel execution. - Enhanced documentation to clarify the purpose and parameters of the new parallel processing implementation.
33 KiB
33 KiB