mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:21:42 +08:00
#195: Added Code93 barcode reader;
This commit is contained in:
@@ -341,4 +341,41 @@ describe('decodeSingle', function () {
|
||||
|
||||
_runTestSet(testSet, config);
|
||||
});
|
||||
|
||||
describe("code_93", function() {
|
||||
var config = config = {
|
||||
inputStream: {
|
||||
size: 800,
|
||||
singleChannel: false
|
||||
},
|
||||
locator: {
|
||||
patchSize: "large",
|
||||
halfSample: true
|
||||
},
|
||||
numOfWorkers: 0,
|
||||
decoder: {
|
||||
readers: ["code_93_reader"]
|
||||
},
|
||||
locate: true,
|
||||
src: null
|
||||
},
|
||||
testSet = [
|
||||
{"name": "image-001.jpg", "result": "WIWV8ETQZ1"},
|
||||
{"name": "image-002.jpg", "result": "EH3C-%GU23RK3"},
|
||||
{"name": "image-003.jpg", "result": "O308SIHQOXN5SA/PJ"},
|
||||
{"name": "image-004.jpg", "result": "DG7Q$TV8JQ/EN"},
|
||||
{"name": "image-005.jpg", "result": "DG7Q$TV8JQ/EN"},
|
||||
{"name": "image-006.jpg", "result": "O308SIHQOXN5SA/PJ"},
|
||||
{"name": "image-007.jpg", "result": "VOFD1DB5A.1F6QU"},
|
||||
{"name": "image-008.jpg", "result": "WIWV8ETQZ1"},
|
||||
{"name": "image-009.jpg", "result": "4SO64P4X8 U4YUU1T-"},
|
||||
{"name": "image-010.jpg", "result": "4SO64P4X8 U4YUU1T-"}
|
||||
];
|
||||
|
||||
testSet.forEach(function(sample) {
|
||||
sample.format = "code_93";
|
||||
});
|
||||
|
||||
_runTestSet(testSet, config);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user