Page 1 of 1

sending data to serial terminal of host PC

Posted: Tue Aug 14, 2018 3:06 am
by avanish
HI,
In OpenMV IDE there is a serial terminal for debugging the code of pyboard. Can the IDE settings be modified, such that this debug data is directly available at serial terminal of host PC?

Re: sending data to serial terminal of host PC

Posted: Tue Aug 14, 2018 11:22 am
by kwagyeman
Um, see the Tools -> Open Terminal feature. This provides the standard MicroPython Repl experience.

Re: sending data to serial terminal of host PC

Posted: Wed Aug 15, 2018 11:57 pm
by avanish
Hi,
I have seen the video on youtube describing the use of open terminal but I am not sure it will be useful for my project.
I am trying to do the following. I am acquiring an image with OpenMV cam. fining the blob and getting the centroid of that blob. Now I want to do curve fitting on the line profiles along the centroid. I am not sure how to add curve fitting functionality in OpenMV PYB. So I am thinking of trying to do any of the following methods, please suggest the best one.
1-Run a script in OpenMV that detects blob. After getting the cetroid of the bolb, send the pixel intensity to host Rpi using open terminal (or some other method). Read these values in Rpi and do curve fitting.
or
2- use https://github.com/openmv/openmv/blob/m ... yopenmv.py and execute a complete python script in host Rpi to detect blob and do curve fitting.

Re: sending data to serial terminal of host PC

Posted: Thu Aug 16, 2018 3:07 am
by kwagyeman
Um, when you say curve fitting is this a linear regression... the camera has this feature. Or multiple points? Anyway, you can just send the blob detects to the Pi using the script you linked to.