The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

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.


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.