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 impr...