This master thesis is focused to the object detection in a real time using the OpenCV library. At first is described the basis of path-planning and path-planning algorithms. Next are described a basic techniques for an image processing and a basic principles for the image detection. Last is analysis of a problem and a software design with its implementation as teaching aid high-level control system software.