test_tracking.py 431 B

12345678910111213141516171819
  1. #!/usr/bin/env python
  2. import os
  3. import numpy as np
  4. import cv2 as cv
  5. from tests_common import NewOpenCVTests, unittest
  6. class tracking_test(NewOpenCVTests):
  7. def test_createTracker(self):
  8. t = cv.TrackerMIL_create()
  9. try:
  10. t = cv.TrackerGOTURN_create()
  11. except cv.error as e:
  12. pass # may fail due to missing DL model files
  13. if __name__ == '__main__':
  14. NewOpenCVTests.bootstrap()