自动识别图像中主体轮廓,与背景进行分离,返回分割后的Alpha图、前景物体图,适应多物体,复杂背景。人像、商品、卡通、动物等等,所有明确主体的品类都可以识别分割,适应复杂背景和光线。
返回二进制文件流
返回base64字符串
通过图片URL返回base64结果
github地址: https://github.com/picup-shop
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=6&crop=true' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=6&crop=true' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=6&crop=true' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=6&crop=true' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=6&crop=true' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=6&crop=true' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=6&crop=true' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=6&crop=true' \
-o out.png
(1) 请求参数(Header)
参数 | 参数类型 | 描述 |
---|---|---|
Content-Type | string | multipart/form-data |
APIKEY | string | 您的专属API Key |
(2) 请求参数(Body)
参数 | 值 | 必填 |
---|---|---|
file | 图片文件 | 是 |
crop | 是否裁剪至最小非透明区域,url参数,加在url后面,false不裁剪,true裁剪,不填写不裁剪 | 否 |
bgcolor | 填充背景色,url参数,加在url后面,十六进制大小RGB颜色,如FFFFFF,不填写不填充背景色 | 否 |
outputFormat | 输出图片格式,url参数,加在url后面,可以为png,webp,jpg_$quality($quality是压缩图片的值,为0~100之间,比如jpg_75),默认值为png | 否 |
直接返回content-type为image/png,图片处理后的二进制文件。
{
"code": 1001, //
"data": null
"msg": '余额不足',
"time": 1590462453264
}
github地址: https://github.com/picup-shop
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=6&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=6&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=6&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=6&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=6&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=6&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=6&crop=true'
(1) 请求参数(Header)
参数 | 参数类型 | 描述 |
---|---|---|
Content-Type | string | multipart/form-data |
APIKEY | string | 您的专属API Key |
(2) 请求参数(Body)
参数 | 值 | 必填 |
---|---|---|
file | 图片文件 | 是 |
crop | 是否裁剪至最小非透明区域,url参数,加在url后面,false不裁剪,true裁剪,不填写不裁剪 | 否 |
bgcolor | 填充背景色,url参数,加在url后面,十六进制大小RGB颜色,如FFFFFF,不填写不填充背景色 | 否 |
faceAnalysis | 人脸检测点信息,为true返回带人脸检测信息 | 否 |
outputFormat | 输出图片格式,url参数,加在url后面,可以为png,webp,jpg_$quality($quality是压缩图片的值,为0~100之间,比如jpg_75),默认值为png | 否 |
{
"code": 0,
"data": {
"imageBase64": "iVBORw0KGgo..." //返回图像的base64编码
},
"msg": null,
"time": 1590462453264
}
{
"code": 0,
"data":{
"imageBase64":"iVBORw0KGgoAAAANSUhEUgAABqMAAAg3CAYAAAC7wX7xAAAgAElE....",
"faceAnalysis":{
"face_num": 1, //人脸数量
"faces": [ //face_num*8 数组,含义为p1(x,y),p3(x,y),p2(x,y),p4(x,y)(参考图片)
[
236.4606096446514,
497.67069862782955,
1492.7539091706276,
2050.210829436779,
236.4606096446514,
497.67069862782955,
1492.7539091706276,
2050.210829436779
]
]
"point":[
[
[
213.5859375, //x轴点位
1035.0703125 //y轴点位
],
[
221.80078125,
1219.904296875
]
......//一共返回68个点位,按数组索引值顺序请参考下方点位图片,数值默认为x,y
]
]
}
},
"msg": null,
"time": 1620798570850
}
点位图片
{
"code": 1001, //
"data": null
"msg": '余额不足',
"time": 1590462453264
}
github地址: https://github.com/picup-shop
curl -X GET --header 'Accept: application/json' \
--header 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
'https://picupapi.tukeli.net/api/v1/mattingByUrl?url=http%3A%2F%2Fdeeplor.oss-cn-hangzhou.aliyuncs.com%2Fupload%2Fimage%2F20200721%2F6ed6a205f75d4f4c88fb403700712191.jpg&mattingType=6'
curl -X GET --header 'Accept: application/json' \
--header 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
'https://picupapi.tukeli.net/api/v1/mattingByUrl?url=http%3A%2F%2Fdeeplor.oss-cn-hangzhou.aliyuncs.com%2Fupload%2Fimage%2F20200721%2F6ed6a205f75d4f4c88fb403700712191.jpg&mattingType=6'
(1) 请求参数(Header)
参数 | 参数类型 | 描述 |
---|---|---|
APIKEY | string | 您的专属API Key |
(2) 请求参数(Body)
参数 | 值 | 必填 |
---|---|---|
mattingType | 抠图类型,1:人像,2:物体,3:头像,4:一键美化,6:通用抠图,11:卡通化,17: 卡通头像,18: 人脸变清晰, 19: 照片上色 | 是 |
crop | 是否裁剪至最小非透明区域,url参数,加在url后面,false不裁剪,true裁剪,不填写不裁剪 | 否 |
bgcolor | 填充背景色,url参数,加在url后面,十六进制大小RGB颜色,如FFFFFF,不填写不填充背景色 | 否 |
url | 图片的url地址 | 是 |
faceAnalysis | 人脸检测点信息,为true返回带人脸检测信息 | 否 |
outputFormat | 输出图片格式,url参数,加在url后面,可以为png,webp,jpg_$quality($quality是压缩图片的值,为0~100之间,比如jpg_75),默认值为png | 否 |
{
"code": 0,
"data": {
"imageBase64": "iVBORw0KGgo..." //返回图像的base64编码
},
"msg": null,
"time": 1590462453264
}
{
"code": 0,
"data":{
"imageBase64":"iVBORw0KGgoAAAANSUhEUgAABqMAAAg3CAYAAAC7wX7xAAAgAElE....",
"faceAnalysis":{
"face_num": 1, //人脸数量
"faces": [ //face_num*8 数组,含义为p1(x,y),p3(x,y),p2(x,y),p4(x,y)(参考图片)
[
236.4606096446514,
497.67069862782955,
1492.7539091706276,
2050.210829436779,
236.4606096446514,
497.67069862782955,
1492.7539091706276,
2050.210829436779
]
]
"point":[
[
[
213.5859375, //x轴点位
1035.0703125 //y轴点位
],
[
221.80078125,
1219.904296875
]
......//一共返回68个点位,按数组索引值顺序请参考下方点位图片,数值默认为x,y
]
]
}
},
"msg": null,
"time": 1620798570850
}
点位图片
{
"code": 1001, //
"data": null
"msg": '余额不足',
"time": 1590462453264
}
利用人工智能技术全自动分割出照片中的人像,分割精度高,准确率高,速度快。 发丝级抠图,对脸部、头发进行细粒度分析,实现发丝级的精细化分割效果。不论发型是披肩发,还是丸子头,都可以完整分割。非常适合在图像合成的场景中应用,比如:证件照、职业装、学籍照、电商服饰、明星海报、女装、欧美时尚等。 识别图像中的人体轮廓,与背景进行分离,返回分割后的前景人像图,适应多个人体,复杂背景,人体位置重叠、遮挡、背面、侧面等各类人体姿态,各种服装、发饰、帽子、眼镜、鞋包、手机等衣着随身配饰。
返回二进制文件流
返回base64字符串
通过图片URL返回base64结果
github地址: https://github.com/picup-shop
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=1' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=1' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=1' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=1' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=1' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=1' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=1' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=1' \
-o out.png
(1) 请求参数(Header)
参数 | 参数类型 | 描述 |
---|---|---|
Content-Type | string | multipart/form-data |
APIKEY | string | 您的专属API Key |
(2) 请求参数(Body)
参数 | 值 | 必填 |
---|---|---|
file | 图片文件 | 是 |
crop | 是否裁剪至最小非透明区域,url参数,加在url后面,false不裁剪,true裁剪,不填写不裁剪 | 否 |
bgcolor | 填充背景色,url参数,加在url后面,十六进制大小RGB颜色,如FFFFFF,不填写不填充背景色 | 否 |
outputFormat | 输出图片格式,url参数,加在url后面,可以为png,webp,jpg_$quality($quality是压缩图片的值,为0~100之间,比如jpg_75),默认值为png | 否 |
直接返回content-type为image/png,图片处理后的二进制文件。
{
"code": 1001, //
"data": null
"msg": '余额不足',
"time": 1590462453264
}
github地址: https://github.com/picup-shop
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?crop=true'
(1) 请求参数(Header)
参数 | 参数类型 | 描述 |
---|---|---|
Content-Type | string | multipart/form-data |
APIKEY | string | 您的专属API Key |
(2) 请求参数(Body)
参数 | 值 | 必填 |
---|---|---|
file | 图片文件 | 是 |
crop | 是否裁剪至最小非透明区域,url参数,加在url后面,false不裁剪,true裁剪,不填写不裁剪 | 否 |
bgcolor | 填充背景色,url参数,加在url后面,十六进制大小RGB颜色,如FFFFFF,不填写不填充背景色 | 否 |
faceAnalysis | 人脸检测点信息,为true返回带人脸检测信息 | 否 |
outputFormat | 输出图片格式,url参数,加在url后面,可以为png,webp,jpg_$quality($quality是压缩图片的值,为0~100之间,比如jpg_75),默认值为png | 否 |
{
"code": 0,
"data": {
"imageBase64": "iVBORw0KGgo..." //返回图像的base64编码
},
"msg": null,
"time": 1590462453264
}
{
"code": 0,
"data":{
"imageBase64":"iVBORw0KGgoAAAANSUhEUgAABqMAAAg3CAYAAAC7wX7xAAAgAElE....",
"faceAnalysis":{
"face_num": 1, //人脸数量
"faces": [ //face_num*8 数组,含义为p1(x,y),p3(x,y),p2(x,y),p4(x,y)(参考图片)
[
236.4606096446514,
497.67069862782955,
1492.7539091706276,
2050.210829436779,
236.4606096446514,
497.67069862782955,
1492.7539091706276,
2050.210829436779
]
]
"point":[
[
[
213.5859375, //x轴点位
1035.0703125 //y轴点位
],
[
221.80078125,
1219.904296875
]
......//一共返回68个点位,按数组索引值顺序请参考下方点位图片,数值默认为x,y
]
]
}
},
"msg": null,
"time": 1620798570850
}
点位图片
{
"code": 1001, //
"data": null
"msg": '余额不足',
"time": 1590462453264
}
github地址: https://github.com/picup-shop
curl -X GET --header 'Accept: application/json' \
--header 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
'https://picupapi.tukeli.net/api/v1/mattingByUrl?url=http%3A%2F%2Fdeeplor.oss-cn-hangzhou.aliyuncs.com%2Fupload%2Fimage%2F20200721%2F6ed6a205f75d4f4c88fb403700712191.jpg&mattingType=1'
curl -X GET --header 'Accept: application/json' \
--header 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
'https://picupapi.tukeli.net/api/v1/mattingByUrl?url=http%3A%2F%2Fdeeplor.oss-cn-hangzhou.aliyuncs.com%2Fupload%2Fimage%2F20200721%2F6ed6a205f75d4f4c88fb403700712191.jpg&mattingType=1'
(1) 请求参数(Header)
参数 | 参数类型 | 描述 |
---|---|---|
APIKEY | string | 您的专属API Key |
(2) URL参数
参数 | 值 | 必填 |
---|---|---|
mattingType | 抠图类型,1:人像,2:物体,3:头像,4:一键美化,6:通用抠图,11:卡通化,17: 卡通头像,18: 人脸变清晰, 19: 照片上色 | 是 |
crop | 是否裁剪至最小非透明区域,url参数,加在url后面,false不裁剪,true裁剪,不填写不裁剪 | 否 |
bgcolor | 填充背景色,url参数,加在url后面,十六进制大小RGB颜色,如FFFFFF,不填写不填充背景色 | 否 |
url | 图片的url地址 | 是 |
faceAnalysis | 人脸检测点信息,为true返回带人脸检测信息 | 否 |
outputFormat | 输出图片格式,url参数,加在url后面,可以为png,webp,jpg_$quality($quality是压缩图片的值,为0~100之间,比如jpg_75),默认值为png | 否 |
{
"code": 0,
"data": {
"imageBase64": "iVBORw0KGgo..." //返回图像的base64编码
},
"msg": null,
"time": 1590462453264
}
{
"code": 0,
"data":{
"imageBase64":"iVBORw0KGgoAAAANSUhEUgAABqMAAAg3CAYAAAC7wX7xAAAgAElE....",
"faceAnalysis":{
"face_num": 1, //人脸数量
"faces": [ //face_num*8 数组,含义为p1(x,y),p3(x,y),p2(x,y),p4(x,y)(参考图片)
[
236.4606096446514,
497.67069862782955,
1492.7539091706276,
2050.210829436779,
236.4606096446514,
497.67069862782955,
1492.7539091706276,
2050.210829436779
]
]
"point":[
[
[
213.5859375, //x轴点位
1035.0703125 //y轴点位
],
[
221.80078125,
1219.904296875
]
......//一共返回68个点位,按数组索引值顺序请参考下方点位图片,数值默认为x,y
]
]
}
},
"msg": null,
"time": 1620798570850
}
点位图片
{
"code": 1001, //
"data": null
"msg": '余额不足',
"time": 1590462453264
}
自动识别图像中主体轮廓,与背景进行分离,返回分割后的Alpha图、前景物体图,适应多物体,复杂背景。服饰、男女装、鞋帽、首饰、箱包、化妆品、饮料、快销品、宠物等等,所有明确主体的品类都可以识别分割,电商特别适用,适应复杂背景和光线。
返回二进制文件流
返回base64字符串
通过图片URL返回base64结果
github地址: https://github.com/picup-shop
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=2' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=2' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=2' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=2' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=2' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=2' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=2' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=2' \
-o out.png
(1) 请求参数(Header)
参数 | 参数类型 | 描述 |
---|---|---|
Content-Type | string | multipart/form-data |
APIKEY | string | 您的专属API Key |
(2) 请求参数(Body)
参数 | 值 | 必填 |
---|---|---|
file | 图片文件 | 是 |
crop | 是否裁剪至最小非透明区域,url参数,加在url后面,false不裁剪,true裁剪,不填写不裁剪 | 否 |
bgcolor | 填充背景色,url参数,加在url后面,十六进制大小RGB颜色,如FFFFFF,不填写不填充背景色 | 否 |
outputFormat | 输出图片格式,url参数,加在url后面,可以为png,webp,jpg_$quality($quality是压缩图片的值,为0~100之间,比如jpg_75),默认值为png | 否 |
直接返回content-type为image/png,图片处理后的二进制文件。
{
"code": 1001, //
"data": null
"msg": '余额不足',
"time": 1590462453264
}
github地址: https://github.com/picup-shop
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=2&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=2&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=2&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=2&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=2&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=2&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=2&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=2&crop=true'
(1) 请求参数(Header)
参数 | 参数类型 | 描述 |
---|---|---|
Content-Type | string | multipart/form-data |
APIKEY | string | 您的专属API Key |
(2) 请求参数(Body)
参数 | 值 | 必填 |
---|---|---|
file | 图片文件 | 是 |
crop | 是否裁剪至最小非透明区域,url参数,加在url后面,false不裁剪,true裁剪,不填写不裁剪 | 否 |
bgcolor | 填充背景色,url参数,加在url后面,十六进制大小RGB颜色,如FFFFFF,不填写不填充背景色 | 否 |
faceAnalysis | 人脸检测点信息,为true返回带人脸检测信息 | 否 |
outputFormat | 输出图片格式,url参数,加在url后面,可以为png,webp,jpg_$quality($quality是压缩图片的值,为0~100之间,比如jpg_75),默认值为png | 否 |
{
"code": 0,
"data": {
"imageBase64": "iVBORw0KGgo..." //返回图像的base64编码
},
"msg": null,
"time": 1590462453264
}
{
"code": 0,
"data":{
"imageBase64":"iVBORw0KGgoAAAANSUhEUgAABqMAAAg3CAYAAAC7wX7xAAAgAElE....",
"faceAnalysis":{
"face_num": 1, //人脸数量
"faces": [ //face_num*8 数组,含义为p1(x,y),p3(x,y),p2(x,y),p4(x,y)(参考图片)
[
236.4606096446514,
497.67069862782955,
1492.7539091706276,
2050.210829436779,
236.4606096446514,
497.67069862782955,
1492.7539091706276,
2050.210829436779
]
]
"point":[
[
[
213.5859375, //x轴点位
1035.0703125 //y轴点位
],
[
221.80078125,
1219.904296875
]
......//一共返回68个点位,按数组索引值顺序请参考下方点位图片,数值默认为x,y
]
]
}
},
"msg": null,
"time": 1620798570850
}
点位图片
{
"code": 1001, //
"data": null
"msg": '余额不足',
"time": 1590462453264
}
github地址: https://github.com/picup-shop
curl -X GET --header 'Accept: application/json' \
--header 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
'https://picupapi.tukeli.net/api/v1/mattingByUrl?url=http%3A%2F%2Fdeeplor.oss-cn-hangzhou.aliyuncs.com%2Fupload%2Fimage%2F20200721%2F6ed6a205f75d4f4c88fb403700712191.jpg&mattingType=2'
curl -X GET --header 'Accept: application/json' \
--header 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
'https://picupapi.tukeli.net/api/v1/mattingByUrl?url=http%3A%2F%2Fdeeplor.oss-cn-hangzhou.aliyuncs.com%2Fupload%2Fimage%2F20200721%2F6ed6a205f75d4f4c88fb403700712191.jpg&mattingType=2'
(1) 请求参数(Header)
参数 | 参数类型 | 描述 |
---|---|---|
APIKEY | string | 您的专属API Key |
(2) 请求参数(Body)
参数 | 值 | 必填 |
---|---|---|
mattingType | 抠图类型,1:人像,2:物体,3:头像,4:一键美化,6:通用抠图,11:卡通化,17: 卡通头像,18: 人脸变清晰, 19: 照片上色 | 是 |
crop | 是否裁剪至最小非透明区域,url参数,加在url后面,false不裁剪,true裁剪,不填写不裁剪 | 否 |
bgcolor | 填充背景色,url参数,加在url后面,十六进制大小RGB颜色,如FFFFFF,不填写不填充背景色 | 否 |
url | 图片的url地址 | 是 |
faceAnalysis | 人脸检测点信息,为true返回带人脸检测信息 | 否 |
outputFormat | 输出图片格式,url参数,加在url后面,可以为png,webp,jpg_$quality($quality是压缩图片的值,为0~100之间,比如jpg_75),默认值为png | 否 |
{
"code": 0,
"data": {
"imageBase64": "iVBORw0KGgo..." //返回图像的base64编码
},
"msg": null,
"time": 1590462453264
}
{
"code": 0,
"data":{
"imageBase64":"iVBORw0KGgoAAAANSUhEUgAABqMAAAg3CAYAAAC7wX7xAAAgAElE....",
"faceAnalysis":{
"face_num": 1, //人脸数量
"faces": [ //face_num*8 数组,含义为p1(x,y),p3(x,y),p2(x,y),p4(x,y)(参考图片)
[
236.4606096446514,
497.67069862782955,
1492.7539091706276,
2050.210829436779,
236.4606096446514,
497.67069862782955,
1492.7539091706276,
2050.210829436779
]
]
"point":[
[
[
213.5859375, //x轴点位
1035.0703125 //y轴点位
],
[
221.80078125,
1219.904296875
]
......//一共返回68个点位,按数组索引值顺序请参考下方点位图片,数值默认为x,y
]
]
}
},
"msg": null,
"time": 1620798570850
}
点位图片
{
"code": 1001, //
"data": null
"msg": '余额不足',
"time": 1590462453264
}
利用人工智能技术全自动分割出照片中的头像,分割精度高,准确率高,速度快。 发丝级抠图,对脸部、头发进行细粒度分析,实现发丝级的精细化分割效果。不论发型是披肩发,还是丸子头,都可以完整分割。非常适合在图像合成的场景中应用,比如:照片换头,POD个性化定制、大头照、手机壳卡通头像、制作专属表情包等。 识别图像中的人体轮廓,与背景进行分离,返回分割后的Alpha图、前景人像图,适应多个人体,复杂背景,人体位置重叠、遮挡、背面、侧面等各类人体姿态,各种服装、发饰、帽子、眼镜、鞋包等衣着配饰。
返回二进制文件流
返回base64字符串
通过图片URL返回base64结果
github地址: https://github.com/picup-shop
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=3&crop=true' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=3&crop=true' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=3&crop=true' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=3&crop=true' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=3&crop=true' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=3&crop=true' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=3&crop=true' \
-o out.png
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting?mattingType=3&crop=true' \
-o out.png
(1) 请求参数(Header)
参数 | 参数类型 | 描述 |
---|---|---|
Content-Type | string | multipart/form-data |
APIKEY | string | 您的专属API Key |
(2) 请求参数(Body)
参数 | 值 | 必填 |
---|---|---|
file | 图片文件 | 是 |
crop | 是否裁剪至最小非透明区域,url参数,加在url后面,false不裁剪,true裁剪,不填写不裁剪 | 否 |
outputFormat | 输出图片格式,url参数,加在url后面,可以为png,webp,jpg_$quality($quality是压缩图片的值,为0~100之间,比如jpg_75),默认值为png | 否 |
直接返回content-type为image/png,图片处理后的二进制文件。
{
"code": 1001, //
"data": null
"msg": '余额不足',
"time": 1590462453264
}
github地址: https://github.com/picup-shop
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=3&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=3&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=3&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=3&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=3&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=3&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=3&crop=true'
curl -H 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
-F 'file=@/path/to/file.jpg' \
-f 'https://picupapi.tukeli.net/api/v1/matting2?mattingType=3&crop=true'
(1) 请求参数(Header)
参数 | 参数类型 | 描述 |
---|---|---|
Content-Type | string | multipart/form-data |
APIKEY | string | 您的专属API Key |
(2) 请求参数(Body)
参数 | 值 | 必填 |
---|---|---|
file | 图片文件 | 是 |
crop | 是否裁剪至最小非透明区域,url参数,加在url后面,false不裁剪,true裁剪,不填写不裁剪 | 否 |
faceAnalysis | 人脸检测点信息,为true返回带人脸检测信息 | 否 |
outputFormat | 输出图片格式,url参数,加在url后面,可以为png,webp,jpg_$quality($quality是压缩图片的值,为0~100之间,比如jpg_75),默认值为png | 否 |
{
"code": 0,
"data": {
"imageBase64": "iVBORw0KGgo..." //返回图像的base64编码
},
"msg": null,
"time": 1590462453264
}
{
"code": 0,
"data":{
"imageBase64":"iVBORw0KGgoAAAANSUhEUgAABqMAAAg3CAYAAAC7wX7xAAAgAElE....",
"faceAnalysis":{
"face_num": 1, //人脸数量
"faces": [ //face_num*8 数组,含义为p1(x,y),p3(x,y),p2(x,y),p4(x,y)(参考图片)
[
236.4606096446514,
497.67069862782955,
1492.7539091706276,
2050.210829436779,
236.4606096446514,
497.67069862782955,
1492.7539091706276,
2050.210829436779
]
]
"point":[
[
[
213.5859375, //x轴点位
1035.0703125 //y轴点位
],
[
221.80078125,
1219.904296875
]
......//一共返回68个点位,按数组索引值顺序请参考下方点位图片,数值默认为x,y
]
]
}
},
"msg": null,
"time": 1620798570850
}
点位图片
{
"code": 1001, //
"data": null
"msg": '余额不足',
"time": 1590462453264
}
github地址: https://github.com/picup-shop
curl -X GET --header 'Accept: application/json' \
--header 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
'https://picupapi.tukeli.net/api/v1/mattingByUrl?url=http%3A%2F%2Fdeeplor.oss-cn-hangzhou.aliyuncs.com%2Fupload%2Fimage%2F20200721%2F6ed6a205f75d4f4c88fb403700712191.jpg&mattingType=3'
curl -X GET --header 'Accept: application/json' \
--header 'APIKEY: INSERT_YOUR_API_KEY_HERE' \
'https://picupapi.tukeli.net/api/v1/mattingByUrl?url=http%3A%2F%2Fdeeplor.oss-cn-hangzhou.aliyuncs.com%2Fupload%2Fimage%2F20200721%2F6ed6a205f75d4f4c88fb403700712191.jpg&mattingType=3'
(1) 请求参数(Header)
参数 | 参数类型 | 描述 |
---|---|---|
APIKEY | string | 您的专属API Key |
(2) URL参数
参数 | 值 | 必填 |
---|---|---|
mattingType | 抠图类型,1:人像,2:物体,3:头像,4:一键美化,6:通用抠图,11:卡通化,17: 卡通头像,18: 人脸变清晰, 19: 照片上色 | 是 |
crop | 是否裁剪至最小非透明区域,url参数,加在url后面,false不裁剪,true裁剪,不填写不裁剪 | 否 |
url | 图片的url地址 | 是 |
faceAnalysis | 人脸检测点信息,为true返回带人脸检测信息 | 否 |
outputFormat | 输出图片格式,url参数,加在url后面,可以为png,webp,jpg_$quality($quality是压缩图片的值,为0~100之间,比如jpg_75),默认值为png | 否 |
{
"code": 0,
"data": {
"imageBase64": "iVBORw0KGgo..." //返回图像的base64编码
},
"msg": null,
"time": 1590462453264
}
{
"code": 0,
"data":{
"imageBase64":"iVBORw0KGgoAAAANSUhEUgAABqMAAAg3CAYAAAC7wX7xAAAgAElE....",
"faceAnalysis":{
"face_num": 1, //人脸数量
"faces": [ //face_num*8 数组,含义为p1(x,y),p3(x,y),p2(x,y),p4(x,y)(参考图片)
[
236.4606096446514,
497.67069862782955,
1492.7539091706276,
2050.210829436779,
236.4606096446514,
497.67069862782955,
1492.7539091706276,
2050.210829436779
]
]
"point":[
[
[
213.5859375, //x轴点位
1035.0703125 //y轴点位
],
[
221.80078125,
1219.904296875
]
......//一共返回68个点位,按数组索引值顺序请参考下方点位图片,数值默认为x,y
]
]
}
},
"msg": null,
"time": 1620798570850
}
点位图片
{
"code": 1001, //
"data": null
"msg": '余额不足',
"time": 1590462453264
}
您可以通过在线充值付费方式,购买API调用点数。
查看价格列表注意:输入图片15M以下 API每次成功调用,消耗1点。输入图片15M~25M API每次成功调用,消耗2点