我想在场景中查找多个对象(对象看起来相同,但可能在比例和旋转方面不同,我不知道要检测的对象是什么)。我已实现了以下想法,基于OpenCV中的featuredetectors,它的工作原理:检测多个对象(使用OpenCV)
detect and compute keypoints from the object
for i < max_objects_todetect; i++
1. detect and compute keypoints from the whole scene
2. match scene and object keypoints with Flannmatcher
3. use findHomography/Ransac to compute the boundingbox of the first object (object which hast the most keypoints in the scene with multiple objects)
4. set the pixel in the scene, which are within the computed boundingbox to 0, -> in the next loopcycle there are no keypoints for this object to detect anymore.
这个实现的问题是,我需要计算的关键点为现场多次这就需要计算时间的很多(250毫秒)。有没有人有更好的想法检测多个对象?
感谢Drian
你使用什么检测器和描述符? –
现在使用SURF检测器和描述符 – Drian
也许你应该使用ORB,而不是SURF。但我不知道你的图像有多准确。 –