jsfeat
jsfeat copied to clipboard
video.videoWidth is still not available in FF when is used - 2 demos are broken
hi, in the two face detection demos (haar and bbf) the video.videoWidth and video.videoHeight are still 0 when demo_app() tries to use those values.
Working solution:
- remove the call of demo_app call from the setTimeout
- in the tick(), extend the main condition to this: if (video.readyState === video.HAVE_ENOUGH_DATA && video.videoWidth) and call the demo_app() once immediately after that condition
Your lib is awesome btw!
hmm thats strange since i tested it in FF on my OSX machine and it works fine for me.
I see, i use win7 pro. In chrome it's ok, but FF produces the issue.
yeah might be the issue. will add the initiation inside tick method then.
thanx for the head up