图像Meta信息数据提取API接口

服务简介 :

服务可以抽取上传图片内部储存的Metadata数据信息. 这些信息包括可交换图像文件格式信息(英语:Exchangeable image file format,官方简称Exif),是专门为数码相机的照片设定的,可以记录数码照片的属性信息和拍摄数据。

应用场景 :

图像库交易平台,图片素材网站,图片社区网站,图片分享APP, 照片图片管理网站及APP。



接口地址 :http://www.tudatech.com:7080/wztimgsvr/imgmetaextract/extract

图片格式要求: JPG格式,图像长及宽约300 – 1200 像素图片

请求方法 :POST

请求参数(body) :

参数名 类型 必填 参数位置 描述 默认值
apikey string body API密钥
fmt string body 返回结果格式: json或xml json

参数名 类型 必填 参数位置 描述 默认值
photo file body 图片文件


详细使用教程



接口地址 :http://www.tudatech.com:7080/wztimgsvr/imgmetaextract/extract

图片格式要求: JPG格式,图像长及宽约300 – 1200 像素图片

请求方法 : POST

请求参数(body) :

参数名 类型 必填 参数位置 描述 默认值
apikey string body API密钥
fmt string body 返回结果格式: json或xml json
imgurl string body 图片地址URL



JSON返回示例 :

{"Compression Type":"Baseline","Data Precision":"8 bits","Image Height":"212 pixels","Image Width":"329 pixels","Number of Components":"3","Component 1":"Y component: Quantization table 0, Sampling factors 2 horiz/2 vert","Component 2":"Cb component: Quantization table 1, Sampling factors 1 horiz/1 vert","Component 3":"Cr component: Quantization table 1, Sampling factors 1 horiz/1 vert","Version":"1.1","Resolution Units":"inch","X Resolution":"96 dots per inch","Y Resolution":"96 dots per inch","Thumbnail Width Pixels":"0","Thumbnail Height Pixels":"0","Unknown tag (0x000b)":"Windows Photo Editor 10.0.10011.16384","Orientation":"Top, left side (Horizontal / normal)","Software":"Windows Photo Editor 10.0.10011.16384","Date/Time":"2018:12:24 15:56:23","Padding":"[2060 values]","Date/Time Original":"2018:12:24 15:19:37","Date/Time Digitized":"2018:12:24 15:19:37","Sub-Sec Time Original":"82","Sub-Sec Time Digitized":"82","Color Space":"sRGB","Compression":"JPEG (old-style)","Resolution Unit":"Inch","Thumbnail Offset":"4516 bytes","Thumbnail Length":"8850 bytes","XMP Value Count":"3","Number of Tables":"4 Huffman tables","Detected File Type Name":"JPEG","Detected File Type Long Name":"Joint Photographic Experts Group","Detected MIME Type":"image/jpeg","Expected File Name Extension":"jpg","File Name":"1.jpg","File Size":"45747 bytes","File Modified Date":"Fri Nov 13 14:38:36 +08:00 2020"}



下载Java相关资源
下载Python相关资源
下载Php相关资源

错误码参照:


限制类错误:
API_CODE_ERROR_exceeded_access_total 用户总调用量超限
API_CODE_ERROR_exceeded_access_frequency 用户调用频度超限
API_CODE_ERROR_exceeded_access_frequency_min 服务每分钟调用量超限
API_CODE_ERROR_exceeded_access_frequency_hr 服务每小时调用量超限
API_CODE_ERROR_exceeded_access_frequency_day 用户日调用量超限
API_CODE_ERROR_exceeded_access_frequency_month 服务每月调用量超限
API_CODE_ERROR_two_API_calls_time_too_close 两次调用时间太近

调用方法错误:
API_CODE_ERROR_invalid_apikey Apikey错误
IMAGE_INDEX_ITEM_CODE_ERROR_INVALID_imgName 图片名错误
IMAGE_INDEX_ITEM_CODE_ERROR_INVALID_imgUrl 图片URL错误
IMAGE_INDEX_ITEM_CODE_ERROR_INVALID_LANG 语言参数错误(中文zh 或英语en)
IMAGE_INDEX_CODE_ERROR_IMAGE_SIZE_TOO_BIG 图片太大(最好在400 – 800PIX JPG 图片)