Files
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
..
2023-12-20 00:19:34 +00:00
2023-12-20 00:19:34 +00:00
2023-12-20 00:19:34 +00:00
2023-12-20 00:19:34 +00:00
2023-12-20 00:19:34 +00:00
2023-12-20 00:19:34 +00:00
2023-12-20 00:19:34 +00:00

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