Esempio n. 1
0
 def test_create(self):
     modules.load_known_modules()
     registered_detector = ImageObjectDetector.registered_names()[0]
     nose.tools.ok_(registered_detector is not None,
                     "No instance returned from the factory method")
Esempio n. 2
0
 def test_registered_names(self):
     modules.load_known_modules()
     registered_detectors = ImageObjectDetector.registered_names()
     print("All registered image object detectors")
     for detectors in registered_detectors:
         print(" " + detectors)