sportslabkit.metrics.hota#

Overview#

Function#

hota_score(bboxes_track, bboxes_gt)

Calculates the HOTA metrics for one sequence.

hota_final_scores(res)

Calculate final HOTA scores

Functions#

sportslabkit.metrics.hota.hota_score(bboxes_track: sportslabkit.BBoxDataFrame, bboxes_gt: sportslabkit.BBoxDataFrame) dict[str, Any][source]#

Calculates the HOTA metrics for one sequence.

Parameters:
  • bboxes_track (BBoxDataFrame) – Bbox Dataframe for tracking in 1 sequence

  • bboxes_gt (BBoxDataFrame) – Bbox Dataframe for ground truth in 1 sequence

Returns:

HOTA metrics

Return type:

dict[str, Any]

Note: The description of each evaluation indicator will be as follows: “HOTA” : The overall HOTA score. “DetA” : The detection accuracy. “AssA” : The association accuracy. “DetRe” : The detection recall. “DetPr” : The detection precision. “AssRe” : The association recall. “AssPr” : The association precision. “LocA” : The localization accuracy. “RHOTA” : The robust HOTA score. “HOTA(0)” : The overall HOTA score with a threshold of 0.5. “LocA(0)” : The localization accuracy with a threshold of 0.5. “HOTALocA(0)” : The overall HOTA score with a threshold of 0.5 and the localization accuracy with a threshold of 0.5.

This is also based on the following original paper and the github repository. paper : https://link.springer.com/article/10.1007/s11263-020-01375-2 code : https://github.com/JonathonLuiten/TrackEval

sportslabkit.metrics.hota.hota_final_scores(res)[source]#

Calculate final HOTA scores