I would start with this one to understand the workflow:
http://jevois.org/tutorials/ProgrammerInvHello.html
then check out the other python tutorials that use the inventor:
http://jevois.org/tutorials/ProgrammerTutorials.html
then start messing with this module:
http://jevois.org/moddoc/PyDetectionDNN/modinfo.html
it is written in python and can run YOLO. You select YOLO in the param.cfg file (under the Config tab of the inventor). Then edit the code under the Code tab.
in the drawPred() function all the info you need has been parsed: left, top, right, bottom of the box, and label contains the class name and confidence score
so somewhere in there you would add code to write that to microSD using standard python file access
you would typically open the file in the module's constructor (__init__()) so that you only open it once, not on every frame. Then on every frame you write more entries to your file. Usually we recommend writing data to /jevois/data/ which you then find on your microsd card as JEVOIS:/data
maybe something like this
https://www.pythonforbeginners.com/files/reading-and-writing-files-in-python
just remember to open only once and store the file object as a member of your class, something like, in __init__():
self.myfile = open('/jevois/data/yolo.log', 'w')
then in process():
self.myfile.write(...........)