示例#1
0
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.))
示例#2
0
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.))
示例#3
0
def test_match_detections():
    evaluator = ObjectAreaEvaluator()
    result = evaluator.match_detections(kGroundTruth, kDetected)
    assert result == ([[], [1, 2], [3], [3], [4]], [[], [1], [1], [2, 3], [4],
                                                    [], []])
示例#4
0
def test_match_detections():
	evaluator = ObjectAreaEvaluator()
	result = evaluator.match_detections(kGroundTruth, kDetected)
	assert result == ([[], [1, 2], [3], [3], [4]], [[], [1], [1], [2, 3], [4], [], []])