test_stereo.py 510 B

1234567891011121314151617181920
  1. #!/usr/bin/env python
  2. import cv2 as cv
  3. from tests_common import NewOpenCVTests
  4. class quasi_dense_stereo_test(NewOpenCVTests):
  5. def test_simple(self):
  6. stereo = cv.stereo.QuasiDenseStereo_create((100, 100))
  7. self.assertIsNotNone(stereo)
  8. dense_matches = cv.stereo_MatchQuasiDense()
  9. self.assertIsNotNone(dense_matches)
  10. parameters = cv.stereo_PropagationParameters()
  11. self.assertIsNotNone(parameters)
  12. if __name__ == '__main__':
  13. NewOpenCVTests.bootstrap()