def fit(self, binary_warped, location, sequence=True):
    if sequence:
        if (not self.detected):
            self.find_lane_pixels(binary_warped, location)
        else:
            self.search_pixel_around_poly(binary_warped)
        self.fit_polynomial()
    else:
        self.find_lane_pixels(binary_warped, location)
        self.fit_polynomial()
def fit(self, binary_warped, location, sequence=True):
    if sequence:
        if (not self.detected):
            self.find_lane_pixels(binary_warped, location)
        else:
            self.search_pixel_around_poly(binary_warped)
        self.fit_polynomial()
    else:
        self.find_lane_pixels(binary_warped, location)
        self.fit_polynomial()