Proof Of Address Java OCR
The Java OCR SDK supports the Proof of Address OCR API.
Using this sample below,
we are going to illustrate how to extract the data that we want using the OCR SDK.
Quick Start
public class SimpleMindeeClient {
public static void main(String[] args) throws IOException {
// Init a new client
MindeeClient client = new MindeeClient("my-api-key");
// Load a file from disk and parse it
LocalInputSource localInputSource = new LocalInputSource(
new File("./a8e8cfa-a74eaa5-c8e283b-sample_invoice.jpeg")
);
PredictResponse<ProofOfAddressV1> document = mindeeClient.parse(
ProofOfAddressV1.class, localInputSource
);
// Print a summary of the parsed data
logger.info(document.getInference().getDocumentPrediction().toString());
}
}
Output:
:Locale: en; en; USD;
:Issuer name: PPL ELECTRIC UTILITIES
:Issuer Address: 2 NORTH 9TH STREET CPC-GENN1 ALLENTOWN,PA 18101-1175
:Issuer Company Registrations:
:Recipient name: CUSTOMER
:Recipient Address: 123 MAIN ST ANYTOWN,PA 18062
:Recipient Company Registrations:
:Issuance date: 2011-07-27
:Dates: 2011-07-27
2011-07-06
2011-08-03
2011-07-27
2011-06-01
2011-07-01
2010-07-01
2010-08-01
2011-07-01
2009-08-01
2010-07-01
2011-07-27
Questions?
Updated 3 months ago