JP2012033124A - Ballot paper sorting device - Google Patents

Ballot paper sorting device Download PDF

Info

Publication number
JP2012033124A
JP2012033124A JP2010174273A JP2010174273A JP2012033124A JP 2012033124 A JP2012033124 A JP 2012033124A JP 2010174273 A JP2010174273 A JP 2010174273A JP 2010174273 A JP2010174273 A JP 2010174273A JP 2012033124 A JP2012033124 A JP 2012033124A
Authority
JP
Japan
Prior art keywords
ballot
election type
election
character string
information
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.)
Pending
Application number
JP2010174273A
Other languages
Japanese (ja)
Inventor
Yukio Fujimagari
幸雄 藤曲
Junji Okano
順二 岡野
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.)
Musashi Engineering Co Ltd
Original Assignee
Musashi Engineering Co 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 Musashi Engineering Co Ltd filed Critical Musashi Engineering Co Ltd
Priority to JP2010174273A priority Critical patent/JP2012033124A/en
Publication of JP2012033124A publication Critical patent/JP2012033124A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a ballot paper sorting device that can automatically judge whether or not the type of election stated on a ballot paper is correct.SOLUTION: A ballot paper sorting device comprises an imaging unit 5 that performs imaging of a ballot paper and generates image information I, a region extracting section 9 that extracts an election type region R that includes information representing the type of election from the image information I, an evaluated character string generating section 10 that generates an evaluated character string Se from the election type region R, a reference character string generating section 11 that generates a reference character string Sr from the election type region R in a ballot paper for practice use provided in advance, a memory section 12 that stores the reference character string Sr, and a judging section 13 that judges whether or not the type of election stated on a ballot paper is correct on the basis of whether or not the evaluated character string Se and the reference character string Sr are identical.

Description

この発明は、投票用紙分類装置に関する。   The present invention relates to a ballot paper classification device.

選挙の投票用紙に記入された候補者名等を読み取って投票用紙を分類する投票用紙分類装置が知られている(例えば、特許文献1)。このような投票用紙分類装置では、投票用紙の記入面(投票者が候補者名等を記入する面)をスキャナ等によって撮像して画像情報を生成し、この画像情報から候補者名等の記入内容を読み取り、読み取り結果に基づいて投票用紙を分類する。   2. Description of the Related Art A voting paper classification apparatus that classifies voting paper by reading a candidate name or the like entered on an election ballot is known (for example, Patent Document 1). In such a ballot paper classification device, a ballot entry surface (a surface on which a voter enters a candidate name, etc.) is imaged by a scanner or the like to generate image information, and the candidate name is entered from this image information. Read the contents and classify the ballots based on the reading results.

特開2004−5022号公報Japanese Patent Laid-Open No. 2004-5022

近年では、複数の選挙が同一日程かつ同一会場において行われる場合もある。そのような場合には、「○△県議会議員選挙」、「□×市議会議員選挙」等の選挙の種類、すなわち選挙種別ごとに異なる種類の投票用紙が使用されるが、選挙会場において異なる選挙種別の投票用紙が混入してしまう可能性があるため、運営担当者が投票用紙の選挙種別が正しいか否かを目視で確認する必要があり、これが大きな負担となっていた。   In recent years, there are cases where a plurality of elections are held on the same schedule and at the same venue. In such cases, different types of ballots are used for each type of election, such as “○ △ Prefectural Council Election”, “□ × City Council Election”, etc. Therefore, it is necessary for the person in charge of the operation to visually check whether the election type of the ballot is correct, which is a heavy burden.

この発明はこのような問題を解決するためになされたものであり、投票用紙の選挙種別が正しいか否かを自動的に判定することができる投票用紙分類装置を提供することを目的とする。   The present invention has been made to solve such a problem, and an object of the present invention is to provide a ballot paper classification device that can automatically determine whether the election type of a ballot is correct.

上記の課題を解決するために、この発明に係る投票用紙分類装置は、投票用紙を記入内容に基づいて分類する投票用紙分類装置において、投票用紙を撮像して画像情報を生成する撮像手段と、撮像手段によって生成された画像情報から選挙種別を表す情報を含む選挙種別領域を抽出する領域抽出手段と、領域抽出手段によって抽出された選挙種別領域から評価情報を生成する評価情報生成手段と、予め与えられた正しい選挙種別の投票用紙の画像情報における選挙種別領域から基準情報を生成する基準情報生成手段と、基準情報生成手段によって生成された基準情報を記憶する記憶手段と、判定対象の投票用紙の画像情報における選挙種別領域から生成された評価情報と、記憶手段に記憶されている基準情報とに基づいて、判定対象の投票用紙の選挙種別が正しいか否かを判定する判定手段とを備えることを特徴とする。
これにより、投票用紙の選挙種別が正しいか否かを自動的に判定することができる。
In order to solve the above problems, a ballot paper classification device according to the present invention includes: an image pickup unit that picks up a ballot paper and generates image information in the ballot paper classification device that classifies the ballot paper based on the entry content; An area extracting means for extracting an election type area including information representing an election type from the image information generated by the imaging means, an evaluation information generating means for generating evaluation information from the election type area extracted by the area extracting means, Reference information generating means for generating reference information from the election type area in the image information of a given correct election type ballot, storage means for storing the reference information generated by the reference information generating means, and a voting paper to be determined For voting to be determined based on the evaluation information generated from the election type area in the image information of the image and the reference information stored in the storage means Wherein the of and a determining means for determining whether the election type is correct.
Thereby, it can be automatically determined whether or not the election type of the ballot is correct.

評価情報は、判定対象の投票用紙の画像情報における選挙種別領域から抽出された第1の文字列であり、基準情報は、予め与えられた正しい選挙種別の投票用紙の画像情報における選挙種別領域から抽出された第2の文字列であり、判定手段は、第1の文字列と第2の文字列とが一致するか否かに基づいて、判定対象の投票用紙の選挙種別が正しいか否かを判定してもよい。   The evaluation information is the first character string extracted from the election type area in the image information of the ballot paper to be determined, and the reference information is from the election type area in the image information of the ballot paper of the correct election type given in advance. Whether or not the election type of the ballot to be determined is correct based on whether or not the first character string and the second character string match. May be determined.

評価情報は、判定対象の投票用紙の画像情報における選挙種別領域の画素値の集合であり、基準情報は、予め与えられた正しい選挙種別の投票用紙の画像情報における選挙種別領域の画素値の集合に基づいて作成されたマスクパターンであり、判定手段は、判定対象の投票用紙から生成された画素値の集合に対してマスクパターンを適用した結果に基づいて、判定対象の投票用紙の選挙種別が正しいか否かを判定してもよい。   The evaluation information is a set of pixel values of the election type area in the image information of the ballot paper to be determined, and the reference information is a set of pixel values of the election type area in the image information of the correct election type ballot given in advance. The determination means determines whether the election type of the vote ballot to be determined is based on the result of applying the mask pattern to the set of pixel values generated from the vote ballot to be determined. You may determine whether it is correct.

この発明に係る投票用紙分類装置によれば、投票用紙の選挙種別が正しいか否かを自動的に判定することができる。   According to the ballot paper classification device according to the present invention, it is possible to automatically determine whether or not the election type of the ballot paper is correct.

この発明の実施の形態1に係る投票用紙分類装置の構成を示す図である。It is a figure which shows the structure of the ballot paper classification | category apparatus which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係る投票用紙分類装置の内部構成を示す模式図である。It is a schematic diagram which shows the internal structure of the ballot paper classification device based on Embodiment 1 of this invention. この発明の実施の形態1に係る投票用紙分類装置における、学習モードの処理を示すフローチャートである。It is a flowchart which shows the process of learning mode in the ballot paper classification device concerning Embodiment 1 of this invention. この発明の実施の形態1に係る投票用紙分類装置において、学習用の投票用紙から生成された画像情報の一例を示す図である。It is a figure which shows an example of the image information produced | generated from the ballot for learning in the ballot paper classification device concerning Embodiment 1 of this invention. この発明の実施の形態1に係る投票用紙分類装置における、判定モードの処理を示すフローチャートである。It is a flowchart which shows the process of the determination mode in the ballot paper classification device based on Embodiment 1 of this invention. この発明の実施の形態1に係る投票用紙分類装置において、判定対象の投票用紙から生成された画像情報の一例を示す図である。It is a figure which shows an example of the image information produced | generated from the ballot paper of determination object in the ballot paper classification device concerning Embodiment 1 of this invention. この発明の実施の形態2に係る投票用紙分類装置の内部構成を示す模式図である。It is a schematic diagram which shows the internal structure of the ballot paper classification device based on Embodiment 2 of this invention. この発明の実施の形態2に係る投票用紙分類装置における、学習モードの処理を示すフローチャートである。It is a flowchart which shows the process of learning mode in the ballot paper classification device concerning Embodiment 2 of this invention. この発明の実施の形態2に係る投票用紙分類装置において、学習用の投票用紙からマスクパターンが生成される過程の一例を示す図である。It is a figure which shows an example of the process in which a mask pattern is produced | generated from the ballot for learning in the ballot paper classification device based on Embodiment 2 of this invention. この発明の実施の形態2に係る投票用紙分類装置における、判定モードの処理を示すフローチャートである。It is a flowchart which shows the process of the determination mode in the ballot paper classification device concerning Embodiment 2 of this invention. この発明の実施の形態2に係る投票用紙分類装置において、判定対象の投票用紙から生成された評価画素値の配列に対してマスクパターンを適用した結果の例を示す図である。It is a figure which shows the example of the result of having applied the mask pattern with respect to the array of the evaluation pixel value produced | generated from the ballot paper of determination object in the ballot paper classification device concerning Embodiment 2 of this invention.

以下、この発明の実施の形態について添付図面に基づいて説明する。
実施の形態1.
この発明の実施の形態1に係る投票用紙分類装置について、図1〜6に基づいて説明する。
投票用紙分類装置は、投票用紙に記入された候補者名等の記入内容に基づいて投票用紙を分類するものである。図1に示されるように、投票用紙分類装置の本体1は、分類対象の複数枚の投票用紙2を蓄えるホッパ3と、複数のローラ4aによって構成されており投票用紙2を搬送する搬送路4と、スキャナ等によって構成されており投票用紙2の記入面を撮像して画像情報Iを生成する撮像ユニット5と、投票用紙2を記入内容に基づいて分類して収納する5つのスタッカ6と、分類結果を表示するモニタ7とを備えている。
Embodiments of the present invention will be described below with reference to the accompanying drawings.
Embodiment 1 FIG.
A voting paper classification device according to Embodiment 1 of the present invention will be described with reference to FIGS.
The ballot paper classification device classifies ballot papers based on the contents of entries such as candidate names entered on the ballot paper. As shown in FIG. 1, the main body 1 of the voting paper classification apparatus includes a hopper 3 that stores a plurality of voting papers 2 to be classified and a plurality of rollers 4 a, and a conveyance path 4 that conveys the voting paper 2. An imaging unit 5 that is configured by a scanner or the like and that captures an entry surface of the voting form 2 to generate image information I, and five stackers 6 that classify and store the voting form 2 based on the entry contents; And a monitor 7 for displaying the classification result.

また、図2に模式的に示されるように、投票用紙分類装置の内部には、撮像ユニット5によって生成された画像情報Iに基づいて投票用紙の選挙種別が正しいか否かを判定する演算処理ユニット8が備えられている。演算処理ユニット8は、領域抽出部9、評価文字列生成部10、基準文字列生成部11、記憶部12、及び判定部13から構成されている。   In addition, as schematically shown in FIG. 2, a calculation process for determining whether the election type of the voting paper is correct based on the image information I generated by the imaging unit 5 is included in the voting paper classification device. A unit 8 is provided. The arithmetic processing unit 8 includes an area extraction unit 9, an evaluation character string generation unit 10, a reference character string generation unit 11, a storage unit 12, and a determination unit 13.

領域抽出部9は、撮像ユニット5によって生成された投票用紙の画像情報Iから、「○△県議会議員選挙」等の選挙種別を表す情報(文字列)が含まれる領域である選挙種別領域Rを抽出する。   The area extraction unit 9 obtains an election type area R, which is an area including information (character string) representing an election type such as “O △ Prefectural Council Election” from the image information I of the ballot paper generated by the imaging unit 5. Extract.

評価文字列生成部10は、判定対象の投票用紙における選挙種別領域Rに対して文字認識処理を行うことによって、投票用紙の選挙種別が正しいか否かを判定するための評価情報となる評価文字列Seを生成する。   The evaluation character string generation unit 10 performs character recognition processing on the election type area R in the ballot paper to be determined, thereby evaluating character as evaluation information for determining whether the election type of the ballot paper is correct A column Se is generated.

基準文字列生成部11は、後述する学習用の正しい選挙種別の投票用紙における選挙種別領域Rに対して文字認識処理を行うことによって、投票用紙の選挙種別が正しいか否かを判定するための基準情報となる基準文字列Srを生成する。   The reference character string generation unit 11 determines whether the election type of the ballot is correct by performing character recognition processing on the election type region R in the ballot of the correct election type for learning described later. A reference character string Sr serving as reference information is generated.

記憶部12は、基準文字列生成部11によって生成された基準文字列Srを記憶する。   The storage unit 12 stores the reference character string Sr generated by the reference character string generation unit 11.

判定部13は、判定対象の投票用紙から生成された評価文字列Seと、記憶部12に記憶されている基準文字列Srとの比較結果に基づいて、判定対象の投票用紙の選挙種別が正しいか否かを判定する。   Based on the comparison result between the evaluation character string Se generated from the determination target ballot and the reference character string Sr stored in the storage unit 12, the determination unit 13 has the correct election type of the determination target ballot. It is determined whether or not.

次に、この実施の形態1に係る投票用紙分類装置における、投票用紙の選挙種別が正しいか否かを判定する処理について説明する。   Next, a process for determining whether or not the election type of the voting paper is correct in the voting paper classification device according to the first embodiment will be described.

投票用紙分類装置は、「学習モード」と「判定モード」という2種類の処理モードを有している。学習モードでは、正しい選挙種別の投票用紙を学習用の投票用紙として1枚読み込んで、その特徴を基準情報として記憶する。判定モードでは、投票者による記入が行われた複数枚の投票用紙のそれぞれから評価情報を生成し、評価情報と学習モードで記憶した基準情報とに基づいて、各投票用紙の選挙種別が正しいか否かの判定を行う。以下、学習モードと判定モードの処理の詳細について順に説明する。   The ballot paper classification device has two types of processing modes, a “learning mode” and a “determination mode”. In the learning mode, one voting paper of the correct election type is read as a voting paper for learning, and its characteristics are stored as reference information. In the judgment mode, evaluation information is generated from each of a plurality of ballots filled in by the voter, and whether the election type of each ballot is correct based on the evaluation information and the reference information stored in the learning mode. Determine whether or not. Hereinafter, details of the processing in the learning mode and the determination mode will be described in order.

(学習モード)
学習モードの処理を開始させるために、ユーザは学習用の正しい選挙種別の投票用紙を1枚取ってホッパ3に配置し、図示しない操作スイッチによって投票用紙分類装置に対して学習モードの開始を指示する。
(Learning mode)
In order to start the processing in the learning mode, the user takes one ballot of the correct election type for learning and places it on the hopper 3, and instructs the ballot paper classification device to start the learning mode by an operation switch (not shown). To do.

投票用紙分類装置は、学習モードの開始が指示されると搬送路4を構成する各ローラ4aを駆動させることによって学習用の投票用紙を撮像ユニット5に搬送し、図3のフローチャートに示される処理を行う。   When the ballot paper classification device is instructed to start the learning mode, the ballot paper for learning is conveyed to the imaging unit 5 by driving each roller 4a constituting the conveyance path 4, and the process shown in the flowchart of FIG. I do.

まず、撮像ユニット5は、投票用紙の記入面を撮像して図4に示されるような2値化された画像情報Iを生成し、演算処理ユニット8に出力する(S101)。   First, the imaging unit 5 captures the entry surface of the voting form, generates binarized image information I as shown in FIG. 4, and outputs it to the arithmetic processing unit 8 (S101).

演算処理ユニット8の領域抽出部9は、画像情報Iから選挙種別を表す文字列が含まれる選挙種別領域Rを抽出し、基準文字列生成部11に出力する(S102)。また、後の判定モードにおいて使用するために選挙種別領域Rの座標を記憶する。図4に示される例では、「○△県議会議員選挙投票」という文字列を含む破線で囲まれた矩形領域が選挙種別領域Rとなる。選挙種別領域Rの抽出方法としては、画像情報I全体に対して文字認識処理を行うことによって選挙種別を表す文字列が含まれる領域を特定してもよいし、画像情報Iをモニタ7上に表示してユーザに領域指定させてもよい。   The region extraction unit 9 of the arithmetic processing unit 8 extracts the election type region R including the character string representing the election type from the image information I, and outputs it to the reference character string generation unit 11 (S102). In addition, the coordinates of the election type region R are stored for use in later determination modes. In the example shown in FIG. 4, a rectangular area surrounded by a broken line including the character string “◯ △ Prefectural Assembly Election Vote” is the election type area R. As an extraction method of the election type region R, a character recognition process may be performed on the entire image information I to specify a region including a character string representing the election type, or the image information I may be displayed on the monitor 7. It may be displayed and the user may designate the area.

基準文字列生成部11は、領域抽出部9によって抽出された選挙種別領域Rに対して文字認識処理を行うことによって、選挙種別領域R内に含まれる文字列を抽出し(S103)、これを基準文字列Srとして記憶部12に記憶させる(S104)。図4に示される例では、「○△県議会議員選挙投票」という文字列が抽出され、これが基準文字列Srとして記憶部12に記憶される。   The reference character string generation unit 11 performs character recognition processing on the election type region R extracted by the region extraction unit 9, thereby extracting a character string included in the election type region R (S103). The reference character string Sr is stored in the storage unit 12 (S104). In the example shown in FIG. 4, a character string “◯ △ Prefectural Assembly Election Vote” is extracted and stored in the storage unit 12 as a reference character string Sr.

学習モードにおいて行われる以上の処理によって、学習用の投票用紙に印刷されている選挙種別を表す文字列が抽出され、基準文字列Srとして記憶部12に記憶される。   Through the above processing performed in the learning mode, a character string representing the election type printed on the learning ballot is extracted and stored in the storage unit 12 as the reference character string Sr.

(判定モード)
学習モードの処理が終了すると、ユーザは投票者による記入が行われた複数枚の投票用紙をホッパ3に配置し、投票用紙分類装置に対して判定モードの開始を指示する。
(Judgment mode)
When the process in the learning mode is completed, the user places a plurality of ballot sheets filled in by the voter on the hopper 3 and instructs the ballot sheet classification apparatus to start the determination mode.

投票用紙分類装置は、判定モードの開始が指示されると搬送路4を構成する各ローラ4aを駆動させることによって判定対象の投票用紙を1枚ずつ撮像ユニット5に搬送し、各投票用紙に対して図5のフローチャートに示される処理を行う。   When the start of the determination mode is instructed, the ballot paper classification device drives each roller 4a constituting the conveyance path 4 to convey the ballots to be determined one by one to the imaging unit 5, and for each ballot paper The processing shown in the flowchart of FIG.

まず、撮像ユニット5が投票用紙の記入面を撮像して図6に示されるような2値化された画像情報Iを生成し(S111)、領域抽出部9が、学習モードにおいて記憶した座標に基づいて画像情報Iから選挙種別領域Rを抽出して評価文字列生成部10に出力する(S112)。   First, the imaging unit 5 captures the entry surface of the ballot paper to generate binarized image information I as shown in FIG. 6 (S111), and the area extraction unit 9 uses the coordinates stored in the learning mode. Based on the image information I, the election type region R is extracted and output to the evaluation character string generation unit 10 (S112).

評価文字列生成部10は、選挙種別領域Rに対して文字認識処理を行うことによって、選挙種別領域R内に含まれる文字列を抽出し(S113)、これを評価文字列Seに設定する(S114)。   The evaluation character string generation unit 10 performs character recognition processing on the election type region R to extract a character string included in the election type region R (S113), and sets this as the evaluation character string Se (S113). S114).

判定部13は、ステップS114において設定された評価文字列Seと、学習モードにおいて記憶部12に記憶された基準文字列Srとが一致するか否かを調べ(S115)、両者が一致する場合には投票用紙の選挙種別が正しいと判定し(S116)、両者が一致しない場合には投票用紙の選挙種別が異なると判定する(S117)。図4,6に示される例では、判定対象の投票用紙から生成された評価文字列Seと、学習モードにおいて記憶された基準文字列Srとが一致するため、投票用紙の選挙種別が正しいと判定される。   The determination unit 13 checks whether or not the evaluation character string Se set in step S114 matches the reference character string Sr stored in the storage unit 12 in the learning mode (S115). Determines that the election type of the ballot is correct (S116), and if the two do not match, it determines that the election type of the ballot is different (S117). In the example shown in FIGS. 4 and 6, the evaluation character string Se generated from the ballot paper to be determined matches the reference character string Sr stored in the learning mode, and therefore the election type of the ballot paper is determined to be correct. Is done.

判定モードにおいて行われる以上の処理によって、判定対象の投票用紙の選挙種別が正しいか否かが判定される。そして、選挙種別が正しいと判定された投票用紙は、その記入内容(候補者名等)に対応するスタッカ6に搬送されることによって分類され、選挙種別が異なると判定された投票用紙は、混入票であるみなされてリジェクトされる。   Through the above processing performed in the determination mode, it is determined whether or not the election type of the ballot to be determined is correct. Then, the ballots determined to be correct in the election type are classified by being conveyed to the stacker 6 corresponding to the entry contents (candidate name, etc.), and the ballots determined to be different in the election type are mixed. It is regarded as a vote and rejected.

以上説明したように、この実施の形態1に係る投票用紙分類装置では、判定対象の投票用紙から生成された評価文字列Seと、学習用の正しい選挙種別の投票用紙から生成された基準文字列Srとが一致するか否かに基づいて、判定対象の投票用紙の選挙種別が正しいか否かを判定する。これにより、投票用紙の選挙種別が正しいか否かを自動的に判定することができる。   As described above, in the ballot paper classification device according to the first embodiment, the evaluation character string Se generated from the ballot paper to be determined and the reference character string generated from the ballot paper of the correct election type for learning Based on whether or not Sr matches, it is determined whether or not the election type of the ballot to be determined is correct. Thereby, it can be automatically determined whether or not the election type of the ballot is correct.

実施の形態2.
次に、この発明の実施の形態2に係る投票用紙分類装置について、図7〜11に基づいて説明する。
実施の形態1に係る投票用紙分類装置は、選挙種別領域Rから抽出された文字列に基づいて、判定対象の投票用紙の選挙種別が正しいか否かを判定した。これに対して、実施の形態2に係る投票用紙分類装置は、選挙種別領域Rの各画素値に基づいて、判定対象の投票用紙の選挙種別が正しいか否かを判定する。尚、以降の説明において、実施の形態1と同様の箇所については、その詳細な説明を省略する。
Embodiment 2. FIG.
Next, a ballot paper classification device according to Embodiment 2 of the present invention will be described with reference to FIGS.
Based on the character string extracted from the election type region R, the ballot paper classification device according to Embodiment 1 determines whether the election type of the ballot paper to be determined is correct. In contrast, the ballot paper classification device according to the second embodiment determines whether the election type of the ballot paper to be determined is correct based on each pixel value of the election type region R. In the following description, detailed description of the same parts as those in the first embodiment will be omitted.

図7に模式的に示されるように、この実施の形態2に係る投票用紙分類装置の内部には、演算処理ユニット208が備えられている。演算処理ユニット208は、領域抽出部9、評価画素値配列生成部210、マスクパターン生成部211、記憶部212、及び判定部213から構成されている。   As schematically shown in FIG. 7, an arithmetic processing unit 208 is provided inside the voting paper classification apparatus according to the second embodiment. The arithmetic processing unit 208 includes an area extraction unit 9, an evaluation pixel value array generation unit 210, a mask pattern generation unit 211, a storage unit 212, and a determination unit 213.

領域抽出部9は、実施の形態1と同様に、撮像ユニット5によって生成された投票用紙の画像情報Iから選挙種別領域Rを抽出する。   The area extraction unit 9 extracts the election type area R from the image information I of the ballot paper generated by the imaging unit 5 as in the first embodiment.

評価画素値配列生成部210は、判定対象の投票用紙における選挙種別領域Rの各画素値を抽出することによって、評価情報となる評価画素値の2次元配列Pe[x,y]を生成する。   The evaluation pixel value array generation unit 210 generates a two-dimensional array Pe [x, y] of evaluation pixel values serving as evaluation information by extracting each pixel value of the election type region R in the voting paper to be determined.

マスクパターン生成部211は、学習用の投票用紙における選挙種別領域Rの各画素値を抽出し、それらに基づいて基準情報となる2次元のマスクパターンMr[x,y]を生成する。   The mask pattern generation unit 211 extracts each pixel value of the election type region R in the learning ballot, and generates a two-dimensional mask pattern Mr [x, y] serving as reference information based on the extracted pixel values.

記憶部212は、マスクパターン生成部211によって生成されたマスクパターンMrを記憶する。   The storage unit 212 stores the mask pattern Mr generated by the mask pattern generation unit 211.

判定部213は、判定対象の投票用紙から生成された評価画素値の配列Peに対して、記憶部212に記憶されているマスクパターンMrを適用した結果に基づいて、判定対象の投票用紙の選挙種別が正しいか否かを判定する。   Based on the result of applying the mask pattern Mr stored in the storage unit 212 to the evaluation pixel value array Pe generated from the ballot paper to be determined, the determination unit 213 elects the ballot paper to be determined Determine whether the type is correct.

次に、この実施の形態2に係る投票用紙分類装置における、投票用紙の選挙種別が正しいか否かを判定する処理について説明する。   Next, a process for determining whether or not the election type of the voting paper is correct in the voting paper classification device according to the second embodiment will be described.

(学習モード)
学習用の投票用紙がホッパ3に配置されて学習モードの開始が指示されると、投票用紙分類装置は図8のフローチャートに示される処理を行う。
(Learning mode)
When a learning ballot is placed on the hopper 3 and the start of the learning mode is instructed, the ballot classification device performs the process shown in the flowchart of FIG.

まず、撮像ユニット5が学習用の投票用紙の記入面を撮像して2値化された画像情報Iを生成し(S201)。領域抽出部9が画像情報Iから選挙種別領域Rを抽出してマスクパターン生成部211に出力する(S202)。   First, the image pickup unit 5 picks up an image of a learning ballot paper and generates binarized image information I (S201). The region extraction unit 9 extracts the election type region R from the image information I and outputs it to the mask pattern generation unit 211 (S202).

マスクパターン生成部211は、選挙種別領域Rから各画素値を抽出して図9(a)に示されるような画素値の配列Tmp[x,y]を生成し(S203)、これに膨張処理及び反転処理を施すことによって図9(b)に示されるようなマスクパターンMr[x,y]を生成し(S204)、マスクパターンMrを記憶部212に記憶させる(S205)。尚、図9(a),(b)において、黒色の領域は画素値が1の領域であり、白色の領域は画素値が0の領域である。   The mask pattern generation unit 211 extracts each pixel value from the election type region R to generate a pixel value array Tmp [x, y] as shown in FIG. 9A (S203), and expands the result. Then, a mask pattern Mr [x, y] as shown in FIG. 9B is generated by performing the inversion process (S204), and the mask pattern Mr is stored in the storage unit 212 (S205). In FIGS. 9A and 9B, the black area is an area having a pixel value of 1, and the white area is an area having a pixel value of 0.

学習モードにおいて行われる以上の処理によって、学習用の投票用紙に印刷されている選挙種別を表す文字列を含む領域の各画素値に基づいてマスクパターンMrが生成され、記憶部212に記憶される。   Through the above processing performed in the learning mode, the mask pattern Mr is generated based on each pixel value of the area including the character string representing the election type printed on the learning ballot and stored in the storage unit 212. .

(判定モード)
投票用紙分類装置は、判定モードの開始が指示されると図10のフローチャートに示される処理を判定対象の各投票用紙に対して行う。
(Judgment mode)
When instructed to start the determination mode, the ballot paper classification device performs the process shown in the flowchart of FIG. 10 on each ballot paper to be determined.

まず、撮像ユニット5が投票用紙の記入面を撮像して2値化された画像情報Iを生成し(S211)、領域抽出部9が画像情報Iから選挙種別領域Rを抽出して評価画素値配列生成部210に出力する(S212)。   First, the imaging unit 5 captures the entry surface of the ballot paper and generates binarized image information I (S211), and the region extraction unit 9 extracts the election type region R from the image information I and evaluates the pixel value. The data is output to the array generation unit 210 (S212).

評価画素値配列生成部210は、選挙種別領域Rの各画素値を抽出し(S213)、評価画素値の配列Pe[x,y]を生成する(S214)。   The evaluation pixel value array generation unit 210 extracts each pixel value of the election type region R (S213), and generates an evaluation pixel value array Pe [x, y] (S214).

判定部213は、ステップS214において生成された評価画素値の配列Peに対して、記憶部212に記憶されているマスクパターンMrを適用する(S215)。すなわち、評価画素値の配列Pe[x,y]とマスクパターンMr[x、y]のそれぞれ対応する画素値の論理積を計算する。そして、値が1の画素が所定数以上残存するか否かを調べる(S216)。   The determination unit 213 applies the mask pattern Mr stored in the storage unit 212 to the array Pe of evaluation pixel values generated in step S214 (S215). That is, the logical product of the corresponding pixel values of the evaluation pixel value array Pe [x, y] and the mask pattern Mr [x, y] is calculated. Then, it is checked whether or not a predetermined number of pixels having a value of 1 remain (S216).

図11(a)に示されるように、判定対象の投票用紙と学習用の投票用紙の選挙種別が一致する場合には、評価画素値の配列Peに対してマスクパターンMrを適用した結果、値が1の画素は殆ど残存しない。これに対して、図11(b)に示されるように、判定対象の投票用紙と学習用の投票用紙の選挙種別が異なる場合には、評価画素値の配列Peに対してマスクパターンMrを適用した結果、値が1の画素が数多く残存する。そのため、判定部213は、評価画素値の配列Peに対してマスクパターンMrを適用した結果、値が1の画素が所定数以上残存しない場合には、判定対象の投票用紙の選挙種別が正しいと判定し(S217)、所定数以上残存する場合には異なる選挙種別のものであると判定する(S218)。   As shown in FIG. 11A, if the election type of the ballot for determination and the ballot for learning match, the result of applying the mask pattern Mr to the array Pe of evaluation pixel values is a value. However, there is almost no remaining pixel. On the other hand, as shown in FIG. 11 (b), when the election types of the voting paper to be judged and the voting paper for learning are different, the mask pattern Mr is applied to the evaluation pixel value array Pe. As a result, many pixels having a value of 1 remain. Therefore, the determination unit 213 applies the mask pattern Mr to the evaluation pixel value array Pe, and if the predetermined number or more of the pixels having the value 1 do not remain, the election type of the ballot to be determined is correct. A determination is made (S217), and if a predetermined number or more remain, it is determined that the election type is different (S218).

以上説明したように、この実施の形態2に係る投票用紙分類装置では、判定対象の投票用紙から生成された評価画素値の配列Peに対して、学習用の正しい選挙種別の投票用紙から生成されたマスクパターンMrを適用した結果に基づいて、判定対象の投票用紙の選挙種別が正しいか否かを判定する。これにより、投票用紙の選挙種別が正しいか否かを自動的に判定することができる。   As described above, in the voting paper classification device according to the second embodiment, the evaluation pixel value array Pe generated from the voting paper to be determined is generated from the voting paper of the correct election type for learning. Based on the result of applying the mask pattern Mr, it is determined whether or not the election type of the ballot to be determined is correct. Thereby, it can be automatically determined whether or not the election type of the ballot is correct.

尚、実施の形態1,2において、投票用紙の記入面の画像情報Iから選挙種別領域Rを抽出する例を示したが、選挙種別を表す情報が記入面の裏側にある場合には、記入面の裏側の画像情報から選挙種別領域Rを抽出してもよい。また、複数の選挙種別領域Rを抽出してもよい。   In the first and second embodiments, the example in which the election type region R is extracted from the image information I on the entry surface of the ballot is shown. However, if the information indicating the election type is on the back side of the entry surface, the entry is made. The election type region R may be extracted from the image information on the back side of the face. A plurality of election type regions R may be extracted.

また、実施の形態2において、2値化された画像情報Iに基づいて評価画素値の配列Peを生成する例を示したが、画像情報Iはグレースケールであってもよい。その場合には、ステップS216において、所定値以上の画素値が所定数以上残存するか否かに基づいて、判定対象の投票用紙の選挙種別が正しいか否かを判定する。   In the second embodiment, the evaluation pixel value array Pe is generated based on the binarized image information I. However, the image information I may be in gray scale. In that case, in step S216, it is determined whether or not the election type of the voting paper to be determined is correct based on whether or not a predetermined number or more of pixel values remain.

5 撮像ユニット(撮像手段)、9 領域抽出部(領域抽出手段)、10 評価文字列生成部(評価情報生成手段)、11 基準文字列生成部(基準情報生成手段)、12 記憶部(記憶手段)、13 判定部(判定手段)、R 選挙種別領域、Se 評価文字列(評価情報、第1の文字列)、Sr 基準文字列(基準情報、第2の文字列)、210 評価画素値配列生成部(評価情報生成手段)、211 マスクパターン生成部(基準情報生成手段)、212 記憶部(記憶手段)、213 判定部(判定手段)、Pe 評価画素値の配列(評価情報、画素値の集合)、Mr マスクパターン(基準情報、マスクパターン)。   5 imaging unit (imaging means), 9 area extraction section (area extraction means), 10 evaluation character string generation section (evaluation information generation means), 11 reference character string generation section (reference information generation means), 12 storage section (storage means) ), 13 determination unit (determination means), R election type area, Se evaluation character string (evaluation information, first character string), Sr reference character string (reference information, second character string), 210 evaluation pixel value array Generation unit (evaluation information generation unit), 211 mask pattern generation unit (reference information generation unit), 212 storage unit (storage unit), 213 determination unit (determination unit), Pe array of evaluation pixel values (evaluation information, pixel value Set), Mr mask pattern (reference information, mask pattern).

Claims (3)

投票用紙を記入内容に基づいて分類する投票用紙分類装置において、
投票用紙を撮像して画像情報を生成する撮像手段と、
該撮像手段によって生成された前記画像情報から選挙種別を表す情報を含む選挙種別領域を抽出する領域抽出手段と、
該領域抽出手段によって抽出された前記選挙種別領域から評価情報を生成する評価情報生成手段と、
予め与えられた正しい選挙種別の投票用紙の画像情報における前記選挙種別領域から基準情報を生成する基準情報生成手段と、
該基準情報生成手段によって生成された前記基準情報を記憶する記憶手段と、
判定対象の投票用紙の画像情報における前記選挙種別領域から生成された前記評価情報と、前記記憶手段に記憶されている前記基準情報とに基づいて、判定対象の投票用紙の選挙種別が正しいか否かを判定する判定手段と
を備えることを特徴とする、投票用紙分類装置。
In the ballot classification device that classifies the ballot based on the contents of the entry,
An image pickup means for picking up an image of a ballot and generating image information;
An area extracting means for extracting an election type area including information representing an election type from the image information generated by the imaging means;
Evaluation information generating means for generating evaluation information from the election type area extracted by the area extracting means;
Reference information generating means for generating reference information from the election type area in the image information of the correct election type ballot given in advance;
Storage means for storing the reference information generated by the reference information generation means;
Whether the election type of the ballot to be judged is correct based on the evaluation information generated from the election type area in the image information of the ballot to be judged and the reference information stored in the storage means A voting paper classification device, comprising: a determination unit that determines whether or not.
前記評価情報は、判定対象の投票用紙の画像情報における前記選挙種別領域から抽出された第1の文字列であり、
前記基準情報は、予め与えられた正しい選挙種別の投票用紙の画像情報における前記選挙種別領域から抽出された第2の文字列であり、
前記判定手段は、前記第1の文字列と前記第2の文字列とが一致するか否かに基づいて、判定対象の投票用紙の選挙種別が正しいか否かを判定することを特徴とする、請求項1に記載の投票用紙分類装置。
The evaluation information is a first character string extracted from the election type area in the image information of the ballot paper to be determined,
The reference information is a second character string extracted from the election type area in the image information of a correct election type ballot given in advance,
The determination means determines whether or not the election type of the ballot to be determined is correct based on whether or not the first character string matches the second character string. The ballot paper classification device according to claim 1.
前記評価情報は、判定対象の投票用紙の画像情報における前記選挙種別領域の画素値の集合であり、
前記基準情報は、予め与えられた正しい選挙種別の投票用紙の画像情報における前記選挙種別領域の画素値の集合に基づいて作成されたマスクパターンであり、
前記判定手段は、判定対象の投票用紙から生成された前記画素値の集合に対して前記マスクパターンを適用した結果に基づいて、判定対象の投票用紙の選挙種別が正しいか否かを判定することを特徴とする、請求項1に記載の投票用紙分類装置。
The evaluation information is a set of pixel values of the election type area in the image information of the ballot paper to be determined,
The reference information is a mask pattern created based on a set of pixel values of the election type area in image information of a correct election type ballot given in advance,
The determination unit determines whether the election type of the vote ballot to be determined is correct based on a result of applying the mask pattern to the set of pixel values generated from the ballot paper to be determined. The ballot paper classification device according to claim 1, wherein:
JP2010174273A 2010-08-03 2010-08-03 Ballot paper sorting device Pending JP2012033124A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010174273A JP2012033124A (en) 2010-08-03 2010-08-03 Ballot paper sorting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010174273A JP2012033124A (en) 2010-08-03 2010-08-03 Ballot paper sorting device

Publications (1)

Publication Number Publication Date
JP2012033124A true JP2012033124A (en) 2012-02-16

Family

ID=45846418

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010174273A Pending JP2012033124A (en) 2010-08-03 2010-08-03 Ballot paper sorting device

Country Status (1)

Country Link
JP (1) JP2012033124A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014154093A (en) * 2013-02-13 2014-08-25 Glory Ltd Ballot sorter, sorting method of ballot, and allocation method of ballot to storage destination
JP2016181223A (en) * 2015-03-25 2016-10-13 武蔵エンジニアリング株式会社 Ballot paper sorting device
JP2017168153A (en) * 2017-07-03 2017-09-21 グローリー株式会社 Voting slip sorter, sorting method of voting slip, and sorting system of voting slip
JP2018200645A (en) * 2017-05-29 2018-12-20 京セラドキュメントソリューションズ株式会社 Document data processing apparatus, document data processing program, and document data processing method
JP2019061424A (en) * 2017-09-26 2019-04-18 武蔵エンジニアリング株式会社 Classification device for referendum ballot paper

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014154093A (en) * 2013-02-13 2014-08-25 Glory Ltd Ballot sorter, sorting method of ballot, and allocation method of ballot to storage destination
JP2016181223A (en) * 2015-03-25 2016-10-13 武蔵エンジニアリング株式会社 Ballot paper sorting device
JP2018200645A (en) * 2017-05-29 2018-12-20 京セラドキュメントソリューションズ株式会社 Document data processing apparatus, document data processing program, and document data processing method
JP2017168153A (en) * 2017-07-03 2017-09-21 グローリー株式会社 Voting slip sorter, sorting method of voting slip, and sorting system of voting slip
JP2019061424A (en) * 2017-09-26 2019-04-18 武蔵エンジニアリング株式会社 Classification device for referendum ballot paper

Similar Documents

Publication Publication Date Title
CN104820836B (en) Identification device and recognition methods
CN100525363C (en) Automatic grading apparatus, method
US9202113B2 (en) Ballot adjudication in voting systems utilizing ballot images
CN202939608U (en) Test paper inspecting system
JP2012033124A (en) Ballot paper sorting device
CN108256415A (en) Fingerprint identification method, device and system, electronic equipment
JP2011028512A (en) Method for creating dictionary for fitness determination of paper sheet, paper sheet processing apparatus, and paper sheet processing method
CN105956541A (en) Fingerprint identification method, device and mobile terminal
JP5292643B2 (en) Voting paper reader and reading method
JP2012043367A (en) Ballot paper classification device
JP2016004419A (en) Print inspection device, print inspection method and program
JP6568561B2 (en) Referendum classification device
JP3483919B2 (en) Slip document information system
US20130328263A1 (en) Paper sheet processing apparatus
JP6516527B2 (en) Ballot classification device
CN101013471A (en) Method for auto-processing the type selection of evaluating paper
JP7211265B2 (en) Identification model generation device, identification model generation method, identification model generation program, steel flaw determination device, steel flaw determination method, and steel flaw determination program
JP2019144991A (en) Classification device for national referendum ballot
JP2006201876A (en) Paper sheet processor
JP2016164743A (en) Classification device of voting paper
Ji et al. An analysis of write-in marks on optical scan ballots
JP6002535B2 (en) Ballot paper reading method, ballot paper reader, and ballot paper sorter
JP5757299B2 (en) Form design device, form design method, and form design program
JP5145837B2 (en) Random inspection device
JP5292641B2 (en) Voting paper reader and reading method