-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
787 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
Document module | ||
Report module | ||
============ | ||
|
||
.. automodule:: vot.document | ||
.. automodule:: vot.report | ||
:members: | ||
|
||
.. automodule:: vot.document.common | ||
.. automodule:: vot.report.common | ||
:members: | ||
|
||
HTML document generation | ||
HTML report generation | ||
------------------------ | ||
|
||
.. automodule:: vot.document | ||
.. automodule:: vot.report | ||
:members: | ||
|
||
LaTeX document generation | ||
LaTeX report generation | ||
------------------------- | ||
|
||
.. automodule:: vot.document.latex | ||
.. automodule:: vot.report.latex | ||
:members: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""" Unit tests for analysis module. """ | ||
|
||
|
||
import unittest | ||
|
||
class Tests(unittest.TestCase): | ||
""" Unit tests for analysis module. """ | ||
|
||
def test_perfect_accuracy(self): | ||
import numpy as np | ||
|
||
from vot.region import Rectangle, Special | ||
from vot.analysis.accuracy import gather_overlaps | ||
|
||
trajectory = [Rectangle(0, 0, 100, 100)] * 30 | ||
groundtruth = [Rectangle(0, 0, 100, 100)] * 30 | ||
|
||
trajectory[0] = Special(1) | ||
|
||
overlaps = gather_overlaps(trajectory, groundtruth) | ||
|
||
print(overlaps) | ||
|
||
self.assertEqual(np.mean(overlaps), 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.