From ed1442f055ee79fac5595b4742871dc39d14b6ed Mon Sep 17 00:00:00 2001 From: Barbaros Cetiner Date: Thu, 11 Apr 2024 10:14:19 -0700 Subject: [PATCH] bc - Image classifier example now includes OccupancyClassifier --- examples/image_processor/brails_image_classifier.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/image_processor/brails_image_classifier.py b/examples/image_processor/brails_image_classifier.py index 47ef304..a38cc47 100644 --- a/examples/image_processor/brails_image_classifier.py +++ b/examples/image_processor/brails_image_classifier.py @@ -51,8 +51,7 @@ aerial_images.set_directory("./images/satellite", True) street_images.set_directory("./images/street", True) -# Test importer and one of the aerial imagery classifiers: - +# Test importer and one of the aerial imagery classifiers, RoofShapeClassifier: my_class = importer.get_class('RoofShapeClassifier') my_classifier = my_class() predictions = my_classifier.predict(aerial_images) @@ -63,8 +62,9 @@ predictions = my_classifier.predict(aerial_images) print(predictions) -my_class = importer.get_class('FacadeParser') +# Test importer and one of the street-level imagery classifiers, +# OccupancyClassifier: +my_class = importer.get_class('OccupancyClassifier') my_classifier = my_class() -# will need a new image set predictions = my_classifier.predict(street_images) -print(predictions) \ No newline at end of file +print(predictions)