I've finally got OpenCV working for optical flow on the live image, so the arrows represent where automatically detected features are moving between two frames (arrows are extended slightly too). You can see that as the helicopter moves, the arrows point in the direction of motion.
The next step is to average all the directions and amounts of motion to determine what direction it is moving overall, and how fast. Then I can apply this as feedback to the controller, creating a self-stabalising helicopter.
which algorithm do you use to find optical flow?
ka2zik 1 year ago