2024-03-10 18:49:39 +00:00
|
|
|
from data_access import Listing
|
|
|
|
|
from tqdm import tqdm
|
|
|
|
|
|
|
|
|
|
listings = Listing.get_all_listings()
|
|
|
|
|
|
|
|
|
|
for listing in tqdm(listings):
|
2024-03-10 22:32:34 +00:00
|
|
|
tqdm.write(str(listing.identifier))
|
|
|
|
|
# listing.calculate_sqm_model() # using google/deplot model. Too slow, rather use tesseract
|
2024-03-13 16:24:57 +00:00
|
|
|
listing.calculate_sqm_ocr(recalculate=False)
|