Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Inserting multiple variables in the video, using Computer Vision Toolbox
Replies: 1   Last Post: May 2, 2013 5:32 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Alan

Posts: 2
Registered: 5/2/13
Inserting multiple variables in the video, using Computer Vision Toolbox
Posted: May 2, 2013 4:25 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello, I seek help from more experienced users.

I try to insert multiple variables in video -- I got a simulink model, in which there are few objects that I track using computer vision toolbox. I also compute their speeds. So my goal is to display the speed value near corresponding object. I tried to do this with insert text block, but it seems, that it's unable to match the individual variable near corresponding coordinate, only text with use of '%s'. So i wrote a M-function block, using the following code:
textInserter = vision.TextInserter('%.2f','LocationSource','Input port','Color', [255, 255, 255],'FontSize', 12);
J = step(textInserter, image_in, objspeed_in,int32(coordinates_in));

It works well, but it is EXTREMELY slow. So I want to ask, if there is some way, to make "Insert Text" block work the way I want it, or some faster executing variant of the insert text code.

Thanks!



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.