Closedown
This commit is contained in:
@@ -58,8 +58,7 @@ def average (ips):
|
||||
def grab_frames(samples):
|
||||
frames = []
|
||||
for i in range(samples):
|
||||
aux = get_image()
|
||||
grayscale(aux)
|
||||
aux = get_image()
|
||||
frames.append(aux)
|
||||
return frames
|
||||
|
||||
@@ -80,7 +79,9 @@ def get_roi():
|
||||
def get_image():
|
||||
roi = get_roi()
|
||||
ip = load_image(img.image)
|
||||
return sub_image(ip, roi[0], roi[1], roi[2], roi[3])
|
||||
ret = sub_image(ip, roi[0], roi[1], roi[2], roi[3])
|
||||
grayscale(ret)
|
||||
return ret
|
||||
|
||||
|
||||
def detect_pucks(ip):
|
||||
|
||||
Reference in New Issue
Block a user