Lines Matching refs:cv2
13 import cv2
28 cv2.line(img, (x1, y1), (x2, y2), white)
30 cv2.ellipse( img, (dx+150, dy+100), (100,70), 0, 0, 360, white, -1 )
31 cv2.ellipse( img, (dx+115, dy+70), (30,20), 0, 0, 360, black, -1 )
32 cv2.ellipse( img, (dx+185, dy+70), (30,20), 0, 0, 360, black, -1 )
33 cv2.ellipse( img, (dx+115, dy+70), (15,15), 0, 0, 360, white, -1 )
34 cv2.ellipse( img, (dx+185, dy+70), (15,15), 0, 0, 360, white, -1 )
35 cv2.ellipse( img, (dx+115, dy+70), (5,5), 0, 0, 360, black, -1 )
36 cv2.ellipse( img, (dx+185, dy+70), (5,5), 0, 0, 360, black, -1 )
37 cv2.ellipse( img, (dx+150, dy+100), (10,5), 0, 0, 360, black, -1 )
38 cv2.ellipse( img, (dx+150, dy+150), (40,10), 0, 0, 360, black, -1 )
39 cv2.ellipse( img, (dx+27, dy+100), (20,35), 0, 0, 360, white, -1 )
40 cv2.ellipse( img, (dx+273, dy+100), (20,35), 0, 0, 360, white, -1 )
49 _, contours0, hierarchy = cv2.findContours( img.copy(), cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
50 contours = [cv2.approxPolyDP(cnt, 3, True) for cnt in contours0]
55 cv2.drawContours( vis, contours, (-1, 3)[levels <= 0], (128,255,255),
56 3, cv2.LINE_AA, hierarchy, abs(levels) )
57 cv2.imshow('contours', vis)
59 cv2.createTrackbar( "levels+3", "contours", 3, 7, update )
60 cv2.imshow('image', img)
61 0xFF & cv2.waitKey()
62 cv2.destroyAllWindows()