1. A method of recognizing and generating a structure of a table included in an image, the method comprising: extracting a plurality of lines forming the table from among a plurality of connection components forming the image; determining a plurality of line intersections by using a plurality of crossing functions each corresponding to one of the plurality of lines; determining one of a plurality of crossing models identified based on a plurality of crossing shapes, in correspondence with each of the plurality of line intersections; and generating data describing the table, which includes at least one cell determined using the determined crossing model.