In this paper, we present an application of stable marriages algorithms, applied to level-line junctions, for obstacle detection. The method is implemented on our PiCar stereovision based system, an intelligent vehicle. The performance of the method is tested for precision and safety in real situations and compared with two other methods based on dynamic programming and correlation.