Created
April 28, 2020 19:13
-
-
Save aravindpai/64292f381f046386ebf3b780e9ffbce4 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
def change_2_red(img,person,p1,p2): | |
risky = np.unique(p1+p2) | |
for i in risky: | |
x1,y1,x2,y2 = person[i] | |
_ = cv2.rectangle(img, (x1, y1), (x2, y2), (255,0,0), 2) | |
return img |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment