You’re going to need OpenCV for that, and that means Linux. Navio is a shield for the Raspberry Pi, complete with a barometric pressure sensor, gyros, accelerometer, and compass, and GPS.
[James Muraca] has a KNK Force, something of an object of desire in the world of desktop CNC cutters. The computer inside the Force is a Raspberry Pi, so of course [James] set about investigating ...