With the continuous advancement of smart agriculture, the introduction of robots for intelligent harvesting in modern agriculture is one of the crucial methods for the picking of fruits, vegetables, and melons. In this paper, three different illuminations, including front lighting, normal lighting, and back lighting, are first applied to citrus based on the computer vision technology. Secondly, the image data of the fruits, fruit stems, and leaves of the citrus are collected. The color component distributions of citrus based on different color models are analyzed according to the corresponding characteristic values, and an exploratory data analysis process for the image data of citrus is established. In addition, 300 citrus images are selected, and the citrus fruits are segmented from the background through the simulation experiment. The results of the study indicate that the recognition rate for the maturity of citrus has exceeded 98%, which has proved the effectiveness of the method proposed in this paper.