# \#nodejs

**URL:** https://forum.opencv.org/tag/nodejs/340.md

[Latest](https://forum.opencv.org/latest.md) · [Categories](https://forum.opencv.org/categories.md) · [Tags](https://forum.opencv.org/tags.md)

---

## [OpenCV NodeJS API needed](https://forum.opencv.org/t/opencv-nodejs-api-needed/19024)

<div class="topic-metadata">

**Author:** [@Kevin\_Sun](https://forum.opencv.org/u/Kevin_Sun)\
**Replies:** 2\
**Last updated:** [October 20, 2024, 9:16am UTC](https://forum.opencv.org/t/opencv-nodejs-api-needed/19024 "2024-10-20T09:16:27Z")

</div>

OpenCV should definitely provide NodeJS APIs, since a lot popular webapp and desktop app frameworks relies on NodeJS.

---

## [Global persistence.cpp:505 open Can't open file in read mode](https://forum.opencv.org/t/global-persistence-cpp-505-open-cant-open-file-in-read-mode/12581)

<div class="topic-metadata">

**Author:** [@Mihail](https://forum.opencv.org/u/Mihail)\
**Replies:** 20\
**Last updated:** [March 21, 2024, 2:13pm UTC](https://forum.opencv.org/t/global-persistence-cpp-505-open-cant-open-file-in-read-mode/12581 "2024-03-21T14:13:10Z")

</div>

\[ERROR:0@3.179\] global persistence.cpp:505 open Can’t open file: ‘haarcascade\_frontalface\_default.xml’ in read mode put\_char @ opencv.js:30 opencv.js:30 \[ERROR:0@3.184\] global persistence.cpp:505 open Can’t open file:…

---

## [How to load onnx model in nodejs](https://forum.opencv.org/t/how-to-load-onnx-model-in-nodejs/14545)

<div class="topic-metadata">

**Author:** [@HappyEnding](https://forum.opencv.org/u/HappyEnding)\
**Replies:** 2\
**Last updated:** [September 14, 2023, 9:25am UTC](https://forum.opencv.org/t/how-to-load-onnx-model-in-nodejs/14545 "2023-09-14T09:25:22Z")

</div>

hello everyone: I trained an onnx model and now I want to load it into OpenCV. I use the method of loading the. T7 model in the opencvjs tutorial to generate an error. How can I modify the code.

---

## [Npm package for opencv is old](https://forum.opencv.org/t/npm-package-for-opencv-is-old/14541)

<div class="topic-metadata">

**Author:** [@smithbk](https://forum.opencv.org/u/smithbk)\
**Replies:** 1\
**Last updated:** [September 14, 2023, 6:03am UTC](https://forum.opencv.org/t/npm-package-for-opencv-is-old/14541 "2023-09-14T06:03:41Z")

</div>

Hello, I noticed that the opencv github repo at GitHub - opencv/opencv: Open Source Computer Vision Library appears to still be moderately active; however, the latest npm package at opencv - npm is 4 years old. Are thes…

---

## [Issue occurred when trying to build opencv node binding prebuilt using github windows 2019 runner](https://forum.opencv.org/t/issue-occurred-when-trying-to-build-opencv-node-binding-prebuilt-using-github-windows-2019-runner/13021)

<div class="topic-metadata">

**Author:** [@lw007](https://forum.opencv.org/u/lw007)\
**Replies:** 3\
**Last updated:** [May 2, 2023, 4:44pm UTC](https://forum.opencv.org/t/issue-occurred-when-trying-to-build-opencv-node-binding-prebuilt-using-github-windows-2019-runner/13021 "2023-05-02T16:44:23Z")

</div>

Hi all. I am facing an issue trying to build a prebuilt of opencv node binding using github windows 2019 Runner. Here is the error. I have no clue to figure out the error 'a' is not recognized as an internal or extern…

---

## [Export my own function in opencv.js](https://forum.opencv.org/t/export-my-own-function-in-opencv-js/11067)

<div class="topic-metadata">

**Author:** [@RikaShiro](https://forum.opencv.org/u/RikaShiro)\
**Replies:** 1\
**Last updated:** [November 22, 2022, 11:20am UTC](https://forum.opencv.org/t/export-my-own-function-in-opencv-js/11067 "2022-11-22T11:20:13Z")

</div>

I tried to use template matching in opencv.js (node.js environment) test.js const { matchTemplate } = require('./matchTemplate.js') matchTemplate() matchTemplate() matchTemplate() matchTemplate() matchTemplate() match…

---

## [cv::FileStorage.open() has an error with “Segmentation fault (core dumped)” for Node.js add-on](https://forum.opencv.org/t/cv-filestorage-open-has-an-error-with-segmentation-fault-core-dumped-for-node-js-add-on/8953)

<div class="topic-metadata">

**Author:** [@Bonsuke](https://forum.opencv.org/u/Bonsuke)\
**Replies:** 5\
**Last updated:** [June 27, 2022, 12:13pm UTC](https://forum.opencv.org/t/cv-filestorage-open-has-an-error-with-segmentation-fault-core-dumped-for-node-js-add-on/8953 "2022-06-27T12:13:27Z")

</div>

I have programed the node.js plug-in(add-on) code, which called c++/OpenCV’s cv::FileStorage to open the XML file. And it is compiled successfully, but ran an error at cv::FileStorage.open(), prompting a message “Segmen…

---

## [FileStorage run error in node v14.19.0](https://forum.opencv.org/t/filestorage-run-error-in-node-v14-19-0/8792)

<div class="topic-metadata">

**Author:** [@gufaning](https://forum.opencv.org/u/gufaning)\
**Replies:** 2\
**Last updated:** [May 29, 2022, 8:16am UTC](https://forum.opencv.org/t/filestorage-run-error-in-node-v14-19-0/8792 "2022-05-29T08:16:31Z")

</div>

I wrote the node plug-in, called OPENCV’s FileStorage to open the file, compiled and running in node V12.18.2 is ok, but ran an error after compiling and run in V14.19.0, prompting a message “Segmentation fault (core d…
