I just want to keep track of the object I selected.

36 visualizaciones (últimos 30 días)
Hasan
Hasan el 2 de Dic. de 2024 a las 8:33
Respondida: Image Analyst el 3 de Dic. de 2024 a las 5:03
*I just want to keep track of the object I selected.
frame = readFrame(obj.reader);
imshow(frame);
title('Takip etmek istediğiniz nesneyi seçin ve Enter\a basın');
rect = getrect; % Kullanıcının seçtiği dikdörtgenin koordinatlarını alır.
close; % Seçimden sonra pencereyi kapatır.
% Seçilen nesnenin sınır kutusunu global değişken olarak kaydedin.
selectedBbox = rect;
*I used the following code for this, but I do not get correct results in object tracking. I used Kalman Filter for this.
  3 comentarios
Hasan
Hasan el 2 de Dic. de 2024 a las 10:47
I did what you said and I follow all the objects and I get partially correct tracking, but as I said, the purpose of my project is to follow only the object I choose. What more can I do for this? I tried many methods but could not achieve results. Thank you.
Walter Roberson
Walter Roberson el 2 de Dic. de 2024 a las 23:23
Once you have selected the initial object, then in subsequent frames, you can mask out the frame beyond a reasonable maximum movement velocity, before rescanning for objects. You can also deliberately discard the tracking information about objects that are more than maximum movement velocity away from the object of interest.

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 3 de Dic. de 2024 a las 5:03
The Computer Vision Toolbox has some tracking capabilities. Look them up.

Categorías

Más información sobre Matched Filter and Ambiguity Function en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by