Tunnel portal image stitching is an important part of tunnel lining crack detection system.Taking the multi-channel tunnel portal images of tunnel in centain railway as benchmark,a multi-channel line array camera tunnel portal image stitching method was proposed,which is based on the image processing divided into two phases of coarse positioning and fine identification,and can effectively improve the efficiency and accuracy of tunnel portal image stitching.The experimental results show that,the success rate of this method in the tunnel portal image stitching experiment is up to 82%,which effectively reduces the labor cost,improves the working efficiency,and lays the foundation for the automation development of tunnel lining crack detection system.