diff --git a/fourcell/normalize.py b/fourcell/normalize.py index 3f2a7de..aa45f6d 100644 --- a/fourcell/normalize.py +++ b/fourcell/normalize.py @@ -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) \ No newline at end of file