Dnn_ Net_ A bug occurred when compiling getUnconnectedOutLayersNames into JavaScript#24458
Dnn_ Net_ A bug occurred when compiling getUnconnectedOutLayersNames into JavaScript#24458asmorkalov merged 6 commits intoopencv:4.xfrom
Conversation
|
|
|
@laolaolulu please revert formatting changes. Pure code re-formatting does not bring value, but makes review harder, merge conflicts in 4.x->5.x merges and other issues for maintainers. |
What formatting code plugin should I use for the vscode I am using? |
|
Wiki page on coding style and formatting: https://github.com/opencv/opencv/wiki/Coding_Style_Guide |
platforms/js/build_js.py
Outdated
| parser.add_argument("-DCMAKE_TOOLCHAIN_FILE", default="", help="DCMAKE_TOOLCHAIN_FILE") | ||
| parser.add_argument("-DCMAKE_CROSSCOMPILING_EMULATOR",default="",help="DCMAKE_CROSSCOMPILING_EMULATOR") | ||
|
|
There was a problem hiding this comment.
The new parameters are not used in the script.
asmorkalov
left a comment
There was a problem hiding this comment.
Changes in opencv_js.config.py are missing.
* Added JS binding for `getUnconnectedOutLayersNames` * Fix error: no member named ‘vectorstd’ in namespace ‘std’
* Added JS binding for `getUnconnectedOutLayersNames` * Fix error: no member named ‘vectorstd’ in namespace ‘std’
* Added JS binding for `getUnconnectedOutLayersNames` * Fix error: no member named ‘vectorstd’ in namespace ‘std’
ret_type = re.sub('(^|[^\w])' + key + '($|[^\w])', type_dict[key], ret_type)
When compiling JavaScript, this code converts vector<std:: string>to vector std:: string
Details: https://laolaolulu.github.io/posts/emscripten-opencv/#opencvjs%E7%BC%96%E8%AF%91getunconnectedoutlayersnames%E8%BF%87%E7%A8%8B%E4%B8%AD%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86