daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Jan 17th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. triangles = getTrianglesFromShape((10,10,480,480), pts)
  2.  
  3. for tri in triangles:
  4.     lines = [(tri[i],tri[i+1]) for i in range(-1,len(tri)-1)]
  5.     for line in lines :
  6.         cv.line(image,*line,(255,255,255))
  7. cv.imshow("Results", image)
  8. cv.waitKey(0)
RAW Paste Data
Top