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: {
|
||||
width: 640,
|
||||
height: 480,
|
||||
minAspectRatio: 0,
|
||||
maxAspectRatio: 100,
|
||||
facing: "environment" // or user
|
||||
// aspectRatio: 640/480, // optional
|
||||
facingMode: "environment", // or user
|
||||
// deviceId: "38745983457387598375983759834"
|
||||
},
|
||||
area: {
|
||||
top: "0%",
|
||||
|
||||
+3
-3
@@ -520,9 +520,9 @@ export default {
|
||||
halfSample: false
|
||||
}
|
||||
}, config);
|
||||
this.init(config, function() {
|
||||
Events.once("processed", function(result) {
|
||||
_stopped = true;
|
||||
this.init(config, () => {
|
||||
Events.once("processed", (result) => {
|
||||
this.stop();
|
||||
resultCallback.call(null, result);
|
||||
}, true);
|
||||
start();
|
||||
|
||||
Reference in New Issue
Block a user