Hi,
I'm facing the same issue. Do you remember what settings did you fix please?
Thanks,
Michaël

Le jeudi 16 avril 2015 10:03:04 UTC+2, Unai Elordi a écrit :
>
> Hi, Finally I solved the opencv and face detector issue setting up the 
> environmet on windows. 
>
> Besides, I think I solved face detector chrome compatibility on google 
> chrome. 
>
> There was a javascript error in this line: 
>
> resultImageData = new ImageData(temp1, width, height); //for chrome this 
> line is an illegal constructor. 
>
> resultImageData= ctx.createImageData(width, height);
>
> In the kaku_helper function I put this resultImageData.data.set(temp1); 
> before to   ctx.putImageData(resultImageData, 0, 0);
>
> The .data of ImageData instances invocated by new(), maintains the pointer 
> of temp1, that's why the canvas is rendering fine, but only in firefox. 
> Using ctx.createImageData, the contex has reserved other memory address, so 
> resultImageData.data.set(temp1) only copies the value of temp1. 
>
> Is a little bit unstable, sometimes is working at 25 fps, rarely works in 
> 3 fps, and in few cases doesn't open the camera. 
> About the performance, I know that this is not the best way to do it, but 
> I haven't found any better solution.
>
> Unai.
>
>
> 2015-04-09 9:10 GMT+02:00 <[email protected] <javascript:>>:
>
>> Sorry I forgot to put the environment. 
>>
>> Im working in *ubuntu 14.04 LTS, *
>> Linux kernel 3.13.0-46-generic
>>
>> emcc (Emscripten GCC-like replacement + linker emulating GNU ld )* 
>> 1.30.0*
>> clang version 3.5.0 
>> Target: x86_64-unknown-linux-gnu
>> Thread model: posix
>> Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
>> Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.2
>> Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
>> Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.1
>> Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
>> Candidate multilib: .;@m64
>> Selected multilib: .;@m64
>> INFO     root: (Emscripten: Running sanity checks)
>>
>>
>>
>>
>>
>>
>> El jueves, 9 de abril de 2015, 4:38:46 (UTC+2), Tzu-Hao Kuo (Kaku) 
>> escribió:
>>>
>>> Hi,
>>> May I know your environments? (Linux? Emscripten version?), I would like 
>>> to see if I can reproduce your situation.
>>>
>>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "emscripten-discuss" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/emscripten-discuss/uaRH2R62WOk/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to