This demo demonstrates how to use the OpenVINO toolkit in NodeJS to blur the background of video.
There are 2 possible ways to run the demo - using executable or source code in NodeJS.
Download installers of the compiled app. They are available for Windows and Linux.
OS | Installer |
---|---|
Linux | DEB RPM |
Windows | EXE |
Double-click the installer and follow the instructions. Then run the app from the Start menu.
sudo dpkg -i hide-your-mess-behind_1.1.0_amd64.deb
hide-your-mess-behind
Ensure that you have Node.js (with npm) installed on your system. The app was developed and tested using node v20.15.0 and npm 10.8.2.
Before running the app you have to initialize the electron project and install the required packages. Do it by running the following commands in the app folder:
npm init -y
npm install
Once you've completed the initial setup, you can start the app anytime by running the following command in the app folder:
npm start
When you open the app, the following view will appear:
Select the chosen video source from the control panel. Then click Start button to start the streaming.
Later you can turn off streaming by clicking Stop button.
To turn on blurring you have to turn on inference using the Inference switch. Below it, you can notice a panel, where you can choose the inference device (e.g. AUTO, GPU, CPU, NPU).
You can change the inference device or video source, and turn on and off inference, and streaming anytime.