Slow during object tracking in video
古いコメントを表示
Hi, I'm using an arduino and matlab in my project to detect and track object. Where I'm using servo motor for pan and tilt using arduino and web cam for image acquisition to process image in matlab. The program works, but the problem is that during the tracking the video did not run smoothly. I want the system to run smoothly during the tracking without any lagging. Does anyone knows how to solve this problem?
回答 (2 件)
Dima Lisin
2015 年 5 月 4 日
0 投票
If you post your tracking code, that would be helpful.
There are any number of things that can be contributing to the bad performance. How are you detecting the object? How are you doing the tracking?
Generally, make sure you acquire the video as uint8. Acquiring grayscale frames rather than RGB, and reducing the resolution as much as you can will help. Other than this, there is not much I can say without knowing more details about what you are doing.
2 件のコメント
MOHAMAD AFIF
2015 年 5 月 5 日
duchieu phanduchieu
2015 年 12 月 28 日
Arduino program code is written so that you do not connect with Arduino
Dima Lisin
2015 年 5 月 10 日
0 投票
Hi Mohammad,
Try setting the. ReturnedDataType property of the video device object to 'uint8'. It would also help to set the ReturnedColorSpace property to 'grayscale'. Also, see if you can limit the MaxSize of the people detector.
カテゴリ
ヘルプ センター および 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!