Eval files are great, can be used for further stabilization if needed
This commit is contained in:
parent
58955ade4b
commit
5a0da25109
|
@ -455,4 +455,11 @@ normal = normalize_image(blank, rotated, offset, tl)
|
||||||
|
|
||||||
print(f'Writing normalized image to {normalImage}')
|
print(f'Writing normalized image to {normalImage}')
|
||||||
cv2.imwrite(normalImage, normal)
|
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)
|
#display(normal)
|
Loading…
Reference in New Issue