I would use OpenCV