According to the present invention, it is possible to create electronic document data capable of highlighting an object detected through a search so that a user can easily recognize it. An image processing apparatus extracts an object from an input image and extracts metadata related to the object. The image processing apparatus, when determines to describe with a shape in accordance with the shape of the object, creates a vector path description of frame described with a shape in accordance with the shape of the object. Then, the image processing apparatus creates an electronic document including data of the input image and the vector path description of frame with which the metadata is associated. When a keyword search is performed on the created electronic document, highlight display is performed in accordance with the vector path description of frame with which metadata that matches the keyword is associated.
|
10. An image processing apparatus comprising:
an extraction unit configured to extract an object from an input image and obtain area information of the object;
a determination unit configured to determine, on the basis of whether or not another object exists near the object, whether to describe a first vector path description or to describe a second vector path description, wherein the first vector path description is data of a transparent frame which circumscribes the extracted object with a shape of the obtained area information, and wherein the second vector path description is data of a frame which circumscribes the object with a predetermined shape, and wherein the determination unit determines to describe the first vector path description when another object exists near the object, and wherein the determination unit determines to describe the second vector path description when another object does not exist near the object;
a frame creation unit configured to create the first vector path description that is data of a transparent frame which circumscribes the extracted object with a shape of the obtained area information in a case that the determination unit determines to describe the first vector path description; and
an electronic document creation unit configured to create an electronic document including the input image and the created vector path description,
wherein the created vector path description of the transparent frame includes a parameter description of a highlighting color for highlighting the frame when an object is searched for and detected as a search result from the created electronic document.
9. An image processing apparatus comprising:
an object extraction unit configured to extract an object from an input image;
a metadata extraction unit configured to extract metadata related to the object;
a determination unit configured to determine, on the basis of whether or not another object exists near the object, whether to describe a first vector path description or to describe a second vector path description, wherein the first vector path description is data of a frame which circumscribes the object with a shape similar to an outer contour of the shape of the object, and wherein the second vector path description is data of a frame which circumscribes the object with a predetermined shape, and wherein the determination unit determines to describe the first vector path description when another object exists near the object, and wherein the determination unit determines to describe the second vector path description when another object does not exist near the object;
a frame creation unit configured to create the first vector path description that is data of a frame which circumscribes the object with a shape similar to an outer contour of the shape of the object in the case that the determination unit determines to describe the first vector path description; and
a document creation unit configured to create an electronic document including data of the input image and the first vector path description with which the metadata is associated,
wherein when a keyword search is performed on the created electronic document, highlight display is performed in accordance with the first vector path description with which metadata that matches the keyword is associated.
1. An image processing apparatus comprising:
an object extraction unit configured to extract an object from an input image;
a metadata extraction unit configured to extract metadata related to the object;
a determination unit configured to determine, on the basis of whether or not another object exists near the object, whether to describe a first vector path description or to describe a second vector path description, wherein the first vector path description is data of a first frame which circumscribes the object with a shape similar to a shape of the object, and wherein the second vector path description is data of a second frame which circumscribes the object with a predetermined shape, and wherein the determination unit determines to describe the first vector path description when another object exists near the object, and wherein the determination unit determines to describe the second vector path description when another object does not exist near the object;
a frame creation unit configured to create the first vector path description in the case that the determination unit determines to describe the first vector path description, and to create the second vector path description in the case that the determination unit determines to describe the second vector path description; and
a document creation unit configured to create an electronic document including data of the input image and the created first or second vector path description with which the metadata is associated,
wherein when a keyword search is performed on the created electronic document, highlight display is performed in accordance with the created first or second vector path description with which metadata that matches the keyword is associated.
11. An image processing method comprising:
an object extracting step of extracting, by an object extraction unit, an object from an input image;
a metadata extraction step of extracting, by a metadata extraction unit, metadata related to the object;
a determination step of determining, on the basis of whether or not another object exists near the object, by a determination unit, whether to describe a first vector path description or to describe a second vector path description, wherein the first vector path description is data of a first frame which circumscribes the object with a shape similar to a shape of the object, and where the second vector path description is data of a second frame with circumscribes the object with a predetermined shape, and wherein the determination unit determines to describe the first vector path description when another object exists near the object, and wherein the determination unit determines to describe the second vector path description when another object does not exist near the object;
a frame creation step of creating, by a frame creation unit, the first vector path description when determining to describe the first vector path description in the determination step, and creating, by the frame creation unit, the second vector path description when determining to describe the second vector path description in the determination step; and
a document creation step of creating, by a document creation unit, an electronic document including data of the input image and the created first or second vector path description with which the metadata is associated,
wherein when a keyword search is performed on the created electronic document, highlight display is performed in accordance with the created first or second vector path description with which metadata that matches the keyword is associated.
12. A non-transitory computer-readable recording medium having recording thereon code of computer-executable instructions that, when executed by an image processing apparatus, causes the apparatus to perform steps comprising:
an object extracting step of extracting by an object extraction unit, an object from an input image;
a metadata extraction step of extracting, by a metadata extraction unit, metadata related to the object;
a determination step of determining, on the basis of whether or not another object exists near the object, by a determination unit, whether to describe a first vector path description or to describe a second vector path description, wherein the first vector path description is data of a first frame which circumscribes the object with a shape similar to a shape of the object, and wherein the second vector path description is data of a second frame which circumscribes the object with a predetermined shape, and wherein the determination unit determines to describe the first vector path description when another object exists near the object, and wherein the determination unit determines to describe the second vector path description when another object does not exist near the object;
a frame creation step of creating, by a frame creation unit, the first vector path description when determining to describe the first vector path description in the determination step, and creating, by the frame creation unit, the second vector path description when determining to describe the second vector path description in the determination step; and
a document creation step of creating, by a document creation unit, an electronic document including data of the input image and the created first or second vector path description with which the metadata is associated,
wherein when a keyword search is performed on the created electronic document, highlight display is performed in accordance with the created first or second vector path description with which metadata that matches the keyword is associated.
2. The image processing apparatus according to
wherein, when the object is described in a vector path description and when the size of the object is small or another object exists near the object, the determination unit determines to describe the first vector path description, and
wherein, when the object is not described in a vector path description, or when the object is described in a vector path description, the size of the object is large, and there is no adjacent object near the object, the determination unit determines to describe the second vector path description.
3. The image processing apparatus according to
4. The image processing apparatus according to
5. The image processing apparatus according to
6. The image processing apparatus according to
7. The image processing apparatus according to
8. The image processing apparatus according to
the frame creation unit further creates a third vector path description of supplementary information which supplementarily indicates the object,
the document creation unit creates an electronic document including the input image, the first or second vector path description with which the metadata is associated, and the third vector path description of supplementary information, and
when a keyword search is performed on the electronic document, highlight display is performed in accordance with the first or second vector path description with which metadata that matches the keyword is associated and the third vector path description of supplementary information.
|
1. Field of the Invention
The present invention relates to an image processing apparatus and an image processing method for creating electronic document data whose objects can be searched from a document image.
2. Description of the Related Art
Conventionally, to easily use objects other than characters (for example, photograph, drawing, line drawing, table, and the like) in a document image, a technique for enabling the object to be searched is known. In the description below, the “object” indicates objects other than characters unless otherwise stated.
In Japanese Patent Laid-Open No. H11-306197 (1999), an object such as a drawing, a graph, or the like is extracted from a document image, and it is determined whether or not there is a caption character string (a character string explaining the object) near the object. When there is a caption character string, the caption character string is associated with the object, so that the object can be searched.
When the caption adjacent to the object is a figure number (for example, “FIG. 1”, “FIG. 1”, and the like), in a general document image, a character string of the same figure number is written also in a body text to explain the object. In other words, the same expression as the figure number written in the caption is also written in the body text. Japanese Patent Laid-Open No. H10-228973 (1998) discloses a technique for automatically creating a link between a figure number in a caption and a figure number in the body text to form a hypertext. In this technique, for example, when a figure number “FIG. 1” is included in a caption adjacent to an object and a sentence “
When objects with which metadata is associated are JPEG-compressed or the like and stored in one electronic document, the objects are created as one electronic document with a small amount of data. When such an electronic document is used by an application, it is possible to search for an object from the metadata using a caption character string as a search keyword.
On the other hand, in an electronic document in which caption character strings are given to objects respectively as metadata and objects other than characters can be searched for, when a keyword search is performed, it is desired that an object as a result of the search is highlighted.
However, the objects to be searched are photographs, drawings, tables, and the like which have various colors and shapes. Therefore, because highlighting of the object is inconspicuous due to the original color and shape of the object, it may be difficult for a user to identify an object hit in the search. For example, when a highlighting method by which a contour of a searched object is colored with a red circumscribed rectangle is used, if a rectangle photograph object including much red is hit in the search, highlighting of search result is in contact with the photograph area in the same color as that of the photograph, so that the highlighting is inconspicuous. Therefore, it is very difficult for the user to identify the object hit in the search. In addition, when the size of the object is small, or there is a plurality of objects adjacent to each other, it is impossible to intuitively identify the object hit in the search, and hence there is a problem that an improvement of search efficiency cannot be expected (refer to
Therefore, in a process of creating electronic document data in which objects other than characters can be searched with a keyword, an electronic document data creation method is required which, in searching, performs highlighting of the object so that a user can easily recognize it while maintaining the shape and data state of the object to be searched.
An image processing apparatus according to the present invention comprises: an object extraction unit configured to extract an object from an input image; a metadata extraction unit configured to extract metadata related to the object; a determination unit configured to determine whether to describe a vector path description of frame with a shape in accordance with a shape of the object or to describe a vector path description of frame with a shape in accordance with a predetermined shape; a frame creation unit configured to create a vector path description of frame described with a shape in accordance with the shape of the object when the determination unit determines to describe with a shape in accordance with the shape of the object, and create a vector path description of frame described with a shape in accordance with the predetermined shape when the determination unit determines to describe with a shape in accordance with the predetermined shape; and a document creation unit configured to create an electronic document including data of the input image and the vector path description of frame with which the metadata is associated, wherein when a keyword search is performed on the electronic document, highlight display is performed in accordance with the vector path description of frame with which metadata that matches the keyword is associated.
An image processing apparatus according to the present invention comprises: an object extraction unit configured to extract an object from an input image; a metadata extraction unit configured to extract metadata related to the object; a frame creation unit configured to create a vector path description of frame described with a shape similar to an outer contour of the shape of the object; and a document creation unit configured to create an electronic document including data of the input image and the vector path description of frame with which the metadata is associated, wherein when a keyword search is performed on the electronic document, highlight display is performed in accordance with the vector path description of frame with which metadata that matches the keyword is associated.
An image processing apparatus according to the present invention comprises: a unit configured to extract an object from an input image and obtain area information which is information on the object; a unit configured to create a vector path description of a transparent frame which circumscribes the extracted object with a shape in accordance with the obtained area information; and a unit configured to create an electronic document including the created vector path description of the transparent frame, from the input image, wherein the created vector path description of the transparent frame includes a parameter description of a highlighting color for highlighting the frame when an object is searched for and detected as a search result from the created electronic document.
According to the present invention, it is possible to provide an image processing apparatus and an image processing method for creating electronic document data in which an object hit in a search can be highlighted so that a user can easily recognize the object.
Further features of the present invention will become apparent from the following description of exemplary embodiments (with reference to the attached drawings).
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. However, the constituent elements described in the embodiments are only examples, and do not limit the scope of the present invention.
(First Embodiment)
First, a first embodiment for implementing the present invention will be described.
[Configuration of Image Processing System]
In
The MFP 100 includes a scanner unit 201 which is an image input device, a printer unit 202 which is an image output device, a controller unit 204 including a CPU 205 and the like, an operation unit 203 which is a user interface, and so forth. The controller unit 204 is a controller for performing input/output of image information and device information by connecting to the scanner unit 201, the printer unit 202, and the operation unit 203, and on the other hand, connecting to a LAN 219 and a public line (WAN) 220 which is a general telephone network. The CPU 205 controls each unit included in the controller unit 204. A RAM 206 is a system work memory for the CPU 205 to operate, and also an image memory for temporarily storing image data. A ROM 210 is a boot ROM which stores programs such as a boot program of the system. A storage unit 211 is a hard disk drive which stores system control software and image data. An operation unit I/F 207 is an interface unit to the operation unit (UI) 203, and outputs image data to be displayed on the operation unit 203 to the operation unit 203. Also, the operation unit I/F 207 has a role to transmit information input from the operation unit 203 by a user of the image processing apparatus to the CPU 205. A network I/F 208 connects the image processing apparatus to the LAN 219, and performs input/output of packet type information. A modem 209 connects the image processing apparatus to the WAN 220, and performs input/output of information by performing data demodulation/modulation. The devices described above are disposed on the system bus 221.
An image bus I/F 212 is a bus bridge which connects the system bus 221 and an image bus 222 which transfers image data at high-speed, and converts a data structure. The image bus 222 is formed from, for example, a PCI bus or an IEEE1394 bus. The devices described below are disposed on the image bus 222. A raster image processor (RIP) 213 analyzes PDL (page description language) code and performs so-called rendering process in which the PDL code is converted into a bit map image of a specified resolution. When the conversion is performed, attribute information is added to each pixel or each area. This processing is referred to as image area determination process. By the image area determination process, attribute information that represents an object type, such as character (text), line, graphics, or image is added to each pixel or each area. For example, an image area signal is output from the RIP 213 according to an object type of the PDL description in the PDL code. Attribute information corresponding to an attribute indicated by the signal value is stored in association with the pixel or the area corresponding to the object. Accordingly, image data is attached with the associated attribute information. A device I/F 214 connects the scanner unit 201 which is an image input device to the controller unit 204 via a signal line 223. Also, the device I/F 219 connects the printer unit 202 which is an image output device to the controller unit 204 via a signal line 224. The device I/F 214 performs synchronous/asynchronous conversion of image data. A scanner image processing unit 215 performs correction, modification, and editing on the input image data. A printer image processing unit 216 performs correction and resolution conversion on print output image data to be output to the printer unit 202 according to the printer unit 202. An image rotation unit 217 rotates the input image data so that the image is upright and outputs the resultant image data. The data processing unit 218 will be described below.
[Configuration of Processing Unit]
Next, the data processing unit 218 in
Image data scanned by the scanner unit 201 in
In this case, as an area extraction method (object extraction method, area division method), a publicly known method can be used. According to an example method, the method binarizes an input image to create a binary image and reduces the resolution of the binary image to create a thinned image (reduced image). For example, when creating a thinned image of 1/(M×N), the method divides the binary image for each M×N pixels, if a black pixel is present in the M×N pixels, determines the pixel corresponding to the reduced image to be a black pixel, and if a black pixel is not present, determines the pixel corresponding to the reduced image to be a white pixel, thus creating the thinned image. Next, the method extracts a portion where black pixels are connected (connected black pixels) from the thinned image and creates rectangles that circumscribe the connected black pixels. If rectangles (rectangles of one character) each having a size similar to that of a character image are arrayed, or if the size of either the vertical side or the horizontal side of a rectangle is similar to the character image size (rectangle of connected black pixels in which some characters are connected) and a similar rectangle is disposed near the short side thereof, the rectangles have a high probability to be a character image which forms one character line. In this case, the rectangles are combined together, and a rectangle that represents one character line is obtained. An assembly of rectangles each having substantially the same length of the short side of the rectangle that represents one character line and arrayed at substantially equal intervals in the column direction have a high probability to be a body text. Therefore, the method combines the rectangles and extracts the body text area. Photograph areas, drawing areas, and table areas are extracted as a connected black pixel area having a size larger than that of a character image. As a result, for example, the areas indicated by reference numerals 501 to 505 in
The attribute information adding unit 302 adds an attribute to each area divided by the area dividing unit 301. The processing operation will be described by using an image shown in
On the other hand, for the areas other than the above, if the size of the area is extremely small, the area is determined to be a “noise”. Further, the attribute information adding unit 302, when performing contour tracing on white pixels in the connected black pixel area having lower pixel density, if circumscribing rectangles of the white pixel contours are arranged in good order, determines the area to be a “table”, and if the circumscribing rectangles are not arranged in good order, determines the area to be a “line drawing”. The other areas having higher pixel density are determined to be a picture or a photograph, and an attribute “photograph” is added.
Further, if a character area that is determined not to be a body text exists near (above or below) an area of “table”, “line drawing”, or “photograph”, the character area is determined to be a character area which explains the area of “table”, “line drawing”, or “photograph”, so that an attribute of “caption” is added. The area to which the attribute of “caption” is added is associated with the explained area and stored in a storage means such as the storage unit 211 so that the area of “table”, “line drawing”, or “photograph” which is explained by the caption can be identified.
If a character area that is determined not to be a body text is larger than a character image in the body text, and is located in a position different from that of the columns of the body text, an attribute “heading” is added to the character area. If the character area is larger than a character image in the body text, and is located above the columns of the body text, an attribute of “subhead” is added. Further, if the character area is smaller than a character image in the body text, and is located at an upper edge portion or a lower edge portion of an original document, an attribute of “page” (or “page header” or “page footer”) is added. If, although an area is determined to be a character area, the area is not any one of “body text”, “heading”, “subhead”, “caption”, and “page”, an attribute of “character” is added.
When the attribute information adding process as described above is performed, in an example of
The character recognition unit 303 performs publicly known character recognition process on an area including character images (area of “character”, “body text”, “heading”, “subhead”, or “caption”). The character recognition unit 303 stores a character code string obtained by the character recognition process in the storage unit 211 as character information in association with the target area.
The position and the size of the area, information of the attribute of the area, information of the page, and character information as a result of the character recognition (character code information which are extracted by the processing of the area dividing unit 301, the attribute information adding unit 302, and the character recognition unit 303 are stored in the storage unit 211.
The metadata processing unit 304 stores the objects (objects of “photograph”, “line drawing”, “table”, and the like) accompanied by a caption detected by the attribute information adding unit 302 in the storage unit 211 in association with metadata as information to search for the object.
In this embodiment, a character string written in the caption of the object and a sentence in the body text in which the same characters (words) as the characters (words) included in the caption are written are associated with each other in the metadata to search for the object.
In this embodiment, a caption identifier is used to determine a character string used as metadata to search for the object. This identifier associates an object accompanied by a caption with the caption and the character information in the body text. As a caption identifier, an ID for identifying the object (identification information), position information specifying a storage position of the caption and the character information in the body text (address or pointer indicating the recorded position), reference information (for example, XMLPath or URL), and the like can be used. In this embodiment, in a series of processing in which one page or a plurality of pages is input, IDs for uniquely identifying an object with a caption are used. For example, serial numbers or the like are used.
Hence, first, the metadata processing unit 304 creates caption identifiers for uniquely identifying the objects accompanied by a caption detected by the attribute information adding unit 302, and performs processing for adding the identifiers to the objects.
Next, the metadata processing unit 304 extracts a metadata character string corresponding to an explanatory sentence or a keyword of the object from the character information of the caption and the body text output from the character recognition unit 303, and performs processing for storing the metadata character string in the storage unit 211 in association with corresponding caption identifier. At this time, the metadata processing unit 304 adds a unique ID to the combination of the object accompanied by a caption and the metadata character string to identify the correlation between them, thus representing the correlation between them.
In this way, the metadata processing unit 304 associates the metadata with the objects accompanied by a caption detected by the attribute information adding unit 302, and stores the associated information in the storage unit 211.
The format conversion unit 305 converts the input image data 300 into a predetermined electronic document format by using the information obtained from the area dividing unit 301, the attribute information adding unit 302, the character recognition unit 303, and the metadata processing unit 304. As the electronic document format, for example, PDF, SVG, XPS, OfficeOpenXML, and the like can be used. The electronic document created by the format conversion includes page display information of graphics (display image) and content information of semantic description using characters (metadata).
Hereinafter, processing content examples of each of the processing units 401 to 405 will be described.
The image filter processing unit 401 is a processing unit for performing publicly known image filtering process such as flattening, smoothing, edge enhancement, color quantization, binarization, and the like on an image. The image filter processing unit 401 performs image processing as necessary when processing is performed by the vector conversion processing unit 402 or the image cutout processing unit 403. Although specific description is omitted, it is assumed that suitable image processing is performed when the vector conversion processing is performed and suitable image processing is performed when the image cutout processing is performed.
The vector conversion processing unit 402 converts a target pixel group in an image area such as a line drawing and table ruled lines into a graphics drawing expression by vector path drawing function, specifically into vector path description data.
An example of the vector conversion process will be described. First, an image to be converted is converted into binary image data. For example, when the image to be converted is a gray scale image, the processing to obtain binary image data is performed by binarizing brightness of each pixel by comparing the brightness with a predetermined threshold value using the image filter processing unit 401. When the image to be converted includes a plurality of colors, it is possible to divide the image into each color component and create binary image data for each color. Next, contour tracing is performed on a group of black pixels connected to each other in the binary image data to obtain a contour coordinate point array for each group. Subsequently, the contour coordinate point array is adaptively divided into a plurality of sections, and each section is approximated by a linear function or a curve function. The curve function is, for example, a spline curve or a Bezier curve. Finally, the image to be converted is converted into a vector path description including a set of a start point, linear and curve lines, and an end point.
The vectorization method is not limited to the above-described method, but any other publicly known method can be used. For example, instead of functionally approximating the contour, a vectorization method for functionally approximating a core line of a line drawing is well known.
For a target area in the input image, the image cutout processing unit 403 creates individual image part data using pixel data only in the area. When performing this processing, it is possible to change the type of the pixel data or a compression method in accordance with the characteristics of the area. For example, for an area of “line drawing” or “character” attribute, the image is converted into binary image for each color (binary image of one plane or a plurality of planes) by using the image filter processing unit 901, and thereafter the binary image is converted into data by a publicly known binary compression method such as MMR, and at the same time, data is created, to which color information corresponding to each binary image is added. On the other hand, for an area of “photograph” attribute, the image is compressed by using JPEG or JPEG2000 method that are suitable for compression of natural image.
Regarding the vector conversion by the vector conversion processing unit 402 and the image compression by the image cutout processing unit 403, it is possible to set so as to perform one of them or both of them in accordance with the attribute of the area. Regarding a character area of body text, heading, caption, and the like, when the degree of similarity of a result of character recognition is high, it is possible to describe the character code of the result of the character recognition, the size information of the character, the position information of the character, and the like, and reproduce the graphics of the character area.
The electronic document description creation unit 404 creates a graphics description (vector path description) of a frame or the like which is not displayed when browsing the electronic document and displayed in order to identify/highlight a search result when an object is searched. When creating a graphics description, the electronic document description creation unit 404 analyzes the attribute and the size of the object and a relationship with other objects to determine a method for creating an optimal highlighting frame for the object. As a creation method of the frame, there are a method which refers to a vector path description of the object and a method which refers to a vector path description of a predetermined shape (for example, rectangle or circle) which is defined in advance. For a transparent frame, it is possible to add a vector path description of an auxiliary shape for increasing recognition/identification efficiency of the object search result to the electronic document. The auxiliary shape includes, for example, an arrow notation indicating the position of the transparent frame or a metadata character string.
The electronic document description output unit 405 describes graphics data, a semantic description, and a vector path description of transparent frame in a predetermined format to create an electronic document. Here, the graphics data is data output from the vector conversion processing unit 402 and the image cutout processing unit 403. The semantic description is the character information, the metadata, and the like obtained by the character recognition unit 303 and the metadata processing unit 304. The vector path description of transparent frame is a description created by the electronic document description creation unit 404.
Although SVG is used as an example in the description here, the output format is not limited to SVG, but the image may be converted into PDF, XPS, Office Open XML, and the other PDL system data formats.
Hereinafter, an example of a conversion processing control of the format conversion control unit 406 will be described.
In the format conversion unit 305, content of conversion processing that should be performed on each area varies depending on the attribute of the area. For example, the vector conversion process is suitable for a drawing of black and white or several colors such as characters or a line drawing. However it is not suitable for an image area having gradation such as a photograph. Therefore, to perform an appropriate conversion in accordance with attributes of each area, correspondence tables as shown in
For example, according to the setting of
Further, in the correspondence tables of
A purpose of such deletion process is to make it possible to use the image data 300 as image part data of “background” after processing for each area is completed (after the filling process is completed). In the background image data (background image), portions other than the areas extracted by the area division process (for example, pixels of the base of the image data 300) remain. When describing electronic document data, a description is performed so that the graphics data (foreground image) obtained by the vector conversion processing unit 402 and the image cutout processing unit 403 is superimposed on the background image part data (background image). In this way, it is possible to configure graphics data without information loss of the background pixels (color of the base) and without redundancy.
It is possible to prepare a plurality of correspondence tables similar to those of
[Flow of Processing]
Next, an outline of the entire processing performed in the image processing system according to this embodiment will be described with reference to a flowchart of
In step S801, the area dividing unit 301 divides an input image data of one page into areas (objects) and extracts areas (objects). For example, the area dividing unit 301 extracts the areas 905 and 906 from the image data 901 (first page) in
In step S802, the attribute information adding unit 302 adds an attribute to each area extracted in step S801. In the example of the first page in
In step S803, the character recognition unit 303 performs the character recognition process on the areas to which character attributes (body text, caption, heading, subhead, and the like) are added in step S802, and holds the results as character information in association with the target areas. In the example of the first page, the character recognition unit 303 performs the character recognition process on the area to which a character attribute “caption” is added, obtains character information “FIG. 1”, and associates the character information “FIG. 1” with the area 906.
In step S804, the data processing unit 218 determines whether or not the information extraction process of steps S801 to S803 is performed on all the pages. If all the pages are processed, the process proceeds to step S805. If there is a page that is not processed, the process repeats the steps from step S801.
In step S805, the metadata processing unit 304 performs metadata extraction process and metadata adding process. The details of the processing performed by the metadata processing unit 304 in step S805 will be described with reference to a flowchart in
In step S1001 in
In step S1002, the metadata processing unit 304 adds a caption identifier to the object accompanied by caption of the processing target, and secures a metadata storage area for the added caption identifier in the storage unit 211. Here, a caption identifier “1” is added to the photograph object 905 accompanied by the caption 906, and a metadata storage area for the caption identifier “1” is secured in the storage unit 211.
In step S1003, the metadata processing unit 304 extracts an anchor character string and a metadata character string from character recognition information in the caption area. The anchor character string is character information for identifying the object accompanied by this caption in the original document. The metadata character string is character information for explaining the object. In the caption accompanying the object, only the anchor character string may be written, only the metadata character string may be written, or both character strings may be written. For example, in many cases, the anchor character string is a figure number which combines a specific character string such as “Figure” or “Fig” with a number or a symbol. Therefore, it is desired to prepare an anchor character string dictionary that registers the specific character strings in advance, and specify an anchor portion (anchor character string+number or symbol) by comparing the caption character string with the dictionary. The character string other than the anchor portion among the character strings in the caption area may be identified as a metadata character string. For example, when the caption is “
In step S1004, the metadata processing unit 304 determines whether or not the metadata character string is extracted from the caption area in step S1003. If the metadata character string is extracted, the process proceeds to step S1005, and if the metadata character string is not extracted, the process proceeds to step S1006.
In step S1005, the metadata processing unit 304 stores the metadata character string extracted from the caption area in the storage area for the caption identifier added in step S1002, and the process proceeds to step S1006. In other words, the metadata processing unit 304 associates the metadata character string extracted from the caption area with the caption identifier.
In step S1006, the metadata processing unit 304 determines whether or not the anchor character string is extracted from the caption area in step S1003. If the anchor character string is extracted, the process proceeds to step S1007. On the other hand, if the anchor character string is not extracted, the process returns to step S1001, and the metadata processing unit 304 determines whether or not there is a caption area which is not processed.
In the first page 901 of the input example in
In step S1007, the metadata processing unit 304 detects the same character string expression as the extracted anchor character string from the character information in “body text” area stored in the storage unit 211. If the metadata processing unit 304 detects the same character string expression, the process proceeds to step S1008. If the metadata processing unit 304 does not detect the same character string expression, the process returns to step S1001, and the metadata processing unit 304 determines whether or not there is a caption area which is not processed.
In step S1008, the metadata processing unit 304 extracts a character string corresponding to the metadata of the object from an area around the character string expression detected from the body text in step S1007. In the input example of
In step S1009, the metadata processing unit 304 additionally stores the metadata character string extracted in step S1008 in the storage area for the caption identifier. In other words, the metadata processing unit 304 associates the metadata character string extracted from the body text with the caption identifier. Then, the process returns to step S1007, and the metadata processing unit 304 repeatedly determines whether or not there is a description of the same anchor character string in the other portions of the body text. If there is the same anchor character string, the metadata processing unit 304 additionally stores the anchor character string. Therefore, there is a case in which a plurality of metadata character strings is associated with one caption identifier.
Returning to
In step S1101 in
In step S1102, the format conversion control unit 406 selects one of unprocessed areas as a processing target area from nth page data in the area information 411 in
In step S1103, the format conversion control unit 406 checks the attribute of the processing target area referring to the correspondence table, and branches the process according to each attribute. In this example, the format conversion control unit 406 performs determination using the correspondence table of
In step S1104, in accordance with the setting of the correspondence table of
In step S1105, since a deletion processing instruction of character area is set in
On the other hand, in step S1106, the format conversion control unit 406 checks whether or not the caption identifier is added to the area determined to be “photograph”, “line drawing”, or “table” in step S1103. If the caption identifier is added, the process proceeds to step S1107, and if not added, the process proceeds to step S1110.
In step S1107, the image cutout processing unit 403 and the vector conversion processing unit 402 in
In step S1108, in accordance with the setting of the correspondence table of
In step S1109, in accordance with the setting of the correspondence table of
In step S1201 in
In step S1202, the electronic document description creation unit 404 determines whether or not the processing target area is expressed in the vector path description. If it is expressed in the vector path description (for example, in a case of an area to which “line drawing” or “table” attribute is added), the process proceeds to step S1203, and if not expressed in the vector path description (for example, in a case of an area to which “photograph” attribute is added), the process proceeds to step S1206. For example, a case in which the page images 901 to 904 in
In step S1203, the electronic document description creation unit 404 compares the size of the processing target area with a predetermined threshold value. When the size of the processing target area is smaller than the predetermine threshold value (for example, in a case of the object 911 in
In step S1209, the electronic document description creation unit 904 determines whether or not there exists another object near the processing target area. If there exists another object (for example, the objects 907 and 908 in
As described above, according to the processing in steps S1202, S1203, and S1204, the process after this branches depending on the area information (the attribute information and the size of the processing target area, and whether or not there exists another object near the processing target area). As a result of the branches, the description method of the vector path description of transparent frame described later is changed. The transparent frame is a frame which has a transparent color and circumscribes the object.
In step S1205, the electronic document description creation unit 404 creates a vector path description of transparent frame by referring to (reusing) the vector path description data of the processing target object created in step S1107 in
Here, an example of the vector path description of transparent frame created for the object 907 in
On the other hand, in step S1206, the electronic document description creation unit 404 creates the vector path description data of transparent frame by referring to (using) vector path description data of a predetermined shape (for example, rectangle, circle, hexagon, or the like) which is defined in advance. Therefore, the vector path description data of transparent frame includes a parameter description of a reference instruction to the vector path description data of the predetermined shape. The vector path description of transparent frame is described so that the transparent frame is slightly larger than the circumscribed figure of the processing target object (for example, a space corresponding to 5 pixels is provided around the circumscribed figure of the object). The transparent color is assigned as a drawing color of the vector path description data of the frame. In this way, by describing the vector path description of transparent frame so that the transparent frame is slightly larger than the circumscribed figure of the object, when the drawing result of the vector path description of the frame is highlighted, the object circumscribed by the frame is easy to be viewed.
For example, when creating the vector path description of transparent frame for the object 905 in
According to the processing described above, a description method of the vector path description of transparent frame (S1205 or S1206) is selected in accordance with the attribute information and the area information of the processing target area. In other words, the vector path description of transparent frame is created in a shape in accordance with the area information and the like. As a result, when highlighting the frame circumscribing the object detected as a result of a search, it is possible to make it easy to view the object.
Even when the area (object) is small, it is possible to highlight the frame so as to easily recognize which object is detected through the search, by changing the description method of the vector path description of transparent frame in accordance with the size of the area.
The description method of the vector path description of transparent frame is changed depending on whether or not there exists another object near the area, so that even when there exists another object near the area, the object detected through the search is difficult to be mistaken as another object.
In step S1207, the electronic document description creation unit 404 creates an additional vector path description of a transparent shape for further complementarily highlighting (indicating) the frame (or object) created in steps S1205 and S1206. As an example of the transparent shape, a description of an arrow or the like to indicate the object position in an easily understood manner is considered. In this case, it is possible to describe a vector path description of a shape of an arrow or the like necessary for an additional description as one of predetermined shapes in advance, and include a reference of this vector path description in the vector path description of transparent frame. When the frame is highlighted, the transparent shape of the arrow or the like is also highlighted in the same manner. It is desired that a description of a parameter to specify a highlighting color for highlighting the transparent shape is included in the vector path description of transparent frame. To perform a complementary highlight display, it is possible to refer to the metadata (character code) added to the object from the vector path description of transparent frame and draw a character string for explaining the object using the highlighting color.
In step S1208, the electronic document description creation unit 404 adds the caption identifier of the processing target area to the created vector path description data of the frame. The created vector path description data of the frame is stored in the storage unit 211 in
Returning to
In step S1111, the format conversion control unit 406 performs processing for filling a portion of the area cut out by the image cutout processing unit 403 with a color of the peripheral area, on the image data 300 in
In step S1112, the format conversion control unit 406 causes the electronic document description output unit 405 to perform processing to describe the page currently processed as an electronic document page 310 in a predetermined format.
In the vector path description 1403, by describing <use xlink:href=“frame_square”>, a predetermined shape defined in the vector path description 1404 described later is referred to (reused). By specifying a drawing position and the size by a description <transform=“translate (100,100) scale(2)”>, a frame drawn with a transparent color is created. Further, <id=“frame_square”> in the vector path description 1404 is a description to refer to an ID of a template defined as a predetermined shape, and <stroke=“transparent”> is a description to draw a frame with a transparent color. This means that a figure of a shape formed by a vector path description <d=“M440,608 L2040,608 L2040,1880 L440,1880 L440,608 s”> is drawn with a transparent color. The vector path description of a predetermined shape is not limited to a rectangle, but the shape can be freely defined, such as circle and hexagon, and it is possible to prepare a plurality of shapes and use any one of them as necessary. The descriptions 1401 to 1403 are graphics drawing descriptions corresponding to reference numerals 1301 to 1303 in
In step S1113, the format conversion control unit 406 determines whether or not the page number n currently processed is the same as the total number of pages which is the page number of the last page. If the page number n is the same as the total number of pages, the format conversion control unit 406 determines that the conversion process of all the pages is completed, and the process proceeds to step S1115. If n is smaller than the total number of pages, the process proceeds to step S1114, one is added to n, the process returns to step S1102, and the format conversion control unit 406 repeats the processing on the next page.
Finally, in step S1115, the electronic document description output unit 405 integrates each electronic document page described in step S1112 into one document and adds a description of metadata to create the output electronic document data 310. As a result, the electronic document description output unit 405 creates electronic document data including the vector path description of transparent frame described above and the like.
The above description is an explanation of the electronic document data creation process according to the first embodiment of the present invention.
[Search for Object]
Next, an example of searching for an object using the above-described metadata as a keyword in the electronic document data 310 created in this embodiment will be described with reference to
When a character string input in an input field 1601 as search words matches the metadata added to the electronic document data, the object search application highlights the vector path description including a caption identifier associated with the metadata.
The object search application detects the caption identifier 609 of metadata which matches the search word, and further detects the graphics description 606 to which the identifier 608 is added which is the same as the caption identifier 609 from the electronic document 600. Then, when displaying a page, the object search application draws the target graphics description so that corresponding portions are highlighted. In this example, the graphics description is pasting of images, so that the object search application displays the object by adding a frame of highlighting color, for example, a red frame around the image object. Reference numeral 1605 in
An example in which this method improves the search result visibility (recognition of the hit object and identification (discrimination) of what the object is) will be described with reference to
The input window 1701 in
As described above, when converting a document image into electronic document data on the basis of the setting of
In summary, according to this embodiment, in the creation process of electronic document data which can search for objects other than characters with a keyword, the shape and the state of the object to be searched is determined, and the shape of the frame for highlighting the object is controlled. Based on this, it is possible to create electronic document data capable of highlight expression for a user to easily recognize and identify the hit object.
Further, when creating the vector path description of the frame, by referring to (reusing) the vector path description of the object and the vector path description of a predetermined shape defined in advance, it is possible to reduce the amount of data compared with a case in which all the frames are individually described. For example, when creating a rectangle frame, the vector path description requires 500 bytes or more to include shape information (rectangle drawing command, drawing position/drawing size), transparent drawing setting of the frame, thickness of the frame and highlighting color during highlighting, and so forth. As the complexity of the frame shape increases, naturally, the amount of description increases. For example, when the shape of the frame is set to a star shape, 1 Kbytes or more of description is required. On the other hand, when creating a frame by referring to a predetermined shape, although the definition of the predetermined shape requires the same size description, the vector path description of frame created by referring to a predetermined shape requires only a parameter description of the frame, so that the amount of description is reduced to about 200 to 300 bytes regardless of the shape of the frame. The parameter description of the frame includes, for example, the drawing position (absolute position or relative position with respect to the reference object), the drawing size (enlargement rate & enlargement amount), the setting of highlighting color, and so on. When creating rectangle frames for an image including 100 photographs in one page, by creating vector path descriptions of the frames by reference, data size can be reduced by 30 Kbytes or more per page compared with a case in which the frames are individually described.
As described above, according to this embodiment, it is possible to create electronic document data in which an object detected through a search can be highlighted so that a user can easily recognize the object while shapes and data states of the objects in the electronic document data are maintained.
(Second Embodiment)
In the description of the operation of the first embodiment, by using the correspondence table of
In this embodiment, a processing example in which the format conversion unit 305 in
According to the correspondence table of
In step S1109 (details are shown in
In the first embodiment, in step S1205, the electronic document description creation unit 404 creates the transparent frame including the description of the reference instruction to the vector path of the object and the parameter description (enlargement, movement, setting of highlighting color, and the like). This is because the vector path description of the object is described in the foreground image, so that the reference (reuse) is possible. On the other hand, in this embodiment, the object is embedded in the background, so that the vector path description of the object cannot be referred to (reused) in the same manner as in the first embodiment. Therefore, the format conversion control unit 406 creates the transparent frame by using the vector path description of the object created in step S1107 instead of the reference instruction for the vector path description of transparent frame, and additionally describing a parameter description therein.
In step S1206, in the same manner as in the first embodiment, the electronic document description creation unit 404 creates the vector path description of transparent frame by referring to (reusing) the vector path description of a predetermined shape. At this time, when the object is a “line drawing” or “table” object, the vector path description created in step S1107 is not required to create the transparent frame, so that the vector path description can be deleted from the storage unit 211.
When performing a search on the electronic document data converted in this way, during a normal operation, a page including the background image and the foreground image (character portion) is displayed. On the other hand, when the metadata is hit in the search, the vector path description with the transparent color is displayed with a highlighting color by the application, so that for a user, the object can be seen as if the object itself were hit in the search.
In this way, in the same manner as in the first embodiment, it is possible to create an electronic document in which user can easily find a search result by highlighting the transparent frame controlled in accordance with the attribute of each object. Further, by including all the objects other than “character” objects in the background image, the file size can be reduced compared with a case in which the extracted photograph objects and the background are respectively held as compressed image data separate from each other. This is because such data includes image information and header information for compression, and when the number of data of the objects increases, the header information corresponding to the number of data is held redundantly. In particular, the more sophisticated the image compression method is, the larger the header information for compression tends to be. Therefore, when creating an electronic document file from a document image including a large number of objects such as photographs, to reduce the total data size, it is more suitable to compress the objects as one image than to compress each object individually. For example, when image data is held as a JPEG-compressed stream, each stream inevitably includes a quantization table for decompression, Huffman code, and the like as the header information, the size of which is 700 bytes or more. When an image includes 100 photographs in one page, if both the photographs and the background are compressed as one image data, it is possible to reduce the data size by 70 Kbytes or more per page, compared with a case in which a total of 101 image data including the background and the photographs are compressed individually.
With respect to electronic document data or with respect to an image part created by the image cutout of individual “photograph”, “line drawing”, or “table” image which is a search target in the electronic document data, the description method thereof and the adding method of caption identifier to the image part may be timely selected by a user. For example, when there is a high probability that the objects of “photograph”, “line drawing” and the like are reused in another document, as shown in
Instead of causing a user to select how to use the electronic document data, it is possible to automatically select the description method of the image part created by the image cutout and the attachment method of the caption identifier in accordance with the number of “photograph” and the like objects or the size or characteristics of each object. In this case, the methods may be changed for each document or each page to use the electronic document data.
In this way, by appropriately selecting the description method of the image part created by the image cutout, and properly selecting the attachment method of the caption identifier, it is possible to create electronic document data according to the purpose of use. Therefore, there is an effect that electronic document data that is easy to use for a user is provided.
(Third Embodiment)
In a third embodiment, an example of a method will be described which automatically calculates parameters of a frame (absolute position or relative position to a reference object, size or enlargement rate, and the like) that is necessary when creating a vector path description of transparent frame for an object to which a caption identifier is attached.
The method for calculating parameters of a frame will be described with reference to a processing flow in
In step S1801, the electronic document description creation unit 404 obtains the area size of an object accompanied by a processing target caption. This information is stored in the storage unit 211.
In step S1802 and step S1803, the electronic document description creation unit 404 compares predetermined upper limit value and lower limit value with the size obtained in step S1801. If the size of the object is within the lower limit value and the upper limit value inclusive (lower limit value ≦ object size < upper limit value), the process proceeds to step S1804. If the size is the upper limit value or more or the lower limit value or less, the process proceeds to step S1805.
In step S1804, the electronic document description creation unit 404 calculates an enlargement rate according to the size of the object (for example, 120% enlargement of the object). When the object is small, a large enlargement rate is set, and when the object is large, a small enlargement rate is set. In this way, the size of the frame can be changed in accordance with the size of the object, so that it is possible to create an image in which the search result can be easily viewed and checked.
On the other hand, in step S1805, the electronic document description creation unit 404 calculates the enlargement amount so that the transparent frame is larger than the object by a certain size. The enlargement amount may be changed depending on whether the object size is the upper limit value or more or the lower limit value or less. For example, even when the transparent frame is set to be always larger than the circumscribed figure of the object by 10 pixels, it is possible to set so that a transparent frame larger than the object by 5 pixels is created for an object of the upper limit value or more, and a transparent frame larger than the object by 10 pixels is created for an object of the lower limit value or less.
In step S1806, the electronic document description creation unit 404 calculates a movement amount of the transparent frame according to the enlargement rate & enlargement amount calculated in steps S1804 and S1805. This is because, when the transparent frame is not enlarged from the center of the object, and for example, when the transparent frame is enlarged from the upper left of the object, the transparent frame needs to be moved so that the object is located in the center of the transparent frame.
In step S1807, the electronic document description creation unit 404 creates a parameter description of a frame from the calculated enlargement rate & enlargement amount and movement amount, and creates a vector path description of transparent frame on the basis of the processing flow in
In the procedure described above, the size (enlargement rate & enlargement amount) of the transparent frame is controlled automatically in accordance with the size of the object, and thereby the transparent frame having a size according to the size of the object can be created as shown in
(Fourth Embodiment)
In the third embodiment, the method for creating a parameter description (enlargement rate & enlargement amount, movement amount, and the like) in accordance with the object size is described. In a fourth embodiment, a control method when the created parameter description protrudes outside of the image will be described. An operation flow of this embodiment will be described with reference to
In step S2001, the electronic document description creation unit 404 creates a parameter description (enlargement rate & enlargement amount, movement amount, and the like) in accordance with the object. This processing uses the method (
In step S2002, the electronic document description creation unit 404 checks whether or not the frame is included inside the document when the frame is drawn using the created parameter 2102. If the frame is included inside the document, the process proceeds to step S2006, where the frame is created as a parameter description. On the other hand, if the frame protrudes outside of the document, the process proceeds to step S2003. In
In step S2003, the electronic document description creation unit 404 decreases the enlargement rate & enlargement amount so that the frame is included inside the document while the aspect ratio is maintained. At this time, the enlargement rate & enlargement amount are adjusted so that they are not smaller than a predetermined lower limit value of the enlargement rate & enlargement amount (the value may be the lower limit value used in the second embodiment). For example, as shown in
When a desired parameter description cannot be obtained in step S2003, in step S2003, the electronic document description creation unit 404 changes the enlargement rate & enlargement amount without maintaining the aspect ratio. In the same manner as in step S2003, also in this processing, a correction is applied in which the enlargement rate & enlargement amount are not smaller than the lower limit value. The created parameter description is, for example, “transform=scale(1.2,1.4) translate(−40, −80)”. This description is the parameter description 2106 in which the enlargement rate & enlargement amount are changed without maintaining the aspect ratio, and the transparent frame 2105 is drawn using this parameter description.
When a desired parameter description cannot be obtained in step S2004, in step S2005, the electronic document description creation unit 404 forcibly changes the transparent frame to a figure (for example, rectangle) which circumscribes the object, and changes the setting so that a drawing description for supplementary explanation is added. For example, as shown in
In step S2006, the electronic document description creation unit 909 updates the parameter modified in steps S2001 to S2005 as a parameter description for describing the transparent frame that is included inside the document.
By the above processing, it is possible to automatically perform a highlight display in which the transparent frame does not protrude outside of the document and which is easy to understand for a user.
(Fifth Embodiment)
In the first embodiment, among the objects drawn by the vector path description, for objects having a small size or objects accompanied by an adjacent object, a transparent frame is created by reusing the vector path description of the object. In this embodiment, further, whether or not the vector path description of the object can be used for the transparent frame is determined, and the creation method of the transparent frame is controlled.
An operation flow of this embodiment will be described with reference to
From step S1201 to step S1204 in
In step S2201, the electronic document description creation unit 404 determines whether or not the vector path description of the contour portion (outer contour) can be extracted from the vector path description of the object. If the contour portion can be extracted, the process proceeds to step S2202, and if it cannot be extracted, the process proceeds to step S1206. This is because it is considered that, when the object has a complex shape, if the inside drawing of the object is reproduced, the frame highlighted during the search is superimposed on the hit object and displayed, and thus the hit object cannot be recognized. Therefore, the visibility is improved by using only the contour portion, which is a part of the object, to create the transparent frame.
In step S2202, the electronic document description creation unit 404 creates the vector path description of transparent frame by referring to (reusing) only the description of the contour portion which is apart of the vector path description of the object. The object 2302 in
On the other hand, in step S2201, if it is determined that the contour portion of the object is difficult to be extracted, in step S1206, the electronic document description creation unit 404 creates a transparent frame by referring to (reusing) the vector path description of a predetermined shape defined in advance. The object 2303 in
In step S1207, the electronic document description creation unit 404 creates a vector path description for adding supplementary information to the transparent frame created in step S2202 and step S1206. In particular, in step S2201, if it is determined that the contour portion of the object is difficult to be extracted, additional information is described here. This is because the transparent frame for highlighting is created using a predetermined shape, and thus when the object is small or there is another object near the object, it is impossible to identify what (which) object is hit in the search. Therefore, it is necessary to create an easy-to-understand display by, for example, adding a description of an arrow, and creating a transparent frame at a position where the transparent frame does not overlap the hit object itself by reusing the vector path description of the object without change. As a supplementary explanation for the transparent frame 2305 of the object 2303 in
In step S1208, processing for associating the caption identifier with the created transparent frame is performed.
A result of a search performed using a keyword “telephoto lens” on the electronic document 2300 created in the above processing will be briefly described. An anchor character string “FIG. 3” is associated with the object 2303. The anchor character string matches the character string “FIG. 3” written in the body text, so that “telephoto lens” is extracted as the caption character string for the object 2303. Then, the transparent frames 2305 to 2307 to which the same caption identifier as that of the caption character string “telephoto lens” is attached are hit as a search result, and highlighted. In this way, it is checked whether the vector path description of the object can be reused as a transparent frame, and if it can be reused, a transparent frame is created by reusing a part (contour portion) of the object path description of the object. If it cannot be reused, by disposing an arrow, an enlarged figure of the object, and the like near the object as supplementary information in addition to the vector path description of a predetermined shape, it is possible to create an electronic document in which the search result can be easily recognized and identified when the search is performed.
(Sixth Embodiment)
In the first to the fifth embodiments, the transparent frame reusing the vector path description of a predetermined shape is created. In this embodiment, a method will be described which creates a transparent frame more suitable to the shape of the object by analyzing the shape of the object and controlling the shape of the transparent frame.
A processing flow of this embodiment will be described with reference to
In step S2401, the electronic document description creation unit 404 performs analysis process of the object. The analysis process of the object includes analyses of the degree of rectangularity and the degree of circularity of the object, calculation of the degree of tilt, an analysis of color information of the object, or the like.
In step S2402, the electronic document description creation unit 404 creates a vector path description of a transparent frame suitable to the shape of the object.
In step S2501 in
In step S2502, the electronic document description creation unit 404 performs determination process of the degree of circularity of the object. If the degree of circularity is a predetermined threshold value or more (for example, the degree of circularity is 70% or more), the “circle” data 2511 is selected as a predetermined shape. If the degree of circularity is less than the threshold value, the “hexagon” data 2512 is selected as a predetermined shape.
In step S2503, the electronic document description creation unit 404 creates a vector path description of transparent frame by reusing the predetermined shape data selected in the above described steps.
In step S2504, the electronic document description creation unit 404 creates a rotation parameter for creating a transparent frame more suitable to the object by using the degree of tilt of the object calculated in step S2401 in
In step S2505, the electronic document description creation unit 404 determines a color combination so that the object can be seen easily as much as possible when highlighted on the basis of the color information of the object obtained in step S2401 in
In the description of this embodiment, the predetermined shapes are limited to “rectangle”, “circle”, and “hexagon”. However, the predetermined shapes are not limited to those, and a star shape, a cloud shape, and the like may be used. The items of the analysis and the selection method of the predetermined shape are not limited to those described above.
By the processing described above, the frame highlighted during the search becomes more suitable to the shape of the target object while reducing the file size when the frame is created, so that it is possible to realize a highlighted expression that is easy to understand for a user.
(Seventh Embodiment)
In the first to the sixth embodiments, the most suitable transparent frame, which is described in the object area on the basis of the position and the size of the object area and information obtained by image-processing the object, is automatically created. In a seventh embodiment of the present invention, a mechanism in which a user can freely set the shape, the line width, and the like of the transparent frame to be described is provided.
As a result, in the “Auto” operation, an electronic document in which the user can easily recognize and identify the object hit in the search is created. On the other hand, in the “User Setting” operation, one vector path description is defined as a predetermined shape, and the vector path description is referred to when creating any one of all the frames, so that the file size is reduced. Further, determination process of the creation method of the frame or the shape of the frame is not performed for each object, so that it is expected that the processing performance when the output electronic document is created improves.
(Other Embodiments)
Aspects of the present invention can also be realized by a computer of a system or apparatus (or devices such as a CPU or MPU) that reads out and executes a program recorded on a memory device to perform the functions of the above-described embodiment (s), and by a method, the steps of which are performed by a computer of a system or apparatus by, for example, reading out and executing a program recorded on a memory device to perform the functions of the above-described embodiment(s). For this purpose, the program is provided to the computer for example via a network or from a recording medium of various types serving as the memory device (e.g., computer-readable medium).
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2010-000489, filed Jan. 5, 2010, which is hereby incorporated by reference herein in its entirety.
Misawa, Reiji, Kanatsu, Tomotoshi, Sohma, Hidetomo, Kosaka, Ryo
Patent | Priority | Assignee | Title |
D737842, | Mar 14 2013 | Microsoft Corporation | Display screen with graphical user interface |
Patent | Priority | Assignee | Title |
5669005, | May 10 1993 | Apple Inc | System for automatically embedding or incorporating contents added to a document |
6178434, | Feb 13 1997 | Ricoh Company, LTD | Anchor based automatic link generator for text image containing figures |
6510243, | Apr 24 1998 | Canon Kabushiki Kaisha | Image processing apparatus for managing image data |
6519360, | Sep 17 1997 | Minolta Co., Ltd. | Image processing apparatus for comparing images based on color feature information and computer program product in a memory |
6807303, | Feb 01 1999 | PANTECH INC | Method and apparatus for retrieving multimedia data using shape information |
7047238, | Feb 21 2002 | Hitachi, LTD; HITACHI SYSTEMS & SERVICES, LTD | Document retrieval method and document retrieval system |
7051048, | Sep 29 2000 | Canon Kabushiki Kaisha | Data management system, data management method, and program |
7349577, | Feb 21 2003 | Canon Kabushiki Kaisha | Image processing method and image processing system |
7391917, | Feb 13 2003 | Canon Kabushiki Kaisha | Image processing method |
7664321, | Jan 31 2003 | Canon Kabushiki Kaisha | Image processing method, system, program, program storage medium and information processing apparatus |
7664738, | Dec 07 2004 | Canon Kabushiki Kaisha | Search system, information processing apparatus, control method therefor, and program |
7680331, | May 25 2004 | Fuji Xerox Co., Ltd. | Document processing device and document processing method |
8135240, | Aug 28 2007 | Ricoh Company, Ltd. | Image searching device, method and recording medium |
8213690, | Oct 02 2007 | Sony Corporation | Image processing apparatus including similarity calculating unit, image pickup apparatus, and processing method for the apparatuses |
20010003182, | |||
20020136458, | |||
20030098862, | |||
20030215144, | |||
20040100656, | |||
20040220898, | |||
20050251748, | |||
20050265602, | |||
20060007481, | |||
20060062453, | |||
20060114484, | |||
20070146389, | |||
20080180707, | |||
20080212899, | |||
20080222095, | |||
20080247675, | |||
20080285855, | |||
20080304753, | |||
20090284787, | |||
20100104266, | |||
20100202015, | |||
20100239160, | |||
CN101377787, | |||
CN1702682, | |||
GB2444535, | |||
JP10228473, | |||
JP1091766, | |||
JP11306197, | |||
JP2001103469, | |||
WO2006127480, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Dec 13 2010 | KOSAKA, RYO | Canon Kabushiki Kaisha | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 026132 | /0555 | |
Dec 13 2010 | MISAWA, REIJI | Canon Kabushiki Kaisha | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 026132 | /0555 | |
Dec 15 2010 | KANATSU, TOMOTOSHI | Canon Kabushiki Kaisha | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 026132 | /0555 | |
Dec 15 2010 | SOHMA, HIDETOMO | Canon Kabushiki Kaisha | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 026132 | /0555 | |
Dec 20 2010 | Canon Kabushiki Kaisha | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Mar 13 2015 | ASPN: Payor Number Assigned. |
Jun 08 2017 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Aug 16 2021 | REM: Maintenance Fee Reminder Mailed. |
Jan 31 2022 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Dec 24 2016 | 4 years fee payment window open |
Jun 24 2017 | 6 months grace period start (w surcharge) |
Dec 24 2017 | patent expiry (for year 4) |
Dec 24 2019 | 2 years to revive unintentionally abandoned end. (for year 4) |
Dec 24 2020 | 8 years fee payment window open |
Jun 24 2021 | 6 months grace period start (w surcharge) |
Dec 24 2021 | patent expiry (for year 8) |
Dec 24 2023 | 2 years to revive unintentionally abandoned end. (for year 8) |
Dec 24 2024 | 12 years fee payment window open |
Jun 24 2025 | 6 months grace period start (w surcharge) |
Dec 24 2025 | patent expiry (for year 12) |
Dec 24 2027 | 2 years to revive unintentionally abandoned end. (for year 12) |