Path planning is one of the key elements for achieving rapid and stable flight when unmanned aerial vehicles (UAVs) are conducting monitoring and inspection tasks at ultra-low altitudes or in orchard environments. It involves finding the optimal and safe route between a given starting point and a target point. Achieving rapid and stable flight in complex environments is paramount. In environments characterized by high-density obstacles, the stability of UAVs remains a focal point in the research of path planning algorithms. This study, utilizing a feature attention mechanism, systematically identifies distinctive points on the obstacles, leading to the development of the RFA-Star (R5DOS Feature Attention A-star) path planning algorithm. In MATLAB, random maps were generated to assess the performance of the RFA-Star algorithm. The analysis focused on evaluating the effectiveness of the RFA-Star algorithm under varying obstacle density conditions and different map sizes. Additionally, comparative analyses juxtaposed the performance of the RFA-Star algorithm against three other algorithms. Experimental results indicate that the RFA-Star algorithm demonstrates the shortest computation time, approximately 84%-94% faster than the RJA-Star algorithm and 51%-96% faster than the Improved A-Star. The flight distance is comparable to the RJA-Star algorithm, with slightly more searched nodes. Considering these factors collectively, the RFA-Star algorithm exhibits a relatively superior balance between computational efficiency and path quality. It consistently demonstrates efficient and stable performance across diverse complex environments. However, for comprehensive performance enhancement, further optimization is necessary.