Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
live video tracking

Subject: live video tracking

From: Xanthy Kolovou

Date: 20 May, 2010 19:15:24

Message: 1 of 9

I am hoping to use Simulink / Matlab to do motion tracking of people from a live video source. I came across the "viptrackpeople" example using the simulink Video and Image Processing Blockset and it is almost exactly what I need.

When I substitute a "From video device" block, until for the "From multimedia file" block (the field Video Format: YUY2_160x120, the field ROI position [r, c, height, width]: [0 0 120 160] ) I receive a few errors such as:

i) block error insert text: s-function ''sviptextrender''... 9xN matrix.

ii) block error MatrixConcetenate, Error in port widths or dimensions output port is a [120x160x9].

I am sure I am missing something very basic, I am new to Matlab / Simulink so please forgive me. Why can I not just substitute one block for another, how do I remedy this?

Thank You.

Subject: live video tracking

From: Shankar

Date: 9 Jun, 2010 20:07:21

Message: 2 of 9

Hi Xanthy,

I am assuming your camera is giving RGB output. Please do the following.

1. Drop the From Video Device block in the viptrackpeople demo model and double click and open its properties.
2. Select the required camera.
2.a. Check the default ROI setting in the mask. Change that to [0 0 120 160]
2.b. Check if you have a "Ports Mode" property. If you do, set it to "One multidimensional signal"
3. Type viplib in MATLAB command line to bring up VIP library.
3. a. Double click on "Conversions".
3. b. Drop the "Color space conversion" block in to the model. Double click on the block and set it to convert from R'G'B' to Intensity. You must have one input port and one output port.
3. c. Connect the From Video Device block to Color space conversion block. Connect the output of Color Space conversion block to "Background Estimator" subsystem.

Now run the model and you should be all set.

Thanks
Shankar

"Xanthy Kolovou" <kkolovou@ucg.gr> wrote in message <ht41oc$t1m$1@fred.mathworks.com>...
> I am hoping to use Simulink / Matlab to do motion tracking of people from a live video source. I came across the "viptrackpeople" example using the simulink Video and Image Processing Blockset and it is almost exactly what I need.
>
> When I substitute a "From video device" block, until for the "From multimedia file" block (the field Video Format: YUY2_160x120, the field ROI position [r, c, height, width]: [0 0 120 160] ) I receive a few errors such as:
>
> i) block error insert text: s-function ''sviptextrender''... 9xN matrix.
>
> ii) block error MatrixConcetenate, Error in port widths or dimensions output port is a [120x160x9].
>
> I am sure I am missing something very basic, I am new to Matlab / Simulink so please forgive me. Why can I not just substitute one block for another, how do I remedy this?
>
> Thank You.

Subject: live video tracking

From: nethaji anandhavalli

Date: 3 Jul, 2010 19:04:04

Message: 3 of 9

hi shankar,
very happy to see ur post regarding live video tracking. pls shankar, could u send me the data (pdf file) regarding the live data regarding.pls send the information regarding live video tracking. pls help me. pls pls pls pls pls pls pls pls pls. pls pls pls. help me shankar. pls

Subject: live video tracking

From: nethaji anandhavalli

Date: 4 Jul, 2010 12:12:25

Message: 4 of 9

hello shankar,
could u tell me the information regarding live video tracking. pls help me out man. pls. my mail id is mydreamprojects@yahoo.com

Subject: live video tracking

From: Alpha Q

Date: 10 Dec, 2010 09:45:19

Message: 5 of 9

Hello sir;
          I am doing the same project.I have no idea how to do it .kindly help me in doing this project.If u dont mind would you please send pdf files and source codes for doing this project.

Subject: live video tracking

From: Xanthy Kolovou

Date: 14 Dec, 2010 18:33:20

Message: 6 of 9

"Alpha Q" <agcAGC123@aol.com> wrote in message <idssrf$obt$1@fred.mathworks.com>...
> Hello shankar
If u dont mind would you please send pdf files and source codes and to me.
The last eight months, I have tried to understant this and I have many problems. If you would to give me any help, I need it.
My e-mail kkolovou@ucg.gr
Thank you again

Subject: live video tracking

From: Alpha Q

Date: 4 Jan, 2011 08:51:04

Message: 7 of 9

connected the live camera to the viptrackpeople demo.But i am unable to generate the c code.error says that the from device block does not support rapid acceleration mode and does not support code generation....
Please help...........

Subject: live video tracking

From: Shankar

Date: 4 Jan, 2011 16:40:25

Message: 8 of 9

Hi,

Which version are you using? Starting R2010b, Image Acquisition Toolbox - From Video Device block supports Rapid Accelerator mode and code generation.

If you are using R2010b or later, can you print the entire error message that you are seeing.

Thanks
Shankar

"Alpha Q" wrote in message <ifun1o$3cf$1@fred.mathworks.com>...
> connected the live camera to the viptrackpeople demo.But i am unable to generate the c code.error says that the from device block does not support rapid acceleration mode and does not support code generation....
> Please help...........

Subject: live video tracking

From: nethaji anandhavalli

Date: 4 Jan, 2011 18:36:07

Message: 9 of 9

how to connect the live camera to viptrackpeople demo. pls help me

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us