[4/n] click-ify add detect floorplan command
run with poetry run python main.py --step detect_floorplan
This commit is contained in:
parent
70e8ef9f95
commit
48f694e002
2 changed files with 17 additions and 5 deletions
|
|
@ -1,9 +1,19 @@
|
|||
from data_access import Listing
|
||||
from tqdm import tqdm
|
||||
|
||||
listings = Listing.get_all_listings()
|
||||
|
||||
for listing in tqdm(listings):
|
||||
tqdm.write(str(listing.identifier))
|
||||
# listing.calculate_sqm_model() # using google/deplot model. Too slow, rather use tesseract
|
||||
listing.calculate_sqm_ocr(recalculate=False)
|
||||
def detect_floorplan():
|
||||
listings = Listing.get_all_listings()
|
||||
|
||||
for listing in tqdm(listings):
|
||||
tqdm.write(str(listing.identifier))
|
||||
# listing.calculate_sqm_model() # using google/deplot model. Too slow, rather use tesseract
|
||||
listing.calculate_sqm_ocr(recalculate=False)
|
||||
|
||||
|
||||
def main():
|
||||
detect_floorplan()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue