def computeFaceRecord(self,img,rect=None,eyes=None):
        '''Given an image and face detection box, compute a face identification record'''
        assert self.trained
        
        img = self.cropFace(img,eyes) 
        vec = self.computeVector(img)
        fir = self.pca.project(vec,whiten=True)
        if self.measure == PCA_COS:
            scale = np.sqrt((fir*fir).sum())
            fir = (1.0/scale)*fir
        return fir
dataset/ETHPy150Open bolme/pyvision/src/pyvision/face/PCA.py/PCA.computeFaceRecord/original