Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

When binding APIs in opencv.js, corresponding structs/enums should be bound #25239

Closed
Assignees
vrabaud
Milestone
@vrabaud

Description

@vrabaud

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 structUsacParams is not bound in .js but used infinHomography which is bound (cf)
  • cv::AKAZE:DescriptorType that is used incv::AKAZE::create()
    '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.cpp
  • DrawMatchesFlags also 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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp