Speed improvements for vision on pi