JP5541202B2 - Spreadsheet data generation apparatus and program - Google Patents
Spreadsheet data generation apparatus and program Download PDFInfo
- Publication number
- JP5541202B2 JP5541202B2 JP2011058432A JP2011058432A JP5541202B2 JP 5541202 B2 JP5541202 B2 JP 5541202B2 JP 2011058432 A JP2011058432 A JP 2011058432A JP 2011058432 A JP2011058432 A JP 2011058432A JP 5541202 B2 JP5541202 B2 JP 5541202B2
- Authority
- JP
- Japan
- Prior art keywords
- ruled line
- ruled
- spreadsheet
- data generation
- column direction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 claims description 93
- 238000012545 processing Methods 0.000 claims description 44
- 230000010354 integration Effects 0.000 claims description 37
- 230000007423 decrease Effects 0.000 claims description 3
- 230000010365 information processing Effects 0.000 claims description 3
- 238000012937 correction Methods 0.000 description 43
- 230000006870 function Effects 0.000 description 20
- 238000004519 manufacturing process Methods 0.000 description 10
- 238000007796 conventional method Methods 0.000 description 5
- 239000000284 extract Substances 0.000 description 4
- 230000003247 decreasing effect Effects 0.000 description 3
- 238000003860 storage Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000001788 irregular Effects 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000032823 cell division Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004140 cleaning Methods 0.000 description 1
- 238000013144 data compression Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Document Processing Apparatus (AREA)
Description
本発明は、1枚のスプレッドシート上に複数の表を配置したスプレッドシート形式のデータを生成するスプレッドシートデータ生成装置およびプログラムに関する。 The present invention relates to a spreadsheet data generation apparatus and program for generating spreadsheet format data in which a plurality of tables are arranged on one spreadsheet.
原稿をスキャナで読み取って電子化する技術において、読み取った画像データから表領域を抽出して対応するスプレッドシート形式のファイルを自動生成する機能の要請がある。 In the technology of reading a document with a scanner and digitizing it, there is a demand for a function for automatically generating a spreadsheet file by extracting a table area from the read image data.
表を含む画像データをスプレッドシート形式のファイルに変換する際、その表を構成する罫線に合わせて、スプレッドシートのセル幅とセル高さを設定する必要がある。原稿に含まれる表には不定形のものも多く含まれるため、その対応が必要になる。 When converting image data including a table into a spreadsheet format file, it is necessary to set the cell width and cell height of the spreadsheet in accordance with the ruled lines constituting the table. The table included in the manuscript contains many irregular forms, so it is necessary to deal with it.
不定形の表に対応する技術としては、たとえば、原稿のイメージデータに含まれる表を分析し、該表で用いられている全てのセルを整数値で分割できるセル幅/セル高を有するセルの内、最も大きいセルを最小セルに設定する。そして、この最小セルを隙間無く配置したスプレッドシートを構成し、元の表で使用されていた各種サイズのセルを、最小セルを複数組み合わせて構成することで、スプレッドシート形式のデータを自動生成する技術がある(たとえば、特許文献1参照。)。 As a technique corresponding to the irregular table, for example, a table included in the image data of a document is analyzed, and a cell having a cell width / cell height that can divide all cells used in the table by an integer value is used. Among them, the largest cell is set as the smallest cell. Then, a spreadsheet in which the minimum cells are arranged without gaps is configured, and spreadsheet format data is automatically generated by combining cells of various sizes used in the original table by combining multiple minimum cells. There is a technique (for example, refer to Patent Document 1).
また、貼り付け元のスプレッドシートに、他のスプレッドシートを貼り付ける際に、貼り付けられる側の表の構成情報と貼り付ける側の表の構成情報とをそれぞれ取得し、どちらも同時に表現可能なセルの数と幅に分離してスプレッドシートを再設定する技術がある(たとえば、特許文献2参照。)。 Also, when pasting another spreadsheet into the pasting source spreadsheet, the configuration information of the pasting table and the pasting table configuration information are acquired respectively, and both can be expressed simultaneously. There is a technique in which a spreadsheet is reset by separating the number and width of cells (see, for example, Patent Document 2).
1枚の原稿に含まれる複数の表を1枚のスプレッドシートにまとめる、あるいは、複数枚の原稿から読み取った複数の表を1枚のスプレッドシートにまとめる、あるいは、複数のスプレッドシートを1枚にまとめるなどのように、1枚のスプレッドシート上に複数の表を混在させる場合、罫線の位置は各表で相違する場合が多く一致しない。そのため、特許文献1、2の技術では、スプレッドシート上に設定されるセル構成が細かくなって扱いにくくなる。 Combine multiple tables contained in a single document into a single spreadsheet, combine multiple tables read from multiple documents into a single spreadsheet, or combine multiple spreadsheets into a single sheet When a plurality of tables are mixed on a single spreadsheet, such as collecting them, the positions of ruled lines are often different in each table and do not match. Therefore, in the techniques of Patent Documents 1 and 2, the cell configuration set on the spreadsheet becomes fine and difficult to handle.
たとえば、特許文献1の技術では、図16に示すように、複数の表が含まれる1枚の原稿(同図左側)からスプレッドシート形式のデータ(同図右側)を生成すると、破線で示すように、スプレッドシート全体が最小セル単位に分割されてしまう。 For example, in the technique of Patent Document 1, as shown in FIG. 16, when spreadsheet data (right side) is generated from one original (left side) including a plurality of tables, it is indicated by a broken line. In addition, the entire spreadsheet is divided into minimum cell units.
特に、紙原稿を読み込んでスプレッドシート形式の電子データに変換する場合には、同じレイアウトの原稿を連続読み込みしたとしても搬送時の位置ずれにより各原稿の罫線位置が完全に一致することは望めない。また、向きや倍率の異なる混載原稿がスキャンされることもある。そのため、読み取り原稿から複数の表を混在させたスプレッドシートを自動生成すると、セルの構成が細かくなりやすい。 In particular, when a paper document is read and converted into electronic data in a spreadsheet format, even if documents with the same layout are continuously read, the ruled line positions of each document cannot be perfectly matched due to misalignment during conveyance. . Also, mixed originals with different orientations and magnifications may be scanned. For this reason, if a spreadsheet in which a plurality of tables are mixed from a read document is automatically generated, the cell configuration tends to be fine.
微小サイズのセル数の増大は、単にファイルを開き表示するのみであれば問題は少ない。しかし、紙原稿をスキャンし、スプレッドシート形式の電子データに変換する場合、該電子データの用途が後の編集にあることが多いので、セル構成が複雑になると、編集時の取り扱いが難しくなって影響が大きい。 Increasing the number of micro-sized cells is not a problem as long as the file is simply opened and displayed. However, when a paper document is scanned and converted into electronic data in a spreadsheet format, the electronic data is often used for later editing. Therefore, if the cell configuration becomes complicated, handling at the time of editing becomes difficult. A large impact.
本発明は、上記の問題を解決しようとするものであり、微小セルの発生やセル構成の細分化を回避しつつ複数の表を混在させたスプレッドシートのデータを自動生成することのできるスプレッドシートデータ生成装置およびプログラムを提供することを目的としている。 The present invention is intended to solve the above-described problem, and a spreadsheet capable of automatically generating spreadsheet data in which a plurality of tables are mixed while avoiding the generation of minute cells and subdivision of the cell configuration. An object is to provide a data generation device and a program.
かかる目的を達成するための本発明の要旨とするところは、次の各項の発明に存する。 The gist of the present invention for achieving the object lies in the inventions of the following items.
[1]1枚のスプレッドシート上に配置する複数の表の各罫線および罫線位置を取得して表毎に分類し、
前記取得した罫線の中から異なる表に属する2つの罫線の組を選択し、この2つの罫線の罫線位置が相違しかつその差分が所定の変更許容範囲内に収まる場合に、該2つの罫線のいずれか一方または双方の罫線位置を移動させて前記2つの罫線の罫線位置を1つの罫線位置に統合する統合処理を、1組以上について行い、
前記統合処理終了後の罫線位置に従ってセルを設定したスプレッドシートデータを生成する
ことを特徴とするスプレッドシートデータ生成装置。
[1] Acquire each ruled line and ruled line position of a plurality of tables arranged on one spreadsheet and classify them for each table.
When a set of two ruled lines belonging to different tables is selected from the acquired ruled lines, and the ruled line positions of the two ruled lines are different and the difference is within a predetermined change allowable range, the two ruled lines One or both of the ruled line positions are moved, and the integration process for integrating the ruled line positions of the two ruled lines into one ruled line position is performed for one or more sets.
Spreadsheet data in which cells are set in accordance with the ruled line position after completion of the integration process is generated.
上記発明では、異なる表に属する2つの罫線の罫線位置の差分が変更許容範囲内であれば、いずれか一方または双方の罫線の罫線位置を移動修正して2つの罫線の罫線位置を1つの罫線位置に統合する。これにより、セルの分割数が減少し、編集に適したスプレッドシートデータを生成することができる。 In the above invention, if the difference between the ruled line positions of two ruled lines belonging to different tables is within the change allowable range, the ruled line position of one or both ruled lines is moved and corrected to change the ruled line position of the two ruled lines to one ruled line. Integrate into position. As a result, the number of cell divisions is reduced, and spreadsheet data suitable for editing can be generated.
[2]複数の表が含まれる1ページの画像データもしくはそれぞれ表を含む複数ページの画像データから複数の表を検出し、該検出した複数の表を、前記1枚のスプレッドシート上に配置する複数の表として処理する
ことを特徴とする[1]に記載のスプレッドシートデータ生成装置。
[2] A plurality of tables are detected from one page of image data including a plurality of tables or a plurality of pages of image data each including a table, and the detected plurality of tables are arranged on the one spreadsheet. The spreadsheet data generation device according to [1], wherein the spreadsheet data generation device is processed as a plurality of tables.
上記発明では、複数の表が含まれる1ページの画像データ(イメージデータ)もしくはそれぞれ表を含む複数ページの画像データから複数の表を検出し、それら検出した複数の表を1枚スプレッドシート上に配置したスプレッドシートデータを生成する。 In the above invention, a plurality of tables are detected from one page of image data (image data) including a plurality of tables or a plurality of pages of image data each including a table, and the detected plurality of tables are placed on one spreadsheet. Generate the arranged spreadsheet data.
[3]基準とする表を決定し、
前記基準とする表に属する罫線と他の表に属する罫線とを、前記組にする
ことを特徴とする[1]または[2]に記載のスプレッドシートデータ生成装置。
[3] Decide the standard table,
The spreadsheet data generation apparatus according to [1] or [2], wherein the ruled lines belonging to the reference table and the ruled lines belonging to another table are set as the set.
上記発明では、基準表に含まれる罫線(基準線)の位置に、他の表の罫線の位置が、変更許容範囲内において修正される。基準表を特定することで処理が容易になる。 In the above invention, the position of the ruled line in the other table is corrected within the change allowable range to the position of the ruled line (reference line) included in the reference table. By specifying the reference table, processing becomes easy.
[4]前記統合を列方向に行う場合は、列方向の罫線数が最多の表を前記基準の表に決定し、
前記統合を行方向に行う場合は、行方向の罫線数が最多の表を前記基準の表に決定する
ことを特徴とする[3]に記載のスプレッドシートデータ生成装置。
[4] When the integration is performed in the column direction, a table having the largest number of ruled lines in the column direction is determined as the reference table.
In the case where the integration is performed in the row direction, the table having the largest number of ruled lines in the row direction is determined as the reference table. The spreadsheet data generating device according to [3].
上記発明では、罫線の数が多い表を基準表にすれば、他の表の罫線位置を基準表の罫線に合わせる場合の移動量が少なくて済む。また、基準線が多いので、変更許容範囲内に収まる可能性が高くなる。 In the above invention, if a table having a large number of ruled lines is used as a reference table, the amount of movement when aligning the ruled line positions of other tables with the ruled lines of the reference table can be reduced. Further, since there are many reference lines, there is a high possibility of being within the change allowable range.
[5]基準の表を変更して、前記統合処理を再度行う
ことを特徴とする[3]または[4のいずれか1つ]に記載のスプレッドシートデータ生成装置。
[5] The spreadsheet data generation device according to [3] or [4], wherein the standard table is changed and the integration process is performed again.
上記発明では、ある基準表では変更許容範囲内に収まらずに位置修正されなかった罫線が、他の表を基準表とすることで変更許容範囲内に収まって位置修正される場合があり、セルの分割数を少なくすることができる。特に、全ての表が基準表になるように基準表を順次切り替えれば、位置修正されずに残る罫線の数をより少なくすることができる。 In the above invention, a ruled line that is not within the change allowable range in one reference table and has not been corrected in position may be corrected within the change allowable range by using another table as a reference table. The number of divisions can be reduced. In particular, if the reference tables are sequentially switched so that all the tables become reference tables, the number of ruled lines remaining without being corrected in position can be reduced.
[6]前記組にされた2つの罫線のうち、前記基準とする表の罫線の罫線位置に、他の表の罫線の罫線位置を合わせる
ことを特徴とする[3]乃至[5]のいずれか1つに記載のスプレッドシートデータ生成装置。
[6] Any one of [3] to [5], wherein, among the two ruled lines in the set, the ruled line position of the other table ruled line is aligned with the ruled line position of the reference table ruled line The spreadsheet data generation apparatus as described in any one.
[7]前記組にされた2つの罫線の罫線位置をこれらの中間位置に統合する
ことを特徴とする[1]乃至[5]のいずれか1つに記載のスプレッドシートデータ生成装置。
[7] The spreadsheet data generation device according to any one of [1] to [5], wherein the ruled line positions of the two ruled lines in the set are integrated into an intermediate position thereof.
上記発明では、2つの罫線の位置が互いに歩み寄るので、罫線位置の修正により、一方のセルだけが小さくなってしまう、といったことが防止される。 In the above invention, since the positions of the two ruled lines approach each other, it is prevented that only one cell becomes small due to the correction of the ruled line position.
[8]前記組にされた2つの罫線のうち、一方の罫線の罫線位置を他方の罫線の罫線位置に移動させた場合に該移動させた罫線を枠線に含むセルであってサイズが小さくなるセルの数が少なくなる方の罫線を、移動させる側の罫線にして前記統合を行う
ことを特徴とする[1]乃至[5]のいずれか1つに記載のスプレッドシートデータ生成装置。
[8] Of the two ruled lines in the set, when the ruled line position of one ruled line is moved to the ruled line position of the other ruled line, the cell includes the moved ruled line in the frame and has a small size. The spreadsheet data generating apparatus according to any one of [1] to [5], wherein the integration is performed by using a ruled line having a smaller number of cells as a ruled line on a moving side.
上記発明では、罫線の位置修正によってセルサイズが小さくなり難くなる。セル内への文字の格納性に対する影響を少なくできる。 In the above invention, it is difficult to reduce the cell size by correcting the position of the ruled line. The influence on the storage property of the character in the cell can be reduced.
[9]差分の少ない組から優先して前記統合処理を行う
ことを特徴とする[1]乃至[8]のいずれか1つ記載のスプレッドシートデータ生成装置。
[9] The spreadsheet data generation device according to any one of [1] to [8], wherein the integration processing is performed in preference to a set having a small difference.
上記発明では、より差分の少ない組の罫線が優先的に位置修正されるので、罫線位置の修正量を少なくすることができる。 In the above invention, the ruled line of a set with a smaller difference is preferentially corrected in position, so that the correction amount of the ruled line position can be reduced.
[10]セル数が所定の上限数以下に収まるまで前記統合処理を繰り返すと共に、現在の変更許容範囲で前記統合処理を行ってもセル数が減少しなくなったときは前記変更許容範囲を広げる
ことを特徴とする[1]乃至[9]のいずれか1つに記載のスプレッドシートデータ生成装置。
[10] Repeat the integration process until the number of cells falls below a predetermined upper limit number, and widen the change allowable range when the number of cells does not decrease even if the integration process is performed within the current allowable change range. The spreadsheet data generation device according to any one of [1] to [9], wherein:
上記発明では、セル数が許容範囲に収まるまで、罫線位置の修正が行われる。すなわち、セル数優先で罫線位置が修正される。なお、セル数が減少しなくなったときに変更許容範囲を広げることで、位置修正される罫線が増加し、セル数を減少させることができる。 In the above invention, the ruled line position is corrected until the number of cells falls within the allowable range. That is, the ruled line position is corrected with priority on the number of cells. It should be noted that by expanding the change allowable range when the number of cells no longer decreases, the number of ruled lines whose positions are corrected is increased, and the number of cells can be decreased.
[11]行方向の統合処理で使用する変更許容範囲と、列方向の統合処理で使用する変更許容範囲とを個別に設定し得る
ことを特徴とする[1]乃至[10]のいずれか1つに記載のスプレッドシートデータ生成装置。
[11] Any one of [1] to [10], wherein the change allowable range used in the row direction integration process and the change allowable range used in the column direction integration process can be individually set. The spreadsheet data generator described in 1.
上記発明では、行方向と列方向のそれぞれに適した変更許容範囲を設定することができる。 In the above invention, it is possible to set a change allowable range suitable for each of the row direction and the column direction.
[12]列方向、行方向の順に、または行方向、列方向の順に、両方向について前記統合処理を行う
ことを特徴とする[1]乃至[11]のいずれか1つに記載のスプレッドシートデータ生成装置。
[12] The spreadsheet data according to any one of [1] to [11], wherein the integration processing is performed in both directions in the column direction and the row direction or in the row direction and the column direction. Generator.
[13]列方向にのみ前記複数の表の存在する場合は、列方向にのみ前記統合処理を行い、
行方向にのみ前記複数の表が存在する場合は、行方向にのみ前記統合処理を行う
ことを特徴とする[1]乃至[11]のいずれか1つに記載のスプレッドシートデータ生成装置。
[13] When the plurality of tables exist only in the column direction, the integration process is performed only in the column direction;
The spreadsheet data generation device according to any one of [1] to [11], wherein when the plurality of tables exist only in a row direction, the integration processing is performed only in the row direction.
上記発明では、統合不要な方向の統合処理は省略される。 In the above invention, the integration process in the direction that does not require integration is omitted.
[14]前記変更許容範囲を複数段階に分けて設定する
ことを特徴とする[1]乃至[13]のいずれか1つに記載のスプレッドシートデータ生成装置。
[14] The spreadsheet data generation device according to any one of [1] to [13], wherein the change allowable range is set in a plurality of stages.
[15]前記変更許容範囲を、移動させる罫線を枠線に含みかつ該罫線の前記移動させる側にあるセルのサイズに応じて、変更する
ことを特徴とする[1]乃至[14]のいずれか1つに記載のスプレッドシートデータ生成装置。
[15] Any one of [1] to [14], wherein the change allowable range is changed according to a size of a cell including a ruled line to be moved in a frame line and on the side to which the ruled line is moved. The spreadsheet data generation apparatus as described in any one.
上記発明では、罫線を移動させることでセルサイズが小さくなる場合、そのセルのセルサイズに応じて、変更許容範囲が変更される。大きいセルはより大きく罫線位置を修正してもその影響が文字の格納性などに及び難いことによる。 In the above invention, when the cell size is reduced by moving the ruled line, the change allowable range is changed according to the cell size of the cell. This is because, even if the ruled line position is corrected to a larger cell, the influence of the large cell on the storage property of characters is difficult.
[16]列方向の罫線の統合処理では、列方向の境界線でスプレッドシートを複数のエリアに分割し、エリア毎に基準の表を設定し、
行方向の罫線の統合処理では、行方向の境界線でスプレッドシートを複数のエリアに分割し、エリア毎に基準の表を設定する
ことを特徴とする[3]乃至[5]のいずれか1つに記載のスプレッドシートデータ生成装置。
[16] In the integration process of ruled lines in the column direction, the spreadsheet is divided into a plurality of areas at the boundary lines in the column direction, and a reference table is set for each area.
In any one of [3] to [5], in the integration processing of ruled lines in the row direction, the spreadsheet is divided into a plurality of areas along the boundary line in the row direction, and a reference table is set for each area. The spreadsheet data generator described in 1.
上記発明では、エリア毎に、そのエリアに適した基準表により罫線位置が修正される。 In the above invention, the ruled line position is corrected for each area by the reference table suitable for the area.
[17]情報処理装置を、
1枚のスプレッドシート上に配置する複数の表の各罫線および罫線位置を取得して表毎に分類する機能と、
前記取得した罫線の中から異なる表に属する2つの罫線の組を選択し、この2つの罫線の罫線位置が相違しかつその差分が所定の変更許容範囲内に収まる場合に、該2つの罫線のいずれか一方または双方の罫線位置を移動させて前記2つの罫線の罫線位置を1つの罫線位置に統合する統合処理を、1組以上について行う機能と、
前記統合処理終了後の罫線位置に従ってセルを設定したスプレッドシートデータを生成する機能と、
を実行させる
ことを特徴とするプログラム。
[17] An information processing apparatus
A function of acquiring each ruled line and ruled line position of a plurality of tables to be arranged on one spreadsheet and classifying them for each table;
When a set of two ruled lines belonging to different tables is selected from the acquired ruled lines, and the ruled line positions of the two ruled lines are different and the difference is within a predetermined change allowable range, the two ruled lines A function of performing integration processing for one or more sets by moving one or both ruled line positions and integrating the ruled line positions of the two ruled lines into one ruled line position;
A function of generating spreadsheet data in which cells are set according to the ruled line position after the integration process is completed;
A program characterized by having executed.
本発明に係るスプレッドシートデータ生成装置およびプログラムによれば、微小セルの発生やセル構成の細分化を回避しつつ複数の表を混在させたスプレッドシートのデータを自動生成することができる。 According to the spreadsheet data generation apparatus and program according to the present invention, spreadsheet data in which a plurality of tables are mixed can be automatically generated while avoiding generation of minute cells and subdivision of cell configuration.
以下、図面に基づき本発明の実施の形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本発明のスプレッドシートデータ生成装置としての機能を含む画像処理装置10の概略構成を示している。画像処理装置10は、原稿を光学的に読み取って画像データを取得し、この画像データに基づいて原稿の複製画像を記録紙に印刷するコピー機能、読み取った画像データを所定形式のファイルにして保存したり送信したりするスキャン機能、パーソナルコンピュータなどの外部端末から受信した印刷データに係る画像を記録紙上に形成して出力するPCプリント機能などを備えた、所謂、複合機として構成されている。 FIG. 1 shows a schematic configuration of an image processing apparatus 10 including a function as a spreadsheet data generation apparatus of the present invention. The image processing apparatus 10 optically reads a document to acquire image data, and based on this image data, a copy function for printing a duplicate image of the document on a recording paper, and stores the read image data as a file in a predetermined format And a so-called multi-function device having a scan function for performing transmission and transmission, and a PC print function for forming and outputting an image related to print data received from an external terminal such as a personal computer on a recording sheet.
画像処理装置10は、当該画像処理装置10の動作を統括制御する制御部としてのCPU(Central Processing Unit)11に、バス12を通じて画像読取部13と、画像形成部14と、ROM(Read Only Memory)15と、RAM(Random Access Memory)16と、不揮発メモリ17と、表示部18と、操作部19と、画像処理部21と、ネットワークI/F部22と、ハードディスク装置23とを接続して構成される。 The image processing apparatus 10 is connected to a CPU (Central Processing Unit) 11 as a control unit that performs overall control of the operation of the image processing apparatus 10, an image reading unit 13, an image forming unit 14, and a ROM (Read Only Memory) via a bus 12. ) 15, a RAM (Random Access Memory) 16, a nonvolatile memory 17, a display unit 18, an operation unit 19, an image processing unit 21, a network I / F unit 22, and a hard disk device 23. Composed.
ROM15には各種のプログラムが格納されており、これらのプログラムに従ってCPU11が処理を実行することにより画像処理装置10としての各機能が実現される。たとえば、CPU11は、ROM15に格納された所定のプログラムを実行することでスプレッドシートデータ生成装置としての機能を果たす。 Various programs are stored in the ROM 15, and the functions of the image processing apparatus 10 are realized by the CPU 11 executing processes according to these programs. For example, the CPU 11 functions as a spreadsheet data generation device by executing a predetermined program stored in the ROM 15.
RAM16はCPU11がプログラムを実行する際に各種のデータを一時的に格納するワークメモリや画像データを格納する画像メモリなどとして使用される。 The RAM 16 is used as a work memory for temporarily storing various data when the CPU 11 executes a program, an image memory for storing image data, and the like.
不揮発メモリ17は、電源をオフしてもその記憶内容が保持される書き換え可能なメモリであり、画像処理装置10に対して設定された各種の設定値やユーザの認証情報などが記憶される。 The nonvolatile memory 17 is a rewritable memory that retains the stored contents even when the power is turned off, and stores various setting values set for the image processing apparatus 10 and user authentication information.
画像読取部13は、原稿を光学的に読み取って画像データを取得する機能を果たす。画像読取部13は、たとえば、原稿に光を照射する光源と、その反射光を受けて原稿を幅方向に1ライン分読み取るラインイメージセンサと、ライン単位の読取位置を原稿の長さ方向に順次移動させる移動手段と、原稿からの反射光をラインイメージセンサに導いて結像させるレンズやミラーなどからなる光学経路、ラインイメージセンサの出力するアナログ画像信号をデジタルの画像データに変換する変換部などを備えて構成される。 The image reading unit 13 performs a function of optically reading a document and acquiring image data. The image reading unit 13 sequentially, for example, a light source that irradiates light on a document, a line image sensor that receives the reflected light for one line in the width direction, and a line-by-line reading position sequentially in the length direction of the document. An optical path composed of a moving means for moving, a lens, a mirror, and the like for forming an image by guiding reflected light from a document to a line image sensor, a conversion unit for converting an analog image signal output from the line image sensor into digital image data, etc. It is configured with.
画像形成部14は、入力される画像データに応じた画像を記録紙に印刷して出力する印刷部としての機能を果たす。画像形成部14は、記録紙の搬送装置と、感光体ドラムと、帯電装置と、レーザーユニットと、現像装置と、転写分離装置と、クリーニング装置と、定着装置とを有し、電子写真プロセスによって画像形成を行う、所謂、レーザープリンタとして構成されている。他の画像形成方式のプリンタであっても構わない。 The image forming unit 14 functions as a printing unit that prints and outputs an image corresponding to input image data on a recording sheet. The image forming unit 14 includes a recording paper conveyance device, a photosensitive drum, a charging device, a laser unit, a developing device, a transfer separation device, a cleaning device, and a fixing device. It is configured as a so-called laser printer that performs image formation. Other image forming type printers may be used.
表示部18は、液晶ディスプレイ(LCD…Liquid Crystal Display)などで構成され、各種の操作画面、設定画面などを表示する機能を果たす。操作部19は、ユーザからジョブの設定・投入操作など各種の操作を受け付ける機能を果たす。操作部19は、表示部18の画面上に設けられて押下された座標位置を検出するタッチパネルのほかテンキーや文字入力キー、スタートキーなどを備えて構成される。 The display unit 18 is configured by a liquid crystal display (LCD) and the like, and has a function of displaying various operation screens, setting screens, and the like. The operation unit 19 has a function of accepting various operations such as job setting / submission operations from the user. The operation unit 19 includes a touch panel that is provided on the screen of the display unit 18 and detects a pressed coordinate position, and includes a numeric keypad, a character input key, a start key, and the like.
画像処理部21は、画像の拡大縮小、回転などの処理のほか、印刷データをイメージデータに変換するラスタライズ処理、画像データの圧縮、伸張処理などを行う。 The image processing unit 21 performs rasterization processing for converting print data into image data, image data compression, expansion processing, and the like in addition to processing such as image enlargement / reduction and rotation.
ネットワークI/F部22は、LANなどのネットワークと接続してネットワーク上の端末装置やサーバなどと各種のデータを送受信する機能を果たす。ハードディスク装置23は、大容量不揮発の記憶装置であり、たとえば、印刷データや画像データ、各種ファイルの保存に使用される。 The network I / F unit 22 functions to connect to a network such as a LAN and transmit / receive various data to / from a terminal device or server on the network. The hard disk device 23 is a large-capacity nonvolatile storage device, and is used, for example, for storing print data, image data, and various files.
以後、画像処理装置10が有するスプレッドシートデータ生成装置としての機能について説明する。なお、画像処理装置10のハードウェア構成は以後説明する各実施の形態に共通である。 Hereinafter, functions of the image processing apparatus 10 as a spreadsheet data generation apparatus will be described. The hardware configuration of the image processing apparatus 10 is common to the embodiments described below.
スプレッドシートデータ生成装置としての機能では、複数の表を入力し、これらが混在する1枚のスプレッドシートを生成する。この際、異なる表に属する2つの罫線の罫線位置が所定の変更許容範囲内であれば、これらの一方または双方の罫線を移動させて1つの罫線位置に統合する。これにより、複数の表で互いの罫線位置がずれていても、微小セルの発生やセル構成の細分化を回避してスプレッドシートのデータを生成することができる。 In the function as a spreadsheet data generation device, a plurality of tables are input, and one spreadsheet in which these are mixed is generated. At this time, if the ruled line positions of two ruled lines belonging to different tables are within a predetermined change allowable range, one or both of the ruled lines are moved and integrated into one ruled line position. Thereby, even if the ruled line positions of the plurality of tables are shifted, it is possible to generate the spreadsheet data while avoiding the generation of minute cells and the subdivision of the cell configuration.
<第1の実施の形態>
図2は、本発明の第1の実施の形態に係るスプレッドシートデータ生成装置が行うスプレッドシートデータ生成処理を示す流れ図である。まず、ユーザから操作部19を通じて、行方向(横方向)の罫線に対する変更許容範囲の指定(ステップS101)および列方向(縦方向)の罫線に対する変更許容範囲の指定(ステップS102)を受ける。
<First Embodiment>
FIG. 2 is a flowchart showing a spreadsheet data generation process performed by the spreadsheet data generation apparatus according to the first embodiment of the present invention. First, the user accepts specification of a change allowable range for a ruled line in the row direction (horizontal direction) (step S101) and specification of a change allowable range for a ruled line in the column direction (vertical direction) (step S102).
次に、スプレッドシート形式のファイルへの変換対象となる元の画像データを取得する(ステップS103)。ステップS103で取得した画像データには複数の表が含まれるものとする。ここでは、画像読取部13で1または複数枚の原稿を光学的に読み取って、変換対象の画像データを取得する。 Next, original image data to be converted into a spreadsheet format file is acquired (step S103). It is assumed that the image data acquired in step S103 includes a plurality of tables. Here, one or a plurality of originals are optically read by the image reading unit 13 to acquire image data to be converted.
CPU11は、変換対象の画像データを公知の解析方向で解析して複数の表領域を抽出する(ステップS104)。次に、抽出した複数の表領域の中に行方向の同一範囲に複数の表領域が列方向に並んで存在するか否かを判定する(ステップS105)。複数の表領域が列方向に並んで存在していない場合は(ステップS105;No)、ステップS110へ移行する。 The CPU 11 analyzes the image data to be converted in a known analysis direction and extracts a plurality of table areas (step S104). Next, it is determined whether or not a plurality of table areas are arranged in the column direction in the same range in the row direction among the extracted table areas (step S105). If a plurality of table areas do not exist side by side in the column direction (step S105; No), the process proceeds to step S110.
複数の表領域が列方向に並んで存在する場合は(ステップS105;Yes)、各表の列方向の各罫線および罫線位置を取得し(ステップS106)、これらの罫線を表毎に分類する(ステップS107)。 If a plurality of table regions exist side by side in the column direction (step S105; Yes), each ruled line and ruled line position in the column direction of each table is acquired (step S106), and these ruled lines are classified for each table (step S106). Step S107).
次に、表毎に列方向の罫線の数を合計し、列方向の罫線数が最も多い表を基準の表(基準表)に設定する(ステップS108)。次に、ステップS102で指定された列方向の罫線に対する変更許容範囲と基準表とに基づき、列方向について罫線位置修正処理(1)を行う(ステップS109)。 Next, the number of ruled lines in the column direction is totaled for each table, and the table having the largest number of ruled lines in the column direction is set as a reference table (reference table) (step S108). Next, the ruled line position correction process (1) is performed in the column direction based on the change allowable range for the ruled line in the column direction specified in step S102 and the reference table (step S109).
図3は、ステップS109および後述するステップS115で行われる罫線位置修正処理(1)の詳細を示している。この処理の基本的な流れは列方向を処理する場合と行方向を処理する場合で共通である。なお本処理にける罫線は、列方向の処理を行う場合には列方向の罫線を意味し、行方向の処理を行う場合には列方向の罫線を意味する。 FIG. 3 shows the details of the ruled line position correction process (1) performed in step S109 and step S115 described later. The basic flow of this process is common when processing the column direction and when processing the row direction. The ruled line in this process means a ruled line in the column direction when performing the process in the column direction, and a ruled line in the column direction when performing the process in the row direction.
まず、基準表の罫線から基準線を選定する(ステップS141)。列方向を処理する場合には、基準表に含まれる列方向の罫線のうち、最も左側の罫線から1つずつ順に基準線に選択する。なお、行方向を処理する場合は、基準表に含まれる行方向の罫線のうち、最も上の罫線から1つずつ下方へ順に基準線に選択する。 First, a reference line is selected from the ruled lines of the reference table (step S141). When processing the column direction, among the ruled lines in the column direction included in the reference table, the ruled lines are selected one by one from the leftmost ruled line. In the case of processing the row direction, among the ruled lines in the row direction included in the reference table, the reference lines are sequentially selected one by one from the top ruled line.
基準表以外の表の罫線の中から、基準線の位置との差分が最小かつ未修正の罫線を抽出する(ステップS142)。基準線と抽出した罫線とを組にし、この組に含まれる2つの罫線の罫線位置の差分(基準線の罫線位置と該基準線と組みにされた他方の罫線の罫線位置との差分)が変更許容範囲内か否かを調べ(ステップS143)、変更許容範囲内でなければ(ステップS143;No)、罫線位置を修正せずにステップS145へ移行する。 From the ruled lines of the tables other than the reference table, a ruled line with the smallest difference from the position of the reference line and uncorrected is extracted (step S142). The reference line and the extracted ruled line are paired, and the difference between the ruled line positions of the two ruled lines included in this pair (difference between the ruled line position of the reference line and the ruled line position of the other ruled line paired with the reference line) is It is checked whether the change is within the allowable range (step S143). If the change is not within the allowable range (step S143; No), the process moves to step S145 without correcting the ruled line position.
差分が変更許容範囲内の場合は(ステップS143;Yes)、抽出した罫線の位置を基準線の位置に修正して(ステップS144)、罫線位置の統合を行う。なお、基準線と抽出した罫線の中間位置(平均位置)に、基準線と抽出した罫線の位置の双方を移動させるように位置修正してもよい。 If the difference is within the change allowable range (step S143; Yes), the extracted ruled line position is corrected to the reference line position (step S144), and the ruled line positions are integrated. The position may be corrected so that both the reference line and the extracted ruled line position are moved to an intermediate position (average position) between the reference line and the extracted ruled line.
ステップS145では、基準表の全ての罫線を基準線として処理終了したか否かを判断し、未終了ならば(ステップS145;No)、基準表の中で基準線に未選択のもの中から新たな基準線を選択し(ステップS146)、ステップS142に戻って処理を継続する。 In step S145, it is determined whether or not processing has been completed using all ruled lines in the reference table as reference lines. If not completed (step S145; No), a new reference line that has not been selected as a reference line in the reference table is newly selected. A correct reference line is selected (step S146), and the process returns to step S142 and continues.
全ての罫線を基準線として処理終了した場合は(ステップS145;Yes)、罫線位置修正処理を終了する。 If all the ruled lines have been processed as reference lines (step S145; Yes), the ruled line position correcting process ends.
図2に戻って説明を続ける。ステップS110では、列方向の修正後の罫線位置に従い、生成中のスプレッドシートのセル(行方向の各セルの位置および幅)を設定する。なお、列方向に複数の表が並ぶ状態でない場合(ステップS105;No)には、ステップS106を行って罫線位置を認識し、その罫線位置に従って、生成中のスプレッドシートのセル(行方向の各セルの位置および幅)を設定する。 Returning to FIG. 2, the description will be continued. In step S110, the cell of the spreadsheet being generated (the position and width of each cell in the row direction) is set according to the corrected ruled line position in the column direction. If a plurality of tables are not arranged in the column direction (step S105; No), the ruled line position is recognized by performing step S106, and the cell of the spreadsheet being generated (each of the row direction is determined) according to the ruled line position. Cell position and width).
次に、ステップS104で抽出した複数の表領域の中に列方向の同一範囲に複数の表領域が行方向に並んで存在するか否かを判定する(ステップS111)。複数の表領域が行方向に並んで存在していない場合は(ステップS111;No)、ステップS116へ移行する。 Next, it is determined whether or not a plurality of table areas exist side by side in the row direction in the same range in the column direction among the plurality of table areas extracted in step S104 (step S111). If a plurality of table areas do not exist side by side in the row direction (step S111; No), the process proceeds to step S116.
複数の表領域が行方向に並んで存在する場合は(ステップS111;Yes)、各表の行方向の罫線およびその罫線位置を取得し(ステップS112)、これらの罫線を表毎に分類する(ステップS113)。 When a plurality of table areas exist side by side in the row direction (step S111; Yes), the ruled lines in the row direction and the ruled line positions of each table are acquired (step S112), and these ruled lines are classified for each table (step S112). Step S113).
次に、表毎に行方向の罫線の数を合計し、行方向の罫線数が最も多い表を基準の表(基準表)に設定する(ステップS114)。次に、ステップS101で指定された行方向の罫線に対する変更許容範囲と基準表とに基づき、行方向について図3の罫線位置修正処理(1)を行う(ステップS115)。 Next, the number of ruled lines in the row direction is totaled for each table, and the table having the largest number of ruled lines in the row direction is set as a reference table (reference table) (step S114). Next, the ruled line position correction process (1) in FIG. 3 is performed in the row direction based on the change allowable range for the ruled line in the row direction specified in step S101 and the reference table (step S115).
ステップS116では、行方向の修正後の罫線位置に従い、生成中のスプレッドシートのセル(列方向の各セルの位置および高さ)を設定する。なお、行方向に複数の表が並ぶ状態でない場合(ステップS111;No)には、ステップS112を行って行方向の罫線位置を認識し、その罫線位置に従って、生成中のスプレッドシートのセル(行方向の各セルの位置および幅)を設定する。 In step S116, the cell of the spreadsheet being generated (the position and height of each cell in the column direction) is set according to the corrected ruled line position in the row direction. If a plurality of tables are not arranged in the row direction (step S111; No), step S112 is performed to recognize the ruled line position in the row direction, and the cell (row) of the spreadsheet being generated is determined according to the ruled line position. Set the position and width of each cell in the direction.
その後、各表の罫線にあたるセルの枠を着色するように設定して(ステップS117)、本処理を終了する。 Thereafter, the frame of the cell corresponding to the ruled line of each table is set to be colored (step S117), and this process is terminated.
図4は、第1の実施の形態のスプレッドシートデータ生成装置による罫線位置の修正例を示している。図4の例では表40が、罫線数が多いため基準表になる。1回目の処理P1では、基準表40の左端の罫線41が基準線となり、表50の中で基準線41に最も近い罫線51が抽出される。基準線41と罫線51との差分は変更許容範囲内なので、罫線51の罫線位置が基準線41の位置に修正される。 FIG. 4 shows an example of correcting the ruled line position by the spreadsheet data generation apparatus according to the first embodiment. In the example of FIG. 4, the table 40 is a reference table because the number of ruled lines is large. In the first process P1, the ruled line 41 at the left end of the reference table 40 becomes the reference line, and the ruled line 51 closest to the reference line 41 in the table 50 is extracted. Since the difference between the reference line 41 and the ruled line 51 is within the change allowable range, the ruled line position of the ruled line 51 is corrected to the position of the reference line 41.
2回目の処理P2では、基準表40の左端から2番目の罫線42が基準線となり、表50の中で基準線42に最も近い未処理の罫線52が抽出される。基準線42と罫線52との差分は変更許容範囲内なので、罫線52の罫線位置が基準線42の位置に修正される。 In the second process P2, the second ruled line 42 from the left end of the reference table 40 becomes the reference line, and the unprocessed ruled line 52 closest to the reference line 42 in the table 50 is extracted. Since the difference between the reference line 42 and the ruled line 52 is within the change allowable range, the ruled line position of the ruled line 52 is corrected to the position of the reference line 42.
3回目の処理P3では、基準表40の左端から3番目の罫線43が基準線となり、表50の中で基準線43に最も近い未処理の罫線53が抽出される。基準線43と罫線53との差分は変更許容範囲を超えているので、罫線位置の修正は行われない。 In the third process P3, the third ruled line 43 from the left end of the reference table 40 becomes the reference line, and the unprocessed ruled line 53 closest to the reference line 43 in the table 50 is extracted. Since the difference between the reference line 43 and the ruled line 53 exceeds the allowable change range, the ruled line position is not corrected.
4回目の処理P4では、基準表40の左端から4番目の罫線44が基準線となり、表50の中で基準線44に最も近い未処理の罫線53が抽出される。基準線44と罫線53との差分は変更許容範囲内なので、罫線53の罫線位置が基準線44の位置に修正される。これにて、処理は終了する。 In the fourth process P4, the fourth ruled line 44 from the left end of the reference table 40 becomes the reference line, and the unprocessed ruled line 53 closest to the reference line 44 in the table 50 is extracted. Since the difference between the reference line 44 and the ruled line 53 is within the change allowable range, the ruled line position of the ruled line 53 is corrected to the position of the reference line 44. This ends the process.
図5は、罫線位置を修正しない従来の方法により生成されたスプレッドシート(図5上側のシート)と、本発明の第1の実施の形態で生成されるスプレッドシート(図5下側のシート)とを対比して示している。罫線位置を修正しないスプレッドシート(上側のシート)では、微小な幅のセルが必要となり、セルの分割数が多い。これに対し、第1の実施の形態で生成されたスプレッドシート(下側のシート)は、微小な幅のセルが不要となり、セルの分割数も少なく抑えられている。 FIG. 5 shows a spreadsheet (upper sheet in FIG. 5) generated by a conventional method that does not correct the ruled line position, and a spreadsheet (lower sheet in FIG. 5) generated in the first embodiment of the present invention. Is shown in contrast. In a spreadsheet (upper sheet) in which the ruled line position is not corrected, cells with a very small width are required, and the number of divided cells is large. On the other hand, the spreadsheet (lower sheet) generated in the first embodiment does not require a cell having a minute width, and the number of divided cells is reduced.
<第2の実施の形態>
図6は、第2の実施の形態に係わるスプレッドシートデータ生成装置が行うスプレッドシートデータ生成処理を示す流れ図である。第1の実施の形態では、変更許容範囲を優先し、この変更許容範囲内に収まる場合だけ罫線位置を修正したが、第2の実施の形態では、設定された許容範囲にセル数が収まることを優先し、必要に応じて、変更許容範囲を拡大するようになっている。
<Second Embodiment>
FIG. 6 is a flowchart showing spreadsheet data generation processing performed by the spreadsheet data generation apparatus according to the second embodiment. In the first embodiment, the change allowable range is prioritized, and the ruled line position is corrected only when it falls within this change allowable range. However, in the second embodiment, the number of cells falls within the set allowable range. Is given priority, and the change allowable range is expanded as necessary.
まず、CPU11は、ユーザから操作部19を通じて、行方向の罫線に対する変更許容範囲の指定(ステップS201)および列方向の罫線に対する変更許容範囲の指定(ステップS202)を受ける。さらに、行方向のセル数の許容範囲(上限数)の指定(ステップS203)、列方向のセル数の許容範囲の指定(ステップS204)を受ける。 First, the CPU 11 receives specification of a change allowable range for a ruled line in the row direction (step S201) and specification of a change allowable range for a ruled line in the column direction (step S202) from the user via the operation unit 19. Furthermore, designation of an allowable range (upper limit number) of the number of cells in the row direction (step S203) and designation of an allowable range of the number of cells in the column direction (step S204) are received.
次に、スプレッドシート形式のファイルへの変換対象となる元の画像データを取得する(ステップS205)。CPU11は、変換対象の画像データを解析して複数の表領域を抽出する(ステップS206)。次に、抽出した複数の表領域の中に行方向の同一範囲に複数の表領域が列方向に並んで存在するか否かを判定し(ステップS207)、複数の表領域が列方向に並んで存在していない場合は(ステップS207;No)、ステップS214へ移行する。 Next, original image data to be converted into a spreadsheet format file is acquired (step S205). The CPU 11 analyzes the image data to be converted and extracts a plurality of table areas (step S206). Next, it is determined whether or not a plurality of table areas are present in the column range in the same range in the row direction among the extracted table areas (step S207), and the plurality of table areas are aligned in the column direction. If it does not exist (step S207; No), the process proceeds to step S214.
複数の表領域が列方向に並んで存在する場合は(ステップS207;Yes)、各表の列方向の各罫線および罫線位置を取得し(ステップS208)、これらの罫線を表毎に分類する(ステップS209)。 When a plurality of table areas exist side by side in the column direction (step S207; Yes), each ruled line and ruled line position in the column direction of each table is acquired (step S208), and these ruled lines are classified for each table (step S208). Step S209).
次に、表毎に列方向の罫線の数を合計し、列方向の罫線数が最も多い表を基準表に設定する(ステップS210)。ステップS202で指定された列方向の罫線に対する変更許容範囲と基準表とに基づき、列方向について図3の罫線位置修正処理(1)を行う(ステップS211)。そして、修正後の罫線位置に従ってセルを設定した場合の列方向のセル数がステップS204で指定された列方向のセル数の許容範囲内か否かを判定する(ステップS212)。 Next, the number of ruled lines in the column direction is totaled for each table, and the table having the largest number of ruled lines in the column direction is set as the reference table (step S210). Based on the change allowable range for the ruled line in the column direction specified in step S202 and the reference table, the ruled line position correction process (1) in FIG. 3 is performed for the column direction (step S211). Then, it is determined whether or not the number of cells in the column direction when the cells are set according to the corrected ruled line position is within the allowable range of the number of cells in the column direction specified in step S204 (step S212).
許容範囲内でなければ(ステップS212;No)、現在の列方向の変更許容範囲を所定量(たとえば、1ミリ)拡大して(ステップS213)、ステップS210へ移行し、再度、罫線位置の修正処理を行う。変更許容範囲を拡大することで、前回は範囲外として除外された罫線が位置修正される場合がある。 If it is not within the allowable range (step S212; No), the current column direction change allowable range is enlarged by a predetermined amount (for example, 1 mm) (step S213), the process proceeds to step S210, and the ruled line position is corrected again. Process. By enlarging the change allowable range, the position of a ruled line that was previously excluded as out of range may be corrected.
列方向のセル数が許容範囲内に収まる場合は(ステップS212;Yes)、列方向の修正後の罫線位置に従って、生成中のスプレッドシートのセル(行方向の各セルの位置および幅)を設定する(ステップS214)。なお、列方向に複数の表が並ぶ状態でない場合(ステップS207;No)には、ステップS208を行って罫線位置を認識し、その罫線位置に従って、生成中のスプレッドシートのセル(行方向の各セルの位置および幅)を設定する。 When the number of cells in the column direction falls within the allowable range (step S212; Yes), the spreadsheet cell (the position and width of each cell in the row direction) being generated is set according to the corrected ruled line position in the column direction. (Step S214). If a plurality of tables are not aligned in the column direction (step S207; No), step S208 is performed to recognize the ruled line position, and according to the ruled line position, the cell of the spreadsheet being generated (each row direction) Cell position and width).
次に、ステップS206で抽出した複数の表領域の中に列方向の同一範囲に複数の表領域が行方向に並んで存在するか否かを判定する(ステップS215)。複数の表領域が行方向に並んで存在しない場合は(ステップS215;No)、ステップS222へ移行する。 Next, it is determined whether or not a plurality of table areas exist side by side in the row direction in the same range in the column direction among the plurality of table areas extracted in step S206 (step S215). If a plurality of table areas do not exist side by side in the row direction (step S215; No), the process proceeds to step S222.
複数の表領域が行方向に並んで存在する場合は(ステップS215;Yes)、各表の行方向の各罫線および罫線位置を取得し(ステップS216)、これらの罫線を表毎に分類する(ステップS217)。 If a plurality of table areas exist side by side in the row direction (step S215; Yes), each ruled line and ruled line position in the row direction of each table is acquired (step S216), and these ruled lines are classified for each table (step S216). Step S217).
次に、表毎に行方向の罫線の数を合計し、行方向の罫線数が最も多い表を基準表に設定する(ステップS218)。ステップS201で指定された行方向の罫線に対する変更許容範囲と基準表とに基づき、行方向について図3の罫線位置修正処理(1)を行う(ステップS219)。そして、行方向の修正後の罫線位置に従ってセルを設定した場合の行方向のセル数がステップS203で指定された行方向のセル数の許容範囲内か否かを判定する(ステップS220)。 Next, the number of ruled lines in the row direction is totaled for each table, and the table having the largest number of ruled lines in the row direction is set as the reference table (step S218). Based on the change allowable range for the ruled line in the row direction specified in step S201 and the reference table, the ruled line position correction process (1) in FIG. 3 is performed in the row direction (step S219). Then, it is determined whether the number of cells in the row direction when the cells are set according to the corrected ruled line position in the row direction is within the allowable range of the number of cells in the row direction specified in step S203 (step S220).
許容範囲内でなければ(ステップS220;No)、現在の行方向の変更許容範囲を所定量(たとえば、1ミリ)拡大して(ステップS221)、ステップS218へ移行し、再度、罫線位置の修正処理を行う。 If it is not within the allowable range (step S220; No), the current row direction change allowable range is enlarged by a predetermined amount (for example, 1 mm) (step S221), the process proceeds to step S218, and the ruled line position is corrected again. Process.
行方向のセル数の許容範囲内に収まる場合は(ステップS220;Yes)、行方向の修正後の罫線位置に従い、生成中のスプレッドシートのセル(列方向の各セルの位置および高さ)を設定する(ステップS222)。なお、行方向に複数の表が並ぶ状態でない場合(ステップS215;No)には、ステップS216を行って罫線位置を認識し、その罫線位置に従って、生成中のスプレッドシートのセル(列方向の各セルの位置および幅)を設定する。次に、各表の罫線にあたるセルの枠を着色するように設定して(ステップS223)、本処理を終了する。 If it falls within the allowable range of the number of cells in the row direction (step S220; Yes), the cell of the spreadsheet being generated (the position and height of each cell in the column direction) is changed according to the corrected ruled line position in the row direction. Setting is made (step S222). If the plurality of tables are not aligned in the row direction (step S215; No), the ruled line position is recognized by performing step S216, and the cell of the spreadsheet being generated (each column direction in the column direction) is recognized according to the ruled line position. Cell position and width). Next, the cell frame corresponding to the ruled line of each table is set to be colored (step S223), and this process is terminated.
図7は、罫線位置修正前の状態P11と、第2の実施の形態のスプレッドシートデータ生成装置が変更許容範囲Aで罫線位置を修正した状態P12と、変更許容範囲を変更許容範囲Bに拡張して罫線位置を修正した後の状態P13とを示している。罫線位置修正前の状態P11では、列方向のセル数は6になる。変更許容範囲Aで罫線位置を修正した場合、罫線64は基準線65との差分が変更許容範囲Aを超えるため位置修正されずに残る。 FIG. 7 shows a state P11 before the ruled line position is corrected, a state P12 in which the spreadsheet data generation apparatus of the second embodiment corrects the ruled line position within the change allowable range A, and the change allowable range is extended to the change allowable range B. The state P13 after the ruled line position is corrected is shown. In the state P11 before the ruled line position correction, the number of cells in the column direction is 6. When the ruled line position is corrected within the change allowable range A, the ruled line 64 remains uncorrected because the difference from the reference line 65 exceeds the change allowable range A.
この状態で列方向のセル数が、設定された許容範囲内でなければ、列方向に対する変更許容範囲は変更許容範囲Bに拡大される。その結果、罫線64と基準線65との差分が変更許容範囲Bに収まり、修正後の状態P13に示すように、罫線64の罫線位置が修正される。列方向のセル数は3になって許容範囲内に収まって処理終了となる。 In this state, if the number of cells in the column direction is not within the set allowable range, the change allowable range for the column direction is expanded to the change allowable range B. As a result, the difference between the ruled line 64 and the reference line 65 falls within the change allowable range B, and the ruled line position of the ruled line 64 is corrected as shown in the corrected state P13. The number of cells in the column direction becomes 3, falls within the allowable range, and the process ends.
<第3の実施の形態>
第1、第2の実施の形態では、基準表を定め、基準表に含まれる各罫線を順に基準線に設定して罫線位置の修正を行ったが、第3の実施の形態では、異なる表から1つずつ選択した2つの罫線の組を設定し、選択した2つの罫線の罫線位置の差分が最も少ない組み合わせから優先して罫線位置の修正を行うようになっている。
<Third Embodiment>
In the first and second embodiments, a reference table is defined, and each ruled line included in the reference table is set as a reference line in order, and the ruled line position is corrected. In the third embodiment, a different table is used. A set of two ruled lines selected one by one is set, and the ruled line position is corrected with priority given to the combination having the smallest difference between the ruled line positions of the two selected ruled lines.
図8は、第3の実施の形態に係わるスプレッドシートデータ生成装置が行うスプレッドシートデータ生成処理を示す流れ図である。まず、ユーザから操作部19を通じて、行方向の罫線に対する変更許容範囲の指定(ステップS301)および列方向の罫線に対する変更許容範囲の指定(ステップS302)を受ける。 FIG. 8 is a flowchart showing spreadsheet data generation processing performed by the spreadsheet data generation apparatus according to the third embodiment. First, designation of a change allowable range for a ruled line in the row direction (step S301) and designation of a change allowable range for a ruled line in the column direction are received from the user via the operation unit 19 (step S302).
次に、ステップS103と同様に、スプレッドシート形式のファイルへの変換対象となる元の画像データを取得する(ステップS303)。CPU11は、変換対象の画像データを解析して複数の表領域を抽出する(ステップS304)。抽出した複数の表領域の中に行方向の同一範囲に複数の表領域が列方向に並んで存在するか否かを判定する(ステップS305)。複数の表領域が列方向に並んで存在していない場合は(ステップS305;No)、ステップS309へ移行する。 Next, as in step S103, the original image data to be converted into a spreadsheet file is acquired (step S303). The CPU 11 analyzes the image data to be converted and extracts a plurality of table areas (step S304). It is determined whether or not a plurality of table areas are arranged in the column direction in the same range in the row direction among the extracted table areas (step S305). If a plurality of table areas do not exist side by side in the column direction (step S305; No), the process proceeds to step S309.
複数の表領域が列方向に並んで存在する場合は(ステップS305;Yes)、各表の列方向の各罫線および罫線位置を取得し(ステップS306)、これらの罫線を表毎に分類する(ステップS307)。次に、ステップS302で指定された列方向の罫線に対する変更許容範囲に基づき、列方向について罫線位置修正処理(2)を行う(ステップS308)。 If a plurality of table regions exist side by side in the column direction (step S305; Yes), each ruled line and ruled line position in the column direction of each table is acquired (step S306), and these ruled lines are classified for each table (step S306). Step S307). Next, a ruled line position correction process (2) is performed in the column direction based on the change allowable range for the ruled line in the column direction specified in step S302 (step S308).
図9は、ステップS308および後述するステップS313で行われる罫線位置修正処理(2)の詳細を示している。この処理の基本的な流れは列方向を処理する場合と行方向を処理する場合とで共通である。なお本処理にける罫線は、列方向の処理を行う場合には列方向の罫線を意味し、行方向の処理を行う場合には列方向の罫線を意味する。 FIG. 9 shows the details of the ruled line position correction process (2) performed in step S308 and step S313 described later. The basic flow of this process is the same when processing the column direction and when processing the row direction. The ruled line in this process means a ruled line in the column direction when performing the process in the column direction, and a ruled line in the column direction when performing the process in the row direction.
まず、下記条件に当てはまる罫線の組みの中で、罫線位置の差分が最小の組を抽出する(ステップS341)。
条件1:互いに異なる表に属する2つの罫線である。
条件2:少なくとも片方は罫線位置が未修正である。
First, a set with the smallest difference in ruled line position is extracted from the set of ruled lines that satisfy the following conditions (step S341).
Condition 1: Two ruled lines belonging to different tables.
Condition 2: At least one of the ruled line positions is uncorrected.
該当する罫線の組が抽出されなかった場合は(ステップS342;No)、本処理を終了する。 If the corresponding ruled line pair is not extracted (step S342; No), the process is terminated.
該当する罫線の組が抽出された場合は(ステップS342;Yes)、その組に属する2つの罫線の罫線位置の差分が変更許容範囲内か否かを調べる(ステップS343)。変更許容範囲内でなければ(ステップS343;No)、本処理を終了する。すなわち、変更許容範囲内に無い場合は、罫線位置の差分がそれ以上小さい組は存在しないため、罫線位置修正処理をこの時点で終了する。 When the corresponding ruled line set is extracted (step S342; Yes), it is checked whether or not the difference between the ruled line positions of the two ruled lines belonging to the set is within the change allowable range (step S343). If it is not within the allowable change range (step S343; No), this process is terminated. In other words, if the change is not within the allowable change range, there is no set having a smaller ruled line position difference, and the ruled line position correction process is terminated at this point.
変更許容範囲内であれば(ステップS343;Yes)、その2つの罫線の双方が罫線位置未修正(修正履歴がない)か否かを調べる(ステップS344)。両方とも罫線位置未修正であれば(ステップS344;Yes)、罫線位置を修正した場合にセルサイズが小さくなるセルの数が最小となる罫線を選択し、該罫線の位置を、他方の罫線の罫線位置に修正する(ステップS345)。そして、両罫線の修正履歴を修正済み(修正あり)に設定して(ステップS346)、ステップS341へ戻り処理を継続するする。移動させる罫線をセルサイズが小さくなるセル数が少なくなるように選択して罫線位置を修正することで、セル内へ表示する文字への影響を最小にすることができる。 If it is within the allowable change range (step S343; Yes), it is checked whether or not both of the two ruled lines are uncorrected (there is no correction history) (step S344). If both ruled line positions have not been corrected (step S344; Yes), the ruled line that minimizes the number of cells whose cell size is reduced when the ruled line position is corrected is selected, and the position of the ruled line is set to the other ruled line. The ruled line position is corrected (step S345). Then, the correction history of both ruled lines is set to corrected (with correction) (step S346), and the process returns to step S341 to continue the processing. By selecting the ruled line to be moved so that the number of cells with a small cell size is reduced and correcting the ruled line position, it is possible to minimize the influence on the character displayed in the cell.
片方のみ罫線位置未修正であれば(ステップS344;No)、修正履歴のない罫線の罫線位置を、他方の罫線の罫線位置に修正し(ステップS347)、その修正した罫線の修正履歴を修正済みに設定して(ステップS348)、ステップS341へ戻り処理を継続する。 If only one of the ruled line positions is uncorrected (step S344; No), the ruled line position of the ruled line without the correction history is corrected to the ruled line position of the other ruled line (step S347), and the corrected ruled line correction history is corrected. (Step S348), the process returns to step S341 to continue the process.
図8に戻って説明を続ける。ステップS309では、列方向の修正後の罫線位置に従い、生成中のスプレッドシートのセル(行方向の各セルの位置および幅)を設定する。なお、列方向に複数の表が並ぶ状態でない場合(ステップS305;No)には、ステップS306を行って罫線位置を認識し、その罫線位置に従って、生成中のスプレッドシートのセル(行方向の各セルの位置および幅)を設定する。 Returning to FIG. In step S309, the spreadsheet cell being generated (the position and width of each cell in the row direction) is set according to the corrected ruled line position in the column direction. If a plurality of tables are not arranged in the column direction (step S305; No), step S306 is performed to recognize the ruled line position, and according to the ruled line position, the cell of the spreadsheet being generated (each row direction Cell position and width).
次に、ステップS304で抽出した複数の表領域の中に列方向の同一範囲に複数の表領域が行方向に並んで存在するか否かを判定する(ステップS310)。複数の表領域が行方向に並んで存在していない場合は(ステップS310;No)、ステップS314へ移行する。 Next, it is determined whether or not a plurality of table areas exist side by side in the row direction in the same range in the column direction among the plurality of table areas extracted in step S304 (step S310). If a plurality of table areas do not exist side by side in the row direction (step S310; No), the process proceeds to step S314.
複数の表領域が行方向に並んで存在する場合は(ステップS310;Yes)、各表の行方向の各罫線および罫線位置を取得し(ステップS311)、これらの罫線を表毎に分類する(ステップS312)。 If a plurality of table regions exist side by side in the row direction (step S310; Yes), each ruled line and ruled line position in the row direction of each table is acquired (step S311), and these ruled lines are classified for each table (step S311). Step S312).
次にステップS301で指定された行方向の罫線に対する変更許容範囲に基づき、行方向について罫線位置修正処理(2)を行う(ステップS313)。 Next, a ruled line position correction process (2) is performed in the row direction based on the change allowable range for the ruled line in the row direction specified in step S301 (step S313).
ステップS314では、行方向の修正後の罫線位置に従い、生成中のスプレッドシートのセル(列方向の各セルの位置および高さ)を設定する。なお、行方向に複数の表が並ぶ状態でない場合(ステップS310;No)には、ステップS311を行って行方向の罫線位置を認識し、その罫線位置に従って、生成中のスプレッドシートのセル(行方向の各セルの位置および幅)を設定する。 In step S314, the spreadsheet cell being generated (the position and height of each cell in the column direction) is set in accordance with the ruled line position after correction in the row direction. If a plurality of tables are not arranged in the row direction (step S310; No), step S311 is performed to recognize the ruled line position in the row direction, and the cell (row) of the spreadsheet being generated is identified according to the ruled line position. Set the position and width of each cell in the direction.
その後、各表の罫線にあたるセルの枠を着色するように設定して(ステップS315)、本処理を終了する。 Thereafter, the frame of the cell corresponding to the ruled line of each table is set to be colored (step S315), and this process is terminated.
図10は、第3の実施の形態のスプレッドシートデータ生成装置による罫線位置の修正例を示している。1回目の処理P21では、表70の罫線72と下側の表80の罫線82との組が、図9のステップS341において抽出される。罫線72と罫線82は共に修正履歴なしとする。この場合、罫線72を罫線82の位置に修正した方が、セルサイズが小さくなるセル数が少ない(3個になる)ため、罫線72が罫線82の位置に修正される。そして罫線72、82共に修正履歴ありに設定する。 FIG. 10 shows an example of correcting the ruled line position by the spreadsheet data generating apparatus according to the third embodiment. In the first process P21, a set of ruled lines 72 in the table 70 and ruled lines 82 in the lower table 80 is extracted in step S341 in FIG. Both the ruled line 72 and the ruled line 82 have no correction history. In this case, when the ruled line 72 is corrected to the position of the ruled line 82, the number of cells with a smaller cell size is smaller (three), so the ruled line 72 is corrected to the position of the ruled line 82. Both ruled lines 72 and 82 are set to have a correction history.
2回目の処理P22では、表70の罫線71と下側の表80の罫線81との組が、図9のステップS341において抽出される。罫線71と罫線81は共に修正履歴なしとする。この場合、罫線81を罫線71の位置に修正した方が、セルサイズが小さくなるセル数が少ない(0個)ため、罫線81が罫線71の位置に修正される。そして罫線71、81共に修正履歴ありに設定する。 In the second process P22, a set of ruled lines 71 in the table 70 and ruled lines 81 in the lower table 80 is extracted in step S341 in FIG. Both the ruled line 71 and the ruled line 81 have no correction history. In this case, when the ruled line 81 is corrected to the position of the ruled line 71, the number of cells with a smaller cell size is smaller (0), so the ruled line 81 is corrected to the position of the ruled line 71. Both ruled lines 71 and 81 are set to have a correction history.
3回目の処理P23では、表70の罫線74と下側の表80の罫線83との組が、図9のステップS341において抽出される。罫線74と罫線83は共に修正履歴なしとする。この場合、罫線83を罫線74の位置に修正した方が、セルサイズが小さくなるセル数が少ない(0個)ため、罫線83が罫線74の位置に修正される。そして罫線74、83共に修正履歴ありに設定する。 In the third process P23, a set of ruled lines 74 in the table 70 and ruled lines 83 in the lower table 80 is extracted in step S341 in FIG. Both the ruled line 74 and the ruled line 83 have no correction history. In this case, when the ruled line 83 is corrected to the position of the ruled line 74, the number of cells with a smaller cell size is smaller (0), so the ruled line 83 is corrected to the position of the ruled line 74. Both ruled lines 74 and 83 are set to have a correction history.
4回目の処理P24では、表70の罫線73と下側の表80の罫線82との組が、図9のステップS341において抽出される。罫線82は修正履歴あり、罫線73は修正履歴なしである。この場合、罫線82と罫線73の差分が変更許容範囲を超えるので、修正しない。そして、変更許容範囲内の組み合わせはこれ以上無いため処理を終了する。 In the fourth process P24, a set of ruled lines 73 in the table 70 and ruled lines 82 in the lower table 80 is extracted in step S341 in FIG. The ruled line 82 has a correction history, and the ruled line 73 has no correction history. In this case, since the difference between the ruled line 82 and the ruled line 73 exceeds the allowable change range, no correction is made. Since there are no more combinations within the allowable change range, the processing is terminated.
図11は、罫線位置を修正しない従来の方法により生成されたスプレッドシート(図11上側のシート)と、本発明の第3の実施の形態で生成されるスプレッドシート(図11下側のシート)とを対比して示す説明図である。罫線位置を修正しないスプレッドシート(上側のシート)では、微小の幅のセルが必要となりセルの分割数が多い。これに対し、第3の実施の形態で生成されたスプレッドシート(下側のシート)、微小の幅のセルが不要となり、セルの分割数も少なく抑えられている。また、修正によりセルサイズが小さくなるセルの数は少なく(表70の罫線72と罫線73の間の3個のセルのみに)抑えられている。 FIG. 11 shows a spreadsheet (upper sheet in FIG. 11) generated by a conventional method that does not correct the ruled line position, and a spreadsheet (lower sheet in FIG. 11) generated in the third embodiment of the present invention. It is explanatory drawing shown by contrasting. In a spreadsheet (upper sheet) in which the ruled line position is not corrected, cells with a very small width are required, and the number of divided cells is large. On the other hand, the spreadsheet (lower sheet) generated in the third embodiment and cells having a minute width are not required, and the number of divided cells is reduced. Further, the number of cells whose cell size is reduced by the correction is small (only three cells between the ruled line 72 and the ruled line 73 in Table 70).
<第4の実施の形態>
図12は、第4の実施の形態に係わるスプレッドシートデータ生成装置が行うスプレッドシートデータ生成処理を示す流れ図である。第4の実施の形態では、基準表を順次入れ替えるようになっている。
<Fourth embodiment>
FIG. 12 is a flowchart illustrating spreadsheet data generation processing performed by the spreadsheet data generation apparatus according to the fourth embodiment. In the fourth embodiment, the reference table is sequentially replaced.
まず、ユーザから操作部19を通じて、行方向の罫線に対する変更許容範囲の指定(ステップS401)および列方向の罫線に対する変更許容範囲の指定(ステップS402)を受ける。 First, the user receives the specification of the change allowable range for the ruled line in the row direction (step S401) and the specification of the change allowable range for the ruled line in the column direction (step S402) through the operation unit 19.
次に、スプレッドシート形式のファイルへの変換対象となる元の画像データを取得する(ステップS403)。CPU11は、変換対象の画像データを解析して複数の表領域を抽出する(ステップS404)。次に、抽出した複数の表領域の中に行方向の同一範囲に複数の表領域が列方向に並んで存在するか否かを判定する(ステップS405)。複数の表領域が列方向に並んで存在していない場合は(ステップS405;No)、ステップS412へ移行する。 Next, original image data to be converted into a spreadsheet format file is acquired (step S403). The CPU 11 analyzes the image data to be converted and extracts a plurality of table areas (step S404). Next, it is determined whether or not a plurality of table areas are present in the column range in the same range in the row direction among the extracted table areas (step S405). If a plurality of table areas do not exist side by side in the column direction (step S405; No), the process proceeds to step S412.
複数の表領域が列方向に並んで存在する場合は(ステップS405;Yes)、各表の列方向の各罫線および罫線位置を取得し(ステップS406)、これらの罫線を表毎に分類する(ステップS407)。 When a plurality of table areas exist side by side in the column direction (step S405; Yes), each ruled line and ruled line position in the column direction of each table is acquired (step S406), and these ruled lines are classified for each table (step S406). Step S407).
次に、表毎に列方向の罫線の数を合計し、列方向の罫線数が最も多い表を基準表に設定する(ステップS408)。ステップS402で指定された列方向の罫線に対する変更許容範囲と基準表とに基づき、列方向について図3と同じ罫線位置修正処理(1)を行う(ステップS409)。 Next, the number of ruled lines in the column direction is totaled for each table, and the table having the largest number of ruled lines in the column direction is set as the reference table (step S408). Based on the change allowable range for the ruled line in the column direction specified in step S402 and the reference table, the same ruled line position correction process (1) as in FIG. 3 is performed for the column direction (step S409).
列方向の全ての表を基準表として罫線位置修正処理が完了しているかを判断し(ステップS410)、完了していない場合は(ステップS410;No)、未だ基準表に設定していない別の表を基準表に設定して(ステップS411)、ステップS409へ戻り罫線位置修正処理(1)を行う。 It is determined whether the ruled line position correction processing has been completed using all the tables in the column direction as the reference table (step S410). If not completed (step S410; No), another rule that has not yet been set in the reference table. The table is set as a reference table (step S411), and the process returns to step S409 to perform ruled line position correction processing (1).
列方向の全ての表を基準表として罫線位置修正処理が完了した場合は(ステップS410;Yes)、列方向の修正後の罫線位置に従い、生成中のスプレッドシートのセル(行方向の各セルの位置および幅)を設定する(ステップS412)。ステップS409では、列方向の修正後の罫線位置に従い、生成中のスプレッドシートのセル(行方向の各セルの位置および幅)を設定する。なお、列方向に複数の表が並ぶ状態でない場合(ステップS405;No)には、ステップS406を行って罫線位置を認識し、その罫線位置に従って、生成中のスプレッドシートのセル(行方向の各セルの位置および幅)を設定する。 When the ruled line position correction processing is completed using all the tables in the column direction as the reference table (step S410; Yes), the cell of the spreadsheet being generated (the cell of each cell in the row direction is changed according to the corrected ruled line position in the column direction. (Position and width) are set (step S412). In step S409, the spreadsheet cell being generated (the position and width of each cell in the row direction) is set according to the corrected ruled line position in the column direction. If a plurality of tables are not arranged in the column direction (step S405; No), step S406 is performed to recognize the ruled line position, and according to the ruled line position, the cell of the spreadsheet being generated (each row direction Cell position and width).
次に、ステップS404で抽出した複数の表領域の中に列方向の同一範囲に複数の表領域が行方向に並んで存在するか否かを判定する(ステップS413)。複数の表領域が行方向に並んで存在していない場合は(ステップS413;No)、ステップS420へ移行する。 Next, it is determined whether or not a plurality of table areas exist side by side in the row direction in the same range in the column direction among the plurality of table areas extracted in step S404 (step S413). When a plurality of table areas do not exist side by side in the row direction (step S413; No), the process proceeds to step S420.
複数の表領域が行方向に並んで存在する場合は(ステップS413;Yes)、各表の行方向の各罫線および罫線位置を取得し(ステップS414)、これらの罫線を表毎に分類する(ステップS415)。 When a plurality of table areas exist side by side in the row direction (step S413; Yes), the ruled lines and ruled line positions in the row direction of each table are acquired (step S414), and these ruled lines are classified for each table (step S414). Step S415).
次に、表毎に行方向の罫線の数を合計し、行方向の罫線数が最も多い表を基準表に設定する(ステップS416)。ステップS401で指定された行方向の罫線に対する変更許容範囲と基準表とに基づき、行方向について図3の罫線位置修正処理(1)を行う(ステップS417)。 Next, the number of ruled lines in the row direction is totaled for each table, and the table having the largest number of ruled lines in the row direction is set as the reference table (step S416). Based on the change allowable range for the ruled line in the row direction specified in step S401 and the reference table, the ruled line position correction process (1) in FIG. 3 is performed in the row direction (step S417).
行方向の全ての表を基準表として罫線位置修正処理が完了しているかを判断し(ステップS418)、完了していない場合は(ステップS418;No)、行方向の処理において未だ基準表に設定していない別の表を基準表に設定して(ステップS419)、ステップS417へ戻り罫線位置修正処理(1)を行う。 It is determined whether or not the ruled line position correction process has been completed using all the tables in the row direction as the reference table (step S418). If not completed (step S418; No), it is still set as the reference table in the process in the row direction. Another table that has not been set is set as the reference table (step S419), and the process returns to step S417 to perform the ruled line position correction process (1).
行方向の全ての表を基準表として罫線位置修正処理が完了した場合は(ステップS418;Yes)、行方向の修正後の罫線位置に従い、生成中のスプレッドシートのセル(列方向の各セルの位置および高さ)を設定する(ステップS420)。なお、行方向に複数の表が並ぶ状態でない場合(ステップS413;No)には、ステップS414を行って罫線位置を認識し、その罫線位置に従って、生成中のスプレッドシートのセル(列方向の各セルの位置および幅)を設定する。 When the ruled line position correction processing is completed using all the tables in the row direction as the reference table (step S418; Yes), the cell of the spreadsheet being generated (the cell of each cell in the column direction is changed according to the ruled line position after the correction in the row direction. The position and height are set (step S420). If a plurality of tables are not arranged in the row direction (step S413; No), step S414 is performed to recognize the ruled line position, and according to the ruled line position, the cell of the spreadsheet being generated (each column direction) Cell position and width).
次に、各表の罫線にあたるセルの枠を着色するように設定して(ステップS421)、本処理を終了する。 Next, the cell frame corresponding to the ruled line of each table is set to be colored (step S421), and this process is terminated.
図13は、基準表を変更することで、罫線位置の修正がより進行する様子を示している。図13の状態P31では、表90が基準表であり、表100の罫線101は、表90の罫線91を基準線とする場合も罫線92を基準線とする場合も罫線間の差分が変更許容範囲を超えるため罫線位置が修正されずに残る。同様に表110の罫線111についても、表90の罫線91と罫線92のいずれを基準線とする場合も罫線間の差分が変更許容範囲を超えるため罫線位置が修正されずに残る。 FIG. 13 shows how the ruled line position is further corrected by changing the reference table. In the state P31 of FIG. 13, the table 90 is a reference table, and the ruled line 101 of the table 100 allows the difference between the ruled lines to be changed regardless of whether the ruled line 91 of the table 90 is the reference line or the ruled line 92 is the reference line. The ruled line position remains uncorrected because it exceeds the range. Similarly, the ruled line position of the table 110 remains uncorrected because the difference between the ruled lines exceeds the change allowable range when the ruled line 91 or the ruled line 92 of the table 90 is used as the reference line.
次に、表100を基準表に選択した状態P32では、表100の罫線101を基準線としたとき、表110の罫線111は、基準線101との差分が変更許容範囲となり、罫線101の位置に修正される。このように、基準表を切り替えることで、修正されないまま残ってしまう罫線を少なくすることができる。 Next, in the state P32 in which the table 100 is selected as the reference table, when the ruled line 101 of the table 100 is used as a reference line, the difference between the ruled line 111 of the table 110 and the reference line 101 is within the change allowable range, and the position of the ruled line 101 To be corrected. In this way, by switching the reference table, it is possible to reduce ruled lines that remain uncorrected.
このように本発明によれば、使用用途に適したセル設定のスプレッドシートデータ(スプレッドシート形式ファイル)を作成することができる。特に編集を想定しているような使用用途の場合には、元原稿の表のサイズやレイアウトの忠実な再現性の優先度を下げ、元原稿との微小のずれを許容することで、再利用性を重視したスプレッドシート形式ファイルを作成することができる。一方、使用用途によってオリジナル原稿を忠実に表現する必要があり、位置変更の許容が不可の場合は、変更許容範囲を小さく設定することでセルを細かく分離して忠実に表現することができる。すなわち、設定する変更許容範囲の大きさ次第で、編集に適するものでも厳密さを優先するものでも柔軟に対応でき、使用用途に適したスプレッドシートデータを生成することができる。 As described above, according to the present invention, spreadsheet data (spreadsheet format file) with cell settings suitable for the intended use can be created. In particular, when the usage is intended to be edited, the priority of the original manuscript table size and layout faithful reproducibility is lowered to allow for a slight deviation from the original manuscript for reuse. It is possible to create a spreadsheet format file that emphasizes sex. On the other hand, it is necessary to faithfully represent the original document depending on the usage, and when the change in position is not allowed, the cell can be finely separated and faithfully expressed by setting the change allowable range small. In other words, depending on the size of the allowable change range to be set, it is possible to flexibly cope with whether editing is appropriate or priority is given to strictness, and spreadsheet data suitable for use can be generated.
以上、本発明の実施の形態を図面によって説明してきたが、具体的な構成は実施の形態に示したものに限られるものではなく、本発明の要旨を逸脱しない範囲における変更や追加があっても本発明に含まれる。 The embodiment of the present invention has been described with reference to the drawings. However, the specific configuration is not limited to that shown in the embodiment, and there are changes and additions within the scope of the present invention. Are also included in the present invention.
実施の形態では、画像処理装置10を例に説明したが、これに限定されず、各実施の形態で示したスプレッドシートデータ生成装置としての機能を備える装置であればよい。また、本発明は、パーソナルコンピュータなどの情報処理装置を各実施の形態で示したスプレッドシートデータ生成装置として機能させるためのプログラムであってもよい。 In the embodiment, the image processing apparatus 10 has been described as an example. However, the present invention is not limited to this, and any apparatus having a function as the spreadsheet data generation apparatus described in each embodiment may be used. The present invention may also be a program for causing an information processing apparatus such as a personal computer to function as the spreadsheet data generation apparatus described in each embodiment.
実施の形態では、組にした2つの罫線の一方を他方の罫線の位置に移動させることで罫線位置を修正する、もしくは、2つの罫線の中間(平均)位置に両罫線を移動させる場合を例示したが、罫線の移動はこれに限定されるものではない。たとえば、表が多数あり、1つの基準線に対して、差分が変更許容範囲内となる罫線の組が複数存在する場合、これら複数組に係るすべての罫線位置の平均を修正後の罫線位置としてもよい。 The embodiment exemplifies a case where the ruled line position is corrected by moving one of the two ruled lines in the set to the position of the other ruled line, or both ruled lines are moved to an intermediate (average) position between the two ruled lines. However, the movement of the ruled line is not limited to this. For example, if there are a large number of tables and there are multiple ruled line pairs whose difference is within the allowable change range for one reference line, the average of all ruled line positions related to these multiple sets is used as the corrected ruled line position. Also good.
実施の形態では、画像読取部13で原稿を読み取って得た画像データ(イメージデータ)に含まれる表からスプレッドシートデータを生成したが、たとえば、ファイル形式で既に存在する2つのスプレッドシートを1つに纏めるような場合にも本発明は適用される。 In the embodiment, the spreadsheet data is generated from the table included in the image data (image data) obtained by reading the document by the image reading unit 13. For example, one of two spreadsheets already existing in the file format is used. The present invention is also applied to cases such as those described above.
また、変更許容範囲は複数段階に分けて設定されてもよい。たとえば、画像読取部13で同じレイアウトの表原稿を複数枚読み取る場合には、読み取ったイメージデータ上では表の位置が僅かにずれる場合がある。このような場合、この微小なズレに対応した変更許容範囲(たとえば、1mm)を設定して罫線位置の修正を行い、次に、実際のセルのズレを補うための変更許容範囲(たとえば5mm)を設定して罫線位置の修正を行う。このとき、たとえば、位置修正する罫線の数に制限を設ける。このようにすれば、微小なズレはすべて解消しつつ、大きく罫線位置の修正が行われる箇所を所定数以下に制限する、といったことができる。 Further, the change allowable range may be set in a plurality of stages. For example, when a plurality of front documents having the same layout are read by the image reading unit 13, the position of the front may be slightly shifted on the read image data. In such a case, a change allowable range (for example, 1 mm) corresponding to this minute shift is set to correct the ruled line position, and then a change allowable range (for example, 5 mm) for compensating for the actual cell shift. Set the ruled line position. At this time, for example, the number of ruled lines whose positions are to be corrected is limited. In this way, it is possible to eliminate all the minute misalignments and limit the number of locations where the ruled line position is largely corrected to a predetermined number or less.
また、変更許容範囲は、セルの大きさやセル数に応じて変更されてもよい。たとえば、移動対象の罫線を枠線に含みかつ該罫線の移動方向側にあるセルのサイズに応じて、変更許容範囲を変更するようにしてもよい。たとえば、ある罫線を右方向に移動させる場合には、その罫線を枠線の1つに含むセルであって該罫線の右側にあるセルのサイズに応じて変更許容範囲の大きさを変更する。上記セルが大きいほど、変更許容範囲を大きくするようにすればよい。つまり、罫線を移動させることで小さくなるセルのサイズ(罫線移動方向にあるセルのサイズ)が大きいほど変更許容範囲を大きくし、罫線を移動させることで小さくなるセルのサイズが小さいほど変更許容範囲を小さくする。 The change allowable range may be changed according to the cell size or the number of cells. For example, the permissible change range may be changed according to the size of the cell that includes the ruled line to be moved in the frame line and is located on the moving direction side of the ruled line. For example, when a certain ruled line is moved to the right, the size of the change allowable range is changed according to the size of a cell that includes the ruled line in one of the frame lines and is on the right side of the ruled line. What is necessary is just to make a change tolerance range large, so that the said cell is large. In other words, the change allowable range is increased as the size of the cell that is reduced by moving the ruled line (the size of the cell in the ruled line movement direction) is increased, and the change allowable range is decreased as the size of the cell that is reduced by moving the ruled line is decreased. Make it smaller.
図14(a)の例では、表120の罫線122と表130の罫線132との差分は変更許容範囲Aを超えるので罫線位置を修正できないが、同図(b)のように、罫線132の移動方向(本例では左側)のセルが大きい場合には、該セルのサイズに応じて変更許容範囲が変更許容範囲Bのように拡大する。これにより、罫線132と罫線122との位置の差分が変更許容範囲Bに収まり、罫線132の位置が罫線122の位置に修正される。 In the example of FIG. 14A, the difference between the ruled line 122 of the table 120 and the ruled line 132 of the table 130 exceeds the allowable change range A, so the position of the ruled line cannot be corrected. However, as shown in FIG. When the cell in the movement direction (left side in this example) is large, the change allowable range is expanded like the change allowable range B according to the size of the cell. As a result, the difference between the positions of the ruled line 132 and the ruled line 122 falls within the change allowable range B, and the position of the ruled line 132 is corrected to the position of the ruled line 122.
このほか、変更許容範囲はセルサイズに対するセル内の文字数や余白サイズに応じて変更するようにしてもよい。すなわち、セル内の文字に対してセルサイズの余裕(余白)が大きいほど変更許容範囲を大きくする。また文字をセル内に収めることのできる範囲に、変更許容範囲を制限するようにしてよい。 In addition, the change allowable range may be changed according to the number of characters in the cell and the margin size with respect to the cell size. That is, the change allowable range is increased as the cell size margin (margin) increases with respect to the characters in the cell. Further, the change allowable range may be limited to a range in which characters can be accommodated in the cell.
実施の形態では、スプレッドシートの全範囲に対して基準表を1つ設定するようにしたが、エリア別に基準表を設けてもよい。たとえば、図15に示すように、表140と表150が列方向に並ぶエリアAでは表140を基準表とし、表160と表150とが列方向に並ぶエリアBでは表160を基準表とする、などとしてもよい。最も罫線の多い表を基準表とする場合には、エリア毎の罫線数によって、エリア毎に基準表を決定すればよい。 In the embodiment, one reference table is set for the entire range of the spreadsheet, but a reference table may be provided for each area. For example, as shown in FIG. 15, in the area A where the tables 140 and 150 are arranged in the column direction, the table 140 is a reference table, and in the area B where the tables 160 and 150 are arranged in the column direction, the table 160 is a reference table. , Etc. When the table with the most ruled lines is used as the reference table, the reference table may be determined for each area according to the number of ruled lines for each area.
10…画像処理装置
11…CPU
12…バス
13…画像読取部
14…画像形成部
15…ROM
16…RAM
17…不揮発メモリ
18…表示部
19…操作部
21…画像処理部
22…ネットワークI/F部
23…ハードディスク装置
40、50、70、80…表
41、42、43、44…罫線
51、52、53、…罫線
64、65…罫線
71、72、73、74…罫線
81、82、83…罫線
90、100、110、120、130…表
91、92、101、111、121、122、131、132…罫線
140、150、160…表
DESCRIPTION OF SYMBOLS 10 ... Image processing apparatus 11 ... CPU
DESCRIPTION OF SYMBOLS 12 ... Bus 13 ... Image reading part 14 ... Image forming part 15 ... ROM
16 ... RAM
DESCRIPTION OF SYMBOLS 17 ... Non-volatile memory 18 ... Display part 19 ... Operation part 21 ... Image processing part 22 ... Network I / F part 23 ... Hard disk apparatus 40, 50, 70, 80 ... Table 41, 42, 43, 44 ... Ruled line 51, 52, 53, ... Ruled lines 64, 65 ... Ruled lines 71, 72, 73, 74 ... Ruled lines 81, 82, 83 ... Ruled lines 90, 100, 110, 120, 130 ... Tables 91, 92, 101, 111, 121, 122, 131, 132: Ruled lines 140, 150, 160 ... Table
Claims (17)
前記取得した罫線の中から異なる表に属する2つの罫線の組を選択し、この2つの罫線の罫線位置が相違しかつその差分が所定の変更許容範囲内に収まる場合に、該2つの罫線のいずれか一方または双方の罫線位置を移動させて前記2つの罫線の罫線位置を1つの罫線位置に統合する統合処理を、1組以上について行い、
前記統合処理終了後の罫線位置に従ってセルを設定したスプレッドシートデータを生成する
ことを特徴とするスプレッドシートデータ生成装置。 Each ruled line and ruled line position of a plurality of tables arranged on one spreadsheet are acquired and classified for each table.
When a set of two ruled lines belonging to different tables is selected from the acquired ruled lines, and the ruled line positions of the two ruled lines are different and the difference is within a predetermined change allowable range, the two ruled lines One or both of the ruled line positions are moved, and the integration process for integrating the ruled line positions of the two ruled lines into one ruled line position is performed for one or more sets.
Spreadsheet data in which cells are set in accordance with the ruled line position after completion of the integration process is generated.
ことを特徴とする請求項1に記載のスプレッドシートデータ生成装置。 A plurality of tables in which a plurality of tables are detected from one page of image data including a plurality of tables or a plurality of pages of image data each including a table, and the detected plurality of tables are arranged on the one spreadsheet. The spreadsheet data generation device according to claim 1, wherein the spreadsheet data generation device is processed as follows.
前記基準とする表に属する罫線と他の表に属する罫線とを、前記組にする
ことを特徴とする請求項1または2に記載のスプレッドシートデータ生成装置。 Decide on a standard table,
The spreadsheet data generation device according to claim 1 or 2, wherein the ruled lines belonging to the reference table and the ruled lines belonging to another table are set as the set.
前記統合を行方向に行う場合は、行方向の罫線数が最多の表を前記基準の表に決定する
ことを特徴とする請求項3に記載のスプレッドシートデータ生成装置。 When performing the integration in the column direction, the table with the largest number of ruled lines in the column direction is determined as the reference table,
4. The spreadsheet data generation device according to claim 3, wherein when the integration is performed in the row direction, the table having the largest number of ruled lines in the row direction is determined as the reference table. 5.
ことを特徴とする請求項3または4のいずれか1つに記載のスプレッドシートデータ生成装置。 The spreadsheet data generation device according to claim 3, wherein the integration process is performed again by changing a reference table.
ことを特徴とする請求項3乃至5のいずれか1つに記載のスプレッドシートデータ生成装置。 6. The ruled line position of another table is aligned with the ruled line position of the reference table ruled line, out of the two ruled lines in the set. 6. Spreadsheet data generator.
ことを特徴とする請求項1乃至5のいずれか1つに記載のスプレッドシートデータ生成装置。 The spreadsheet data generation apparatus according to any one of claims 1 to 5, wherein the ruled line positions of the two ruled lines in the set are integrated into an intermediate position thereof.
ことを特徴とする請求項1乃至5のいずれか1つに記載のスプレッドシートデータ生成装置。 Of the two ruled lines in the set, a cell whose size is reduced when the ruled line position of one ruled line is moved to the ruled line position of the other ruled line, and the moved ruled line is included in the frame line. The spreadsheet data generation apparatus according to claim 1, wherein the integration is performed using a ruled line having a smaller number as a moving ruled line.
ことを特徴とする請求項1乃至8のいずれか1つ記載のスプレッドシートデータ生成装置。 The spreadsheet data generation device according to any one of claims 1 to 8, wherein the integration processing is performed in preference to a set having a small difference.
ことを特徴とする請求項1乃至9のいずれか1つに記載のスプレッドシートデータ生成装置。 The integration process is repeated until the number of cells falls below a predetermined upper limit number, and when the number of cells does not decrease even if the integration process is performed within the current allowable change range, the change allowable range is expanded. The spreadsheet data generation device according to any one of claims 1 to 9.
ことを特徴とする請求項1乃至10のいずれか1つに記載のスプレッドシートデータ生成装置。 The spread according to any one of claims 1 to 10, wherein a change allowable range used in the row direction integration process and a change allowable range used in the column direction integration process can be individually set. Sheet data generation device.
ことを特徴とする請求項1乃至11のいずれか1つに記載のスプレッドシートデータ生成装置。 The spreadsheet data generation device according to any one of claims 1 to 11, wherein the integration processing is performed for both directions in the order of the column direction and the row direction, or in the order of the row direction and the column direction.
行方向にのみ前記複数の表が存在する場合は、行方向にのみ前記統合処理を行う
ことを特徴とする請求項1乃至11のいずれか1つに記載のスプレッドシートデータ生成装置。 When the plurality of tables exist only in the column direction, the integration process is performed only in the column direction,
The spreadsheet data generation device according to any one of claims 1 to 11, wherein when the plurality of tables exist only in a row direction, the integration processing is performed only in the row direction.
ことを特徴とする請求項1乃至13のいずれか1つに記載のスプレッドシートデータ生成装置。 The spreadsheet data generation device according to any one of claims 1 to 13, wherein the change allowable range is set in a plurality of stages.
ことを特徴とする請求項1乃至14のいずれか1つに記載のスプレッドシートデータ生成装置。 The change allowable range is changed according to a size of a cell that includes a ruled line to be moved in a frame line and is on the side to be moved of the ruled line. Spreadsheet data generator.
行方向の罫線の統合処理では、行方向の境界線でスプレッドシートを複数のエリアに分割し、エリア毎に基準の表を設定する
ことを特徴とする請求項3乃至5のいずれか1つに記載のスプレッドシートデータ生成装置。 In the process of integrating the ruled lines in the column direction, the spreadsheet is divided into multiple areas along the boundary line in the column direction, and a standard table is set for each area.
6. In the integration process of ruled lines in the row direction, the spreadsheet is divided into a plurality of areas at the border line in the row direction, and a reference table is set for each area. The described spreadsheet data generation device.
1枚のスプレッドシート上に配置する複数の表の各罫線および罫線位置を取得して表毎に分類する機能と、
前記取得した罫線の中から異なる表に属する2つの罫線の組を選択し、この2つの罫線の罫線位置が相違しかつその差分が所定の変更許容範囲内に収まる場合に、該2つの罫線のいずれか一方または双方の罫線位置を移動させて前記2つの罫線の罫線位置を1つの罫線位置に統合する統合処理を、1組以上について行う機能と、
前記統合処理終了後の罫線位置に従ってセルを設定したスプレッドシートデータを生成する機能と、
を実行させる
ことを特徴とするプログラム。 Information processing device
A function of acquiring each ruled line and ruled line position of a plurality of tables to be arranged on one spreadsheet and classifying them for each table;
When a set of two ruled lines belonging to different tables is selected from the acquired ruled lines, and the ruled line positions of the two ruled lines are different and the difference is within a predetermined change allowable range, the two ruled lines A function of performing integration processing for one or more sets by moving one or both ruled line positions and integrating the ruled line positions of the two ruled lines into one ruled line position;
A function of generating spreadsheet data in which cells are set according to the ruled line position after the integration process is completed;
A program characterized by having executed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2011058432A JP5541202B2 (en) | 2011-03-16 | 2011-03-16 | Spreadsheet data generation apparatus and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2011058432A JP5541202B2 (en) | 2011-03-16 | 2011-03-16 | Spreadsheet data generation apparatus and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2012194804A JP2012194804A (en) | 2012-10-11 |
| JP5541202B2 true JP5541202B2 (en) | 2014-07-09 |
Family
ID=47086629
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2011058432A Expired - Fee Related JP5541202B2 (en) | 2011-03-16 | 2011-03-16 | Spreadsheet data generation apparatus and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5541202B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9969677B2 (en) | 2010-12-22 | 2018-05-15 | The Trustees Of Columbia University In The City Of New York | Histone acetyltransferase modulators and uses thereof |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10607381B2 (en) | 2014-07-07 | 2020-03-31 | Canon Kabushiki Kaisha | Information processing apparatus |
| JP6452329B2 (en) * | 2014-07-07 | 2019-01-16 | キヤノン株式会社 | Information processing apparatus, information processing method, and program |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5187957B2 (en) * | 2008-07-31 | 2013-04-24 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Generating device, generating method, and program |
| JP5465015B2 (en) * | 2010-01-06 | 2014-04-09 | キヤノン株式会社 | Apparatus and method for digitizing documents |
| JP5672732B2 (en) * | 2010-03-23 | 2015-02-18 | 富士通株式会社 | Spreadsheet generation program, spreadsheet generation device, and spreadsheet generation method |
-
2011
- 2011-03-16 JP JP2011058432A patent/JP5541202B2/en not_active Expired - Fee Related
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9969677B2 (en) | 2010-12-22 | 2018-05-15 | The Trustees Of Columbia University In The City Of New York | Histone acetyltransferase modulators and uses thereof |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2012194804A (en) | 2012-10-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1764998A2 (en) | Image processing apparatus and computer program product | |
| JP5672953B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| JP2007013924A (en) | Image processing apparatus, program, and image processing method | |
| CN101763004A (en) | Print control device | |
| CN101131631A (en) | Image forming apparatus, image forming method, and computer program product | |
| JP2013074609A (en) | File name creation apparatus and file name creation program | |
| JP5541202B2 (en) | Spreadsheet data generation apparatus and program | |
| JP2007188054A (en) | Image forming apparatus, program, and item setting processing method | |
| JP6435951B2 (en) | Image generation apparatus, control program for image generation apparatus, and control method for image generation apparatus. | |
| JP4808661B2 (en) | Image processing apparatus, program, and image processing method | |
| JP7087656B2 (en) | Image forming device, imposition control program and imposition control method | |
| CN1684493B (en) | Image forming apparatus and image forming method | |
| JP2018056797A (en) | Image processing device | |
| US8228553B2 (en) | Image processing apparatus, image processing method, and computer program product | |
| JP2020188316A (en) | Image forming device, image forming system, and control program | |
| JP4808662B2 (en) | Image processing apparatus, program, and image processing method | |
| JP7517529B2 (en) | Image inspection device, image inspection program, and image inspection method | |
| JP2016163141A (en) | Image processing apparatus, image processing method and program | |
| JP2022044454A (en) | Programs and devices | |
| JP2005266364A (en) | Image reading apparatus, image forming apparatus, control program for image reading apparatus, and recording medium. | |
| US20260122194A1 (en) | Image forming apparatus, method for controlling image forming apparatus, and storage medium | |
| US20250348255A1 (en) | Information processing system, non-transitory computer readable medium storing program, and information processing method | |
| JP7298363B2 (en) | Image processing device | |
| JP2010074447A (en) | Image processing apparatus, program and image processing method | |
| JP3977834B2 (en) | Image forming apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20130417 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130925 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140325 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20140408 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140421 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5541202 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |