Added clipping area; added buffer for efficient memory-allocations;

This commit is contained in:
Christoph Oberhofer
2017-03-26 17:30:12 +02:00
parent 4a56fff2cb
commit 22f48ea541
7 changed files with 171 additions and 82 deletions
+5 -4
View File
@@ -146,10 +146,11 @@ $(function() {
inputStream: {
type : "LiveStream",
constraints: {
width: {ideal: 640},
width: {ideal: 480},
height: {ideal: 480},
zoom: {exact: 2},
facingMode: "environment",
aspectRatio: {min: 1, max: 2}
aspectRatio: 1,
}
},
locator: {
@@ -157,10 +158,10 @@ $(function() {
halfSample: true
},
numOfWorkers: 2,
frequency: 10,
frequency: 2,
decoder: {
readers : [{
format: "code_128_reader",
format: "ean_reader",
config: {}
}]
},