improving OCR
This commit is contained in:
parent
1b69fd4305
commit
2c2adcfa7c
2 changed files with 28 additions and 0 deletions
13
crawler/91_recalculate_floorplan.py
Normal file
13
crawler/91_recalculate_floorplan.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from data_access import Listing
|
||||
from tqdm import tqdm
|
||||
|
||||
listings = Listing.get_all_listings()
|
||||
recalculate_listings = []
|
||||
|
||||
for listing in listings:
|
||||
sqm = listing.sqm_ocr
|
||||
if sqm is None or sqm < 10 or sqm > 200:
|
||||
recalculate_listings.append(listing)
|
||||
|
||||
for listing in tqdm(recalculate_listings):
|
||||
listing.calculate_sqm_ocr(recalculate=True)
|
||||
Loading…
Add table
Add a link
Reference in a new issue