def addRectangulars(self, frame_from, corners_arr):
add_frame = np.zeros(frame_from.shape, np.uint8)
cv2.polylines(add_frame,[corners_arr],True,(0,255,255))
frame = cv2.add(add_frame, frame_from)
return frame
文章目录