Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f1c7181

Browse files
committed
IMM SDK Auto Released By zhengrui.lj,Version:1.13.0
发布日志: 1, Add logo detect.
1 parent a3dd208 commit f1c7181

File tree

7 files changed

+273
-2
lines changed

7 files changed

+273
-2
lines changed

aliyun-java-sdk-imm/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2019-03-28 Version: 1.13.0
2+
1, Add logo detect.
3+
14
2019-03-11 Version: 1.12.0
25
1, Add face grouping feature .
36
2, Add head pose and face quality.

aliyun-java-sdk-imm/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<groupId>com.aliyun</groupId>
1818
<artifactId>aliyun-java-sdk-imm</artifactId>
1919
<optional>true</optional>
20-
<version>1.12.0</version>
20+
<version>1.13.0</version>
2121
</dependency>
2222
```
2323

aliyun-java-sdk-imm/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<groupId>com.aliyun</groupId>
44
<artifactId>aliyun-java-sdk-imm</artifactId>
55
<packaging>jar</packaging>
6-
<version>1.12.0</version>
6+
<version>1.13.0</version>
77
<name>aliyun-java-sdk-imm</name>
88
<url>http://www.aliyun.com</url>
99
<description>Aliyun Open API SDK for Java

aliyun-java-sdk-imm/src/main/java/com/aliyuncs/imm/model/v20170906/CreateOfficeConversionTaskRequest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public CreateOfficeConversionTaskRequest() {
4848

4949
private String modelId;
5050

51+
private Integer displayDpi;
52+
5153
private Long maxSheetRow;
5254

5355
private Long maxSheetCount;
@@ -193,6 +195,17 @@ public void setModelId(String modelId) {
193195
}
194196
}
195197

198+
public Integer getDisplayDpi() {
199+
return this.displayDpi;
200+
}
201+
202+
public void setDisplayDpi(Integer displayDpi) {
203+
this.displayDpi = displayDpi;
204+
if(displayDpi != null){
205+
putQueryParameter("DisplayDpi", displayDpi.toString());
206+
}
207+
}
208+
196209
public Long getMaxSheetRow() {
197210
return this.maxSheetRow;
198211
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.imm.model.v20170906;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
19+
/**
20+
* @author auto create
21+
* @version
22+
*/
23+
public class DetectImageLogosRequest extends RpcAcsRequest<DetectImageLogosResponse> {
24+
25+
public DetectImageLogosRequest() {
26+
super("imm", "2017-09-06", "DetectImageLogos", "imm");
27+
}
28+
29+
private String imageUri;
30+
31+
private String project;
32+
33+
public String getImageUri() {
34+
return this.imageUri;
35+
}
36+
37+
public void setImageUri(String imageUri) {
38+
this.imageUri = imageUri;
39+
if(imageUri != null){
40+
putQueryParameter("ImageUri", imageUri);
41+
}
42+
}
43+
44+
public String getProject() {
45+
return this.project;
46+
}
47+
48+
public void setProject(String project) {
49+
this.project = project;
50+
if(project != null){
51+
putQueryParameter("Project", project);
52+
}
53+
}
54+
55+
@Override
56+
public Class<DetectImageLogosResponse> getResponseClass() {
57+
return DetectImageLogosResponse.class;
58+
}
59+
60+
}
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.imm.model.v20170906;
16+
17+
import java.util.List;
18+
import com.aliyuncs.AcsResponse;
19+
import com.aliyuncs.imm.transform.v20170906.DetectImageLogosResponseUnmarshaller;
20+
import com.aliyuncs.transform.UnmarshallerContext;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class DetectImageLogosResponse extends AcsResponse {
27+
28+
private String requestId;
29+
30+
private String imageUri;
31+
32+
private List<LogosItem> logos;
33+
34+
public String getRequestId() {
35+
return this.requestId;
36+
}
37+
38+
public void setRequestId(String requestId) {
39+
this.requestId = requestId;
40+
}
41+
42+
public String getImageUri() {
43+
return this.imageUri;
44+
}
45+
46+
public void setImageUri(String imageUri) {
47+
this.imageUri = imageUri;
48+
}
49+
50+
public List<LogosItem> getLogos() {
51+
return this.logos;
52+
}
53+
54+
public void setLogos(List<LogosItem> logos) {
55+
this.logos = logos;
56+
}
57+
58+
public static class LogosItem {
59+
60+
private String logoName;
61+
62+
private Float logoConfidence;
63+
64+
private LogoBoundary logoBoundary;
65+
66+
public String getLogoName() {
67+
return this.logoName;
68+
}
69+
70+
public void setLogoName(String logoName) {
71+
this.logoName = logoName;
72+
}
73+
74+
public Float getLogoConfidence() {
75+
return this.logoConfidence;
76+
}
77+
78+
public void setLogoConfidence(Float logoConfidence) {
79+
this.logoConfidence = logoConfidence;
80+
}
81+
82+
public LogoBoundary getLogoBoundary() {
83+
return this.logoBoundary;
84+
}
85+
86+
public void setLogoBoundary(LogoBoundary logoBoundary) {
87+
this.logoBoundary = logoBoundary;
88+
}
89+
90+
public static class LogoBoundary {
91+
92+
private Integer width;
93+
94+
private Integer height;
95+
96+
private Integer top;
97+
98+
private Integer left;
99+
100+
public Integer getWidth() {
101+
return this.width;
102+
}
103+
104+
public void setWidth(Integer width) {
105+
this.width = width;
106+
}
107+
108+
public Integer getHeight() {
109+
return this.height;
110+
}
111+
112+
public void setHeight(Integer height) {
113+
this.height = height;
114+
}
115+
116+
public Integer getTop() {
117+
return this.top;
118+
}
119+
120+
public void setTop(Integer top) {
121+
this.top = top;
122+
}
123+
124+
public Integer getLeft() {
125+
return this.left;
126+
}
127+
128+
public void setLeft(Integer left) {
129+
this.left = left;
130+
}
131+
}
132+
}
133+
134+
@Override
135+
public DetectImageLogosResponse getInstance(UnmarshallerContext context) {
136+
return DetectImageLogosResponseUnmarshaller.unmarshall(this, context);
137+
}
138+
139+
@Override
140+
public boolean checkShowJsonItemName() {
141+
return false;
142+
}
143+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.imm.transform.v20170906;
16+
17+
import java.util.ArrayList;
18+
import java.util.List;
19+
20+
import com.aliyuncs.imm.model.v20170906.DetectImageLogosResponse;
21+
import com.aliyuncs.imm.model.v20170906.DetectImageLogosResponse.LogosItem;
22+
import com.aliyuncs.imm.model.v20170906.DetectImageLogosResponse.LogosItem.LogoBoundary;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
26+
public class DetectImageLogosResponseUnmarshaller {
27+
28+
public static DetectImageLogosResponse unmarshall(DetectImageLogosResponse detectImageLogosResponse, UnmarshallerContext context) {
29+
30+
detectImageLogosResponse.setRequestId(context.stringValue("DetectImageLogosResponse.RequestId"));
31+
detectImageLogosResponse.setImageUri(context.stringValue("DetectImageLogosResponse.ImageUri"));
32+
33+
List<LogosItem> logos = new ArrayList<LogosItem>();
34+
for (int i = 0; i < context.lengthValue("DetectImageLogosResponse.Logos.Length"); i++) {
35+
LogosItem logosItem = new LogosItem();
36+
logosItem.setLogoName(context.stringValue("DetectImageLogosResponse.Logos["+ i +"].LogoName"));
37+
logosItem.setLogoConfidence(context.floatValue("DetectImageLogosResponse.Logos["+ i +"].LogoConfidence"));
38+
39+
LogoBoundary logoBoundary = new LogoBoundary();
40+
logoBoundary.setWidth(context.integerValue("DetectImageLogosResponse.Logos["+ i +"].LogoBoundary.Width"));
41+
logoBoundary.setHeight(context.integerValue("DetectImageLogosResponse.Logos["+ i +"].LogoBoundary.Height"));
42+
logoBoundary.setTop(context.integerValue("DetectImageLogosResponse.Logos["+ i +"].LogoBoundary.Top"));
43+
logoBoundary.setLeft(context.integerValue("DetectImageLogosResponse.Logos["+ i +"].LogoBoundary.Left"));
44+
logosItem.setLogoBoundary(logoBoundary);
45+
46+
logos.add(logosItem);
47+
}
48+
detectImageLogosResponse.setLogos(logos);
49+
50+
return detectImageLogosResponse;
51+
}
52+
}

0 commit comments

Comments
 (0)