Skip to content

Commit a03d291

Browse files
Update README.md
1 parent c671d0e commit a03d291

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,15 @@ To use the API, you should create an EmailCloud object:
8888
```java
8989
EmailCloud api = new EmailCloud("Your Client secret", "Your Client id");
9090
```
91-
92-
#### Business cards recognition API
93-
Use `AiBcrApi.parse` method to parse business card image to VCard DTO:
91+
## Parse Business Card Image to VCard in Java
9492

9593
```java
96-
byte[] fileBytes = IOUtils.toByteArray(new FileInputStream("/tmp/alex.png"));
97-
ContactList result = api.ai().bcr().parse(new AiBcrParseRequest(
98-
fileBytes, null, null, true));
99-
ContactDto contact = result.getValue().get(0);
100-
assert contact.getDisplayName().contains("Parsed Display Name");
94+
// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
95+
EmailCloud emailApi = new EmailCloud("MY_CLIENT_SECRET", "MY_CLIENT_ID");
96+
97+
byte[] fileBytes = IOUtils.toByteArray(new FileInputStream("D:/alex.png"));
98+
ContactList result = emailApi.ai().bcr().parse(new AiBcrParseRequest(fileBytes, null, null, true));
99+
ContactDto contact = result.getValue().get(0);
101100
```
102101

103102
## Aspose.Email Cloud SDKs in Popular Languages

0 commit comments

Comments
 (0)