def measure_curvature_real(self, ploty, x, y):
    '\n        Calculates the curvature of polynomial functions in meters.\n        '
    ym_per_pix = (30 / 720)
    xm_per_pix = (3.7 / 700)
    fit_cr = np.polyfit((y * ym_per_pix), (x * xm_per_pix), 2)
    y_eval = np.max(ploty)
    curverad = (((1 + (((((2 * fit_cr[0]) * y_eval) * ym_per_pix) + fit_cr[1]) ** 2)) ** 1.5) / np.absolute((2 * fit_cr[0])))
    self.radius_of_curvature = curverad
    return curverad
Calculates the curvature of polynomial functions in meters.
def measure_curvature_real(self, ploty, x, y):
    '\n        \n        '
    ym_per_pix = (30 / 720)
    xm_per_pix = (3.7 / 700)
    fit_cr = np.polyfit((y * ym_per_pix), (x * xm_per_pix), 2)
    y_eval = np.max(ploty)
    curverad = (((1 + (((((2 * fit_cr[0]) * y_eval) * ym_per_pix) + fit_cr[1]) ** 2)) ** 1.5) / np.absolute((2 * fit_cr[0])))
    self.radius_of_curvature = curverad
    return curverad