I have a devboard (Google Coral). There are some scripts in there to perform image classification and object detection.
I want the results of those scripts (model, inference_time, score, image, etc) to be sent/indexed into Elasticsearch.
Also, there is a camera (came with the board) that I can use and take photos (there is a script for it too).
My approach so far has been:
I wrote a script using Paramiko to connect to the devboard. (It is in my PC)
Still, using Paramiko, I executed the scripts which are inside the devboard (turn on camera, wait until spacebar to take photo, make classification, send results to a server)
The results are indexed into Elasticsearch (it is installed in my PC).
I would like to know if there is a better way to do what I have done. What confuses me is that I have to connect to the board to execute a script (takes photo and performs classification). But I also have other script (in my PC) which connects to the devboard to give instructions, collect results and index them into Elasticsearch. Should I have put everything inside the devboard? Should I have used a serial communication? Should I have used subprocesses?
@JGK