From f42df990a464d743605ea49d0a817623af3ce94e Mon Sep 17 00:00:00 2001 From: Ivor Berry Date: Mon, 13 Jan 2025 09:41:57 -0500 Subject: [PATCH] remove retired background feature --- .../Python/image-analysis/image-analysis.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Labfiles/01-analyze-images/Python/image-analysis/image-analysis.py b/Labfiles/01-analyze-images/Python/image-analysis/image-analysis.py index a2c8c150..d1d641d2 100644 --- a/Labfiles/01-analyze-images/Python/image-analysis/image-analysis.py +++ b/Labfiles/01-analyze-images/Python/image-analysis/image-analysis.py @@ -32,10 +32,7 @@ def main(): # Analyze image AnalyzeImage(image_file, image_data, cv_client) - # Background removal - BackgroundForeground(ai_endpoint, ai_key, image_file) - - except Exception as ex: + except Exception as ex: print(ex) @@ -54,14 +51,6 @@ def AnalyzeImage(image_filename, image_data, cv_client): # Display analysis results -def BackgroundForeground(endpoint, key, image_file): - # Define the API version and mode - api_version = "2023-02-01-preview" - mode="backgroundRemoval" # Can be "foregroundMatting" or "backgroundRemoval" - - # Remove the background from the image or generate a foreground matte - - if __name__ == "__main__": main()