aws-samples / aws-serverless-workshop-innovator-island

Welcome to the Innovator Island serverless workshop! This repo contains all the instructions and code you need to complete the workshop.
MIT No Attribution
564 stars 228 forks source link

Refine image after remove the green background should be more clear #73

Closed nmedia82 closed 2 years ago

nmedia82 commented 2 years ago

Chroma Green Python script Thanks for the great set of tutorials. Actually, the file processed image is not very clear it has some green edges. Do you know how to refine the script to remove these tiny green edges?

jbesw commented 2 years ago

Hello! Great to hear you enjoyed the tutorials!

The Chromakey function (https://github.com/aws-samples/aws-serverless-workshop-innovator-island/blob/main/3-photos/1-chromakey/app.py) take two environment variables specifying the lower and upper bounds for HSV values. These help isolate the green shades:

HSV_LOWER: A tuple representing lower HSV value for the green screen chroma key matching process. HSV_UPPER: A tuple representing upper HSV value for the green screen chroma key matching process.

By experimenting with the first value in each tuple (i.e. lower than 36 and more than 75), you can finetune the chromakey process. I hope this helps!

nmedia82 commented 2 years ago

Thanks so much I will try this.

On Wed, Nov 17, 2021 at 10:57 PM James Beswick @.***> wrote:

Hello! Great to hear you enjoyed the tutorials!

The Chromakey function ( https://github.com/aws-samples/aws-serverless-workshop-innovator-island/blob/main/3-photos/1-chromakey/app.py) take two environment variables specifying the lower and upper bounds for HSV values. These help isolate the green shades:

HSV_LOWER: A tuple representing lower HSV value for the green screen chroma key matching process. HSV_UPPER: A tuple representing upper HSV value for the green screen chroma key matching process.

By experimenting with the first value in each tuple (i.e. lower than 36 and more than 75), you can finetune the chromakey process. I hope this helps!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aws-samples/aws-serverless-workshop-innovator-island/issues/73#issuecomment-971820960, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDCM6SVXHEB3YMDSO4B7O3UMPUHNANCNFSM5IHFWSJA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--

-- regards, Najeeb Ahmad. Cell: + 92 322 4028 612 Founder & CEO N-Media N-Media Solutions https://www.najeebmedia.com

The contents of this e-mail are privileged and confidential and is intended for the addressee(s) only. Unauthorized use is prohibited. If you are not the intended recipient, please notify the sender.