<s> '''<STR_LIT>''' <EOL> import cv2 <EOL> import numpy as np <EOL> import sys <EOL> print __doc__ <EOL> try : <EOL> fn = sys . argv [ <NUM_LIT:1> ] <EOL> except : <EOL> fn = "<STR_LIT>" <EOL> src = cv2 . imread ( fn , <NUM_LIT:1> ) <EOL> img = cv2 . cvtColor ( src , cv2 . COLOR_BGR2GRAY ) <EOL> img = cv2 . medianBlur ( img , <NUM_LIT:5> ) <EOL> cimg = src . copy ( ) <EOL> circles = cv2 . HoughCircles ( img , cv2 . HOUGH_GRADIENT , <NUM_LIT:1> , <NUM_LIT:10> , np . array ( [ ] ) , <NUM_LIT:100> , <NUM_LIT:30> , <NUM_LIT:1> , <NUM_LIT:30> ) <EOL> a , b , c = circles . shape <EOL> for i in range ( b ) : <EOL> cv2 . circle ( cimg , ( circles [ <NUM_LIT:0> ] [ i ] [ <NUM_LIT:0> ] , circles [ <NUM_LIT:0> ] [ i ] [ <NUM_LIT:1> ] ) , circles [ <NUM_LIT:0> ] [ i ] [ <NUM_LIT:2> ] , ( <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:255> ) , <NUM_LIT:3> , cv2 . LINE_AA ) <EOL> cv2 . circle ( cimg , ( circles [ <NUM_LIT:0> ] [ i ] [ <NUM_LIT:0> ] , circles [ <NUM_LIT:0> ] [ i ] [ <NUM_LIT:1> ] ) , <NUM_LIT:2> , ( <NUM_LIT:0> , <NUM_LIT:255> , <NUM_LIT:0> ) , <NUM_LIT:3> , cv2 . LINE_AA ) <EOL> cv2 . imshow ( "<STR_LIT:source>" , src ) <EOL> cv2 . imshow ( "<STR_LIT>" , cimg ) <EOL> cv2 . waitKey ( <NUM_LIT:0> ) </s>
