'@brief äžäžªæä»¶å€¹è¿è¡å€äžªäººèžçæ£æµäžå¯¹éœ'

def align_multi_face_and_save(self, file_path, save_path):

    file_list = os.listdir(file_path)
    imgDim = 128
    for file_name in file_list:
        print 'processing    ', file_name
        bgrImg = cv2.imread((file_path + file_name))
        rgbImg = cv2.cvtColor(bgrImg, cv2.COLOR_BGR2RGB)
        bbs = self.getAllFaceBoundingBoxes(rgbImg)
        if (bbs is not []):
            for bb in bbs:
                face = self.align_dlib_cpp(imgDim, rgbImg, bb)
                if (face is not None):
                    rgbImg_face = cv2.cvtColor(face, cv2.COLOR_RGB2BGR)
                    cv2.imwrite(((((((((((save_path + file_name) + '@') + str(bb.left())) + '_') + str(bb.top())) + '_') + str(bb.right())) + '_') + str(bb.bottom())) + '.jpg'), rgbImg_face)
