realtime object tracking with webcam in Simulink
古いコメントを表示
hi everybody!
I´m working for a project and I have a problem. First of all, my project is about realtime object tracking with a webcam in Simulink to track for example a red point bondet on a movable object. With the x and y coordinates of the red Point i want to contolle the object.
Right now i have a .m file where i can track red points, and the x and y coordinates will be putted out in the command window in realtime. But my problem is, i need the coordinates in realtime in Simulink, is that possible?
At the end I want a Simulink file, where i can start the simulation, the webcam should be started, and in the webcam live video shold be tracked the red object and giving me out the coordinates. is that possible?
1 件のコメント
Walter Roberson
2011 年 11 月 13 日
Real Time in simulink requires the Simulink Code Generator (previously known as Real Time Workshop), and a dedicated PC or embedded device with a Real Time Operating System (RTOS). MS Windows is not a RTOS and cannot handle real-time tasks.
There may be ways to speed up your existing code so that Simulink is usually able to run it "fast enough, considering", but real-time is a much more difficult constraint.
採用された回答
その他の回答 (2 件)
Daniel
2011 年 11 月 14 日
0 投票
1 件のコメント
Kaustubha Govind
2011 年 11 月 15 日
Yes, I suppose you could do that. Although, it might be easier for you to write a C/C++ S-function block to call into your opencv application directly at each time-step, instead of inter-process communication.
juhaina alrajhi
2017 年 4 月 7 日
0 投票
I think we have the same problem .. so please did you find what you are looking for yet??
カテゴリ
ヘルプ センター および File Exchange で Image Processing and Computer Vision についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!