Farmers should provide high-quality agricultural products and companies should receive high-quality agricultural products, which is the purpose and pursuit of the business model of "companies plus farmers". In order to increase the stability of the cooperation mode between companies and farmers, it is necessary to detect the quality of agricultural products accurately, objectively and efficiently. Therefore, this article studies the quality inspection method of agricultural products based on image processing. Firstly, the traditional threshold calculation method and threshold function are improved to obtain more ideal denoising effect of agricultural products images. Aiming at the problem that the traditional image processing model cannot obtain fine-grained feature information of image objects, a multi-level feature dependence extraction network is constructed, and the structure and working principle of the network model are introduced in detail. Experimental results verify the effectiveness of the proposed algorithm and model for agricultural product quality inspection.