Ver Fonte

IMM SDK Auto Released By zhengrui.lj,Version:1.48.8

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao há 7 anos atrás
pai
commit
1f7567b48c

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-12-29 Version: 1.48.8
+1, Add new set image video api
+
 2018-12-28 Version: 1.48.7
 1, Add new set image video api
 

+ 3 - 3
services/imm/detect_image_faces.go

@@ -83,9 +83,9 @@ type DetectImageFacesRequest struct {
 // DetectImageFacesResponse is the response struct for api DetectImageFaces
 type DetectImageFacesResponse struct {
 	*responses.BaseResponse
-	RequestId string      `json:"RequestId" xml:"RequestId"`
-	ImageUri  string      `json:"ImageUri" xml:"ImageUri"`
-	Faces     []FacesItem `json:"Faces" xml:"Faces"`
+	RequestId string                        `json:"RequestId" xml:"RequestId"`
+	ImageUri  string                        `json:"ImageUri" xml:"ImageUri"`
+	Faces     []FacesItemInDetectImageFaces `json:"Faces" xml:"Faces"`
 }
 
 // CreateDetectImageFacesRequest creates a request to invoke DetectImageFaces API

+ 1 - 1
services/imm/struct_faces_in_detect_image_faces.go

@@ -17,5 +17,5 @@ package imm
 
 // FacesInDetectImageFaces is a nested struct in imm response
 type FacesInDetectImageFaces struct {
-	FacesItem []FacesItem `json:"FacesItem" xml:"FacesItem"`
+	FacesItem []FacesItemInDetectImageFaces `json:"FacesItem" xml:"FacesItem"`
 }

+ 13 - 16
services/imm/struct_faces_item.go

@@ -17,20 +17,17 @@ package imm
 
 // FacesItem is a nested struct in imm response
 type FacesItem struct {
-	FaceConfidence       float64                  `json:"FaceConfidence" xml:"FaceConfidence"`
-	EmotionConfidence    float64                  `json:"EmotionConfidence" xml:"EmotionConfidence"`
-	Age                  string                   `json:"Age" xml:"Age"`
-	Attractive           float64                  `json:"Attractive" xml:"Attractive"`
-	AttractiveConfidence float64                  `json:"AttractiveConfidence" xml:"AttractiveConfidence"`
-	UnGroupReason        string                   `json:"UnGroupReason" xml:"UnGroupReason"`
-	AgeConfidence        float64                  `json:"AgeConfidence" xml:"AgeConfidence"`
-	Gender               string                   `json:"Gender" xml:"Gender"`
-	Emotion              string                   `json:"Emotion" xml:"Emotion"`
-	GenderConfidence     float64                  `json:"GenderConfidence" xml:"GenderConfidence"`
-	FaceId               string                   `json:"FaceId" xml:"FaceId"`
-	GroupId              string                   `json:"GroupId" xml:"GroupId"`
-	FaceAttributes       FaceAttributes           `json:"FaceAttributes" xml:"FaceAttributes"`
-	FaceRectangle        FaceRectangleInIndexFace `json:"FaceRectangle" xml:"FaceRectangle"`
-	EmotionDetails       EmotionDetails           `json:"EmotionDetails" xml:"EmotionDetails"`
-	FaceAttribute        FaceAttribute            `json:"FaceAttribute" xml:"FaceAttribute"`
+	FaceConfidence   float64                  `json:"FaceConfidence" xml:"FaceConfidence"`
+	Age              string                   `json:"Age" xml:"Age"`
+	Attractive       float64                  `json:"Attractive" xml:"Attractive"`
+	UnGroupReason    string                   `json:"UnGroupReason" xml:"UnGroupReason"`
+	Gender           string                   `json:"Gender" xml:"Gender"`
+	Emotion          string                   `json:"Emotion" xml:"Emotion"`
+	GenderConfidence float64                  `json:"GenderConfidence" xml:"GenderConfidence"`
+	FaceId           string                   `json:"FaceId" xml:"FaceId"`
+	GroupId          string                   `json:"GroupId" xml:"GroupId"`
+	FaceAttributes   FaceAttributes           `json:"FaceAttributes" xml:"FaceAttributes"`
+	FaceRectangle    FaceRectangleInIndexFace `json:"FaceRectangle" xml:"FaceRectangle"`
+	EmotionDetails   EmotionDetails           `json:"EmotionDetails" xml:"EmotionDetails"`
+	FaceAttribute    FaceAttribute            `json:"FaceAttribute" xml:"FaceAttribute"`
 }

+ 32 - 0
services/imm/struct_faces_item_in_detect_image_faces.go

@@ -0,0 +1,32 @@
+package imm
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// FacesItemInDetectImageFaces is a nested struct in imm response
+type FacesItemInDetectImageFaces struct {
+	FaceId               string         `json:"FaceId" xml:"FaceId"`
+	FaceConfidence       float64        `json:"FaceConfidence" xml:"FaceConfidence"`
+	Age                  int            `json:"Age" xml:"Age"`
+	Gender               string         `json:"Gender" xml:"Gender"`
+	Emotion              string         `json:"Emotion" xml:"Emotion"`
+	Attractive           float64        `json:"Attractive" xml:"Attractive"`
+	GenderConfidence     float64        `json:"GenderConfidence" xml:"GenderConfidence"`
+	AgeConfidence        float64        `json:"AgeConfidence" xml:"AgeConfidence"`
+	AttractiveConfidence float64        `json:"AttractiveConfidence" xml:"AttractiveConfidence"`
+	EmotionConfidence    float64        `json:"EmotionConfidence" xml:"EmotionConfidence"`
+	FaceAttributes       FaceAttributes `json:"FaceAttributes" xml:"FaceAttributes"`
+	EmotionDetails       EmotionDetails `json:"EmotionDetails" xml:"EmotionDetails"`
+}