A method, performed by a device, of recognizing content, the method comprising: determining a type of a content service providing the content by determining a type of a web application to be executed in the device, or by recognizing an EPG signal received together with the content, or by detecting a logo of a set-top box displayed on a screen of the device; selecting a template corresponding to the determined type of content service from stored templates used for recognizing content displayed on a device when the type of the content service that provides the content to the device is determined, wherein the selecting of the template further comprises: when a template corresponding to the type of the content service is not stored in the device, selecting a predetermined basic template as the template corresponding to the type of the content service; receiving a control signal at a time, and capturing a plurality of screens of the device in a predetermined time unit from the time at which the control signal is received; when the control signal is received by the device, determining whether a captured screen from among the plurality of screens corresponds to a gateway page by comparing the plurality of screens and selecting a previous screen of a screen from which a component is removed as the captured screen corresponding to the gateway page, and wherein the gateway page is a page for introducing the content and providing information about the content before the content is reproduced; when the captured screen corresponds to the gateway page, determining whether the captured screen corresponds to the selected template by comparing a layout of the captured screen and a layout of the selected template, wherein the layout represents a format in which components of at least one image unit included in the screen are arranged; and when the captured screen does not correspond to the selected template, generating a template corresponding to the type of the content service, based on the captured screen; detecting a text region from the captured screen using the template by comparing the template with the captured screen; and recognizing text included in the detected text region;, wherein the generating of the template comprises: recognizing a layout of components and a text region included in the captured screen, wherein the template displays default components corresponding to the components based on the recognized layout and comprises information about a position of the recognized text region and an arrangement. determining a type of a content service providing the content by determining a type of a web application to be executed in the device, or by recognizing an EPG signal received together with the content, or by detecting a logo of a set-top box displayed on a screen of the device; selecting a template corresponding to the determined type of content service from stored templates used for recognizing content displayed on a device when the type of the content service that provides the content to the device is determined, wherein the selecting of the template further comprises: when a template corresponding to the type of the content service is not stored in the device, selecting a predetermined basic template as the template corresponding to the type of the content service; receiving a control signal at a time, and capturing a plurality of screens of the device in a predetermined time unit from the time at which the control signal is received; when the control signal is received by the device, determining whether a captured screen from among the plurality of screens corresponds to a gateway page by comparing the plurality of screens and selecting a previous screen of a screen from which a component is removed as the captured screen corresponding to the gateway page, and wherein the gateway page is a page for introducing the content and providing information about the content before the content is reproduced; when the captured screen corresponds to the gateway page, determining whether the captured screen corresponds to the selected template by comparing a layout of the captured screen and a layout of the selected template, wherein the layout represents a format in which components of at least one image unit included in the screen are arranged; and when the captured screen does not correspond to the selected template, generating a template corresponding to the type of the content service, based on the captured screen; detecting a text region from the captured screen using the template by comparing the template with the captured screen; and recognizing text included in the detected text region;, wherein the generating of the template comprises: recognizing a layout of components and a text region included in the captured screen, wherein the template displays default components corresponding to the components based on the recognized layout and comprises information about a position of the recognized text region and an arrangement.