A high level of computation is required for edge detection in color images captured by unmanned aerial vehicles (UAVs) to address issues, such as noise, distortion, and information loss. Thus, an edge detection method for UAV-captured color images based on the improved whale optimization algorithm (WOA) is proposed in this study. In this method, the color image pixels are represented by quaternions, and the global random position variables and information exchange mechanism are introduced into the random walk foraging formula of the WOA. Further, a random disturbance factor is also introduced into the predator-prey formula of the spiral bubble net. The proposed improved WOA is then used to obtain the preliminary edge of the UAV-captured color image. An edge-point classification method using the radius of the shortest distance between the whale and the current global optimum in each iteration is presented to enhance a preliminary edge. The experimental results show that the proposed edge detection method has the advantages of strong denoising, fast speed, and good quality.INDEX TERMS Classification and purification, edge detection, quaternion, unmanned aerial vehicle (UAV), whale optimization algorithm (WOA).