【发布时间】:2015-09-21 13:09:03
【问题描述】:
所以我刚刚参加了 sebsastian thrun 的 AI 课程。在那里,他提到了如何构建一个粒子过滤器,用于根据航向 theta 和向前移动来跟踪移动的 xy 机器人。
代码在这里: https://gist.github.com/soulslicer/b4765ee8e01958374d3b
在他的实现中,他做了以下事情:
1. Get Range from Sensor of all bearings after moving R=1, Theta=0.5
2. Move all the particles by R=1, Theta=0.5
3. Compute the weights of all particles ranges against the measured range from sensor
4. Resample and draw new particles
这非常适用于运动模型。这到底如何用于计算机视觉跟踪?例如,我想跟踪一个黄色的圆形斑点。 我将如何“移动”粒子?我的成本函数可能是什么?尤其是移动部分,我不知道我会如何做计算机视觉跟踪的那一步
这是我认为它可能会起作用的方式,但我可能错了:
1. Get features from image, and compute the optical flow velocities of each feature
2. Place alot of particles in the scene with varying x,y,xvel,yvel
3. For the computation of weights, we can compare the each particle's velocity and position against all features
If we can threshold out the object based on color/shape, can match image features to shapes and put that in the cost function
4. Resample and draw new particles
【问题讨论】:
标签: computer-vision robotics particle-filter