예제 #1
0
    def detect(self, image):
        face_detector = FaceDetector()
        glasses_detector = GlassesDetector()
        profile_detector = ProfileDetector()

        face_points = face_detector.detect(image) or []
        glasses_points = glasses_detector.detect(image) or []
        profile_points = profile_detector.detect(image) or []

        return face_points + glasses_points + profile_points
예제 #2
0
    def detect(self, image):
        face_detector = FaceDetector()
        feature_detector = FeatureDetector()

        feature_points = []

        face_points = face_detector.detect(image) or []

        if not face_points:
            feature_points = feature_detector.detect(image) or []

        return face_points + feature_points