Documentation
¶
Overview ¶
Package viapi 包含视觉开放API(viapi)相关结构体
Index ¶
- type AliyunviapifacebodycomparefaceAPIRequest
- func (r AliyunviapifacebodycomparefaceAPIRequest) GetApiMethodName() string
- func (r AliyunviapifacebodycomparefaceAPIRequest) GetApiParams(params url.Values)
- func (r AliyunviapifacebodycomparefaceAPIRequest) GetImageType() int64
- func (r AliyunviapifacebodycomparefaceAPIRequest) GetImageUrlA() string
- func (r AliyunviapifacebodycomparefaceAPIRequest) GetImageUrlB() string
- func (r AliyunviapifacebodycomparefaceAPIRequest) GetRawParams() model.Params
- func (r *AliyunviapifacebodycomparefaceAPIRequest) SetImageType(_imageType int64) error
- func (r *AliyunviapifacebodycomparefaceAPIRequest) SetImageUrlA(_imageUrlA string) error
- func (r *AliyunviapifacebodycomparefaceAPIRequest) SetImageUrlB(_imageUrlB string) error
- type AliyunviapifacebodycomparefaceAPIResponse
- type AliyunviapifacebodycomparefaceAPIResponseModel
- type AliyunviapifacebodycomparefaceData
- type AliyunviapifacebodydetectfaceAPIRequest
- func (r AliyunviapifacebodydetectfaceAPIRequest) GetApiMethodName() string
- func (r AliyunviapifacebodydetectfaceAPIRequest) GetApiParams(params url.Values)
- func (r AliyunviapifacebodydetectfaceAPIRequest) GetImageType() int64
- func (r AliyunviapifacebodydetectfaceAPIRequest) GetImageUrl() string
- func (r AliyunviapifacebodydetectfaceAPIRequest) GetRawParams() model.Params
- func (r *AliyunviapifacebodydetectfaceAPIRequest) SetImageType(_imageType int64) error
- func (r *AliyunviapifacebodydetectfaceAPIRequest) SetImageUrl(_imageUrl string) error
- type AliyunviapifacebodydetectfaceAPIResponse
- type AliyunviapifacebodydetectfaceAPIResponseModel
- type AliyunviapifacebodydetectfaceData
- type AliyunviapifacebodyrecognizefaceAPIRequest
- func (r AliyunviapifacebodyrecognizefaceAPIRequest) GetApiMethodName() string
- func (r AliyunviapifacebodyrecognizefaceAPIRequest) GetApiParams(params url.Values)
- func (r AliyunviapifacebodyrecognizefaceAPIRequest) GetImageType() int64
- func (r AliyunviapifacebodyrecognizefaceAPIRequest) GetImageUrl() string
- func (r AliyunviapifacebodyrecognizefaceAPIRequest) GetRawParams() model.Params
- func (r *AliyunviapifacebodyrecognizefaceAPIRequest) SetImageType(_imageType int64) error
- func (r *AliyunviapifacebodyrecognizefaceAPIRequest) SetImageUrl(_imageUrl string) error
- type AliyunviapifacebodyrecognizefaceAPIResponse
- type AliyunviapifacebodyrecognizefaceAPIResponseModel
- type AliyunviapifacebodyrecognizefaceData
- type AliyunviapigoodstechclassifygoodsAPIRequest
- func (r AliyunviapigoodstechclassifygoodsAPIRequest) GetApiMethodName() string
- func (r AliyunviapigoodstechclassifygoodsAPIRequest) GetApiParams(params url.Values)
- func (r AliyunviapigoodstechclassifygoodsAPIRequest) GetImageUrl() string
- func (r AliyunviapigoodstechclassifygoodsAPIRequest) GetRawParams() model.Params
- func (r *AliyunviapigoodstechclassifygoodsAPIRequest) SetImageUrl(_imageUrl string) error
- type AliyunviapigoodstechclassifygoodsAPIResponse
- type AliyunviapigoodstechclassifygoodsAPIResponseModel
- type AliyunviapigoodstechclassifygoodsData
- type AliyunviapigoodstechrecognizefurnitureattributeAPIRequest
- func (r AliyunviapigoodstechrecognizefurnitureattributeAPIRequest) GetApiMethodName() string
- func (r AliyunviapigoodstechrecognizefurnitureattributeAPIRequest) GetApiParams(params url.Values)
- func (r AliyunviapigoodstechrecognizefurnitureattributeAPIRequest) GetImageUrl() string
- func (r AliyunviapigoodstechrecognizefurnitureattributeAPIRequest) GetRawParams() model.Params
- func (r *AliyunviapigoodstechrecognizefurnitureattributeAPIRequest) SetImageUrl(_imageUrl string) error
- type AliyunviapigoodstechrecognizefurnitureattributeAPIResponse
- type AliyunviapigoodstechrecognizefurnitureattributeAPIResponseModel
- type AliyunviapigoodstechrecognizefurnitureattributeData
- type AliyunviapigoodstechrecognizefurniturespuAPIRequest
- func (r AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetApiMethodName() string
- func (r AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetApiParams(params url.Values)
- func (r AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetImageUrl() string
- func (r AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetRawParams() model.Params
- func (r AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetXLength() string
- func (r AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetYLength() string
- func (r AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetZLength() string
- func (r *AliyunviapigoodstechrecognizefurniturespuAPIRequest) SetImageUrl(_imageUrl string) error
- func (r *AliyunviapigoodstechrecognizefurniturespuAPIRequest) SetXLength(_xLength string) error
- func (r *AliyunviapigoodstechrecognizefurniturespuAPIRequest) SetYLength(_yLength string) error
- func (r *AliyunviapigoodstechrecognizefurniturespuAPIRequest) SetZLength(_zLength string) error
- type AliyunviapigoodstechrecognizefurniturespuAPIResponse
- type AliyunviapigoodstechrecognizefurniturespuAPIResponseModel
- type AliyunviapigoodstechrecognizefurniturespuData
- type AliyunviapiimageauditscanimageAPIRequest
- func (r AliyunviapiimageauditscanimageAPIRequest) GetApiMethodName() string
- func (r AliyunviapiimageauditscanimageAPIRequest) GetApiParams(params url.Values)
- func (r AliyunviapiimageauditscanimageAPIRequest) GetRawParams() model.Params
- func (r AliyunviapiimageauditscanimageAPIRequest) GetScenes() []string
- func (r AliyunviapiimageauditscanimageAPIRequest) GetTasks() []Task
- func (r *AliyunviapiimageauditscanimageAPIRequest) SetScenes(_scenes []string) error
- func (r *AliyunviapiimageauditscanimageAPIRequest) SetTasks(_tasks []Task) error
- type AliyunviapiimageauditscanimageAPIResponse
- type AliyunviapiimageauditscanimageAPIResponseModel
- type AliyunviapiimageauditscanimageData
- type AliyunviapiimageauditscanimageResult
- type AliyunviapiimageauditscantextAPIRequest
- func (r AliyunviapiimageauditscantextAPIRequest) GetApiMethodName() string
- func (r AliyunviapiimageauditscantextAPIRequest) GetApiParams(params url.Values)
- func (r AliyunviapiimageauditscantextAPIRequest) GetLabels() []Label
- func (r AliyunviapiimageauditscantextAPIRequest) GetRawParams() model.Params
- func (r AliyunviapiimageauditscantextAPIRequest) GetTasks() []Task
- func (r *AliyunviapiimageauditscantextAPIRequest) SetLabels(_labels []Label) error
- func (r *AliyunviapiimageauditscantextAPIRequest) SetTasks(_tasks []Task) error
- type AliyunviapiimageauditscantextAPIResponse
- type AliyunviapiimageauditscantextAPIResponseModel
- type AliyunviapiimageauditscantextData
- type AliyunviapiimageauditscantextDetail
- type AliyunviapiimageauditscantextResult
- type AliyunviapiimagesegsegmentcommonimageAPIRequest
- func (r AliyunviapiimagesegsegmentcommonimageAPIRequest) GetApiMethodName() string
- func (r AliyunviapiimagesegsegmentcommonimageAPIRequest) GetApiParams(params url.Values)
- func (r AliyunviapiimagesegsegmentcommonimageAPIRequest) GetImageUrl() string
- func (r AliyunviapiimagesegsegmentcommonimageAPIRequest) GetRawParams() model.Params
- func (r *AliyunviapiimagesegsegmentcommonimageAPIRequest) SetImageUrl(_imageUrl string) error
- type AliyunviapiimagesegsegmentcommonimageAPIResponse
- type AliyunviapiimagesegsegmentcommonimageAPIResponseModel
- type AliyunviapiimagesegsegmentcommonimageData
- type AliyunviapiimagesegsegmentcomodityAPIRequest
- func (r AliyunviapiimagesegsegmentcomodityAPIRequest) GetApiMethodName() string
- func (r AliyunviapiimagesegsegmentcomodityAPIRequest) GetApiParams(params url.Values)
- func (r AliyunviapiimagesegsegmentcomodityAPIRequest) GetImageUrl() string
- func (r AliyunviapiimagesegsegmentcomodityAPIRequest) GetRawParams() model.Params
- func (r *AliyunviapiimagesegsegmentcomodityAPIRequest) SetImageUrl(_imageUrl string) error
- type AliyunviapiimagesegsegmentcomodityAPIResponse
- type AliyunviapiimagesegsegmentcomodityAPIResponseModel
- type AliyunviapiimagesegsegmentcomodityData
- type AliyunviapiimagesegsegmenthdbodyAPIRequest
- func (r AliyunviapiimagesegsegmenthdbodyAPIRequest) GetApiMethodName() string
- func (r AliyunviapiimagesegsegmenthdbodyAPIRequest) GetApiParams(params url.Values)
- func (r AliyunviapiimagesegsegmenthdbodyAPIRequest) GetImageUrl() string
- func (r AliyunviapiimagesegsegmenthdbodyAPIRequest) GetRawParams() model.Params
- func (r *AliyunviapiimagesegsegmenthdbodyAPIRequest) SetImageUrl(_imageUrl string) error
- type AliyunviapiimagesegsegmenthdbodyAPIResponse
- type AliyunviapiimagesegsegmenthdbodyAPIResponseModel
- type AliyunviapiimagesegsegmenthdbodyData
- type AliyunviapiimagesegsegmentheadAPIRequest
- func (r AliyunviapiimagesegsegmentheadAPIRequest) GetApiMethodName() string
- func (r AliyunviapiimagesegsegmentheadAPIRequest) GetApiParams(params url.Values)
- func (r AliyunviapiimagesegsegmentheadAPIRequest) GetImageUrl() string
- func (r AliyunviapiimagesegsegmentheadAPIRequest) GetRawParams() model.Params
- func (r *AliyunviapiimagesegsegmentheadAPIRequest) SetImageUrl(_imageUrl string) error
- type AliyunviapiimagesegsegmentheadAPIResponse
- type AliyunviapiimagesegsegmentheadAPIResponseModel
- type AliyunviapiimagesegsegmentheadData
- type AliyunviapiobjectdetdetectobjectAPIRequest
- func (r AliyunviapiobjectdetdetectobjectAPIRequest) GetApiMethodName() string
- func (r AliyunviapiobjectdetdetectobjectAPIRequest) GetApiParams(params url.Values)
- func (r AliyunviapiobjectdetdetectobjectAPIRequest) GetImageUrl() string
- func (r AliyunviapiobjectdetdetectobjectAPIRequest) GetRawParams() model.Params
- func (r *AliyunviapiobjectdetdetectobjectAPIRequest) SetImageUrl(_imageUrl string) error
- type AliyunviapiobjectdetdetectobjectAPIResponse
- type AliyunviapiobjectdetdetectobjectAPIResponseModel
- type AliyunviapiobjectdetdetectobjectData
- type AliyunviapiocrcharacterAPIRequest
- func (r AliyunviapiocrcharacterAPIRequest) GetApiMethodName() string
- func (r AliyunviapiocrcharacterAPIRequest) GetApiParams(params url.Values)
- func (r AliyunviapiocrcharacterAPIRequest) GetImageType() int64
- func (r AliyunviapiocrcharacterAPIRequest) GetImageUrl() string
- func (r AliyunviapiocrcharacterAPIRequest) GetMinHeight() int64
- func (r AliyunviapiocrcharacterAPIRequest) GetOutputProbability() bool
- func (r AliyunviapiocrcharacterAPIRequest) GetRawParams() model.Params
- func (r *AliyunviapiocrcharacterAPIRequest) SetImageType(_imageType int64) error
- func (r *AliyunviapiocrcharacterAPIRequest) SetImageUrl(_imageUrl string) error
- func (r *AliyunviapiocrcharacterAPIRequest) SetMinHeight(_minHeight int64) error
- func (r *AliyunviapiocrcharacterAPIRequest) SetOutputProbability(_outputProbability bool) error
- type AliyunviapiocrcharacterAPIResponse
- type AliyunviapiocrcharacterAPIResponseModel
- type AliyunviapiocrcharacterData
- type AliyunviapiocrcharacterResult
- type Category
- type Context
- type Element
- type Elements
- type Face
- type Frame
- type HintWordsInfo
- type Label
- type LogoData
- type ProgramCodeData
- type SfaceData
- type SubResult
- type Task
- type TextRectangle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliyunviapifacebodycomparefaceAPIRequest ¶ added in v1.3.1
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 ¶ added in v1.3.1
func NewAliyunviapifacebodycomparefaceRequest() *AliyunviapifacebodycomparefaceAPIRequest
NewAliyunviapifacebodycomparefaceRequest 初始化AliyunviapifacebodycomparefaceAPIRequest对象
func (AliyunviapifacebodycomparefaceAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AliyunviapifacebodycomparefaceAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunviapifacebodycomparefaceAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AliyunviapifacebodycomparefaceAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunviapifacebodycomparefaceAPIRequest) GetImageType ¶ added in v1.3.1
func (r AliyunviapifacebodycomparefaceAPIRequest) GetImageType() int64
GetImageType ImageType Getter
func (AliyunviapifacebodycomparefaceAPIRequest) GetImageUrlA ¶ added in v1.3.1
func (r AliyunviapifacebodycomparefaceAPIRequest) GetImageUrlA() string
GetImageUrlA ImageUrlA Getter
func (AliyunviapifacebodycomparefaceAPIRequest) GetImageUrlB ¶ added in v1.3.1
func (r AliyunviapifacebodycomparefaceAPIRequest) GetImageUrlB() string
GetImageUrlB ImageUrlB Getter
func (AliyunviapifacebodycomparefaceAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AliyunviapifacebodycomparefaceAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AliyunviapifacebodycomparefaceAPIRequest) SetImageType ¶ added in v1.3.1
func (r *AliyunviapifacebodycomparefaceAPIRequest) SetImageType(_imageType int64) error
SetImageType is ImageType Setter 图片类型, ,取值范围[0:图片URL, 1:图片Base64数据]
func (*AliyunviapifacebodycomparefaceAPIRequest) SetImageUrlA ¶ added in v1.3.1
func (r *AliyunviapifacebodycomparefaceAPIRequest) SetImageUrlA(_imageUrlA string) error
SetImageUrlA is ImageUrlA Setter 图片url地址(http/https)
func (*AliyunviapifacebodycomparefaceAPIRequest) SetImageUrlB ¶ added in v1.3.1
func (r *AliyunviapifacebodycomparefaceAPIRequest) SetImageUrlB(_imageUrlB string) error
SetImageUrlB is ImageUrlB Setter 图片url地址(http/https)
type AliyunviapifacebodycomparefaceAPIResponse ¶ added in v1.3.1
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.3.1
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 ¶ added in v1.3.1
type AliyunviapifacebodycomparefaceData struct { // 误识率在10e-3,10e-4,10e-5时对应的置信度分类阈值 Thresholds []int64 `json:"thresholds,omitempty" xml:"thresholds>int64,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"` // 两张图片中最大人脸属于同一个人的置信度:0-100,如某张图片中没有人脸,返回置信度为0 Confidence string `json:"confidence,omitempty" xml:"confidence,omitempty"` }
AliyunviapifacebodycomparefaceData 结构体
type AliyunviapifacebodydetectfaceAPIRequest ¶ added in v1.3.1
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 ¶ added in v1.3.1
func NewAliyunviapifacebodydetectfaceRequest() *AliyunviapifacebodydetectfaceAPIRequest
NewAliyunviapifacebodydetectfaceRequest 初始化AliyunviapifacebodydetectfaceAPIRequest对象
func (AliyunviapifacebodydetectfaceAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AliyunviapifacebodydetectfaceAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunviapifacebodydetectfaceAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AliyunviapifacebodydetectfaceAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunviapifacebodydetectfaceAPIRequest) GetImageType ¶ added in v1.3.1
func (r AliyunviapifacebodydetectfaceAPIRequest) GetImageType() int64
GetImageType ImageType Getter
func (AliyunviapifacebodydetectfaceAPIRequest) GetImageUrl ¶ added in v1.3.1
func (r AliyunviapifacebodydetectfaceAPIRequest) GetImageUrl() string
GetImageUrl ImageUrl Getter
func (AliyunviapifacebodydetectfaceAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AliyunviapifacebodydetectfaceAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AliyunviapifacebodydetectfaceAPIRequest) SetImageType ¶ added in v1.3.1
func (r *AliyunviapifacebodydetectfaceAPIRequest) SetImageType(_imageType int64) error
SetImageType is ImageType Setter 0: 通过url识别,参数image_url不为空;1: 通过图片content识别,参数content不为空 支持图片格式:JPEG、JPG、BMP、PNG
func (*AliyunviapifacebodydetectfaceAPIRequest) SetImageUrl ¶ added in v1.3.1
func (r *AliyunviapifacebodydetectfaceAPIRequest) SetImageUrl(_imageUrl string) error
SetImageUrl is ImageUrl Setter 图片url地址(http/https)
type AliyunviapifacebodydetectfaceAPIResponse ¶ added in v1.3.1
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.3.1
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 ¶ added in v1.3.1
type AliyunviapifacebodydetectfaceData struct { // 返回人脸概率, 0-1之间,如有多个人脸,则依次顺延。如有两个人脸则返回[face_prob1, face_prob2] FaceProbabilityList []int64 `json:"face_probability_list,omitempty" xml:"face_probability_list>int64,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"` // 返回人脸姿态[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"` // 特征点数目,目前固定为105点(顺序:眉毛24点,眼睛32点,鼻子6点,嘴巴34点,外轮廓9点) LandmarkCount int64 `json:"landmark_count,omitempty" xml:"landmark_count,omitempty"` // 检测出来的人脸个数 FaceCount int64 `json:"face_count,omitempty" xml:"face_count,omitempty"` }
AliyunviapifacebodydetectfaceData 结构体
type AliyunviapifacebodyrecognizefaceAPIRequest ¶ added in v1.3.1
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 ¶ added in v1.3.1
func NewAliyunviapifacebodyrecognizefaceRequest() *AliyunviapifacebodyrecognizefaceAPIRequest
NewAliyunviapifacebodyrecognizefaceRequest 初始化AliyunviapifacebodyrecognizefaceAPIRequest对象
func (AliyunviapifacebodyrecognizefaceAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AliyunviapifacebodyrecognizefaceAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunviapifacebodyrecognizefaceAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AliyunviapifacebodyrecognizefaceAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunviapifacebodyrecognizefaceAPIRequest) GetImageType ¶ added in v1.3.1
func (r AliyunviapifacebodyrecognizefaceAPIRequest) GetImageType() int64
GetImageType ImageType Getter
func (AliyunviapifacebodyrecognizefaceAPIRequest) GetImageUrl ¶ added in v1.3.1
func (r AliyunviapifacebodyrecognizefaceAPIRequest) GetImageUrl() string
GetImageUrl ImageUrl Getter
func (AliyunviapifacebodyrecognizefaceAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AliyunviapifacebodyrecognizefaceAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AliyunviapifacebodyrecognizefaceAPIRequest) SetImageType ¶ added in v1.3.1
func (r *AliyunviapifacebodyrecognizefaceAPIRequest) SetImageType(_imageType int64) error
SetImageType is ImageType Setter 图片类型, ,取值范围[0:ImageURL, 1:ImageContent]
func (*AliyunviapifacebodyrecognizefaceAPIRequest) SetImageUrl ¶ added in v1.3.1
func (r *AliyunviapifacebodyrecognizefaceAPIRequest) SetImageUrl(_imageUrl string) error
SetImageUrl is ImageUrl Setter 待检测图片链接
type AliyunviapifacebodyrecognizefaceAPIResponse ¶ added in v1.3.1
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.3.1
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 ¶ added in v1.3.1
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"` // 返回人脸姿态[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"` // 年龄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"` // 人脸识别返回特征维度,目前固定为1024 DenseFeatureLength int64 `json:"dense_feature_length,omitempty" xml:"dense_feature_length,omitempty"` // 特征点数目,目前固定为105点(顺序:眉毛24点,眼睛32点,鼻子6点,嘴巴34点,外轮廓9点) LandmarkCount int64 `json:"landmark_count,omitempty" xml:"landmark_count,omitempty"` // 检测出来的人脸个数 FaceCount int64 `json:"face_count,omitempty" xml:"face_count,omitempty"` }
AliyunviapifacebodyrecognizefaceData 结构体
type AliyunviapigoodstechclassifygoodsAPIRequest ¶ added in v1.3.1
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 ¶ added in v1.3.1
func NewAliyunviapigoodstechclassifygoodsRequest() *AliyunviapigoodstechclassifygoodsAPIRequest
NewAliyunviapigoodstechclassifygoodsRequest 初始化AliyunviapigoodstechclassifygoodsAPIRequest对象
func (AliyunviapigoodstechclassifygoodsAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AliyunviapigoodstechclassifygoodsAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunviapigoodstechclassifygoodsAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AliyunviapigoodstechclassifygoodsAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunviapigoodstechclassifygoodsAPIRequest) GetImageUrl ¶ added in v1.3.1
func (r AliyunviapigoodstechclassifygoodsAPIRequest) GetImageUrl() string
GetImageUrl ImageUrl Getter
func (AliyunviapigoodstechclassifygoodsAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AliyunviapigoodstechclassifygoodsAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AliyunviapigoodstechclassifygoodsAPIRequest) SetImageUrl ¶ added in v1.3.1
func (r *AliyunviapigoodstechclassifygoodsAPIRequest) SetImageUrl(_imageUrl string) error
SetImageUrl is ImageUrl Setter 待检测图片链接
type AliyunviapigoodstechclassifygoodsAPIResponse ¶ added in v1.3.1
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.3.1
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 ¶ added in v1.3.1
type AliyunviapigoodstechclassifygoodsData struct { // 类目预测列表 CategoryList []Category `json:"category_list,omitempty" xml:"category_list>category,omitempty"` }
AliyunviapigoodstechclassifygoodsData 结构体
type AliyunviapigoodstechrecognizefurnitureattributeAPIRequest ¶ added in v1.3.1
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 ¶ added in v1.3.1
func NewAliyunviapigoodstechrecognizefurnitureattributeRequest() *AliyunviapigoodstechrecognizefurnitureattributeAPIRequest
NewAliyunviapigoodstechrecognizefurnitureattributeRequest 初始化AliyunviapigoodstechrecognizefurnitureattributeAPIRequest对象
func (AliyunviapigoodstechrecognizefurnitureattributeAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AliyunviapigoodstechrecognizefurnitureattributeAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunviapigoodstechrecognizefurnitureattributeAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AliyunviapigoodstechrecognizefurnitureattributeAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunviapigoodstechrecognizefurnitureattributeAPIRequest) GetImageUrl ¶ added in v1.3.1
func (r AliyunviapigoodstechrecognizefurnitureattributeAPIRequest) GetImageUrl() string
GetImageUrl ImageUrl Getter
func (AliyunviapigoodstechrecognizefurnitureattributeAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AliyunviapigoodstechrecognizefurnitureattributeAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AliyunviapigoodstechrecognizefurnitureattributeAPIRequest) SetImageUrl ¶ added in v1.3.1
func (r *AliyunviapigoodstechrecognizefurnitureattributeAPIRequest) SetImageUrl(_imageUrl string) error
SetImageUrl is ImageUrl Setter 待检测图片链接
type AliyunviapigoodstechrecognizefurnitureattributeAPIResponse ¶ added in v1.3.1
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.3.1
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 ¶ added in v1.3.1
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.3.1
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 ¶ added in v1.3.1
func NewAliyunviapigoodstechrecognizefurniturespuRequest() *AliyunviapigoodstechrecognizefurniturespuAPIRequest
NewAliyunviapigoodstechrecognizefurniturespuRequest 初始化AliyunviapigoodstechrecognizefurniturespuAPIRequest对象
func (AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetImageUrl ¶ added in v1.3.1
func (r AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetImageUrl() string
GetImageUrl ImageUrl Getter
func (AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetXLength ¶ added in v1.3.1
func (r AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetXLength() string
GetXLength XLength Getter
func (AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetYLength ¶ added in v1.3.1
func (r AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetYLength() string
GetYLength YLength Getter
func (AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetZLength ¶ added in v1.3.1
func (r AliyunviapigoodstechrecognizefurniturespuAPIRequest) GetZLength() string
GetZLength ZLength Getter
func (*AliyunviapigoodstechrecognizefurniturespuAPIRequest) SetImageUrl ¶ added in v1.3.1
func (r *AliyunviapigoodstechrecognizefurniturespuAPIRequest) SetImageUrl(_imageUrl string) error
SetImageUrl is ImageUrl Setter 待检测图片链接
func (*AliyunviapigoodstechrecognizefurniturespuAPIRequest) SetXLength ¶ added in v1.3.1
func (r *AliyunviapigoodstechrecognizefurniturespuAPIRequest) SetXLength(_xLength string) error
SetXLength is XLength Setter 模型x方向的尺寸,单位cm,默认值100
func (*AliyunviapigoodstechrecognizefurniturespuAPIRequest) SetYLength ¶ added in v1.3.1
func (r *AliyunviapigoodstechrecognizefurniturespuAPIRequest) SetYLength(_yLength string) error
SetYLength is YLength Setter 模型y方向的尺寸,单位cm,默认值100
func (*AliyunviapigoodstechrecognizefurniturespuAPIRequest) SetZLength ¶ added in v1.3.1
func (r *AliyunviapigoodstechrecognizefurniturespuAPIRequest) SetZLength(_zLength string) error
SetZLength is ZLength Setter 模型z方向的尺寸,单位cm,默认值100
type AliyunviapigoodstechrecognizefurniturespuAPIResponse ¶ added in v1.3.1
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.3.1
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 ¶ added in v1.3.1
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.3.1
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 ¶ added in v1.3.1
func NewAliyunviapiimageauditscanimageRequest() *AliyunviapiimageauditscanimageAPIRequest
NewAliyunviapiimageauditscanimageRequest 初始化AliyunviapiimageauditscanimageAPIRequest对象
func (AliyunviapiimageauditscanimageAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AliyunviapiimageauditscanimageAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunviapiimageauditscanimageAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AliyunviapiimageauditscanimageAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunviapiimageauditscanimageAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AliyunviapiimageauditscanimageAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AliyunviapiimageauditscanimageAPIRequest) GetScenes ¶ added in v1.3.1
func (r AliyunviapiimageauditscanimageAPIRequest) GetScenes() []string
GetScenes Scenes Getter
func (AliyunviapiimageauditscanimageAPIRequest) GetTasks ¶ added in v1.3.1
func (r AliyunviapiimageauditscanimageAPIRequest) GetTasks() []Task
GetTasks Tasks Getter
func (*AliyunviapiimageauditscanimageAPIRequest) SetScenes ¶ added in v1.3.1
func (r *AliyunviapiimageauditscanimageAPIRequest) SetScenes(_scenes []string) error
SetScenes is Scenes Setter 场景列表
func (*AliyunviapiimageauditscanimageAPIRequest) SetTasks ¶ added in v1.3.1
func (r *AliyunviapiimageauditscanimageAPIRequest) SetTasks(_tasks []Task) error
SetTasks is Tasks Setter 系统自动生成
type AliyunviapiimageauditscanimageAPIResponse ¶ added in v1.3.1
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.3.1
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 ¶ added in v1.3.1
type AliyunviapiimageauditscanimageData struct { // 图片检测结果 Results []AliyunviapiimageauditscanimageResult `json:"results,omitempty" xml:"results>aliyunviapiimageauditscanimage_result,omitempty"` }
AliyunviapiimageauditscanimageData 结构体
type AliyunviapiimageauditscanimageResult ¶ added in v1.3.1
type AliyunviapiimageauditscanimageResult struct { // 单张图片的检测结果 SubResults []SubResult `json:"sub_results,omitempty" xml:"sub_results>sub_result,omitempty"` // 数据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"` }
AliyunviapiimageauditscanimageResult 结构体
type AliyunviapiimageauditscantextAPIRequest ¶ added in v1.3.1
type AliyunviapiimageauditscantextAPIRequest struct { model.Params // contains filtered or unexported fields }
AliyunviapiimageauditscantextAPIRequest 文字内容审核 API请求 aliyun.viapi.imageaudit.scantext
结合行为、内容,采用多维度、多模型、多检测手段,识别文本中的垃圾内容,规避色情、广告、灌水、渉政、辱骂等内容风险。 注意:如果返回结果里面的results为空,也代表指定类型检测通过。
func NewAliyunviapiimageauditscantextRequest ¶ added in v1.3.1
func NewAliyunviapiimageauditscantextRequest() *AliyunviapiimageauditscantextAPIRequest
NewAliyunviapiimageauditscantextRequest 初始化AliyunviapiimageauditscantextAPIRequest对象
func (AliyunviapiimageauditscantextAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AliyunviapiimageauditscantextAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunviapiimageauditscantextAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AliyunviapiimageauditscantextAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunviapiimageauditscantextAPIRequest) GetLabels ¶ added in v1.3.1
func (r AliyunviapiimageauditscantextAPIRequest) GetLabels() []Label
GetLabels Labels Getter
func (AliyunviapiimageauditscantextAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AliyunviapiimageauditscantextAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AliyunviapiimageauditscantextAPIRequest) GetTasks ¶ added in v1.3.1
func (r AliyunviapiimageauditscantextAPIRequest) GetTasks() []Task
GetTasks Tasks Getter
func (*AliyunviapiimageauditscantextAPIRequest) SetLabels ¶ added in v1.3.1
func (r *AliyunviapiimageauditscantextAPIRequest) SetLabels(_labels []Label) error
SetLabels is Labels Setter 指定文本检测的应用场景,可选值包括: spam:含垃圾信息 politics: 涉政 abuse:辱骂 porn:智能鉴黄 terrorism:暴恐识别 flood:灌水 contraband:违禁 ad:文案违规识别 说明 支持多场景(Labels)一起检测,对一张文本同时进行鉴黄和暴恐识别,计费时也将按照两个场景计费。
func (*AliyunviapiimageauditscantextAPIRequest) SetTasks ¶ added in v1.3.1
func (r *AliyunviapiimageauditscantextAPIRequest) SetTasks(_tasks []Task) error
SetTasks is Tasks Setter 指定检测对象,JSON数组中的每个元素是一个文件检测任务结构体(Task表)。最多支持10个元素,即对10张文本进行检测。每个元素的具体结构描述见Task。
type AliyunviapiimageauditscantextAPIResponse ¶ added in v1.3.1
type AliyunviapiimageauditscantextAPIResponse struct { model.CommonResponse AliyunviapiimageauditscantextAPIResponseModel }
AliyunviapiimageauditscantextAPIResponse 文字内容审核 API返回值 aliyun.viapi.imageaudit.scantext
结合行为、内容,采用多维度、多模型、多检测手段,识别文本中的垃圾内容,规避色情、广告、灌水、渉政、辱骂等内容风险。 注意:如果返回结果里面的results为空,也代表指定类型检测通过。
type AliyunviapiimageauditscantextAPIResponseModel ¶ added in v1.3.1
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 ¶ added in v1.3.1
type AliyunviapiimageauditscantextData struct { // 检测结果各个子元素 Elements []Element `json:"elements,omitempty" xml:"elements>element,omitempty"` }
AliyunviapiimageauditscantextData 结构体
type AliyunviapiimageauditscantextDetail ¶ added in v1.3.1
type AliyunviapiimageauditscantextDetail struct { // 命中该风险的上下文信息 Contexts []Context `json:"contexts,omitempty" xml:"contexts>context,omitempty"` // 文本命中风险的分类 Label string `json:"label,omitempty" xml:"label,omitempty"` }
AliyunviapiimageauditscantextDetail 结构体
type AliyunviapiimageauditscantextResult ¶ added in v1.3.1
type AliyunviapiimageauditscantextResult struct { // 单个文本的检测结果 Details []AliyunviapiimageauditscantextDetail `json:"details,omitempty" xml:"details>aliyunviapiimageauditscantext_detail,omitempty"` // 建议用户执行的操作,取值范围: pass:文本正常 review:需要人工审核 block:文本违规,可以直接删除或者做限制处理 Suggestion string `json:"suggestion,omitempty" xml:"suggestion,omitempty"` // 检测结果的分类 Label string `json:"label,omitempty" xml:"label,omitempty"` // 结果为该分类的概率,取值范围为[0.00-100.00]。值越高,表示越有可能属于该分类。 说明 分值仅供参考,您需要关注label和suggestion内容 Rate int64 `json:"rate,omitempty" xml:"rate,omitempty"` }
AliyunviapiimageauditscantextResult 结构体
type AliyunviapiimagesegsegmentcommonimageAPIRequest ¶ added in v1.3.1
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 ¶ added in v1.3.1
func NewAliyunviapiimagesegsegmentcommonimageRequest() *AliyunviapiimagesegsegmentcommonimageAPIRequest
NewAliyunviapiimagesegsegmentcommonimageRequest 初始化AliyunviapiimagesegsegmentcommonimageAPIRequest对象
func (AliyunviapiimagesegsegmentcommonimageAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AliyunviapiimagesegsegmentcommonimageAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunviapiimagesegsegmentcommonimageAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AliyunviapiimagesegsegmentcommonimageAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunviapiimagesegsegmentcommonimageAPIRequest) GetImageUrl ¶ added in v1.3.1
func (r AliyunviapiimagesegsegmentcommonimageAPIRequest) GetImageUrl() string
GetImageUrl ImageUrl Getter
func (AliyunviapiimagesegsegmentcommonimageAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AliyunviapiimagesegsegmentcommonimageAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AliyunviapiimagesegsegmentcommonimageAPIRequest) SetImageUrl ¶ added in v1.3.1
func (r *AliyunviapiimagesegsegmentcommonimageAPIRequest) SetImageUrl(_imageUrl string) error
SetImageUrl is ImageUrl Setter 待检测图片链接
type AliyunviapiimagesegsegmentcommonimageAPIResponse ¶ added in v1.3.1
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.3.1
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 ¶ added in v1.3.1
type AliyunviapiimagesegsegmentcommonimageData struct { // 抠图结果(png透明图)有效期半个小时 ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"` }
AliyunviapiimagesegsegmentcommonimageData 结构体
type AliyunviapiimagesegsegmentcomodityAPIRequest ¶ added in v1.3.1
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 ¶ added in v1.3.1
func NewAliyunviapiimagesegsegmentcomodityRequest() *AliyunviapiimagesegsegmentcomodityAPIRequest
NewAliyunviapiimagesegsegmentcomodityRequest 初始化AliyunviapiimagesegsegmentcomodityAPIRequest对象
func (AliyunviapiimagesegsegmentcomodityAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AliyunviapiimagesegsegmentcomodityAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunviapiimagesegsegmentcomodityAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AliyunviapiimagesegsegmentcomodityAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunviapiimagesegsegmentcomodityAPIRequest) GetImageUrl ¶ added in v1.3.1
func (r AliyunviapiimagesegsegmentcomodityAPIRequest) GetImageUrl() string
GetImageUrl ImageUrl Getter
func (AliyunviapiimagesegsegmentcomodityAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AliyunviapiimagesegsegmentcomodityAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AliyunviapiimagesegsegmentcomodityAPIRequest) SetImageUrl ¶ added in v1.3.1
func (r *AliyunviapiimagesegsegmentcomodityAPIRequest) SetImageUrl(_imageUrl string) error
SetImageUrl is ImageUrl Setter 待检测图片链接
type AliyunviapiimagesegsegmentcomodityAPIResponse ¶ added in v1.3.1
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.3.1
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 ¶ added in v1.3.1
type AliyunviapiimagesegsegmentcomodityData struct { // 抠图结果(png透明图)有效期半个小时 ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"` }
AliyunviapiimagesegsegmentcomodityData 结构体
type AliyunviapiimagesegsegmenthdbodyAPIRequest ¶ added in v1.3.1
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 ¶ added in v1.3.1
func NewAliyunviapiimagesegsegmenthdbodyRequest() *AliyunviapiimagesegsegmenthdbodyAPIRequest
NewAliyunviapiimagesegsegmenthdbodyRequest 初始化AliyunviapiimagesegsegmenthdbodyAPIRequest对象
func (AliyunviapiimagesegsegmenthdbodyAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AliyunviapiimagesegsegmenthdbodyAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunviapiimagesegsegmenthdbodyAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AliyunviapiimagesegsegmenthdbodyAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunviapiimagesegsegmenthdbodyAPIRequest) GetImageUrl ¶ added in v1.3.1
func (r AliyunviapiimagesegsegmenthdbodyAPIRequest) GetImageUrl() string
GetImageUrl ImageUrl Getter
func (AliyunviapiimagesegsegmenthdbodyAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AliyunviapiimagesegsegmenthdbodyAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AliyunviapiimagesegsegmenthdbodyAPIRequest) SetImageUrl ¶ added in v1.3.1
func (r *AliyunviapiimagesegsegmenthdbodyAPIRequest) SetImageUrl(_imageUrl string) error
SetImageUrl is ImageUrl Setter 待检测图片链接
type AliyunviapiimagesegsegmenthdbodyAPIResponse ¶ added in v1.3.1
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.3.1
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 ¶ added in v1.3.1
type AliyunviapiimagesegsegmenthdbodyData struct { // 输出图像URL ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"` }
AliyunviapiimagesegsegmenthdbodyData 结构体
type AliyunviapiimagesegsegmentheadAPIRequest ¶ added in v1.3.1
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 ¶ added in v1.3.1
func NewAliyunviapiimagesegsegmentheadRequest() *AliyunviapiimagesegsegmentheadAPIRequest
NewAliyunviapiimagesegsegmentheadRequest 初始化AliyunviapiimagesegsegmentheadAPIRequest对象
func (AliyunviapiimagesegsegmentheadAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AliyunviapiimagesegsegmentheadAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunviapiimagesegsegmentheadAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AliyunviapiimagesegsegmentheadAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunviapiimagesegsegmentheadAPIRequest) GetImageUrl ¶ added in v1.3.1
func (r AliyunviapiimagesegsegmentheadAPIRequest) GetImageUrl() string
GetImageUrl ImageUrl Getter
func (AliyunviapiimagesegsegmentheadAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AliyunviapiimagesegsegmentheadAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AliyunviapiimagesegsegmentheadAPIRequest) SetImageUrl ¶ added in v1.3.1
func (r *AliyunviapiimagesegsegmentheadAPIRequest) SetImageUrl(_imageUrl string) error
SetImageUrl is ImageUrl Setter 待检测图片链接
type AliyunviapiimagesegsegmentheadAPIResponse ¶ added in v1.3.1
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.3.1
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 ¶ added in v1.3.1
type AliyunviapiimagesegsegmentheadData struct { // 人体检测框的集合 Elements []Elements `json:"elements,omitempty" xml:"elements>elements,omitempty"` }
AliyunviapiimagesegsegmentheadData 结构体
type AliyunviapiobjectdetdetectobjectAPIRequest ¶ added in v1.3.1
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 ¶ added in v1.3.1
func NewAliyunviapiobjectdetdetectobjectRequest() *AliyunviapiobjectdetdetectobjectAPIRequest
NewAliyunviapiobjectdetdetectobjectRequest 初始化AliyunviapiobjectdetdetectobjectAPIRequest对象
func (AliyunviapiobjectdetdetectobjectAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AliyunviapiobjectdetdetectobjectAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunviapiobjectdetdetectobjectAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AliyunviapiobjectdetdetectobjectAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunviapiobjectdetdetectobjectAPIRequest) GetImageUrl ¶ added in v1.3.1
func (r AliyunviapiobjectdetdetectobjectAPIRequest) GetImageUrl() string
GetImageUrl ImageUrl Getter
func (AliyunviapiobjectdetdetectobjectAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AliyunviapiobjectdetdetectobjectAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AliyunviapiobjectdetdetectobjectAPIRequest) SetImageUrl ¶ added in v1.3.1
func (r *AliyunviapiobjectdetdetectobjectAPIRequest) SetImageUrl(_imageUrl string) error
SetImageUrl is ImageUrl Setter 待检测图片链接
type AliyunviapiobjectdetdetectobjectAPIResponse ¶ added in v1.3.1
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.3.1
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 ¶ added in v1.3.1
type AliyunviapiobjectdetdetectobjectData struct { // 人体检测框的集合 Elements []Elements `json:"elements,omitempty" xml:"elements>elements,omitempty"` // 输入图片的高度 Height int64 `json:"height,omitempty" xml:"height,omitempty"` // 输入图片的宽度 Width int64 `json:"width,omitempty" xml:"width,omitempty"` }
AliyunviapiobjectdetdetectobjectData 结构体
type AliyunviapiocrcharacterAPIRequest ¶ added in v1.3.1
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 ¶ added in v1.3.1
func NewAliyunviapiocrcharacterRequest() *AliyunviapiocrcharacterAPIRequest
NewAliyunviapiocrcharacterRequest 初始化AliyunviapiocrcharacterAPIRequest对象
func (AliyunviapiocrcharacterAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AliyunviapiocrcharacterAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AliyunviapiocrcharacterAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AliyunviapiocrcharacterAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AliyunviapiocrcharacterAPIRequest) GetImageType ¶ added in v1.3.1
func (r AliyunviapiocrcharacterAPIRequest) GetImageType() int64
GetImageType ImageType Getter
func (AliyunviapiocrcharacterAPIRequest) GetImageUrl ¶ added in v1.3.1
func (r AliyunviapiocrcharacterAPIRequest) GetImageUrl() string
GetImageUrl ImageUrl Getter
func (AliyunviapiocrcharacterAPIRequest) GetMinHeight ¶ added in v1.3.1
func (r AliyunviapiocrcharacterAPIRequest) GetMinHeight() int64
GetMinHeight MinHeight Getter
func (AliyunviapiocrcharacterAPIRequest) GetOutputProbability ¶ added in v1.3.1
func (r AliyunviapiocrcharacterAPIRequest) GetOutputProbability() bool
GetOutputProbability OutputProbability Getter
func (AliyunviapiocrcharacterAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AliyunviapiocrcharacterAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AliyunviapiocrcharacterAPIRequest) SetImageType ¶ added in v1.3.1
func (r *AliyunviapiocrcharacterAPIRequest) SetImageType(_imageType int64) error
SetImageType is ImageType Setter 图片类型, ,取范围[0:ImageURL, 1:ImageContent]
func (*AliyunviapiocrcharacterAPIRequest) SetImageUrl ¶ added in v1.3.1
func (r *AliyunviapiocrcharacterAPIRequest) SetImageUrl(_imageUrl string) error
SetImageUrl is ImageUrl Setter 待检测图片链接
func (*AliyunviapiocrcharacterAPIRequest) SetMinHeight ¶ added in v1.3.1
func (r *AliyunviapiocrcharacterAPIRequest) SetMinHeight(_minHeight int64) error
SetMinHeight is MinHeight Setter 图片中文字的最小高度,单位像素
func (*AliyunviapiocrcharacterAPIRequest) SetOutputProbability ¶ added in v1.3.1
func (r *AliyunviapiocrcharacterAPIRequest) SetOutputProbability(_outputProbability bool) error
SetOutputProbability is OutputProbability Setter 是否输出文字框的概率,取值范围[true:是, false:否]
type AliyunviapiocrcharacterAPIResponse ¶ added in v1.3.1
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.3.1
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 ¶ added in v1.3.1
type AliyunviapiocrcharacterData struct { // 返回识别信息 Results []AliyunviapiocrcharacterResult `json:"results,omitempty" xml:"results>aliyunviapiocrcharacter_result,omitempty"` }
AliyunviapiocrcharacterData 结构体
type AliyunviapiocrcharacterResult ¶ added in v1.3.1
type AliyunviapiocrcharacterResult struct { // 文字内容 Text string `json:"text,omitempty" xml:"text,omitempty"` // 文字区域 TextRectangle *TextRectangle `json:"text_rectangle,omitempty" xml:"text_rectangle,omitempty"` // 文字区域概率,概率值的范围为[0, 1] Probability int64 `json:"probability,omitempty" xml:"probability,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 { // 单个文本的检测结果 Results []AliyunviapiimageauditscantextResult `json:"results,omitempty" xml:"results>aliyunviapiimageauditscantext_result,omitempty"` // 任务Id TaskId string `json:"task_id,omitempty" xml:"task_id,omitempty"` }
Element 结构体
type Elements ¶
type Elements struct { // 检测框坐标,格式为[left, top, right, bottom] Boxes []int64 `json:"boxes,omitempty" xml:"boxes>int64,omitempty"` // 抠图结果(png透明图)有效期半个小时 ImageURL string `json:"image_u_r_l,omitempty" xml:"image_u_r_l,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"` // x坐标 X int64 `json:"x,omitempty" xml:"x,omitempty"` // y坐标 Y int64 `json:"y,omitempty" xml:"y,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"` }
Elements 结构体
type Face ¶
type Face struct { // 人脸Id Id string `json:"id,omitempty" xml:"id,omitempty"` // 相似人物的名称 Name string `json:"name,omitempty" xml:"name,omitempty"` // 相似概率 Rate int64 `json:"rate,omitempty" xml:"rate,omitempty"` }
Face 结构体
type Frame ¶
type Frame struct { // 被截断的图片的临时访问url,地址有效期是5分钟 URL string `json:"u_r_l,omitempty" xml:"u_r_l,omitempty"` // 置信度,仅作参考,不建议使用 Rate int64 `json:"rate,omitempty" xml:"rate,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 { // 识别到的图片中的完整文字信息。 说明 默认不返回,如需返回请通过工单联系我们 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"` // 建议您执行的操作,取值范围: pass:图片正常,无需进行其余操作;或者未识别出目标对象 review:检测结果不确定,需要进行人工审核;或者识别出目标对象 block:图片违规,建议执行进一步操作(如直接删除或做限制处理) Suggestion string `json:"suggestion,omitempty" xml:"suggestion,omitempty"` // 检测结果的分类,与具体的scene对应。取值范围参见scene和label说明。 Label string `json:"label,omitempty" xml:"label,omitempty"` // 图片检测场景,和调用请求中的场景(scenes)对应 Scene string `json:"scene,omitempty" xml:"scene,omitempty"` // 相似概率 Rate int64 `json:"rate,omitempty" xml:"rate,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"` // 待检测的内容 Content string `json:"content,omitempty" xml:"content,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"` }
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
¶
- AliyunViapiFacebodyComparefaceAPIRequest.go
- AliyunViapiFacebodyComparefaceAPIResponse.go
- AliyunViapiFacebodyComparefaceData.go
- AliyunViapiFacebodyDetectfaceAPIRequest.go
- AliyunViapiFacebodyDetectfaceAPIResponse.go
- AliyunViapiFacebodyDetectfaceData.go
- AliyunViapiFacebodyRecognizefaceAPIRequest.go
- AliyunViapiFacebodyRecognizefaceAPIResponse.go
- AliyunViapiFacebodyRecognizefaceData.go
- AliyunViapiGoodstechClassifygoodsAPIRequest.go
- AliyunViapiGoodstechClassifygoodsAPIResponse.go
- AliyunViapiGoodstechClassifygoodsData.go
- AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest.go
- AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponse.go
- AliyunViapiGoodstechRecognizeFurnitureAttributeData.go
- AliyunViapiGoodstechRecognizeFurniturespuAPIRequest.go
- AliyunViapiGoodstechRecognizeFurniturespuAPIResponse.go
- AliyunViapiGoodstechRecognizeFurniturespuData.go
- AliyunViapiImageauditScanimageAPIRequest.go
- AliyunViapiImageauditScanimageAPIResponse.go
- AliyunViapiImageauditScanimageData.go
- AliyunViapiImageauditScanimageResult.go
- AliyunViapiImageauditScantextAPIRequest.go
- AliyunViapiImageauditScantextAPIResponse.go
- AliyunViapiImageauditScantextData.go
- AliyunViapiImageauditScantextDetail.go
- AliyunViapiImageauditScantextResult.go
- AliyunViapiImagesegSegmentCommonimageAPIRequest.go
- AliyunViapiImagesegSegmentCommonimageAPIResponse.go
- AliyunViapiImagesegSegmentCommonimageData.go
- AliyunViapiImagesegSegmentcomodityAPIRequest.go
- AliyunViapiImagesegSegmentcomodityAPIResponse.go
- AliyunViapiImagesegSegmentcomodityData.go
- AliyunViapiImagesegSegmenthdbodyAPIRequest.go
- AliyunViapiImagesegSegmenthdbodyAPIResponse.go
- AliyunViapiImagesegSegmenthdbodyData.go
- AliyunViapiImagesegSegmentheadAPIRequest.go
- AliyunViapiImagesegSegmentheadAPIResponse.go
- AliyunViapiImagesegSegmentheadData.go
- AliyunViapiObjectdetDetectobjectAPIRequest.go
- AliyunViapiObjectdetDetectobjectAPIResponse.go
- AliyunViapiObjectdetDetectobjectData.go
- AliyunViapiOcrCharacterAPIRequest.go
- AliyunViapiOcrCharacterAPIResponse.go
- AliyunViapiOcrCharacterData.go
- AliyunViapiOcrCharacterResult.go
- Category.go
- Context.go
- Element.go
- Elements.go
- Face.go
- Frame.go
- HintWordsInfo.go
- Label.go
- LogoData.go
- ProgramCodeData.go
- SfaceData.go
- SubResult.go
- Task.go
- TextRectangle.go
- doc.go