Skip to content

Commit

Permalink
remove retired background feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ivorb authored Jan 13, 2025
1 parent fc3fdb7 commit f42df99
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand All @@ -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()

0 comments on commit f42df99

Please # to comment.