Skip to content

Instantly share code, notes, and snippets.

@aindong
Created August 18, 2017 10:17
Show Gist options
  • Save aindong/d49d54e2d1510f7d01f9fce144e9746c to your computer and use it in GitHub Desktop.
Save aindong/d49d54e2d1510f7d01f9fce144e9746c to your computer and use it in GitHub Desktop.
draw target like graphics on face
cv2.line(Image, (x, y), (x + (w/5) ,y), WHITE, 2)
cv2.line(Image, (x+((w/5)*4), y), (x+w, y), WHITE, 2)
cv2.line(Image, (x, y), (x, y+(h/5)), WHITE, 2)
cv2.line(Image, (x+w, y), (x+w, y+(h/5)), WHITE, 2)
cv2.line(Image, (x, (y+(h/5*4))), (x, y+h), WHITE, 2)
cv2.line(Image, (x, (y+h)), (x + (w/5) ,y+h), WHITE, 2)
cv2.line(Image, (x+((w/5)*4), y+h), (x + w, y + h), WHITE, 2)
cv2.line(Image, (x+w, (y+(h/5*4))), (x+w, y+h), WHITE, 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment