I have analysed your video and there are some troubles which don allow to work Simd::Motion::Detector properly with default settings.
And you have already listed most of them above:
- The object (shooting star) has small size.
- It moves too fast.
- Time of its existance is short.
- There is a big noise on the video.
In order to solve these troubles I changed following parameters of motion detector:
To detect objects of small size I decreased minimal object size in model:
Model model;
model.size = FSize(0.01, 0.01); // By default it is equal to FSize(0.1, 0.1).
detector.SetModel(model);
To reduce influence of fast motion:
Options options;
options.TrackingAdditionalLinking = 5; // Boosts binding of trajectory.
To resolve trouble of short object existence time:
options.ClassificationShiftMin = 0.01; // Decreases minimal shift of object to be detected.
options.ClassificationTimeMin = 0.01; // Decreases minimal life time of object to be detected.
To reduce big noise:
options.DifferenceDxFeatureWeight = 0; // Turns off gradient along X axis feature.
options.DifferenceDyFeatureWeight = 0; // Turns off gradient along Y axis feature.
detector.SetOptions(options);
And it works! I hope that I helped you.