def testDetectorDOG6(self): detector = DetectorDOG(selector='all') filename = os.path.join(pyvision.__path__[0],'data','nonface','NONFACE_37.jpg') im = Image(filename,bw_annotate=True) points = detector.detect(im) for score,pt,radius in points: im.annotatePoint(pt) self.assertEquals(len(points),561)
def testDetectorCorner5(self): detector = DetectorCorner(selector='best') filename = os.path.join(pyvision.__path__[0],'data','nonface','NONFACE_37.jpg') im = Image(filename,bw_annotate=True) points = detector.detect(im) for score,pt,radius in points: im.annotatePoint(pt) if self.SHOW_IMAGES: im.show() self.assertEquals(len(points),250)
def testDetectorCorner5(self): detector = DetectorCorner(selector='best') filename = os.path.join(pyvision.__path__[0], 'data', 'nonface', 'NONFACE_37.jpg') im = Image(filename, bw_annotate=True) points = detector.detect(im) for score, pt, radius in points: im.annotatePoint(pt) if self.SHOW_IMAGES: im.show() self.assertEquals(len(points), 250)