Measure Increasing Diameter in Video File - Simulink
Show older comments
I am trying to design a Simulink Model to take a 1080p video feed and detect the increasing edge of a winding coil of steel.
Essentially the coil starts with a radius of this size: o and as more steel is wound, it increases to this size: O. so.... o ----> O
I am designing a system that uses edge detection in video processing to observe this process. I want my model to make the diameter length measurement every frame. When the target diameter is reached, the model is to ping a TCP/IP address production control system with the "cut" command. Attached is a picture of current Simulink Model.
I am having trouble instituting the measurement system. Does anyone have any advice as to how I can edit my model to output the current diameter's value?
Answers (1)
Sean de Wolski
on 28 Oct 2014
0 votes
Something along these lines?
The interpreted ML function would check if the diameter is big enough and ping the tcpip commands

9 Comments
james
on 28 Oct 2014
Sean de Wolski
on 28 Oct 2014
Sure, split that signal and either send it to a scope so you can watch it while simulating or a To Workspace block so you can analyze it after. Or both!
These blocks are in the "Sinks" category under base Simulink.
Sean de Wolski
on 28 Oct 2014
Edited: Sean de Wolski
on 28 Oct 2014
That diameter is an equivalent diameter if the blob pixels were perfectly circular. To actually have it calculate a length through some combination of points, the axis lengths would be better.
You can also send your video signal to a video viewer so you can see it.
james
on 28 Oct 2014
Sean de Wolski
on 29 Oct 2014
I don't think the model got attached. Also, do you have a few still frames that you could show?
james
on 29 Oct 2014
james
on 29 Oct 2014
james
on 29 Oct 2014
james
on 29 Oct 2014
Categories
Find more on Computer Vision with Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

