def calculate_height(distance, y_max, y_min, focal_y):
    """
    Calculate real person height in centimeters.
    """
    px_height = y_max - y_min
    person_height = distance * px_height / focal_y
    return person_height