16 lines
435 B
Python
16 lines
435 B
Python
from locate_finders import count_finders
|
|
from generate_qrcode import generate_scrambled_qrcode
|
|
import random
|
|
from PIL import Image
|
|
|
|
for i in range(1000):
|
|
print(f"\rTesting {i}", end="")
|
|
generate_scrambled_qrcode(random.randbytes(32))
|
|
finders, _ = count_finders("./scrambled_test_qr_code.png")
|
|
if finders != 3:
|
|
print("found anomaly")
|
|
img = Image.open("./scrambled_test_qr_code.png")
|
|
img.show()
|
|
|
|
|