Effects Android
Effects / Guides / Beauty filters / Android

Apply a beauty filter in Android with Nosmai Effects

Updated August 22, 2026

Use NosmaiBeauty to apply adjustable skin smoothing, whitening, sharpening, and teeth whitening to an Android preview.

Prerequisites

Apply a subtle preset

import com.nosmai.effect.api.NosmaiBeauty;

NosmaiBeauty.applySkinSmoothing(0.35f);
NosmaiBeauty.applySkinWhitening(0.10f);
NosmaiBeauty.applySharpen(0.15f);
NosmaiBeauty.applyTeethWhitening(0.20f);

NosmaiBeauty queues these operations until the pipeline is ready, but the app should still wait for camera readiness before presenting enabled controls.

Parameter ranges

MethodRangeOff valueVisible result
applySkinSmoothing0.0f to 1.0f0.0fSoftens skin detail
applySkinWhitening0.0f to 1.0f0.0fBrightens skin tone
applySharpen0.0f to 1.0f0.0fRestores edge detail
applyTeethWhitening0.0f to 1.0f0.0fBrightens detected teeth

Clamp values in the UI and update them from the main thread.

Reset beauty

NosmaiBeauty.clearAllBeautyFilters();

Verify it worked

Move smoothing between 0.0f and 0.4f. The preview should update without restarting Camera2 and remain close to the normal 30 FPS target.

Common errors

SymptomCauseFix
No visible changeCamera or pipeline is not readyWait for the preview readiness signal before enabling controls
Frame rate falls on a lower-tier deviceToo many face or segmentation features are activeTest one feature, use 30 FPS, and reduce the camera resolution if needed
Beauty clears another effectThe visual modes conflictFollow active-slot rules and observe pipeline state

Next steps

References

Nosmai

An AR and AI company. Founded on the idea that the next decade of software will be visual, and that the tools for it should be within reach of anyone building.

Newsletter

Product updates and release notes. No spam.

© 2026 nosmai, inc · all rights reserved