Updated to 0.6.8

gh-pages
Christoph Oberhofer 10 years ago
parent 556df4567b
commit 6e4f93fb26

@ -6890,7 +6890,13 @@ define(
} while(decodedChar !== '*'); } while(decodedChar !== '*');
result.pop(); result.pop();
if (!result.length) {
return null;
}
if(!self._verifyTrailingWhitespace(lastStart, nextStart, counters)) {
return null;
}
return { return {
code : result.join(""), code : result.join(""),
@ -6901,6 +6907,17 @@ define(
}; };
}; };
Code39Reader.prototype._verifyTrailingWhitespace = function(lastStart, nextStart, counters) {
var trailingWhitespaceEnd,
patternSize = ArrayHelper.sum(counters);
trailingWhitespaceEnd = nextStart - lastStart - patternSize;
if ((trailingWhitespaceEnd * 3) >= patternSize) {
return true;
}
return false;
};
Code39Reader.prototype._patternToChar = function(pattern) { Code39Reader.prototype._patternToChar = function(pattern) {
var i, var i,
self = this; self = this;
@ -7902,12 +7919,12 @@ define('frame_grabber',["cv_utils"], function(CVUtils) {
_canvas.height = _canvasSize.y; _canvas.height = _canvasSize.y;
_ctx = _canvas.getContext("2d"); _ctx = _canvas.getContext("2d");
_data = new Uint8Array(_size.x * _size.y); _data = new Uint8Array(_size.x * _size.y);
console.log("FrameGrabber", { console.log("FrameGrabber", JSON.stringify({
size: _size, size: _size,
topRight: topRight, topRight: topRight,
videoSize: _video_size, videoSize: _video_size,
canvasSize: _canvasSize canvasSize: _canvasSize
}); }));
/** /**
* Uses the given array as frame-buffer * Uses the given array as frame-buffer

File diff suppressed because one or more lines are too long

@ -7,7 +7,7 @@ showInMenu: true
quaggaJS quaggaJS
======== ========
- [Changelog](#changelog) (2015-06-09) - [Changelog](#changelog) (2015-06-13)
## What is QuaggaJS? ## What is QuaggaJS?
@ -299,6 +299,11 @@ work.
## <a name="changelog">Changelog</a> ## <a name="changelog">Changelog</a>
### 2015-06-13
- Improvements
- Added fixes for ``Code39Reader`` (trailing whitespace was missing)
### 2015-06-09 ### 2015-06-09
- Features - Features
- Introduced the ``area`` property - Introduced the ``area`` property

Loading…
Cancel
Save