Vision: Improve detection algorithm