OpenVINO™ JavaScript Bindings
./docs
- documentation
./node
- openvino-node npm package
openvino-node Package Developer Documentation
include - header files for current API.
lib - TypeScript sources for current API.
src - C++ sources for current API.
tests - tests directory for current API.
Make sure that all submodules are updated:
git submodule update --init --recursive
Create the build directory:
Configure building of the binaries:
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_FASTER_BUILD=ON \
-DCPACK_GENERATOR=NPM \
-DENABLE_SYSTEM_TBB=OFF -UTBB* \
-DENABLE_TESTS=OFF \
-DENABLE_SAMPLES=OFF \
-DENABLE_WHEEL=OFF \
-DENABLE_PYTHON=OFF \
-DENABLE_INTEL_GPU=OFF \
-DCMAKE_INSTALL_PREFIX=../src/bindings/js/node/bin \
..
Build the bindings:
cmake --build . --config Release --verbose -j4
Install binaries for the openvino-node package:
Navigate to the npm package folder:
cd ../src/bindings/js/node
Now, you can install dependencies packages and transpile ts to js code:
Run tests to make sure that openvino-node has been built successfully:
Add the openvino-node package to your project by specifying it in package.json :
"openvino-node" : " file:*path-to-current-directory*"
Make sure to require it:
const { addon : ov } = require ( 'openvino-node' ) ;
OpenVINO™ Node.js Bindings Examples of Usage