Code Monkey home page Code Monkey logo

inference_engine_js's Introduction

OpenVINO Inference Engine Node API addon (InferenceEngineJS)

Prerequisites

  1. Installed OpenVINO package
  2. Node v12

Build

Install dependencies:

npm install

Run the following command in a terminal to set environment for work with the Inference Engine

source ${INTEL_OPENVINO_DIR}/bin/setupvars.sh

Note: To work in IDE add to $LD_LIBRARY_PATH environment variables as in setupvars.sh

Build the addon.

You can build the addon with node-gyp or cmake.

To build the addon with node-gyp you should:

  1. Set ${INTEL_OPENVINO_DIR} environment variable with path to your OpenVINO package.
  2. Run the following command in the terminal
    npm run build

To build the addon with cmake you should:

  1. Set an environment variable NODE_PATH to path with NodeJS 12. Usually, this is ~/.nvm/versions/node/v12*
  2. Run a cmake command:
    mkdir cmake-build && cd cmake-build && cmake ../
  3. Build the addon:
    cmake --build . --target InferenceEngineAddon -- -j 6
  4. Now you are available to use JS wrapper. To run sample execute:
    npm run sample:hello-query-device

inference_engine_js's People

Contributors

artyomtugaryov avatar yatarkan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.