获取带水印图片

基本信息

请求类型: HTTP/HTTPS

接口地址: http://apicall.id-photo-verify.com/api/take_pic_wm/<file_name>

请求方式: GET

请求数据类型:params(url拼接字符串形式)

数据类型: image

接口状态: 启用

接口描述:

获取带水印图片

调用此接口不会增加已调用次数

调用此接口不会增加调用次数

请求参数

参数名称 参数类型 是否必须 参数示例 参数说明
img_content string 1 是否直接返回二进制图片流数据,为1时,表示是,其他情形会跳转到oss的url获取图片二进制数据

python请求示例

from PIL import Image
import requests, io
​
url = "http://apicall.id-photo-verify.com/api/take_pic_wm/0d8400b2967a11ea9cfa00163e0070b6grey3_wm"
res = requests.get(url)
if res.status_code == 200:
    bytes_data = res.content
    file = io.BytesIO(bytes_data)
    img = Image.open(file)
    img.show()
    file.close()
    img.close()
				

响应示例