Heatmap
Hardware
Taking photo
Upload data
Update: Alternatively you can try Edge Impulse’s new feature, AI labeling.After labeling, it’s recommended to split the data into training and testing sets, around an 80/20 ratio. If you haven’t done this yet, click on Train / Test Split and proceed.
Manual labeling
AI Labeling
Train Test Data Split
Learning blocks
Save parameters
Generate features
NN setting & result
Model Test
Classification Result
wget -q -O - https://cdn.edgeimpulse.com/firmware/linux/orin.sh | bash
You also need to install Linux Python SDK library (you need Python >=3.7 included in JetPack), and it is possible you need to install Cython for building the numpy
package: pip3 install Cython
Then install Linux Python SDK: sudo apt-get install libatlas-base-dev libportaudio2 libportaudiocpp0 portaudio19-dev python3-pip
, then: pip3 install pyaudio edge_impulse_linux
then clone the examples: git clone https://github.com/edgeimpulse/linux-sdk-python
Next, download the model. Open terminal on the Orin Nano or ssh from your PC/laptop and simply type edge-impulse-linux-runner
(add --clean
to allow you to select your project if needed). Log in to your account then choose your project. This process will download the model.eim
which is specifically built with the TensorRT library targeting the Orin Nano GPU and run EI runner with a camera setup on Orin Nano. You can see a live stream via your browser at http://your-orin-ip-address:4912.
During the process, the console will display the path where the model.eim
has been downloaded. For example, in the image below, it shows the file located at /home/orin/.ei-linux-runner/models/240606/v17
.
For convenience, you can copy this file to the same directory as the Python program you’ll be creating in the next steps. For instance, you can use the following command to copy it to the home directory: cp -v model.eim /home/orin
EI runner terminal screenshot
Live inferencing
python3 heatmap.py <path to modelfile>/model.eim <path to videofile>/video.mp4
Note: For video/camera capture display, you cannot use the headless method from a PC/laptop. Instead, connect a display/monitor directly to the Jetson Orin Nano to view the heatmap visualization.
Our code Screenshot