In 2012, the ministry of agriculture released data showed that the import and export trade deficit of China's agricultural products had reached 49190000000 US dollars. China is a large agricultural country, agricultural crop occupies world front row, but export transactions accounted for the total trading lower percentage, the main reason is the quality testing technology that does not pass, detection technology is relatively backward, in this background, this paper puts forward a kind of advanced agricultural products quality control technology - computer visual information retrieval control technology. On the basis of the two-order upwind and linear interpolation theory, the use of image segmentation technology can successfully establish a computer vision inspection of agricultural products to mathematical model, and the establishment of the interpolation functions. Finally this paper is based on peanut detection as an example, the 50 cases of peanut quality are detected by using computer vision nondestructive technology testing, and the use of MATLAB software carries out mathematical statistics for its quality situation, the test results and the artificial inspection results are compared to verify the reliability of computer vision quality detection.