ocr / test_speed.py
borreooo's picture
Add project files
b42373a
Raw
History Blame Contribute Delete
328 Bytes
import time
from ocr import read_chassis
start = time.time()
text, conf = read_chassis("images/chassis/26995.jpg")
end = time.time()
print(f"First run : {text} | {end - start:.2f}s")
start = time.time()
text, conf = read_chassis("images/chassis/26995.jpg")
end = time.time()
print(f"Second run : {text} | {end - start:.2f}s")