def base64_cv2(base64_str):
    imgString = base64.b64decode(base64_str)
    nparr = np.fromstring(imgString, np.uint8)
    image = cv2.imdecode(nparr, cv2.IMREAD_COLOR)
    a = cv2.imwrite(((path_save + 'img_face_1') + '.jpg'), image)
    print(a)
    return image
def base64_cv2(base64_str):
    imgString = base64.b64decode(base64_str)
    nparr = np.fromstring(imgString, np.uint8)
    image = cv2.imdecode(nparr, cv2.IMREAD_COLOR)
    a = cv2.imwrite(((path_save + 'img_face_1') + '.jpg'), image)
    print(a)
    return image