Eval files are great, can be used for further stabilization if needed

This commit is contained in:
Matt McWilliams 2022-11-15 14:05:45 -05:00
parent 58955ade4b
commit 5a0da25109
1 changed files with 7 additions and 0 deletions

View File

@ -455,4 +455,11 @@ normal = normalize_image(blank, rotated, offset, tl)
print(f'Writing normalized image to {normalImage}')
cv2.imwrite(normalImage, normal)
evaluation = find_hole_punches(normal)
with open(f'{normalImage}.txt', 'w') as evalFile :
for hp in evaluation:
evalFile.write(f'{hp["order"] + 1} : {hp["x"]},{hp["y"]}\n')
#display(normal)