Skip to content

Latest commit

 

History

History
86 lines (48 loc) · 1.39 KB

ptu.md

File metadata and controls

86 lines (48 loc) · 1.39 KB

图片特效

滤镜

查看滤镜特效编码

$res = $ai->ptu()->path('path/to/some_image.jpg')->imgFilter([
    'filter' => 1 //滤镜特效编码  
]);

if($res->success()){
    var_dump($res->toArray());
}

人脸美妆

查看美妆编码

$res = $ai->ptu()->path('path/to/some_image.jpg')->faceCosmetic([
    'cosmetic' => 1 //美妆编码
]);


if($res->success()){
    var_dump($res->toArray());
}


人脸变妆

查看变妆编码

$res = $ai->ptu()->path('path/to/some_image.jpg')->faceDecoration([
    'decoration' => 1 //变妆编码  
]);


if($res->success()){
    var_dump($res->toArray());
}


大头贴

查看大头贴编码


$res = $ai->ptu()->path('path/to/some_image.jpg')->faceSticker([
    'sticker' => 1 //大头贴编码  
]);

if($res->success()){
    var_dump($res->toArray());
}

颜龄检测

$res = $ai->ptu()->path('path/to/some_image.jpg')->faceAge();

if($res->success()){
    var_dump($res->toArray());
}