File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -88,16 +88,15 @@ To use the API, you should create an EmailCloud object:
8888``` java
8989EmailCloud 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
You can’t perform that action at this time.
0 commit comments