Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Created April 28, 2020 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aravindpai/64292f381f046386ebf3b780e9ffbce4 to your computer and use it in GitHub Desktop.
Save aravindpai/64292f381f046386ebf3b780e9ffbce4 to your computer and use it in GitHub Desktop.
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