From 5a0da25109f05b35f16adfe1d8f7059b3f5e2d55 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Tue, 15 Nov 2022 14:05:45 -0500 Subject: [PATCH] Eval files are great, can be used for further stabilization if needed --- fourcell/normalize.py | 7 +++++++ 1 file changed, 7 insertions(+) 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