def segmentRegionOfInterest(img):
    height = img.shape[0]
    polygons = np.array([[(200, height), (1100, height), (550, 250)]])
    mask = np.zeros_like(img)
    cv.fillPoly(mask, polygons, 255)
    masked_image = cv.bitwise_and(img, mask)
    return masked_image
def segmentRegionOfInterest(img):
    height = img.shape[0]
    polygons = np.array([[(200, height), (1100, height), (550, 250)]])
    mask = np.zeros_like(img)
    cv.fillPoly(mask, polygons, 255)
    masked_image = cv.bitwise_and(img, mask)
    return masked_image