From 06bcda31571eabec156a4d24dae2ff9918c0e834 Mon Sep 17 00:00:00 2001 From: Christoph Oberhofer Date: Mon, 22 May 2017 21:30:51 +0200 Subject: [PATCH 1/3] 194: Added basic support for 2of5 barcodes; fixed integration-tests --- example/file_input.html | 1 + example/live_w_locator.html | 3 +- example/live_w_locator.js | 17 +- example/static_images.html | 2 + karma-integration.conf.js | 5 +- karma.conf.js | 3 + src/decoder/barcode_decoder.js | 4 +- src/input/camera_access.js | 2 +- src/reader/2of5_reader.js | 260 +++++++++++++++++++++++++++ test/fixtures/2of5/image-001.jpg | Bin 0 -> 178255 bytes test/fixtures/2of5/image-002.jpg | Bin 0 -> 182671 bytes test/fixtures/2of5/image-003.jpg | Bin 0 -> 174860 bytes test/fixtures/2of5/image-004.jpg | Bin 0 -> 165983 bytes test/fixtures/2of5/image-005.jpg | Bin 0 -> 167796 bytes test/fixtures/2of5/image-006.jpg | Bin 0 -> 148191 bytes test/fixtures/2of5/image-007.jpg | Bin 0 -> 124486 bytes test/fixtures/2of5/image-008.jpg | Bin 0 -> 172155 bytes test/fixtures/2of5/image-009.jpg | Bin 0 -> 159645 bytes test/fixtures/2of5/image-010.jpg | Bin 0 -> 187703 bytes test/fixtures/2of5/image-012.jpg | Bin 0 -> 176923 bytes test/fixtures/2of5/image-015.jpg | Bin 0 -> 172898 bytes test/fixtures/2of5/image-016.jpg | Bin 0 -> 150511 bytes test/fixtures/2of5/image-017.jpg | Bin 0 -> 191732 bytes test/integration/integration.spec.js | 37 ++++ test/spec/camera_access.spec.js | 15 -- 25 files changed, 328 insertions(+), 21 deletions(-) create mode 100644 src/reader/2of5_reader.js create mode 100644 test/fixtures/2of5/image-001.jpg create mode 100644 test/fixtures/2of5/image-002.jpg create mode 100644 test/fixtures/2of5/image-003.jpg create mode 100644 test/fixtures/2of5/image-004.jpg create mode 100644 test/fixtures/2of5/image-005.jpg create mode 100644 test/fixtures/2of5/image-006.jpg create mode 100644 test/fixtures/2of5/image-007.jpg create mode 100644 test/fixtures/2of5/image-008.jpg create mode 100644 test/fixtures/2of5/image-009.jpg create mode 100644 test/fixtures/2of5/image-010.jpg create mode 100644 test/fixtures/2of5/image-012.jpg create mode 100644 test/fixtures/2of5/image-015.jpg create mode 100644 test/fixtures/2of5/image-016.jpg create mode 100644 test/fixtures/2of5/image-017.jpg diff --git a/example/file_input.html b/example/file_input.html index 3d25fb1a..4465baf9 100644 --- a/example/file_input.html +++ b/example/file_input.html @@ -52,6 +52,7 @@

Working with file-input

+