The invention relates to artificial intelligence, and provides an electronic invoice information extraction method and device, equipment based on artificial intelligence and a medium, and the method comprises the steps: firstly obtaining a frame set of a to-be-recognized electronic invoice picture, a recognition text in each frame, and a corresponding target electronic invoice template; carrying out coordinate normalization adjustment on the to-be-recognized electronic invoice picture to obtain an adjusted electronic invoice picture, and then obtaining a Sudoku matching similarity and a matching label corresponding to each pixel point based on the adjusted electronic invoice picture; and finally, positioning a target frame of the to-be-matched target text in the frame set, determining that the label combination of the pixel point labels in the adjusted frame is the same as the to-be-matched target text, taking the target frame as a target area, and obtaining a target value of the target area. The template-based information extraction is realized, the algorithm is light and simple, the operation speed is high, and the accuracy is high.