def get_center_face(faces, width):
    """
    From a list of faces identify the most centered one according to the image width
    :param faces:
    :param width:
    :return: most centered face coordinate
    """
    min_x = 1e5
    min_index = -1

    for i, face_coord in enumerate(faces):
        center_face_x = face_coord[0] + ((face_coord[2] - face_coord[0]) / 2)
        if abs((width / 2)-center_face_x) < min_x:
            min_index = i
            min_x = abs((width / 2)-center_face_x)

    return [faces[min_index]]