Skip to content

Commit

Permalink
更新地址
Browse files Browse the repository at this point in the history
  • Loading branch information
duoergun0729 committed Jul 12, 2019
1 parent 5f9ff6d commit 92564ba
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions applications/fake_face_detect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ ffmpeg -i /path/to/my/video.mp4 /path/to/output/video-frame-%d.png

+ Deepfakes检测
```shell
curl "http://api-cdc.baidu.com/rest/deepfakes/v1/detect?access_token=123456789" --header "Host: cdcself" -F "file=@fake_deepfakes.jpg"
curl -H "Expect:" "http://gwgp-h9xcyrmorux.n.bdcloudapi.com/rest/deepfakes/v1/detect" -F "file=@ fake_deepfakes.jpg"
```

+ 人脸融合检测
```shell
curl "http://api-cdc.baidu.com/rest/facemerge/v1/detect?access_token=123456789" --header "Host: cdcself" -F "file=@fake_merging.jpg"
curl -H "Expect:" "http://gwgp-h9xcyrmorux.n.bdcloudapi.com/rest/facemerge/v1/detect" -F "file=@fake_merging.jpg"
```

# 接口描述
Expand All @@ -29,10 +29,9 @@ curl "http://api-cdc.baidu.com/rest/facemerge/v1/detect?access_token=123456789"

### 接口请求
##### 请求说明
+ API服务地址: **http://api-cdc.baidu.com/rest/deepfakes/v1/detect**
+ 请求使用HTTP-POST协议,需要在URL中带上参数"access_token"。图片通过消息体传递,参数为“file”。
+ API服务地址: **http://gwgp-h9xcyrmorux.n.bdcloudapi.com/rest/deepfakes/v1/detect**
+ 请求使用HTTP-POST协议,图片通过消息体传递,参数为“file”。
+ 图片格式:现支持PNG、JPG、JPEG、BMP,不支持GIF图片
+ 请求头部携带字符串:"Host: cdcself"

### 接口返回

Expand Down Expand Up @@ -68,7 +67,7 @@ face_list | 是 | array| 人脸信息列表
---
## 人脸融合图片检测
本接口用于检测百度人脸融合服务生成的假脸图片。
API服务地址: **http://api-cdc.baidu.com/rest/facemerge/v1/detect**
API服务地址: **http://gwgp-h9xcyrmorux.n.bdcloudapi.com/rest/facemerge/v1/detect**
接口请求与返回与上一个接口类似。

# 示例图片
Expand Down

0 comments on commit 92564ba

Please sign in to comment.