While running this code, getting the value error:
mask_image_temp = np.zeros((1080,1920), dtype=np.uint8)
ndarray_blue = np.array([[1100,600], [375,600], [520,400], [960,400]], np.int32)
polygon_blue = cv2.fillPoly(mask_image_temp,[ndarray_blue],color=1)
polygon_blue = polygon_blue[:,:,np.newaxis]
polygon_blue = cv2.resize(polygon_blue,(960,540))
blue_color_plate = [255,0,0]
blue_image = np.array(polygon_blue * blue_color_plate,np.uint8)
ValueError: operands could not be broadcast together with shapes (540,960) (3,)
Expecting these results: