资讯 社区 文档
技术能力
语音技术
文字识别
人脸与人体
图像技术
语言与知识
视频技术

接口说明(新版)

图像特效

黑白图像上色

SDK 调用示例

$image = file_get_contents('example.jpg');

// 调用黑白图像上色
$client->colourize($image);

接口详情

可参考API文档:黑白图像上色

图像风格转换

SDK 调用示例

$image = file_get_contents('example.jpg');
## 传入可选参数
$options = array("option"=>"cartoon");
$client->styleTrans($image, options);

接口详情

可参考API文档:图像风格转换

人像动漫化

SDK 调用示例

""" 如果有可选参数 """
$options = array("type"=>"anime", "mask_id"=>3);
$image = file_get_contents('example.jpg');
$client->selfieAnime($image, options);

接口详情

可参考API文档:人像动漫化

图像增强

图像去雾

SDK 调用示例

$image = file_get_contents('example.jpg');

// 调用图像去雾
$client->dehaze($image);

接口详情

可参考API文档:图像去雾

图像对比度增强

SDK 调用示例

$image = file_get_contents('example.jpg');

// 调用图像对比度增强
$client->contrastEnhance($image);

接口详情

可参考API文档:图像对比度增强

图像无损放大

SDK 调用示例

$image = file_get_contents('example.jpg');

// 调用图像无损放大
$client->imageQualityEnhance($image);

接口详情

可参考API文档:图像无损放大

拉伸图像恢复

SDK 调用示例

$image = file_get_contents('example.jpg');

// 调用拉伸图像恢复
$client->stretchRestore($image);

接口详情

可参考API文档:拉伸图像恢复

图像修复

SDK 调用示例

$rectangle = array(array('width'=> 1, 'top'=> 1, 'height'=> 1, 'left'=> 1));
$image = file_get_contents('example.jpg');
$client->inpaintingByMask($image, $rectangle);

接口详情

可参考API文档:图像修复

图像清晰度增强

SDK 调用示例

$image = file_get_contents('example.jpg');
$client->imageDefinitionEnhance($image);

接口详情

可参考API文档:图像清晰度增强

图像色彩增强

SDK 调用示例

$image = file_get_contents('example.jpg');
$url = "http://image";
  
// 调用图像色彩增强
$client->colorEnhance($image);
$client->colorEnhanceUrl($url);

接口详情

可参考API文档:图像色彩增强

历史版本

天空分割

SDK 调用示例

$image = file_get_contents('example.jpg');
$client->skySeg($image);

接口详情

可参考API文档:天空分割

上一篇
快速入门
下一篇
错误信息