图片特效

滤镜

查看滤镜特效编码

$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());
}