I have downloaded catalyst-java-sdk-1.6.0 library and have written code to get the text from cheque, the code is given below.
File file = new File("D:\\Cancell cheque.pdf"); //Specify the file path
ZCOCROptions options = ZCOCROptions.getInstance().setModelType(ZCOCRModelType.CHEQUE); //Set the model type
ZCContent ocrContent = ZCML.getInstance().getContent(file, options); //Call getContent() with the file object to get the detected text in ZCContent object
ZCChequeData chequeData = ocrContent.getChequeData(); //This method obtains the cheque data
//To fetch individual elements like the account number, IFSC code, bank name, branch, amount, and date of transaction from the processed image
Long accountNumber = chequeData.getAccountNumber();
String ifsc = chequeData.getIfsc();
String bankName = chequeData.getBankName();
String branchName = chequeData.getBranchName();
String amount = chequeData.getAmount();
Date date = chequeData.getDate();
While executing the line ZCML.getInstance().getContent we are getting Environment Variable not defined exception, Kindly help us to resolve this issue