File tree Expand file tree Collapse file tree 9 files changed +9
-9
lines changed
java/src/main/java/io/scanbot/sdk Expand file tree Collapse file tree 9 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ int main(int argc, char *argv[]) {
6161 else if (strcmp (command , "document" ) == 0 ) ec = detect_document (image );
6262 else if (strcmp (command , "check" ) == 0 ) ec = detect_check (image );
6363 else if (strcmp (command , "credit_card" ) == 0 ) ec = detect_credit_card (image );
64- else if (strcmp (command , "document_extractor " ) == 0 ) ec = extract_document_data (image );
64+ else if (strcmp (command , "document_data_extractor " ) == 0 ) ec = extract_document_data (image );
6565 else if (strcmp (command , "medical_certificate" )== 0 ) ec = detect_medical_certificate (image );
6666 else if (strcmp (command , "mrz" ) == 0 ) ec = detect_mrz (image );
6767 else if (strcmp (command , "ocr" ) == 0 ) ec = ocr_run (image );
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ void print_usage(const char *prog) {
9797 printf (" %s live <command> --file \"<input>\" [--license <KEY>] [--use_tensorrt]\n\n" , prog );
9898
9999 printf ("Available scan commands:\n" );
100- printf (" barcode | document | check | credit_card | document_extractor |\n" );
100+ printf (" barcode | document | check | credit_card | document_data_extractor |\n" );
101101 printf (" medical_certificate | mrz | ocr | text_pattern | vin\n\n" );
102102
103103 printf ("Available classify commands:\n" );
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public static void main(String[] args) throws Exception {
5353 case "document" : DetectDocumentSnippet .run (image ); break ;
5454 case "check" : CheckScannerSnippet .run (image ); break ;
5555 case "credit_card" : CreditCardScannerSnippet .run (image ); break ;
56- case "document_extractor " : DocumentDataExtractorSnippet .run (image ); break ;
56+ case "document_data_extractor " : DocumentDataExtractorSnippet .run (image ); break ;
5757 case "medical_certificate" : MedicalCertificateScannerSnippet .run (image ); break ;
5858 case "mrz" : MrzScannerSnippet .run (image ); break ;
5959 case "ocr" : OcrSnippet .run (image ); break ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public static void print() {
1818 System .out .println (" ./gradlew run --args='parse <command> --text \" <input>\" [--license <KEY>]'" );
1919 System .out .println ();
2020 System .out .println ("Available scan commands:" );
21- System .out .println (" barcode | document | check | credit_card | document_extractor | medical_certificate | mrz | ocr | text_pattern | vin" );
21+ System .out .println (" barcode | document | check | credit_card | document_data_extractor | medical_certificate | mrz | ocr | text_pattern | vin" );
2222 System .out .println ();
2323 System .out .println ("Available analyze commands:" );
2424 System .out .println (" analyze_multi_page | crop_analyze" );
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ async function main(): Promise<void> {
7373 case "document" : await DetectDocumentSnippet . run ( image ) ; break ;
7474 case "check" : await CheckScannerSnippet . run ( image ) ; break ;
7575 case "credit_card" : await CreditCardScannerSnippet . run ( image ) ; break ;
76- case "document_extractor " : await DocumentDataExtractorSnippet . run ( image ) ; break ;
76+ case "document_data_extractor " : await DocumentDataExtractorSnippet . run ( image ) ; break ;
7777 case "medical_certificate" : await MedicalCertificateScannerSnippet . run ( image ) ; break ;
7878 case "mrz" : await MrzScannerSnippet . run ( image ) ; break ;
7979 case "ocr" : await OcrSnippet . run ( image ) ; break ;
Original file line number Diff line number Diff line change 44 npx ts-node src/index.ts <category> <subcommand> [--file <path>] [--save <path>] [--text <value>] [--license <key>]
55
66Categories & subcommands:
7- scan <barcode | document | check | credit_card | document_extractor | medical_certificate | mrz | ocr | text_pattern | vin>
7+ scan <barcode | document | check | credit_card | document_data_extractor | medical_certificate | mrz | ocr | text_pattern | vin>
88 analyze <analyze_multi_page | crop_analyze>
99 classify <document>
1010 parse <mrz | barcode_doc>
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ commands=(
4040 " scan document --file ../../test-scripts/test-images/Document.jpeg --license \" ${SCANBOT_LICENSE} \" "
4141 " scan check --file ../../test-scripts/test-images/check.jpeg --license \" ${SCANBOT_LICENSE} \" "
4242 " scan credit_card --file ../../test-scripts/test-images/credit_card.jpeg --license \" ${SCANBOT_LICENSE} \" "
43- " scan document_extractor --file ../../test-scripts/test-images/EHIC.jpeg --license \" ${SCANBOT_LICENSE} \" "
43+ " scan document_data_extractor --file ../../test-scripts/test-images/EHIC.jpeg --license \" ${SCANBOT_LICENSE} \" "
4444 " scan medical_certificate --file ../../test-scripts/test-images/medical_certificate.jpeg --license \" ${SCANBOT_LICENSE} \" "
4545 " scan mrz --file ../../test-scripts/test-images/MRZ_passport.jpeg --license \" ${SCANBOT_LICENSE} \" "
4646 " scan ocr --file ../../test-scripts/test-images/Document.jpeg --license \" ${SCANBOT_LICENSE} \" "
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ commands=(
2727 " scan document --file ../../test-scripts/test-images/Document.jpeg --license \" ${SCANBOT_LICENSE} \" "
2828 " scan check --file ../../test-scripts/test-images/check.jpeg --license \" ${SCANBOT_LICENSE} \" "
2929 " scan credit_card --file ../../test-scripts/test-images/credit_card.jpeg --license \" ${SCANBOT_LICENSE} \" "
30- " scan document_extractor --file ../../test-scripts/test-images/EHIC.jpeg --license \" ${SCANBOT_LICENSE} \" "
30+ " scan document_data_extractor --file ../../test-scripts/test-images/EHIC.jpeg --license \" ${SCANBOT_LICENSE} \" "
3131 " scan medical_certificate --file ../../test-scripts/test-images/medical_certificate.jpeg --license \" ${SCANBOT_LICENSE} \" "
3232 " scan mrz --file ../../test-scripts/test-images/MRZ_passport.jpeg --license \" ${SCANBOT_LICENSE} \" "
3333 " scan ocr --file ../../test-scripts/test-images/Document.jpeg --license \" ${SCANBOT_LICENSE} \" "
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ commands=(
3535 " scan document --file ../../test-scripts/test-images/Document.jpeg --license \" ${SCANBOT_LICENSE} \" "
3636 " scan check --file ../../test-scripts/test-images/check.jpeg --license \" ${SCANBOT_LICENSE} \" "
3737 " scan credit_card --file ../../test-scripts/test-images/credit_card.jpeg --license \" ${SCANBOT_LICENSE} \" "
38- " scan document_extractor --file ../../test-scripts/test-images/EHIC.jpeg --license \" ${SCANBOT_LICENSE} \" "
38+ " scan document_data_extractor --file ../../test-scripts/test-images/EHIC.jpeg --license \" ${SCANBOT_LICENSE} \" "
3939 " scan medical_certificate --file ../../test-scripts/test-images/medical_certificate.jpeg --license \" ${SCANBOT_LICENSE} \" "
4040 " scan mrz --file ../../test-scripts/test-images/MRZ_passport.jpeg --license \" ${SCANBOT_LICENSE} \" "
4141 " scan ocr --file ../../test-scripts/test-images/Document.jpeg --license \" ${SCANBOT_LICENSE} \" "
You can’t perform that action at this time.
0 commit comments