def test_match_detections_no_detections(): # TODO: is this the correct result? evaluator = ObjectAreaEvaluator() result = evaluator.match_detections(kGroundTruth, list()) assert result == (0., 0., (0., 0.), (0., 5.))
def test_match_detections(): evaluator = ObjectAreaEvaluator() result = evaluator.match_detections(kGroundTruth, kDetected) assert result == ([[], [1, 2], [3], [3], [4]], [[], [1], [1], [2, 3], [4], [], []])