Skip to content

Instantly share code, notes, and snippets.

@przemos
Last active June 22, 2017 14:58
Show Gist options
  • Save przemos/4c9c1ac250b1b315f6e80da570bc5148 to your computer and use it in GitHub Desktop.
Save przemos/4c9c1ac250b1b315f6e80da570bc5148 to your computer and use it in GitHub Desktop.
<< body of BRFv4_JS_trial.js>>
var brfv4 = null;
var brfManager = null;
function waitForSDK() {
if (brfv4 === null) {
brfv4 = {
locateFile: function () {
return "BRFv4_JS_trial.js.mem";
}
};
initializeBRF(brfv4);
}
if (brfv4.sdkReady) {
initSDK();
} else {
setTimeout(waitForSDK, 100);
}
}
function initSDK() {
var resolution = new brfv4.Rectangle(0, 0, 320, 220);
brfManager = new brfv4.BRFManager();
brfManager.init(resolution, resolution, "com.tastenkunst.brfv4.js.examples.minimal.webcam");
}
waitForSDK();
@MarcelKlammer
Copy link

Can you point me to some explanation on how to setup a worker?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment