How Kuaishou Achieves Realistic Body Beautification with AI‑Driven Pose Detection and Image Warping

This article explains Kuaishou’s Y‑tech body‑beautification pipeline, detailing how proprietary human pose detection, key‑point localization, and image‑warping techniques such as stretching, triangulation, and liquify are combined to create stable, natural effects like long‑leg, slim‑waist, and swan‑neck, while minimizing background distortion.

Kuaishou Large Model
Kuaishou Large Model
Kuaishou Large Model
How Kuaishou Achieves Realistic Body Beautification with AI‑Driven Pose Detection and Image Warping

Background

With the rise of short‑video platforms, portrait beautification has become a standard feature in many apps. Leveraging Kuaishou’s self‑developed human pose detection and key‑point localization technologies, the Y‑tech team has released seven body‑beautification effects—"Long Leg", "Small Head", "Swan Neck", "Slim Waist", "Full Chest", "Slim Shoulder", and "Slim Thigh"—available in Kuaishou, Kuaishou Short Video, and other apps.

Examples of Long Leg, Small Head, and Swan Neck effects
Examples of Long Leg, Small Head, and Swan Neck effects

Body‑Beautification Technology Overview

Human Pose Detection & Key‑Point Localization

Accurate and stable body‑beautification starts with reliable human pose detection and key‑point localization. For effects such as "Swan Neck" or "Slim Shoulder", precise shoulder points are required; for "Slim Waist", accurate waist points are essential. Kuaishou’s proprietary key‑point model provides the necessary precision.

Human pose detection and key‑point localization
Human pose detection and key‑point localization

Deformation Algorithms Used in Body‑Beautification

The pipeline employs three main image‑warping algorithms: image stretching, triangulation, and liquify. Image stretching expands a region according to a predefined rule, suitable for large‑scale changes. Triangulation divides the target area into triangles and applies affine transformations for fine‑grained control. Liquify moves pixels around a control point to achieve smooth, rounded deformations.

Image Stretching Algorithm

For the "Long Leg" effect, the region below the hip line is stretched toward the foot direction after key‑point detection. The stretching factor λ(y,c) provides a smooth transition, preventing abrupt visual artifacts.

Long Leg stretching illustration
Long Leg stretching illustration

Formula (simplified):

P2 = P1 + λ * (target_line_midpoint - P1)

Triangulation Algorithm

Triangulation creates a mesh of triangles over the target region. Each triangle undergoes an affine transformation derived from the before‑and‑after vertex coordinates. This enables precise control of deformation for areas such as the thigh.

Triangulation mesh for the thigh region
Triangulation mesh for the thigh region

Liquify Algorithm

Liquify defines a circular influence area centered on a control point. Pixels inside the circle are pushed toward a direction vector, with intensity decreasing toward the boundary. This method is used for effects such as "Slim Waist" and "Swan Neck".

Liquify grid illustration
Liquify grid illustration

Divide the image into a fine mesh.

Detect key points (e.g., waist points P1 and P2).

Set the waist line as the liquify direction and define a radius.

Move mesh points inside the radius according to the liquify formula.

Render the final "Slim Waist" effect.

Advantages of Kuaishou’s Body‑Beautification Technology

Background Distortion Correction

When deforming a human figure, the background often warps, leading to unnatural results (e.g., “the wall is crooked”). Kuaishou’s self‑developed background‑distortion correction algorithm keeps the slope of background lines unchanged, preserving visual consistency.

Before, distorted, and corrected background
Before, distorted, and corrected background

For the "Small Head" effect, the correction removes noticeable background warping, as shown in the comparison.

Small Head effect with and without background correction
Small Head effect with and without background correction

Reduced Background Influence

By leveraging precise key‑point data and adaptive algorithm parameters, Kuaishou minimizes the impact on the background. Effects such as "Swan Neck" and "Slim Thigh" automatically adjust liquify radius and intensity, while a dynamic strength‑reduction mechanism further limits unintended deformation.

High Visual Stability

In video scenarios, rapid body movement can cause background jitter. Kuaishou incorporates motion‑aware constraints and smooth transition functions to keep the background stable, resulting in smoother playback compared with competing solutions.

Long Leg effect stability comparison
Long Leg effect stability comparison

Overall, the body‑beautification pipeline combines accurate pose detection, robust deformation algorithms, and background‑preserving techniques to deliver natural, stable, and user‑friendly visual effects.

References

Andreas Gustafsson, Interactive Image Warping.

Key‑point detection in Kuaishou: https://mp.weixin.qq.com/s/ab789Vd74DW1sQT7duxmSg

Transformations: http://www.cs.tau.ac.il/~dcor/Graphics/cg-slides/trans3d.pdf

R. Gioi et al., “LSD: A fast line segment detector…”, IEEE TPAMI, 2010.

A. Vakhitov & V. Lempitsky, “Learnable line segment descriptor…”, IEEE Access, 2019.

C.-H. Chang et al., “Shape‑preserving half‑projective warps…”, CVPR, 2014.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Computer VisionAIimage warpingbody beautificationpose detection
Kuaishou Large Model
Written by

Kuaishou Large Model

Official Kuaishou Account

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.