Hi Kuo, How did you compile OpenCV for JS? I'm trying to use Emscripten. Could you please share your process?
Thanks On Tuesday, December 30, 2014 at 10:51:22 PM UTC-8, Tzu-Hao Kuo (Kaku) wrote: > > HI, > > I recently evaluate the performance of OpenCV with asm.js. > Thanks to the OpenCV team, there are already lots of performance tests in > each OpenCV module. > What I have done is that compile OpenCV library and its performance tests > both in native and with asm.js. > Run the native performance test and the javascript performance test (with the > Firefox javascript engine). > And the statistics data could be found in the following Google Sheet > link:https://docs.google.com/spreadsheets/d/1w8gr1_q_dQclTaGyiMtAhlwj_5_HPVKbHWfwUszPU40/edit?usp=sharing > > In summary, there are about 20% tests are faster or equal to the native > performance and about 60% tests are faster than 3x native performance. > > Some patterns are observed. > First, tests with operations which convert floating point values into integer > values are much slower. > Second, in native environment, single operation is much faster when it is > dealing with integer type data comparing to dealing with floating point > values; > however, in javascript environment, the same operation performs equally in > each data type, which leads to relatively larger performance drop in > non-floating point data type. > > > By traversing old posts, I found several people have tried to use OpenCV > in their own projects, however, there is few performance information. > I post this message here is intending to open a discussion forum which > could collect information about OpenCV with asm.js and especially the > performance. > This message is also posted as a discussion bug in Mozilla Bugzilla, the > link is, https://bugzilla.mozilla.org/show_bug.cgi?id=1116674. > > Tzuhao > -- 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 emscripten-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.