Detector/GenderDetector.py
def classify(self, face):
        """
        classify female or male given croped face
        """
        face = self._resize_image(face)
        feature = self._get_shape_feature(face)
        feature = np.array(feature)
        feature = feature.reshape((1, feature.shape[0]*feature.shape[1]))
        result = self.classifier.predict(feature)
        return result

        classify female or male given croped face
        
classify female or male given croped face
classify female or male given croped face
def classify(self, face):
        face = self._resize_image(face)
        feature = self._get_shape_feature(face)
        feature = np.array(feature)
        feature = feature.reshape((1, feature.shape[0]*feature.shape[1]))
        result = self.classifier.predict(feature)
        return result
def classify ( self , face ) : face = self . _resize_image ( face ) feature = self . _get_shape_feature ( face ) feature = np . array ( feature ) feature = feature . reshape ( ( 1 , feature . shape [ 0 ] * feature . shape [ 1 ] ) ) result = self . classifier . predict ( feature ) return result
classify female or male given croped face
classify female or male given croped face
"""
        classify female or male given croped face
        """
self
face