Skip to content

Commit

Permalink
turns out that its important to have a MinimumBlobArea that is non-ze…
Browse files Browse the repository at this point in the history
…ro, otherwise you're data will have more 'ants' then truly appear
  • Loading branch information
aryarm committed Apr 5, 2019
1 parent f0ad369 commit d9637b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ant_tracking.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
% characteristics, such as area, centroid, and the bounding box.

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


Expand Down Expand Up @@ -232,7 +232,7 @@ function createNewTracks()
% MotionNoise - deviation of selected (ie ConstantVelocity) model from actual model, as a 2 element vector; increase makes Kalman filter more tolerant
% MeasurementNoise - tolerance for noise in detections; larger value makes Kalman Filter less tolerant
kalmanFilter = configureKalmanFilter('ConstantVelocity', ...
centroid, [200, 50], [1500, 50], 50);
centroid, [200, 50], [150, 50], 50);

% Create a new track.
newTrack = struct(...
Expand Down
2 changes: 1 addition & 1 deletion track.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def main():
arg_parser.add_argument('--m',
dest = 'minBlob',
type=int,
default=35,
default=3,
help='minimum blob area in pixels (default = 35)')
arg_parser.add_argument('--e',
dest = 'export',
Expand Down

0 comments on commit d9637b3

Please sign in to comment.