npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

inference-engine-node

v0.1.6

Published

Inference Engine Binding for Node.js*

Downloads

4

Readme

Inference Engine Binding for Node.js*

*Other names and brands may be claimed as the property of others.

Prerequisites

Instal Node.js.

Download OpenVINO and install it into the default path.

For Windows, install Visual Studio 2019.

For Linux, install build-essential package.

Verified configurations:

  • Node.js 12 LTS
  • OpenVINO 2021.1
  • Windows 10
  • Ubuntu Linux 16.04

Install

The Inference Engine Binding for Node.js supports installation for two operation systems: Windows 10 and Ubuntu 16.04 and two build systems: node-gyp and CMake-based and Node-GYP-based.

Install on Ubuntu 16.04

To install the Inference Engine Binding for Node.js on Ubuntu 16.04 use the following instruction:

  1. Open a terminal in the repository root folder
  2. Activate the OpenVINO environment:

If you installed the OpenVINO to the /opt/intel/openvino directory (as root) use the following command:

$ source /opt/intel/openvino/bin/setupvars.sh

If you installed the OpenVINO to the home directory ~/intel/openvino directory use the following command:

$ source ~/intel/openvino/bin/setupvars.sh

To install Inference Engine Binding for Node.js using node-gyp use the following command in the same terminal:

$ npm install

To install Inference Engine Binding for Node.js using cmake use following commands in the same terminal:

  1. Set an environment variable NODE_PATH to directory with installed NodeJS. For example:
$ export NODE_PATH=/home/user/.nvm/versions/node/v12.17.0/
  1. Create an empty directory to build and go to this directory:
$ mkdir "cmake-build" && cd "cmake-build"
  1. Run cmake to fetch project dependencies and create Unix makefiles, then run make to build the project:
$ cmake -DCMAKE_BUILD_TYPE=Release ../ && \
$ cmake --build . --target inference_engine_node -- -j $(nproc --all)

Install on Windows 10

To install the Inference Engine Binding for Node.js on Windows 10 use the following instruction:

  1. Open a terminal in the repository root folder
  2. Activate the OpenVINO environment:
> "C:\Program Files (x86)\IntelSWTools\openvino\bin\setupvars.bat"

To install Inference Engine Binding for Node.js using node-gyp use the following command in the same terminal:

> npm install

Note: For "Error: MSBuild is not set" on VS 2019, please set msbuild_path, e.g.

> npm config set msbuild_path "c:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe"

To install Inference Engine Binding for Node.js using cmake use following commands in the same terminal:

  1. Set an environment variable NODE_PATH to directory with installed node-gyp. For example:
> set NODE_PATH=C:\Users\user\AppData\Local\node-gyp\Cache\14.1.0\
  1. Create an empty directory to build and go to this directory:
> cmake ../ && \
    cmake --build . --target inference_engine_node --config Release

Build

$ npm run build

Note: For debug build on Windows, open the solution in Visual Studio, change library path to "C:\Program Files (x86)\IntelSWTools\openvino\inference_engine\lib\intel64\Debug" and library name to "inference_engined.lib".

Test

Setup the system environment variables for OpenVINO on Windows and Linux.

$ npm test

Example

Setup system environment variables of OpenVINO as test.

API

API Doc

Development

Coding Style