Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork56.4k
Description
System Information
Latest Debian, and OpenCV 4.x at HEAD
Detailed description
When building opencv.js followinghttps://docs.opencv.org/4.x/d4/da1/tutorial_js_setup.html everything is fine.
But my company uses a different linker than the emscripten one and it finds issues.
The official linker does not check errors at link time, errors are only found at runtime:https://emscripten.org/docs/compiling/Dynamic-Linking.html#dynamic-checks
E.g.
- the struct
UsacParamsis not bound in .js but used infinHomographywhich is bound (cf)opencv/platforms/js/opencv_js.config.py
Line 192 in3aefd48
'findHomography', cv::AKAZE:DescriptorTypethat is used incv::AKAZE::create()opencv/platforms/js/opencv_js.config.py
Line 164 in3aefd48
'AKAZE': ['create','setDescriptorType','getDescriptorType','setDescriptorSize','getDescriptorSize','setDescriptorChannels','getDescriptorChannels','setThreshold','getThreshold','setNOctaves','getNOctaves','setNOctaveLayers','getNOctaveLayers','setDiffusivity','getDiffusivity','getDefaultName'], register_vector<std::vector<char>>("CharVectorVector");also needs to be put in binding.cppDrawMatchesFlagsalso needs to be bound
There are probably more but being able to find and generate them would be more efficient.
BTW, the generated code also does not compile locally because of some minor C++ errors, e.g. some variables are set asconst const instead ofconst.
Steps to reproduce
I unfortunately do not know which tools we are using so I can only reproduce locally ...
Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- I updated to the latest OpenCV version and the issue is still there
- There is reproducer code and related data files (videos, images, onnx, etc)