In this chapter, we planned to measure the distance between cars or between a car and a camera using OpenCV. First, we created a new application named DiGauge to detect cars from the camera by abridging the Detective application we developed in the previous chapter. Then, we talked about the principles of distance measuring in the computer vision domain in two view modes—the bird's eye view and the eye-level view. After that, we implemented the distance measurement features in these two view modes in our application and added a menu on the UI to switch between the two view modes.
In the next chapter, we will introduce a new technology called OpenGL and see how we can use it in Qt and how it can help us in the computer vision domain.