Skip to content

Commit

Permalink
played around with tracking parameters, see #14
Browse files Browse the repository at this point in the history
  • Loading branch information
aryarm committed Nov 9, 2018
1 parent c471896 commit ac53309
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ant_tracking.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
function ants = ant_tracking(vidOut, blobSize, videoName, outputVidDir)
% vidOut - boolean, whether we should export the result video
% blobSize - int, minimum blob area in pixels
maxBlobSize = 75
% videoName - string, absolute path to cropped vid
% outputVidDir - string, path to the directory in which to store result videos
% ants - array, the output of the function
Expand Down Expand Up @@ -77,7 +78,7 @@

obj.blobAnalyser = vision.BlobAnalysis('BoundingBoxOutputPort', true, ...
'AreaOutputPort', true, 'CentroidOutputPort', true, ...
'MinimumBlobArea', blobSize); %make a parameter
'MinimumBlobArea', blobSize, 'MaximumBlobArea', maxBlobSize); %make a parameter
end


Expand Down Expand Up @@ -145,7 +146,7 @@ function predictNewLocationsOfTracks()
end

% Solve the assignment problem.
costOfNonAssignment = 20;
costOfNonAssignment = 30;
[assignments, unassignedTracks, unassignedDetections] = ...
assignDetectionsToTracks(cost, costOfNonAssignment);
end
Expand Down Expand Up @@ -192,8 +193,8 @@ function deleteLostTracks()
return;
end

invisibleForTooLong = 20;
ageThreshold = 8;
invisibleForTooLong = 50;
ageThreshold = 50;

% Compute the fraction of the track's age for which it was visible.
ages = [tracks(:).age];
Expand Down

0 comments on commit ac53309

Please sign in to comment.