JP2009152757A - Slip processor and program - Google Patents

Slip processor and program Download PDF

Info

Publication number
JP2009152757A
JP2009152757A JP2007327515A JP2007327515A JP2009152757A JP 2009152757 A JP2009152757 A JP 2009152757A JP 2007327515 A JP2007327515 A JP 2007327515A JP 2007327515 A JP2007327515 A JP 2007327515A JP 2009152757 A JP2009152757 A JP 2009152757A
Authority
JP
Japan
Prior art keywords
color
unit
mark
image
pixels
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.)
Granted
Application number
JP2007327515A
Other languages
Japanese (ja)
Other versions
JP4812740B2 (en
Inventor
Mayumi Obara
真由美 小原
Yukihiro Ishikawa
幸弘 石川
Sachiko Minegishi
幸子 峰岸
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.)
Toshiba Corp
Toshiba Digital Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Solutions Corp
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 Toshiba Corp, Toshiba Solutions Corp filed Critical Toshiba Corp
Priority to JP2007327515A priority Critical patent/JP4812740B2/en
Publication of JP2009152757A publication Critical patent/JP2009152757A/en
Application granted granted Critical
Publication of JP4812740B2 publication Critical patent/JP4812740B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a slip processor and a program for effectively recognizing a mark, without using a dropout color. <P>SOLUTION: The slip processor is provided with: a read part for reading a slip on which a plurality of items are printed and an area for writing the mark indicating an item to be selected is provided as an image having a plurality of pixels; an extraction part for extracting first, second and third color groups for which the number of the pixels corresponding to the pixels are first, second and third largest respectively from the image inside the area; a color change part for changing the color of the pixels corresponding to the third color group, when a color difference between the second and third color groups is smaller than a prescribed reference color difference; and a recognition part for recognizing the mark separately from the item, on the basis of the image for which the color of the pixels corresponding to the third color group is changed. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は,帳票処理装置およびプログラムに関する。   The present invention relates to a form processing apparatus and a program.

帳票を読み取る光学式文字読取装置に関する技術が公開されている(例えば,特許文献1参照)。ここで,帳票に丸(「○」)等のマークが記入される場合がある。帳票に印字された複数の項目のいずれか(一または複数)にマークを記入することで,記入者が選択した項目を表すことができる。この場合,項目内容を表す印字と,筆記具等により記入されたマークとが,帳票上に存在することになる。   A technique related to an optical character reader for reading a form is disclosed (for example, see Patent Document 1). Here, a mark such as a circle (“◯”) may be entered on the form. The item selected by the writer can be expressed by writing a mark on one or more of the plurality of items printed on the form. In this case, prints representing the contents of the items and marks entered with a writing instrument or the like exist on the form.

このとき,帳票の印字色をドロップアウトカラーとすることで,項目内容の印字から記入されたマークを区分することが可能となる。印字色をドロップアウトカラーとすると,項目の印字が読み取りの対象から除外され,マークのみが読み取られる。
特開平11−42309号公報
At this time, by setting the print color of the form as a dropout color, it is possible to distinguish the mark entered from the print of the item content. If the print color is the dropout color, the item print is excluded from the reading target and only the mark is read.
JP 11-42309 A

しかし,ドロップアウトカラーを用いると,その色は読み取りに用いることができず,帳票に用いる色が制約される。
上記に鑑み,本発明はドロップアウトカラーを用いずに,マークの効果的な認識を可能とする帳票処理装置およびプログラムを提供することを目的とする。
However, when the dropout color is used, the color cannot be used for reading, and the color used for the form is restricted.
In view of the above, an object of the present invention is to provide a form processing apparatus and program that enable effective recognition of a mark without using a dropout color.

本発明の一態様に係る帳票処理装置は,複数の項目が印字され,かつ選択される項目を表すマークが記入される領域を有する帳票を複数の画素を有する画像として読み取る読取部と,前記領域内の画像から,画素に対応する画素の個数がそれぞれ1番目,2番目,および3番目に大きい第1,第2,および第3の色の群を抽出する抽出部と,前記第2,第3の色の群間の色差が所定の基準色差より小さい場合に,前記第3の色の群に対応する画素の色を変更する色変更部と,前記第3の色の群に対応する画素の色が変更された画像に基づいて,前記項目と区分してマークを認識する認識部と,を具備することを特徴とする。   A form processing apparatus according to an aspect of the present invention includes a reading unit that reads a form having an area in which a plurality of items are printed and a mark indicating an item to be selected is written as an image having a plurality of pixels, and the area An extraction unit for extracting the first, second, and third color groups having the first, second, and third largest numbers of pixels corresponding to the pixels from the image, and the second, second, A color changing unit that changes a color of a pixel corresponding to the third color group and a pixel corresponding to the third color group when a color difference between the three color groups is smaller than a predetermined reference color difference; And a recognition unit for recognizing a mark separately from the item based on an image whose color is changed.

本発明によれば,ドロップアウトカラーを用いずに,マークの効果的な認識を可能とする帳票処理装置およびプログラムを提供できる。   According to the present invention, it is possible to provide a form processing apparatus and program capable of effectively recognizing a mark without using a dropout color.

以下,図面を参照して,本発明の実施の形態を詳細に説明する。
図1は本発明の一実施形態に係る帳票処理装置100を表すブロック図である。
帳票処理装置100は,帳票,特に,帳票に記入されたマークを読み取る装置であり,読取装置110,装置本体120,記憶部130,表示部140,入力部150を有する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a block diagram showing a form processing apparatus 100 according to an embodiment of the present invention.
The form processing apparatus 100 is an apparatus for reading a form, in particular, a mark written on the form, and includes a reading apparatus 110, an apparatus main body 120, a storage unit 130, a display unit 140, and an input unit 150.

図2は,帳票の一部を表す図である。
帳票上に,マークエリアA1,A2が配置されている。マークエリアA1,A2は,筆記用具(例えば,鉛筆,ボールペン)により,マーク(例えば,「○」(丸マーク))が記入される領域(即ち,複数の項目が印字され,かつ選択される項目を表すマークが記入される領域)である。
FIG. 2 shows a part of the form.
Mark areas A1 and A2 are arranged on the form. The mark areas A1 and A2 are areas in which a mark (for example, “◯” (circle mark)) is written by a writing tool (for example, a pencil or a ballpoint pen) (that is, an item on which a plurality of items are printed and selected. This is an area in which a mark indicating is written.

マークエリアA1,A2には,選択すべき項目および選択時に表すべきマークが表される。マークエリアA1には項目として,「2年(24回)」,「3年(36回)」,「4年(48回)」,「5年(60回)」の4つが印字されている。マークエリアA2には項目として,「全年齢」,「21歳以上」,「26歳以上」,「30歳以上」の4つが印字されている。また,記入すべきマーク(基準マーク)を表すために,破線の丸が印字されている。   In the mark areas A1 and A2, items to be selected and marks to be displayed at the time of selection are displayed. In the mark area A1, four items “2 years (24 times)”, “3 years (36 times)”, “4 years (48 times)”, and “5 years (60 times)” are printed. . In the mark area A2, four items “all ages”, “21 years old or older”, “26 years old or older”, and “30 years old or older” are printed. A broken-line circle is printed to indicate a mark (reference mark) to be entered.

マークエリアA1,A2にはそれぞれ,「2年(24回)」,「21歳以上」の項目にマークM1,M2が記入されている。印字された破線の丸は記入されたマークM1,M2の下に隠されている。
本実施形態では,これらのマークM1,M2をこれらと重なるようにして印字された項目内容および基準マークと区別して読み取る。
In the mark areas A1 and A2, marks M1 and M2 are entered in the items "2 years (24 times)" and "21 years old or older", respectively. The printed dashed circle is hidden under the marked marks M1 and M2.
In the present embodiment, the marks M1 and M2 are read separately from the item contents and the reference marks printed so as to overlap them.

読取装置110は,帳票を光学的に読み取る装置,例えば,スキャナであり,帳票保持部111,帳票取出部112,帳票読取部113を備える。
装置本体120は,読取制御部121,マークエリア決定部122,色抽出部123,色差判定部124,色変更部125,マーク認識部126,認識結果訂正部127を有する。
記憶部130は,ハードディスク,半導体メモリ等の補助記憶装置であり,画像保持部131,認識結果保持部132,訂正結果保持部133を有する。
The reading device 110 is a device that optically reads a form, for example, a scanner, and includes a form holding unit 111, a form extraction unit 112, and a form reading unit 113.
The apparatus main body 120 includes a reading control unit 121, a mark area determination unit 122, a color extraction unit 123, a color difference determination unit 124, a color change unit 125, a mark recognition unit 126, and a recognition result correction unit 127.
The storage unit 130 is an auxiliary storage device such as a hard disk or a semiconductor memory, and includes an image holding unit 131, a recognition result holding unit 132, and a correction result holding unit 133.

帳票保持部111は,複数枚の帳票を保持する。帳票は帳票保持部111から取り出されて,読み取られ,また戻される。
帳票取出部112は,帳票保持部111から帳票を取り出して帳票読取部113に送り,読み取られた帳票を帳票保持部111に戻す。
帳票読取部113は,帳票を光学的に読み取るものであり,帳票を複数の画素を有する画像として読み取る読取部として機能する。
The form holding unit 111 holds a plurality of forms. The form is taken out from the form holding unit 111, read, and returned.
The form takeout unit 112 takes out the form from the form holding unit 111 and sends it to the form reading unit 113, and returns the read form to the form holding unit 111.
The form reading unit 113 optically reads a form, and functions as a reading unit that reads the form as an image having a plurality of pixels.

帳票読取部113は,光源,リニアセンサ,走査駆動部を有する。光源は,帳票に光を照射する。リニアセンサでは,CCD等の光電変換素子が一次元的に配置され,帳票からの反射光中の三原色(例えば,R(赤),G(緑),B(青))をそれぞれ光電変換して,多階調(例えば,256階調(8ビット))の輝度データの電気信号として出力する。走査駆動部は,リニアセンサを帳票上で走査(スキャン)する。リニアセンサを帳票上で連続的に走査することで,帳票の2次元の画像(イメージ)データが得られる。この画像データは,多数の画素データから構成される。個々の画素データは,RGBの輝度Lr,Lg,Lbを有する。即ち,帳票読取部113は,色を有する多数の画素からなる画像(イメージ)として帳票を読み取る。   The form reading unit 113 includes a light source, a linear sensor, and a scanning drive unit. The light source irradiates the form with light. In a linear sensor, a photoelectric conversion element such as a CCD is arranged one-dimensionally, and photoelectrically converts three primary colors (for example, R (red), G (green), and B (blue)) in reflected light from a form. , Output as an electrical signal of luminance data of multiple gradations (for example, 256 gradations (8 bits)). The scan driver scans the linear sensor on the form. By continuously scanning the linear sensor on the form, two-dimensional image data of the form can be obtained. This image data is composed of a large number of pixel data. Each pixel data has RGB luminances Lr, Lg, and Lb. That is, the form reading unit 113 reads the form as an image (image) composed of a large number of pixels having colors.

ここでいう色は,RGBの輝度Lr,Lg,Lbの組み合わせを言うものとし,有彩色,無彩色のいずれをも含む。また,輝度Lr,Lg,Lbの比率が同一でも,輝度Lr,Lg,Lbの絶対値が異なれば,色として異なるものとする。即ち,ここでいう色は,色彩学上での色より広義である。   The color here refers to a combination of RGB luminances Lr, Lg, and Lb, and includes both chromatic and achromatic colors. Further, even if the ratios of the luminances Lr, Lg, and Lb are the same, if the absolute values of the luminances Lr, Lg, and Lb are different, the colors are different. That is, the color here is broader than the color in chromatics.

装置本体120は,コンピュータとプログラム(例えば,OS(operating system),アプリケーションプログラム)で構成できる。コンピュータ中のCPU(Central Processing Unit)がプログラムで動作することで,コンピュータが読取制御部121等として機能する。   The apparatus main body 120 can be configured by a computer and a program (for example, an OS (operating system), an application program). A CPU (Central Processing Unit) in the computer operates as a program, so that the computer functions as the reading control unit 121 and the like.

読取制御部121は,読取装置110を制御し,帳票を画像として読み取り,読み取った画像のデータを画像保持部131に保持させる。画像は,色(RGBの輝度Lr,Lg,Lb)をそれぞれ有する複数の画素を含む。   The reading control unit 121 controls the reading device 110 to read a form as an image and cause the image holding unit 131 to hold the read image data. The image includes a plurality of pixels each having a color (RGB luminance Lr, Lg, Lb).

マークエリア決定部122は,帳票の画像データからマークエリアA1,A2を決定する。マークエリア決定部122はこの決定のためのテーブルT1を有する。このテーブルT1には,例えば,帳票の基準位置とマークエリアA1,A2それぞれの四隅との距離(相対距離)が表される。基準位置は,帳票上に適宜に規定される(一例として,帳票の左上隅,右下隅)。なお,基準位置は1カ所でも良いが,帳票が傾いた状態で読み取られる可能性を考慮し,2カ所以上とするのが好ましい。   The mark area determination unit 122 determines the mark areas A1 and A2 from the form image data. The mark area determination unit 122 has a table T1 for this determination. In this table T1, for example, distances (relative distances) between the reference position of the form and the four corners of the mark areas A1 and A2 are represented. The reference position is appropriately defined on the form (for example, the upper left corner and the lower right corner of the form). The reference position may be one, but it is preferable that the reference position is two or more in consideration of the possibility that the form is read in a tilted state.

色抽出部123は,マークエリアA1,A2内の画像から複数の色の群を抽出するものであり,画像から,画素に対応する複数の色の群を抽出する抽出部として機能する。具体的には,対応する画素数(帳票上での面積比)の大きい順に色群C1〜C3を抽出する。これらの色群C1〜C3はそれぞれ,帳票の地色(紙の色),印字された項目の色,記入されたマークの色と考えられる。なお,色群C3が実質的に存在しない場合(誤差範囲),マークが未記入と考えられる。   The color extraction unit 123 extracts a plurality of color groups from the images in the mark areas A1 and A2, and functions as an extraction unit that extracts a plurality of color groups corresponding to pixels from the image. Specifically, the color groups C1 to C3 are extracted in descending order of the corresponding number of pixels (area ratio on the form). These color groups C1 to C3 are considered to be the ground color of the form (paper color), the color of the printed item, and the color of the mark entered. When the color group C3 does not substantially exist (error range), it is considered that no mark is entered.

色差判定部124は,色群C2,C3間の色差ΔCの大小を判定する。具体的には,色差判定部124は,色差ΔCが基準色差ΔC0より大きいか否かを判定する。   The color difference determination unit 124 determines the magnitude of the color difference ΔC between the color groups C2 and C3. Specifically, the color difference determination unit 124 determines whether or not the color difference ΔC is larger than the reference color difference ΔC0.

色変更部125は,色差判定部124の判定結果に基づき,色群C3に対応する画素の色を変更する。色群C2,C3間の色差ΔCが基準色差ΔC0より小さければ,色群C3に対応する画素の色が変更される。色差ΔCが基準色差ΔC0以上であれば,画素の色は変更されない。   The color changing unit 125 changes the color of the pixel corresponding to the color group C3 based on the determination result of the color difference determining unit 124. If the color difference ΔC between the color groups C2 and C3 is smaller than the reference color difference ΔC0, the color of the pixel corresponding to the color group C3 is changed. If the color difference ΔC is greater than or equal to the reference color difference ΔC0, the pixel color is not changed.

マーク認識部126は,マークエリアA1,A2中のどの項目がマークされたかを認識し,その認識結果を認識結果保持部132に保持するものであり,項目と区分してマークを認識する認識部として機能する。マーク認識部126はこの認識のためのテーブルT2を有する。このテーブルT2には,例えば,マークエリアA1,A2内での項目の相対位置が表される。   The mark recognition unit 126 recognizes which item in the mark areas A1 and A2 is marked, and holds the recognition result in the recognition result holding unit 132. The recognition unit recognizes the mark separately from the item. Function as. The mark recognition unit 126 has a table T2 for this recognition. In this table T2, for example, the relative positions of items in the mark areas A1 and A2 are represented.

認識結果訂正部127は,操作者(オペレータ)の操作に基づき,マーク認識部126での認識結果を訂正し,その訂正結果を訂正結果保持部133に保持する。この訂正に,表示部140,入力部150が用いられる。   The recognition result correction unit 127 corrects the recognition result in the mark recognition unit 126 based on the operation of the operator (operator), and holds the correction result in the correction result holding unit 133. For this correction, the display unit 140 and the input unit 150 are used.

画像保持部131は,帳票読取部113で読み取られた帳票の画像データを保持する。
認識結果保持部132は,マーク認識部126での認識結果を保持する。
訂正結果保持部133は,認識結果訂正部127での訂正結果を保持する。
The image holding unit 131 holds image data of the form read by the form reading unit 113.
The recognition result holding unit 132 holds the recognition result from the mark recognition unit 126.
The correction result holding unit 133 holds the correction result from the recognition result correction unit 127.

表示部140は,画像を表示する表示装置,例えば,CRT,液晶表示装置である。
入力部150は,情報を入力する入力装置,例えば,キーボード,マウスである。
The display unit 140 is a display device that displays an image, for example, a CRT or a liquid crystal display device.
The input unit 150 is an input device for inputting information, for example, a keyboard and a mouse.

(帳票処理装置100の動作手順)
図3は,帳票処理装置100の動作手順の一例を表すフロー図である。
(1)帳票の読み取り(ステップS11)
読取制御部121が読取装置110を制御することで,帳票が光学的に読み取られ,画像(イメージ)データとして,画像保持部131に保持される。この画像は,色をそれぞれ有する複数の画素で表される。この色はRGBの輝度Lr,Lg,Lbの組み合わせによって表される。
(Operation procedure of the form processing apparatus 100)
FIG. 3 is a flowchart showing an example of the operation procedure of the form processing apparatus 100.
(1) Reading of form (step S11)
When the reading control unit 121 controls the reading device 110, the form is optically read and held in the image holding unit 131 as image (image) data. This image is represented by a plurality of pixels each having a color. This color is represented by a combination of RGB luminances Lr, Lg, and Lb.

(2)マークエリアの決定(ステップS12)
マークエリア決定部122が,帳票の画像データおよびテーブルT1を用いて,帳票のマークエリアA1,A2を決定する。具体的には,帳票の画像から帳票の基準位置を読み取り,この基準位置からの相対距離に基づいて,画像中のマークエリアA1,A2を決定する。
(2) Determination of mark area (step S12)
The mark area determination unit 122 determines the mark areas A1 and A2 of the form by using the form image data and the table T1. Specifically, the reference position of the form is read from the form image, and the mark areas A1 and A2 in the image are determined based on the relative distance from the reference position.

(3)マークエリアからの色群C1〜C3の抽出(ステップS13)
色抽出部123が,マークエリアA1,A2から色群C1〜C3を抽出する。
図4は,マークエリアでのR,G,Bそれぞれの輝度の分布を表すグラフである。グラフの横軸,縦軸がそれぞれ輝度,出現頻度である。ここでは,出現頻度(画素数)および輝度の大中小に対応して,紙(帳票)の地色,印字色(印字された項目の色),記入されたマークの色が分布している。
(3) Extraction of color groups C1 to C3 from the mark area (step S13)
The color extraction unit 123 extracts color groups C1 to C3 from the mark areas A1 and A2.
FIG. 4 is a graph showing the luminance distribution of R, G, and B in the mark area. The horizontal and vertical axes of the graph are the brightness and appearance frequency, respectively. Here, the ground color of the paper (form), the print color (color of the printed item), and the color of the entered mark are distributed in correspondence with the appearance frequency (number of pixels) and the brightness of large, medium and small.

図5は,RGB色空間上にマークエリア中の画素の色を表した模式図である。直交する3つの軸をRGBの輝度Lr,Lg,Lbとして,RGB色空間が表現される。画素それぞれの色は,このRGB色空間上の点Pとして表される。この点Pは1つの色(1つの画素)を表す。点Pの集積としての色群C1〜C3をそれぞれ含む色領域S1〜S3が配置される。対応する画素の個数が多い順に色群C1〜C3が抽出される。なお,色群C1〜C3は,帳票上での面積比の大きい順,色空間上での画素の密度Dの大きい順とも対応する。   FIG. 5 is a schematic diagram showing the colors of the pixels in the mark area on the RGB color space. The RGB color space is expressed by using three orthogonal axes as RGB luminances Lr, Lg, and Lb. The color of each pixel is represented as a point P on the RGB color space. This point P represents one color (one pixel). Color regions S1 to S3 each including color groups C1 to C3 as an accumulation of points P are arranged. Color groups C1 to C3 are extracted in descending order of the number of corresponding pixels. Note that the color groups C1 to C3 correspond to the order in which the area ratio on the form is large and the order in which the pixel density D is large on the color space.

ここでは,色領域S1〜S3は中心P1(Lr1,Lg1,Lb1),P2(Lr2,Lg2,Lb2),P3(Lr3,Lg3,Lb3)を有する立方体上の空間として表されている。
色領域S1: (Lr1±ΔL1,Lg1±ΔL1,Lb1±ΔL1)
色領域S2: (Lr2±ΔL2,Lg2±ΔL2,Lb2±ΔL2)
色領域S3: (Lr3±ΔL3,Lg1±ΔL3,Lb3±ΔL3)
ここで,色領域の大きさ(距離)ΔL1〜ΔL3: 色領域S1〜S3の中心P1〜P3からそれぞれの外周までの距離
Here, the color regions S1 to S3 are represented as a space on a cube having centers P1 (Lr1, Lg1, Lb1), P2 (Lr2, Lg2, Lb2), and P3 (Lr3, Lg3, Lb3).
Color region S1: (Lr1 ± ΔL1, Lg1 ± ΔL1, Lb1 ± ΔL1)
Color region S2: (Lr2 ± ΔL2, Lg2 ± ΔL2, Lb2 ± ΔL2)
Color region S3: (Lr3 ± ΔL3, Lg1 ± ΔL3, Lb3 ± ΔL3)
Here, the sizes (distances) of the color areas ΔL1 to ΔL3: the distances from the centers P1 to P3 of the color areas S1 to S3 to the respective outer circumferences

具体的には,次のようにして色群C1〜C3(色領域S1〜S3)を選択できる。
1)色空間を複数のブロック(例えば,輝度Lr,Lg,Lbをそれぞれ複数(例えば,8つに区分したブロック)に区分し,その内部での点(画素)の個数が最大のブロックを選択する。
Specifically, the color groups C1 to C3 (color regions S1 to S3) can be selected as follows.
1) A color space is divided into a plurality of blocks (for example, luminance Lr, Lg, and Lb are each divided into a plurality of blocks (for example, a block divided into eight), and a block having the maximum number of points (pixels) inside is selected. To do.

2)選択されたブロックの中心を調整し,ブロック内での画素の個数が最大となる中心P1(Lr1,Lg1,Lb1)を選択する。   2) The center of the selected block is adjusted, and the center P1 (Lr1, Lg1, Lb1) that maximizes the number of pixels in the block is selected.

3)ブロックの大きさΔLを調整し,ブロック中での画素の密度Dに基づいて,ブロックの大きさΔL1を選択する。   3) The block size ΔL is adjusted, and the block size ΔL1 is selected based on the pixel density D in the block.

図6は,RGB色空間上でのブロックの大きさΔLとブロック中での画素の密度Dの関係の一例を表すグラフである。密度Dは,ブロック中での画素の個数/ブロックの体積(2・ΔL)で表される。 FIG. 6 is a graph showing an example of the relationship between the block size ΔL in the RGB color space and the pixel density D in the block. The density D is expressed by the number of pixels in the block / the volume of the block (2 · ΔL) 3 .

ブロックの中心P1近傍での密度Dが大きく(ΔL〜0近傍で,密度Dが最大密度Dmax),中心P1から離れるに従い密度Dが小さくなる(色空間全体での平均密度Davに近づく)。大きさΔL1として,密度Dの変化量が最大となる大きさΔLを選択する。これに替えて,密度Dが基準密度D1となる大きさΔLを採用しても良い。密度D1は最大密度Dmaxを所定値aで割った値(Dmax/a)を用いることができる。   The density D near the center P1 of the block is large (the density D is the maximum density Dmax near ΔL to 0), and the density D decreases as the distance from the center P1 increases (approaches the average density Dav in the entire color space). As the size ΔL1, the size ΔL that maximizes the amount of change in the density D is selected. Instead, a size ΔL at which the density D becomes the reference density D1 may be adopted. As the density D1, a value (Dmax / a) obtained by dividing the maximum density Dmax by a predetermined value a can be used.

4)以上のようにして決定されたブロックが色領域S1である。色領域S2は,色空間から色領域S1およびその近傍を除いて,同様の処理をすることで求められる。   4) The block determined as described above is the color region S1. The color region S2 is obtained by performing the same processing except for the color region S1 and its vicinity from the color space.

5)色領域S3は,色空間から色領域S2,S3およびその近傍を除いて,同様の処理をすることで求められる。   5) The color region S3 is obtained by performing the same processing except for the color regions S2 and S3 and the vicinity thereof from the color space.

(4)色群C3の実質的存在の有無の判定(ステップS14)
色群C3の実質的存在の有無を判定する。具体的には,抽出された色領域S3中の画素の密度が所定の基準密度D0以上であれば,抽出された色領域S3は実質的に存在すると判定する。一方,抽出された色領域S3中の画素の密度が所定の基準密度D0より小さければ,抽出された色領域S3は一種のノイズ(誤差範囲)であり,色群C3は実質的に存在しない(マークが記入されていない)と判定する。
(4) Determination of presence / absence of substantial existence of color group C3 (step S14)
It is determined whether or not the color group C3 is substantially present. Specifically, if the density of the pixels in the extracted color area S3 is equal to or higher than a predetermined reference density D0, it is determined that the extracted color area S3 substantially exists. On the other hand, if the density of the pixels in the extracted color region S3 is smaller than the predetermined reference density D0, the extracted color region S3 is a kind of noise (error range), and the color group C3 does not substantially exist ( The mark is not entered.

(5)色群C2,C3の色差ΔCの判定(ステップS15)
色群C2,C3間の色差ΔCを算出する。色差ΔCは,例えば,次のようにして算出できる。
ΔC=((Lr2−Lr3)+(Lg2−Lg3)+(Lb2−Lb3)1/2
この色差ΔCを基準色差ΔC0と比較し,色群C3に対応する画素の色の変更の要否を判定する。色差ΔCが基準色差ΔC0より小さければ,色群C3に対応する画素の色の変更が必要と判断される。
(5) Determination of the color difference ΔC between the color groups C2 and C3 (step S15)
A color difference ΔC between the color groups C2 and C3 is calculated. The color difference ΔC can be calculated as follows, for example.
ΔC = ((Lr2−Lr3) 2 + (Lg2−Lg3) 2 + (Lb2−Lb3) 2 ) 1/2
This color difference ΔC is compared with the reference color difference ΔC0 to determine whether or not it is necessary to change the color of the pixel corresponding to the color group C3. If the color difference ΔC is smaller than the reference color difference ΔC0, it is determined that the color of the pixel corresponding to the color group C3 needs to be changed.

(6)色群C3に対応する画素の色の変更(ステップS16)
ステップS15で,色群C3に対応する画素の色の変更が必要と判断された場合,これらの画素の色が変更される。具体的には,色領域S3中の画素の色を色C31に変更する。色群C2との色差が確保されるよう,色C31が適宜に選択される。
(6) Changing the color of the pixel corresponding to the color group C3 (step S16)
If it is determined in step S15 that the colors of the pixels corresponding to the color group C3 need to be changed, the colors of these pixels are changed. Specifically, the color of the pixel in the color region S3 is changed to the color C31. The color C31 is appropriately selected so that a color difference from the color group C2 is ensured.

(7)色群C3に対応するマークの認識(ステップS17)
色群C3(または変更された色C31)に対応する画素から構成されるマークがどの項目に付されているかが認識される。具体的には,色群C3(または色C31)に対応し,かつ連続する画素を抽出し,これらの画素の中心(重心)の位置,即ち,マークが付された位置が認識される。さらに,テーブルT2を参照することで,この位置からマークが付された項目が判定される。この認識結果は,認識結果保持部132に保持される。
(7) Recognition of mark corresponding to color group C3 (step S17)
It is recognized to which item a mark composed of pixels corresponding to the color group C3 (or the changed color C31) is attached. Specifically, continuous pixels corresponding to the color group C3 (or color C31) are extracted, and the positions of the centers (centers of gravity) of these pixels, that is, the positions where marks are added, are recognized. Furthermore, by referring to the table T2, the item with the mark is determined from this position. This recognition result is held in the recognition result holding unit 132.

(8)全マークエリアでの処理の有無の判定(ステップS18)
全てのマークアリアで,処理が実行されたか否かが判定され,未処理のマークエリアがあれば,ステップS13〜S17が繰り返し実行される。
(8) Determination of presence / absence of processing in all mark areas (step S18)
It is determined whether or not processing has been executed in all mark areas. If there is an unprocessed mark area, steps S13 to S17 are repeatedly executed.

(9)マークの認識結果の訂正(ステップS19)
マークの認識結果が訂正される。具体的には,表示部140上に帳票の画像とマークの認識結果が表示され,画像と認識結果の相違の有無が操作者によって判断される。イメージと認識結果に相違がある場合,認識結果を訂正するための情報が入力部150によって入力される。なお,色群C3に対応する画素の色が変更された場合には,変更された色に基づく画像を表示部140上に表示することが好ましい。
(9) Correction of mark recognition result (step S19)
The recognition result of the mark is corrected. Specifically, the form image and the mark recognition result are displayed on the display unit 140, and the operator determines whether there is a difference between the image and the recognition result. When there is a difference between the image and the recognition result, information for correcting the recognition result is input by the input unit 150. When the color of the pixel corresponding to the color group C3 is changed, it is preferable to display an image based on the changed color on the display unit 140.

以上のように,画素の色の相違に基づき,印字された項目と区分して,記入されたマークを認識できる。特に,(1)項目とマークの重なりが大きい場合,(2)印字とマークの色の相違が小さい場合でも,マークを効果的に認識できる。(1),(2)のような場合,一般には,マークの認識率,ひいては,帳票の読み取り処理(エントリ)効率が低下する可能性がある。本実施形態では,画素の色の相違を用いて,マークの認識率の低下が防止される。その結果,帳票での項目とマークの配置と配色の自由度を確保できる。また,(2)の場合には,画像上のマークの色を変更することで(色の相違の拡大),マークのより確実な認識が可能となる。   As described above, based on the difference in pixel color, the entered mark can be recognized separately from the printed items. In particular, (1) the mark can be recognized effectively even if the overlap between the item and the mark is large, and (2) even if the difference in color between the print and the mark is small. In cases such as (1) and (2), there is generally a possibility that the mark recognition rate, and thus the form reading process (entry) efficiency, will be reduced. In this embodiment, a decrease in the mark recognition rate is prevented by using the difference in pixel colors. As a result, it is possible to secure the degree of freedom of arrangement and color arrangement of items and marks on the form. In the case of (2), the mark can be recognized more reliably by changing the color of the mark on the image (enlarging the color difference).

(その他の実施形態)
本発明の実施形態は上記の実施形態に限られず拡張,変更可能であり,拡張,変更した実施形態も本発明の技術的範囲に含まれる。
上記実施形態では,画素毎の色を用いて,色の群を抽出している。これに替えて,近接する複数の画素での色の平均値を用いることも可能である。
上記実施形態では,色空間としてRGB色空間を用いている。これに替えて,他の色空間,例えば,xyY色空間を用いても良い。
(Other embodiments)
Embodiments of the present invention are not limited to the above-described embodiments, and can be expanded and modified. The expanded and modified embodiments are also included in the technical scope of the present invention.
In the above embodiment, a color group is extracted using the color of each pixel. Instead of this, it is also possible to use an average value of colors at a plurality of adjacent pixels.
In the above embodiment, the RGB color space is used as the color space. Instead, another color space, for example, an xyY color space may be used.

本発明の一実施形態に係る帳票処理装置を表すブロック図である。It is a block diagram showing the form processing apparatus which concerns on one Embodiment of this invention. 帳票の一部を表す図である。It is a figure showing a part of form. 帳票処理装置の動作手順の一例を表すフロー図である。It is a flowchart showing an example of the operation | movement procedure of a form processing apparatus. マークエリアでのR,G,Bそれぞれの輝度の分布を表すグラフである。It is a graph showing the luminance distribution of each of R, G, and B in the mark area. RGB色空間上にマークエリア中の画素の色を表した模式図である。It is the model which represented the color of the pixel in a mark area on RGB color space. RGB色空間上でのブロックの大きさとブロック中での画素の密度の関係の一例を表すグラフである。It is a graph showing an example of the relationship between the size of the block on the RGB color space and the density of the pixels in the block.

符号の説明Explanation of symbols

100…帳票処理装置,110…読取装置,111…帳票保持部,112…帳票取出部,113…帳票読取部,120…装置本体,121…読取制御部,122…マークエリア決定部,123…色抽出部,124…色差判定部,125…色変更部,126…マーク認識部,127…認識結果訂正部,130…記憶部,131…画像保持部,132…認識結果保持部,133…訂正結果保持部,140…表示部,150…入力部   DESCRIPTION OF SYMBOLS 100 ... Form processing apparatus, 110 ... Reading apparatus, 111 ... Form holding part, 112 ... Form taking-out part, 113 ... Form reading part, 120 ... Main part of apparatus, 121 ... Reading control part, 122 ... Mark area determination part, 123 ... Color Extraction unit 124 ... color difference determination unit 125 ... color change unit 126 ... mark recognition unit 127 ... recognition result correction unit 130 ... storage unit 131 ... image holding unit 132 ... recognition result holding unit 133 ... correction result Holding unit, 140 ... display unit, 150 ... input unit

Claims (4)

複数の項目が印字され,かつ選択される項目を表すマークが記入される領域を有する帳票を複数の画素を有する画像として読み取る読取部と,
前記領域内の画像から,画素に対応する画素の個数がそれぞれ1番目,2番目,および3番目に大きい第1,第2,および第3の色の群を抽出する抽出部と,
前記第2,第3の色の群間の色差が所定の基準色差より小さい場合に,前記第3の色の群に対応する画素の色を変更する色変更部と,
前記第3の色の群に対応する画素の色が変更された画像に基づいて,前記項目と区分してマークを認識する認識部と,
を具備することを特徴とする帳票処理装置。
A reading unit that reads a form having an area in which a plurality of items are printed and a mark representing an item to be selected is written as an image having a plurality of pixels;
An extraction unit for extracting the first, second, and third color groups having the first, second, and third largest numbers of pixels corresponding to the pixels from the image in the region;
A color changing unit that changes a color of a pixel corresponding to the third color group when a color difference between the second and third color groups is smaller than a predetermined reference color difference;
A recognition unit for recognizing a mark separately from the item based on an image in which the color of a pixel corresponding to the third color group is changed;
A form processing apparatus comprising:
前記第1〜第3の色の群がそれぞれ,前記帳票の地色,前記印字された項目の色,および記入されたマークの色に対応する
ことを特徴とする請求項1記載の帳票処理装置。
The form processing apparatus according to claim 1, wherein the first to third color groups respectively correspond to a background color of the form, a color of the printed item, and a color of a written mark. .
前記認識部での認識結果を表示する表示部と,
前記認識結果を訂正するための情報を入力する入力部と,
前記入力に基づいて,前記認識結果を訂正する認識結果訂正部と,
をさらに具備することを特徴とする請求項1または2に記載の帳票処理装置。
A display unit for displaying a recognition result in the recognition unit;
An input unit for inputting information for correcting the recognition result;
A recognition result correction unit for correcting the recognition result based on the input;
The form processing apparatus according to claim 1, further comprising:
複数の項目が印字され,かつ選択される項目を表すマークが記入される領域を有する帳票を複数の画素を有する画像として読み取る読取装置を制御する制御部と,
前記領域内の画像から,画素に対応する画素の個数がそれぞれ1番目,2番目,および3番目に大きい第1,第2,および第3の色の群を抽出する抽出部と,
前記第2,第3の色の群間の色差が所定の基準色差より小さい場合に,前記第3の色の群に対応する画素の色を変更する色変更部と,
前記第3の色の群に対応する画素の色が変更された画像に基づいて,前記項目と区分してマークを認識する認識部として,
コンピュータを機能させるためのプログラム。
A control unit for controlling a reading device that reads a form having an area in which a plurality of items are printed and a mark representing an item to be selected is written, as an image having a plurality of pixels;
An extraction unit for extracting the first, second, and third color groups having the first, second, and third largest numbers of pixels corresponding to the pixels from the image in the region;
A color changing unit that changes a color of a pixel corresponding to the third color group when a color difference between the second and third color groups is smaller than a predetermined reference color difference;
Based on an image in which the color of the pixel corresponding to the third color group is changed, as a recognition unit that recognizes a mark separately from the item,
A program that allows a computer to function.
JP2007327515A 2007-12-19 2007-12-19 Form processing apparatus and program Active JP4812740B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007327515A JP4812740B2 (en) 2007-12-19 2007-12-19 Form processing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007327515A JP4812740B2 (en) 2007-12-19 2007-12-19 Form processing apparatus and program

Publications (2)

Publication Number Publication Date
JP2009152757A true JP2009152757A (en) 2009-07-09
JP4812740B2 JP4812740B2 (en) 2011-11-09

Family

ID=40921399

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007327515A Active JP4812740B2 (en) 2007-12-19 2007-12-19 Form processing apparatus and program

Country Status (1)

Country Link
JP (1) JP4812740B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4499825B1 (en) * 2009-09-30 2010-07-07 広行 遠藤 2D code, 2D code reader and program
WO2011040032A1 (en) * 2009-09-30 2011-04-07 株式会社シフト Two-dimensional code, two-dimensional code reader, and program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04133190A (en) * 1990-09-26 1992-05-07 Toshiba Corp Recognizing system
JPH06111060A (en) * 1992-09-25 1994-04-22 Toshiba Corp Optical character reader

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04133190A (en) * 1990-09-26 1992-05-07 Toshiba Corp Recognizing system
JPH06111060A (en) * 1992-09-25 1994-04-22 Toshiba Corp Optical character reader

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4499825B1 (en) * 2009-09-30 2010-07-07 広行 遠藤 2D code, 2D code reader and program
WO2011040032A1 (en) * 2009-09-30 2011-04-07 株式会社シフト Two-dimensional code, two-dimensional code reader, and program
JP2011076395A (en) * 2009-09-30 2011-04-14 Hiroyuki Endo Two-dimensional code, two-dimensional code reader and program
US8714456B2 (en) 2009-09-30 2014-05-06 Shift Co. Ltd. Two-dimensional code, two-dimensional code reader, and program

Also Published As

Publication number Publication date
JP4812740B2 (en) 2011-11-09

Similar Documents

Publication Publication Date Title
US8125683B2 (en) Image preview processing apparatus, image preview processing method, and image preview computer product
CN101373363B (en) Print apparatus, and control method and image area selecting method thereof
JP5060404B2 (en) Image processing apparatus, image processing method, and program
JP5321109B2 (en) Information processing apparatus and information processing program
EP0654751A2 (en) Method of analyzing data defining an image
CN102693425A (en) Image processing apparatus and image processing method
JP6808330B2 (en) Information processing equipment, information processing methods, and programs
JP2007004621A (en) Document management supporting device, and document management supporting method and program
US8302000B2 (en) Enlarging document elements
JP4812740B2 (en) Form processing apparatus and program
JP5583103B2 (en) Document file output device, document file output method, and computer program
JP6984145B2 (en) Information processing equipment
JP5020698B2 (en) Image processing apparatus, image processing method, and image processing program
JP7241506B2 (en) Correction support device and correction support program for optical character recognition results
JP2014006445A (en) Image processing system
JP4922151B2 (en) Form reading system, form reading method, and program
JP2020145508A (en) Image editing device and image editing method
JP2009060216A (en) Image processor, and image processing program
JP4810995B2 (en) Image processing apparatus, method, and program
JP5268861B2 (en) Image processing device
JP5062076B2 (en) Information processing apparatus and information processing program
JP2017069826A (en) Image forming apparatus and program
JP2008219210A (en) Image processor and image processing program
JPH09274643A (en) Image processor and image output device
JP2006253995A (en) Image processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100402

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110719

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4812740

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140902

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350