Is opencvjs contains all opencv code?

Hi,

I am trying to understand the coverage of opencvjs. In official website, documentation says “OpenCV.js is a JavaScript binding for selected subset of OpenCV functions for the web platform”. From this words i guess it is not contains all the functionality of opencv. Is there any information about how much opencv js covers opencv code?

Thanks.

Is opencvjs contains all opencv code?

no, it’s just a subset. you can find out, what exactly is covered, in the whitelist here

2 Likes

Thank you for showing where to look! After looking to that file. In build_js.py there is an optional argument called “–config” and the explanation for that argument is “Specify configuration file with own list of exported into JS functions”. Is this means i can include any opencv functions to whitelist and it will build Web Assembly version with that functions?

Is this means i can include any opencv functions to whitelist

well ofc., you can try but maybe it will need further work. the current set there is the “safe and tried” path

it will build Web Assembly version

sorry, but i have no knowledge about that

1 Like

Thank you so much for the information!

The inclusion of WebRTC adapter.js is notable with video capture.