This paper addresses the issue of pesticide waste and low utilization rates resulting from traditional plant protection via spraying operations, which apply equal dosages to different targets or to different parts of the same target. To tackle this problem, we designed a variable fruit tree spraying system based on the ExG-AABB (excess green and axis-aligned bounding box) algorithm. We used a Kinect depth camera to capture information about the fruit tree canopy and constructed a spray flow model using pulse width modulation and variable spray control technology. Variable multi-nozzle spraying was guided by combining this canopy data. We evaluated the accuracy of each model in calculating canopy volume by comparing the coefficient of determination (R2) and root mean square error (RMSE) of the ExG-AABB with the slice convex hull method, voxel method, three-dimensional alpha-shape method, and QuickHull method. The ExG-AABB algorithm had the highest R2 value (0.9334) and the lowest RMSE value (0.0353 m3) among the five models, indicating that it most accurately reflects the true volume of the fruit tree canopy. This validates the effectiveness of the ExG-AABB algorithm in calculating canopy volume. We established a correlation model between canopy volume and spray volume, designed a canopy-adaptive layering method based on point cloud processing, and achieved precise calculation of nozzle flow. Comparative field experiments were conducted to analyze the spray coverage rate and observed flow, thereby evaluating the spraying effect of this variable spraying system. The experimental results showed that compared to conventional continuous spraying, this variable spraying system not only achieves more uniform spray coverage but also significantly reduces pesticide usage by 48.1%. Furthermore, through system optimization, the average coverage rate of the middle layer of the canopy decreased by 17.53%, effectively reducing the phenomenon of overlapping spraying from multiple nozzles and improving spraying efficiency.