Abstract:Based on OpenCV and image corners, this paper proposed a stitching algorithm of two-dimensional irregular image fragments. This algorithm carried out the functions of fragment contour detection, corner extraction, corner sequence matching, image mosaic and missing image repair. According to test cases, outstanding stitching effect could be achieved.