JP4502960B2 - Image editing apparatus and image editing method - Google Patents

Image editing apparatus and image editing method Download PDF

Info

Publication number
JP4502960B2
JP4502960B2 JP2006040193A JP2006040193A JP4502960B2 JP 4502960 B2 JP4502960 B2 JP 4502960B2 JP 2006040193 A JP2006040193 A JP 2006040193A JP 2006040193 A JP2006040193 A JP 2006040193A JP 4502960 B2 JP4502960 B2 JP 4502960B2
Authority
JP
Japan
Prior art keywords
line
image
copy
column
image editing
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
Application number
JP2006040193A
Other languages
Japanese (ja)
Other versions
JP2007219872A (en
Inventor
良一 松田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Engineering Ltd
Original Assignee
NEC Engineering Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2006040193A priority Critical patent/JP4502960B2/en
Publication of JP2007219872A publication Critical patent/JP2007219872A/en
Application granted granted Critical
Publication of JP4502960B2 publication Critical patent/JP4502960B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、イメージ編集装置およびイメージ編集方法に関し、特に、所望のイメージだけを切り出し、地方自治体等で戸籍謄抄本や住民票等の各種証明書を発行する証明書発行装置等に利用することのできるイメージ編集装置およびイメージ編集方法に関する。   The present invention relates to an image editing apparatus and an image editing method, and in particular, can be used for a certificate issuing apparatus that cuts out only a desired image and issues various certificates such as a family register copy or resident's card at a local government or the like. The present invention relates to an image editing apparatus and an image editing method.

読取装置によって読み取られたイメージに対して、所望のイメージだけを切り出して出力するイメージ編集装置が知られている。そのような編集装置は、例えば地方自治体などで、戸籍謄抄本や住民票などの各種証明書を発行する証明書発行装置として利用される。   2. Description of the Related Art An image editing apparatus that cuts out and outputs only a desired image from an image read by a reading apparatus is known. Such an editing device is used as a certificate issuing device for issuing various certificates such as a family register copy and a resident's card in a local government, for example.

この種の証明書を作成する際、イメージの切り出し範囲を特定する手法として、操作者自身が原稿に対して直接指定するか、機器を介して画面上に表示された映像を間接的に指定する方法と、操作者は切り出し位置を指定することなく、自動的に装置が代行する方法とが考えられている。   When creating this type of certificate, the operator can either specify the document directly on the document or indirectly specify the video displayed on the screen via the device. There are considered a method and a method in which the apparatus automatically substitutes the operator without designating the cutout position.

しかし、前者は、操作性を向上するために指定手段を工夫することで、あらゆる原稿に対して安定した画像を得ることが可能であるが、編集処理だけを装置が行い、切出位置の入力を操作者に依存しているため、位置指定や操作手順を誤ると不本意な編集画像を出力してしまう危険性がある。そのため、位置指定に細心の注意と多大の時間を要し操作者に与える負担が大きいという問題がある。   However, in the former, it is possible to obtain a stable image for any manuscript by devising a designation means to improve operability, but the device performs only the editing process and inputs the cutting position. Therefore, there is a risk that an unintentionally edited image may be output if the position designation or operation procedure is wrong. For this reason, there is a problem in that careful attention and a great deal of time are required for position designation, and the burden on the operator is large.

一方、後者は、特に読み込む原稿の様式が事前に判っており、それほど多くない場合は、イメージの編集操作を自動化でき、簡便な操作によって所望のイメージを得ることが可能である。しかし、自動編集を行うためには、予め原稿を帳票として登録する必要があるが、取り扱う原稿の様式をすべて登録することは現実には不可能である。そのため、登録されていない原稿を読み取った場合には、切出位置の指定を操作者に完全に一任しなければならず、操作性が著しく損なわれ、実際に運用する帳票のすべてを処理できないという問題があり、更に、予め登録した帳票であっても、原稿の置かれた位置によっては原稿を特定できないなどの問題もある。   On the other hand, in the latter case, the format of the original to be read is known in advance, and when it is not so many, the image editing operation can be automated, and a desired image can be obtained by a simple operation. However, in order to perform automatic editing, it is necessary to register a document as a form in advance, but in reality it is impossible to register all the formats of a document to be handled. For this reason, if an unregistered document is scanned, it is necessary to leave the designation of the cutting position to the operator completely. In addition, there is a problem that even if the form is registered in advance, the original cannot be specified depending on the position where the original is placed.

そこで、手動、自動双方の優位性を高めつつ、同時に双方の有する問題点を解消し、操作者にとって実用的な操作性の良い技術が本願発明者によって提案されている(特許文献1参照)。この画像編集技術は、原稿から読み取り入力画像メモリに格納された画像データから、読取画像の罫線情報を検出して罫線情報一覧表を生成し、この一覧表に基づいて原稿の種類を推定し読取画像の切出位置を推定し、推定した切出位置に従い読取画像の余白部分の記載を含めた外枠部分を切出し読取画像の中央部の空白枠位置が出力画像の中心になるように編集するようにしている。   Thus, a technique has been proposed by the present inventor of the present application that improves both manual and automatic advantages while simultaneously solving the problems of both, and has good practical operability for the operator (see Patent Document 1). This image editing technique detects a ruled line information of a read image from image data read from a document and stored in an input image memory, generates a ruled line information list, and estimates and reads the type of document based on the list. Estimate the cutout position of the image, and edit the outer frame part including the description of the margin part of the read image according to the estimated cutout position so that the blank frame position at the center of the read image becomes the center of the output image I am doing so.

特開2005−316847号公報(第4頁−第7頁、図1)Japanese Patent Laying-Open No. 2005-316847 (pages 4-7, FIG. 1)

しかしながら、上述した従来技術では、戸籍謄抄本や住民票等の各種証明書において、記載されることが少なくない「以下余白」メッセージの付加位置の自動推定ができず、従来は、画面上に表示されたイメージを見て、操作者が手動操作によって「以下余白」メッセージを移動して、位置を決める手法が取られており、操作性が悪いという問題点がある。なお、「以下余白」メッセージとは、上記各種証明書は一定の記載エリアを有するが、家族構成の相違等により実際の記載量は区区であるので、残余の記載エリアに証明者以外の者により余計な記入がされることによって証明書の信憑性が損なわれるのを阻止するために証明者により付加されるメッセージである。   However, with the above-described conventional technology, it is not possible to automatically estimate the added position of the “margin” message, which is often described in various certificates such as family register abstracts and resident's cards. Conventionally, it is displayed on the screen. There is a problem in that the operability is poor because a method is adopted in which the operator moves the “following margin” message by manual operation and determines the position. The “margin” message means that the above-mentioned various certificates have a fixed description area, but the actual description amount is a ward due to differences in family structure, etc. This message is added by the prover to prevent the credibility of the certificate from being lost due to extra entries.

そこで、本発明の目的は、上記従来技術をベースにして、「以下余白」メッセージ記載上の操作性を向上させたイメージ編集装置およびイメージ編集方法を提供することにある。   SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide an image editing apparatus and an image editing method in which the operability in describing the “margin” message is improved based on the above prior art.

本発明のイメージ編集装置は、帳票の原稿を読み取る読取部(図1の1)と、該読取部が読み取ったイメージデータを記憶する入力イメージメモリ(図1の21)と、該入力イメージメモリに格納されているイメージデータから、読取イメージの罫線情報を検出して罫線情報一覧表を生成する罫線検出部(図1の321)と、該罫線検出部が生成した罫線情報一覧表に基づいて原稿の種類を推定し、読取イメージの切出位置を特定する帳票推定部(図1の322)と、該帳票推定部が推定した切出位置に従い、読取イメージの余白部分の記載を含めた外枠部分のイメージを切り出し、該読取イメージから推定した未記載欄に「以下余白」メッセージを付加した出力イメージを編集するイメージ編集部(図1の323)を備えることを特徴とする。   An image editing apparatus according to the present invention includes a reading unit (1 in FIG. 1) for reading a document of a form, an input image memory (21 in FIG. 1) for storing image data read by the reading unit, and the input image memory. A ruled line detection unit (321 in FIG. 1) that detects ruled line information of the read image from the stored image data and generates a ruled line information list, and a document based on the ruled line information list generated by the ruled line detection unit A form estimation unit (322 in FIG. 1) for estimating the type of the read image and specifying the cutout position of the read image, and an outer frame including a description of the blank portion of the read image according to the cutout position estimated by the form estimation unit An image editing unit (323 in FIG. 1) is provided that cuts out an image of a part and edits an output image in which a “margin” message is added to an undescribed column estimated from the read image.

より詳しくは、前記未記載欄を推定するにあたって、原稿内の外枠の間に存在し、互いに隣接する罫線間に点在する黒画素数を順次計測して比較し、取り扱う帳票の特性に則った特有の記載行を手掛かりに未記載行を判定することを特徴とする。   In more detail, when estimating the unrecorded column, the number of black pixels existing between the outer frames in the document and interspersed between adjacent ruled lines is sequentially measured and compared, and in accordance with the characteristics of the form to be handled. It is characterized in that an undescribed line is determined by using a specific description line as a clue.

そして、帳票の行の黒画素数と所定の未記載行の黒画素数の差が、所定の記載行の黒画素数と所定の未記載行の黒画素数の差の所定比を超えれば帳票の当該行は記載行、以下なら未記載行とすることを特徴とする。 If the difference between the number of black pixels in the line of the form and the number of black pixels in the predetermined undescribed line exceeds a predetermined ratio of the difference between the number of black pixels in the predetermined unwritten line and the number of black pixels in the predetermined unwritten line This line is a description line, and if not, it is an undescribed line .

更に、所定の記載行を除籍謄本の1枚目の筆頭者欄の住所事項が記載されている先頭から2行目とし、所定の未記載行を除籍謄本の最左行とすることを特徴とする。Furthermore, the prescribed line is the second line from the top where the address matters in the first column of the first copy of the removal copy are listed, and the predetermined unrecorded line is the leftmost line of the removal copy. To do.

本発明は、原稿内から記載行と未記載行の黒画素数をサンプルとして、原稿内の欄および行間にある黒画素数を順次計測して比較する構成としたため、罫線検出時に発生する許容誤差の範囲内で、黒画素数が大きく変化している場所を見つけ、全体の欄構成を踏まえて、未記載欄である条件を満たすことを確認して、「以下余白」メッセージの付加位置の自動推定が可能になるという効果を得ることができる。   Since the present invention is configured to sequentially measure and compare the number of black pixels between a line and a line in the document, using the number of black pixels in the document as a sample and the number of black pixels in the document as a sample, an allowable error that occurs when a ruled line is detected. Within the range of, find a place where the number of black pixels has changed greatly, and based on the overall column structure, confirm that the condition of the undescribed column is satisfied, The effect that estimation becomes possible can be obtained.

具体的には、取り扱う帳票の特性を生かして、1枚目の筆頭者欄の住所事項が記載されている先頭から2行目を記載行と見なし、最左欄の最終行を未記載行と見なすことで、双方の黒画素数を手掛かりとして、各行の黒画素数を比較することで、汚れや染み、皺などで読取時に白と見なすべき背景部分を誤って黒と見なした原画に対しても、記載行を正しく推定できるようになる。   Specifically, taking advantage of the characteristics of the forms to be handled, the second line from the top where the address matters in the first author column are described as the description line, and the last line in the leftmost column is the undescribed line By comparing the number of black pixels in each row with the number of black pixels as a clue, the background part that should be considered white at the time of reading due to dirt, stains, wrinkles, etc. However, it will be possible to correctly estimate the description line.

除籍謄本等の証明書を作成するためには、先ず原本の外枠を見つけ、余白部分の記載を含めて切り出し、次に中央部の空白枠を見つけ、その中央位置を出力画のセンターになるように配置した後、認証文を付加する。そして更に、記載のない欄に対して「以下余白」というメッセージを付加する場合がある。   To create a certificate such as a copy of an unregistered copy, first find the outer frame of the original, cut out including the description of the margin, then find the blank frame in the center, and use the center position as the center of the output image After the arrangement, an authentication text is added. Furthermore, a message “hereinafter blank” may be added to a column that is not described.

本発明は、自動編集装置の有する帳票の推定アルゴリズムを応用することで、未記載欄をも推定して、正しく「以下余白」メッセージを付加する方式を提案する。その手法は、帳票の原稿内から記載行と未記載行の黒画素数をサンプルとして、原稿内の欄および行間にある黒画素数を順次計測して比較することで、罫線検出時に発生する許容誤差の範囲内で、黒画素数が大きく変化している場所を見つけ、全体の欄構成を踏まえて、未記載欄である条件を満たすことを確認して、「以下余白」メッセージを付加するというものである。以下、本発明の実施の形態について図面を参照して詳細に説明する。   The present invention proposes a method in which an unedited column is estimated by applying a form estimation algorithm possessed by an automatic editing apparatus, and a “hereinafter blank” message is correctly added. The method uses the number of black pixels in the document in the document as the sample and the number of black pixels in the document as a sample, and sequentially measures and compares the number of black pixels between the columns and lines in the document, allowing the tolerance that occurs when detecting ruled lines. Find a place where the number of black pixels has changed significantly within the range of error, confirm that the condition of the undescribed column is satisfied, based on the overall column configuration, and add the “margin” message Is. Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図1は、本発明のイメージ編集装置の一実施の形態を示す。このイメージ編集装置は、大別して、原稿を読み取る読取部1と、読み取ったイメージデータ等を記憶する記憶部2と、装置全体を制御すると共に読み取ったイメージデータ等を編集して記憶部に記憶する制御部3と、操作者が操作する操作部4と、操作者に操作手順等を表示する表示部5と、記憶部2に格納されている編集されたイメージデータを取り出して記録紙に印刷する記録部6と、記憶部2に格納されている編集されたイメージデータを取り出して送信機等により送信する通信部7とで構成される。   FIG. 1 shows an embodiment of an image editing apparatus according to the present invention. This image editing apparatus is roughly divided into a reading unit 1 for reading a document, a storage unit 2 for storing the read image data, and the like, and controls the entire apparatus and edits the read image data and stores it in the storage unit. The control unit 3, the operation unit 4 operated by the operator, the display unit 5 for displaying the operation procedure and the like to the operator, and the edited image data stored in the storage unit 2 are taken out and printed on the recording paper. The recording unit 6 and a communication unit 7 that extracts edited image data stored in the storage unit 2 and transmits the image data by a transmitter or the like.

記憶部2は、読取部1で読み取ったイメージデータを記憶する入力イメージメモリ21と、制御部3の編集部32で編集されたイメージデータを記憶する出力イメージメモリ22とで構成される。   The storage unit 2 includes an input image memory 21 that stores image data read by the reading unit 1 and an output image memory 22 that stores image data edited by the editing unit 32 of the control unit 3.

制御部3は、操作部4からの指令を受けて各部に指令を送出する主制御部31と、記憶部2の入力画像メモリ21に記録されたイメージデータを読み出して編集する編集部32とで構成される。編集部32は、罫線検出部321と帳票推定部322とイメージ編集部323から構成される。   The control unit 3 includes a main control unit 31 that receives a command from the operation unit 4 and sends a command to each unit, and an editing unit 32 that reads and edits the image data recorded in the input image memory 21 of the storage unit 2. Composed. The editing unit 32 includes a ruled line detection unit 321, a form estimation unit 322, and an image editing unit 323.

罫線検出部321は、入力イメージメモリ21に格納されているイメージデータから罫線情報を検出し、同時に読取画の行情報を抽出し行毎の黒画素数一覧表を自動生成する。罫線情報は、イメージデータに含まれている罫線の始点と終点の座標の一覧表で与えられ、行情報は罫線の間に存在するイメージの情報である。   The ruled line detection unit 321 detects ruled line information from the image data stored in the input image memory 21, and simultaneously extracts line information of the read image to automatically generate a black pixel count list for each line. The ruled line information is given by a list of the coordinates of the start and end points of the ruled line included in the image data, and the line information is information on an image existing between the ruled lines.

帳票推定部322は、罫線検出部321が生成した罫線情報を基に、帳票の特徴を抽出し切出位置などを推定する。謄本を作成する場合には外枠罫線と中央枠罫線を抽出することになる。   The form estimation unit 322 extracts the features of the form based on the ruled line information generated by the ruled line detection unit 321 and estimates the cutout position and the like. When creating a copy, an outer frame ruled line and a central frame ruled line are extracted.

イメージ編集部323は、帳票推定部322が推定した切出位置に従い、読取イメージの余白部分の記載を含めた外枠部分を切り出し、次に中央部の空白枠位置から、その中央位置を出力イメージのセンターになるように配置する。そして、認証文を付加し、更に黒画素数一覧表を基に未記載行を推定し、未記載欄を推定して、「以下余白」というメッセージを付加する。   The image editing unit 323 cuts out the outer frame portion including the description of the blank portion of the read image according to the cutout position estimated by the form estimation unit 322, and then outputs the center position from the blank frame position in the center portion. Place it so that it becomes the center. Then, an authentication sentence is added, and an unwritten line is estimated based on the black pixel number list, an unwritten column is estimated, and a message “hereinafter blank” is added.

帳票として除籍謄本を採り上げ、これに認証文および「以下余白」というメッセージを付加する場合について説明する。図2は、除籍原本のレイアウトを示す。世帯の構成員に関する氏名や経歴などが、外枠で囲まれた4つの欄(右から基本欄,1欄,2欄,3欄と称する)に分けて記載される。   A case will be described in which an unregistered copy is taken as a form, and an authentication text and a message “hereinafter blank” are added thereto. FIG. 2 shows the layout of the original copy. The names and careers of household members are listed in four columns (referred to as the basic column, column 1, column 2, column 3 from the right) surrounded by an outer frame.

先ず、操作者は、表示部5の指示に従って、操作部4により所望の指定を行う。制御部3の主制御部31は、その指令を受けて、以下の処理を順次実行するように各部に指示を出す。読取部1は、操作者がセットした図2のようなレイアウトの除籍原本を読み取り、記憶部2の入力イメージメモリ21に格納する。   First, the operator performs a desired designation with the operation unit 4 in accordance with an instruction from the display unit 5. In response to the instruction, the main control unit 31 of the control unit 3 instructs each unit to sequentially execute the following processing. The reading unit 1 reads the original removal of the layout as shown in FIG. 2 set by the operator and stores it in the input image memory 21 of the storage unit 2.

図3は、図2の除籍原本から本発明のイメージ編集装置によって作成した謄本の証明書のレイアウトを示す。この編集手順は、先ず除籍原本の外枠を見つけ、余白部分の記載を含めて切り出し、次に中央部の空白枠を見つけ、その中央位置を出力画のセンターになるように配置した後、認証文を付加し、更に未記載欄を抽出して「以下余白」というメッセージを付加する。   FIG. 3 shows a layout of a certified certificate created by the image editing apparatus of the present invention from the unregistered original in FIG. In this editing procedure, first find the outer frame of the original removal, cut out including the description of the margin, then find the blank frame in the center, arrange the center position to be the center of the output image, then authenticate A sentence is added, an undescribed column is further extracted, and a message “hereinafter blank” is added.

「以下余白」という文字メッセージを記載する理由は、証明書を発行後、記載されていない欄に不要な書込みが行われないように、これ以上の記載が無いことを表すためである。従って、「以下余白」メッセージの後に、記載があってはならず、記載の有無を正しく認識する必要がある。本発明は、このように「以下余白」メッセージを正しく付加する方式を提案するものである。   The reason why the text message “margin” is described is to indicate that there is no further description so that unnecessary writing is not performed in a field that is not described after the certificate is issued. Accordingly, there should be no description after the “margin” message, and it is necessary to correctly recognize the presence or absence of the description. The present invention proposes a method for correctly adding a “hereinafter marginal” message as described above.

図4は、図2の除籍謄本の詳細を模式化したものであり、除籍謄本の各罫線行を最終行からL0,L1,L2・・・と順番に割り付けて、先頭行番号がL32となっている。図4における黒点は行に記載されている文字を示す。   Fig. 4 is a schematic diagram of the details of the removal copy of Fig. 2. The ruled line of the removal copy is assigned to L0, L1, L2, ... in order from the last row, and the first row number is L32. ing. The black dots in FIG. 4 indicate the characters described in the line.

編集部32の罫線検出部321は、入力イメージメモリ21に格納されている上記のイメージデータから罫線情報を検出し、同時に読取画の行情報を抽出し行毎の黒画素数一覧表を自動生成する。図5は、図4の除籍謄本に対応する黒画素数一覧表であって、行番号に対する黒画素数をまとめたテーブルである。   The ruled line detection unit 321 of the editing unit 32 detects the ruled line information from the image data stored in the input image memory 21, and simultaneously extracts the line information of the read image and automatically lists the black pixel count list for each line. Generate. FIG. 5 is a black pixel number list corresponding to the removal copy of FIG. 4, and is a table that summarizes the black pixel numbers for the row numbers.

ちなみに、欄外の記載が記載行の判定に悪影響を与えないように、外枠外の黒画素は除外して計測することや、必要に応じて、氏名欄なども除去するなどの処置を施すなどの対応は当然行っているが、本発明とは直接関係しないため割愛する。また、図4における備考は参考までに付加したものであり、「記載の有無」とは図4において黒点の有無をいう。   By the way, in order to prevent the description outside the column from adversely affecting the judgment of the description line, measure by excluding black pixels outside the outer frame, and removing the name column etc. as necessary Of course, this is done, but it is omitted because it is not directly related to the present invention. Also, the remarks in FIG. 4 are added for reference, and “the presence / absence of description” means the presence / absence of a black dot in FIG.

図6は、帳票推定部322およびイメージ編集部323における処理を示すフローチャートである。前提として、罫線検出部321にて、罫線を検出する際に、罫線間の画素数も同時に計測し、最終行をL0とし、先頭行をLX(=L32)とした行番号毎の黒画素数がテーブルとして保管されているものとする。   FIG. 6 is a flowchart showing processing in the form estimation unit 322 and the image editing unit 323. As a premise, when the ruled line detection unit 321 detects ruled lines, the number of pixels between the ruled lines is also measured at the same time. The number of black pixels per line number with the last line set to L0 and the first line set to LX (= L32) Is stored as a table.

先ず、現在処理している帳票が1枚目であるかを判定する(図6のステップS1)。1枚目であるか否かは、図2に示した基本欄の存否によって判定される。もし1枚目であれば、筆頭者欄の住所事項が記載されている先頭から2行目の黒画素数Pix[LX-1]を記載行と見なし、黒画素数Pix[LX-1]を内部変数PixONに保存する(ステップS2)。図2の帳票の場合は、図5に示したように、先頭行から2行目はL31であって、その黒画素数は「564」である。   First, it is determined whether or not the currently processed form is the first sheet (step S1 in FIG. 6). Whether or not it is the first sheet is determined by the presence or absence of the basic column shown in FIG. If it is the first one, the black pixel number Pix [LX-1] on the second line from the top where the address information in the first column is written is regarded as the written line, and the black pixel number Pix [LX-1] is Save to internal variable PixON (step S2). In the case of the form in FIG. 2, as shown in FIG. 5, the second line from the first line is L31 and the number of black pixels is “564”.

次に、最左欄の最終行の黒画素数Pix[0]を未記載欄と見なし、内部変数PixOFFに保存する(ステップS3)。図2の帳票の場合は、図5に示したように、最終行L0であって、その黒画素数は「177」である。そして、内部変数Lを帳票内の各行毎に最終行L0から順に先頭行L32に向かって、各行が記載行か未記載行かを調査していく(ステップS4〜S7)。   Next, the number of black pixels Pix [0] in the last line of the leftmost column is regarded as an undescribed column and stored in the internal variable PixOFF (step S3). In the case of the form in FIG. 2, as shown in FIG. 5, the last row L0 and the number of black pixels is “177”. Then, the internal variable L is examined for each line in the form from the last line L0 toward the first line L32 in order to check whether each line is a written line or an unwritten line (steps S4 to S7).

この調査は、L行目の黒画素数Pix[L]と内部変数PixOFFの差が内部変数PixONと内部変数PixOFFの差の40%以上であれば、記載行と見なし、40%であれば未記載行と見なす(ステップS5)ことによって行われる。判定基準を40%以上としているのは、原稿が汚れや染みなどで不鮮明になっている場合の配慮である。記載行と判定された場合は(ステップS5)、現在の行Lが含まれる欄の値(1,2,3のいずれか)に「1」を加算したものを内部変数Nとする(ステップS8)ことにより、記載行Lが含まれている切出し欄を算出する。図4の帳票の場合、最初の記載行はL11であり、2欄に属するのでN=3となる。   In this investigation, if the difference between the number of black pixels Pix [L] on the L line and the internal variable PixOFF is 40% or more of the difference between the internal variable PixON and the internal variable PixOFF, it is considered as a description line, and if it is 40% This is done by considering it as a description line (step S5). The criterion of 40% or more is a consideration when the original is unclear due to dirt or stain. When it is determined that the line is a description line (step S5), a value obtained by adding “1” to the value (any one of 1, 2, 3) in the column including the current line L is set as the internal variable N (step S8). ) To calculate the cutout column including the description line L. In the case of the form shown in FIG. 4, the first description line is L11 and belongs to the second column, so N = 3.

更に、内部変数Nが欄数(図2の帳票の場合はN=4)と等しいか否かをチェックする(ステップS9)ことにより、現在の行Lが含まれる欄が最終欄(3欄)であるかを判定する。その結果、最終欄でなければ、現在の行Lが含まれる欄の次の(欄の番号が大きい)欄が未記載である条件を満たしているかを確認する(ステップS10)。   Further, by checking whether the internal variable N is equal to the number of columns (N = 4 in the case of the form in FIG. 2) (step S9), the column containing the current line L is the final column (3 columns). It is determined whether it is. As a result, if it is not the last column, it is checked whether the condition (undescribed) is satisfied in the column (the column number is large) next to the column including the current row L (step S10).

具体的には、該当欄を含め、記載行を含む欄以前の(欄の番号が小さい)欄の1行目は必ず記載行であることなどをチェックする。それらの条件をすべて満たしている場合に、該当する欄の次に「以下余白」メッセージを付加して終了する(ステップS12)。図2の帳票の場合、欄数は4欄であり、該当欄は2欄(N=3)であるため、3欄に「以下余白」メッセージを付加することになり、図3に示すような証明書が完成する。なお、上記条件を満たさない場合であっても、「以下余白」メッセージは付加する(ステップS12)が、編集されたイメージを表示して操作者に証明書の確認を必ず行ってもらうようにしている。   Specifically, it is checked that the first line of the column (the column number is small) before the column including the description row including the corresponding column is a description row. If all of these conditions are satisfied, a “margin” message is added after the corresponding field and the process ends (step S12). In the case of the form shown in FIG. 2, the number of columns is 4, and the corresponding column is 2 columns (N = 3). Therefore, a “margin” message is added to the 3rd column, as shown in FIG. The certificate is completed. Even if the above conditions are not met, the “Blank” message is added (step S12), but the edited image is displayed and the operator must check the certificate. Yes.

一方、ステップS9におけるチェックの結果、現在の行Lが含まれる欄が最終欄であれば、例え未記載行があっても全欄記載ありとして(ステップS13)、ステップ「以下余白」メッセージは付加しないで終了する(ステップS14)。   On the other hand, if the result of the check in step S9 is that the field containing the current line L is the last field, even if there are unlisted lines, all the fields are described (step S13), and the step “margin” message is added. It ends without doing (step S14).

また、ステップS7において現在の行Lが先頭行LXである場合は、全欄に亘って記載行は無かったから「N=0」とし(ステップS11)、先頭行LXが属する欄(N=0)に「以下余白」メッセージを付加して終了する(ステップS12)。蛇足であるが、念のため追記しておくと、帳票の1枚目であれば、行L31についてはPix[L]=PixONであるから、ステップS5において必ず記載行ありと判定されるため、全欄記載なしにはならない。また、2枚目以降であっても、全欄に記載がない場合は、本来、操作者は証明書自体を作成しないため、実質的にステップS12の処理は実行されることはない。   If the current line L is the first line LX in step S7, since there are no description lines in all columns, “N = 0” is set (step S11), and the column to which the first line LX belongs (N = 0). Is appended with a “following margin” message (step S12). Although it is a snake leg, if you add it as a precaution, if it is the first sheet of the form, since it is Pix [L] = PixON for line L31, it is always determined that there is a description line in step S5. The entire column is not blank. In addition, even if it is the second and subsequent sheets, if there is no description in all the columns, the operator does not create the certificate itself, so the processing of step S12 is not substantially executed.

以上の説明では、帳票の欄数が4であるが、6欄や8欄に及ぶものであっても基本的に同様の手順で対応することができる。また、対象とする帳票を戸籍や附票原本についても同様に適用でき、更に、謄本に限らず、住民票の編集時においても、体裁は異なるが同様の余白メッセージを付加する際に、本発明は有効な手段となり得る。   In the above description, the number of columns of the form is 4, but even if the number of columns covers 6 or 8 columns, it can be dealt with by basically the same procedure. In addition, the target form can be applied to the family register and the original form of the tag in the same way. Further, the present invention is not limited to the copy but also when editing a resident's form, when adding the same margin message, although the appearance is different. Can be an effective means.

本発明のイメージ編集装置の一実施の形態を示すブロック図1 is a block diagram showing an embodiment of an image editing apparatus of the present invention. 除籍原本のレイアウトを示す図Diagram showing original layout 本発明のイメージ編集装置によって作成した謄本の証明書のレイアウトを示す図The figure which shows the layout of the certificate of the copy produced by the image editing apparatus of this invention 除籍謄本の詳細を模式化した図Schematic details of the removal copy 図4の除籍謄本に対応する黒画素数一覧を表示する図The figure which displays the black pixel number list which corresponds to the removal copy of figure 4 本発明の帳票推定部およびイメージ編集部における処理を示すフローチャートThe flowchart which shows the process in the form estimation part and image edit part of this invention

符号の説明Explanation of symbols

1 読取部
2 記憶部
3 制御部
4 操作部
5 表示部
6 記録部
7 通信部
21 入力イメージメモリ
22 出力イメージメモリ
31 主制御部
32 編集部
321 罫線検出部
322 帳票推定部
323 イメージ編集部
DESCRIPTION OF SYMBOLS 1 Reading part 2 Memory | storage part 3 Control part 4 Operation part 5 Display part 6 Recording part 7 Communication part
21 Input image memory
22 Output image memory
31 Main control unit
32 Editorial Department
321 Ruled line detector
322 Report Estimator
323 Image Editor

Claims (4)

戸籍謄本等の原稿を読み取る読取部と、
該読取部が読み取ったイメージデータを記憶する入力イメージメモリと、
該入力イメージメモリに格納されているイメージデータから、読取イメージの罫線情報を検出して罫線情報一覧表を生成する罫線検出部と、
該罫線検出部が生成した罫線情報一覧表に基づいて読取イメージの切出位置を推定する帳票推定部と、
該帳票推定部が推定した切出位置に従い、前記読取イメージの外枠部分を切り出し、該外枠部分を構成する欄の内で全ての行が未記載の未記載欄を推定して、これ以上の記載が無い旨のメッセージを前記未記載欄に付加した出力イメージを編集するイメージ編集部を備えることを特徴とするイメージ編集装置。
A reading unit that reads documents such as family register copies ;
An input image memory for storing image data read by the reading unit;
A ruled line detection unit that detects ruled line information of the read image from the image data stored in the input image memory and generates a ruled line information list;
A form estimation unit that estimates the cutout position of the read image based on the ruled line information list generated by the ruled line detection unit;
In accordance with the cutout position estimated by the form estimation unit, the outer frame portion of the read image is cut out, and all the lines in the columns constituting the outer frame portion are estimated as unwritten columns, and more An image editing apparatus comprising: an image editing unit that edits an output image in which a message to the effect that there is no description is added to the unwritten field .
前記未記載欄を推定するにあたって、前記外枠部分に存在し、互いに隣接する罫線間に点在する黒画素数を順次計測して比較し、前記戸籍謄本等の特性に則った特有の記載行を手掛かりに未記載行を判定することを特徴とする請求項1記載のイメージ編集装置。 In estimating the unrecorded column, the number of black pixels present in the outer frame portion and interspersed between adjacent ruled lines is sequentially measured and compared, and a specific description line according to the characteristics of the family register copy, etc. The image editing apparatus according to claim 1, wherein an unwritten line is determined by using a clue. 前記戸籍謄本等行の黒画素数と所定の未記載行の黒画素数の差、所定の記載行の黒画素数と前記所定の未記載行の黒画素数の差との比率が所定比を超えれば前記戸籍謄本等の当該行は記載行、所定比以下なら未記載行とすることを特徴とする請求項2に記載のイメージ編集装置。 The difference in the number of black pixels of a black pixel number with a predetermined undescribed line of each row, such as the family register, the ratio of the difference between the number of black pixels in the predetermined undescribed rows and the number of black pixels in a predetermined described row The image editing apparatus according to claim 2, wherein if the ratio exceeds a predetermined ratio, the line of the family register copy or the like is a description line, and if the ratio is less than the predetermined ratio , the line is an undescribed line. 前記戸籍謄本等が除籍謄本であって、
前記所定の記載行を除籍謄本の1枚目の筆頭者欄の住所事項が記載されている先頭から2行目とし、
前記所定の未記載行を除籍謄本の最左行とすることを特徴とする請求項3に記載のイメージ編集装置。
The family register copy etc. is a copy of the registration ,
The specified line is the second line from the top where the address items in the first column of the first copy of the registered copy are listed,
The image editing apparatus according to claim 3, wherein the predetermined unrecorded line is set as the leftmost line of the copy of the copy.
JP2006040193A 2006-02-17 2006-02-17 Image editing apparatus and image editing method Expired - Fee Related JP4502960B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006040193A JP4502960B2 (en) 2006-02-17 2006-02-17 Image editing apparatus and image editing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006040193A JP4502960B2 (en) 2006-02-17 2006-02-17 Image editing apparatus and image editing method

Publications (2)

Publication Number Publication Date
JP2007219872A JP2007219872A (en) 2007-08-30
JP4502960B2 true JP4502960B2 (en) 2010-07-14

Family

ID=38497101

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006040193A Expired - Fee Related JP4502960B2 (en) 2006-02-17 2006-02-17 Image editing apparatus and image editing method

Country Status (1)

Country Link
JP (1) JP4502960B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107945250A (en) * 2017-11-27 2018-04-20 江苏中威科技软件系统有限公司 The generation method of digital certificates

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0950534A (en) * 1995-08-09 1997-02-18 Casio Comput Co Ltd Original image output device
JP2005316847A (en) * 2004-04-30 2005-11-10 Nec Engineering Ltd Image editing device and image editing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0950534A (en) * 1995-08-09 1997-02-18 Casio Comput Co Ltd Original image output device
JP2005316847A (en) * 2004-04-30 2005-11-10 Nec Engineering Ltd Image editing device and image editing method

Also Published As

Publication number Publication date
JP2007219872A (en) 2007-08-30

Similar Documents

Publication Publication Date Title
US20080212901A1 (en) System and Method for Correcting Low Confidence Characters From an OCR Engine With an HTML Web Form
JP5234822B2 (en) XHTML data generation method and apparatus, and computer-readable recording medium
JP2008192032A (en) Document processing device, document processing method, and program
WO2001003416A1 (en) Border eliminating device, border eliminating method, and authoring device
JP2010105202A (en) Printing method and printing apparatus
JP2011040971A (en) Device, method and program for processing image
JP4502960B2 (en) Image editing apparatus and image editing method
JP4655824B2 (en) Image recognition apparatus, image recognition method, and image recognition program
JPH08129550A (en) Image processor and method for image processing
JP4692316B2 (en) Image processing apparatus, image processing method, and computer program
US20050105109A1 (en) Method of and apparatus for image processing and computer program
JP4339175B2 (en) Image editing apparatus and image editing method
JP2009017041A (en) Image processing multifunction device
JPH05108793A (en) Document edition device
JP2002077567A (en) Imaging apparatus, imaging method and medium recording program for imaging method on computer
CN104412277A (en) Apparatus and method for comparing two files containing graphics elements and text elements
JP2009147435A (en) Scanner and overwrite printing system using printer
JP2018173839A (en) Image processing device, processing method, and program
JP2008123446A (en) Log information management system, log information management device, log information management method, and log information management program
JP2007221293A (en) Image processing apparatus, image processing method and computer program
JP4192792B2 (en) Document processing apparatus and document output program
JPH10154234A (en) Original film proof reading device in digital printing
JP2002230480A (en) Character recognition device and method for correcting character recognition result
JP6565740B2 (en) Information processing apparatus and program
JP4157833B2 (en) Image processing apparatus, image processing method, program, and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070517

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090810

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090812

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090924

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20091118

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100215

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20100315

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: 20100331

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100420

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130430

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees