Object detection and position determination in 2D