Slow during object tracking in video

6 vues (au cours des 30 derniers jours)
MOHAMAD AFIF
MOHAMAD AFIF le 2 Mai 2015
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?

Réponses (2)

Dima Lisin
Dima Lisin le 4 Mai 2015
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 commentaires
MOHAMAD AFIF
MOHAMAD AFIF le 5 Mai 2015
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 le 28 Déc 2015
Arduino program code is written so that you do not connect with Arduino

Connectez-vous pour commenter.


Dima Lisin
Dima Lisin le 10 Mai 2015
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 commentaires
MOHAMAD AFIF
MOHAMAD AFIF le 11 Mai 2015
Hi Dima,
Thank you for the reply, how do I set the ReturnedDataType property to 'uint8'?
Dima Lisin
Dima Lisin le 11 Mai 2015
vid.ReturnedDataType = 'uint8';

Connectez-vous pour commenter.

Catégories

En savoir plus sur Image Processing and Computer Vision dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by