openvino/samples/js/node
Vishniakov Nikolai 8d704f6400
[JS OV] Node.js API (#19848)
Co-authored-by: almilosz <alicja.miloszewska@intel.com>
Co-authored-by: Andrei Kashchikhin <andrey.kashchikhin@intel.com>
Co-authored-by: yatarkan <yaroslav.tarkan@intel.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-12-20 00:19:34 +00:00
..
classification_sample_async [JS OV] Node.js API (#19848) 2023-12-20 00:19:34 +00:00
hello_classification [JS OV] Node.js API (#19848) 2023-12-20 00:19:34 +00:00
hello_reshape_ssd [JS OV] Node.js API (#19848) 2023-12-20 00:19:34 +00:00
notebooks [JS OV] Node.js API (#19848) 2023-12-20 00:19:34 +00:00
.eslintrc.js [JS OV] Node.js API (#19848) 2023-12-20 00:19:34 +00:00
.gitignore [JS OV] Node.js API (#19848) 2023-12-20 00:19:34 +00:00
README.md [JS OV] Node.js API (#19848) 2023-12-20 00:19:34 +00:00
helpers.js [JS OV] Node.js API (#19848) 2023-12-20 00:19:34 +00:00
package-lock.json [JS OV] Node.js API (#19848) 2023-12-20 00:19:34 +00:00
package.json [JS OV] Node.js API (#19848) 2023-12-20 00:19:34 +00:00

README.md

OpenVINO™ JavaScript API examples of usage

Installation of openvinojs-node package

From openvino/src/bindings/js/node run npm i to download OpenVINO™ runtime, install requirements, build bindings and compile TypeScript code to JavaScript

On the *.nix systems run source openvino/src/bindings/js/node/scripts/setupvars.sh to add path to OpenVINO™ runtime libraries in LD_LIBRARY_PATH variable

Note: Perform these steps also before running notebooks.

Samples

  • hello_classification
  • hello_reshape_ssd
  • classification_sample_async

Notebooks

Use Node.js Notebooks (REPL) VSCode extension to run these notebook samples

Make sure that LD_LIBRARY_PATH variable contains path to OpenVINO runtime folder

  • ./notebooks
    • 001-hello-world.nnb
    • 003-hello-segmentation.nnb
    • 004-hello-detection.nnb
    • 213-question-answering.nnb