Tastenkunst / brfv4_javascript_examples

BRFv4 - HTML5/Javascript - examples project. Reference implementation for all other platform example packages.
463 stars 148 forks source link

BRFv4_JS_trial.js in Web Worker mode #1

Closed przemos closed 6 years ago

przemos commented 7 years ago

Hi, we would like to use this fantastic lib in a web worker configuration due to cpu overhead caused by face detection. Unfortunately, even if ENVIRONMENT = 'WORKER' config is set to true, we are getting require function not found error. It seems that the lib tries to use require() to fetch something but it is not available inside web worker...

MarcelKlammer commented 7 years ago

If you could send me a link to a minimal setup like that, I could debug and see how to get that working.

przemos commented 7 years ago

https://gist.github.com/przemos/4c9c1ac250b1b315f6e80da570bc5148

It is failing on init.

MarcelKlammer commented 7 years ago

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

przemos commented 7 years ago
MarcelKlammer commented 7 years ago

Found the issue and will look into it next week, since I'm out of office for three days.

przemos commented 7 years ago

thank you

brandon-vb commented 6 years ago

Was there ever a resolution to this issue?

ramkumardnagarajan commented 6 years ago

@MarcelKlammer I'm facing same issue. are you fixed this issue.

MarcelKlammer commented 6 years ago

Nope. No web worker support for the foreseeable future, since the change in the structure is not trivial.