What's the most efficient (fastest) way to map a pd.DataFrame of coordinates (x1, x2, y1, y2) to the cv2.line() function?
import cv2
import pandas as pd
test = pd.DataFrame({'x1': [1, 2], 'x2': [3, 4], 'y1': [1, 2], 'y2': [3, 4]})
From here, there would be some form of function to map to cv2.line, like this:
map(test, cv2.line((x1, y1), (x2, y2), (0, 0, 255), 1)