I just want to keep track of the object I selected.
조회 수: 1 (최근 30일)
이전 댓글 표시
*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
Walter Roberson
2024년 12월 2일
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.
답변 (1개)
Image Analyst
2024년 12월 3일
The Computer Vision Toolbox has some tracking capabilities. Look them up.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!