This application is based on and claims priority under 35 USC 119 from Japanese Patent Application No. 2010-052066 filed on Mar. 9, 2010.
1. Technical Field
The present invention relates to an image processing apparatus, an image processing method, and a storage medium.
2. Related Art
Techniques have been proposed for separating plural image components from electronic document data obtained by reading-in and digitizing original images that include plural image components having different attributes, such as photographs, lines, text, tables and the like, and then generating electronic document data by handling the separated image components as units.
The present invention improves reusability during reuse of separated image components.
An image processing apparatus of a first aspect of the present invention includes: a separation section that separates image components having different attributes contained in electronic document data expressing an original image; a selection section that selects which mode from plural modes including a reusability emphasis mode for performing predetermined re-laying out of the image components with emphasis on reusability; and a generation section that re-lays the image components separated by the separation section according to the mode selected by the selection section, and generates software data corresponding to software for use.
Exemplary embodiments of the present invention will be described in detail based on the following figures, wherein:
Detailed explanation follows of an example of an exemplary embodiment of the present invention, with reference to the drawings.
An image processing apparatus 10 according to the present exemplary embodiment, as shown in
The image input device 12 inputs electronic document data expressing an original image. For example, the image input device 12 may be configured with an image reading-in device that reads-in an original image and converts it into electronic document data, or configured with a storage medium on which electronic document data is stored.
The storage device 14 is stored with electronic document data input by the image input device 12 and is also stored, for example, with a program for separating plural image components with different attributes contained in the electronic document data (image components with different attributes such as text, graphics such as computer graphics (CG), lines, photographs, tables and the like) and generating electronic document data of a format enabling reuse of the image components. Such a program is for execution by the controller 22.
The communication section 16 is connected to a communication unit, such as, for example, a network, and the communication section 16 is communicated with external data processing devices (such as, for example, a personal computer, an image forming device and the like) via the communication unit, and data is transmitted and received.
The operation section 18 includes operation buttons and a display device, and, for example, various settings are made to the image processing apparatus 10, execution of the above described program is instructed, and the like, by operation of the operation buttons according to data displayed on the display device.
The working storage area 20 functions as a working storage area when the above described program is being executed, and functions as a working storage area when the controller 22 is performing various control operations of the image processing apparatus 10.
The controller 22 of the image processing apparatus 10 functions as: a read-in image data acquiring section 24; a layout analyzing section 26; an image component type determination section 28; various data generation sections 30 that perform data generation by type of image component (a text data generation section 30A, a graphic (CG) data generation section 30B, a line data generation section 30C, a photograph data generation section 30D, a table data generation section 30E); an inter-page layout changing section 32, and a software data generation section 34.
The read-in image data acquiring section 24 acquires electronic document data input by, for example, the image input device 12 or the like, and acquires electronic document data stored, for example, on a storage medium or the like.
The layout analyzing section 26 analyzes the electronic document data acquired by the read-in image data acquiring section 24, and determines regions of image components by extracting regions of, for example, text, graphics (CG), lines, photographs and the like. The analyzing section 26 employs known techniques capable of determining image component regions. For example, the image component regions can be determined by processing of binarization and labeling the electronic document data, then connecting images that have been label processed.
The image component type determination section 28 determines the type of the image components, based on various characteristic amounts, such as the density distribution of the image components and the like, separates the image components, and applies attributes thereto. The type of the image component can also be determined in the determination section 28 using a known technique. For example, employable techniques are included: for example, a technique described in JP-A No. 9-91450, utilizing characteristic amounts on an image such as, for example, position, size, shape, construction, density distribution, or the like; and a technique described in JP-A No. 2002-300408, utilizing a layout analysis method in which, as pre-processing during text recognition used in optical character recognition, text images are classified into text regions, and photograph, graphic and table regions. As the type of image component for determination there are, for example, text, graphics (CG), lines, photographs, tables, and the like.
The various data generation sections 30 (the text data generation section 30A, the graphic (CG) data generation section 30B, the line data generation section 30C, the photograph data generation section 30D, the table data generation section 30E) generate data according to the type of each of the image component determined by the image component type determination section 28. Note that when there are image components corresponding to plural types of attribute, configuration may be made such that data is generated for the image components in the expression format corresponding to the respective type.
The inter-page layout changing section 32 re-lays out the data generated by each of the various data generation sections 30 with the expression format corresponding to the type of the image component. For example, in cases where an original layout emphasis mode is selected by the operation section 18, to accurately represent the layout of an original, a layout matching that of the original is determined, and in cases where a predetermined reusability emphasis mode is selected by the operation section 18, a layout is determined by each type of image component, such that the image components separated by the image component type determination section 28 are easily utilized when reusing the image components. Namely, in the reusability emphasis mode, each of the image components, such as text, graphic, line, photograph and table image components, are extracted by type of the image component, and the image components are laid-out on separate pages by type of the image component, so as to give page(s) in which the text image components are collected together, page(s) in which the graphic image components are collected together, and so on, or the particular image components that have been designated by the operation section 18 are extracted and laid out thus.
The software data generation section 34, re-lays out the data generated by the various data generation sections 30 according to the layout determined by the inter-page layout changing section 32, and generates software data corresponding to software designated by the operation section 18.
Normally, in cases where various types of image component included in an original image are being separated and reused, as shown in
Furthermore, in cases where the image components have been separated, cases arise in which text data processed as a character is laid out overlaying a graphic image component, as shown in
However, the image processing apparatus 10 according to the present exemplary embodiment has a reusability emphasis mode for use in the software data generation section 34 for converting to software data, this being a layout mode that facilitates reuse of the image components. When this reusability emphasis mode has been selected, plural image components included in the original image are separated, and, as described above, the inter-page layout changing section 32 changes the layout of the image components by the type of the image component and generates the software data. Due thereto, since the respective image components are collected together by the type of the image component, cumbersome operation when reusing the image components is suppressed.
Explanation follows regarding a configuration of the operation section 18 for instructing the above described reusability emphasis mode, and the like.
The operation section 18 is configured including a display section for displaying a screen for performing various settings, and the various settings are performed by operation of the operation section 18. The display section provided to the operation section 18 displays, for example, a setting screen like that shown in
In the example of
One or other of “spreadsheet”, “word processing”, “presentation” and “image component compliant software” is selectable for “output data format”, such that the data format of the data for output is selectable. Namely, one or other of spreadsheet software, word processing software, presentation software, or image component compliant software corresponding to the type of image component, is selectable as the output format.
One or other of “original layout emphasis mode” or “reusability emphasis mode” is selectable for “output mode”. When original layout emphasis mode has been selected, the electronic document data expressing the original image input by the image input device 12 is generated with software data according to the output data format. When reusability emphasis mode has been selected, so as to facilitate use during reuse of separated image components, the image components included in the original image are re-laid out by type of image component, and software data is generated according to the output data format. Note that while explanation is given in the present exemplary embodiment of an example in which there are two modes of “output mode”, there is no limitation to two modes, and configuration may be made with three of more types of mode provided. For example, configuration may be made such that a further mode is provided that generates software data according to the original layout emphasis mode as well as generating software data according to the reusability emphasis mode.
In “designated image component”, one or more option is/are selectable from “all”, “photographs”, “graphics”, “text”, and “tables”, and in cases where the reusability emphasis mode has been selected, the user desired type of image component is settable. Namely, in cases where the reusability emphasis mode has been selected, it is possible to extract desired type(s) of image component for conversion into software data.
Explanation follows regarding the processing performed by the image processing apparatus 10 according to the exemplary embodiment of the present invention, configured as described above.
At step 100, acquisition of original image data is performed according to the settings, and processing then proceeds to step 102. For example, whether to acquire an original image read-in by an image reading-in device as electronic document data, or whether to acquire electronic document data stored, for example, in the storage device 14, is settable by selecting the “reading-in method” on the setting screen in
At step 102, image component separation is performed and processing proceeds to step 104. In image component separation, analysis is performed on the acquired electronic document data by the layout analyzing section 26, regions of text, graphics (CG), lines, photographs, tables and the like, are extracted and image component regions determined, with the image components being extracted by the image component type determination section 28. Then, data of expression format according to the type of each image component is generated by the various data generation sections 30 (the text data generation section 30A, the CG data generation section 30B, the line data generation section 30C, the photograph data generation section 30D and the table data generation section 30E).
At step 104, determination is made as to whether or not reusability emphasis mode has been set. It is determined whether or not the operation section 18 has been operated to set the reusability emphasis mode. When negative determination is made (in the present exemplary embodiment: when the original layout emphasis mode has been set), processing proceeds to step 106, and when affirmative determination is made processing proceeds to step 108.
At step 106, a file of the designated format is generated in which the image components have been re-laid out, and processing proceeds to step 114. Namely, data in the expression format according to the type of each of the image components generated by the various data generation sections 30 (the text data generation section 30A, the CG data generation section 30B, the line data generation section 30C, the photograph data generation section 30D and the table data generation section 30E) is re-laid out in a similar manner to as in the original image, and the software data generation section 34 generates a file (software data) according to the output data format designated by the operation section 18. The image components are thus re-laid out in a reusable format, and the original image is accurately reproduced.
At step 108, determination is made as to whether or not to extract particular type(s) of image component. It is determined whether “designated image components” (one or more option from “all”, “photographs”, “graphics”, “text”, and “tables”) has been selected on the setting screen shown in
At step 110, the particular type(s) of image components are extracted and re-laid out, a file of the designated format is generated, and processing proceeds to step 114. Namely, the inter-page layout changing section 32 extracts the type(s) of image component designated by the operation section 18 and re-lays out the data of the expression format according to the type of image component, and the software data generation section 34 generates a file (software data) according to the output data format designated by the operation section 18. In cases where plural “designated image components” have been designated, configuration may be made such that the image components are re-laid out with a page separation by type of image component, and a file is generated according to the output data format.
At step 112, the image components are re-laid out by their type, a file of the designated format is generated, and processing proceeds to step 114. Namely, the inter-page layout changing section 32 extracts the image components by type and re-lays out the data of the expression format according to image component type, and the software data generation section 34 generates a file (software data) according to the output data format designated by the operation section 18. For example, in a case of an original image with page 1 like that shown in
Then, at step 114, file(s) generated at one or other of steps 106, 110, and 112 are output, completing one cycle of processing. Configuration may be made such that, for example, the output destination of the file(s) is output and storage on the storage device 14, output to a predetermined output destination, or output to an output destination preset by the operation section 18.
In this manner, with the image processing apparatus 10 according to the present exemplary embodiment, finding the required image component is facilitated when reusing image components in cases in which reusability emphasis mode is selected, since the image components are re-laid out according to type of image component, improving reusability during reuse.
Note that while explanation has been given with reference to an image processing apparatus in the above exemplary embodiments, application may be made to an image forming apparatus provided with an image reading-in device for reading-in original images.
Furthermore, while explanation has been given in the above exemplary embodiments of processing performed by execution of a program, there is no limitation thereto, and configuration may be made with hardware execution.
The foregoing description of the exemplary embodiments of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Obviously, many modifications and variations will be apparent to practitioners skilled in the art. The exemplary embodiments were chosen and described in order to best explain the principles of the invention and its practical applications, thereby enabling others skilled in the art to understand the invention for various embodiments and with the various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
2010-052066 | Mar 2010 | JP | national |