๐ I am a software engineer in the field of SAE L2+ and L3 Automated Driving
๐จโ๐ป My hobby is software development on GNU/Linux in C++, Python and Go
๐ซ Connect with me on LinkedIn if you are interested
Perform optical character recognition on receipts
License: MIT License
๐ I am a software engineer in the field of SAE L2+ and L3 Automated Driving
๐จโ๐ป My hobby is software development on GNU/Linux in C++, Python and Go
๐ซ Connect with me on LinkedIn if you are interested
after installing it, I tried the example and I got this:
Error in pixReadStream: Unknown format: no pix returned
Error in pixRead: pix not read
Error in pixGetSpp: pix not defined
Error in pixGetDimensions: pix not defined
Error in pixGetColormap: pix not defined
Error in pixCopy: pixs not defined
Error in pixGetDepth: pix not defined
Error in pixGetWpl: pix not defined
Error in pixGetYRes: pix not defined
Please call SetImage before attempting recognition.
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string: construction from null is not valid
Here is the output,
docker exec -it ocr-receipt ../misc/build.sh
-- Configuring done
-- Generating done
-- Build files have been written to: /src/ocr/build
ninja: no work to do.
Test project /src/ocr/build
Start 1: configuration_test.shops
1/13 Test #1: configuration_test.shops ................. Passed 0.13 sec
Start 2: configuration_test.filters
2/13 Test #2: configuration_test.filters ............... Passed 0.13 sec
Start 3: configuration_test.easyocr
3/13 Test #3: configuration_test.easyocr ............... Passed 0.13 sec
Start 4: configuration_test.tesseract_paddings
4/13 Test #4: configuration_test.tesseract_paddings .... Passed 0.13 sec
Start 5: configuration_test.tesseract_threshold
5/13 Test #5: configuration_test.tesseract_threshold ... Passed 0.13 sec
Start 6: engine_easyocr_test.receipt_1
6/13 Test #6: engine_easyocr_test.receipt_1 ............***Exception: SegFault 52.22 sec
Start 7: engine_easyocr_test.receipt_2
7/13 Test #7: engine_easyocr_test.receipt_2 ............***Exception: SegFault 51.11 sec
Start 8: engine_tesseract_test.receipt_1
8/13 Test #8: engine_tesseract_test.receipt_1 ..........***Failed 16.81 sec
Start 9: engine_tesseract_test.receipt_2
9/13 Test #9: engine_tesseract_test.receipt_2 ..........***Failed 0.62 sec
Start 10: receipt_test.receipt_1
10/13 Test #10: receipt_test.receipt_1 ...................***Exception: SegFault 1.13 sec
Start 11: receipt_test.receipt_2
11/13 Test #11: receipt_test.receipt_2 ...................***Exception: SegFault 1.14 sec
Start 12: receipt_test.receipt_3
12/13 Test #12: receipt_test.receipt_3 ...................***Exception: SegFault 1.14 sec
Start 13: receipt_test.receipt_4
13/13 Test #13: receipt_test.receipt_4 ...................***Exception: SegFault 1.14 sec
38% tests passed, 8 tests failed out of 13
Total Test time (real) = 133.08 sec
The following tests FAILED:
6 - engine_easyocr_test.receipt_1 (SEGFAULT)
7 - engine_easyocr_test.receipt_2 (SEGFAULT)
8 - engine_tesseract_test.receipt_1 (Failed)
9 - engine_tesseract_test.receipt_2 (Failed)
10 - receipt_test.receipt_1 (SEGFAULT)
11 - receipt_test.receipt_2 (SEGFAULT)
12 - receipt_test.receipt_3 (SEGFAULT)
13 - receipt_test.receipt_4 (SEGFAULT)
Errors while running CTest
Output from these tests are in: /src/ocr/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
Example Images under misc/input appear to be corrupt they cant be opened with any image manipulation software and can't be identified by "ImageMagicks" . This appears to be the case for all receipt_*.jpg files
Example System Error
user@host $ identify misc/input/receipt_2.jpg
identify: Not a JPEG file: starts with 0x76 0x65 `misc/input/receipt_2.jpg' @ error/jpeg.c/JPEGErrorHandler/348.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.