Closedown

This commit is contained in:
gac-S_Changer
2017-06-23 14:54:45 +02:00
parent 6b62017f34
commit b085789df2
3 changed files with 30 additions and 15 deletions

View File

@@ -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):