Tree barriers are the key factors of current transmission line failures, early discovery of tree barriers hidden dangers, the implementation of forest clearing tasks on transmission lines is the current power inspectors need to pay attention to the key issues. The article is based on the inclined photogrammetry technology to obtain the three-dimensional data of transmission lines, and construct a real-time database to realize the standardized management of three-dimensional data. Then the Mean Shift algorithm is used to preprocess the remote sensing data, and the forest diameter measurement system and transmission line forest clearing program are designed. QDN Power Supply Bureau was selected as a research sample to verify the effectiveness of the application of the above methods. The study showed that the RMSE of the breast diameter monitoring results ranged from 4.30% to 5.05%, and the reduction of forced outage rate of transmission lines of 110kV and above in the power grid could be up to 72.28%, and the overall work efficiency was improved by about 5.14 times. Therefore, actively realizing the optimization of transmission line forest clearing tasks can ensure the stable operation of transmission lines and provide basic support for ensuring the power supply of the grid.