wget -q -O - https://cdn.edgeimpulse.com/firmware/linux/jetson.sh | bash
For more in-depth details about the Jetson setup, you can check this link, although the above command is enough for going to the next step.
edge-impulse-linux -disable-microphone
If you have previously used your device in the past for other edge impulse projects, run the following command to reassign the device to a new project:
edge-impulse-linux -disable-microphone -clean
If you have only one active project, the device will be automatically assigned to it. If you have multiple Edge Impulse projects, select in the terminal the one you wish to attach your device to.
Give a recognizable name to your board and press enter.
Your board is now connected to the Edge Impulse project and you can see it in the connected devices panel.
sudo apt install guvcview
And afterward run guvcview to launch the application and start gathering photos.
Once we have plenty of photos (we have collected around 115 pictures for our use case), it’s time to upload them to Edge Impulse and label them. Click on the upload button, select choose files, select all your photos and then begin uploading.
After that, you will see them in the Data acquisition panel.
edge-impulse-linux-runner --clean
Once the model downloads, access the URL provided in your serial monitor to watch the live video feed and see the model in action in a browser:
edge-impulse-linux-runner --download modelfile.eim
Replace modelfile.eim with the name of your project, in our case, the command would look like this:
edge-impulse-linux-runner --download WORKPLACEORGANIZER.eim
python3 classify-image.py path-to-modelfile.eim
In our case, the command looks like this:
python3 classify.py WORKPLACEORGANIZER.eim
sudo
and place it at the respective locations so it can be used as a systemd service).
Run this command to create the service file:
sudo nano /etc/systemd/system/classify.service
And here is the content:
sudo nano /etc/systemd/system/classify_countdown.timer
And here is content:
sudo systemctl status classify.service
and sudo systemctl status classify_countdown.timer