Measure Increasing Diameter in Video File - Simulink

3 views (last 30 days)
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
Sean de Wolski on 28 Oct 2014
Something along these lines?
The interpreted ML function would check if the diameter is big enough and ping the tcpip commands
  9 Comments
james
james on 29 Oct 2014
as you can see from the model diagram, the blob analysis is being run on the edge detection video. that is the middle picture of the image above. the scope is then reading the blob analysis of that. i am trying to figure out some way to visualize which blobs are which. it is apparent that the blue line represents the growing major axis measurement. and it is fairly accurate. although it is off by 95 pixels. i'm guessing that's because it's starting offset by 95 pixels due to the yellow line? regardless the final blue line measurement is pretty good considering the video this is analyzing is only 320p.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!