viapi

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

视觉开放API(viapi) model

https://open.taobao.com/API.htm?docId=50726&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliyunViapiFacebodyComparefaceAPIRequest added in v1.2.0

type AliyunViapiFacebodyComparefaceAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}
AliyunViapiFacebodyComparefaceAPIRequest

人脸比对1:1 API请求 aliyun.viapi.facebody.compareface

基于输入的两张图片,人脸比对服务可检测两张图片中的人脸,并挑选两张图片的最大人脸进行比较,判断是否是同一人;人脸比对服务还返回了这两个人脸的矩形框、比对的置信度,以及不同误识率的置信度阈值。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

func NewAliyunViapiFacebodyComparefaceRequest

func NewAliyunViapiFacebodyComparefaceRequest() *AliyunViapiFacebodyComparefaceAPIRequest

NewAliyunViapiFacebodyComparefaceRequest 初始化AliyunViapiFacebodyComparefaceAPIRequest对象

func (AliyunViapiFacebodyComparefaceAPIRequest) GetApiMethodName added in v1.2.0

func (r AliyunViapiFacebodyComparefaceAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunViapiFacebodyComparefaceAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunViapiFacebodyComparefaceAPIRequest) GetImageType added in v1.2.0

Get ImageType Getter

func (AliyunViapiFacebodyComparefaceAPIRequest) GetImageUrlA added in v1.2.0

Get ImageUrlA Getter

func (AliyunViapiFacebodyComparefaceAPIRequest) GetImageUrlB added in v1.2.0

Get ImageUrlB Getter

func (*AliyunViapiFacebodyComparefaceAPIRequest) SetImageType added in v1.2.0

func (r *AliyunViapiFacebodyComparefaceAPIRequest) SetImageType(_imageType int64) error

Set is ImageType Setter 图片类型, ,取值范围[0:图片URL, 1:图片Base64数据]

func (*AliyunViapiFacebodyComparefaceAPIRequest) SetImageUrlA added in v1.2.0

func (r *AliyunViapiFacebodyComparefaceAPIRequest) SetImageUrlA(_imageUrlA string) error

Set is ImageUrlA Setter 图片url地址(http/https)

func (*AliyunViapiFacebodyComparefaceAPIRequest) SetImageUrlB added in v1.2.0

func (r *AliyunViapiFacebodyComparefaceAPIRequest) SetImageUrlB(_imageUrlB string) error

Set is ImageUrlB Setter 图片url地址(http/https)

type AliyunViapiFacebodyComparefaceAPIResponse

type AliyunViapiFacebodyComparefaceAPIResponse struct {
	model.CommonResponse
	AliyunViapiFacebodyComparefaceAPIResponseModel
}
AliyunViapiFacebodyComparefaceAPIResponse

人脸比对1:1 API返回值 aliyun.viapi.facebody.compareface

基于输入的两张图片,人脸比对服务可检测两张图片中的人脸,并挑选两张图片的最大人脸进行比较,判断是否是同一人;人脸比对服务还返回了这两个人脸的矩形框、比对的置信度,以及不同误识率的置信度阈值。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

type AliyunViapiFacebodyComparefaceAPIResponseModel added in v1.2.0

type AliyunViapiFacebodyComparefaceAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_viapi_facebody_compareface_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求ID
	TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"`
	// 系统自动生成
	Data *AliyunViapiFacebodyComparefaceData `json:"data,omitempty" xml:"data,omitempty"`
}

AliyunViapiFacebodyComparefaceAPIResponseModel is 人脸比对1:1 成功返回结果

type AliyunViapiFacebodyComparefaceData

type AliyunViapiFacebodyComparefaceData struct {
	// 误识率在10e-3,10e-4,10e-5时对应的置信度分类阈值
	Thresholds []int64 `json:"thresholds,omitempty" xml:"thresholds>int64,omitempty"`
	// 两张图片中最大人脸属于同一个人的置信度:0-100,如某张图片中没有人脸,返回置信度为0
	Confidence string `json:"confidence,omitempty" xml:"confidence,omitempty"`
	// 图片1最大人脸矩形框(left, top, width, height),如图片中没有人脸,返回矩形框数值均为0
	RectAList []int64 `json:"rect_a_list,omitempty" xml:"rect_a_list>int64,omitempty"`
	// 图片2最大人脸矩形框(left, top, width, height),如图片中没有人脸,返回矩形框数值均为0
	RectBList []int64 `json:"rect_b_list,omitempty" xml:"rect_b_list>int64,omitempty"`
}

AliyunViapiFacebodyComparefaceData 结构体

type AliyunViapiFacebodyDetectfaceAPIRequest added in v1.2.0

type AliyunViapiFacebodyDetectfaceAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}
AliyunViapiFacebodyDetectfaceAPIRequest

人脸检测定位 API请求 aliyun.viapi.facebody.detectface

输入图片之后,在人脸检测定位返回结果的基础上,识别各个检测人脸的四种属性,返回性别(男/女)、年龄、表情(笑/不笑)、眼镜(戴/不戴);并可返回人脸的1024维深度学习特征、(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

func NewAliyunViapiFacebodyDetectfaceRequest

func NewAliyunViapiFacebodyDetectfaceRequest() *AliyunViapiFacebodyDetectfaceAPIRequest

NewAliyunViapiFacebodyDetectfaceRequest 初始化AliyunViapiFacebodyDetectfaceAPIRequest对象

func (AliyunViapiFacebodyDetectfaceAPIRequest) GetApiMethodName added in v1.2.0

func (r AliyunViapiFacebodyDetectfaceAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunViapiFacebodyDetectfaceAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunViapiFacebodyDetectfaceAPIRequest) GetImageType added in v1.2.0

Get ImageType Getter

func (AliyunViapiFacebodyDetectfaceAPIRequest) GetImageUrl added in v1.2.0

Get ImageUrl Getter

func (*AliyunViapiFacebodyDetectfaceAPIRequest) SetImageType added in v1.2.0

func (r *AliyunViapiFacebodyDetectfaceAPIRequest) SetImageType(_imageType int64) error

Set is ImageType Setter 0: 通过url识别,参数image_url不为空;1: 通过图片content识别,参数content不为空 支持图片格式:JPEG、JPG、BMP、PNG

func (*AliyunViapiFacebodyDetectfaceAPIRequest) SetImageUrl added in v1.2.0

func (r *AliyunViapiFacebodyDetectfaceAPIRequest) SetImageUrl(_imageUrl string) error

Set is ImageUrl Setter 图片url地址(http/https)

type AliyunViapiFacebodyDetectfaceAPIResponse

type AliyunViapiFacebodyDetectfaceAPIResponse struct {
	model.CommonResponse
	AliyunViapiFacebodyDetectfaceAPIResponseModel
}
AliyunViapiFacebodyDetectfaceAPIResponse

人脸检测定位 API返回值 aliyun.viapi.facebody.detectface

输入图片之后,在人脸检测定位返回结果的基础上,识别各个检测人脸的四种属性,返回性别(男/女)、年龄、表情(笑/不笑)、眼镜(戴/不戴);并可返回人脸的1024维深度学习特征、(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

type AliyunViapiFacebodyDetectfaceAPIResponseModel added in v1.2.0

type AliyunViapiFacebodyDetectfaceAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_viapi_facebody_detectface_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求ID
	TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"`
	// 系统自动生成
	Data *AliyunViapiFacebodyDetectfaceData `json:"data,omitempty" xml:"data,omitempty"`
}

AliyunViapiFacebodyDetectfaceAPIResponseModel is 人脸检测定位 成功返回结果

type AliyunViapiFacebodyDetectfaceData

type AliyunViapiFacebodyDetectfaceData struct {
	// 返回人脸概率, 0-1之间,如有多个人脸,则依次顺延。如有两个人脸则返回[face_prob1, face_prob2]
	FaceProbabilityList []int64 `json:"face_probability_list,omitempty" xml:"face_probability_list>int64,omitempty"`
	// 特征点数目,目前固定为105点(顺序:眉毛24点,眼睛32点,鼻子6点,嘴巴34点,外轮廓9点)
	LandmarkCount int64 `json:"landmark_count,omitempty" xml:"landmark_count,omitempty"`
	// 返回人脸矩形框,分别是[left, top, width, height], 如有多个人脸,则依次顺延,返回矩形框。如有两个人脸则返回[left1, top1, width1, height1, left2, top2, width2, height2]
	FaceRectangles []int64 `json:"face_rectangles,omitempty" xml:"face_rectangles>int64,omitempty"`
	// 特征点定位结果,每个人脸返回一组特征点位置,表示方式为(x0, y0, x1, y1, ……);如有多个人脸,则依次顺延,返回定位浮点数
	Landmarks []string `json:"landmarks,omitempty" xml:"landmarks>string,omitempty"`
	// 检测出来的人脸个数
	FaceCount int64 `json:"face_count,omitempty" xml:"face_count,omitempty"`
	// 返回人脸姿态[yaw, pitch, roll], yaw为左右角度,取值[-90, 90],pitch为上下角度,取值[-90, 90], roll为平面旋转角度,取值[-180, 180],如有多个人脸,则依次顺延
	PoseList []string `json:"pose_list,omitempty" xml:"pose_list>string,omitempty"`
	// 左右两个瞳孔的中心点坐标和半径,每个人脸6个浮点数,顺序是[left_iris_cenpt.x, left_iris_cenpt.y, left_iris_radius, right_iris_cenpt.x, right_iris_cenpt.y, right_iris_radis]
	Pupils []string `json:"pupils,omitempty" xml:"pupils>string,omitempty"`
}

AliyunViapiFacebodyDetectfaceData 结构体

type AliyunViapiFacebodyRecognizefaceAPIRequest added in v1.2.0

type AliyunViapiFacebodyRecognizefaceAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}
AliyunViapiFacebodyRecognizefaceAPIRequest

人脸属性识别 API请求 aliyun.viapi.facebody.recognizeface

输入图片之后,在人脸检测定位返回结果的基础上,识别各个检测人脸的四种属性,返回性别(男/女)、年龄、表情(笑/不笑)、眼镜(戴/不戴);并可返回人脸的1024维深度学习特征。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

func NewAliyunViapiFacebodyRecognizefaceRequest

func NewAliyunViapiFacebodyRecognizefaceRequest() *AliyunViapiFacebodyRecognizefaceAPIRequest

NewAliyunViapiFacebodyRecognizefaceRequest 初始化AliyunViapiFacebodyRecognizefaceAPIRequest对象

func (AliyunViapiFacebodyRecognizefaceAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunViapiFacebodyRecognizefaceAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunViapiFacebodyRecognizefaceAPIRequest) GetImageType added in v1.2.0

Get ImageType Getter

func (AliyunViapiFacebodyRecognizefaceAPIRequest) GetImageUrl added in v1.2.0

Get ImageUrl Getter

func (*AliyunViapiFacebodyRecognizefaceAPIRequest) SetImageType added in v1.2.0

func (r *AliyunViapiFacebodyRecognizefaceAPIRequest) SetImageType(_imageType int64) error

Set is ImageType Setter 图片类型, ,取值范围[0:ImageURL, 1:ImageContent]

func (*AliyunViapiFacebodyRecognizefaceAPIRequest) SetImageUrl added in v1.2.0

func (r *AliyunViapiFacebodyRecognizefaceAPIRequest) SetImageUrl(_imageUrl string) error

Set is ImageUrl Setter 待检测图片链接

type AliyunViapiFacebodyRecognizefaceAPIResponse

type AliyunViapiFacebodyRecognizefaceAPIResponse struct {
	model.CommonResponse
	AliyunViapiFacebodyRecognizefaceAPIResponseModel
}
AliyunViapiFacebodyRecognizefaceAPIResponse

人脸属性识别 API返回值 aliyun.viapi.facebody.recognizeface

输入图片之后,在人脸检测定位返回结果的基础上,识别各个检测人脸的四种属性,返回性别(男/女)、年龄、表情(笑/不笑)、眼镜(戴/不戴);并可返回人脸的1024维深度学习特征。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

type AliyunViapiFacebodyRecognizefaceAPIResponseModel added in v1.2.0

type AliyunViapiFacebodyRecognizefaceAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_viapi_facebody_recognizeface_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求ID
	TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"`
	// 系统自动生成
	Data *AliyunViapiFacebodyRecognizefaceData `json:"data,omitempty" xml:"data,omitempty"`
}

AliyunViapiFacebodyRecognizefaceAPIResponseModel is 人脸属性识别 成功返回结果

type AliyunViapiFacebodyRecognizefaceData

type AliyunViapiFacebodyRecognizefaceData struct {
	// 返回人脸矩形框,分别是[left, top, width, height], 如有多个人脸,则依次顺延,返回矩形框。如有两个人脸则返回[left1, top1, width1, height1, left2, top2, width2, height2]
	FaceRectangles []int64 `json:"face_rectangles,omitempty" xml:"face_rectangles>int64,omitempty"`
	// 人脸识别返回特征维度,目前固定为1024
	DenseFeatureLength int64 `json:"dense_feature_length,omitempty" xml:"dense_feature_length,omitempty"`
	// 返回人脸姿态[yaw, pitch, roll], yaw为左右角度,取值[-90, 90],pitch为上下角度,取值[-90, 90], roll为平面旋转角度,取值[-180, 180],如有多个人脸,则依次顺延
	PoseList []string `json:"pose_list,omitempty" xml:"pose_list>string,omitempty"`
	// 左右两个瞳孔的中心点坐标和半径,每个人脸6个浮点数,顺序是[left_iris_cenpt.x, left_iris_cenpt.y, left_iris_radius, right_iris_cenpt.x, right_iris_cenpt.y, right_iris_radis]
	Pupils []string `json:"pupils,omitempty" xml:"pupils>string,omitempty"`
	// 0: 女性,1: 男性,如有多个人脸,则依次返回性别
	GenderList []int64 `json:"gender_list,omitempty" xml:"gender_list>int64,omitempty"`
	// 人脸识别返回特征;如有多个人脸,则依次顺延,返回特征
	DenseFeatures []string `json:"dense_features,omitempty" xml:"dense_features>string,omitempty"`
	// 返回人脸概率, 0-1之间,如有多个人脸,则依次顺延。如有两个人脸则返回[face_prob1, face_prob2]
	FaceProbabilityList []int64 `json:"face_probability_list,omitempty" xml:"face_probability_list>int64,omitempty"`
	// 特征点数目,目前固定为105点(顺序:眉毛24点,眼睛32点,鼻子6点,嘴巴34点,外轮廓9点)
	LandmarkCount int64 `json:"landmark_count,omitempty" xml:"landmark_count,omitempty"`
	// 年龄0-100,如有多个人脸,依次返回年龄
	AgeList []int64 `json:"age_list,omitempty" xml:"age_list>int64,omitempty"`
	// 是否佩戴眼镜,0:无眼镜,1:有眼镜
	Glasses []int64 `json:"glasses,omitempty" xml:"glasses>int64,omitempty"`
	// 特征点定位结果,每个人脸返回一组特征点位置,表示方式为(x0, y0, x1, y1, ……);如有多个人脸,则依次顺延,返回定位浮点数
	Landmarks []string `json:"landmarks,omitempty" xml:"landmarks>string,omitempty"`
	// 2种表情,0:中性,1:微笑
	Expressions []int64 `json:"expressions,omitempty" xml:"expressions>int64,omitempty"`
	// 检测出来的人脸个数
	FaceCount int64 `json:"face_count,omitempty" xml:"face_count,omitempty"`
}

AliyunViapiFacebodyRecognizefaceData 结构体

type AliyunViapiGoodstechClassifygoodsAPIRequest added in v1.2.0

type AliyunViapiGoodstechClassifygoodsAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}
AliyunViapiGoodstechClassifygoodsAPIRequest

商品分类 API请求 aliyun.viapi.goodstech.classifygoods

可以识别图像中的商品分类,返回商品类目、置信度等信息。目前已经支持服饰鞋包、3C数码、家居用品等超过1万种类目分类。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

func NewAliyunViapiGoodstechClassifygoodsRequest

func NewAliyunViapiGoodstechClassifygoodsRequest() *AliyunViapiGoodstechClassifygoodsAPIRequest

NewAliyunViapiGoodstechClassifygoodsRequest 初始化AliyunViapiGoodstechClassifygoodsAPIRequest对象

func (AliyunViapiGoodstechClassifygoodsAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunViapiGoodstechClassifygoodsAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunViapiGoodstechClassifygoodsAPIRequest) GetImageUrl added in v1.2.0

Get ImageUrl Getter

func (*AliyunViapiGoodstechClassifygoodsAPIRequest) SetImageUrl added in v1.2.0

func (r *AliyunViapiGoodstechClassifygoodsAPIRequest) SetImageUrl(_imageUrl string) error

Set is ImageUrl Setter 待检测图片链接

type AliyunViapiGoodstechClassifygoodsAPIResponse

type AliyunViapiGoodstechClassifygoodsAPIResponse struct {
	model.CommonResponse
	AliyunViapiGoodstechClassifygoodsAPIResponseModel
}
AliyunViapiGoodstechClassifygoodsAPIResponse

商品分类 API返回值 aliyun.viapi.goodstech.classifygoods

可以识别图像中的商品分类,返回商品类目、置信度等信息。目前已经支持服饰鞋包、3C数码、家居用品等超过1万种类目分类。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

type AliyunViapiGoodstechClassifygoodsAPIResponseModel added in v1.2.0

type AliyunViapiGoodstechClassifygoodsAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_viapi_goodstech_classifygoods_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求ID
	TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"`
	// 系统自动生成
	Data *AliyunViapiGoodstechClassifygoodsData `json:"data,omitempty" xml:"data,omitempty"`
}

AliyunViapiGoodstechClassifygoodsAPIResponseModel is 商品分类 成功返回结果

type AliyunViapiGoodstechClassifygoodsData

type AliyunViapiGoodstechClassifygoodsData struct {
	// 类目预测列表
	CategoryList []Category `json:"category_list,omitempty" xml:"category_list>category,omitempty"`
}

AliyunViapiGoodstechClassifygoodsData 结构体

type AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest added in v1.2.0

type AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}
AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest

家居属性识别 API请求 aliyun.viapi.goodstech.recognize.furniture.attribute

识别输入的家居模型图的风格,目前支持16种风格识别。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

func NewAliyunViapiGoodstechRecognizeFurnitureAttributeRequest

func NewAliyunViapiGoodstechRecognizeFurnitureAttributeRequest() *AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest

NewAliyunViapiGoodstechRecognizeFurnitureAttributeRequest 初始化AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest对象

func (AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest) GetImageUrl added in v1.2.0

Get ImageUrl Getter

func (*AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest) SetImageUrl added in v1.2.0

Set is ImageUrl Setter 待检测图片链接

type AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponse

type AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponse struct {
	model.CommonResponse
	AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponseModel
}
AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponse

家居属性识别 API返回值 aliyun.viapi.goodstech.recognize.furniture.attribute

识别输入的家居模型图的风格,目前支持16种风格识别。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

type AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponseModel added in v1.2.0

type AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_viapi_goodstech_recognize_furniture_attribute_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求ID
	TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"`
	// 系统自动生成
	Data *AliyunViapiGoodstechRecognizeFurnitureAttributeData `json:"data,omitempty" xml:"data,omitempty"`
}

AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponseModel is 家居属性识别 成功返回结果

type AliyunViapiGoodstechRecognizeFurnitureAttributeData

type AliyunViapiGoodstechRecognizeFurnitureAttributeData struct {
	// 预测的风格名称ID
	Predstyle string `json:"predstyle,omitempty" xml:"predstyle,omitempty"`
	// 预测的风格置信概率
	Predprobability string `json:"predprobability,omitempty" xml:"predprobability,omitempty"`
	// 预测的风格中文名称
	Predstyleid string `json:"predstyleid,omitempty" xml:"predstyleid,omitempty"`
}

AliyunViapiGoodstechRecognizeFurnitureAttributeData 结构体

type AliyunViapiGoodstechRecognizeFurniturespuAPIRequest added in v1.2.0

type AliyunViapiGoodstechRecognizeFurniturespuAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}
AliyunViapiGoodstechRecognizeFurniturespuAPIRequest

家居SPU识别 API请求 aliyun.viapi.goodstech.recognize.furniturespu

对输入的家居模型图进行分类,目前类别数可达70类。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

func NewAliyunViapiGoodstechRecognizeFurniturespuRequest

func NewAliyunViapiGoodstechRecognizeFurniturespuRequest() *AliyunViapiGoodstechRecognizeFurniturespuAPIRequest

NewAliyunViapiGoodstechRecognizeFurniturespuRequest 初始化AliyunViapiGoodstechRecognizeFurniturespuAPIRequest对象

func (AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) GetImageUrl added in v1.2.0

Get ImageUrl Getter

func (AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) GetXLength added in v1.2.0

Get XLength Getter

func (AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) GetYLength added in v1.2.0

Get YLength Getter

func (AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) GetZLength added in v1.2.0

Get ZLength Getter

func (*AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) SetImageUrl added in v1.2.0

Set is ImageUrl Setter 待检测图片链接

func (*AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) SetXLength added in v1.2.0

Set is XLength Setter 模型x方向的尺寸,单位cm,默认值100

func (*AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) SetYLength added in v1.2.0

Set is YLength Setter 模型y方向的尺寸,单位cm,默认值100

func (*AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) SetZLength added in v1.2.0

Set is ZLength Setter 模型z方向的尺寸,单位cm,默认值100

type AliyunViapiGoodstechRecognizeFurniturespuAPIResponse

type AliyunViapiGoodstechRecognizeFurniturespuAPIResponse struct {
	model.CommonResponse
	AliyunViapiGoodstechRecognizeFurniturespuAPIResponseModel
}
AliyunViapiGoodstechRecognizeFurniturespuAPIResponse

家居SPU识别 API返回值 aliyun.viapi.goodstech.recognize.furniturespu

对输入的家居模型图进行分类,目前类别数可达70类。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

type AliyunViapiGoodstechRecognizeFurniturespuAPIResponseModel added in v1.2.0

type AliyunViapiGoodstechRecognizeFurniturespuAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_viapi_goodstech_recognize_furniturespu_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求ID
	TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"`
	// 系统自动生成
	Data *AliyunViapiGoodstechRecognizeFurniturespuData `json:"data,omitempty" xml:"data,omitempty"`
}

AliyunViapiGoodstechRecognizeFurniturespuAPIResponseModel is 家居SPU识别 成功返回结果

type AliyunViapiGoodstechRecognizeFurniturespuData

type AliyunViapiGoodstechRecognizeFurniturespuData struct {
	// 预测的类目中文名称
	Predprobability string `json:"predprobability,omitempty" xml:"predprobability,omitempty"`
	// 预测的类目名称ID
	Predcate string `json:"predcate,omitempty" xml:"predcate,omitempty"`
	// 预测的类目置信概率
	Predcateid string `json:"predcateid,omitempty" xml:"predcateid,omitempty"`
}

AliyunViapiGoodstechRecognizeFurniturespuData 结构体

type AliyunViapiImageauditScanimageAPIRequest added in v1.2.0

type AliyunViapiImageauditScanimageAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}
AliyunViapiImageauditScanimageAPIRequest

绿网-内容安全 API请求 aliyun.viapi.imageaudit.scanimage

绿网-内容安全技术是基于阿里云视觉分析技术和深度识别技术,并经过在阿里经济体内和云上客户的多领域、多场景的广泛应用和不断优化,可提供风险和治理领域的图像识别、定位、检索等全面服务能力,不仅可以降低色情、涉恐、涉政、广告、垃圾信息等违规风险,而且能大幅度降低人工审核成本。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

func NewAliyunViapiImageauditScanimageRequest

func NewAliyunViapiImageauditScanimageRequest() *AliyunViapiImageauditScanimageAPIRequest

NewAliyunViapiImageauditScanimageRequest 初始化AliyunViapiImageauditScanimageAPIRequest对象

func (AliyunViapiImageauditScanimageAPIRequest) GetApiMethodName added in v1.2.0

func (r AliyunViapiImageauditScanimageAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunViapiImageauditScanimageAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunViapiImageauditScanimageAPIRequest) GetScenes added in v1.2.0

Get Scenes Getter

func (AliyunViapiImageauditScanimageAPIRequest) GetTasks added in v1.2.0

Get Tasks Getter

func (*AliyunViapiImageauditScanimageAPIRequest) SetScenes added in v1.2.0

func (r *AliyunViapiImageauditScanimageAPIRequest) SetScenes(_scenes []string) error

Set is Scenes Setter 场景列表

func (*AliyunViapiImageauditScanimageAPIRequest) SetTasks added in v1.2.0

func (r *AliyunViapiImageauditScanimageAPIRequest) SetTasks(_tasks []Task) error

Set is Tasks Setter 系统自动生成

type AliyunViapiImageauditScanimageAPIResponse

type AliyunViapiImageauditScanimageAPIResponse struct {
	model.CommonResponse
	AliyunViapiImageauditScanimageAPIResponseModel
}
AliyunViapiImageauditScanimageAPIResponse

绿网-内容安全 API返回值 aliyun.viapi.imageaudit.scanimage

绿网-内容安全技术是基于阿里云视觉分析技术和深度识别技术,并经过在阿里经济体内和云上客户的多领域、多场景的广泛应用和不断优化,可提供风险和治理领域的图像识别、定位、检索等全面服务能力,不仅可以降低色情、涉恐、涉政、广告、垃圾信息等违规风险,而且能大幅度降低人工审核成本。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

type AliyunViapiImageauditScanimageAPIResponseModel added in v1.2.0

type AliyunViapiImageauditScanimageAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_viapi_imageaudit_scanimage_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求ID
	TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"`
	// 系统自动生成
	DataList *AliyunViapiImageauditScanimageData `json:"data_list,omitempty" xml:"data_list,omitempty"`
}

AliyunViapiImageauditScanimageAPIResponseModel is 绿网-内容安全 成功返回结果

type AliyunViapiImageauditScanimageData

type AliyunViapiImageauditScanimageData struct {
	// 图片检测结果
	Results []AliyunViapiImageauditScanimageResult `json:"results,omitempty" xml:"results>aliyun_viapi_imageaudit_scanimage_result,omitempty"`
}

AliyunViapiImageauditScanimageData 结构体

type AliyunViapiImageauditScanimageResult

type AliyunViapiImageauditScanimageResult struct {
	// 数据ID
	DataId string `json:"data_id,omitempty" xml:"data_id,omitempty"`
	// 任务ID
	TaskId string `json:"task_id,omitempty" xml:"task_id,omitempty"`
	// 图像的URL
	ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	// 单张图片的检测结果
	SubResults []SubResult `json:"sub_results,omitempty" xml:"sub_results>sub_result,omitempty"`
}

AliyunViapiImageauditScanimageResult 结构体

type AliyunViapiImageauditScantextAPIRequest added in v1.2.0

type AliyunViapiImageauditScantextAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}
AliyunViapiImageauditScantextAPIRequest

文字内容审核 API请求 aliyun.viapi.imageaudit.scantext

结合行为、内容,采用多维度、多模型、多检测手段,识别文本中的垃圾内容,规避色情、广告、灌水、渉政、辱骂等内容风险。 注意:如果返回结果里面的results为空,也代表指定类型检测通过。

func NewAliyunViapiImageauditScantextRequest

func NewAliyunViapiImageauditScantextRequest() *AliyunViapiImageauditScantextAPIRequest

NewAliyunViapiImageauditScantextRequest 初始化AliyunViapiImageauditScantextAPIRequest对象

func (AliyunViapiImageauditScantextAPIRequest) GetApiMethodName added in v1.2.0

func (r AliyunViapiImageauditScantextAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunViapiImageauditScantextAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunViapiImageauditScantextAPIRequest) GetLabels added in v1.2.0

Get Labels Getter

func (AliyunViapiImageauditScantextAPIRequest) GetTasks added in v1.2.0

Get Tasks Getter

func (*AliyunViapiImageauditScantextAPIRequest) SetLabels added in v1.2.0

func (r *AliyunViapiImageauditScantextAPIRequest) SetLabels(_labels []Label) error

Set is Labels Setter 指定文本检测的应用场景,可选值包括: spam:含垃圾信息 politics: 涉政 abuse:辱骂 porn:智能鉴黄 terrorism:暴恐识别 flood:灌水 contraband:违禁 ad:文案违规识别 说明 支持多场景(Labels)一起检测,对一张文本同时进行鉴黄和暴恐识别,计费时也将按照两个场景计费。

func (*AliyunViapiImageauditScantextAPIRequest) SetTasks added in v1.2.0

func (r *AliyunViapiImageauditScantextAPIRequest) SetTasks(_tasks []Task) error

Set is Tasks Setter 指定检测对象,JSON数组中的每个元素是一个文件检测任务结构体(Task表)。最多支持10个元素,即对10张文本进行检测。每个元素的具体结构描述见Task。

type AliyunViapiImageauditScantextAPIResponse

type AliyunViapiImageauditScantextAPIResponse struct {
	model.CommonResponse
	AliyunViapiImageauditScantextAPIResponseModel
}
AliyunViapiImageauditScantextAPIResponse

文字内容审核 API返回值 aliyun.viapi.imageaudit.scantext

结合行为、内容,采用多维度、多模型、多检测手段,识别文本中的垃圾内容,规避色情、广告、灌水、渉政、辱骂等内容风险。 注意:如果返回结果里面的results为空,也代表指定类型检测通过。

type AliyunViapiImageauditScantextAPIResponseModel added in v1.2.0

type AliyunViapiImageauditScantextAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_viapi_imageaudit_scantext_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求ID
	TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"`
	// 系统自动生成
	Data *AliyunViapiImageauditScantextData `json:"data,omitempty" xml:"data,omitempty"`
}

AliyunViapiImageauditScantextAPIResponseModel is 文字内容审核 成功返回结果

type AliyunViapiImageauditScantextData

type AliyunViapiImageauditScantextData struct {
	// 检测结果各个子元素
	Elements []Element `json:"elements,omitempty" xml:"elements>element,omitempty"`
}

AliyunViapiImageauditScantextData 结构体

type AliyunViapiImageauditScantextDetail added in v1.2.0

type AliyunViapiImageauditScantextDetail struct {
	// 文本命中风险的分类
	Label string `json:"label,omitempty" xml:"label,omitempty"`
	// 命中该风险的上下文信息
	Contexts []Context `json:"contexts,omitempty" xml:"contexts>context,omitempty"`
}

AliyunViapiImageauditScantextDetail 结构体

type AliyunViapiImageauditScantextResult

type AliyunViapiImageauditScantextResult struct {
	// 建议用户执行的操作,取值范围:  pass:文本正常 review:需要人工审核 block:文本违规,可以直接删除或者做限制处理
	Suggestion string `json:"suggestion,omitempty" xml:"suggestion,omitempty"`
	// 单个文本的检测结果
	Details []AliyunViapiImageauditScantextDetail `json:"details,omitempty" xml:"details>aliyun_viapi_imageaudit_scantext_detail,omitempty"`
	// 结果为该分类的概率,取值范围为[0.00-100.00]。值越高,表示越有可能属于该分类。  说明 分值仅供参考,您需要关注label和suggestion内容
	Rate int64 `json:"rate,omitempty" xml:"rate,omitempty"`
	// 检测结果的分类
	Label string `json:"label,omitempty" xml:"label,omitempty"`
}

AliyunViapiImageauditScantextResult 结构体

type AliyunViapiImagesegSegmentCommonimageAPIRequest added in v1.2.0

type AliyunViapiImagesegSegmentCommonimageAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}
AliyunViapiImagesegSegmentCommonimageAPIRequest

通用分割 API请求 aliyun.viapi.imageseg.segment.commonimage

识别输入图像中的视觉中心物体轮廓,与背景进行分离,返回分割后的前景物体图(4通道png透明图)。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

func NewAliyunViapiImagesegSegmentCommonimageRequest

func NewAliyunViapiImagesegSegmentCommonimageRequest() *AliyunViapiImagesegSegmentCommonimageAPIRequest

NewAliyunViapiImagesegSegmentCommonimageRequest 初始化AliyunViapiImagesegSegmentCommonimageAPIRequest对象

func (AliyunViapiImagesegSegmentCommonimageAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunViapiImagesegSegmentCommonimageAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunViapiImagesegSegmentCommonimageAPIRequest) GetImageUrl added in v1.2.0

Get ImageUrl Getter

func (*AliyunViapiImagesegSegmentCommonimageAPIRequest) SetImageUrl added in v1.2.0

Set is ImageUrl Setter 待检测图片链接

type AliyunViapiImagesegSegmentCommonimageAPIResponse

type AliyunViapiImagesegSegmentCommonimageAPIResponse struct {
	model.CommonResponse
	AliyunViapiImagesegSegmentCommonimageAPIResponseModel
}
AliyunViapiImagesegSegmentCommonimageAPIResponse

通用分割 API返回值 aliyun.viapi.imageseg.segment.commonimage

识别输入图像中的视觉中心物体轮廓,与背景进行分离,返回分割后的前景物体图(4通道png透明图)。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

type AliyunViapiImagesegSegmentCommonimageAPIResponseModel added in v1.2.0

type AliyunViapiImagesegSegmentCommonimageAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_viapi_imageseg_segment_commonimage_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求ID
	TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"`
	// 系统自动生成
	Data *AliyunViapiImagesegSegmentCommonimageData `json:"data,omitempty" xml:"data,omitempty"`
}

AliyunViapiImagesegSegmentCommonimageAPIResponseModel is 通用分割 成功返回结果

type AliyunViapiImagesegSegmentCommonimageData

type AliyunViapiImagesegSegmentCommonimageData struct {
	// 抠图结果(png透明图)有效期半个小时
	ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"`
}

AliyunViapiImagesegSegmentCommonimageData 结构体

type AliyunViapiImagesegSegmentcomodityAPIRequest added in v1.2.0

type AliyunViapiImagesegSegmentcomodityAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}
AliyunViapiImagesegSegmentcomodityAPIRequest

商品分割 API请求 aliyun.viapi.imageseg.segmentcomodity

识别输入图像中的商品轮廓,与背景进行分离,返回分割后的前景商品图(4通道png透明图),适应单商品/多商品、复杂背景。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

func NewAliyunViapiImagesegSegmentcomodityRequest

func NewAliyunViapiImagesegSegmentcomodityRequest() *AliyunViapiImagesegSegmentcomodityAPIRequest

NewAliyunViapiImagesegSegmentcomodityRequest 初始化AliyunViapiImagesegSegmentcomodityAPIRequest对象

func (AliyunViapiImagesegSegmentcomodityAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunViapiImagesegSegmentcomodityAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunViapiImagesegSegmentcomodityAPIRequest) GetImageUrl added in v1.2.0

Get ImageUrl Getter

func (*AliyunViapiImagesegSegmentcomodityAPIRequest) SetImageUrl added in v1.2.0

func (r *AliyunViapiImagesegSegmentcomodityAPIRequest) SetImageUrl(_imageUrl string) error

Set is ImageUrl Setter 待检测图片链接

type AliyunViapiImagesegSegmentcomodityAPIResponse

type AliyunViapiImagesegSegmentcomodityAPIResponse struct {
	model.CommonResponse
	AliyunViapiImagesegSegmentcomodityAPIResponseModel
}
AliyunViapiImagesegSegmentcomodityAPIResponse

商品分割 API返回值 aliyun.viapi.imageseg.segmentcomodity

识别输入图像中的商品轮廓,与背景进行分离,返回分割后的前景商品图(4通道png透明图),适应单商品/多商品、复杂背景。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

type AliyunViapiImagesegSegmentcomodityAPIResponseModel added in v1.2.0

type AliyunViapiImagesegSegmentcomodityAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_viapi_imageseg_segmentcomodity_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求ID
	TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"`
	// 系统自动生成
	Data *AliyunViapiImagesegSegmentcomodityData `json:"data,omitempty" xml:"data,omitempty"`
}

AliyunViapiImagesegSegmentcomodityAPIResponseModel is 商品分割 成功返回结果

type AliyunViapiImagesegSegmentcomodityData

type AliyunViapiImagesegSegmentcomodityData struct {
	// 抠图结果(png透明图)有效期半个小时
	ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"`
}

AliyunViapiImagesegSegmentcomodityData 结构体

type AliyunViapiImagesegSegmenthdbodyAPIRequest added in v1.2.0

type AliyunViapiImagesegSegmenthdbodyAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}
AliyunViapiImagesegSegmenthdbodyAPIRequest

高清人体分割 API请求 aliyun.viapi.imageseg.segmenthdbody

对输入图像中包含的人进行分割,输出结果透明图。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

func NewAliyunViapiImagesegSegmenthdbodyRequest

func NewAliyunViapiImagesegSegmenthdbodyRequest() *AliyunViapiImagesegSegmenthdbodyAPIRequest

NewAliyunViapiImagesegSegmenthdbodyRequest 初始化AliyunViapiImagesegSegmenthdbodyAPIRequest对象

func (AliyunViapiImagesegSegmenthdbodyAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunViapiImagesegSegmenthdbodyAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunViapiImagesegSegmenthdbodyAPIRequest) GetImageUrl added in v1.2.0

Get ImageUrl Getter

func (*AliyunViapiImagesegSegmenthdbodyAPIRequest) SetImageUrl added in v1.2.0

func (r *AliyunViapiImagesegSegmenthdbodyAPIRequest) SetImageUrl(_imageUrl string) error

Set is ImageUrl Setter 待检测图片链接

type AliyunViapiImagesegSegmenthdbodyAPIResponse

type AliyunViapiImagesegSegmenthdbodyAPIResponse struct {
	model.CommonResponse
	AliyunViapiImagesegSegmenthdbodyAPIResponseModel
}
AliyunViapiImagesegSegmenthdbodyAPIResponse

高清人体分割 API返回值 aliyun.viapi.imageseg.segmenthdbody

对输入图像中包含的人进行分割,输出结果透明图。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

type AliyunViapiImagesegSegmenthdbodyAPIResponseModel added in v1.2.0

type AliyunViapiImagesegSegmenthdbodyAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_viapi_imageseg_segmenthdbody_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求ID
	TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"`
	// 系统自动生成
	Data *AliyunViapiImagesegSegmenthdbodyData `json:"data,omitempty" xml:"data,omitempty"`
}

AliyunViapiImagesegSegmenthdbodyAPIResponseModel is 高清人体分割 成功返回结果

type AliyunViapiImagesegSegmenthdbodyData

type AliyunViapiImagesegSegmenthdbodyData struct {
	// 输出图像URL
	ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"`
}

AliyunViapiImagesegSegmenthdbodyData 结构体

type AliyunViapiImagesegSegmentheadAPIRequest added in v1.2.0

type AliyunViapiImagesegSegmentheadAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}
AliyunViapiImagesegSegmentheadAPIRequest

头像分割 API请求 aliyun.viapi.imageseg.segmenthead

输入一张图片,对图中人头区域进行抠图解析,输出人头png透明图。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

func NewAliyunViapiImagesegSegmentheadRequest

func NewAliyunViapiImagesegSegmentheadRequest() *AliyunViapiImagesegSegmentheadAPIRequest

NewAliyunViapiImagesegSegmentheadRequest 初始化AliyunViapiImagesegSegmentheadAPIRequest对象

func (AliyunViapiImagesegSegmentheadAPIRequest) GetApiMethodName added in v1.2.0

func (r AliyunViapiImagesegSegmentheadAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunViapiImagesegSegmentheadAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunViapiImagesegSegmentheadAPIRequest) GetImageUrl added in v1.2.0

Get ImageUrl Getter

func (*AliyunViapiImagesegSegmentheadAPIRequest) SetImageUrl added in v1.2.0

func (r *AliyunViapiImagesegSegmentheadAPIRequest) SetImageUrl(_imageUrl string) error

Set is ImageUrl Setter 待检测图片链接

type AliyunViapiImagesegSegmentheadAPIResponse

type AliyunViapiImagesegSegmentheadAPIResponse struct {
	model.CommonResponse
	AliyunViapiImagesegSegmentheadAPIResponseModel
}
AliyunViapiImagesegSegmentheadAPIResponse

头像分割 API返回值 aliyun.viapi.imageseg.segmenthead

输入一张图片,对图中人头区域进行抠图解析,输出人头png透明图。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

type AliyunViapiImagesegSegmentheadAPIResponseModel added in v1.2.0

type AliyunViapiImagesegSegmentheadAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_viapi_imageseg_segmenthead_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求ID
	TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"`
	// 系统自动生成
	Data *AliyunViapiImagesegSegmentheadData `json:"data,omitempty" xml:"data,omitempty"`
}

AliyunViapiImagesegSegmentheadAPIResponseModel is 头像分割 成功返回结果

type AliyunViapiImagesegSegmentheadData

type AliyunViapiImagesegSegmentheadData struct {
	// 人体检测框的集合
	Elements []Elements `json:"elements,omitempty" xml:"elements>elements,omitempty"`
}

AliyunViapiImagesegSegmentheadData 结构体

type AliyunViapiObjectdetDetectobjectAPIRequest added in v1.2.0

type AliyunViapiObjectdetDetectobjectAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}
AliyunViapiObjectdetDetectobjectAPIRequest

物体检测 API请求 aliyun.viapi.objectdet.detectobject

检测图像中的物体。90类物体: (0:'human':人体, 1:'sneakers':胶底运动鞋, 2:'chair':椅子, 3:'hat':帽子, 4:'lamp':灯, 5:'cabinet/shelf':橱柜/ 架子, 6:'car':汽车, 7:'glasses':眼镜, 8:'picture/frame':照片/图画, 9:'street lights':街灯, 10:'helmet':头盔, 11:'pillow':枕头, 12:'glove':手套, 13:'potted plant':盆栽植物, 14:'flower':花, 15:'monitor':显示屏, 16:'plants pot/vase':花盆, 17:'boots':靴子, 18:'umbrella':伞, 19:'boat':小船, 20:'flag':旗帜, 21:'speaker':扬声器/话筒, 22:'trash bin/can':垃圾桶, 23:'backpack': 双肩背包, 24:'sofa':沙发, 25:'belt':腰带, 26:'carpet':地毯, 27:'coffee table':咖啡桌/茶几, 28:'tie': 领带, 29:'bed': 床, 30:'traffic light':红绿灯, 31:'necklace':项链, 32:'mirror':镜子, 33:'bicycle':自行车, 34:'watch':手表, 35:'horse':马, 36:'traffic sign':交通标志, 37:'stuffed animal':填充玩具动物, 38:'motorbike/motorcycle':摩托车, 39:'wild bird':鸟, 40:'laptop':笔记本电脑, 41:'cow':奶牛, 42:'clock':时钟, 43:'bus':公共汽车, 44:'nightstand':床头柜, 45:'sheep':绵羊, 46:'traffic cone':锥形交通路标, 47:'keyboard':键盘, 48:'hockey stick':曲棍球球棍, 49:'fan':电扇, 50:'dog':狗, 51:'blackboard/whiteboard':白板/黑板, 52:'mouse':鼠标, 53:'telephone':电话, 54:'airplane':飞机, 55:'skis':滑雪板, 56:'soccer':英式足球, 57:'combine with glove':棒球手套, 58:'train':火车, 59:'tent':帐篷, 60:'sailboat':帆船, 61:'kite':风筝, 62:'computer box':计算机主机机箱, 63:'elephant':大象, 64:'stroller':折叠式婴儿车, 65:'baseball bat':棒球棒, 66:'skateboard':溜冰板, 67:'surfboard':冲浪板, 68:'cat':猫, 69:'zebra':斑马, 70:'sports car':跑车, 71:'giraffe':长颈鹿, 72:'radiator':散热器, 73:'tennis racket':网球拍, 74:'skating and skiing shoes':溜冰鞋, 75:'baseball':棒球, 76:'american football':美式橄榄球, 77:'basketball':篮球, 78:'printer':打印机, 79:'fire hydrant':消防栓, 80:'projector':投影仪, 81:'fire extinguisher':灭火器, 82:'tennis ball':网球, 83:'frisbee':飞盘, 84:'fire truck':消防车, 85:'helicopter':直升飞机, 86:'carriage':四轮马车, 87:'bear':熊, 88:'globe':地球仪, 89:'volleyball':排球)。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

func NewAliyunViapiObjectdetDetectobjectRequest

func NewAliyunViapiObjectdetDetectobjectRequest() *AliyunViapiObjectdetDetectobjectAPIRequest

NewAliyunViapiObjectdetDetectobjectRequest 初始化AliyunViapiObjectdetDetectobjectAPIRequest对象

func (AliyunViapiObjectdetDetectobjectAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunViapiObjectdetDetectobjectAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunViapiObjectdetDetectobjectAPIRequest) GetImageUrl added in v1.2.0

Get ImageUrl Getter

func (*AliyunViapiObjectdetDetectobjectAPIRequest) SetImageUrl added in v1.2.0

func (r *AliyunViapiObjectdetDetectobjectAPIRequest) SetImageUrl(_imageUrl string) error

Set is ImageUrl Setter 待检测图片链接

type AliyunViapiObjectdetDetectobjectAPIResponse

type AliyunViapiObjectdetDetectobjectAPIResponse struct {
	model.CommonResponse
	AliyunViapiObjectdetDetectobjectAPIResponseModel
}
AliyunViapiObjectdetDetectobjectAPIResponse

物体检测 API返回值 aliyun.viapi.objectdet.detectobject

检测图像中的物体。90类物体: (0:'human':人体, 1:'sneakers':胶底运动鞋, 2:'chair':椅子, 3:'hat':帽子, 4:'lamp':灯, 5:'cabinet/shelf':橱柜/ 架子, 6:'car':汽车, 7:'glasses':眼镜, 8:'picture/frame':照片/图画, 9:'street lights':街灯, 10:'helmet':头盔, 11:'pillow':枕头, 12:'glove':手套, 13:'potted plant':盆栽植物, 14:'flower':花, 15:'monitor':显示屏, 16:'plants pot/vase':花盆, 17:'boots':靴子, 18:'umbrella':伞, 19:'boat':小船, 20:'flag':旗帜, 21:'speaker':扬声器/话筒, 22:'trash bin/can':垃圾桶, 23:'backpack': 双肩背包, 24:'sofa':沙发, 25:'belt':腰带, 26:'carpet':地毯, 27:'coffee table':咖啡桌/茶几, 28:'tie': 领带, 29:'bed': 床, 30:'traffic light':红绿灯, 31:'necklace':项链, 32:'mirror':镜子, 33:'bicycle':自行车, 34:'watch':手表, 35:'horse':马, 36:'traffic sign':交通标志, 37:'stuffed animal':填充玩具动物, 38:'motorbike/motorcycle':摩托车, 39:'wild bird':鸟, 40:'laptop':笔记本电脑, 41:'cow':奶牛, 42:'clock':时钟, 43:'bus':公共汽车, 44:'nightstand':床头柜, 45:'sheep':绵羊, 46:'traffic cone':锥形交通路标, 47:'keyboard':键盘, 48:'hockey stick':曲棍球球棍, 49:'fan':电扇, 50:'dog':狗, 51:'blackboard/whiteboard':白板/黑板, 52:'mouse':鼠标, 53:'telephone':电话, 54:'airplane':飞机, 55:'skis':滑雪板, 56:'soccer':英式足球, 57:'combine with glove':棒球手套, 58:'train':火车, 59:'tent':帐篷, 60:'sailboat':帆船, 61:'kite':风筝, 62:'computer box':计算机主机机箱, 63:'elephant':大象, 64:'stroller':折叠式婴儿车, 65:'baseball bat':棒球棒, 66:'skateboard':溜冰板, 67:'surfboard':冲浪板, 68:'cat':猫, 69:'zebra':斑马, 70:'sports car':跑车, 71:'giraffe':长颈鹿, 72:'radiator':散热器, 73:'tennis racket':网球拍, 74:'skating and skiing shoes':溜冰鞋, 75:'baseball':棒球, 76:'american football':美式橄榄球, 77:'basketball':篮球, 78:'printer':打印机, 79:'fire hydrant':消防栓, 80:'projector':投影仪, 81:'fire extinguisher':灭火器, 82:'tennis ball':网球, 83:'frisbee':飞盘, 84:'fire truck':消防车, 85:'helicopter':直升飞机, 86:'carriage':四轮马车, 87:'bear':熊, 88:'globe':地球仪, 89:'volleyball':排球)。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

type AliyunViapiObjectdetDetectobjectAPIResponseModel added in v1.2.0

type AliyunViapiObjectdetDetectobjectAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_viapi_objectdet_detectobject_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求ID
	TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"`
	// 系统自动生成
	Data *AliyunViapiObjectdetDetectobjectData `json:"data,omitempty" xml:"data,omitempty"`
}

AliyunViapiObjectdetDetectobjectAPIResponseModel is 物体检测 成功返回结果

type AliyunViapiObjectdetDetectobjectData

type AliyunViapiObjectdetDetectobjectData struct {
	// 输入图片的高度
	Height int64 `json:"height,omitempty" xml:"height,omitempty"`
	// 人体检测框的集合
	Elements []Elements `json:"elements,omitempty" xml:"elements>elements,omitempty"`
	// 输入图片的宽度
	Width int64 `json:"width,omitempty" xml:"width,omitempty"`
}

AliyunViapiObjectdetDetectobjectData 结构体

type AliyunViapiOcrCharacterAPIRequest added in v1.2.0

type AliyunViapiOcrCharacterAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}
AliyunViapiOcrCharacterAPIRequest

通用文字识别 API请求 aliyun.viapi.ocr.character

获取通用的文字信息。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

func NewAliyunViapiOcrCharacterRequest

func NewAliyunViapiOcrCharacterRequest() *AliyunViapiOcrCharacterAPIRequest

NewAliyunViapiOcrCharacterRequest 初始化AliyunViapiOcrCharacterAPIRequest对象

func (AliyunViapiOcrCharacterAPIRequest) GetApiMethodName added in v1.2.0

func (r AliyunViapiOcrCharacterAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunViapiOcrCharacterAPIRequest) GetApiParams added in v1.2.0

func (r AliyunViapiOcrCharacterAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunViapiOcrCharacterAPIRequest) GetImageType added in v1.2.0

func (r AliyunViapiOcrCharacterAPIRequest) GetImageType() int64

Get ImageType Getter

func (AliyunViapiOcrCharacterAPIRequest) GetImageUrl added in v1.2.0

func (r AliyunViapiOcrCharacterAPIRequest) GetImageUrl() string

Get ImageUrl Getter

func (AliyunViapiOcrCharacterAPIRequest) GetMinHeight added in v1.2.0

func (r AliyunViapiOcrCharacterAPIRequest) GetMinHeight() int64

Get MinHeight Getter

func (AliyunViapiOcrCharacterAPIRequest) GetOutputProbability added in v1.2.0

func (r AliyunViapiOcrCharacterAPIRequest) GetOutputProbability() bool

Get OutputProbability Getter

func (*AliyunViapiOcrCharacterAPIRequest) SetImageType added in v1.2.0

func (r *AliyunViapiOcrCharacterAPIRequest) SetImageType(_imageType int64) error

Set is ImageType Setter 图片类型, ,取范围[0:ImageURL, 1:ImageContent]

func (*AliyunViapiOcrCharacterAPIRequest) SetImageUrl added in v1.2.0

func (r *AliyunViapiOcrCharacterAPIRequest) SetImageUrl(_imageUrl string) error

Set is ImageUrl Setter 待检测图片链接

func (*AliyunViapiOcrCharacterAPIRequest) SetMinHeight added in v1.2.0

func (r *AliyunViapiOcrCharacterAPIRequest) SetMinHeight(_minHeight int64) error

Set is MinHeight Setter 图片中文字的最小高度,单位像素

func (*AliyunViapiOcrCharacterAPIRequest) SetOutputProbability added in v1.2.0

func (r *AliyunViapiOcrCharacterAPIRequest) SetOutputProbability(_outputProbability bool) error

Set is OutputProbability Setter 是否输出文字框的概率,取值范围[true:是, false:否]

type AliyunViapiOcrCharacterAPIResponse

type AliyunViapiOcrCharacterAPIResponse struct {
	model.CommonResponse
	AliyunViapiOcrCharacterAPIResponseModel
}
AliyunViapiOcrCharacterAPIResponse

通用文字识别 API返回值 aliyun.viapi.ocr.character

获取通用的文字信息。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

type AliyunViapiOcrCharacterAPIResponseModel added in v1.2.0

type AliyunViapiOcrCharacterAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_viapi_ocr_character_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求ID
	TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"`
	// 系统自动生成
	Data *AliyunViapiOcrCharacterData `json:"data,omitempty" xml:"data,omitempty"`
}

AliyunViapiOcrCharacterAPIResponseModel is 通用文字识别 成功返回结果

type AliyunViapiOcrCharacterData

type AliyunViapiOcrCharacterData struct {
	// 返回识别信息
	Results []AliyunViapiOcrCharacterResult `json:"results,omitempty" xml:"results>aliyun_viapi_ocr_character_result,omitempty"`
}

AliyunViapiOcrCharacterData 结构体

type AliyunViapiOcrCharacterResult

type AliyunViapiOcrCharacterResult struct {
	// 文字区域
	TextRectangle *TextRectangle `json:"text_rectangle,omitempty" xml:"text_rectangle,omitempty"`
	// 文字区域概率,概率值的范围为[0, 1]
	Probability int64 `json:"probability,omitempty" xml:"probability,omitempty"`
	// 文字内容
	Text string `json:"text,omitempty" xml:"text,omitempty"`
}

AliyunViapiOcrCharacterResult 结构体

type Category

type Category struct {
	// 分类ID的匹配度,大于0小于等于1
	Score string `json:"score,omitempty" xml:"score,omitempty"`
	// 类目名称
	CategoryName string `json:"category_name,omitempty" xml:"category_name,omitempty"`
	// 类目ID
	CategoryId string `json:"category_id,omitempty" xml:"category_id,omitempty"`
}

Category 结构体

type Context

type Context struct {
	// 检测文本命中的风险内容上下文内容
	Context string `json:"context,omitempty" xml:"context,omitempty"`
}

Context 结构体

type Element

type Element struct {
	// 任务Id
	TaskId string `json:"task_id,omitempty" xml:"task_id,omitempty"`
	// 单个文本的检测结果
	Results []AliyunViapiImageauditScantextResult `json:"results,omitempty" xml:"results>aliyun_viapi_imageaudit_scantext_result,omitempty"`
}

Element 结构体

type Elements

type Elements struct {
	// x坐标
	X int64 `json:"x,omitempty" xml:"x,omitempty"`
	// y坐标
	Y int64 `json:"y,omitempty" xml:"y,omitempty"`
	// 抠图结果(png透明图)有效期半个小时
	ImageURL string `json:"image_u_r_l,omitempty" xml:"image_u_r_l,omitempty"`
	// 高度
	Height int64 `json:"height,omitempty" xml:"height,omitempty"`
	// 宽度
	Width int64 `json:"width,omitempty" xml:"width,omitempty"`
	// 检测框的分数(置信度),范围为[0,1]
	Score int64 `json:"score,omitempty" xml:"score,omitempty"`
	// 类型:(0:'human':人体, 1:'sneakers':胶底运动鞋, 2:'chair':椅子, 3:'hat':帽子, 4:'lamp':灯, 5:'cabinet/shelf':橱柜/ 架子, 6:'car':汽车, 7:'glasses':眼镜, 8:'picture/frame':照片/图画, 9:'street lights':街灯, 10:'helmet':头盔, 11:'pillow':枕头, 12:'glove':手套, 13:'potted plant':盆栽植物, 14:'flower':花, 15:'monitor':显示屏, 16:'plants pot/vase':花盆, 17:'boots':靴子, 18:'umbrella':伞, 19:'boat':小船, 20:'flag':旗帜, 21:'speaker':扬声器/话筒, 22:'trash bin/can':垃圾桶, 23:'backpack': 双肩背包, 24:'sofa':沙发, 25:'belt':腰带, 26:'carpet':地毯, 27:'coffee table':咖啡桌/茶几, 28:'tie': 领带, 29:'bed': 床, 30:'traffic light':红绿灯, 31:'necklace':项链, 32:'mirror':镜子, 33:'bicycle':自行车, 34:'watch':手表, 35:'horse':马, 36:'traffic sign':交通标志, 37:'stuffed animal':填充玩具动物, 38:'motorbike/motorcycle':摩托车, 39:'wild bird':鸟, 40:'laptop':笔记本电脑, 41:'cow':奶牛, 42:'clock':时钟, 43:'bus':公共汽车, 44:'nightstand':床头柜, 45:'sheep':绵羊, 46:'traffic cone':锥形交通路标, 47:'keyboard':键盘, 48:'hockey stick':曲棍球球棍, 49:'fan':电扇, 50:'dog':狗, 51:'blackboard/whiteboard':白板/黑板, 52:'mouse':鼠标, 53:'telephone':电话, 54:'airplane':飞机, 55:'skis':滑雪板, 56:'soccer':英式足球, 57:'combine with glove':棒球手套, 58:'train':火车, 59:'tent':帐篷, 60:'sailboat':帆船, 61:'kite':风筝, 62:'computer box':计算机主机机箱, 63:'elephant':大象, 64:'stroller':折叠式婴儿车, 65:'baseball bat':棒球棒, 66:'skateboard':溜冰板, 67:'surfboard':冲浪板, 68:'cat':猫, 69:'zebra':斑马, 70:'sports car':跑车, 71:'giraffe':长颈鹿, 72:'radiator':散热器, 73:'tennis racket':网球拍, 74:'skating and skiing shoes':溜冰鞋, 75:'baseball':棒球, 76:'american football':美式橄榄球, 77:'basketball':篮球, 78:'printer':打印机, 79:'fire hydrant':消防栓, 80:'projector':投影仪, 81:'fire extinguisher':灭火器, 82:'tennis ball':网球, 83:'frisbee':飞盘, 84:'fire truck':消防车, 85:'helicopter':直升飞机, 86:'carriage':四轮马车, 87:'bear':熊, 88:'globe':地球仪, 89:'volleyball':排球)
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 检测框坐标,格式为[left, top, right, bottom]
	Boxes []int64 `json:"boxes,omitempty" xml:"boxes>int64,omitempty"`
}

Elements 结构体

type Face

type Face struct {
	// 人脸Id
	Id string `json:"id,omitempty" xml:"id,omitempty"`
	// 相似概率
	Rate int64 `json:"rate,omitempty" xml:"rate,omitempty"`
	// 相似人物的名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
}

Face 结构体

type Frame

type Frame struct {
	// 置信度,仅作参考,不建议使用
	Rate int64 `json:"rate,omitempty" xml:"rate,omitempty"`
	// 被截断的图片的临时访问url,地址有效期是5分钟
	URL string `json:"u_r_l,omitempty" xml:"u_r_l,omitempty"`
}

Frame 结构体

type HintWordsInfo

type HintWordsInfo struct {
	// 图片中文字命中的风险关键词内容
	Context string `json:"context,omitempty" xml:"context,omitempty"`
}

HintWordsInfo 结构体

type Label

type Label struct {
	// 可选值包括:  spam:含垃圾信息 politics: 涉政 abuse:辱骂 porn:智能鉴黄 terrorism:暴恐识别 flood:灌水 contraband:违禁 ad:文本违规识别
	Label string `json:"label,omitempty" xml:"label,omitempty"`
}

Label 结构体

type LogoData

type LogoData struct {
	// 识别出的logo类型,取值为TV (台标)
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 识别出的logo名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 以图片左上角为坐标原点,logo区域左上角到y轴距离。
	X int64 `json:"x,omitempty" xml:"x,omitempty"`
	// 以图片左上角为坐标原点,logo区域左上角到x轴距离。
	Y int64 `json:"y,omitempty" xml:"y,omitempty"`
	// logo区域宽度
	Width int64 `json:"width,omitempty" xml:"width,omitempty"`
	// logo区域高度
	Height int64 `json:"height,omitempty" xml:"height,omitempty"`
}

LogoData 结构体

type ProgramCodeData

type ProgramCodeData struct {
	// 以图片左上角为坐标原点,小程序码区域左上角到y轴距离
	X int64 `json:"x,omitempty" xml:"x,omitempty"`
	// 以图片左上角为坐标原点,小程序码区域左上角到x轴距离
	Y int64 `json:"y,omitempty" xml:"y,omitempty"`
	// 小程序码区域宽度
	Width int64 `json:"width,omitempty" xml:"width,omitempty"`
	// 小程序码区域高度
	Height int64 `json:"height,omitempty" xml:"height,omitempty"`
}

ProgramCodeData 结构体

type SfaceData

type SfaceData struct {
	// 识别出的人脸信息,具体结构描述见face
	Faces []Face `json:"faces,omitempty" xml:"faces>face,omitempty"`
	// 人脸区域高度
	Heihght int64 `json:"heihght,omitempty" xml:"heihght,omitempty"`
	// 人脸区域宽度
	Width int64 `json:"width,omitempty" xml:"width,omitempty"`
	// 以图片左上角为坐标原点,人脸区域左上角到x轴距离
	Y int64 `json:"y,omitempty" xml:"y,omitempty"`
	// 以图片左上角为坐标原点,人脸区域左上角到y轴距离
	X int64 `json:"x,omitempty" xml:"x,omitempty"`
}

SfaceData 结构体

type SubResult

type SubResult struct {
	// 建议您执行的操作,取值范围: pass:图片正常,无需进行其余操作;或者未识别出目标对象 review:检测结果不确定,需要进行人工审核;或者识别出目标对象 block:图片违规,建议执行进一步操作(如直接删除或做限制处理)
	Suggestion string `json:"suggestion,omitempty" xml:"suggestion,omitempty"`
	// 相似概率
	Rate int64 `json:"rate,omitempty" xml:"rate,omitempty"`
	// 检测结果的分类,与具体的scene对应。取值范围参见scene和label说明。
	Label string `json:"label,omitempty" xml:"label,omitempty"`
	// 图片检测场景,和调用请求中的场景(scenes)对应
	Scene string `json:"scene,omitempty" xml:"scene,omitempty"`
	// 识别到的图片中的完整文字信息。 说明 默认不返回,如需返回请通过工单联系我们
	OcrDataList []string `json:"ocr_data_list,omitempty" xml:"ocr_data_list>string,omitempty"`
	// 如果待检测图片因为过长被截断,该参数返回截断后的每一帧图像的临时访问地址,供您参考。具体结构描述见Frame
	Frames []Frame `json:"frames,omitempty" xml:"frames>frame,omitempty"`
	// 图片中含有广告时,返回图片中广告文字命中的风险关键词信息。格式为数组,具体结构描述见HintWordsInfo。 说明 仅适用于ad场景。 示例值: "hintWordsInfo":[{"context":"敏感词"}]
	HintWordsInfoList []HintWordsInfo `json:"hint_words_info_list,omitempty" xml:"hint_words_info_list>hint_words_info,omitempty"`
	// 图片中含有小程序码时,返回小程序码的位置信息,具体结构描述见ProgramCodeData。说明 仅适用于qrcode场景,且已通过工单联系我们开通了小程序码识别
	ProgramCodeDataList []ProgramCodeData `json:"program_code_data_list,omitempty" xml:"program_code_data_list>program_code_data,omitempty"`
	// 图片中含有logo时,返回识别出来的logo信息,具体结构描述见LogoData。 说明 仅适用于logo场景
	LogoDataList []LogoData `json:"logo_data_list,omitempty" xml:"logo_data_list>logo_data,omitempty"`
	// 图片中包含暴恐识涉政内容时,返回识别出来的暴恐涉政信息,具体结构描述见SfaceData。 说明 仅适用于terrorism和sface场景。关于该参数在sface场景中的具体内容,请参见敏感人脸检测
	SfaceDataList []SfaceData `json:"sface_data_list,omitempty" xml:"sface_data_list>sface_data,omitempty"`
}

SubResult 结构体

type Task

type Task struct {
	// 数据ID
	DataId string `json:"data_id,omitempty" xml:"data_id,omitempty"`
	// 待检测图像的URL。支持HTTP和HTTPS协议。当前仅支持上海地域的OSS链接
	ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	// 图片创建或编辑时间
	ImageTime int64 `json:"image_time,omitempty" xml:"image_time,omitempty"`
	// 截帧频率
	Interval int64 `json:"interval,omitempty" xml:"interval,omitempty"`
	// 最大截帧数量
	MaxFrames int64 `json:"max_frames,omitempty" xml:"max_frames,omitempty"`
	// 待检测的内容
	Content string `json:"content,omitempty" xml:"content,omitempty"`
}

Task 结构体

type TextRectangle

type TextRectangle struct {
	// 文字区域左上角x坐标
	Left int64 `json:"left,omitempty" xml:"left,omitempty"`
	// 文字区域角度,角度范围[0, 360]
	Angle int64 `json:"angle,omitempty" xml:"angle,omitempty"`
	// 文字区域左上角y坐标
	Top int64 `json:"top,omitempty" xml:"top,omitempty"`
	// 文字区域高度
	Height int64 `json:"height,omitempty" xml:"height,omitempty"`
	// 文字区域宽度
	Width int64 `json:"width,omitempty" xml:"width,omitempty"`
}

TextRectangle 结构体

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL