Therefore, we teach the students the disparity recognition process ; we also teach them how to obtain the stereo pair image, investigate the color element, extract the state of the target characteristic, calculate the representative point, and measure disparity using the stereo pair image. Then, the focus of this programming exercise is on both to set up the threshold of feature extraction for image processing and to generate a motor control program. We apply the branch control simple algorithm to motor control in order to realize a simple robot motion.