Documentation
¶
Index ¶
- type AliyunViapiFacebodyComparefaceAPIResponse
- type AliyunViapiFacebodyComparefaceData
- type AliyunViapiFacebodyComparefaceRequest
- func (r AliyunViapiFacebodyComparefaceRequest) GetApiMethodName() string
- func (r AliyunViapiFacebodyComparefaceRequest) GetApiParams() url.Values
- func (r AliyunViapiFacebodyComparefaceRequest) GetImageType() int64
- func (r AliyunViapiFacebodyComparefaceRequest) GetImageUrlA() string
- func (r AliyunViapiFacebodyComparefaceRequest) GetImageUrlB() string
- func (r *AliyunViapiFacebodyComparefaceRequest) SetImageType(imageType int64) error
- func (r *AliyunViapiFacebodyComparefaceRequest) SetImageUrlA(imageUrlA string) error
- func (r *AliyunViapiFacebodyComparefaceRequest) SetImageUrlB(imageUrlB string) error
- type AliyunViapiFacebodyComparefaceResponse
- type AliyunViapiFacebodyDetectfaceAPIResponse
- type AliyunViapiFacebodyDetectfaceData
- type AliyunViapiFacebodyDetectfaceRequest
- func (r AliyunViapiFacebodyDetectfaceRequest) GetApiMethodName() string
- func (r AliyunViapiFacebodyDetectfaceRequest) GetApiParams() url.Values
- func (r AliyunViapiFacebodyDetectfaceRequest) GetImageType() int64
- func (r AliyunViapiFacebodyDetectfaceRequest) GetImageUrl() string
- func (r *AliyunViapiFacebodyDetectfaceRequest) SetImageType(imageType int64) error
- func (r *AliyunViapiFacebodyDetectfaceRequest) SetImageUrl(imageUrl string) error
- type AliyunViapiFacebodyDetectfaceResponse
- type AliyunViapiFacebodyRecognizefaceAPIResponse
- type AliyunViapiFacebodyRecognizefaceData
- type AliyunViapiFacebodyRecognizefaceRequest
- func (r AliyunViapiFacebodyRecognizefaceRequest) GetApiMethodName() string
- func (r AliyunViapiFacebodyRecognizefaceRequest) GetApiParams() url.Values
- func (r AliyunViapiFacebodyRecognizefaceRequest) GetImageType() int64
- func (r AliyunViapiFacebodyRecognizefaceRequest) GetImageUrl() string
- func (r *AliyunViapiFacebodyRecognizefaceRequest) SetImageType(imageType int64) error
- func (r *AliyunViapiFacebodyRecognizefaceRequest) SetImageUrl(imageUrl string) error
- type AliyunViapiFacebodyRecognizefaceResponse
- type AliyunViapiGoodstechClassifygoodsAPIResponse
- type AliyunViapiGoodstechClassifygoodsData
- type AliyunViapiGoodstechClassifygoodsRequest
- func (r AliyunViapiGoodstechClassifygoodsRequest) GetApiMethodName() string
- func (r AliyunViapiGoodstechClassifygoodsRequest) GetApiParams() url.Values
- func (r AliyunViapiGoodstechClassifygoodsRequest) GetImageUrl() string
- func (r *AliyunViapiGoodstechClassifygoodsRequest) SetImageUrl(imageUrl string) error
- type AliyunViapiGoodstechClassifygoodsResponse
- type AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponse
- type AliyunViapiGoodstechRecognizeFurnitureAttributeData
- type AliyunViapiGoodstechRecognizeFurnitureAttributeRequest
- func (r AliyunViapiGoodstechRecognizeFurnitureAttributeRequest) GetApiMethodName() string
- func (r AliyunViapiGoodstechRecognizeFurnitureAttributeRequest) GetApiParams() url.Values
- func (r AliyunViapiGoodstechRecognizeFurnitureAttributeRequest) GetImageUrl() string
- func (r *AliyunViapiGoodstechRecognizeFurnitureAttributeRequest) SetImageUrl(imageUrl string) error
- type AliyunViapiGoodstechRecognizeFurnitureAttributeResponse
- type AliyunViapiGoodstechRecognizeFurniturespuAPIResponse
- type AliyunViapiGoodstechRecognizeFurniturespuData
- type AliyunViapiGoodstechRecognizeFurniturespuRequest
- func (r AliyunViapiGoodstechRecognizeFurniturespuRequest) GetApiMethodName() string
- func (r AliyunViapiGoodstechRecognizeFurniturespuRequest) GetApiParams() url.Values
- func (r AliyunViapiGoodstechRecognizeFurniturespuRequest) GetImageUrl() string
- func (r AliyunViapiGoodstechRecognizeFurniturespuRequest) GetXLength() string
- func (r AliyunViapiGoodstechRecognizeFurniturespuRequest) GetYLength() string
- func (r AliyunViapiGoodstechRecognizeFurniturespuRequest) GetZLength() string
- func (r *AliyunViapiGoodstechRecognizeFurniturespuRequest) SetImageUrl(imageUrl string) error
- func (r *AliyunViapiGoodstechRecognizeFurniturespuRequest) SetXLength(xLength string) error
- func (r *AliyunViapiGoodstechRecognizeFurniturespuRequest) SetYLength(yLength string) error
- func (r *AliyunViapiGoodstechRecognizeFurniturespuRequest) SetZLength(zLength string) error
- type AliyunViapiGoodstechRecognizeFurniturespuResponse
- type AliyunViapiImageauditScanimageAPIResponse
- type AliyunViapiImageauditScanimageData
- type AliyunViapiImageauditScanimageRequest
- func (r AliyunViapiImageauditScanimageRequest) GetApiMethodName() string
- func (r AliyunViapiImageauditScanimageRequest) GetApiParams() url.Values
- func (r AliyunViapiImageauditScanimageRequest) GetScenes() []string
- func (r AliyunViapiImageauditScanimageRequest) GetTasks() []Task
- func (r *AliyunViapiImageauditScanimageRequest) SetScenes(scenes []string) error
- func (r *AliyunViapiImageauditScanimageRequest) SetTasks(tasks []Task) error
- type AliyunViapiImageauditScanimageResponse
- type AliyunViapiImageauditScanimageResult
- type AliyunViapiImageauditScantextAPIResponse
- type AliyunViapiImageauditScantextData
- type AliyunViapiImageauditScantextRequest
- func (r AliyunViapiImageauditScantextRequest) GetApiMethodName() string
- func (r AliyunViapiImageauditScantextRequest) GetApiParams() url.Values
- func (r AliyunViapiImageauditScantextRequest) GetLabels() []Label
- func (r AliyunViapiImageauditScantextRequest) GetTasks() []Task
- func (r *AliyunViapiImageauditScantextRequest) SetLabels(labels []Label) error
- func (r *AliyunViapiImageauditScantextRequest) SetTasks(tasks []Task) error
- type AliyunViapiImageauditScantextResponse
- type AliyunViapiImageauditScantextResult
- type AliyunViapiImagesegSegmentCommonimageAPIResponse
- type AliyunViapiImagesegSegmentCommonimageData
- type AliyunViapiImagesegSegmentCommonimageRequest
- func (r AliyunViapiImagesegSegmentCommonimageRequest) GetApiMethodName() string
- func (r AliyunViapiImagesegSegmentCommonimageRequest) GetApiParams() url.Values
- func (r AliyunViapiImagesegSegmentCommonimageRequest) GetImageUrl() string
- func (r *AliyunViapiImagesegSegmentCommonimageRequest) SetImageUrl(imageUrl string) error
- type AliyunViapiImagesegSegmentCommonimageResponse
- type AliyunViapiImagesegSegmentcomodityAPIResponse
- type AliyunViapiImagesegSegmentcomodityData
- type AliyunViapiImagesegSegmentcomodityRequest
- func (r AliyunViapiImagesegSegmentcomodityRequest) GetApiMethodName() string
- func (r AliyunViapiImagesegSegmentcomodityRequest) GetApiParams() url.Values
- func (r AliyunViapiImagesegSegmentcomodityRequest) GetImageUrl() string
- func (r *AliyunViapiImagesegSegmentcomodityRequest) SetImageUrl(imageUrl string) error
- type AliyunViapiImagesegSegmentcomodityResponse
- type AliyunViapiImagesegSegmenthdbodyAPIResponse
- type AliyunViapiImagesegSegmenthdbodyData
- type AliyunViapiImagesegSegmenthdbodyRequest
- func (r AliyunViapiImagesegSegmenthdbodyRequest) GetApiMethodName() string
- func (r AliyunViapiImagesegSegmenthdbodyRequest) GetApiParams() url.Values
- func (r AliyunViapiImagesegSegmenthdbodyRequest) GetImageUrl() string
- func (r *AliyunViapiImagesegSegmenthdbodyRequest) SetImageUrl(imageUrl string) error
- type AliyunViapiImagesegSegmenthdbodyResponse
- type AliyunViapiImagesegSegmentheadAPIResponse
- type AliyunViapiImagesegSegmentheadData
- type AliyunViapiImagesegSegmentheadRequest
- type AliyunViapiImagesegSegmentheadResponse
- type AliyunViapiObjectdetDetectobjectAPIResponse
- type AliyunViapiObjectdetDetectobjectData
- type AliyunViapiObjectdetDetectobjectRequest
- func (r AliyunViapiObjectdetDetectobjectRequest) GetApiMethodName() string
- func (r AliyunViapiObjectdetDetectobjectRequest) GetApiParams() url.Values
- func (r AliyunViapiObjectdetDetectobjectRequest) GetImageUrl() string
- func (r *AliyunViapiObjectdetDetectobjectRequest) SetImageUrl(imageUrl string) error
- type AliyunViapiObjectdetDetectobjectResponse
- type AliyunViapiOcrCharacterAPIResponse
- type AliyunViapiOcrCharacterData
- type AliyunViapiOcrCharacterRequest
- func (r AliyunViapiOcrCharacterRequest) GetApiMethodName() string
- func (r AliyunViapiOcrCharacterRequest) GetApiParams() url.Values
- func (r AliyunViapiOcrCharacterRequest) GetImageType() int64
- func (r AliyunViapiOcrCharacterRequest) GetImageUrl() string
- func (r AliyunViapiOcrCharacterRequest) GetMinHeight() int64
- func (r AliyunViapiOcrCharacterRequest) GetOutputProbability() bool
- func (r *AliyunViapiOcrCharacterRequest) SetImageType(imageType int64) error
- func (r *AliyunViapiOcrCharacterRequest) SetImageUrl(imageUrl string) error
- func (r *AliyunViapiOcrCharacterRequest) SetMinHeight(minHeight int64) error
- func (r *AliyunViapiOcrCharacterRequest) SetOutputProbability(outputProbability bool) error
- type AliyunViapiOcrCharacterResponse
- type AliyunViapiOcrCharacterResult
- type Category
- type Context
- type Detail
- 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 AliyunViapiFacebodyComparefaceAPIResponse ¶
type AliyunViapiFacebodyComparefaceAPIResponse struct { model.CommonResponse AliyunViapiFacebodyComparefaceResponse }
人脸比对1:1 API返回值 aliyun.viapi.facebody.compareface
基于输入的两张图片,人脸比对服务可检测两张图片中的人脸,并挑选两张图片的最大人脸进行比较,判断是否是同一人;人脸比对服务还返回了这两个人脸的矩形框、比对的置信度,以及不同误识率的置信度阈值。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
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 AliyunViapiFacebodyComparefaceRequest ¶
type AliyunViapiFacebodyComparefaceRequest struct { model.Params // contains filtered or unexported fields }
人脸比对1:1 API请求 aliyun.viapi.facebody.compareface
基于输入的两张图片,人脸比对服务可检测两张图片中的人脸,并挑选两张图片的最大人脸进行比较,判断是否是同一人;人脸比对服务还返回了这两个人脸的矩形框、比对的置信度,以及不同误识率的置信度阈值。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
func NewAliyunViapiFacebodyComparefaceRequest ¶
func NewAliyunViapiFacebodyComparefaceRequest() *AliyunViapiFacebodyComparefaceRequest
初始化AliyunViapiFacebodyComparefaceRequest对象
func (AliyunViapiFacebodyComparefaceRequest) GetApiMethodName ¶
func (r AliyunViapiFacebodyComparefaceRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (AliyunViapiFacebodyComparefaceRequest) GetApiParams ¶
func (r AliyunViapiFacebodyComparefaceRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (AliyunViapiFacebodyComparefaceRequest) GetImageType ¶
func (r AliyunViapiFacebodyComparefaceRequest) GetImageType() int64
ImageType Getter
func (AliyunViapiFacebodyComparefaceRequest) GetImageUrlA ¶
func (r AliyunViapiFacebodyComparefaceRequest) GetImageUrlA() string
ImageUrlA Getter
func (AliyunViapiFacebodyComparefaceRequest) GetImageUrlB ¶
func (r AliyunViapiFacebodyComparefaceRequest) GetImageUrlB() string
ImageUrlB Getter
func (*AliyunViapiFacebodyComparefaceRequest) SetImageType ¶
func (r *AliyunViapiFacebodyComparefaceRequest) SetImageType(imageType int64) error
ImageType Setter 图片类型, ,取值范围[0:图片URL, 1:图片Base64数据]
func (*AliyunViapiFacebodyComparefaceRequest) SetImageUrlA ¶
func (r *AliyunViapiFacebodyComparefaceRequest) SetImageUrlA(imageUrlA string) error
ImageUrlA Setter 图片url地址(http/https)
func (*AliyunViapiFacebodyComparefaceRequest) SetImageUrlB ¶
func (r *AliyunViapiFacebodyComparefaceRequest) SetImageUrlB(imageUrlB string) error
ImageUrlB Setter 图片url地址(http/https)
type AliyunViapiFacebodyComparefaceResponse ¶
type AliyunViapiFacebodyComparefaceResponse 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"` }
人脸比对1:1 成功返回结果
type AliyunViapiFacebodyDetectfaceAPIResponse ¶
type AliyunViapiFacebodyDetectfaceAPIResponse struct { model.CommonResponse AliyunViapiFacebodyDetectfaceResponse }
人脸检测定位 API返回值 aliyun.viapi.facebody.detectface
输入图片之后,在人脸检测定位返回结果的基础上,识别各个检测人脸的四种属性,返回性别(男/女)、年龄、表情(笑/不笑)、眼镜(戴/不戴);并可返回人脸的1024维深度学习特征、(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
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 AliyunViapiFacebodyDetectfaceRequest ¶
type AliyunViapiFacebodyDetectfaceRequest struct { model.Params // contains filtered or unexported fields }
人脸检测定位 API请求 aliyun.viapi.facebody.detectface
输入图片之后,在人脸检测定位返回结果的基础上,识别各个检测人脸的四种属性,返回性别(男/女)、年龄、表情(笑/不笑)、眼镜(戴/不戴);并可返回人脸的1024维深度学习特征、(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
func NewAliyunViapiFacebodyDetectfaceRequest ¶
func NewAliyunViapiFacebodyDetectfaceRequest() *AliyunViapiFacebodyDetectfaceRequest
初始化AliyunViapiFacebodyDetectfaceRequest对象
func (AliyunViapiFacebodyDetectfaceRequest) GetApiMethodName ¶
func (r AliyunViapiFacebodyDetectfaceRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (AliyunViapiFacebodyDetectfaceRequest) GetApiParams ¶
func (r AliyunViapiFacebodyDetectfaceRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (AliyunViapiFacebodyDetectfaceRequest) GetImageType ¶
func (r AliyunViapiFacebodyDetectfaceRequest) GetImageType() int64
ImageType Getter
func (AliyunViapiFacebodyDetectfaceRequest) GetImageUrl ¶
func (r AliyunViapiFacebodyDetectfaceRequest) GetImageUrl() string
ImageUrl Getter
func (*AliyunViapiFacebodyDetectfaceRequest) SetImageType ¶
func (r *AliyunViapiFacebodyDetectfaceRequest) SetImageType(imageType int64) error
ImageType Setter 0: 通过url识别,参数image_url不为空;1: 通过图片content识别,参数content不为空 支持图片格式:JPEG、JPG、BMP、PNG
func (*AliyunViapiFacebodyDetectfaceRequest) SetImageUrl ¶
func (r *AliyunViapiFacebodyDetectfaceRequest) SetImageUrl(imageUrl string) error
ImageUrl Setter 图片url地址(http/https)
type AliyunViapiFacebodyDetectfaceResponse ¶
type AliyunViapiFacebodyDetectfaceResponse 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"` }
人脸检测定位 成功返回结果
type AliyunViapiFacebodyRecognizefaceAPIResponse ¶
type AliyunViapiFacebodyRecognizefaceAPIResponse struct { model.CommonResponse AliyunViapiFacebodyRecognizefaceResponse }
人脸属性识别 API返回值 aliyun.viapi.facebody.recognizeface
输入图片之后,在人脸检测定位返回结果的基础上,识别各个检测人脸的四种属性,返回性别(男/女)、年龄、表情(笑/不笑)、眼镜(戴/不戴);并可返回人脸的1024维深度学习特征。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
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 AliyunViapiFacebodyRecognizefaceRequest ¶
type AliyunViapiFacebodyRecognizefaceRequest struct { model.Params // contains filtered or unexported fields }
人脸属性识别 API请求 aliyun.viapi.facebody.recognizeface
输入图片之后,在人脸检测定位返回结果的基础上,识别各个检测人脸的四种属性,返回性别(男/女)、年龄、表情(笑/不笑)、眼镜(戴/不戴);并可返回人脸的1024维深度学习特征。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
func NewAliyunViapiFacebodyRecognizefaceRequest ¶
func NewAliyunViapiFacebodyRecognizefaceRequest() *AliyunViapiFacebodyRecognizefaceRequest
初始化AliyunViapiFacebodyRecognizefaceRequest对象
func (AliyunViapiFacebodyRecognizefaceRequest) GetApiMethodName ¶
func (r AliyunViapiFacebodyRecognizefaceRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (AliyunViapiFacebodyRecognizefaceRequest) GetApiParams ¶
func (r AliyunViapiFacebodyRecognizefaceRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (AliyunViapiFacebodyRecognizefaceRequest) GetImageType ¶
func (r AliyunViapiFacebodyRecognizefaceRequest) GetImageType() int64
ImageType Getter
func (AliyunViapiFacebodyRecognizefaceRequest) GetImageUrl ¶
func (r AliyunViapiFacebodyRecognizefaceRequest) GetImageUrl() string
ImageUrl Getter
func (*AliyunViapiFacebodyRecognizefaceRequest) SetImageType ¶
func (r *AliyunViapiFacebodyRecognizefaceRequest) SetImageType(imageType int64) error
ImageType Setter 图片类型, ,取值范围[0:ImageURL, 1:ImageContent]
func (*AliyunViapiFacebodyRecognizefaceRequest) SetImageUrl ¶
func (r *AliyunViapiFacebodyRecognizefaceRequest) SetImageUrl(imageUrl string) error
ImageUrl Setter 待检测图片链接
type AliyunViapiFacebodyRecognizefaceResponse ¶
type AliyunViapiFacebodyRecognizefaceResponse 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"` }
人脸属性识别 成功返回结果
type AliyunViapiGoodstechClassifygoodsAPIResponse ¶
type AliyunViapiGoodstechClassifygoodsAPIResponse struct { model.CommonResponse AliyunViapiGoodstechClassifygoodsResponse }
商品分类 API返回值 aliyun.viapi.goodstech.classifygoods
可以识别图像中的商品分类,返回商品类目、置信度等信息。目前已经支持服饰鞋包、3C数码、家居用品等超过1万种类目分类。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
type AliyunViapiGoodstechClassifygoodsData ¶
type AliyunViapiGoodstechClassifygoodsData struct { // 类目预测列表 CategoryList []Category `json:"category_list,omitempty" xml:"category_list>category,omitempty"` }
AliyunViapiGoodstechClassifygoodsData
type AliyunViapiGoodstechClassifygoodsRequest ¶
type AliyunViapiGoodstechClassifygoodsRequest struct { model.Params // contains filtered or unexported fields }
商品分类 API请求 aliyun.viapi.goodstech.classifygoods
可以识别图像中的商品分类,返回商品类目、置信度等信息。目前已经支持服饰鞋包、3C数码、家居用品等超过1万种类目分类。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
func NewAliyunViapiGoodstechClassifygoodsRequest ¶
func NewAliyunViapiGoodstechClassifygoodsRequest() *AliyunViapiGoodstechClassifygoodsRequest
初始化AliyunViapiGoodstechClassifygoodsRequest对象
func (AliyunViapiGoodstechClassifygoodsRequest) GetApiMethodName ¶
func (r AliyunViapiGoodstechClassifygoodsRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (AliyunViapiGoodstechClassifygoodsRequest) GetApiParams ¶
func (r AliyunViapiGoodstechClassifygoodsRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (AliyunViapiGoodstechClassifygoodsRequest) GetImageUrl ¶
func (r AliyunViapiGoodstechClassifygoodsRequest) GetImageUrl() string
ImageUrl Getter
func (*AliyunViapiGoodstechClassifygoodsRequest) SetImageUrl ¶
func (r *AliyunViapiGoodstechClassifygoodsRequest) SetImageUrl(imageUrl string) error
ImageUrl Setter 待检测图片链接
type AliyunViapiGoodstechClassifygoodsResponse ¶
type AliyunViapiGoodstechClassifygoodsResponse 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"` }
商品分类 成功返回结果
type AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponse ¶
type AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponse struct { model.CommonResponse AliyunViapiGoodstechRecognizeFurnitureAttributeResponse }
家居属性识别 API返回值 aliyun.viapi.goodstech.recognize.furniture.attribute
识别输入的家居模型图的风格,目前支持16种风格识别。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
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 AliyunViapiGoodstechRecognizeFurnitureAttributeRequest ¶
type AliyunViapiGoodstechRecognizeFurnitureAttributeRequest struct { model.Params // contains filtered or unexported fields }
家居属性识别 API请求 aliyun.viapi.goodstech.recognize.furniture.attribute
识别输入的家居模型图的风格,目前支持16种风格识别。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
func NewAliyunViapiGoodstechRecognizeFurnitureAttributeRequest ¶
func NewAliyunViapiGoodstechRecognizeFurnitureAttributeRequest() *AliyunViapiGoodstechRecognizeFurnitureAttributeRequest
初始化AliyunViapiGoodstechRecognizeFurnitureAttributeRequest对象
func (AliyunViapiGoodstechRecognizeFurnitureAttributeRequest) GetApiMethodName ¶
func (r AliyunViapiGoodstechRecognizeFurnitureAttributeRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (AliyunViapiGoodstechRecognizeFurnitureAttributeRequest) GetApiParams ¶
func (r AliyunViapiGoodstechRecognizeFurnitureAttributeRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (AliyunViapiGoodstechRecognizeFurnitureAttributeRequest) GetImageUrl ¶
func (r AliyunViapiGoodstechRecognizeFurnitureAttributeRequest) GetImageUrl() string
ImageUrl Getter
func (*AliyunViapiGoodstechRecognizeFurnitureAttributeRequest) SetImageUrl ¶
func (r *AliyunViapiGoodstechRecognizeFurnitureAttributeRequest) SetImageUrl(imageUrl string) error
ImageUrl Setter 待检测图片链接
type AliyunViapiGoodstechRecognizeFurnitureAttributeResponse ¶
type AliyunViapiGoodstechRecognizeFurnitureAttributeResponse 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"` }
家居属性识别 成功返回结果
type AliyunViapiGoodstechRecognizeFurniturespuAPIResponse ¶
type AliyunViapiGoodstechRecognizeFurniturespuAPIResponse struct { model.CommonResponse AliyunViapiGoodstechRecognizeFurniturespuResponse }
家居SPU识别 API返回值 aliyun.viapi.goodstech.recognize.furniturespu
对输入的家居模型图进行分类,目前类别数可达70类。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
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 AliyunViapiGoodstechRecognizeFurniturespuRequest ¶
type AliyunViapiGoodstechRecognizeFurniturespuRequest struct { model.Params // contains filtered or unexported fields }
家居SPU识别 API请求 aliyun.viapi.goodstech.recognize.furniturespu
对输入的家居模型图进行分类,目前类别数可达70类。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
func NewAliyunViapiGoodstechRecognizeFurniturespuRequest ¶
func NewAliyunViapiGoodstechRecognizeFurniturespuRequest() *AliyunViapiGoodstechRecognizeFurniturespuRequest
初始化AliyunViapiGoodstechRecognizeFurniturespuRequest对象
func (AliyunViapiGoodstechRecognizeFurniturespuRequest) GetApiMethodName ¶
func (r AliyunViapiGoodstechRecognizeFurniturespuRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (AliyunViapiGoodstechRecognizeFurniturespuRequest) GetApiParams ¶
func (r AliyunViapiGoodstechRecognizeFurniturespuRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (AliyunViapiGoodstechRecognizeFurniturespuRequest) GetImageUrl ¶
func (r AliyunViapiGoodstechRecognizeFurniturespuRequest) GetImageUrl() string
ImageUrl Getter
func (AliyunViapiGoodstechRecognizeFurniturespuRequest) GetXLength ¶
func (r AliyunViapiGoodstechRecognizeFurniturespuRequest) GetXLength() string
XLength Getter
func (AliyunViapiGoodstechRecognizeFurniturespuRequest) GetYLength ¶
func (r AliyunViapiGoodstechRecognizeFurniturespuRequest) GetYLength() string
YLength Getter
func (AliyunViapiGoodstechRecognizeFurniturespuRequest) GetZLength ¶
func (r AliyunViapiGoodstechRecognizeFurniturespuRequest) GetZLength() string
ZLength Getter
func (*AliyunViapiGoodstechRecognizeFurniturespuRequest) SetImageUrl ¶
func (r *AliyunViapiGoodstechRecognizeFurniturespuRequest) SetImageUrl(imageUrl string) error
ImageUrl Setter 待检测图片链接
func (*AliyunViapiGoodstechRecognizeFurniturespuRequest) SetXLength ¶
func (r *AliyunViapiGoodstechRecognizeFurniturespuRequest) SetXLength(xLength string) error
XLength Setter 模型x方向的尺寸,单位cm,默认值100
func (*AliyunViapiGoodstechRecognizeFurniturespuRequest) SetYLength ¶
func (r *AliyunViapiGoodstechRecognizeFurniturespuRequest) SetYLength(yLength string) error
YLength Setter 模型y方向的尺寸,单位cm,默认值100
func (*AliyunViapiGoodstechRecognizeFurniturespuRequest) SetZLength ¶
func (r *AliyunViapiGoodstechRecognizeFurniturespuRequest) SetZLength(zLength string) error
ZLength Setter 模型z方向的尺寸,单位cm,默认值100
type AliyunViapiGoodstechRecognizeFurniturespuResponse ¶
type AliyunViapiGoodstechRecognizeFurniturespuResponse 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"` }
家居SPU识别 成功返回结果
type AliyunViapiImageauditScanimageAPIResponse ¶
type AliyunViapiImageauditScanimageAPIResponse struct { model.CommonResponse AliyunViapiImageauditScanimageResponse }
绿网-内容安全 API返回值 aliyun.viapi.imageaudit.scanimage
绿网-内容安全技术是基于阿里云视觉分析技术和深度识别技术,并经过在阿里经济体内和云上客户的多领域、多场景的广泛应用和不断优化,可提供风险和治理领域的图像识别、定位、检索等全面服务能力,不仅可以降低色情、涉恐、涉政、广告、垃圾信息等违规风险,而且能大幅度降低人工审核成本。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
type AliyunViapiImageauditScanimageData ¶
type AliyunViapiImageauditScanimageData struct { // 图片检测结果 Results []AliyunViapiImageauditScanimageResult `json:"results,omitempty" xml:"results>aliyun_viapi_imageaudit_scanimage_result,omitempty"` }
AliyunViapiImageauditScanimageData
type AliyunViapiImageauditScanimageRequest ¶
type AliyunViapiImageauditScanimageRequest struct { model.Params // contains filtered or unexported fields }
绿网-内容安全 API请求 aliyun.viapi.imageaudit.scanimage
绿网-内容安全技术是基于阿里云视觉分析技术和深度识别技术,并经过在阿里经济体内和云上客户的多领域、多场景的广泛应用和不断优化,可提供风险和治理领域的图像识别、定位、检索等全面服务能力,不仅可以降低色情、涉恐、涉政、广告、垃圾信息等违规风险,而且能大幅度降低人工审核成本。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
func NewAliyunViapiImageauditScanimageRequest ¶
func NewAliyunViapiImageauditScanimageRequest() *AliyunViapiImageauditScanimageRequest
初始化AliyunViapiImageauditScanimageRequest对象
func (AliyunViapiImageauditScanimageRequest) GetApiMethodName ¶
func (r AliyunViapiImageauditScanimageRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (AliyunViapiImageauditScanimageRequest) GetApiParams ¶
func (r AliyunViapiImageauditScanimageRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (AliyunViapiImageauditScanimageRequest) GetScenes ¶
func (r AliyunViapiImageauditScanimageRequest) GetScenes() []string
Scenes Getter
func (AliyunViapiImageauditScanimageRequest) GetTasks ¶
func (r AliyunViapiImageauditScanimageRequest) GetTasks() []Task
Tasks Getter
func (*AliyunViapiImageauditScanimageRequest) SetScenes ¶
func (r *AliyunViapiImageauditScanimageRequest) SetScenes(scenes []string) error
Scenes Setter 场景列表
func (*AliyunViapiImageauditScanimageRequest) SetTasks ¶
func (r *AliyunViapiImageauditScanimageRequest) SetTasks(tasks []Task) error
Tasks Setter 系统自动生成
type AliyunViapiImageauditScanimageResponse ¶
type AliyunViapiImageauditScanimageResponse 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"` }
绿网-内容安全 成功返回结果
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 AliyunViapiImageauditScantextAPIResponse ¶
type AliyunViapiImageauditScantextAPIResponse struct { model.CommonResponse AliyunViapiImageauditScantextResponse }
文字内容审核 API返回值 aliyun.viapi.imageaudit.scantext
结合行为、内容,采用多维度、多模型、多检测手段,识别文本中的垃圾内容,规避色情、广告、灌水、渉政、辱骂等内容风险。 注意:如果返回结果里面的results为空,也代表指定类型检测通过。
type AliyunViapiImageauditScantextData ¶
type AliyunViapiImageauditScantextData struct { // 检测结果各个子元素 Elements []Element `json:"elements,omitempty" xml:"elements>element,omitempty"` }
AliyunViapiImageauditScantextData
type AliyunViapiImageauditScantextRequest ¶
type AliyunViapiImageauditScantextRequest struct { model.Params // contains filtered or unexported fields }
文字内容审核 API请求 aliyun.viapi.imageaudit.scantext
结合行为、内容,采用多维度、多模型、多检测手段,识别文本中的垃圾内容,规避色情、广告、灌水、渉政、辱骂等内容风险。 注意:如果返回结果里面的results为空,也代表指定类型检测通过。
func NewAliyunViapiImageauditScantextRequest ¶
func NewAliyunViapiImageauditScantextRequest() *AliyunViapiImageauditScantextRequest
初始化AliyunViapiImageauditScantextRequest对象
func (AliyunViapiImageauditScantextRequest) GetApiMethodName ¶
func (r AliyunViapiImageauditScantextRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (AliyunViapiImageauditScantextRequest) GetApiParams ¶
func (r AliyunViapiImageauditScantextRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (AliyunViapiImageauditScantextRequest) GetLabels ¶
func (r AliyunViapiImageauditScantextRequest) GetLabels() []Label
Labels Getter
func (AliyunViapiImageauditScantextRequest) GetTasks ¶
func (r AliyunViapiImageauditScantextRequest) GetTasks() []Task
Tasks Getter
func (*AliyunViapiImageauditScantextRequest) SetLabels ¶
func (r *AliyunViapiImageauditScantextRequest) SetLabels(labels []Label) error
Labels Setter 指定文本检测的应用场景,可选值包括: spam:含垃圾信息 politics: 涉政 abuse:辱骂 porn:智能鉴黄 terrorism:暴恐识别 flood:灌水 contraband:违禁 ad:文案违规识别 说明 支持多场景(Labels)一起检测,对一张文本同时进行鉴黄和暴恐识别,计费时也将按照两个场景计费。
func (*AliyunViapiImageauditScantextRequest) SetTasks ¶
func (r *AliyunViapiImageauditScantextRequest) SetTasks(tasks []Task) error
Tasks Setter 指定检测对象,JSON数组中的每个元素是一个文件检测任务结构体(Task表)。最多支持10个元素,即对10张文本进行检测。每个元素的具体结构描述见Task。
type AliyunViapiImageauditScantextResponse ¶
type AliyunViapiImageauditScantextResponse 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"` }
文字内容审核 成功返回结果
type AliyunViapiImageauditScantextResult ¶
type AliyunViapiImageauditScantextResult struct { // 建议用户执行的操作,取值范围: pass:文本正常 review:需要人工审核 block:文本违规,可以直接删除或者做限制处理 Suggestion string `json:"suggestion,omitempty" xml:"suggestion,omitempty"` // 单个文本的检测结果 Details []Detail `json:"details,omitempty" xml:"details>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 AliyunViapiImagesegSegmentCommonimageAPIResponse ¶
type AliyunViapiImagesegSegmentCommonimageAPIResponse struct { model.CommonResponse AliyunViapiImagesegSegmentCommonimageResponse }
通用分割 API返回值 aliyun.viapi.imageseg.segment.commonimage
识别输入图像中的视觉中心物体轮廓,与背景进行分离,返回分割后的前景物体图(4通道png透明图)。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
type AliyunViapiImagesegSegmentCommonimageData ¶
type AliyunViapiImagesegSegmentCommonimageData struct { // 抠图结果(png透明图)有效期半个小时 ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"` }
AliyunViapiImagesegSegmentCommonimageData
type AliyunViapiImagesegSegmentCommonimageRequest ¶
type AliyunViapiImagesegSegmentCommonimageRequest struct { model.Params // contains filtered or unexported fields }
通用分割 API请求 aliyun.viapi.imageseg.segment.commonimage
识别输入图像中的视觉中心物体轮廓,与背景进行分离,返回分割后的前景物体图(4通道png透明图)。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
func NewAliyunViapiImagesegSegmentCommonimageRequest ¶
func NewAliyunViapiImagesegSegmentCommonimageRequest() *AliyunViapiImagesegSegmentCommonimageRequest
初始化AliyunViapiImagesegSegmentCommonimageRequest对象
func (AliyunViapiImagesegSegmentCommonimageRequest) GetApiMethodName ¶
func (r AliyunViapiImagesegSegmentCommonimageRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (AliyunViapiImagesegSegmentCommonimageRequest) GetApiParams ¶
func (r AliyunViapiImagesegSegmentCommonimageRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (AliyunViapiImagesegSegmentCommonimageRequest) GetImageUrl ¶
func (r AliyunViapiImagesegSegmentCommonimageRequest) GetImageUrl() string
ImageUrl Getter
func (*AliyunViapiImagesegSegmentCommonimageRequest) SetImageUrl ¶
func (r *AliyunViapiImagesegSegmentCommonimageRequest) SetImageUrl(imageUrl string) error
ImageUrl Setter 待检测图片链接
type AliyunViapiImagesegSegmentCommonimageResponse ¶
type AliyunViapiImagesegSegmentCommonimageResponse 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"` }
通用分割 成功返回结果
type AliyunViapiImagesegSegmentcomodityAPIResponse ¶
type AliyunViapiImagesegSegmentcomodityAPIResponse struct { model.CommonResponse AliyunViapiImagesegSegmentcomodityResponse }
商品分割 API返回值 aliyun.viapi.imageseg.segmentcomodity
识别输入图像中的商品轮廓,与背景进行分离,返回分割后的前景商品图(4通道png透明图),适应单商品/多商品、复杂背景。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
type AliyunViapiImagesegSegmentcomodityData ¶
type AliyunViapiImagesegSegmentcomodityData struct { // 抠图结果(png透明图)有效期半个小时 ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"` }
AliyunViapiImagesegSegmentcomodityData
type AliyunViapiImagesegSegmentcomodityRequest ¶
type AliyunViapiImagesegSegmentcomodityRequest struct { model.Params // contains filtered or unexported fields }
商品分割 API请求 aliyun.viapi.imageseg.segmentcomodity
识别输入图像中的商品轮廓,与背景进行分离,返回分割后的前景商品图(4通道png透明图),适应单商品/多商品、复杂背景。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
func NewAliyunViapiImagesegSegmentcomodityRequest ¶
func NewAliyunViapiImagesegSegmentcomodityRequest() *AliyunViapiImagesegSegmentcomodityRequest
初始化AliyunViapiImagesegSegmentcomodityRequest对象
func (AliyunViapiImagesegSegmentcomodityRequest) GetApiMethodName ¶
func (r AliyunViapiImagesegSegmentcomodityRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (AliyunViapiImagesegSegmentcomodityRequest) GetApiParams ¶
func (r AliyunViapiImagesegSegmentcomodityRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (AliyunViapiImagesegSegmentcomodityRequest) GetImageUrl ¶
func (r AliyunViapiImagesegSegmentcomodityRequest) GetImageUrl() string
ImageUrl Getter
func (*AliyunViapiImagesegSegmentcomodityRequest) SetImageUrl ¶
func (r *AliyunViapiImagesegSegmentcomodityRequest) SetImageUrl(imageUrl string) error
ImageUrl Setter 待检测图片链接
type AliyunViapiImagesegSegmentcomodityResponse ¶
type AliyunViapiImagesegSegmentcomodityResponse 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"` }
商品分割 成功返回结果
type AliyunViapiImagesegSegmenthdbodyAPIResponse ¶
type AliyunViapiImagesegSegmenthdbodyAPIResponse struct { model.CommonResponse AliyunViapiImagesegSegmenthdbodyResponse }
高清人体分割 API返回值 aliyun.viapi.imageseg.segmenthdbody
对输入图像中包含的人进行分割,输出结果透明图。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
type AliyunViapiImagesegSegmenthdbodyData ¶
type AliyunViapiImagesegSegmenthdbodyData struct { // 输出图像URL ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"` }
AliyunViapiImagesegSegmenthdbodyData
type AliyunViapiImagesegSegmenthdbodyRequest ¶
type AliyunViapiImagesegSegmenthdbodyRequest struct { model.Params // contains filtered or unexported fields }
高清人体分割 API请求 aliyun.viapi.imageseg.segmenthdbody
对输入图像中包含的人进行分割,输出结果透明图。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
func NewAliyunViapiImagesegSegmenthdbodyRequest ¶
func NewAliyunViapiImagesegSegmenthdbodyRequest() *AliyunViapiImagesegSegmenthdbodyRequest
初始化AliyunViapiImagesegSegmenthdbodyRequest对象
func (AliyunViapiImagesegSegmenthdbodyRequest) GetApiMethodName ¶
func (r AliyunViapiImagesegSegmenthdbodyRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (AliyunViapiImagesegSegmenthdbodyRequest) GetApiParams ¶
func (r AliyunViapiImagesegSegmenthdbodyRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (AliyunViapiImagesegSegmenthdbodyRequest) GetImageUrl ¶
func (r AliyunViapiImagesegSegmenthdbodyRequest) GetImageUrl() string
ImageUrl Getter
func (*AliyunViapiImagesegSegmenthdbodyRequest) SetImageUrl ¶
func (r *AliyunViapiImagesegSegmenthdbodyRequest) SetImageUrl(imageUrl string) error
ImageUrl Setter 待检测图片链接
type AliyunViapiImagesegSegmenthdbodyResponse ¶
type AliyunViapiImagesegSegmenthdbodyResponse 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"` }
高清人体分割 成功返回结果
type AliyunViapiImagesegSegmentheadAPIResponse ¶
type AliyunViapiImagesegSegmentheadAPIResponse struct { model.CommonResponse AliyunViapiImagesegSegmentheadResponse }
头像分割 API返回值 aliyun.viapi.imageseg.segmenthead
输入一张图片,对图中人头区域进行抠图解析,输出人头png透明图。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
type AliyunViapiImagesegSegmentheadData ¶
type AliyunViapiImagesegSegmentheadData struct { // 人体检测框的集合 Elements []Elements `json:"elements,omitempty" xml:"elements>elements,omitempty"` }
AliyunViapiImagesegSegmentheadData
type AliyunViapiImagesegSegmentheadRequest ¶
type AliyunViapiImagesegSegmentheadRequest struct { model.Params // contains filtered or unexported fields }
头像分割 API请求 aliyun.viapi.imageseg.segmenthead
输入一张图片,对图中人头区域进行抠图解析,输出人头png透明图。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
func NewAliyunViapiImagesegSegmentheadRequest ¶
func NewAliyunViapiImagesegSegmentheadRequest() *AliyunViapiImagesegSegmentheadRequest
初始化AliyunViapiImagesegSegmentheadRequest对象
func (AliyunViapiImagesegSegmentheadRequest) GetApiMethodName ¶
func (r AliyunViapiImagesegSegmentheadRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (AliyunViapiImagesegSegmentheadRequest) GetApiParams ¶
func (r AliyunViapiImagesegSegmentheadRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (AliyunViapiImagesegSegmentheadRequest) GetImageUrl ¶
func (r AliyunViapiImagesegSegmentheadRequest) GetImageUrl() string
ImageUrl Getter
func (*AliyunViapiImagesegSegmentheadRequest) SetImageUrl ¶
func (r *AliyunViapiImagesegSegmentheadRequest) SetImageUrl(imageUrl string) error
ImageUrl Setter 待检测图片链接
type AliyunViapiImagesegSegmentheadResponse ¶
type AliyunViapiImagesegSegmentheadResponse 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"` }
头像分割 成功返回结果
type AliyunViapiObjectdetDetectobjectAPIResponse ¶
type AliyunViapiObjectdetDetectobjectAPIResponse struct { model.CommonResponse AliyunViapiObjectdetDetectobjectResponse }
物体检测 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 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 AliyunViapiObjectdetDetectobjectRequest ¶
type AliyunViapiObjectdetDetectobjectRequest struct { model.Params // contains filtered or unexported fields }
物体检测 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() *AliyunViapiObjectdetDetectobjectRequest
初始化AliyunViapiObjectdetDetectobjectRequest对象
func (AliyunViapiObjectdetDetectobjectRequest) GetApiMethodName ¶
func (r AliyunViapiObjectdetDetectobjectRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (AliyunViapiObjectdetDetectobjectRequest) GetApiParams ¶
func (r AliyunViapiObjectdetDetectobjectRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (AliyunViapiObjectdetDetectobjectRequest) GetImageUrl ¶
func (r AliyunViapiObjectdetDetectobjectRequest) GetImageUrl() string
ImageUrl Getter
func (*AliyunViapiObjectdetDetectobjectRequest) SetImageUrl ¶
func (r *AliyunViapiObjectdetDetectobjectRequest) SetImageUrl(imageUrl string) error
ImageUrl Setter 待检测图片链接
type AliyunViapiObjectdetDetectobjectResponse ¶
type AliyunViapiObjectdetDetectobjectResponse 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"` }
物体检测 成功返回结果
type AliyunViapiOcrCharacterAPIResponse ¶
type AliyunViapiOcrCharacterAPIResponse struct { model.CommonResponse AliyunViapiOcrCharacterResponse }
通用文字识别 API返回值 aliyun.viapi.ocr.character
获取通用的文字信息。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
type AliyunViapiOcrCharacterData ¶
type AliyunViapiOcrCharacterData struct { // 返回识别信息 Results []AliyunViapiOcrCharacterResult `json:"results,omitempty" xml:"results>aliyun_viapi_ocr_character_result,omitempty"` }
AliyunViapiOcrCharacterData
type AliyunViapiOcrCharacterRequest ¶
type AliyunViapiOcrCharacterRequest struct { model.Params // contains filtered or unexported fields }
通用文字识别 API请求 aliyun.viapi.ocr.character
获取通用的文字信息。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )
func NewAliyunViapiOcrCharacterRequest ¶
func NewAliyunViapiOcrCharacterRequest() *AliyunViapiOcrCharacterRequest
初始化AliyunViapiOcrCharacterRequest对象
func (AliyunViapiOcrCharacterRequest) GetApiMethodName ¶
func (r AliyunViapiOcrCharacterRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (AliyunViapiOcrCharacterRequest) GetApiParams ¶
func (r AliyunViapiOcrCharacterRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (AliyunViapiOcrCharacterRequest) GetImageType ¶
func (r AliyunViapiOcrCharacterRequest) GetImageType() int64
ImageType Getter
func (AliyunViapiOcrCharacterRequest) GetImageUrl ¶
func (r AliyunViapiOcrCharacterRequest) GetImageUrl() string
ImageUrl Getter
func (AliyunViapiOcrCharacterRequest) GetMinHeight ¶
func (r AliyunViapiOcrCharacterRequest) GetMinHeight() int64
MinHeight Getter
func (AliyunViapiOcrCharacterRequest) GetOutputProbability ¶
func (r AliyunViapiOcrCharacterRequest) GetOutputProbability() bool
OutputProbability Getter
func (*AliyunViapiOcrCharacterRequest) SetImageType ¶
func (r *AliyunViapiOcrCharacterRequest) SetImageType(imageType int64) error
ImageType Setter 图片类型, ,取范围[0:ImageURL, 1:ImageContent]
func (*AliyunViapiOcrCharacterRequest) SetImageUrl ¶
func (r *AliyunViapiOcrCharacterRequest) SetImageUrl(imageUrl string) error
ImageUrl Setter 待检测图片链接
func (*AliyunViapiOcrCharacterRequest) SetMinHeight ¶
func (r *AliyunViapiOcrCharacterRequest) SetMinHeight(minHeight int64) error
MinHeight Setter 图片中文字的最小高度,单位像素
func (*AliyunViapiOcrCharacterRequest) SetOutputProbability ¶
func (r *AliyunViapiOcrCharacterRequest) SetOutputProbability(outputProbability bool) error
OutputProbability Setter 是否输出文字框的概率,取值范围[true:是, false:否]
type AliyunViapiOcrCharacterResponse ¶
type AliyunViapiOcrCharacterResponse 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"` }
通用文字识别 成功返回结果
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 Detail ¶
type Detail struct { // 文本命中风险的分类 Label string `json:"label,omitempty" xml:"label,omitempty"` // 命中该风险的上下文信息 Contexts []Context `json:"contexts,omitempty" xml:"contexts>context,omitempty"` }
Detail
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
¶
- AliyunViapiFacebodyComparefaceData.go
- AliyunViapiFacebodyComparefaceRequest.go
- AliyunViapiFacebodyComparefaceResponse.go
- AliyunViapiFacebodyDetectfaceData.go
- AliyunViapiFacebodyDetectfaceRequest.go
- AliyunViapiFacebodyDetectfaceResponse.go
- AliyunViapiFacebodyRecognizefaceData.go
- AliyunViapiFacebodyRecognizefaceRequest.go
- AliyunViapiFacebodyRecognizefaceResponse.go
- AliyunViapiGoodstechClassifygoodsData.go
- AliyunViapiGoodstechClassifygoodsRequest.go
- AliyunViapiGoodstechClassifygoodsResponse.go
- AliyunViapiGoodstechRecognizeFurnitureAttributeData.go
- AliyunViapiGoodstechRecognizeFurnitureAttributeRequest.go
- AliyunViapiGoodstechRecognizeFurnitureAttributeResponse.go
- AliyunViapiGoodstechRecognizeFurniturespuData.go
- AliyunViapiGoodstechRecognizeFurniturespuRequest.go
- AliyunViapiGoodstechRecognizeFurniturespuResponse.go
- AliyunViapiImageauditScanimageData.go
- AliyunViapiImageauditScanimageRequest.go
- AliyunViapiImageauditScanimageResponse.go
- AliyunViapiImageauditScanimageResult.go
- AliyunViapiImageauditScantextData.go
- AliyunViapiImageauditScantextRequest.go
- AliyunViapiImageauditScantextResponse.go
- AliyunViapiImageauditScantextResult.go
- AliyunViapiImagesegSegmentCommonimageData.go
- AliyunViapiImagesegSegmentCommonimageRequest.go
- AliyunViapiImagesegSegmentCommonimageResponse.go
- AliyunViapiImagesegSegmentcomodityData.go
- AliyunViapiImagesegSegmentcomodityRequest.go
- AliyunViapiImagesegSegmentcomodityResponse.go
- AliyunViapiImagesegSegmenthdbodyData.go
- AliyunViapiImagesegSegmenthdbodyRequest.go
- AliyunViapiImagesegSegmenthdbodyResponse.go
- AliyunViapiImagesegSegmentheadData.go
- AliyunViapiImagesegSegmentheadRequest.go
- AliyunViapiImagesegSegmentheadResponse.go
- AliyunViapiObjectdetDetectobjectData.go
- AliyunViapiObjectdetDetectobjectRequest.go
- AliyunViapiObjectdetDetectobjectResponse.go
- AliyunViapiOcrCharacterData.go
- AliyunViapiOcrCharacterRequest.go
- AliyunViapiOcrCharacterResponse.go
- AliyunViapiOcrCharacterResult.go
- Category.go
- Context.go
- Detail.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