|
32 | 32 |
|
33 | 33 | LICENSE_KEY="${SCANBOT_LICENSE}" |
34 | 34 |
|
35 | | -echo "Testing SCAN commands..." |
| 35 | +echo "Testing JAVA commands..." |
36 | 36 | # All failures are actual failures - no exceptions for license errors |
37 | 37 | commands=( |
38 | | - "scan barcode --file ../images/qrcode.png --license \"${LICENSE_KEY}\"" |
39 | | - "scan document --file ../images/Document.JPG --license \"${LICENSE_KEY}\"" |
40 | | - "scan check --file ../images/check.jpg --license \"${LICENSE_KEY}\"" |
41 | | - "scan credit_card --file ../images/credit_card.png --license \"${LICENSE_KEY}\"" |
42 | | - "scan mrz --file \"../images/MEXico MRZ passport old-1.jpg\" --license \"${LICENSE_KEY}\"" |
43 | | - "scan vin --file ../images/VIN.png --license \"${LICENSE_KEY}\"" |
44 | | - "classify document --file ../images/Document.JPG --license \"${LICENSE_KEY}\"" |
45 | | - "analyze analyze_multi_page --file ../images/multi_page_document.pdf --license \"${LICENSE_KEY}\"" |
46 | | - "analyze crop_analyze --file ../images/Document.JPG --save /tmp/crop.jpg --license \"${LICENSE_KEY}\"" |
| 38 | + "scan barcode --resource ../images/qrcode.png --license \"${LICENSE_KEY}\"" |
| 39 | + "scan document --resource ../images/Document.png --license \"${LICENSE_KEY}\"" |
| 40 | + "scan check --resource ../images/check.png --license \"${LICENSE_KEY}\"" |
| 41 | + "scan credit_card --resource ../images/credit_card.png --license \"${LICENSE_KEY}\"" |
| 42 | + "scan document_extractor --resource ../images/Document.png --license \"${LICENSE_KEY}\"" |
| 43 | + "scan medical_certificate --resource ../images/medical_certificate.png --license \"${LICENSE_KEY}\"" |
| 44 | + "scan mrz --resource ../images/MRZ_passport.png --license \"${LICENSE_KEY}\"" |
| 45 | + "scan ocr --resource ../images/Document.png --license \"${LICENSE_KEY}\"" |
| 46 | + "scan text_pattern --resource ../images/Document.png --license \"${LICENSE_KEY}\"" |
| 47 | + "scan vin --resource ../images/VIN.png --license \"${LICENSE_KEY}\"" |
| 48 | + "classify document --resource ../images/toll_receipt.png --license \"${LICENSE_KEY}\"" |
| 49 | + "analyze analyze_multi_page --resource ../images/multi_page_document.pdf --license \"${LICENSE_KEY}\"" |
| 50 | + "analyze crop_analyze --resource ../images/Document.png --license \"${LICENSE_KEY}\"" |
47 | 51 | "parse mrz --text \"P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<<<<<<<<<<ERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<<<<<<<<<<\" --license \"${LICENSE_KEY}\"" |
| 52 | + "parse barcode_doc --text \"QR_CODE:https://example.com\" --license \"${LICENSE_KEY}\"" |
| 53 | +) |
| 54 | + |
| 55 | +command_names=( |
| 56 | + "Barcode scan" |
| 57 | + "Document scan" |
| 58 | + "Check scan" |
| 59 | + "Credit card scan" |
| 60 | + "Document extractor scan" |
| 61 | + "Medical certificate scan" |
| 62 | + "MRZ scan" |
| 63 | + "OCR scan" |
| 64 | + "Text pattern scan" |
| 65 | + "VIN scan" |
| 66 | + "Document classify" |
| 67 | + "Multi-page analyze" |
| 68 | + "Crop analyze" |
| 69 | + "MRZ parse" |
| 70 | + "Barcode document parse" |
48 | 71 | ) |
49 | 72 |
|
50 | 73 | command_names=( |
|
0 commit comments