Data from OpenMV cam7 to MATLAB

General discussion about topics related to OpenMV.
laufil
Posts: 4
Joined: Thu Nov 02, 2017 9:55 am

Data from OpenMV cam7 to MATLAB

Postby laufil » Wed Nov 08, 2017 6:40 am

Hello Everyone,
I would like to ask if it's possible to precess images data from OpenMV cam7 in real time in MATLAB. Please answer me!! :cry:
Thank for your support
User avatar
kwagyeman
Posts: 1248
Joined: Sun May 24, 2015 2:10 pm

Re: Data from OpenMV cam7 to MATLAB

Postby kwagyeman » Wed Nov 08, 2017 11:01 am

What's the point of this? And, yes, you can transmit images over the USB serial port in real time at the same speed OpenMV IDE receives images normally. That said, you have to write your own code to receive the image.
Nyamekye,
marcus007
Posts: 29
Joined: Wed Sep 13, 2017 3:16 am

Re: Data from OpenMV cam7 to MATLAB

Postby marcus007 » Thu Nov 16, 2017 11:17 am

So what we need to do in Openmv side so that it can be transferred to matlab
User avatar
kwagyeman
Posts: 1248
Joined: Sun May 24, 2015 2:10 pm

Re: Data from OpenMV cam7 to MATLAB

Postby kwagyeman » Thu Nov 16, 2017 12:00 pm

Hi, I'm going to work on some software to help you on this. You really need to be more verbose about what you mean by transfer data into Matlab though. That literally means anything.
Nyamekye,
laufil
Posts: 4
Joined: Thu Nov 02, 2017 9:55 am

Re: Data from OpenMV cam7 to MATLAB

Postby laufil » Thu Nov 30, 2017 9:33 am

Hello everyone, thanks for your answer.
I try to be more clear:
My teacher told me to open a serial communication between openMV and MATLAB. I have no idea how this can be done! Do I need to use a specific command like USB-VCP? I have tried MATLAB to read the data of the port in which the cam is connected but I can not get good results.
User avatar
kwagyeman
Posts: 1248
Joined: Sun May 24, 2015 2:10 pm

Re: Data from OpenMV cam7 to MATLAB

Postby kwagyeman » Thu Nov 30, 2017 11:48 am

Yes, you can use the USB VCP class to talk to Matlab. But, using that disables your ability to talk to the camera for debugging.

Is there a goal your are trying to do in Matlab?
Nyamekye,
laufil
Posts: 4
Joined: Thu Nov 02, 2017 9:55 am

Re: Data from OpenMV cam7 to MATLAB

Postby laufil » Thu Nov 30, 2017 1:19 pm

I don't know jet. Probably I will be able to follow a line and make considerations about the lengths of the lines (for example: measurements of lines in centimeters, directions right or left, line drawing in the picture....). I don't know how to start writing the code to try to do this. Do you have any advice?
User avatar
kwagyeman
Posts: 1248
Joined: Sun May 24, 2015 2:10 pm

Re: Data from OpenMV cam7 to MATLAB

Postby kwagyeman » Thu Nov 30, 2017 2:02 pm

So, the camera does all this onboard.

I don't know what MATLAB is for. The whole point of the OpenMV Cam is so you don't need Matlab.
Nyamekye,

Return to “General Topics”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest