useless now

This commit is contained in:
Loic Delattre 2023-02-06 15:45:57 +01:00
parent 1dd5c73423
commit 698a3fa68b
1 changed files with 2 additions and 4 deletions

View File

@ -84,10 +84,8 @@ def average_and_export():
image = "frames/frame" + str(i) + ".jpg"
read_img = cv2.imread(image)
#Bug here inside of func with min funcs of empty data
try:
out_colors = RGB_dataframe(read_img, i)
except:
out_colors = out_colors
out_colors = RGB_dataframe(read_img, i)
Ravg = sum(out_colors[0])/len(out_colors[0])
Gavg = sum(out_colors[1])/len(out_colors[1])
Bavg = sum(out_colors[2])/len(out_colors[2])