Deployment on Raspberry Pi4

Hi ,
I wanted to ask that whether I will be able to run my model on Rpi4 after deployment without any internet connection ??

Yes, see https://docs.edgeimpulse.com/docs/edge-impulse-for-linux - this runs w/o internet connection once you’ve downloaded the model.

I tried deploying the model on Rpi4, I followed all the steps as stated in the documentations of edge impulse for deployment on Rpi. But I am getting error whenever I try to run edge-impulse-linux. The error : bash: edge-impulse-linux: command not found

I don’t know what else to do to solve it, Kindly help me out.

Regards

What’s the output of running https://docs.edgeimpulse.com/docs/raspberry-pi-4#2-installing-dependencies on the Rpi?

Following is the error I got after installing the dependencies, Now when I open the terminal this is shown automatically.
nvm is not compatible with the npm config “prefix” option: currently set to “/home/pi/.npm-global”
Run npm config delete prefix or nvm use --delete-prefix v16.4.2 --silent to unset it.

After using:
sudo npm uninstall edge-impulse-linux -g
sudo npm install edge-impulse-linux -g --unsafe-perm
I got:
**npm WARN deprecated request-promise@4.2.4: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
/opt/nodejs/bin/edge-impulse-linux -> /opt/nodejs/lib/node_modules/edge-impulse-linux/build/cli/linux/linux.js
/opt/nodejs/bin/edge-impulse-linux-runner -> /opt/nodejs/lib/node_modules/edge-impulse-linux/build/cli/linux/runner.js
/opt/nodejs/bin/edge-impulse-camera-debug -> /opt/nodejs/lib/node_modules/edge-impulse-linux/build/cli/linux/camera-debug.js

> sharp@0.29.1 install /opt/nodejs/lib/node_modules/edge-impulse-linux/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)

sharp: Using cached /root/.npm/_libvips/libvips-8.11.3-linux-armv6.tar.br
prebuild-install WARN install No prebuilt binaries found (target=5 runtime=napi arch=arm libc= platform=linux)
make: Entering directory '/opt/nodejs/lib/node_modules/edge-impulse-linux/node_modules/sharp/build’
** CC(target) Release/obj.target/nothing/…/node-addon-api/nothing.o**
** AR(target) Release/obj.target/…/node-addon-api/nothing.a**
** COPY Release/nothing.a**
** TOUCH Release/obj.target/libvips-cpp.stamp**
** CXX(target) Release/obj.target/sharp-linux-armv6/src/common.o**
** CXX(target) Release/obj.target/sharp-linux-armv6/src/metadata.o**
** CXX(target) Release/obj.target/sharp-linux-armv6/src/stats.o**
** CXX(target) Release/obj.target/sharp-linux-armv6/src/operations.o**
** CXX(target) Release/obj.target/sharp-linux-armv6/src/pipeline.o**
** CXX(target) Release/obj.target/sharp-linux-armv6/src/utilities.o**
** CXX(target) Release/obj.target/sharp-linux-armv6/src/sharp.o**
** SOLINK_MODULE(target) Release/obj.target/sharp-linux-armv6.node**
** COPY Release/sharp-linux-armv6.node**
make: Leaving directory '/opt/nodejs/lib/node_modules/edge-impulse-linux/node_modules/sharp/build’
npm WARN tsargs@1.4.1 requires a peer of typescript@^3.1.6 but none is installed. You must install peer dependencies yourself.

+ edge-impulse-linux@1.3.0
added 347 packages from 415 contributors in 112.523s**

and now using : edge-impulse-linux
again I am getting :bash: edge-impulse-linux: command not found.
:confused:

Hi @rahmad, it seems to have installed in

/opt/nodejs/bin/edge-impulse-linux-runner

But /opt/nodejs/bin is not in your PATH. Either add it in your PATH or run:

sudo ln -s /opt/nodejs/bin/edge-impulse-linux -> /usr/local/bin/edge-impulse-linux ->
sudo ln -s /opt/nodejs/bin/edge-impulse-linux-runner /usr/local/bin/edge-impulse-linux-runner
sudo ln -s /opt/nodejs/bin/edge-impulse-camera-debug /usr/local/bin/edge-impulse-camera-debug

To symlink them to /usr/local/bin which probably is in your path already…