OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
OpenVINO™ JavaScript Bindings
Folders
openvino-node Package Developer Documentation
Components
- include - header files for current API.
- lib - TypeScript sources for current API.
- src - C++ sources for current API.
- tests - tests directory for current API.
Build
- Make sure that all submodules are updated:
git submodule update --init --recursive - Create the build directory:
mkdir build && cd build - Configure building of the binaries:
cmake \ -DCMAKE_BUILD_TYPE=Release \ -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:
cmake --install . - Navigate to the npm package folder:
cd ../src/bindings/js/node - Now, you can install dependencies packages and transpile ts to js code:
npm install - Run tests to make sure that openvino-node has been built successfully:
npm run test
Usage
- 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');
Samples
OpenVINO™ Node.js Bindings Examples of Usage
Contributing
Your contributions are welcome! Make sure to read the Contribution Guide to learn how you can get involved.