Question/Issue:
- How do I run edge-impulse-run-impulse on-demand rather than in continuous mode?
- Is that even the right approach?
Project ID:
142807
Context/Use case:
Much appreciation for the previous help, my daughter and I have now collected and categorized our data and the results are better than we could have hoped when running the edge-impulse-run-impulse command, but we’d like to only run it when commanded to run.
A conveyor belt pulls a Lego block through a light tunnel until an IR sensor is tripped (a Python3 script running on a Pi4 handles that work). Once the IR is tripped, I want the Python script trigger edge-impulse-run-impulse (our Edge Impulse model is uploaded on the ESP-EYE) and report the results back to the Pi4. Timing is slow- this is perhaps one block per minute and a deliberate call to the edge-impulse-run-impulse seems more relatable (teaching opportunity vs a continuous run).
In other words, our ESP-EYE is powered via a USB cable plugged into the Pi and running edge-impuse-run-impulse from a command line on the Pi4 works as expected, just in continuous mode and not from a Python3 call in our script. How do we call the edge-impulse-run-impulse command, capture one result, and record the result to an array/variables in Python?