The geological interpretation technology of remote sensing images can analyze the production characteristics and physical properties of rocks on the earth's surface through the known spectral and spatial information characteristics in relevant data. This technology is of great significance to the environmental protection and efficient exploration of oil and gas resources. The degree of automation of interpretation methods is not high, and a large number of manual post-processing checks are often required. However, the efficiency of purely manual information extraction is low, so semi-automatic extraction is an important direction of remote sensing geological interpretation. In particular, with the wide use of high-resolution remote sensing and UAV image technology in the geological field, it provides geologists with efficient and accurate semi-automatic auxiliary interpretation tools. This paper introduces the live-wire algorithm for semi-automatic auxiliary extraction of geological boundaries, and optimizes the algorithm from the aspects of image data volume, vector data generation, parameter setting, etc., and designs a software prototype to provide reference for related software design. Finally, the optimization research of this technology can effectively improve the efficiency of environmental protection exploration of oil and gas resources.