Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mask color config #21

Merged
merged 2 commits into from
Jun 10, 2024
Merged

Mask color config #21

merged 2 commits into from
Jun 10, 2024

Conversation

Mews
Copy link
Contributor

@Mews Mews commented Jun 10, 2024

Closes #20

Changes

  • Created a file in /server/config.py to store settings to be used in the flask app
  • Added a MASK_BACKGROUND_COLOR setting to the config.py file, with a default value of (0, 0 ,0), representing the black color
  • Loaded the config.py file into the flask app
  • Use the MASK_BACKGROUND_COLOR setting inside the download_image_mask function

Mews added 2 commits June 10, 2024 19:11
Created the configuration file to be loaded by the flask app
Use the MASK_BACKGROUND_COLOR loaded from config.py in download_image_mask
Copy link

vercel bot commented Jun 10, 2024

@Mews is attempting to deploy a commit to the Suman Kunwar's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Jun 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
annotate-lab ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2024 6:37pm

Copy link
Owner

@sumn2u sumn2u left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice Work!

@sumn2u sumn2u merged commit 71cdd47 into sumn2u:master Jun 10, 2024
3 checks passed
@Mews Mews deleted the mask-color-config branch June 10, 2024 18:56
@Mews Mews restored the mask-color-config branch June 10, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancing Image Masking: Configurable Default Color Selection
2 participants