mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-13 05:31:37 +08:00
Fixed: Workers are terminated instead of re-usedin order to initialize them correctly
This commit is contained in:
@@ -5,9 +5,9 @@ module.exports = {
|
|||||||
constraints: {
|
constraints: {
|
||||||
width: 640,
|
width: 640,
|
||||||
height: 480,
|
height: 480,
|
||||||
minAspectRatio: 0,
|
// aspectRatio: 640/480, // optional
|
||||||
maxAspectRatio: 100,
|
facingMode: "environment", // or user
|
||||||
facing: "environment" // or user
|
// deviceId: "38745983457387598375983759834"
|
||||||
},
|
},
|
||||||
area: {
|
area: {
|
||||||
top: "0%",
|
top: "0%",
|
||||||
|
|||||||
+3
-3
@@ -520,9 +520,9 @@ export default {
|
|||||||
halfSample: false
|
halfSample: false
|
||||||
}
|
}
|
||||||
}, config);
|
}, config);
|
||||||
this.init(config, function() {
|
this.init(config, () => {
|
||||||
Events.once("processed", function(result) {
|
Events.once("processed", (result) => {
|
||||||
_stopped = true;
|
this.stop();
|
||||||
resultCallback.call(null, result);
|
resultCallback.call(null, result);
|
||||||
}, true);
|
}, true);
|
||||||
start();
|
start();
|
||||||
|
|||||||
Reference in New Issue
Block a user