sending data to serial terminal of host PC

General discussion about topics related to OpenMV.
avanish
Posts: 6
Joined: Tue Jul 17, 2018 7:35 am

sending data to serial terminal of host PC

Postby avanish » Tue Aug 14, 2018 3:06 am

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?
User avatar
kwagyeman
Posts: 2286
Joined: Sun May 24, 2015 2:10 pm

Re: sending data to serial terminal of host PC

Postby kwagyeman » Tue Aug 14, 2018 11:22 am

Um, see the Tools -> Open Terminal feature. This provides the standard MicroPython Repl experience.
Nyamekye,
avanish
Posts: 6
Joined: Tue Jul 17, 2018 7:35 am

Re: sending data to serial terminal of host PC

Postby avanish » Wed Aug 15, 2018 11:57 pm

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.
User avatar
kwagyeman
Posts: 2286
Joined: Sun May 24, 2015 2:10 pm

Re: sending data to serial terminal of host PC

Postby kwagyeman » Thu Aug 16, 2018 3:07 am

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.
Nyamekye,

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 3 guests