diff --git a/ant_tracking.m b/ant_tracking.m index fe038e8..bcc6e6f 100755 --- a/ant_tracking.m +++ b/ant_tracking.m @@ -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 @@ -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(... diff --git a/track.py b/track.py index 6d033ed..617c6fc 100755 --- a/track.py +++ b/track.py @@ -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',