JP2010086324A - Binarization processing apparatus, information processing apparatus, binarization processing method, and binarization processing program - Google Patents

Binarization processing apparatus, information processing apparatus, binarization processing method, and binarization processing program Download PDF

Info

Publication number
JP2010086324A
JP2010086324A JP2008255313A JP2008255313A JP2010086324A JP 2010086324 A JP2010086324 A JP 2010086324A JP 2008255313 A JP2008255313 A JP 2008255313A JP 2008255313 A JP2008255313 A JP 2008255313A JP 2010086324 A JP2010086324 A JP 2010086324A
Authority
JP
Japan
Prior art keywords
binarization
threshold value
threshold
distribution
value
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
JP2008255313A
Other languages
Japanese (ja)
Other versions
JP5125961B2 (en
Inventor
Nobuyasu Yamaguchi
伸康 山口
Hirotaka Chiba
広隆 千葉
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2008255313A priority Critical patent/JP5125961B2/en
Publication of JP2010086324A publication Critical patent/JP2010086324A/en
Application granted granted Critical
Publication of JP5125961B2 publication Critical patent/JP5125961B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To improve the binarization accuracy, by taking into account the degradation of the density distribution characteristics that depend on the location on the image of a barcode. <P>SOLUTION: An image density distribution detecting part 11 detects the density distribution of a character area separated from a barcode. A basic threshold determining part 13 and an auxiliary threshold determining part 14 obtain different thresholds from the density distribution obtained. A distribution characteristic determining part 12 determines the characteristics of the density distribution; determines which is to be applied as a target character area, the basic threshold or the auxiliary threshold; and makes a binarization threshold selecting part 15 select it. A binarization part 16 uses the threshold selected by the binarized threshold selecting part 15 and performs binarization. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、バーコード画像を二値化する二値化処理装置、情報処理装置、二値化処理方法および二値化処理プログラムに関し、特に汎用のカメラで撮影した画像から二値化パターンを作成する二値化処理装置、情報処理装置、二値化処理方法および二値化処理プログラムに関する。   The present invention relates to a binarization processing apparatus, an information processing apparatus, a binarization processing method, and a binarization processing program for binarizing a barcode image, and in particular, creates a binarization pattern from an image captured by a general-purpose camera. The present invention relates to a binarization processing device, an information processing device, a binarization processing method, and a binarization processing program.

従来から利用されているバーコードは、複数本数の黒バーと白バーを並べて構成されている。この複数本数のバーのうち、特定本数の黒バーと白バーの組み合わせが特定のデータを表している。バーコードが文字情報を示している場合、この特定本数が一つの文字(キャラクタ)を示す領域、すなわちキャラクタ領域であり、バーコード全体はキャラクタ領域が複数並んだ形を取る。   Conventionally used barcodes are composed of a plurality of black bars and white bars arranged side by side. Among the plurality of bars, a combination of a specific number of black bars and white bars represents specific data. When the bar code indicates character information, this specific number is an area indicating one character (character), that is, a character area, and the entire bar code takes a form in which a plurality of character areas are arranged.

デジタルカメラやスキャナで取得したコード画像からバーコードを認識する場合、バーコードの長辺方向に沿った1ライン分のデータを切出して認識処理を行う。この認識において、デジタルカメラのような汎用の光学機器を用いると、光学歪みによってバーコード画像に歪みが発生する場合がある。また光学機器の読み取り角度がバーコードの平面に対して傾いていれば、読み取ったバーコード画像に歪みが生ずる。   When a barcode is recognized from a code image acquired by a digital camera or a scanner, data for one line along the long side direction of the barcode is cut out and recognition processing is performed. In this recognition, when a general-purpose optical device such as a digital camera is used, distortion may occur in the barcode image due to optical distortion. If the reading angle of the optical device is inclined with respect to the plane of the barcode, the read barcode image is distorted.

これらの歪みによってバーコード画像上でバーの長さ(幅)が場所によって異なると、単一の幅を基準としてバーコード全体を認識する処理では正確な認識処理ができない。そこで従来から、バーコード画像をキャラクタ単位の小領域に分割し、キャラクタ毎にバー幅の基準を設定して認識処理を行うことで、撮影画像上の位置によるバー幅の歪みの影響を小さく抑え、認識精度を向上していた。   If the length (width) of the bar on the barcode image varies depending on the location due to these distortions, accurate recognition processing cannot be performed in the processing for recognizing the entire barcode based on a single width. Therefore, conventionally, the barcode image is divided into small areas for each character, and the recognition process is performed by setting the bar width standard for each character, thereby suppressing the influence of the distortion of the bar width due to the position on the captured image. The recognition accuracy was improved.

特開2004−185058号公報JP 2004-185058 A

ところで、デジタルカメラのような汎用の光学機器を用いてバーコードを読み取る場合には、上述したバー幅の変化の他に、撮影画像上の位置による解像度の劣化や輝度の低下が発生する場合がある。   By the way, when a barcode is read using a general-purpose optical device such as a digital camera, in addition to the above-described change in the bar width, there may be a case where degradation in resolution or luminance occurs due to the position on the captured image. is there.

この画像上の位置に依存する解像度や輝度の劣化は、一般に撮影画像中心部から周辺部に行くに従って影響が大きくなる。従って、特にコード全体の長さが長く撮影画像の周辺部にまでかかってしまうコード画像では,撮影画像中心部と周辺部の画像の画像特性が大きく異なったものになる。同様の現象は、光学機器の読み取り角度がバーコードの平面に対して傾いているような場合にも発生する。さらに、コードの一部に影がかかって暗くなるような現象が発生した場合にも同様に、解像度や輝度の特性劣化が発生する。   The degradation of resolution and luminance depending on the position on the image generally has an effect as it goes from the center of the captured image to the periphery. Therefore, particularly in a code image in which the entire length of the code extends to the peripheral part of the photographed image, the image characteristics of the photographed image central part and the peripheral part image are greatly different. The same phenomenon occurs when the reading angle of the optical device is inclined with respect to the plane of the barcode. Further, when a phenomenon occurs in which a part of the code is shaded and darkens, the resolution and luminance characteristics deteriorate in the same manner.

このような解像度や輝度の変化が生じると、二値化閾値、すなわち、画像の濃度分布のどの範囲を黒バーとし、どの範囲を白バーとするかを切り分ける閾値の適切な値も変化する。しかしながら、従来の技術では、コード画像を二値化する処理に使用する閾値をコード全体の画像特性から求めるか、もしくはキャラクタ毎の画像特性に応じて決定していた。   When such a change in resolution or luminance occurs, an appropriate value of the binarization threshold, that is, a threshold for separating which range of the density distribution of the image is a black bar and which is a white bar also changes. However, in the conventional technique, the threshold value used for the process of binarizing the code image is obtained from the image characteristics of the entire code or determined according to the image characteristics for each character.

前者の場合、特性の比較的良い撮影画像中心部の特性に合わせて決定すると周辺部の劣化した特性に適合せず、二値化の精度が劣化し、結果として認識率が低下するという問題が発生していた。後者の場合でも、閾値の決定方法がコード画像上の位置によらず同一であるため、場所によっては画像特性と閾値の決定方法の整合性が悪く、認識率が低下するという問題が発生していた。   In the former case, if it is determined according to the characteristics of the center of the captured image, which has relatively good characteristics, it does not conform to the deteriorated characteristics of the peripheral part, the binarization accuracy deteriorates, and as a result, the recognition rate decreases. It has occurred. Even in the latter case, since the threshold determination method is the same regardless of the position on the code image, there is a problem in that the consistency between the image characteristics and the threshold determination method is poor depending on the location, and the recognition rate decreases. It was.

すなわち、従来の技術では、バーコードの画像上の位置に依存したバー幅の劣化については考慮されていたが、バーコードの画像上の位置に依存した濃度分布の変化が考慮されていないために二値化を精度よく行なうことができず、ひいてはコード認識率が低下する場合があるという問題点があった。   That is, in the conventional technique, the deterioration of the bar width depending on the position of the barcode on the image is considered, but the change in the density distribution depending on the position of the barcode on the image is not considered. There was a problem that binarization could not be performed with accuracy, and as a result, the code recognition rate might decrease.

特に近年、携帯電話端末やPDA(Personal Digital Assistant)などによるバーコード認識の利用が増加しているが、携帯電話端末やPDAではバーコード認識用に特化したカメラユニットを設けるのではなく、汎用のカメラでバーコードを撮影して認識を行なうことが求められているので、コード画像位置依存性の濃度分布特性の劣化が顕著であり、この問題に対応することが重要な課題であった。   In recent years, the use of barcode recognition by mobile phone terminals and PDAs (Personal Digital Assistants) has been increasing in recent years. However, mobile phone terminals and PDAs do not have camera units specialized for barcode recognition, Therefore, it is required to take a barcode with a camera and perform recognition. Therefore, the deterioration of the density distribution characteristic depending on the position of the code image is remarkable, and it is an important problem to cope with this problem.

本発明は、上述した従来技術における問題点を解消し、課題を解決するためになされたものであり、バーコードの画像上の位置に依存した濃度分布特性の劣化を考慮し、二値化精度を向上した二値化処理装置、情報処理装置、二値化処理方法および二値化処理プログラムを提供することを目的とする。   The present invention has been made in order to solve the above-described problems in the prior art and to solve the problems. In consideration of deterioration of density distribution characteristics depending on the position of the barcode on the image, the binarization accuracy is improved. An object of the present invention is to provide a binarization processing device, an information processing device, a binarization processing method, and a binarization processing program.

上述した課題を解決し、目的を達成するために、本装置、方法およびプログラムは、バーコード画像1ライン分の画像データを分割して作成した分割領域について、分割領域内に含まれる画像の濃度分布の特徴を検出し、分割領域における濃度の最大値と最小値との間が、予め規定された第1の比率となる基本閾値と、予め規定された第2の比率となる補助閾値とを求め、分割領域の濃度分布が予め規定された分布特性に基づいて基本閾値と補助閾値とのいずれかを当該分割領域の二値化に使用する閾値として選択する。   In order to solve the above-described problems and achieve the object, the present apparatus, method, and program provide the density of an image included in a divided area for a divided area created by dividing image data for one line of a barcode image. A feature of the distribution is detected, and a basic threshold value that is a first ratio defined in advance between a maximum value and a minimum value of density in the divided region, and an auxiliary threshold value that is a second ratio defined in advance. Then, based on the distribution characteristics in which the density distribution of the divided area is defined in advance, one of the basic threshold value and the auxiliary threshold value is selected as a threshold value used for binarization of the divided area.

本装置、方法およびプログラムによれば、バーコードの画像上の位置に依存した濃度分布特性の劣化を考慮し、二値化精度を向上した二値化処理装置、情報処理装置、二値化処理方法および二値化処理プログラムを得ることができるという効果を奏する。   According to the present apparatus, method, and program, a binarization processing apparatus, an information processing apparatus, and a binarization process with improved binarization accuracy in consideration of deterioration of density distribution characteristics depending on the position of the barcode on the image The method and the binarization processing program can be obtained.

以下に、本発明にかかる二値化処理装置、情報処理装置、二値化処理方法および二値化処理プログラムの実施例を図面に基づいて詳細に説明する。   Hereinafter, embodiments of a binarization processing apparatus, an information processing apparatus, a binarization processing method, and a binarization processing program according to the present invention will be described in detail with reference to the drawings.

図1は、本実施例にかかる二値化処理装置を有する情報処理装置の概要構成を示す概要構成図である。図1に示した情報処理装置は、カメラユニット30とコード画像処理装置20を有する。そして、コード画像処理装置20は、さらにライン画像抽出部21、キャラクタ領域分割部22、処理対象キャラクタ選択部23、二値化処理装置10、コード認識処理部24およびメモリ25を有する。   FIG. 1 is a schematic configuration diagram illustrating a schematic configuration of an information processing apparatus having a binarization processing apparatus according to the present embodiment. The information processing apparatus illustrated in FIG. 1 includes a camera unit 30 and a code image processing apparatus 20. The code image processing device 20 further includes a line image extraction unit 21, a character region division unit 22, a processing target character selection unit 23, a binarization processing device 10, a code recognition processing unit 24, and a memory 25.

情報処理装置は、例えば携帯電話端末やPDAであり、カメラユニット30は、バーコード以外の撮影、たとえば写真撮影や動画撮影などと共用される可能性がある汎用の光学機器である。   The information processing apparatus is, for example, a mobile phone terminal or a PDA, and the camera unit 30 is a general-purpose optical device that may be shared with photography other than barcodes, for example, photography or video photography.

コード画像処理装置20は、カメラユニット30が撮影したバーコードを認識する処理を行なう。図2に、コード画像処理装置20が処理するバーコードの具体例を示す。バーコードは、異なる太さや間隔をもつ濃淡2色の並行線の組合せで情報を表現する画像である。このバーコードには、図2に示したようにJANコード、NW7コード、code39、code128などの種類があり、コードの種類毎に白バーと黒バーの比率、コードとキャラクタの対応関係などが定められている。   The code image processing apparatus 20 performs processing for recognizing a barcode taken by the camera unit 30. FIG. 2 shows a specific example of a barcode processed by the code image processing apparatus 20. A barcode is an image that expresses information with a combination of two parallel lines of light and shade with different thicknesses and intervals. As shown in FIG. 2, there are various types of bar codes such as JAN code, NW7 code, code 39, and code 128. The ratio of white bar to black bar, the correspondence between code and character, etc. are determined for each type of code. It has been.

ライン画像抽出部21は、バーコードを撮影した画像であるバーコード画像データを走査して1ライン分の画像データを抽出する処理を行なう。   The line image extraction unit 21 performs processing for scanning the barcode image data, which is an image obtained by photographing the barcode, and extracting image data for one line.

キャラクタ領域分割部22は、1ラインの抽出画像からキャラクタを構成するパターン毎に領域を分割する処理を行なう。この分割処理によって、一つの文字(キャラクタ)を示す領域、すなわちキャラクタ領域を分割領域として得ることができる。   The character area dividing unit 22 performs a process of dividing the area for each pattern constituting the character from the extracted image of one line. By this division processing, an area indicating one character (character), that is, a character area can be obtained as a divided area.

処理対象領域選択部23は、分割して得られた複数のキャラクタ領域(分割領域)から認識処理の対象とする領域を選択する処理を行なう。   The processing target area selection unit 23 performs a process of selecting a target area for recognition processing from a plurality of character areas (divided areas) obtained by division.

二値化処理装置10は、処理対象領域選択部23が選択した領域のライン画像データを二値化して二値化パターンを作成する。   The binarization processing device 10 binarizes the line image data of the region selected by the processing target region selection unit 23 to create a binarization pattern.

そして、コード認識処理部24は、二値化パターンに対してコード認識を行ない、二値化パターンを文字情報に変換する。メモリ25は、コード認識処理部24が使用する各種データ、具体的には、白黒−キャラクタパターン対応表25a、キャラクタ−文字情報対応表25b、認識結果情報25cを保持している。   Then, the code recognition processing unit 24 performs code recognition on the binarized pattern and converts the binarized pattern into character information. The memory 25 holds various data used by the code recognition processing unit 24, specifically, a monochrome / character pattern correspondence table 25a, a character / character information correspondence table 25b, and recognition result information 25c.

つづいて、二値化処理装置10の構成と動作について説明する。汎用の光学機器を用いてバーコードを読み取る場合には、撮影画像上の位置による解像度の劣化や輝度の低下という固有の問題が発生する。これらは一般に撮影画像中心部から周辺部に行くに従って影響が大きくなる。   Next, the configuration and operation of the binarization processing apparatus 10 will be described. When a barcode is read using a general-purpose optical device, there are inherent problems such as degradation in resolution and luminance due to position on the captured image. In general, these influences increase from the center of the captured image to the periphery.

図3は、カメラの特性による画像の品質劣化について説明する説明図である。バーコード画像B10を撮影した場合、特性の良好な画像中央部での濃度の階調値B11は、白側と黒側の双方で飽和するだけの振幅を得られる。一方、画像周辺部での濃度の階調値B12は特性が劣化しており、振幅が小さくなる。   FIG. 3 is an explanatory diagram illustrating image quality deterioration due to camera characteristics. When the barcode image B10 is photographed, an amplitude sufficient to saturate both the white side and the black side can be obtained as the density gradation value B11 at the center of the image with good characteristics. On the other hand, the density gradation value B12 in the peripheral portion of the image has deteriorated characteristics and the amplitude becomes small.

かかる特性の劣化は、特にコード全体の長さが長く撮影画像の周辺部にまでかかってしまうバーコードを撮影した際に顕著に現れる。また、同様の特性の劣化は、光学機器の読み取り角度がバーコードの平面に対して傾いているような場合にも発生する。   Such deterioration of characteristics is particularly noticeable when a barcode is photographed, which has a long overall code length and extends to the periphery of the photographed image. Similar deterioration of characteristics also occurs when the reading angle of the optical device is inclined with respect to the plane of the barcode.

さらに、図4に示したように、バーコードの一部に影がかかって暗くなるような現象が発生した場合にも、同様の特性劣化が発生する。図4は、右側が影にかかったバーコード画像B20を撮影した場合の具体例を示している。影になっていない位置の濃度の階調値B21は、白側と黒側の双方で飽和するだけの振幅を得られるが、影がかかった位置の濃度の階調値B22は全体に暗くなり、階調値は全般に低い値となる。   Further, as shown in FIG. 4, when a phenomenon occurs in which a part of the barcode is shaded and darkened, the same characteristic deterioration occurs. FIG. 4 shows a specific example when a barcode image B20 with a shadow on the right side is photographed. The tone gradation value B21 at the position where the shadow is not obtained can obtain an amplitude sufficient to saturate both the white side and the black side, but the tone gradation value B22 at the shadowed position becomes dark overall. The gradation value is generally a low value.

このように、バーコード画像上の位置に依存して濃度の階調値が変化することを考慮し、二値化処理装置10は、キャラクタ領域ごと、すなわち分割領域ごとに濃度の階調分布の特性を判別し、基本閾値と補助閾値のいずれを二値化に使用するか選択する。   In this way, considering that the gradation value of the density changes depending on the position on the barcode image, the binarization processing apparatus 10 determines the density gradation distribution for each character area, that is, for each divided area. The characteristic is discriminated, and a basic threshold value or an auxiliary threshold value is selected for binarization.

具体的な構成としては、二値化処理装置10は、図1に示したようにその内部に画像濃淡分布検出部11、分布特性判別部12、基本閾値決定部13、補助閾値決定部14、二値化閾値選択部15、二値化部16を有する。   As a specific configuration, as shown in FIG. 1, the binarization processing apparatus 10 includes an image density distribution detection unit 11, a distribution characteristic determination unit 12, a basic threshold determination unit 13, an auxiliary threshold determination unit 14, and the like. A binarization threshold selection unit 15 and a binarization unit 16 are included.

画像濃淡分布検出部11は、処理対象領域選択部23が選択した分割領域について、その中に含まれる画像の濃淡分布の特徴を検出する。そして、分布特性判別部12は、検出された濃淡分布の特性を判別する処理を行なう。   The image density distribution detection unit 11 detects the characteristics of the density distribution of the image included in the divided area selected by the processing target area selection unit 23. Then, the distribution characteristic determination unit 12 performs a process of determining the characteristics of the detected light and shade distribution.

基本閾値決定部13は、濃淡分布の検出結果に基づいて二値化の基本閾値を決定する処理を行なう。また、補助閾値決定部14は、基本閾値とはとは異なる基準及び方法で補助閾値を決定する処理を行なう。   The basic threshold value determination unit 13 performs a process of determining a binarization basic threshold value based on the detection result of the light and shade distribution. In addition, the auxiliary threshold value determination unit 14 performs processing for determining the auxiliary threshold value using a standard and method different from the basic threshold value.

二値化閾値選択部15は、分布特性判別部12による判別結果に基づいて、基本閾値と補助閾値とのいずれかを二値化に使用する閾値として選択的に採用する。そして、二値化部16は、二値化閾値選択部15が選択した閾値を用い、分割領域のうち、階調値が閾値よりも低い部分を黒、高い部分を白として二値化パターンを作成する。   The binarization threshold selection unit 15 selectively adopts either the basic threshold or the auxiliary threshold as a threshold used for binarization based on the determination result by the distribution characteristic determination unit 12. Then, the binarization unit 16 uses the threshold value selected by the binarization threshold value selection unit 15 and uses the threshold value selected from the divided regions as black and the white portion as the portion where the gradation value is lower than the threshold value. create.

図5は、基本閾値と補助閾値の適用例について説明する説明図である。基本閾値では、例えば、キャラクタ中の画像データの階調値の最大値(=白側)/最小値(=黒側)の中点をしきい値として使用する。これは,撮影画像の中央付近のようにバーコードを十分な解像度・明るさで撮影できている場合の階調分布B31に対しては適切な閾値となる。   FIG. 5 is an explanatory diagram for explaining an application example of the basic threshold value and the auxiliary threshold value. For the basic threshold value, for example, the midpoint of the maximum value (= white side) / minimum value (= black side) of the gradation value of the image data in the character is used as the threshold value. This is an appropriate threshold value for the gradation distribution B31 when the barcode is photographed with sufficient resolution and brightness as in the vicinity of the center of the photographed image.

一方、バーコードを十分な明るさで撮影できない撮影画像の周辺部や影の部分では、画像データが暗い側に寄って撮影される。特にデジタルカメラなどの場合、元々入力データの濃淡に対する出力画像の階調値が非線形となるように特性を持たせ、例えば出力階調値の範囲が0〜255の場合、階調値の中央付近(=127)より最大(=255)/最小(=0)付近の方が同じ濃度変化に対する出力画像の階調値は小さくなるように設計していることが多く、基本閾値では適切に二値化を行なうことが難しい。加えて、濃度分布が暗い側に飽和してしまうような場合には、特に基本閾値で正確に二値化を行なうことは困難であった。図5では、階調値が黒側に寄り、かつ黒側で飽和した階調分布B32に、基本閾値、すなわち階調の最大値と最小値とを1対1に分割する閾値を用いており、閾値が大きすぎて黒パターンが太くなる傾向があらわれている。   On the other hand, in the peripheral portion and shadow portion of the captured image where the barcode cannot be captured with sufficient brightness, the image data is captured closer to the dark side. In particular, in the case of a digital camera or the like, a characteristic is given so that the gradation value of the output image is originally non-linear with respect to the density of the input data. For example, when the output gradation value range is 0 to 255, the vicinity of the center of the gradation value In many cases, the gradation value of the output image with respect to the same density change is designed to be smaller in the vicinity of the maximum (= 255) / minimum (= 0) than (= 127). It is difficult to make it. In addition, when the density distribution is saturated on the dark side, it is difficult to perform binarization with the basic threshold value accurately. In FIG. 5, a basic threshold value, that is, a threshold value that divides the maximum value and the minimum value of the gradation on a one-to-one basis is used for the gradation distribution B32 in which the gradation value approaches the black side and is saturated on the black side. The threshold value is too large and the black pattern tends to become thick.

この基本閾値に対し、例えば階調の最大値と最小値とを3対7に分割する閾値を補助閾値とし、補助閾値を用いて二値化を行なえば、階調分布B32と同様に階調値が黒側に寄り、かつ黒側で飽和した階調分布B33を適切に二値化することができる。   For example, when the threshold value for dividing the maximum value and the minimum value of the gradation into 3 to 7 is used as the auxiliary threshold value and binarization is performed using the auxiliary threshold value, the gradation value is similar to the gradation distribution B32. The gradation distribution B33 whose value approaches the black side and is saturated on the black side can be appropriately binarized.

処理対象の分割領域に対して、基本閾値を用いるか補助閾値を用いるかは、分布特性判別部12が分布特性に基づいて決定する。具体的には、図6の階調分布B41に示したように、画像データの階調値の分布が、階調値の最大(=255)側と最小(=0)側のいずれか一方に飽和している場合には、補助閾値を用いる。   The distribution characteristic discriminating unit 12 determines whether to use the basic threshold value or the auxiliary threshold value for the division area to be processed based on the distribution characteristic. Specifically, as shown in the gradation distribution B41 of FIG. 6, the distribution of gradation values of the image data is on either the maximum (= 255) side or the minimum (= 0) side of the gradation values. If it is saturated, an auxiliary threshold is used.

また、図7の階調分布B42に示したように、階調値の最大値が中央値(256階調であれば127)よりも小さい場合や、最小値が中央値よりも大きい場合にも補助閾値を用いる。   Also, as shown in the gradation distribution B42 in FIG. 7, the maximum value of the gradation value is smaller than the median value (127 if 256 gradations) or the minimum value is larger than the median value. Use auxiliary threshold.

そして、図8の階調分布B43に示したように、階調値の最大値と最小値との差が予め定めた特定レベルaよりも小さい場合にも補助閾値を用いる。   As shown in the gradation distribution B43 in FIG. 8, the auxiliary threshold is also used when the difference between the maximum value and the minimum value of the gradation value is smaller than a predetermined specific level a.

補助閾値の値については、例えば固定的に階調の最大値と最小値とを3対7に分割する閾値を用いても良いが、バーコードの種別毎に定められた特徴を利用して設定しても良い。一般に用いられているバーコードの場合、キャラクタ内の黒:白バーのそれぞれの幅の合計の長さの割合は、特定の数パターンに限定されている。例えば、JANコードの場合は黒2:白5、黒3:白4、黒4:白3、黒5:白2の4パターンのうちのいずれかである。同様に、code128の場合は黒4:白7、黒6:白5、黒8:白3の3パターンのうちのいずれかになる。   As the auxiliary threshold value, for example, a fixed threshold value that divides the maximum and minimum gradation values into 3 to 7 may be used. However, the auxiliary threshold value is set by using the characteristics determined for each barcode type. You may do it. In the case of a commonly used barcode, the ratio of the total length of the widths of black and white bars in a character is limited to a specific number of patterns. For example, in the case of a JAN code, any one of four patterns of black 2: white 5, black 3: white 4, black 4: white 3, and black 5: white 2 is used. Similarly, in the case of code 128, one of the three patterns of black 4: white 7, black 6: white 5, black 8: white 3 is used.

補助閾値決定部14は、キャラクタ領域内の階調値の分布のうち、最も小さい値から順に画素値の小さい順に画素の個数を計数してゆき、全画素数に対して計数した画素の個数がバーコード種別に規定された比率になった時、その画素の階調値を補助閾値の候補とする。   The auxiliary threshold value determination unit 14 counts the number of pixels in order from the smallest pixel value in the gradation value distribution in the character area, and the number of pixels counted relative to the total number of pixels is When the ratio specified by the barcode type is reached, the gradation value of the pixel is set as an auxiliary threshold candidate.

したがって、例えば、バーコードがcode128であると想定した場合、補助閾値決定部14は、図9に示したように、階調値の分布を黒4:白7の比率に分ける補助閾値候補THa、黒6:白5の比率に分ける補助閾値候補THb、黒8:白3の比率に分けるTHcの3つの補助閾値候補を求めることとなる。   Therefore, for example, when it is assumed that the barcode is code 128, the auxiliary threshold value determination unit 14, as shown in FIG. 9, the auxiliary threshold value candidate THa that divides the distribution of gradation values into the ratio of black 4: white 7. Three auxiliary threshold candidates THb divided into the ratio of black 6: white 5 and THc divided into the ratio of black 8: white 3 are obtained.

そして、補助閾値決定部14は、この3つの補助閾値候補のうち、最も基本閾値に近い値、図9では補助閾値候補THaを補助閾値とする。または基本閾値を用いた時の黒:白バーの幅の比率に最も近くなるものを選択するようにしてもよい。   Then, the auxiliary threshold value determination unit 14 sets a value closest to the basic threshold value among the three auxiliary threshold value candidates, in FIG. 9, the auxiliary threshold value candidate THa as the auxiliary threshold value. Alternatively, the black / white bar width ratio closest to the basic threshold value may be selected.

図10は、補助閾値よりも基本閾値が有効である場合について説明する説明図である。階調分布B61のように、キャラクタ領域中の画像データの階調値が濃淡均等で最大値と最小値の差が十分大きい場合、補助閾値を用いると、適切な値を決定することができず、正確な白黒パターンを求められない可能性がある。すなわち、分布中において階調値の高い画素群と、階調値の低い画素群とが十分に離れている場合、適切な閾値は二つの画素群の間に存在する階調値であり、その階調値を有する画素は存在しない。このような分布に対して上述したように画素を計数し、所定個数目の画素の値を閾値として採用すると、その閾値は上下何れかの画素群に近すぎることとなり、基本閾値よりも不適切となる。   FIG. 10 is an explanatory diagram illustrating a case where the basic threshold is more effective than the auxiliary threshold. When the gradation value of the image data in the character area is uniform and the difference between the maximum value and the minimum value is sufficiently large as in the gradation distribution B61, an appropriate value cannot be determined using the auxiliary threshold value. There is a possibility that an accurate black-and-white pattern cannot be obtained. That is, when the pixel group having a high gradation value and the pixel group having a low gradation value are sufficiently separated from each other in the distribution, an appropriate threshold value is a gradation value existing between the two pixel groups. There is no pixel having a gradation value. If pixels are counted as described above for such a distribution and the value of a predetermined number of pixels is adopted as a threshold value, the threshold value is too close to either the upper or lower pixel group, which is inappropriate than the basic threshold value. It becomes.

特にキャラクタ領域中の画像データのデータ数が少なく、離散的な分布になっている場合にこのような現象が顕著である。このため、階調値が濃淡均等で最大値と最小値の差が十分大きい場合には、基本閾値を選択して二値化に用いることで、正確な二値化パターンを求めることが可能である。   In particular, such a phenomenon is remarkable when the number of image data in the character area is small and the distribution is discrete. For this reason, when the gradation value is uniform and the difference between the maximum value and the minimum value is sufficiently large, an accurate binarization pattern can be obtained by selecting a basic threshold and using it for binarization. is there.

これに対し、階調分布B62に示したように、階調値の最大と最小の差が小さく、中間階調の画素がある場合、基本閾値よりも補助閾値の方が適切な値となる。   On the other hand, as shown in the gradation distribution B62, when the difference between the maximum and minimum gradation values is small and there are intermediate gradation pixels, the auxiliary threshold value is more appropriate than the basic threshold value.

次に図11を参照し、コード画像処理装置20の処理動作について説明する。図11は、コード画像処理装置20の処理動作を説明するフローチャートである。カメラユニット30からバーコード画像が入力されるとまず、ライン画像抽出部21がバーコード画像を走査し、1ライン分の画像データを取り出す(S101)。   Next, the processing operation of the code image processing apparatus 20 will be described with reference to FIG. FIG. 11 is a flowchart for explaining the processing operation of the code image processing apparatus 20. When a barcode image is input from the camera unit 30, first, the line image extraction unit 21 scans the barcode image and extracts image data for one line (S101).

つぎに、キャラクタ領域分割部22が一ライン分の画像データをキャラクタ領域ごとに分割し、分割領域を出力する(S102)。処理対象領域選択部23は、分割して得られた複数の分割領域を先頭から順次処理対象として選択する(S103)。   Next, the character area dividing unit 22 divides the image data for one line for each character area, and outputs the divided area (S102). The processing target area selection unit 23 sequentially selects a plurality of divided areas obtained by the division from the top as processing targets (S103).

処理対象として選択したキャラクタ領域に対し、画像濃淡分布検出部11が画像データの階調値の頻度ヒストグラムを作成する(S104)。そして、分布特性判別部12が、階調値の頻度ヒストグラムの情報を元に、階調値の分布特性を確認する(S105)。   For the character region selected as the processing target, the image density distribution detection unit 11 creates a frequency histogram of the tone values of the image data (S104). Then, the distribution characteristic determination unit 12 confirms the distribution characteristic of the gradation value based on the information of the frequency value histogram (S105).

階調値の分布特性が基本しきい値の想定と一致する場合(S106,Yes)には、基本閾値決定部13が階調値の頻度ヒストグラムから基本閾値を算出し(S107)、二値化閾値選択部15は、基本閾値を選択する(S108)。   When the distribution characteristic of the gradation value matches the assumption of the basic threshold value (S106, Yes), the basic threshold value determination unit 13 calculates the basic threshold value from the frequency value histogram (S107) and binarizes it. The threshold selection unit 15 selects a basic threshold (S108).

一方、階調値の分布特性が基本しきい値の想定と一致しない場合(S106,No)には、補助閾値決定部14が階調値の頻度ヒストグラムから補助閾値を算出し(S109)、二値化閾値選択部15は、補助閾値を選択する(S110)。   On the other hand, if the distribution characteristic of the gradation value does not match the assumption of the basic threshold value (S106, No), the auxiliary threshold value determining unit 14 calculates the auxiliary threshold value from the frequency value histogram (S109). The value threshold selection unit 15 selects an auxiliary threshold (S110).

二値化部16は、二値化閾値選択部15が選択した閾値を基準にして,各キャラクタ領域中の画像データの白黒パターンを抽出し、二値化パターンとして出力する(S111)。   The binarization unit 16 extracts the black and white pattern of the image data in each character area based on the threshold selected by the binarization threshold selection unit 15 and outputs it as a binarization pattern (S111).

コード認識処理部24は、メモリ25内の白黒−キャラクタパターン対応表25aを参照して二値化パターンに対応するキャラクタパターンの有無を確認し、二値化パターンとキャラクタパターンの対応表の中に対応するキャラクタパターンが有る場合には、キャラクタ−文字情報対応表25bを参照してキャラクタパターンを文字情報に変換する(S112)。   The code recognition processing unit 24 refers to the black-and-white / character pattern correspondence table 25a in the memory 25 to confirm the presence / absence of a character pattern corresponding to the binarized pattern, and displays the binarized pattern / character pattern correspondence table. If there is a corresponding character pattern, the character pattern is converted into character information with reference to the character-character information correspondence table 25b (S112).

二値化パターンに対応するキャラクタパターンが存在し、文字情報に変換できた場合(S113,Yes)には、処理成功として文字情報を出力する(S114)。また、二値化パターンに対応するキャラクタパターンが存在せず、文字情報に変換できない場合(S113,No)には、処理失敗としてエラーを出力する(S115)。   If a character pattern corresponding to the binarized pattern exists and can be converted into character information (S113, Yes), the character information is output as a successful process (S114). If the character pattern corresponding to the binarized pattern does not exist and cannot be converted into character information (No at S113), an error is output as a process failure (S115).

その後、処理対象領域選択部23は、バーコードの全キャラクタ領域について処理が終了したかを確認し(S116)、未処理のキャラクタ領域が残っている場合(S116,No)には、処理対象領域の選択に戻る(S103)。そして、バーコード画像から分割した全ての領域に対して処理が終了した場合に(S116,Yes)、処理を終了する。   Thereafter, the processing target area selection unit 23 checks whether the processing has been completed for all the character areas of the barcode (S116), and if there is an unprocessed character area remaining (S116, No), the processing target area (S103). Then, when the processing is completed for all the regions divided from the barcode image (S116, Yes), the processing ends.

つぎに、キャラクタ領域分割部22による分割手法について説明する。一般に用いられているバーコードの場合,キャラクタ領域内の黒:白バーの本数は一意に決まっている。例えば、JANコードでは黒バー2本+白バー2本で構成されている。同様に,NW7コードでは黒バー4本+白バー3本、code30では黒バー5本+白バー4本、code128では黒バー3本+白バー3本で構成されている。   Next, a division method by the character area dividing unit 22 will be described. In the case of a commonly used barcode, the number of black: white bars in the character area is uniquely determined. For example, the JAN code is composed of two black bars and two white bars. Similarly, the NW7 code is composed of 4 black bars + 3 white bars, code 30 is composed of 5 black bars + 4 white bars, and code 128 is composed of 3 black bars + 3 white bars.

従来の技術では、白黒バーの境界における画像データの階調値の変化率の変曲点を元に、その数を計測してキャラクタの境界位置を求めていた。これに対してキャラクタ領域分割部22は、画像データの階調値の黒ピーク位置を求めてその数を計測し、バーコードに規定された黒バーの本数に基づいてキャラクタ領域を決定する。   In the conventional technique, the boundary position of the character is obtained by measuring the number of inflection points of the change rate of the gradation value of the image data at the boundary of the black and white bar. On the other hand, the character area dividing unit 22 obtains the black peak positions of the gradation values of the image data, measures the number thereof, and determines the character area based on the number of black bars defined in the barcode.

つぎに、バーコード画像から取得した複数のライン画像に対する処理について説明する。従来、バーコードを撮影したコード画像に対する認識を行なう場合、バーコードの長辺方向に沿った1ライン分のデータを切出し、認識処理を行っている。そして、従来は、認1ラインに含まれるすべてのキャラクタを正しく認識できた場合のみ認識成功としていた。しかし、この方法ではコード画像の一部に欠損やゴミが生じてキャラクタの1つでも認識ができなくなると認識失敗としていたため、別の場所の複数のラインを切り出して認識を繰り返す必要がある。そのため、認識処理に時間がかかることが問題となっていた。   Next, processing for a plurality of line images acquired from the barcode image will be described. Conventionally, when a code image obtained by photographing a barcode is recognized, data for one line along the long side direction of the barcode is cut out and a recognition process is performed. Conventionally, the recognition is successful only when all characters included in the recognition line can be correctly recognized. However, in this method, if a part of the code image has a defect or dust and it becomes impossible to recognize even one of the characters, the recognition has failed. Therefore, it is necessary to cut out a plurality of lines at different locations and repeat the recognition. For this reason, the problem is that the recognition process takes time.

例えば、図12に示したバーコードB70に対する認識処理を実行した場合、コード画像B71のように汚れや欠損が生じると、1番目のラインは欠損によって生じた6番目のキャラクタ領域における認識失敗によってライン全体の認識が失敗となり、2番目のラインでは汚れによって生じた4番目のキャラクタ領域における認識失敗によってライン全体の認識が失敗となる。そのため、3番目のラインのように全てのキャラクタ領域において認識が成功して初めてライン全体の認識が成功となっていた。   For example, when the recognition process for the barcode B70 shown in FIG. 12 is executed, if dirt or a defect occurs as in the code image B71, the first line becomes a line due to a recognition failure in the sixth character region caused by the defect. The entire recognition fails, and the recognition of the entire line fails due to the recognition failure in the fourth character area caused by the dirt on the second line. Therefore, the recognition of the entire line is successful only after the recognition is successful in all the character areas as in the third line.

また、図13に示したようにバーコードの短辺方向を横断するように複数ラインにまたがった欠損やゴミが生じている場合には認識ができないことが問題となっていた。   Further, as shown in FIG. 13, there is a problem that recognition cannot be performed when a defect or dust is generated across a plurality of lines so as to cross the short side direction of the barcode.

この従来のライン処理に対し、コード認識処理部24では、キャラクタ毎に認識成功/失敗の管理を行なう。具体的には、1つのラインで認識失敗のキャラクタが存在する場合には、別の場所から1ライン分のデータを切り出してきて認識処理を行なう。この際に、以前の処理で認識成功となっているキャラクタに対する処理は行わず、認識失敗のキャラクタに対してのみ認識を行う。以上の処理を繰り返し、図8に示したように、全キャラクタが認識成功となったら、バーコードの認識に成功したとして処理を終了する。これにより、認識処理に要する時間を短縮することが可能となる。また、欠損やゴミが生じている場合にも認識に成功するようになり、認識性能が向上する。   In contrast to the conventional line processing, the code recognition processing unit 24 manages recognition success / failure for each character. Specifically, when there is a recognition failure character on one line, data for one line is cut out from another place and the recognition process is performed. At this time, the process for the character that has been recognized successfully in the previous process is not performed, and only the character that has failed to be recognized is recognized. The above processing is repeated, and as shown in FIG. 8, when all characters have been successfully recognized, the processing is terminated assuming that the barcode has been successfully recognized. As a result, the time required for the recognition process can be shortened. In addition, when a defect or dust is generated, the recognition succeeds, and the recognition performance is improved.

なお、従来の技術では、ライン単位での認識成功が所定回数以上得られた場合に、バーコードに対する認識が成功したとすることが一般的である。これに対応し、コード認識処理部24における認識処理では、各キャラクタ領域単位で成功回数を蓄積し、成功が所定回数に達したキャラクタ領域について認証成功とし、全てのキャラクタ領域が認証成功となった場合にバーコード全体に対する認証が成功した、としてもよい。   In the conventional technique, it is generally assumed that the barcode is successfully recognized when the recognition success in units of lines is obtained a predetermined number of times or more. Correspondingly, in the recognition process in the code recognition processing unit 24, the number of successes is accumulated for each character area, the authentication is successful for the character area where the success has reached the predetermined number of times, and all the character areas are successfully authenticated. In this case, the authentication for the entire barcode may be successful.

図15は、コード画像処理装置20による複数ライン処理について説明するフローチャートである。まず、1ライン分の画像データを抽出し(S201)、コードパターン認識を行なう(S202)。このコードパターン認識は、図11を参照して説明した動作である。   FIG. 15 is a flowchart for explaining the multiple line processing by the code image processing apparatus 20. First, image data for one line is extracted (S201), and code pattern recognition is performed (S202). This code pattern recognition is the operation described with reference to FIG.

その後、コード認識処理部202は、コードパターン認識結果から処理対象を選択し(S203)、メモリ25に過去の認識結果情報が存在すれば、これを読み出す(S204)。そして、認識結果情報に記録された処理対象のキャラクタ領域における認識成功回数が所定回数より大きければ(S205,Yes)、処理対象キャラクタ選択(S203)に戻って次のキャラクタ領域を選択する。   Thereafter, the code recognition processing unit 202 selects a processing target from the code pattern recognition result (S203), and reads past recognition result information if it exists in the memory 25 (S204). If the number of successful recognitions in the character area to be processed recorded in the recognition result information is greater than the predetermined number (S205, Yes), the process returns to the process target character selection (S203) and the next character area is selected.

一方、認識結果情報に記録された処理対象のキャラクタ領域における認識成功回数が所定回数以下であれば(S205,No)、今回のパターン変換が成功であったか否かを判定し(S206)、成功していれば(S206,Yes)メモリ25内部の認識結果情報25cをアップデートして(S207)、失敗していれば(S206,No)そのままステップS208に移行する。   On the other hand, if the number of successful recognitions in the processing target character area recorded in the recognition result information is equal to or smaller than the predetermined number (S205, No), it is determined whether or not the current pattern conversion is successful (S206). If yes (S206, Yes), the recognition result information 25c in the memory 25 is updated (S207). If unsuccessful (S206, No), the process proceeds to step S208.

ステップS208では、全キャラクタ領域に対する処理が終了したか否かを判定し(S208)、未処理のキャラクタ領域が残っていれば(S208,No)処理対象キャラクタ選択(S203)に戻って次のキャラクタ領域を選択する。   In step S208, it is determined whether or not the processing for all the character areas has been completed (S208). If there is an unprocessed character area remaining (S208, No), the process returns to the process target character selection (S203) to return to the next character. Select an area.

一方、全てのキャラクタ領域に対する処理が終了したならば(S208,Yes)、コード認識処理部24は、認識結果情報25cを参照し、全てのキャラクタ領域について所定回数以上の認証成功が得られていれば(S209,Yes)、コード認識成功として(S212)、処理を終了する。   On the other hand, if the processing for all the character areas is completed (S208, Yes), the code recognition processing unit 24 refers to the recognition result information 25c, and the authentication success is obtained a predetermined number of times or more for all the character areas. If (S209, Yes), the code recognition is successful (S212), and the process is terminated.

また、所定回数以上の認証成功が得られていないキャラクタ領域が残っている場合、コード認識処理部24は、全てのラインについて処理が終了したかを判定し(S210)、未処理のラインが残っている場合(S210,No)には、ステップS201に戻って次のラインを取得する。一方、全てのラインの処理が終了した場合(S210,Yes)、コード認識処理部24は、コード認識失敗(S211)を出力して、処理を終了する。   If there is still a character area that has not been successfully authenticated more than a predetermined number of times, the code recognition processing unit 24 determines whether the processing has been completed for all lines (S210), and unprocessed lines remain. If it is (S210, No), the process returns to step S201 to acquire the next line. On the other hand, when all the lines have been processed (S210, Yes), the code recognition processing unit 24 outputs a code recognition failure (S211) and ends the process.

以上説明してきたように、二値化処理装置10は、基本閾値と、画像の特性が異なっている場合に適した算出方法を用いる補助閾値の2つを用いる。そして、キャラクタ毎に画像データの階調値の分布特性に応じて2つの閾値のうち適した方を選択して用いることで、画像の特性が撮影画像の位置や影によって異なっている場合にも二値化パターンを正確に求めることが可能となり、認識成功率が向上する。   As described above, the binarization processing apparatus 10 uses two of the basic threshold value and the auxiliary threshold value that uses a calculation method suitable when the image characteristics are different. In addition, by selecting and using the appropriate one of the two thresholds according to the distribution characteristics of the gradation values of the image data for each character, even when the characteristics of the image differ depending on the position and shadow of the captured image The binarization pattern can be obtained accurately, and the recognition success rate is improved.

そのため、デジタルカメラのような汎用の光学機器を用いてバーコードを読み取る場合に生ずる撮影画像の歪や撮影画像上の位置による解像度の劣化や輝度の低下という固有の問題に対して、読み取り性能を落とさないバーコード読み取りを実現することが可能となる。   Therefore, the reading performance is limited to the inherent problems such as the distortion of the captured image that occurs when reading a barcode using a general-purpose optical device such as a digital camera, the deterioration of the resolution due to the position on the captured image, and the decrease in luminance. Bar code reading without dropping can be realized.

また、コード画像処理装置20は、1ライン分のデータを切り出しての認識処理を繰り返す際に、それ以前の処理で認識に成功しているキャラクタの情報を保存し、以降の処理に活用することで、認識時間を短縮することが可能となり、欠損やゴミが生じている場合の認識性能が向上する。   In addition, when the code image processing apparatus 20 repeats the recognition process by cutting out data for one line, the code image processing apparatus 20 stores the information of the character that has been successfully recognized in the previous process and uses it for the subsequent processes. Thus, the recognition time can be shortened, and the recognition performance when a defect or dust occurs is improved.

なお、本実施例はあくまで一例であり、本実施例の記載に限定されること無く適宜変形して実施することができる。例えば、基本閾値と補助閾値の双方を算出した後、分布特性に合わせて閾値を選択しても良いし、まず使用する閾値を選択した後に必要な閾値のみを算出するようにしても良い。また、基本閾値は常に算出し、補助閾値は必要な場合にのみ基本閾値を利用して定めるように構成することもできる。   In addition, a present Example is an example to the last, It can change and implement suitably, without being limited to description of a present Example. For example, after calculating both the basic threshold value and the auxiliary threshold value, the threshold value may be selected according to the distribution characteristics, or only the necessary threshold value may be calculated after selecting the threshold value to be used first. Further, the basic threshold value can always be calculated, and the auxiliary threshold value can be determined using the basic threshold only when necessary.

また、本実施例に示した各種構成要素は、その一部または全てをソフトウェアによって実現することもできる。従って、二値化処理装置10の構成要素を全てソフトウェアによって実現することでコンピュータを二値化処理装置として機能させる二値化処理プログラムを得ることができ、コード画像処理装置20の構成要素を全てソフトウェアによって実現することでコンピュータをコード画像処理装置として機能させるコード画像処理プログラムを得ることができる。   Also, some or all of the various components shown in the present embodiment can be realized by software. Therefore, by realizing all the components of the binarization processing device 10 by software, a binarization processing program that causes the computer to function as the binarization processing device can be obtained, and all the components of the code image processing device 20 can be obtained. A code image processing program that causes a computer to function as a code image processing apparatus can be obtained by being realized by software.

以上の実施例を含む実施形態に関し、更に以下の付記を開示する。   The following additional notes are further disclosed with respect to the embodiment including the above examples.

(付記1)バーコード画像を撮影したバーコード画像データから抽出された1ライン分の画像データを、キャラクタを構成するパターン毎に分割して作成した分割領域について、該分割領域内に含まれる画像の濃度分布の特徴を検出する画像濃度分布検出手段と、
前記分割領域における濃度の最大値と最小値との間が、予め規定された第1の比率となる二値化閾値を基本閾値として決定する基本閾値決定手段と、
前記分割領域における濃度分布が、予め規定された第2の比率となる二値化閾値を補助閾値として決定する補助閾値決定手段と、
前記分割領域の濃度分布が予め規定された分布特性を持つか否かを判別する分布特性判別手段と、
前記分布特定の判別結果に基づき、前記基本閾値と前記補助閾値とのいずれかを、該判別対象の前記分割領域の二値化に使用する閾値として選択的に採用する二値化閾値選択手段と、
前記採用した閾値を用いて前記判別対象の分割領域を二値化する二値化手段と、
を備えることを特徴とする二値化処理装置。
(Supplementary Note 1) For a divided area created by dividing image data for one line extracted from barcode image data obtained by shooting a barcode image into patterns constituting a character, an image included in the divided area Image density distribution detecting means for detecting the characteristics of the density distribution of
A basic threshold value determining means for determining, as a basic threshold value, a binarization threshold value between a maximum value and a minimum value of the density in the divided region, which is a first ratio defined in advance;
An auxiliary threshold value determining means for determining, as an auxiliary threshold value, a binarization threshold value at which the density distribution in the divided region is a second ratio defined in advance;
Distribution characteristic determining means for determining whether or not the density distribution of the divided region has a predetermined distribution characteristic;
A binarization threshold selection unit that selectively employs any one of the basic threshold and the auxiliary threshold as a threshold used for binarization of the divided region to be discriminated based on the distribution identification determination result; ,
Binarization means for binarizing the divided region to be discriminated using the adopted threshold;
A binarization processing apparatus comprising:

(付記2)前記基本閾値決定手段は、前記分割領域の濃度の最大値と最小値との間が1対1となる二値化閾値を前記基本閾値として決定し、
前記補助閾値決定手段は、前記分割領域における濃度分布の比率が該バーコードの種類毎に予め定められた比率となる二値化閾値を前記補助閾値として決定することを特徴とする付記1に記載の二値化処理装置。
(Supplementary Note 2) The basic threshold value determining means determines, as the basic threshold value, a binarization threshold value where the density between the maximum value and the minimum value of the divided region is 1: 1.
The supplementary threshold value 1 is characterized in that the auxiliary threshold value determining means determines, as the auxiliary threshold value, a binarization threshold value at which the ratio of the density distribution in the divided region becomes a predetermined ratio for each type of the barcode. Binarization processing device.

(付記3)前記補助閾値決定手段は、前記分割領域の濃度分布が、予め定められた複数の比率となる複数の補助閾値候補を求め、該複数の補助閾値候補のうち、前記基本閾値に最も近いものを前記補助閾値として決定する付記1または2に記載の二値化処理装置。 (Supplementary Note 3) The auxiliary threshold value determining means obtains a plurality of auxiliary threshold value candidates whose density distribution of the divided regions has a plurality of predetermined ratios, and among the plurality of auxiliary threshold value candidates, The binarization processing apparatus according to appendix 1 or 2, wherein a near one is determined as the auxiliary threshold value.

(付記4)二値化閾値選択手段は、前記濃度分布の最大値と最小値の一方が飽和している場合、最大値と最小値の少なくともいずれかかが各々に定められた適正範囲を逸脱している場合、もしくは、最大値と最小値の差が予め定めた特定値より小さい場合に前記補助閾値を採用することを特徴とする付記1〜3のいずれか一つに記載の二値化処理装置。 (Supplementary Note 4) When one of the maximum value and the minimum value of the density distribution is saturated, the binarization threshold value selection unit deviates from an appropriate range in which at least one of the maximum value and the minimum value is set for each. Or the binarization according to any one of appendices 1 to 3, wherein the auxiliary threshold is employed when the difference between the maximum value and the minimum value is smaller than a predetermined specific value. Processing equipment.

(付記5)カメラと、
前記カメラにより撮影されたバーコード画像を走査して1ライン分の画像データを抽出する画像抽出手段と、
前記1ライン分の画像データを、キャラクタを構成するパターン毎に分割して分割領域を作成するキャラクタ領域分割手段と、
前記分割領域毎に、該領域内に含まれる画像の濃淡分布の特徴を検出する画像濃淡分布検出手段と、
前記分割領域における濃度の最大値と最小値との間が、予め規定された第1の比率となる二値化閾値を基本閾値として決定する基本閾値決定手段と、
前記分割領域における濃度分布が、予め規定された第2の比率となる二値化閾値を補助閾値として決定する補助閾値決定手段と、
前記分割領域の濃度分布が予め規定された分布特性を持つか否かを判別する分布特性判別手段と、
前記分布特性の判別結果に基づき、前記基本閾値と前記補助閾値とのいずれかを、該判別対象の前記分割領域の二値化に使用する閾値として選択的に採用する二値化閾値選択手段と、
前記採用した閾値を用いて前記判別対象の分割領域を二値化して二値化パターンを生成する二値化手段と、
を備えることを特徴とする情報処理装置。
(Appendix 5) Camera and
Image extracting means for scanning a barcode image photographed by the camera and extracting image data for one line;
Character area dividing means for dividing the image data for one line into patterns constituting a character to create a divided area;
Image gray level distribution detecting means for detecting the characteristics of the gray level distribution of the image included in each divided area;
A basic threshold value determining means for determining, as a basic threshold value, a binarization threshold value between a maximum value and a minimum value of the density in the divided region, which is a first ratio defined in advance;
An auxiliary threshold value determining means for determining, as an auxiliary threshold value, a binarization threshold value at which the density distribution in the divided region is a second ratio defined in advance;
Distribution characteristic determining means for determining whether or not the density distribution of the divided region has a predetermined distribution characteristic;
A binarization threshold selection unit that selectively employs any one of the basic threshold and the auxiliary threshold as a threshold used for binarization of the divided region to be determined based on the determination result of the distribution characteristics; ,
Binarization means for binarizing the division area to be discriminated using the adopted threshold and generating a binarization pattern;
An information processing apparatus comprising:

(付記6)前記キャラクタ領域分割手段は、前記1ライン分の画像データから前記バーコード画像のバーに形成する濃度値の高い側の線を検出し、各分割領域内に含まれる線の本数が予め定められた本数となるように分割することを特徴とする付記5に記載の情報処理装置。 (Additional remark 6) The said character area division | segmentation means detects the line | wire with the higher density value formed in the bar of the said barcode image from the image data for said 1 line, and the number of the lines contained in each division | segmentation area | region is detected. The information processing apparatus according to appendix 5, wherein the information processing apparatus is divided so as to have a predetermined number.

(付記7)前記バーコード画像から抽出された走査位置の異なる複数ラインの画像データに対し、異なるラインで同一のキャラクタ領域に対応する分割領域について前記ニ値化パターンから文字情報への変換結果を蓄積し、前記バーコード画像が有する全てのキャラクタ領域で各々変換成功回数が予め定めた基準回数を上回った場合に、前記バーコードの認識が成功したと判断するコード認識処理部をさらに備えたことを特徴とする付記5または6に記載の情報処理装置。 (Supplementary note 7) For a plurality of lines of image data with different scanning positions extracted from the barcode image, a conversion result from the binary pattern to character information is obtained for divided areas corresponding to the same character area on different lines. A code recognition processing unit for accumulating and determining that the barcode has been successfully recognized when the number of successful conversions exceeds a predetermined reference number in all the character areas of the barcode image; The information processing apparatus according to appendix 5 or 6, characterized by:

(付記8)バーコード画像に対する走査によって得られた1ライン分の画像データを、キャラクタを構成するパターン毎に分割して作成した分割領域について、該分割領域内に含まれる画像の濃度分布の特徴を検出する画像濃度分布検出ステップと、
前記分割領域における濃度の最大値と最小値との間が、予め規定された第1の比率となる二値化閾値を基本閾値として決定する基本閾値決定ステップと、
前記分割領域における濃度分布が、予め規定された第2の比率となる二値化閾値を補助閾値として決定する補助閾値決定ステップと、
前記分割領域の濃度分布が予め規定された分布特性を持つか否かを判別する分布特性判別ステップと、
前記分布特定の判別結果に基づき、前記基本閾値と前記補助閾値とのいずれかを、該判別対象の前記分割領域の二値化に使用する閾値として選択的に採用する二値化閾値選択ステップと、
前記採用した閾値を用いて前記判別対象の分割領域を二値化する二値化ステップと、
を有することを特徴とする二値化処理方法。
(Supplementary Note 8) Characteristics of the density distribution of an image included in a divided region created by dividing image data for one line obtained by scanning a barcode image into patterns constituting a character An image density distribution detection step for detecting
A basic threshold value determining step for determining, as a basic threshold value, a binarization threshold value between a maximum value and a minimum value of the density in the divided region, which is a first ratio defined in advance;
An auxiliary threshold value determining step of determining, as an auxiliary threshold value, a binarization threshold value at which the density distribution in the divided region is a second ratio defined in advance;
A distribution characteristic determination step for determining whether or not the density distribution of the divided region has a predetermined distribution characteristic;
A binarization threshold selection step that selectively employs any one of the basic threshold and the auxiliary threshold as a threshold used for binarization of the divided region to be discriminated based on the distribution identification determination result; ,
A binarization step for binarizing the division area to be discriminated using the adopted threshold;
A binarization processing method characterized by comprising:

(付記9)バーコード画像に対する走査によって得られた1ライン分の画像データを、キャラクタを構成するパターン毎に分割して作成した分割領域について、該分割領域内に含まれる画像の濃度分布の特徴を検出する画像濃度分布検出手順と、
前記分割領域における濃度の最大値と最小値との間が、予め規定された第1の比率となる二値化閾値を基本閾値として決定する基本閾値決定手順と、
前記分割領域における濃度分布が、予め規定された第2の比率となる二値化閾値を補助閾値として決定する補助閾値決定手順と、
前記分割領域の濃度分布が予め規定された分布特性を持つか否かを判別する分布特性判別手順と、
前記分布特定の判別結果に基づき、前記基本閾値と前記補助閾値とのいずれかを、該判別対象の前記分割領域の二値化に使用する閾値として選択的に採用する二値化閾値選択手順と、
前記採用した閾値を用いて前記判別対象の分割領域を二値化する二値化手順と、
をコンピュータに実行させることを特徴とする二値化処理プログラム。
(Supplementary Note 9) Regarding the divided area created by dividing the image data for one line obtained by scanning the barcode image for each pattern constituting the character, the characteristics of the density distribution of the image included in the divided area Image density distribution detection procedure for detecting,
A basic threshold value determination procedure for determining, as a basic threshold value, a binarization threshold value between a maximum value and a minimum value of the density in the divided region, which is a first ratio defined in advance;
An auxiliary threshold determination procedure for determining, as an auxiliary threshold, a binarization threshold at which the density distribution in the divided region is a second ratio defined in advance;
A distribution characteristic determination procedure for determining whether or not the density distribution of the divided region has a predetermined distribution characteristic;
A binarization threshold selection procedure that selectively employs any one of the basic threshold and the auxiliary threshold as a threshold to be used for binarization of the divided region to be determined based on the determination result of the distribution specification; ,
A binarization procedure for binarizing the divided region to be discriminated using the adopted threshold;
A binarization processing program characterized by causing a computer to execute.

図1は、本実施例にかかる二値化処理装置を有する情報処理装置の概要構成を示す概要構成図である。FIG. 1 is a schematic configuration diagram illustrating a schematic configuration of an information processing apparatus having a binarization processing apparatus according to the present embodiment. 図2は、バーコードの具体例について説明する説明図である。FIG. 2 is an explanatory diagram illustrating a specific example of a barcode. 図3は、カメラの特性による画像の品質劣化について説明する説明図である。FIG. 3 is an explanatory diagram illustrating image quality deterioration due to camera characteristics. 図4は、バーコードの一部に影がかかって暗くなった場合の品質劣化について説明する説明図である。FIG. 4 is an explanatory diagram for explaining quality degradation when a part of the barcode is shaded and darkened. 図5は、基本閾値と補助閾値の適用例について説明する説明図である。FIG. 5 is an explanatory diagram for explaining an application example of the basic threshold value and the auxiliary threshold value. 図6は、階調値が最小値側に飽和した場合について説明する説明図である。FIG. 6 is an explanatory diagram for explaining a case where the gradation value is saturated to the minimum value side. 図7は、階調値の最大値が中央値よりも小さい場合について説明する説明図である。FIG. 7 is an explanatory diagram for explaining a case where the maximum tone value is smaller than the median value. 図8は、階調値の最大値と最小値との差が予め定めた範囲よりも小さい場合について説明する説明図である。FIG. 8 is an explanatory diagram for explaining a case where the difference between the maximum value and the minimum value of the gradation values is smaller than a predetermined range. 図9は、補助閾値の設定について説明する説明図である。FIG. 9 is an explanatory diagram for explaining the setting of the auxiliary threshold value. 図10は、基本閾値が有効である場合について説明する説明図である。FIG. 10 is an explanatory diagram for explaining a case where the basic threshold is valid. 図11は、コード画像処理装置20の処理動作について説明するフローチャートである。FIG. 11 is a flowchart for explaining the processing operation of the code image processing apparatus 20. 図12は、従来のライン処理について説明する説明図である。FIG. 12 is an explanatory diagram for explaining the conventional line processing. 図13は、従来のライン処理で認識できない場合について説明する説明図である。FIG. 13 is an explanatory diagram for explaining a case where recognition cannot be performed by conventional line processing. 図14は、キャラクタ単位で認識を管理するライン処理について説明する説明図である。FIG. 14 is an explanatory diagram for explaining line processing for managing recognition in character units. 図15は、キャラクタ単位で認識を管理するライン処理について説明するフローチャートである。FIG. 15 is a flowchart for describing line processing for managing recognition in character units.

符号の説明Explanation of symbols

10 二値化処理装置
11 画像濃淡分布検出部
12 分布特性判別部
13 基本閾値決定部
14 補助閾値決定部
15 二値化閾値選択部
16 二値化部
20 コード画像処理装置
21 ライン画像抽出部
22 キャラクタ領域分割部
23 処理対象領域選択部
24 コード認識処理部
25 メモリ
25a 白黒−キャラクタパターン対応表
25b キャラクタ−文字情報対応表
25c 認識結果情報
DESCRIPTION OF SYMBOLS 10 Binary processing apparatus 11 Image density distribution detection part 12 Distribution characteristic discrimination | determination part 13 Basic threshold value determination part 14 Auxiliary threshold value determination part 15 Binary value threshold selection part 16 Binary value part 20 Code image processing apparatus 21 Line image extraction part 22 Character region dividing unit 23 Processing target region selecting unit 24 Code recognition processing unit 25 Memory 25a Monochrome-character pattern correspondence table 25b Character-character information correspondence table 25c Recognition result information

Claims (7)

バーコード画像を撮影したバーコード画像データから抽出された1ライン分の画像データを、キャラクタを構成するパターン毎に分割して作成した分割領域について、該分割領域内に含まれる画像の濃度分布の特徴を検出する画像濃度分布検出手段と、
前記分割領域における濃度の最大値と最小値との間が、予め規定された第1の比率となる二値化閾値を基本閾値として決定する基本閾値決定手段と、
前記分割領域における濃度分布が、予め規定された第2の比率となる二値化閾値を補助閾値として決定する補助閾値決定手段と、
前記分割領域の濃度分布が予め規定された分布特性を持つか否かを判別する分布特性判別手段と、
前記分布特定の判別結果に基づき、前記基本閾値と前記補助閾値とのいずれかを、該判別対象の前記分割領域の二値化に使用する閾値として選択的に採用する二値化閾値選択手段と、
前記採用した閾値を用いて前記判別対象の分割領域を二値化する二値化手段と、
を備えることを特徴とする二値化処理装置。
For the divided area created by dividing the image data for one line extracted from the barcode image data obtained by photographing the barcode image for each pattern constituting the character, the density distribution of the image included in the divided area Image density distribution detecting means for detecting features;
A basic threshold value determining means for determining, as a basic threshold value, a binarization threshold value between a maximum value and a minimum value of the density in the divided region, which is a first ratio defined in advance;
An auxiliary threshold value determining means for determining, as an auxiliary threshold value, a binarization threshold value at which the density distribution in the divided region is a second ratio defined in advance;
Distribution characteristic determining means for determining whether or not the density distribution of the divided region has a predetermined distribution characteristic;
A binarization threshold selection unit that selectively employs any one of the basic threshold and the auxiliary threshold as a threshold used for binarization of the divided region to be discriminated based on the distribution identification determination result; ,
Binarization means for binarizing the divided region to be discriminated using the adopted threshold;
A binarization processing apparatus comprising:
前記基本閾値決定手段は、前記分割領域の濃度の最大値と最小値との間が1対1となる二値化閾値を前記基本閾値として決定し、
前記補助閾値決定手段は、前記分割領域における濃度分布の比率が該バーコードの種類毎に予め定められた比率となる二値化閾値を前記補助閾値として決定することを特徴とする請求項1に記載の二値化処理装置。
The basic threshold value determining means determines, as the basic threshold value, a binarization threshold value that has a one-to-one relationship between the maximum value and the minimum value of the density of the divided region,
The auxiliary threshold value determining means determines, as the auxiliary threshold value, a binarization threshold value at which the ratio of the density distribution in the divided region is a predetermined ratio for each type of the barcode. The binarization processing apparatus described.
前記補助閾値決定手段は、前記分割領域の濃度分布が、予め定められた複数の比率となる複数の補助閾値候補を求め、該複数の補助閾値候補のうち、前記基本閾値に最も近いものを前記補助閾値として決定する請求項1または2に記載の二値化処理装置。   The auxiliary threshold value determining means obtains a plurality of auxiliary threshold value candidates in which the density distribution of the divided regions has a plurality of predetermined ratios, and among the plurality of auxiliary threshold value candidates, the one closest to the basic threshold value is determined. The binarization processing apparatus according to claim 1, wherein the binarization processing apparatus is determined as an auxiliary threshold value. 二値化閾値選択手段は、前記濃度分布の最大値と最小値の一方が飽和している場合、最大値と最小値の少なくともいずれかかが各々に定められた適正範囲を逸脱している場合、もしくは、最大値と最小値の差が予め定めた特定値より小さい場合に前記補助閾値を採用することを特徴とする請求項1〜3のいずれか一つに記載の二値化処理装置。   The binarization threshold selection means, when one of the maximum value and the minimum value of the concentration distribution is saturated, or when at least one of the maximum value and the minimum value deviates from the appropriate range determined for each Alternatively, when the difference between the maximum value and the minimum value is smaller than a predetermined specific value, the auxiliary threshold value is adopted. カメラと、
前記カメラにより撮影されたバーコード画像を走査して1ライン分の画像データを抽出する画像抽出手段と、
前記1ライン分の画像データを、キャラクタを構成するパターン毎に分割して分割領域を作成するキャラクタ領域分割手段と、
前記分割領域毎に、該領域内に含まれる画像の濃淡分布の特徴を検出する画像濃淡分布検出手段と、
前記分割領域における濃度の最大値と最小値との間が、予め規定された第1の比率となる二値化閾値を基本閾値として決定する基本閾値決定手段と、
前記分割領域における濃度分布が、予め規定された第2の比率となる二値化閾値を補助閾値として決定する補助閾値決定手段と、
前記分割領域の濃度分布が予め規定された分布特性を持つか否かを判別する分布特性判別手段と、
前記分布特性の判別結果に基づき、前記基本閾値と前記補助閾値とのいずれかを、該判別対象の前記分割領域の二値化に使用する閾値として選択的に採用する二値化閾値選択手段と、
前記採用した閾値を用いて前記判別対象の分割領域を二値化して二値化パターンを生成する二値化手段と、
を備えることを特徴とする情報処理装置。
A camera,
Image extracting means for scanning a barcode image photographed by the camera and extracting image data for one line;
Character area dividing means for dividing the image data for one line into patterns constituting a character to create a divided area;
Image gray level distribution detecting means for detecting the characteristics of the gray level distribution of the image included in each divided area;
A basic threshold value determining means for determining, as a basic threshold value, a binarization threshold value between a maximum value and a minimum value of the density in the divided region, which is a first ratio defined in advance;
An auxiliary threshold value determining means for determining, as an auxiliary threshold value, a binarization threshold value at which the density distribution in the divided region is a second ratio defined in advance;
Distribution characteristic determining means for determining whether or not the density distribution of the divided region has a predetermined distribution characteristic;
A binarization threshold selection unit that selectively employs any one of the basic threshold and the auxiliary threshold as a threshold used for binarization of the divided region to be determined based on the determination result of the distribution characteristics; ,
Binarization means for binarizing the division area to be discriminated using the adopted threshold and generating a binarization pattern;
An information processing apparatus comprising:
バーコード画像に対する走査によって得られた1ライン分の画像データを、キャラクタを構成するパターン毎に分割して作成した分割領域について、該分割領域内に含まれる画像の濃度分布の特徴を検出する画像濃度分布検出ステップと、
前記分割領域における濃度の最大値と最小値との間が、予め規定された第1の比率となる二値化閾値を基本閾値として決定する基本閾値決定ステップと、
前記分割領域における濃度分布が、予め規定された第2の比率となる二値化閾値を補助閾値として決定する補助閾値決定ステップと、
前記分割領域の濃度分布が予め規定された分布特性を持つか否かを判別する分布特性判別ステップと、
前記分布特定の判別結果に基づき、前記基本閾値と前記補助閾値とのいずれかを、該判別対象の前記分割領域の二値化に使用する閾値として選択的に採用する二値化閾値選択ステップと、
前記採用した閾値を用いて前記判別対象の分割領域を二値化する二値化ステップと、
を有することを特徴とする二値化処理方法。
An image for detecting characteristics of density distribution of an image included in a divided area created by dividing image data for one line obtained by scanning a barcode image for each pattern constituting a character. A concentration distribution detection step;
A basic threshold value determining step for determining, as a basic threshold value, a binarization threshold value between a maximum value and a minimum value of the density in the divided region, which is a first ratio defined in advance;
An auxiliary threshold value determining step of determining, as an auxiliary threshold value, a binarization threshold value at which the density distribution in the divided region is a second ratio defined in advance;
A distribution characteristic determination step for determining whether or not the density distribution of the divided region has a predetermined distribution characteristic;
A binarization threshold selection step that selectively employs any one of the basic threshold and the auxiliary threshold as a threshold used for binarization of the divided region to be discriminated based on the distribution identification determination result; ,
A binarization step for binarizing the division area to be discriminated using the adopted threshold;
A binarization processing method characterized by comprising:
バーコード画像に対する走査によって得られた1ライン分の画像データを、キャラクタを構成するパターン毎に分割して作成した分割領域について、該分割領域内に含まれる画像の濃度分布の特徴を検出する画像濃度分布検出手順と、
前記分割領域における濃度の最大値と最小値との間が、予め規定された第1の比率となる二値化閾値を基本閾値として決定する基本閾値決定手順と、
前記分割領域における濃度分布が、予め規定された第2の比率となる二値化閾値を補助閾値として決定する補助閾値決定手順と、
前記分割領域の濃度分布が予め規定された分布特性を持つか否かを判別する分布特性判別手順と、
前記分布特定の判別結果に基づき、前記基本閾値と前記補助閾値とのいずれかを、該判別対象の前記分割領域の二値化に使用する閾値として選択的に採用する二値化閾値選択手順と、
前記採用した閾値を用いて前記判別対象の分割領域を二値化する二値化手順と、
をコンピュータに実行させることを特徴とする二値化処理プログラム。
An image for detecting characteristics of density distribution of an image included in a divided area created by dividing image data for one line obtained by scanning a barcode image for each pattern constituting a character. Concentration distribution detection procedure;
A basic threshold value determination procedure for determining, as a basic threshold value, a binarization threshold value between a maximum value and a minimum value of the density in the divided region, which is a first ratio defined in advance;
An auxiliary threshold determination procedure for determining, as an auxiliary threshold, a binarization threshold at which the density distribution in the divided region is a second ratio defined in advance;
A distribution characteristic determination procedure for determining whether or not the density distribution of the divided region has a predetermined distribution characteristic;
A binarization threshold selection procedure that selectively employs any one of the basic threshold and the auxiliary threshold as a threshold to be used for binarization of the divided region to be determined based on the determination result of the distribution specification; ,
A binarization procedure for binarizing the divided region to be discriminated using the adopted threshold;
A binarization processing program characterized by causing a computer to execute.
JP2008255313A 2008-09-30 2008-09-30 Binarization processing apparatus, information processing apparatus, binarization processing method, and binarization processing program Active JP5125961B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008255313A JP5125961B2 (en) 2008-09-30 2008-09-30 Binarization processing apparatus, information processing apparatus, binarization processing method, and binarization processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008255313A JP5125961B2 (en) 2008-09-30 2008-09-30 Binarization processing apparatus, information processing apparatus, binarization processing method, and binarization processing program

Publications (2)

Publication Number Publication Date
JP2010086324A true JP2010086324A (en) 2010-04-15
JP5125961B2 JP5125961B2 (en) 2013-01-23

Family

ID=42250214

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008255313A Active JP5125961B2 (en) 2008-09-30 2008-09-30 Binarization processing apparatus, information processing apparatus, binarization processing method, and binarization processing program

Country Status (1)

Country Link
JP (1) JP5125961B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012164058A (en) * 2011-02-04 2012-08-30 Casio Comput Co Ltd Scanner and program
JP2012221260A (en) * 2011-04-08 2012-11-12 Nintendo Co Ltd Information processing program, information processing method, information processor and information processing system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6359272A (en) * 1986-08-29 1988-03-15 Nippon Telegr & Teleph Corp <Ntt> Picture processor
JPH056549A (en) * 1991-06-26 1993-01-14 Olympus Optical Co Ltd Reproducing signal processor
JPH096885A (en) * 1995-06-16 1997-01-10 Nippondenso Co Ltd Bar code decoding system
JP2000259759A (en) * 1999-03-11 2000-09-22 Nec Corp Device and method for reading barcode, and storing medium storing program
JP2000276553A (en) * 1999-03-25 2000-10-06 Denso Corp Method for binarizing information code, optical information reader using this binarizing method, and code quality judging auxiliary equipment using this binarizing method
JP2004246795A (en) * 2003-02-17 2004-09-02 Toshiba Social Automation Systems Co Ltd Bar code recognition method and recognition device
JP2008009907A (en) * 2006-06-30 2008-01-17 Fuji Xerox Co Ltd Bar code recognition device, method and program
JP2008102952A (en) * 2007-12-03 2008-05-01 Fujitsu Ltd Code boundary detection method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6359272A (en) * 1986-08-29 1988-03-15 Nippon Telegr & Teleph Corp <Ntt> Picture processor
JPH056549A (en) * 1991-06-26 1993-01-14 Olympus Optical Co Ltd Reproducing signal processor
JPH096885A (en) * 1995-06-16 1997-01-10 Nippondenso Co Ltd Bar code decoding system
JP2000259759A (en) * 1999-03-11 2000-09-22 Nec Corp Device and method for reading barcode, and storing medium storing program
JP2000276553A (en) * 1999-03-25 2000-10-06 Denso Corp Method for binarizing information code, optical information reader using this binarizing method, and code quality judging auxiliary equipment using this binarizing method
JP2004246795A (en) * 2003-02-17 2004-09-02 Toshiba Social Automation Systems Co Ltd Bar code recognition method and recognition device
JP2008009907A (en) * 2006-06-30 2008-01-17 Fuji Xerox Co Ltd Bar code recognition device, method and program
JP2008102952A (en) * 2007-12-03 2008-05-01 Fujitsu Ltd Code boundary detection method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012164058A (en) * 2011-02-04 2012-08-30 Casio Comput Co Ltd Scanner and program
JP2012221260A (en) * 2011-04-08 2012-11-12 Nintendo Co Ltd Information processing program, information processing method, information processor and information processing system

Also Published As

Publication number Publication date
JP5125961B2 (en) 2013-01-23

Similar Documents

Publication Publication Date Title
JP4911340B2 (en) Two-dimensional code detection system and two-dimensional code detection program
US7636483B2 (en) Code type determining method and code boundary detecting method
JP5334042B2 (en) Character string recognition method and character string recognition apparatus
US7539344B2 (en) Boundary detection method between areas having different features in image data
JP5701182B2 (en) Image processing apparatus, image processing method, and computer program
US8538191B2 (en) Image correction apparatus and method for eliminating lighting component
JP5229328B2 (en) Character area extraction device, imaging device having character area extraction function, and character area extraction program
US8467608B2 (en) Method and apparatus for character string recognition
EP2133817A1 (en) Recognition apparatus and recognition method
JP5870745B2 (en) Image processing apparatus, binarization threshold value calculation method, and computer program
CN111259680B (en) Two-dimensional code image binarization processing method and device
CN110210467B (en) Formula positioning method of text image, image processing device and storage medium
JP5125961B2 (en) Binarization processing apparatus, information processing apparatus, binarization processing method, and binarization processing program
JP4335229B2 (en) QR code recognition device, QR code recognition device control method, QR code recognition device control program, and computer-readable recording medium recording the same
US20170206391A1 (en) Barcode decoding method
JP5121685B2 (en) Bar code reading apparatus, bar code reading program, and bar code reading method
JP4398498B2 (en) Code boundary detection method
JP2007189577A (en) Computer program, image input apparatus, image input system and image input method
JP5127687B2 (en) Bar code reading apparatus, bar code reading program, and bar code reading method
JP3607065B2 (en) Music score recognition method and computer readable recording medium having recorded music score recognition program
KR101707625B1 (en) Method for detecting pattern information using image data
CN109117844B (en) Password determination method and device
JP4700597B2 (en) Image binarization apparatus and image binarization method
CN112862798A (en) Method and device for detecting imaging condition of black-and-white camera
CN116152834A (en) Multi-code decoding method and system based on gradient algorithm

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110708

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120912

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

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

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5125961

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20151109

Year of fee payment: 3