The invention relates to a table recognition method and device. The table recognition method comprises the steps of obtaining a to-be-recognized table image; performing
line segment detection on the table image to obtain a plurality of transverse line segments and a plurality of vertical line segments; determining a plurality of
cell transverse
line segment sets in different longitudinal position ranges from the plurality of transverse line segments based on the transverse projection information of each transverse
line segment in the plurality of transverse line segments; based on the longitudinal projection information of each vertical line segment in the plurality of vertical line segments, determining a plurality of
cell vertical line segment sets in different transverse position ranges from the plurality of vertical line segments; and generating a target table based on the intersection point position of each transverse line segment in the plurality of
cell transverse line segment sets and each vertical line segment in the plurality of cell vertical line segment sets, and the transverse line segment and the vertical line segment to which each intersection point position belongs. By adopting the method, the accuracy of table recognition can be improved.