-
-
Save daniellopez0708/2ec230f236ba53e82425a6eb6fa470bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXIT_PTS = np.array([ | |
[[732, 720], [732, 590], [1280, 500], [1280, 720]], | |
[[0, 400], [645, 400], [645, 0], [0, 0]] | |
]) | |
SHAPE = (720,1280) | |
base = np.zeros(SHAPE + (3,), dtype='uint8') | |
exit_mask = cv2.fillPoly(base, EXIT_PTS, (255, 255, 255))[:, :, 0] | |
plt.imshow(base) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment