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.