JP2014071784A - Device and method for reading driver's license - Google Patents

Device and method for reading driver's license Download PDF

Info

Publication number
JP2014071784A
JP2014071784A JP2012218981A JP2012218981A JP2014071784A JP 2014071784 A JP2014071784 A JP 2014071784A JP 2012218981 A JP2012218981 A JP 2012218981A JP 2012218981 A JP2012218981 A JP 2012218981A JP 2014071784 A JP2014071784 A JP 2014071784A
Authority
JP
Japan
Prior art keywords
image
license
driver
reading
ruled line
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
JP2012218981A
Other languages
Japanese (ja)
Other versions
JP6171165B2 (en
Inventor
Hiroshi Nakamura
宏 中村
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.)
Nidec Sankyo Corp
Original Assignee
Nidec Sankyo 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 Nidec Sankyo Corp filed Critical Nidec Sankyo Corp
Priority to JP2012218981A priority Critical patent/JP6171165B2/en
Publication of JP2014071784A publication Critical patent/JP2014071784A/en
Application granted granted Critical
Publication of JP6171165B2 publication Critical patent/JP6171165B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a device and a method for reading a driver's license in which, even if a driver's license image is inputted in a state where the upper and lower, the right and the left, and the front and back surfaces are inverted, respectively, it is precisely determined in a short time whether or not the driver's license image is an erect image.SOLUTION: A device 1 for reading a driver's license includes: am image input part into which a driver's license image is inputted in multi-gradation; and an image direction determination part which determines whether or not the driver's license image inputted into the image input part is an erect image. When a ruled line L in the longitudinal direction is detected in a lower left side region P of the driver's license image, it is determined that the inputted driver's license image is the erect image.

Description

本発明は、運転免許証画像を光学的に読み取って画像情報を出力する運転免許証読取装置及び運転免許証読取方法に関する。   The present invention relates to a driving license reading apparatus and a driving license reading method for optically reading a driving license image and outputting image information.

従来から、運転免許証に印刷された文字、数字、記号等の記載内容を読み取る運転免許証読取装置は、運転免許証を画像読取装置で光学的に読み取った後、運転免許証に印刷された文字等の記載内容を読み取って文字認識を行い、認識された文字の情報を出力装置で表示、印刷する等して出力している。   Conventionally, a driver's license reading device that reads text, numbers, symbols, etc. printed on a driver's license has been printed on the driver's license after optically reading the driver's license with an image reader. Characters are recognized by reading description contents such as characters, and the information on the recognized characters is output and displayed on an output device.

ここで、運転免許証の記載内容を正確に読み取るためには、運転免許証をスキャナ等で読み取って得られる運転免許証画像情報が正しいもの、すなわち、正立画像でなければならない。上下、左右を逆さに得られる倒立画像(反転画像)情報や、表裏を逆さに得られる裏面画像情報では、運転免許証の記載内容を正確に読み取ることはできない。   Here, in order to accurately read the description of the driver's license, the driver's license image information obtained by reading the driver's license with a scanner or the like must be correct, that is, an upright image. Inverted image (reversed image) information obtained upside down, left and right, and backside image information obtained upside down cannot accurately read the description of the driver's license.

このように、スキャナ等で読み取って得られる運転免許証画像情報が正立画像か倒立画像(反転画像)か裏面画像かを判定する装置として特許文献1に開示されたものが存在する。特許文献1は、運転免許証画像の特定位置(運転免許証の有効期限領域)(領域A及びB)の画素の階調値(256階調)を用いて処理可能な運転免許証画像であるか処理不可能な運転免許証画像であるかを判定しており、具体的には、特定の領域Aと、それが上下、左右又は表裏に反転した場合に位置する領域Bを決めておき、両者の画素分布の特徴差異によって、「処理可能な運転免許証画像」、「上下反転した運転免許証画像」、「裏表反転した運転免許証画像」、「運転免許証画像ではない」を判定している。   As described above, there is an apparatus disclosed in Patent Document 1 as an apparatus for determining whether the driver's license image information obtained by reading with a scanner or the like is an upright image, an inverted image (reverse image), or a back image. Patent Document 1 is a driver's license image that can be processed using the gradation value (256 gradations) of a pixel at a specific position of the driver's license image (expiration period area of the driver's license) (areas A and B). Whether or not it is a non-processable driver's license image, specifically, a specific region A and a region B located when it is flipped up and down, left and right or front and back, Based on the difference in pixel distribution between the two, it is determined whether it can be processed as a “driver's license image”, “upside down driver license image”, “inverted driver license image”, or “not a driver license image”. ing.

特開平7−65118(明細書[0021]〜[0024])JP-A-7-65118 (Description [0021] to [0024])

しかしながら、特許文献1に開示された技術では、領域A内の一定の階調数範囲(N階調以上M階調以下の値)にある画素数の全体画素数に対する比率Kaと、領域B内の一定の階調数範囲にある画素数の全体画素数に対する比率Kbと、の大小関係によって判定を行っている。   However, in the technique disclosed in Patent Document 1, the ratio Ka to the total number of pixels in the constant number of gradations range (value between N gradations and M gradations) in the area A and the area B The determination is made based on the magnitude relation between the ratio Kb of the number of pixels in a certain gradation number range to the total number of pixels.

このため、N,Mは運転免許証の有効期限領域の青色を想定して予め設定された定数なので、例えば、領域A,B内の状態(例えば、照明ムラや免許証の汚れ等)によっては、計算されたRa,Rbが近接することもあり、このような状況下では判定を誤る可能性もあり、正しく姿勢判定ができない。   For this reason, N and M are constants set in advance assuming the blue of the expiration date area of the driver's license. For example, depending on the state in the areas A and B (for example, uneven lighting or dirt on the license) The calculated Ra and Rb may be close to each other. In such a situation, there is a possibility that the determination may be wrong, and the posture cannot be determined correctly.

本発明は、このような点に鑑みてなされたものであり、その目的は、運転免許証画像が上下、左右、表裏を逆さにした状態で入力されても、短時間で精度よく正立画像であるかどうかを判定することができる運転免許証読取装置及び運転免許証読取方法を提供することにある。   The present invention has been made in view of the above points, and its purpose is to provide an upright image with high accuracy in a short time even when a driver's license image is input in an upside down, left and right, upside down state. It is an object of the present invention to provide a driver's license reading device and a driver's license reading method that can determine whether or not the driver is licensed.

以上のような課題を解決するために、本発明は、以下のものを提供する。   In order to solve the above problems, the present invention provides the following.

(1) 運転免許証画像を多階調で入力する画像入力部と、前記画像入力部で入力された運転免許証画像が正立画像であるかどうかを判定する画像方向判定部と、を有し、運転免許証画像を読み取って画像情報を出力する運転免許証読取装置であって、前記画像方向判定部は、運転免許証画像の所定領域内に罫線を検出した場合に、入力された運転免許証画像が正立画像であると判定することを特徴とする運転免許証読取装置。   (1) An image input unit that inputs a driver's license image in multiple gradations, and an image direction determination unit that determines whether the driver's license image input by the image input unit is an erect image. A driver's license reading device that reads a driver's license image and outputs image information, wherein the image direction determining unit detects a ruled line in a predetermined area of the driver's license image, A driver's license reading device, wherein the driver's license image is determined to be an erect image.

本発明によれば、運転免許証画像の所定領域内に罫線を検出した場合に正立画像であると判定することで、短時間での判定を行うことができる。   According to the present invention, when a ruled line is detected within a predetermined area of the driver's license image, it is determined that the image is an erect image, so that the determination can be made in a short time.

(2) 前記画像方向判定部は、前記所定領域内の画素数を縦方向に走査した射影を算出して判定することを特徴とする運転免許証読取装置。   (2) The driver's license reading apparatus, wherein the image direction determination unit calculates and determines a projection obtained by scanning the number of pixels in the predetermined region in the vertical direction.

本発明によれば、所定領域内の画素数を縦方向に走査した射影を算出して判定することから、縦方向/横方向(水平/垂直方向)に走査した射影よりも短時間での判定を行うことができる。   According to the present invention, since the number of pixels in a predetermined area is determined by calculating a projection scanned in the vertical direction, the determination can be made in a shorter time than the projection scanned in the vertical direction / horizontal direction (horizontal / vertical direction). It can be performed.

(3) 前記所定領域は、運転免許証画像の外枠線を基準とした所定の位置に設定されることを特徴とする運転免許証読取装置。   (3) The driver's license reading apparatus, wherein the predetermined area is set at a predetermined position based on an outer frame line of the driver's license image.

本発明によれば、運転免許証の幾何学的特長を捉えて所定領域が設定されることから、画像入力部に都度入力される運転免許証画像について精度の高い判定を行うことができる。   According to the present invention, since the predetermined region is set by capturing the geometric features of the driver's license, it is possible to make a highly accurate determination on the driver's license image that is input to the image input unit each time.

(4) 運転免許証画像を読み取って画像情報を出力する運転免許証読取方法であって、運転免許証画像を多階調で入力するステップと、運転免許証画像の所定領域内を走査して罫線を検出するステップと、運転免許証画像の所定領域内に罫線を検出した場合に、入力された運転免許証画像が正立画像であると判定するステップと、を有することを特徴とする運転免許証読取方法。   (4) A driver's license reading method for reading a driver's license image and outputting image information, the step of inputting the driver's license image in multiple gradations, and scanning a predetermined area of the driver's license image And a step of detecting a ruled line and a step of determining that the input driver's license image is an upright image when a ruled line is detected within a predetermined area of the driver's license image. How to read a license.

本発明によれば、運転免許証画像の所定領域内に罫線を検出した場合に正立画像であると判定することで、短時間での判定を行うことができる。   According to the present invention, when a ruled line is detected within a predetermined area of the driver's license image, it is determined that the image is an erect image, so that the determination can be made in a short time.

本発明に係る運転免許証読取装置及び運転免許証読取方法は、運転免許証の罫線構造等の幾何学的特長を基にして運転免許証画像の所定領域内の罫線の有無を検出することにより、運転免許証画像が正立画像であるかどうかを短時間で精度よく判定することができる。   The driver's license reading apparatus and the driver's license reading method according to the present invention detect the presence or absence of ruled lines in a predetermined area of the driver's license image based on geometric features such as the ruled line structure of the driver's license. It can be accurately determined in a short time whether the driver's license image is an upright image.

本発明の実施の形態に係る運転免許証読取装置の電気的構成を示すブロック図。The block diagram which shows the electric constitution of the driver's license reading apparatus which concerns on embodiment of this invention. 運転免許証画像(正立画像)を示す図。The figure which shows a driver's license image (upright image). 運転免許証画像(倒立画像)を示す図。The figure which shows a driver's license image (inverted image). 運転免許証画像(裏面画像)を示す図。The figure which shows a driver's license image (back image). 領域内の画素数を縦方向に走査した射影を示す図。The figure which shows the projection which scanned the pixel number in an area | region to the vertical direction. 本発明の実施の形態に係る運転免許証読取方法について説明するための運転免許証画像を示す図。The figure which shows the driver's license image for demonstrating the driver's license reading method which concerns on embodiment of this invention. 本発明の実施の形態に係る運転免許証読取方法を示すフローチャート。The flowchart which shows the driver's license reading method which concerns on embodiment of this invention. 本発明の実施の形態に係る運転免許証読取方法を示すフローチャート。The flowchart which shows the driver's license reading method which concerns on embodiment of this invention. 本発明の実施の形態に係る運転免許証読取方法を示すフローチャート。The flowchart which shows the driver's license reading method which concerns on embodiment of this invention. 本発明の実施の形態に係る他の運転免許証読取方法について説明するための運転免許証画像を示す図。The figure which shows the driver's license image for demonstrating the other driver's license reading method which concerns on embodiment of this invention.

以下、本発明を実施するための最良の形態について、図面を参照しながら説明する。   The best mode for carrying out the present invention will be described below with reference to the drawings.

[運転免許証読取装置]
図1は、本発明の実施の形態に係る運転免許証読取装置1の電気的構成を示すブロック図である。
[Driver license reader]
FIG. 1 is a block diagram showing an electrical configuration of a driver's license reading apparatus 1 according to an embodiment of the present invention.

運転免許証読取装置1は、運転免許証2に印刷された文字等の記載内容をイメージスキャナにより光学的に読み取って文字認識を行い、認識された文字を出力するようにした光学的文字読取装置(Optical Character Reader)が用いられる。   The driver's license reading device 1 is an optical character reading device that optically reads the description content such as characters printed on the driver's license 2 with an image scanner, recognizes the characters, and outputs the recognized characters. (Optical Character Reader) is used.

運転免許証2は、縦54mm、横85.6mm、厚み0.76mmでICチップが内蔵されており、JISに準拠している一般的なカードと同様のサイズである。   The driver's license 2 is 54 mm in length, 85.6 mm in width, 0.76 mm in thickness and has an IC chip built-in, and is the same size as a general card conforming to JIS.

図1に示す運転免許証読取装置1は、運転免許証2に表示された文字列を光学的に読み取り可能な装置であり、文字列の読み取りの前処理を行うべく、密着型の(1次元)撮像素子11と、データ処理部13と、を有している。   A driver's license reading device 1 shown in FIG. 1 is a device that can optically read a character string displayed on the driver's license 2, and is a close contact type (one-dimensional) in order to perform preprocessing of character string reading. ) The image sensor 11 and the data processor 13 are included.

密着型の(1次元)撮像素子11は、図1に示すように運転免許証2を図示しない搬送手段によって所定の搬送方向(図1では左から右の矢印の向き)に搬送する搬送機構10に設けられている。この撮像素子11は、ラインセンサであり、搬送方向と略直行する方向(運転免許証2の縦方向)に一列に配置され、かつ、運転免許証2の上下端の長さよりも長く形成されている。なお、搬送機構10には搬送ガイド10Aが形成されており、運転免許証2は、その一端が搬送ガイド10Aに接して搬送されるようになっている。なお、撮像素子11は1次元に限定されるものではなく、多次元撮像素子であってもよい。さらに、撮像素子としてCCD、CMOSセンサ等であってもよい。また、運転免許証2を搬送する搬送機構10に限定されるものではなく、運転免許証2を支持して撮像する被写体支持機構であってもよい。   As shown in FIG. 1, the contact-type (one-dimensional) image sensor 11 transports the driver's license 2 in a predetermined transport direction (in the direction of the arrow from left to right in FIG. 1) by a transport unit (not shown). Is provided. The image sensor 11 is a line sensor, and is arranged in a line in a direction substantially perpendicular to the conveyance direction (vertical direction of the driver's license 2), and is longer than the length of the upper and lower ends of the driver's license 2. Yes. In addition, the conveyance mechanism 10 is formed with a conveyance guide 10A, and one end of the driver's license 2 is conveyed in contact with the conveyance guide 10A. Note that the imaging element 11 is not limited to one dimension, and may be a multidimensional imaging element. Furthermore, a CCD, a CMOS sensor, or the like may be used as the imaging element. Further, the present invention is not limited to the transport mechanism 10 that transports the driver's license 2, and may be a subject support mechanism that supports and captures the driver's license 2.

データ処理部13は、画像メモリ13aと、画像方向判定部13bと、画像認識部13cと、出力部13dと、を有しており、これらの各部は、CPU又はMPUやRAM,ROMなどの電気要素によって、ハードウェア的に実現することができる。   The data processing unit 13 includes an image memory 13a, an image direction determining unit 13b, an image recognizing unit 13c, and an output unit 13d, each of which is an electric circuit such as a CPU, MPU, RAM, ROM, or the like. Depending on the element, it can be realized in hardware.

画像メモリ13aは、撮像して得られた運転免許証画像に関して、画像データやこの画像データを回転等処理した画像データを格納する。具体的には、各画素は8ビットの情報量をもち256階調の多値画像データで表され、画素値である輝度値は0から255までの整数値として表されている。画像メモリ13aは、RAM、SDRAM、DDR、SDRAM、RDRAMなど画像データを記憶し得るもので構成される。   The image memory 13a stores image data and image data obtained by processing such image data with respect to a driver's license image obtained by imaging. Specifically, each pixel is represented by multi-valued image data of 256 gradations having an 8-bit information amount, and a luminance value as a pixel value is represented as an integer value from 0 to 255. The image memory 13a is configured to store image data such as RAM, SDRAM, DDR, SDRAM, RDRAM.

画像方向判定部13bは、画像メモリ13aに入力された運転免許証画像が正立画像であるかどうかを判定し、正立画像でなければ、さらに倒立画像か裏面画像かを判定する。具体的には、運転免許証画像の所定の領域P内の画素数を縦方向に走査した射影を算出して、領域P内の縦罫線Lが検出されるか否かによって判定する。画像方向判定部13bにより、図2は領域P内の縦罫線Lが検出されるので正立画像、図3及び図4は領域P内の縦罫線が検出されないので正立画像ではない(倒立画像又は裏面画像)と判定する。   The image direction determination unit 13b determines whether the driver's license image input to the image memory 13a is an upright image. If the image is not an upright image, the image direction determination unit 13b further determines whether the image is an inverted image or a back image. Specifically, a projection obtained by scanning the number of pixels in a predetermined area P of the driver's license image in the vertical direction is calculated, and the determination is made based on whether or not the vertical ruled line L in the area P is detected. 2 detects a vertical ruled line L in the region P by the image direction determination unit 13b, and FIGS. 3 and 4 are not upright images because the vertical ruled line in the region P is not detected. Or back side image).

ここで、所定の領域Pは、運転免許証画像内で予め定められていてもよく、運転免許証画像が入力される度に設定してもよい。例えば、運転免許証2を支持してエリアセンサで撮像する被写体支持機構を有する運転免許証読取装置にあっては、所定位置に運転免許証2をセットして撮像することになるので、領域Pを浮動させずに予め固定的に定めておくことができる。   Here, the predetermined area P may be determined in advance in the driver's license image, or may be set every time the driver's license image is input. For example, in a driver's license reader having a subject support mechanism that supports the driver's license 2 and picks up an image with an area sensor, the driver's license 2 is set at a predetermined position and picked up. Can be fixedly determined in advance without floating.

なお、画像方向判定部13bにおける領域P内の縦罫線Lの検出は、図5に示すように、領域P内の画素数を縦方向に走査した射影を算出して行う。すなわち、射影が徐々に下がる区間X−X、ほぼ一定の区間X−X、徐々に上がる区間X−Xがある場合は、X−Xの区間(又はX−Xの区間)に縦罫線Lが存在する。なお、図5において、縦軸は階調値を示し、0が黒、255が白である。また、横軸は画素を示す。 The detection of the vertical ruled line L in the area P in the image direction determination unit 13b is performed by calculating a projection obtained by scanning the number of pixels in the area P in the vertical direction, as shown in FIG. That is, if there is a section X a -X b where the projection gradually decreases, a substantially constant section X b -X c , and a section X c -X d where the projection gradually increases, the section X a -X d (or X b- A vertical ruled line L exists in the section ( Xc ). In FIG. 5, the vertical axis indicates the gradation value, 0 is black, and 255 is white. The horizontal axis indicates pixels.

また、本実施の形態では、運転免許証の罫線構造等の幾何学的特長として所定領域P内の縦罫線Lとしているが、これに限定するものではない。上記幾何学的特長とは一方向に突出する特長をもつものである。すなわち、領域P内の画素数を縦方向または横方向等所定の方向に走査した射影した際に、走査した方向に画素数が突出するようなものであればよい。具体的には、図2等に示す縦方向に延びる縦罫線L以外に、横方向(縦方向に直角な方向)だけに延びる横罫線であってもよい。さらには、罫線のようなものが傾斜していてもよい。罫線以外の一方向に突出するような形状であればよい。   In the present embodiment, the vertical ruled lines L in the predetermined region P are used as geometric features such as the ruled line structure of the driver's license, but the present invention is not limited to this. The geometric features are those that protrude in one direction. That is, it is only necessary that when the number of pixels in the region P is projected in a predetermined direction such as a vertical direction or a horizontal direction, the number of pixels protrudes in the scanned direction. Specifically, in addition to the vertical ruled lines L extending in the vertical direction shown in FIG. 2 and the like, horizontal ruled lines extending only in the horizontal direction (direction perpendicular to the vertical direction) may be used. Further, a ruled line may be inclined. Any shape that protrudes in one direction other than the ruled line may be used.

画像認識部13cは、画像入力部13aに格納されている運転免許証画像をOCR処理して読み取る。出力部13dは、画像認識部13cで読み取られて得られた画像情報を出力する。読み取り対象は、氏名、生年月日、住所、免許証番号等、運転免許証2の記載内容を所望により設定する。   The image recognition unit 13c reads the driver's license image stored in the image input unit 13a by performing OCR processing. The output unit 13d outputs image information obtained by being read by the image recognition unit 13c. As the reading target, the description contents of the driver's license 2 such as name, date of birth, address, and license number are set as desired.

[運転免許証読取方法]
図6に示す運転免許証画像を用いて、本発明の実施の形態に係る運転免許証読取方法について説明する。図7、図8及び図9は、本発明の実施の形態に係る運転免許証読取方法を示すフローチャートであり、図8は画像方向判定処理のサブルーチン、図9は縦罫線有無判定処理のサブルーチンである。
[How to read a driver's license]
A driving license reading method according to an embodiment of the present invention will be described using the driving license image shown in FIG. 7, 8 and 9 are flowcharts showing the driver's license reading method according to the embodiment of the present invention. FIG. 8 is a subroutine for image direction determination processing, and FIG. 9 is a subroutine for vertical ruled line presence / absence determination processing. is there.

本実施形態に係る運転免許証読取方法では、図7に示すように、まず、運転免許証の画像を読み取る画像読取処理を実行する(ステップS101)。運転免許証2は、その一端が搬送ガイド10Aに接して搬送される。搬送される運転免許証2は、ラインセンサ11により、その画像が撮像される。撮像して得られた運転免許証画像は、256階調の多値画像データとして画像メモリ13aに格納される。さらに、撮像された多値画像データを回転等処理した画像データも画像メモリ13aに格納される。   In the driving license reading method according to the present embodiment, as shown in FIG. 7, first, an image reading process for reading an image of the driving license is executed (step S101). One end of the driver's license 2 is conveyed in contact with the conveyance guide 10A. An image of the conveyed driver's license 2 is taken by the line sensor 11. The driver's license image obtained by imaging is stored in the image memory 13a as 256-level multi-value image data. Furthermore, image data obtained by rotating the captured multi-value image data or the like is also stored in the image memory 13a.

次に、画像方向判定処理を行う(ステップS102)。画像方向判定処理は、画像メモリ13aに入力された運転免許証画像が正立画像であるかどうかを判定し、正立画像でなければ、さらに倒立画像か裏面画像かを判定する。この処理内容については図8を用いて後述する。   Next, an image direction determination process is performed (step S102). In the image direction determination process, it is determined whether or not the driver's license image input to the image memory 13a is an erect image. If it is not an erect image, it is further determined whether it is an inverted image or a back image. Details of this processing will be described later with reference to FIG.

次いで、画像認識部13cで画像認識処理を行い(ステップS103)、運転免許証2の多値画像データを用いて、例えば、運転免許証番号、住所、氏名等の文字等を認識する。ステップS104において認識された画像情報を出力部13dで表示する表示処理を行う(ステップS104)。なお、ステップS103の画像認識処理及びステップS104の表示処理は、一般的に行われている処理なので、詳細な説明は省略する。   Next, image recognition processing is performed by the image recognition unit 13c (step S103), and characters such as a driver's license number, an address, and a name are recognized using the multivalued image data of the driver's license 2, for example. Display processing for displaying the image information recognized in step S104 on the output unit 13d is performed (step S104). Note that the image recognition process in step S103 and the display process in step S104 are commonly performed processes, and thus detailed description thereof is omitted.

[画像方向判定処理]
図8を用いて、画像方向判定処理の処理内容について説明する。
[Image orientation determination processing]
The contents of the image direction determination process will be described with reference to FIG.

まず、縦罫線有無判定処理を行う(ステップS201)。この処理内容については図9を用いて後述するが、簡単に説明すると、領域P内の縦罫線Lを検出するために領域Pの領域設定を行う。領域Pを設定後、領域P内の縦罫線Lの有無を判定する。   First, vertical ruled line presence / absence determination processing is performed (step S201). The contents of this process will be described later with reference to FIG. 9. To briefly describe, the area P is set in order to detect the vertical ruled line L in the area P. After setting the region P, the presence or absence of the vertical ruled line L in the region P is determined.

上述したとおり、領域設定が完了したか否かを判断し、領域設定が完了している場合はステップS202の処理に進むが、領域設定が完了していない場合、例えば、入力されたものが運転免許証画像ではない場合には、処理を終了する。   As described above, it is determined whether or not the region setting has been completed, and if the region setting has been completed, the process proceeds to step S202. If the region setting has not been completed, for example, the input is operated. If it is not a license image, the process is terminated.

次いで、領域P内に縦罫線Lがあるか否かを判断する(ステップS202)。ここで、縦罫線Lがあると判定すれば、処理可能画像であるとして(ステップS206)、本サブルーチンを終了する。図6(a)に示す正立画像がこの例にあたる。   Next, it is determined whether or not there is a vertical ruled line L in the region P (step S202). If it is determined that there is a vertical ruled line L, it is determined that the image is a processable image (step S206), and this subroutine is terminated. The upright image shown in FIG. 6A corresponds to this example.

一方、ステップS202において縦罫線Lがないと判定すれば、入力された運転免許証画像を180度回転させる(ステップS203)。180度回転させて画像変更された後の運転免許証画像は画像メモリ12に保存される。領域P内に縦罫線Lがない図6(b)に示す倒立画像及び図6(c)に示す裏面画像がこの例にあたり、倒立画像を180度回転させると正立画像になり、画像メモリ13a内の画像データは図6(b)の運転免許証画像から図6(a)の運転免許証画像に書き換えられる。図6(c)に示す裏面画像の場合も同様に、この裏面画像を180度回転した画像(図示せず)が画像メモリ13aに書き換えられる。   On the other hand, if it is determined in step S202 that there is no vertical ruled line L, the input driving license image is rotated 180 degrees (step S203). The driver's license image after the image is changed by rotating 180 degrees is stored in the image memory 12. In this example, the inverted image shown in FIG. 6B and the back image shown in FIG. 6C in which the vertical ruled line L does not exist in the region P correspond to this example, and when the inverted image is rotated 180 degrees, it becomes an upright image, and the image memory 13a The image data inside is rewritten from the driver's license image of FIG. 6 (b) to the driver's license image of FIG. 6 (a). Similarly, in the case of the back image shown in FIG. 6C, an image (not shown) obtained by rotating the back image by 180 degrees is rewritten in the image memory 13a.

次いで、書き換えられた画像について、ステップS201と同様の縦罫線有無判定処理を行い(ステップS204)、領域P内の縦罫線Lの有無を判断する(ステップS205)。ここで、縦罫線Lがあると判定すれば、処理可能画像であるとして(ステップS206)、本サブルーチンを終了する。図6(b)に示す倒立画像がこの例にあたる。   Next, a vertical ruled line presence / absence determination process similar to step S201 is performed on the rewritten image (step S204), and the presence or absence of the vertical ruled line L in the region P is determined (step S205). If it is determined that there is a vertical ruled line L, it is determined that the image is a processable image (step S206), and this subroutine is terminated. The inverted image shown in FIG. 6B corresponds to this example.

一方、ステップS205において縦罫線Lがないと判定すれば、処理不可能画像であると判定して(ステップS207)、本サブルーチンを終了する。図6(c)に示す裏面画像(裏面画像を180度回転した画像)がこの例にあたる。   On the other hand, if it is determined in step S205 that there is no vertical ruled line L, it is determined that the image cannot be processed (step S207), and this subroutine is terminated. A back side image (an image obtained by rotating the back side image by 180 degrees) shown in FIG. 6C corresponds to this example.

なお、ステップS203においては、入力された運転免許証画像を180度回転させるとしたが、画像を180度回転させるかわりに、領域Pを点対称の位置に移動し、ステップS204において移動させた領域P内に縦罫線Lがあるかどうかを判定してもよい。   In step S203, the input driver's license image is rotated 180 degrees. Instead of rotating the image 180 degrees, the area P is moved to a point-symmetrical position, and the area moved in step S204 is moved. It may be determined whether or not there is a vertical ruled line L in P.

[縦罫線有無判定処理]
図9を用いて、縦罫線有無判定処理の処理内容について説明する。
[Vertical ruled line presence / absence judgment processing]
The content of the vertical ruled line presence / absence determination process will be described with reference to FIG.

まず、図9に示すステップS301の処理の前に、この縦罫線有無判定処理では、領域P内の縦罫線Lを検出するために領域Pの領域設定を行う。この領域設定は、図6(b)に示す運転免許証の倒立画像、図6(c)に示す運転免許証の裏面画像についても同様であり、入力された運転免許証画像に対して読取方向の左端Wを基準として行う。さらに、本実施の形態では、領域Pを設定するための前段階として領域Oを設定する。具体的には、図6(a)に示す運転免許証2の正立画像によれば、運転免許証画像の左端Wを検出した後に、この左端Wを基準として予め設定された所定の領域O内の画素数を縦方向に走査した射影を算出して左外枠線Kの検出を行う。   First, in the vertical ruled line presence / absence determination process, the area P is set to detect the vertical ruled line L in the area P before the process of step S301 shown in FIG. This region setting is the same for the inverted image of the driver's license shown in FIG. 6B and the back image of the driver's license shown in FIG. 6C, and the reading direction with respect to the inputted driver's license image. The left end W of the reference is used as a reference. Further, in the present embodiment, the region O is set as a previous stage for setting the region P. Specifically, according to the erect image of the driver's license 2 shown in FIG. 6A, after detecting the left end W of the driver's license image, a predetermined region O set in advance with the left end W as a reference. A projection obtained by scanning the number of pixels in the vertical direction is calculated, and the left outer frame line K is detected.

この左外枠線Kを基準として所定の領域Pを設定する。左外枠線Kの検出は、図5を用いて説明する縦罫線Lの検出方法と同様であるので、ここでの詳細な説明は省略する。   A predetermined region P is set with the left outer frame line K as a reference. The detection of the left outer frame line K is the same as the detection method of the vertical ruled line L described with reference to FIG. 5, and thus detailed description thereof is omitted here.

なお、縦罫線Lよりも左外枠線Kが長いことから、領域Oの縦方向の長さは領域Pよりも長く設定し、図5に示す射影から精度よく線分を検出するためにも、領域Oや領域Pの範囲内に運転免許証2に印刷された文字が入らないように設定するのが好ましい。例えば、左外枠線Kや縦罫線Lの幅を基準として、その幅のn倍を領域の幅とするなど、種々の設定が可能である。このように、領域Pは、縦罫線の一部が存在し、かつ、点対称の位置に縦罫線が存在しないように設定する。   Since the left outer frame line K is longer than the vertical ruled line L, the vertical length of the region O is set longer than that of the region P, and the line segment can be accurately detected from the projection shown in FIG. It is preferable that the characters printed on the driver's license 2 do not enter the area O or the area P. For example, various settings can be made such that the width of the left outer frame line K or the vertical ruled line L is used as a reference and n times the width is used as the width of the region. As described above, the region P is set so that a part of the vertical ruled line exists and no vertical ruled line exists at a point-symmetrical position.

上述したとおり、領域設定が完了したか否かを判断し、領域設定が完了している場合はステップS202の処理に進むが、領域設定が完了していない場合、例えば、入力されたものが運転免許証画像ではない場合には、処理を終了する。ステップS201において領域設定が完了したと判断すると、画像方向判定処理を行う(ステップS102)。この処理内容については、後述する。   As described above, it is determined whether or not the region setting has been completed, and if the region setting has been completed, the process proceeds to step S202. If the region setting has not been completed, for example, the input is operated. If it is not a license image, the process is terminated. If it is determined in step S201 that the region setting has been completed, an image direction determination process is performed (step S102). Details of this processing will be described later.

図9に示すフローチャートに戻り、縦罫線Lの幅の10倍を領域Pの幅として、縦方向に10画素分分割して走査する場合を例に挙げると、まず、領域Pの左端側(Xs=縦罫線のX座標−5)として横方向の位置XをX=Xsとしてセットする(ステップS301)。   Returning to the flowchart shown in FIG. 9, taking as an example a case where scanning is performed by dividing 10 pixels in the vertical direction with 10 times the width of the vertical ruled line L as the width of the region P, first, the left end side (Xs = X position of vertical ruled line-5) The horizontal position X is set as X = Xs (step S301).

次いで、領域Pの縦方向の位置はy=Ys〜Yeと固定しておき、X上の画素pを加算して射影P(x)=Σp(x,y)を算出する(ステップS302)。   Next, the vertical position of the region P is fixed as y = Ys to Ye, and the pixel P on X is added to calculate the projection P (x) = Σp (x, y) (step S302).

次いで、領域Pの右端側(Xe=縦罫線のX座標+5)まで走査したか否かを判断し(ステップS303)、Xeに満たないと判定した場合は、1画素分x座標を右にシフトして(ステップS304)、ステップS302及びステップS303の処理を繰り返す。   Next, it is determined whether or not scanning has been performed up to the right end side of the region P (Xe = vertical ruled line X coordinate + 5) (step S303), and if it is determined that Xe is not satisfied, the x coordinate of one pixel is shifted to the right. Then (step S304), the processing of step S302 and step S303 is repeated.

ステップS303において領域Pの右端側(Xe=縦罫線のX座標+5)まで走査したと判定すると、領域P内の画素数をy=Ys〜Yeと固定して加算した射影(図5参照)について、その最小値Min(P(x))が所定の閾値以下であるかどうかを判断する(ステップS305)。   If it is determined in step S303 that scanning has been performed up to the right end side of the region P (Xe = X coordinate of the vertical ruled line + 5), the projection in which the number of pixels in the region P is fixed as y = Ys to Ye (see FIG. 5) is added. Then, it is determined whether or not the minimum value Min (P (x)) is equal to or less than a predetermined threshold (step S305).

具体的には、画像方向判定部13bにおける領域P内の縦罫線Lの検出は、図5に示すように、領域P内の画素数を縦方向に走査した射影を算出して行う。すなわち、射影が徐々に下がる区間X−X、ほぼ一定の区間X−X、徐々に上がる区間X−Xがある場合は、X−Xの区間(又はX−Xの区間)に縦罫線Lが存在する。 Specifically, the detection of the vertical ruled line L in the region P in the image direction determination unit 13b is performed by calculating a projection obtained by scanning the number of pixels in the region P in the vertical direction, as shown in FIG. That is, if there is a section X a -X b where the projection gradually decreases, a substantially constant section X b -X c , and a section X c -X d where the projection gradually increases, the section X a -X d (or X b- A vertical ruled line L exists in the section ( Xc ).

ステップS305において、最小値が閾値以下と判定すると縦罫線Lあり(ステップS306)、最小値が閾値以上と判定すると縦罫線Lなし(ステップS307)として、本サブルーチンを終了する。   If it is determined in step S305 that the minimum value is equal to or less than the threshold value, the vertical ruled line L is present (step S306), and if the minimum value is determined to be equal to or greater than the threshold value, the vertical ruled line L is not present (step S307).

なお、上述したとおり、領域Pの領域設定の処理は、左端Wの検出→領域Oの設定→左外枠線Kの検出→領域Pの設定という処理内容を辿っているが、領域Pの設定にあたり、例えば、左端Wの検出→領域Pの設定という処理内容でもよい。   As described above, the area setting process for the area P follows the processing contents of the detection of the left end W → the setting of the area O → the detection of the left outer frame line K → the setting of the area P. In this case, for example, the processing content of detection of the left end W → setting of the region P may be used.

[他の運転免許証読取方法]
図10に示す運転免許証画像を用いて、本発明の実施の形態に係る他の運転免許証読取方法について説明する。図10示す運転免許証画像は図6に示すものと異なり、表面は「本籍」の記載欄がなく外枠が2つあること(図10(a)、(b))、裏面は外枠がないことである(図10(c))。
[Other driver's license reading methods]
Another driving license reading method according to the embodiment of the present invention will be described using the driving license image shown in FIG. The driver's license image shown in FIG. 10 is different from the one shown in FIG. 6, the front side has no “Personal Registration” entry column and has two outer frames (FIGS. 10A and 10B), and the back side has an outer frame. (FIG. 10 (c)).

本発明の実施の形態に係る他の運転免許証読取方法においても図7の各ステップの処理を実行することにより、運転免許証の読み取りを行うことができる。ここで、ステップS102において、正立画像及び倒立画像の場合は領域O及びPを設定することができるが(図10(a)、(b))、背面画像の場合は左外枠線がないため領域Pを設定することができない(図10(c))。このため、処理不可能な裏面画像であるとか、例えば、入力されたものが運転免許証画像ではないとして、領域設定が完了していないと判断し、処理を終了する。   In another method of reading a driver's license according to the embodiment of the present invention, the driver's license can be read by executing the processing of each step of FIG. Here, in step S102, the regions O and P can be set for an upright image and an inverted image (FIGS. 10A and 10B), but there is no left outer frame line for a back image. Therefore, the area P cannot be set (FIG. 10C). For this reason, it is determined that the region setting has not been completed, for example, because the back side image cannot be processed or the input image is not a driver's license image, and the processing is terminated.

また、本発明の実施の形態に係る他の運転免許証読取方法においても図8の各ステップの処理を実行することにより、画像方向の判定をすることができる。この図8に示す画像方向判定処理の対象となるのは、領域設定が完了した正立画像及び倒立画像であることから、ステップS205でNOと判定されてステップS207で処理不可能画像とされることはない。また、本発明の実施の形態に係る他の運転免許証読取方法においても図9の各ステップの処理を実行することにより、縦罫線Lの有無を判定することができる。   Also, in another method of reading a driver's license according to the embodiment of the present invention, the image direction can be determined by executing the processing of each step of FIG. Since the image orientation determination process shown in FIG. 8 is an upright image and an inverted image for which region setting has been completed, it is determined NO in step S205 and is an unprocessable image in step S207. There is nothing. In addition, in the other driver license reading method according to the embodiment of the present invention, the presence or absence of the vertical ruled line L can be determined by executing the processing of each step of FIG.

[本実施形態の効果]
本発明の実施形態に係る運転免許証読取装置及び運転免許証読取方法は、運転免許証画像の下左側の領域P内の縦方向の罫線の有無を検出することにより、運転免許証画像が正立画像であるかどうかを短時間で精度よく判定することができる。また、運転免許証画像の領域Pの設定を入力された運転免許証画像の左側の一部領域内の画素値から行っているため、運転免許証画像全体を処理するよりも画像処理時間の短縮を図りつつ、精度よく正立画像であるかどうかを判断することができる。また、正立画像でない場合は、画像を180度回転させることで倒立画像を正立画像にすることができ、既に設定された領域P内において再度画素値を算出することとしている。
[Effect of this embodiment]
The driver's license reading device and the driver's license reading method according to the embodiment of the present invention detect whether the driver's license image is correct by detecting the presence or absence of a vertical ruled line in the region P on the lower left side of the driver's license image. Whether the image is a standing image can be accurately determined in a short time. Further, since the setting of the region P of the driver's license image is performed from the pixel values in the partial region on the left side of the input driver's license image, the image processing time is shortened compared to processing the entire driver's license image. It is possible to determine whether the image is an erect image with high accuracy. If the image is not an erect image, the inverted image can be made an erect image by rotating the image 180 degrees, and the pixel value is calculated again in the region P that has already been set.

本発明は、運転免許証の罫線構造等の幾何学的特長を基にして運転免許証画像の下左側領域内の縦方向の罫線の有無を検出することにより、運転免許証画像が正立画像であるかどうかを短時間で精度よく判定することができる運転免許証読取装置及び運転免許証読取方法として有用である。   The present invention detects the presence or absence of a vertical ruled line in the lower left region of the driver's license image based on geometric features such as the ruled line structure of the driver's license, so that the driver's license image is an upright image. It is useful as a driver's license reading apparatus and a driver's license reading method that can accurately determine whether or not

1 運転免許証読取装置
2 運転免許証
11 撮像素子
13 データ処理部
DESCRIPTION OF SYMBOLS 1 Driver's license reader 2 Driver's license 11 Image sensor 13 Data processing part

Claims (4)

運転免許証画像を多階調で入力する画像入力部と、
前記画像入力部で入力された運転免許証画像が正立画像であるかどうかを判定する画像方向判定部と、
を有し、運転免許証画像を読み取って画像情報を出力する運転免許証読取装置であって、
前記画像方向判定部は、運転免許証画像の所定領域内に罫線を検出した場合に、入力された運転免許証画像が正立画像であると判定することを特徴とする運転免許証読取装置。
An image input unit for inputting a driver's license image in multiple gradations;
An image direction determination unit that determines whether the driver's license image input by the image input unit is an erect image;
A driver's license reading device that reads a driver's license image and outputs image information,
The driver's license reading apparatus, wherein the image direction determining unit determines that the input driver's license image is an erect image when a ruled line is detected in a predetermined area of the driver's license image.
前記画像方向判定部は、前記所定領域内の画素数を縦方向に走査した射影を算出して判定することを特徴とする請求項1記載の運転免許証読取装置。   2. The driving license reading apparatus according to claim 1, wherein the image direction determination unit calculates and determines a projection obtained by scanning the number of pixels in the predetermined area in the vertical direction. 前記所定領域は、運転免許証画像の外枠線を基準とした所定の位置に設定されることを特徴とする請求項1又は2記載の運転免許証読取装置。   3. The driving license reading apparatus according to claim 1, wherein the predetermined area is set at a predetermined position based on an outer frame line of the driving license image. 運転免許証画像を読み取って画像情報を出力する運転免許証読取方法であって、
運転免許証画像を多階調で入力するステップと、
運転免許証画像の所定領域内を走査して罫線を検出するステップと、
運転免許証画像の所定領域内に罫線を検出した場合に、入力された運転免許証画像が正立画像であると判定するステップと、
を有することを特徴とする運転免許証読取方法。
A driver's license reading method for reading a driver's license image and outputting image information,
Inputting the driver's license image in multiple gradations;
Scanning a predetermined area of the driver's license image to detect ruled lines;
A step of determining that the input driver's license image is an erect image when a ruled line is detected within a predetermined area of the driver's license image;
A method for reading a driver's license, comprising:
JP2012218981A 2012-09-30 2012-09-30 Driver's license reading device and driver's license reading method Expired - Fee Related JP6171165B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012218981A JP6171165B2 (en) 2012-09-30 2012-09-30 Driver's license reading device and driver's license reading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012218981A JP6171165B2 (en) 2012-09-30 2012-09-30 Driver's license reading device and driver's license reading method

Publications (2)

Publication Number Publication Date
JP2014071784A true JP2014071784A (en) 2014-04-21
JP6171165B2 JP6171165B2 (en) 2017-08-02

Family

ID=50746893

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012218981A Expired - Fee Related JP6171165B2 (en) 2012-09-30 2012-09-30 Driver's license reading device and driver's license reading method

Country Status (1)

Country Link
JP (1) JP6171165B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11463598B2 (en) 2020-03-06 2022-10-04 Brother Kogyo Kabushiki Kaisha Reading device reading original and estimating corner shape thereof
US11722615B2 (en) 2021-04-28 2023-08-08 Pfu Limited Image processing including adjusting image orientation

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0765118A (en) * 1993-08-24 1995-03-10 Matsushita Electric Ind Co Ltd Device and method for driver's license image processing
JPH0793348A (en) * 1993-09-21 1995-04-07 Toshiba Corp Image information processor
JPH07152857A (en) * 1993-08-27 1995-06-16 Matsushita Electric Ind Co Ltd Driver's license recognition device
JP2000032261A (en) * 1998-07-15 2000-01-28 Toshiba Corp Image reader and shading correction method for the image reader
JP2002366895A (en) * 2001-05-30 2002-12-20 Internatl Business Mach Corp <Ibm> Method and system for image processing, and program
JP2006184146A (en) * 2004-12-28 2006-07-13 Konica Minolta Photo Imaging Inc Card surface image processing system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0765118A (en) * 1993-08-24 1995-03-10 Matsushita Electric Ind Co Ltd Device and method for driver's license image processing
JPH07152857A (en) * 1993-08-27 1995-06-16 Matsushita Electric Ind Co Ltd Driver's license recognition device
JPH0793348A (en) * 1993-09-21 1995-04-07 Toshiba Corp Image information processor
JP2000032261A (en) * 1998-07-15 2000-01-28 Toshiba Corp Image reader and shading correction method for the image reader
JP2002366895A (en) * 2001-05-30 2002-12-20 Internatl Business Mach Corp <Ibm> Method and system for image processing, and program
JP2006184146A (en) * 2004-12-28 2006-07-13 Konica Minolta Photo Imaging Inc Card surface image processing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11463598B2 (en) 2020-03-06 2022-10-04 Brother Kogyo Kabushiki Kaisha Reading device reading original and estimating corner shape thereof
US11722615B2 (en) 2021-04-28 2023-08-08 Pfu Limited Image processing including adjusting image orientation

Also Published As

Publication number Publication date
JP6171165B2 (en) 2017-08-02

Similar Documents

Publication Publication Date Title
US10242434B1 (en) Compensating for geometric distortion of images in constrained processing environments
JP5826081B2 (en) Image processing apparatus, character recognition method, and computer program
US8559748B2 (en) Edge detection
JP6688277B2 (en) Program, learning processing method, learning model, data structure, learning device, and object recognition device
JP2005072888A (en) Image projection method and image projection device
US9959475B2 (en) Table data recovering in case of image distortion
US8805072B2 (en) Binarized threshold value determination device, method thereof, and image processing device
JP4574503B2 (en) Image processing apparatus, image processing method, and program
CN101697228A (en) Method for processing text images
US11875485B2 (en) Compensating for geometric distortion of images in constrained processing environments
JP2019109624A (en) Information processing apparatus, program, and information processing method
CN103973931A (en) Image processing apparatus and image processing method
CN111553251A (en) Certificate four-corner incomplete detection method, device, equipment and storage medium
US11462052B2 (en) Image processing device, image processing method, and recording medium
JP6171165B2 (en) Driver&#39;s license reading device and driver&#39;s license reading method
JP5772675B2 (en) Gray image edge extraction method, edge extraction device, and gray image edge extraction program
US9639763B2 (en) Image target detecting apparatus and method
CN107958202B (en) Human body detection apparatus, control method of human body detection apparatus, and storage medium
CN114998347B (en) Semiconductor panel corner positioning method and device
CN110008796B (en) Biological characteristic image processing method and electronic device thereof
JP6643301B2 (en) Defect inspection device and defect inspection method
JP2011159317A (en) Device and method for reading two-dimensional code
JP2009284190A (en) Image reading apparatus and image reading system
JP2004128643A (en) Method for compensating tilt of image
JP2014021510A (en) Information processor and information processing method, and, program

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20150609

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20150622

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20150622

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150806

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160826

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20161004

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161205

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170605

R150 Certificate of patent or registration of utility model

Ref document number: 6171165

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees