Ask Your Question

Is there any autogenerate code for emscripten binding?

asked 2018-03-06 01:11:06 -0500

cibin gravatar image


I have builded the opencv.js using the given Instruction.But I need to know whether the "core_binding.cpp" is autogenerated .

If I need to add a function which pass "Mat" whether I need to write the emscripten binding in the core_binding.cpp

How to do it?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-09-11 17:35:04 -0500

cancerberosgx gravatar image

I think everything in modules/js/src is not autogenerated. What it is autogenerated from those is build/modules/js/bindings.cpp I think that one is generated using the template and embindgen from modules/js/src and also which parts of the library goes there is defined in platforms/js/

I wonder exactly what's what you are trying to archive ? passing a Mat from JS to native function ? Did you consider wrapping existing cv.x javascript method with a custom js function that implement your magic ?

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-03-06 01:11:06 -0500

Seen: 94 times

Last updated: Sep 11 '19