forked from HQU-gxy/CVTH3PE
e79e899b874806b134ea7cc50f2f02bbaefd9507
- 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.
jupytext --to py:percent <script>.ipynb
Description
Languages
Jupyter Notebook
83.5%
Python
16.5%