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
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
MOHAMAD AFIF 2015년 5월 5일
Hi Dima, thank you for your help. Here's the the code that I attach. For detecting the object, I used HOG.
duchieu phanduchieu
duchieu phanduchieu 2015년 12월 28일
Arduino program code is written so that you do not connect with Arduino

댓글을 달려면 로그인하십시오.

Dima Lisin
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.

댓글 수: 2

MOHAMAD AFIF
MOHAMAD AFIF 2015년 5월 11일
Hi Dima,
Thank you for the reply, how do I set the ReturnedDataType property to 'uint8'?
vid.ReturnedDataType = 'uint8';

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

질문:

2015년 5월 2일

댓글:

2015년 12월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by