spike
April 14, 2024, 12:56pm
#1
Question/Issue:
Project ID:
**Context/Use case:
How to receive recognition results through serial communication when running the edge-impulse-linux-runner command on Jetson Nano?
Is there any method, or program code, that can accomplish this? Thank you for your help.
Eoin
April 15, 2024, 10:31am
#2
Hi @spike
Are you trying to parse the output from the serial? That will be a bit messy you can just use our SDK:
See the relevant example:
#!/usr/bin/env python
import device_patches # Device specific patches for Jetson Nano (needs to be before importing cv2)
import cv2
import os
import sys, getopt
import numpy as np
from edge_impulse_linux.image import ImageImpulseRunner
runner = None
def help():
print('python classify-image.py <path_to_model.eim> <path_to_image.jpg>')
def main(argv):
try:
opts, args = getopt.getopt(argv, "h", ["--help"])
except getopt.GetoptError:
help()
This file has been truncated. show original
Best
Eoin
spike
April 16, 2024, 1:26pm
#3
thanks for help!
best wishes!