Skip to content

Commit 4662a22

Browse files
committed
Release 20.7.0: Custom recognition regions selection API
1 parent 6a831ba commit 4662a22

File tree

122 files changed

+4309
-1523
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+4309
-1523
lines changed

!DemoProject/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<dependency>
2020
<groupId>com.aspose</groupId>
2121
<artifactId>aspose-ocr-cloud</artifactId>
22-
<version>20.5.0</version>
22+
<version>20.7.0</version>
2323
<scope>compile</scope>
2424
</dependency>
2525
</dependencies>

!DemoProject/src/main/java/Main.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,10 @@
1313

1414

1515
public class Main {
16-
// static {
17-
// Configuration.setAPI_KEY("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
18-
// Configuration.setAPP_SID("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX");
19-
// }
20-
2116
private static final String url = "https://upload.wikimedia.org/wikipedia/commons/2/2f/Book_of_Abraham_FirstPage.png";
2217

2318
public static String RecognizeFromUrl(String url) throws IOException {
24-
OcrApi api = new ApiClient().createService(OcrApi.class);
25-
Call<ResponseBody> call = api.RecognizeFromUrl(url);
26-
Response<ResponseBody> res = call.execute();
27-
OCRResponse ocrResp = OCRResponse.Deserialize(res.body());
19+
OCRResponse ocrResponse = RecognizeFromUrl(urlToFile, Language.English);
2820
return ocrResp.text;
2921
}
3022

-167 KB
Binary file not shown.
-39.3 KB
Binary file not shown.

!Releases/aspose-ocr-cloud-20.5.0.jar

-3.49 MB
Binary file not shown.

!Releases/aspose-ocr-cloud-20.5.0.pom

Lines changed: 0 additions & 107 deletions
This file was deleted.

.idea/Aspose.OCR.Cloud.SDK.Java.iml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.idea/artifacts/Aspose_OCR_Cloud_SDK_Java_main_jar.xml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.idea/compiler.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/jarRepositories.xml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)