aws-samples / aws-samples/liveness-detection

How to Reduce or Attenuate Feedback Colors in AWS FaceLivenessDetector?

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
104
Forks
39
PR merge metrics
No merged PRs in 30d

Description

I am implementing the @aws-amplify/ui-react-liveness (FaceLivenessDetector) component in my web application, and I have a requirement to reduce or attenuate the intensity of the feedback colors (green, red, blue, etc.) shown to users during the liveness process.
I have already tried the following:

Adjusting the config overlay and oval colors to be fully transparent or very soft.

Applying CSS filters (brightness, saturate, grayscale, etc.) directly to the canvas element.

Using a MutationObserver to re-apply styles whenever the canvas is recreated.

Even editing styles directly in the node_modules directory.

Unfortunately, none of these approaches work. The feedback colors rendered by the AWS SDK remain unchanged, which can be uncomfortable for some users.

My question:

Is there any supported or documented way to attenuate or customize the intensity of the feedback colors in the liveness video stream?

Is there an “accessibility mode” or a way to make the feedback less visually intense, or to apply a global style/filter to the video?

If not, is this behavior intentional for security reasons, and is there an official statement or workaround for users sensitive to bright colors?

Any guidance or confirmation from the AWS team would be greatly appreciated. Thank you!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.