项目作者: artyomtugaryov

项目描述 :
NodeJS API for OpenVINO Inference Engine
高级语言: C++
项目地址: git://github.com/artyomtugaryov/inference_engine_js.git
创建时间: 2019-10-31T14:22:02Z
项目社区:https://github.com/artyomtugaryov/inference_engine_js

开源协议:

下载


OpenVINO Inference Engine Node API addon (InferenceEngineJS)

WARNING: There is the main repository in an Intel organization. All development moved to the main repository. This repo was archived as duplicate.

Prerequisites

  1. Installed OpenVINO package
  2. Node v12

Build

Install dependencies:

  1. npm install

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

  1. 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
    1. npm run build

    To build the addon with cmake you should:

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