JP2008140255A - Bar code reader and bar code reading method - Google Patents

Bar code reader and bar code reading method Download PDF

Info

Publication number
JP2008140255A
JP2008140255A JP2006327182A JP2006327182A JP2008140255A JP 2008140255 A JP2008140255 A JP 2008140255A JP 2006327182 A JP2006327182 A JP 2006327182A JP 2006327182 A JP2006327182 A JP 2006327182A JP 2008140255 A JP2008140255 A JP 2008140255A
Authority
JP
Japan
Prior art keywords
barcode
signal
decoding
processing
measurement information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2006327182A
Other languages
Japanese (ja)
Inventor
Tomomi Masuko
智巳 益子
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.)
Olympus Corp
Original Assignee
Olympus 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 Olympus Corp filed Critical Olympus Corp
Priority to JP2006327182A priority Critical patent/JP2008140255A/en
Publication of JP2008140255A publication Critical patent/JP2008140255A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a bar code reader and a bar code reading method capable of accurately reading a bar code symbol even if unable to generate a bar code signal wherein the element width of a bar code symbol end is accurately expressed. <P>SOLUTION: In this bar code reader 1, when failing in decoding to a first bar code signal corresponding to a first processing direction caused by an end element positioned at the end of the bar code symbol, a decoding processing part 10 replaces a signal corresponding to the end element in the first bar code signal with a signal corresponding to an end element in a second bar code signal corresponding to a second processing direction to perform complementary processing complementing the first bar code signal, and newly performs the decoding by the use of the complemented first bar code signal. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

この発明は、バーコードに記録された情報を読み取るバーコード読取装置およびバーコード読取方法に関する。   The present invention relates to a barcode reading apparatus and a barcode reading method for reading information recorded on a barcode.

レーザ光などでバーコード記号を走査しバーコード記号に記録された情報を読み取るバーコード読取装置が広く使用されている。このようなバーコード読取装置においては、バーコード記号からの反射光の光学的特性の変化を検出してバーコード記号を構成する各エレメントの幅を表すバーコード信号を生成し、このバーコード信号をもとにデコード処理を行なうことによって、バーコード記号に記録された情報を読み取っている。ところで、従来、最初に走査される端部のエレメントからの反射光はバーコード記号が印字されている周辺状況、たとえば印刷品質、紙質および背景などの影響を含みやすく、最初に走査される端部のエレメント幅を正確に表したバーコード信号を生成することができない場合があった。この結果、従来のバーコード読取装置においては、端部のエレメントに対応するバーコード信号が変形し、バーコードの読取不良や読取失敗が発生していた。   A barcode reader that scans a barcode symbol with a laser beam or the like and reads information recorded in the barcode symbol is widely used. In such a barcode reader, a barcode signal representing the width of each element constituting the barcode symbol is generated by detecting a change in the optical characteristics of the reflected light from the barcode symbol. The information recorded in the bar code symbol is read by performing a decoding process based on the above. By the way, conventionally, the reflected light from the element at the end scanned first tends to include the influence of the surrounding situation where the bar code symbol is printed, such as print quality, paper quality and background. In some cases, it was not possible to generate a bar code signal accurately representing the element width. As a result, in the conventional barcode reader, the barcode signal corresponding to the element at the end is deformed, and barcode reading failure or reading failure occurs.

このため、端部のエレメントに対応するバーコード信号が変形していた場合に、バーコード記号におけるスタートキャラクタやストップキャラクタを推測して、読取処理を継続するバーコード読取装置が提案されている(たとえば、特許文献1参照)。   For this reason, there has been proposed a barcode reader that estimates the start character and stop character in the barcode symbol and continues the reading process when the barcode signal corresponding to the end element is deformed ( For example, see Patent Document 1).

特開平3−166675号公報JP-A-3-166675

しかしながら、従来のバーコード読取装置においては、バーコード記号に対応する実際のスタートキャラクタやストップキャラクタと異なるスタートキャラクタやストップキャラクタを推測する場合もあり得るため、バーコード記号を誤読する場合があるという問題があった。   However, in the conventional barcode reader, there may be a case where a start character or stop character different from the actual start character or stop character corresponding to the barcode symbol may be estimated, so that the barcode symbol may be misread. There was a problem.

本発明は、上記に鑑みてなされたものであって、バーコード記号端部のエレメント幅を正確に表したバーコード信号を生成することができない場合であっても、バーコード記号を正確に読み取ることができるバーコード読取装置およびバーコード読取方法を提供することを目的とする。   The present invention has been made in view of the above, and accurately reads a bar code symbol even when a bar code signal that accurately represents the element width at the end of the bar code symbol cannot be generated. An object of the present invention is to provide a barcode reading apparatus and a barcode reading method that can be used.

上述した課題を解決し、目的を達成するために、この発明にかかるバーコード読取装置は、記録された情報に応じた幅で各エレメントが表示されたバーコード記号の各エレメント幅を表すバーコード信号を生成する信号処理手段と、前記バーコード信号に表される各エレメント幅を計測した計測情報を用いて前記バーコード記号に記録された情報をデコードするデコード処理手段とを備えたバーコード読取装置において、前記信号処理手段は、第1の処理方向で第1の前記バーコード信号を生成するとともに前記第1の処理方向と異なる方向である第2の処理方向で第2の前記バーコード信号を生成でき、前記デコード処理手段は、前記第1のバーコード信号に対するデコードが前記バーコード記号の端部に位置する端部エレメントに起因して失敗した場合、前記第1のバーコード信号における前記端部エレメントに対応する信号を、前記第2のバーコード信号における前記端部エレメントに対応する信号で置き換えて前記第1のバーコード信号を補完する補完処理を行い、補完した前記第1のバーコード信号を用いて再度デコードすることを特徴とする。   In order to solve the above-described problems and achieve the object, the barcode reader according to the present invention is a barcode that represents each element width of a barcode symbol in which each element is displayed with a width corresponding to the recorded information. Barcode reading comprising signal processing means for generating a signal, and decoding processing means for decoding information recorded in the barcode symbol using measurement information obtained by measuring each element width represented by the barcode signal In the apparatus, the signal processing means generates the first barcode signal in a first processing direction and the second barcode signal in a second processing direction that is different from the first processing direction. The decoding processing means is caused by the end element located at the end of the bar code symbol being decoded for the first bar code signal. If unsuccessful, the signal corresponding to the end element in the first barcode signal is replaced with the signal corresponding to the end element in the second barcode signal to complement the first barcode signal. The complementary processing is performed, and decoding is performed again using the supplemented first bar code signal.

また、この発明にかかるバーコード読取装置は、前記デコード処理手段は、前記補完処理として、前記第1のバーコード信号の第1の前記計測情報における前記端部エレメントの計測値を、前記第2のバーコード信号の第2の前記計測情報における前記端部エレメントの計測値で置き換えて前記第1の計測情報を補完し、補完した前記第1の計測情報を用いて再度デコードすることを特徴とする。   In the barcode reading apparatus according to the present invention, the decoding processing means uses the measurement value of the end element in the first measurement information of the first barcode signal as the second processing as the complementary processing. Replacing the second measurement information of the barcode signal with the measurement value of the end element to complement the first measurement information, and decoding again using the complemented first measurement information. To do.

また、この発明にかかるバーコード読取装置は、前記デコード処理手段は、前記バーコード記号の所定の比較領域内のエレメントに対する前記第1の計測情報の計測値と前記第2の計測情報の計測値との差が所定の範囲であった場合に、前記補完処理を行なうことを特徴とする。   In the barcode reading apparatus according to the present invention, the decode processing means may measure the measurement value of the first measurement information and the measurement value of the second measurement information for an element in a predetermined comparison area of the barcode symbol. When the difference between the two is within a predetermined range, the complementing process is performed.

また、この発明にかかるバーコード読取装置は、前記所定の範囲は、変更可能であることを特徴とする。   The bar code reader according to the present invention is characterized in that the predetermined range can be changed.

また、この発明にかかるバーコード読取装置は、前記デコード処理手段は、前記バーコード記号の所定の比較領域内のエレメントに対する前記第1の計測情報の計測値と前記第2の計測情報の計測値とをもとに前記第1の計測情報における第1の閾値および前記第2の計測情報における第2の閾値を設定し、前記比較領域内の前記第1の計測情報における前記第1の閾値を超える計測値および前記第1の閾値を下回る計測値の第1の配列状態と、前記比較領域内の前記第2の計測情報における前記第2の閾値を超える計測値および前記第2の閾値を下回る計測値の第2の配列状態とが一致した場合、前記補完処理を行なうことを特徴とする。   In the barcode reading apparatus according to the present invention, the decode processing means may measure the measurement value of the first measurement information and the measurement value of the second measurement information for an element in a predetermined comparison area of the barcode symbol. Based on the above, a first threshold value in the first measurement information and a second threshold value in the second measurement information are set, and the first threshold value in the first measurement information in the comparison area is set. The first arrangement state of the measurement values exceeding and the measurement values below the first threshold, and the measurement values exceeding the second threshold and the second threshold in the second measurement information in the comparison region are below The complementing process is performed when the second array state of the measurement values matches.

また、この発明にかかるバーコード読取装置は、前記第1の閾値の数および前記第2の閾値の数は、変更可能であることを特徴とする。   The bar code reader according to the present invention is characterized in that the number of the first threshold and the number of the second threshold can be changed.

また、この発明にかかるバーコード読取装置は、前記バーコード記号に前記第1の処理方向または前記第2の処理方向にしたがって走査光を照射し該バーコード記号における各領域から順次反射される反射光を受光する受光手段をさらに備え、前記信号処理手段は、前記受光手段による前記第1の処理方向に対応する受光結果をもとに前記第1のバーコード信号を生成し、前記受光手段による前記第2の処理方向に対応する受光結果をもとに前記第2のバーコード信号を生成することを特徴とする。   In the barcode reader according to the present invention, the barcode symbol is irradiated with scanning light according to the first processing direction or the second processing direction, and reflected sequentially from each region in the barcode symbol. Light receiving means for receiving light is further provided, wherein the signal processing means generates the first barcode signal based on a light reception result corresponding to the first processing direction by the light receiving means, and the light receiving means The second barcode signal is generated based on a light reception result corresponding to the second processing direction.

また、この発明にかかるバーコード読取装置は、前記デコード処理手段は、前記受光手段における前記第1の処理方向の走査速度と前記第2の処理方向の走査速度とが異なる場合、前記第1の計測情報または前記第2の計測情報のいずれか一方を他方の計測情報における走査速度に対応させて補正した後に前記補完処理を行なうことを特徴とする。   In the barcode reading apparatus according to the present invention, the decoding processing means may be configured such that when the scanning speed in the first processing direction and the scanning speed in the second processing direction in the light receiving means are different, The complementary processing is performed after correcting either one of the measurement information or the second measurement information in accordance with the scanning speed in the other measurement information.

また、この発明にかかるバーコード読取装置は、前記受光手段は、光を発する光源と、前記光源が発した光を前記第1の処理方向または前記第2の処理方向にしたがって前記バーコード記号上に走査させる走査手段と、前記反射光を集光する集光手段と、前記集光手段によって集光された光を順次受光して電気信号に変換し前記信号処理手段に出力する検出手段と、を備え、前記信号処理手段は、前記走査手段における走査処理を制御することを特徴とする。   In the barcode reader according to the present invention, the light receiving means emits light on the barcode symbol in accordance with the first processing direction or the second processing direction. Scanning means for scanning the light, condensing means for condensing the reflected light, detection means for sequentially receiving the light collected by the condensing means, converting it into an electrical signal, and outputting it to the signal processing means, The signal processing means controls a scanning process in the scanning means.

また、この発明にかかるバーコード読取装置は、前記バーコード記号全体に光を照射し該バーコード記号全体からの反射光を受光して該バーコード記号全体に対応する受光信号を生成する受光手段をさらに備え、前記信号処理手段は、前記第1の処理方向にしたがい前記受光信号を変換することによって前記第1のバーコード信号を生成し、前記第2の処理方向にしたがい前記受光信号を変換することによって前記第2のバーコード信号を生成することを特徴とする。   The bar code reading device according to the present invention is a light receiving means for irradiating the entire bar code symbol with light and receiving reflected light from the entire bar code symbol to generate a light receiving signal corresponding to the entire bar code symbol. The signal processing means generates the first barcode signal by converting the light reception signal in accordance with the first processing direction, and converts the light reception signal in accordance with the second processing direction. By doing so, the second bar code signal is generated.

また、この発明にかかるバーコード読取装置は、前記第1の計測情報および前記第2の計測情報を記憶する記憶手段をさらに備えたことを特徴とする。   In addition, the barcode reader according to the present invention is further characterized by further comprising storage means for storing the first measurement information and the second measurement information.

また、この発明にかかるバーコード読取装置は、前記記憶手段は、前記受光信号を記憶し、前記信号処理手段は、前記記憶手段において記憶された前記受光信号を取得して前記第1のバーコード信号および/または前記第2のバーコード信号を生成することを特徴とする。   In the barcode reader according to the present invention, the storage means stores the light reception signal, and the signal processing means acquires the light reception signal stored in the storage means to obtain the first barcode. Generating a signal and / or the second barcode signal.

また、この発明にかかるバーコード読取装置は、前記比較領域は、変更可能であることを特徴とする。   The bar code reader according to the present invention is characterized in that the comparison area can be changed.

また、この発明にかかるバーコード読取方法は、記録された情報に応じた幅で各エレメントが表示されたバーコード記号における各エレメント幅を表すバーコード信号を生成する信号処理ステップと、前記バーコード信号に表される各エレメント幅を計測した計測情報を用いて前記バーコード記号に記録された情報をデコードするデコード処理ステップとを含むバーコード読取方法において、前記信号処理ステップは、第1の処理方向で第1の前記バーコード信号を生成する第1の信号処理ステップと、前記第1の処理方向と異なる方向である第2の処理方向で第2の前記バーコード信号を生成する第2の信号処理ステップと、を含み、前記デコード処理ステップは、前記第1の信号処理ステップにおいて生成された前記第1のバーコード信号に対する第1のデコード処理ステップと、前記第1のデコード処理ステップにおいて前記第1のバーコード信号に対するデコードが前記バーコード記号の端部に位置する端部エレメントに起因して失敗した場合、前記第1のバーコード信号における前記端部エレメントに対応する信号を、前記第2のバーコード信号における前記端部エレメントに対応する信号で置き換えて前記第1のバーコード信号を補完する補完ステップと、前記補完ステップにおいて補完された前記第1のバーコード信号を用いて再度デコードする第2のデコード処理ステップと、を含むことを特徴とする。   In addition, the barcode reading method according to the present invention includes a signal processing step for generating a barcode signal representing each element width in a barcode symbol in which each element is displayed with a width corresponding to recorded information, and the barcode And a decoding process step for decoding information recorded in the barcode symbol using measurement information obtained by measuring each element width represented in the signal. The signal processing step includes a first process. A first signal processing step for generating the first barcode signal in a direction, and a second for generating the second barcode signal in a second processing direction that is different from the first processing direction. Signal processing step, wherein the decoding processing step includes the first barcode signal generated in the first signal processing step. A first decoding process step for the first barcode processing step, and in the first decoding processing step, when the decoding of the first barcode signal fails due to an end element located at an end portion of the barcode symbol, A complementing step of complementing the first barcode signal by replacing a signal corresponding to the end element in one barcode signal with a signal corresponding to the end element in the second barcode signal; And a second decoding process step of decoding again using the first barcode signal supplemented in the complementing step.

また、この発明にかかるバーコード読取方法は、前記補完ステップは、前記第1のバーコード信号の第1の前記計測情報における前記端部エレメントの計測値を、前記第2のバーコード信号の第2の前記計測情報における前記端部エレメントの計測値で置き換えて前記第1の計測情報を補完し、前記第2のデコード処理ステップは、前記補完ステップにおいて補完された前記第1の計測情報を用いて再度デコードすることを特徴とする。   Further, in the barcode reading method according to the present invention, in the complementing step, the measurement value of the end element in the first measurement information of the first barcode signal is calculated using the second barcode signal. 2 is replaced with the measurement value of the end element in the measurement information, and the first measurement information is supplemented, and the second decoding processing step uses the first measurement information supplemented in the complementing step. And decoding again.

また、この発明にかかるバーコード読取方法は、前記デコード処理ステップは、前記バーコード記号の所定の比較領域内のエレメントに対する前記第1の計測情報の計測値と前記第2の計測情報の計測値との差が所定の範囲内であるか否かを判断する判断ステップを含み、前記補完ステップは、前記判断ステップにおいて前記比較領域内のエレメントに対する前記第1の計測情報の計測値と前記第2の計測情報の計測値との差が所定の範囲内であると判断された場合に行なわれることを特徴とする。   In the barcode reading method according to the present invention, in the decoding step, the measurement value of the first measurement information and the measurement value of the second measurement information for an element in a predetermined comparison area of the barcode symbol. And a step of determining whether or not the difference between the first measurement information and the second value is within a predetermined range, and the complementing step includes the measurement value of the first measurement information for the element in the comparison region and the second value in the determination step. This is performed when it is determined that the difference between the measured information and the measured value is within a predetermined range.

また、この発明にかかるバーコード読取方法は、前記所定の範囲は、変更可能であることを特徴とする。   The barcode reading method according to the present invention is characterized in that the predetermined range can be changed.

また、この発明にかかるバーコード読取方法は、前記デコード処理ステップは、前記バーコード記号の所定の比較領域内のエレメントに対する前記第1の計測情報の計測値と前記第2の計測情報の計測値とをもとに前記第1の計測情報における第1の閾値および前記第2の計測情報における第2の閾値を設定する閾値設定ステップと、前記比較領域内の前記第1の計測情報における前記第1の閾値を超える計測値および前記第1の閾値を下回る計測値の配列状態と、前記比較領域内の前記第2の計測情報における前記第2の閾値を超える計測値および前記第2の閾値を下回る計測値の第2の配列状態とを求める配列状態取得ステップと、前記第1の配列状態と前記第2の配列状態が一致するか否かを判断する配列状態判断ステップと、前記配列状態判断ステップにおいて前記第1の配列状態と前記第2の配列状態が一致したと判断された場合、前記補完ステップを行なうことを特徴とする。   In the barcode reading method according to the present invention, in the decoding step, the measurement value of the first measurement information and the measurement value of the second measurement information for an element in a predetermined comparison area of the barcode symbol. And a threshold setting step for setting a first threshold in the first measurement information and a second threshold in the second measurement information, and the first measurement information in the comparison area. An array state of measurement values exceeding one threshold value and measurement values falling below the first threshold value, and a measurement value exceeding the second threshold value and the second threshold value in the second measurement information in the comparison region. An array state obtaining step for obtaining a second array state having a measured value below, an array state determining step for determining whether or not the first array state and the second array state match; If the said first array state the second arrangement state is determined to match in the state determination step, and carrying out the complementation step.

また、この発明にかかるバーコード読取方法は、前記第1の閾値の数および前記第2の閾値の数は、変更可能であることを特徴とする。   The barcode reading method according to the present invention is characterized in that the number of the first threshold and the number of the second threshold can be changed.

また、この発明にかかるバーコード読取方法は、前記バーコード記号に前記第1の処理方向または前記第2の処理方向にしたがって走査光を照射し該バーコード記号における各領域から順次反射される反射光を受光する受光ステップをさらに含み、前記第1の信号処理ステップは、前記受光ステップによる前記第1の処理方向に対応する受光結果をもとに前記第1のバーコード信号を生成し、前記第2の信号処理ステップは、前記受光手段による前記第2の処理方向に対応する受光結果をもとに前記第2のバーコード信号を生成することを特徴とする。   In the barcode reading method according to the present invention, the barcode symbol is irradiated with scanning light according to the first processing direction or the second processing direction, and reflected sequentially from each region in the barcode symbol. A light receiving step for receiving light, wherein the first signal processing step generates the first barcode signal based on a light reception result corresponding to the first processing direction by the light receiving step; In the second signal processing step, the second bar code signal is generated based on a light reception result corresponding to the second processing direction by the light receiving means.

また、この発明にかかるバーコード読取方法は、前記デコード処理ステップは、前記受光ステップにおける前記第1の処理方向の走査速度と前記第2の処理方向の走査速度とが異なる場合、前記第1の計測情報または前記第2の計測情報のいずれか一方を他方の計測情報における走査速度に対応させて補正する補正ステップをさらに含み、前記補完ステップは、前記補正ステップの後に行なわれることを特徴とする。   In the barcode reading method according to the present invention, when the decoding processing step is different from the scanning speed in the first processing direction and the scanning speed in the second processing direction in the light receiving step, The method further includes a correction step of correcting either one of the measurement information or the second measurement information in accordance with a scanning speed in the other measurement information, and the complementing step is performed after the correction step. .

また、この発明にかかるバーコード読取方法は、前記バーコード記号全体に光を照射し該バーコード記号全体からの反射光を受光して該バーコード記号全体に対応する受光信号を生成する受光ステップをさらに含み、前記第1の信号処理ステップは、前記第1の処理方向にしたがい前記受光ステップにおいて生成された前記受光信号を変換することによって前記第1のバーコード信号を生成し、前記第2の信号処理ステップは、前記第2の処理方向にしたがい前記受光ステップにおいて生成された前記受光信号を変換することによって前記第2のバーコード信号を生成することを特徴とする。   Further, the barcode reading method according to the present invention includes a light receiving step of irradiating the entire barcode symbol with light, receiving reflected light from the entire barcode symbol, and generating a received light signal corresponding to the entire barcode symbol. The first signal processing step generates the first barcode signal by converting the light reception signal generated in the light reception step according to the first processing direction, and generates the second barcode signal. In the signal processing step, the second barcode signal is generated by converting the light reception signal generated in the light reception step according to the second processing direction.

また、この発明にかかるバーコード読取方法は、前記第1の計測情報および前記第2の計測情報を記憶する記憶ステップをさらに含むことを特徴とする。   The barcode reading method according to the present invention further includes a storing step of storing the first measurement information and the second measurement information.

また、この発明にかかるバーコード読取方法は、前記比較領域は、変更可能であることを特徴とする。   The barcode reading method according to the present invention is characterized in that the comparison area can be changed.

本発明は、バーコード記号の端部に位置する端部エレメントに起因してデコードが失敗した場合、バーコード信号における端部エレメントに対応する信号を、異なる処理方向で処理したバーコード信号における端部エレメントに対応する信号で置き換えてバーコード信号を補完し再度デコードすることによって、バーコード記号端部のエレメントを正確に表したバーコード信号を生成することができない場合であっても、バーコード記号を正確に読み取ることができる。   In the present invention, when decoding fails due to an end element located at the end of a bar code symbol, an end in the bar code signal obtained by processing a signal corresponding to the end element in the bar code signal in a different processing direction. Even if it is not possible to generate a bar code signal that accurately represents the element at the end of the bar code symbol by replacing the signal corresponding to the sub element and supplementing the bar code signal and decoding again, the bar code The symbol can be read accurately.

以下、図面を参照して、この発明の実施の形態について説明する。なお、この実施の形態によりこの発明が限定されるものではない。また、図面の記載において、同一部分には同一の符号を付している。   Embodiments of the present invention will be described below with reference to the drawings. Note that the present invention is not limited to the embodiments. In the description of the drawings, the same parts are denoted by the same reference numerals.

(実施の形態1)
まず、実施の形態1において説明する。図1は、実施の形態1にかかるバーコード読取装置の構成を示す模式図である。図1に示すように、実施の形態1にかかるバーコード読取装置1は、記録された情報に応じた幅で各エレメントが表示されたバーコード記号20に記録された情報を読み取る。
(Embodiment 1)
First, the first embodiment will be described. FIG. 1 is a schematic diagram illustrating a configuration of the barcode reading apparatus according to the first embodiment. As shown in FIG. 1, the barcode reading apparatus 1 according to the first embodiment reads information recorded on a barcode symbol 20 in which each element is displayed with a width corresponding to the recorded information.

バーコード読取装置1は、光源2、反射ミラー3、走査ミラー4、集光ミラー5、光学フィルタ6、センサ7、シールド8、信号処理部9、デコード処理部10および記憶部11を備える。   The barcode reader 1 includes a light source 2, a reflection mirror 3, a scanning mirror 4, a condenser mirror 5, an optical filter 6, a sensor 7, a shield 8, a signal processing unit 9, a decoding processing unit 10, and a storage unit 11.

光源2は、たとえばレーザ光などの光を発する。反射ミラー3は、固定配置され、光源2から発光された光を走査ミラー4方向に偏光する。走査ミラー4は、モータなどによって回動可能であり、反射ミラー3によって偏光された光を図1または図2に示すS1方向またはS2方向にしたがってバーコード記号20上に走査させる。また、走査ミラー4は、バーコード記号20における各領域から順次反射される反射光を集光ミラー5に偏光する。集光ミラー5は、走査ミラー4によって反射されたバーコード記号20における反射光をセンサ7に対して集光する。光学フィルタ6は、センサ7の前面に設けられ、バーコード読み取りに要する波長のみを透過させる。センサ7は、集光ミラー5によって集光され光学フィルタ6を透過した光を順次受光して電気信号に変換し信号処理部9に出力する。シールド8は、電磁的なノイズの影響をセンサ7から除外する機能を有する。   The light source 2 emits light such as laser light. The reflection mirror 3 is fixedly arranged and polarizes the light emitted from the light source 2 in the direction of the scanning mirror 4. The scanning mirror 4 can be rotated by a motor or the like, and scans the light polarized by the reflecting mirror 3 on the bar code symbol 20 according to the S1 direction or the S2 direction shown in FIG. Further, the scanning mirror 4 polarizes the reflected light sequentially reflected from each region in the bar code symbol 20 to the condenser mirror 5. The condensing mirror 5 condenses the reflected light from the bar code symbol 20 reflected by the scanning mirror 4 on the sensor 7. The optical filter 6 is provided on the front surface of the sensor 7 and transmits only the wavelength required for barcode reading. The sensor 7 sequentially receives the light collected by the condenser mirror 5 and transmitted through the optical filter 6, converts it into an electrical signal, and outputs it to the signal processing unit 9. The shield 8 has a function of excluding the influence of electromagnetic noise from the sensor 7.

バーコード読取装置1においては、走査ミラー4は、光源2が発した光を所定の第1の処理方向または第1の処理方向と異なる方向である第2の処理方向にしたがってバーコード記号20に走査させる。具体的に、走査ミラー4は、光源2が発した光を図1および図2に示すS1方向に順方向走査光として走査させるとともに、光源2が発した光を図1および図2に示すS2方向に逆方向走査光として走査させる。光源2、反射ミラー3、走査ミラー4、集光ミラー5、光学フィルタ6、センサ7およびシールド8は、特許請求の範囲におけるバーコード記号に第1の処理方向または第2の処理方向にしたがって走査光を照射し該バーコード記号における各領域から順次反射される反射光を受光する受光手段となる。   In the barcode reader 1, the scanning mirror 4 applies the light emitted from the light source 2 to the barcode symbol 20 in accordance with a predetermined first processing direction or a second processing direction that is different from the first processing direction. Let it scan. Specifically, the scanning mirror 4 scans the light emitted from the light source 2 as the forward scanning light in the S1 direction shown in FIGS. 1 and 2, and the light emitted from the light source 2 in S2 shown in FIGS. Scan in the direction as backward scanning light. The light source 2, the reflection mirror 3, the scanning mirror 4, the condensing mirror 5, the optical filter 6, the sensor 7 and the shield 8 scan the barcode symbol in the claims according to the first processing direction or the second processing direction. Light receiving means for receiving the reflected light that is irradiated with light and sequentially reflected from each region in the bar code symbol.

信号処理部9は、センサ7から出力されたバーコード記号20の反射光に対応する電気信号を増幅、フィルタリングおよび2値化することによって、バーコード記号20の各エレメント幅を表すバーコード信号を生成する。また、信号処理部9は、走査ミラー4におけるモータを駆動し走査ミラー4の回動動作を制御することによって、走査ミラー4における走査処理を制御する。   The signal processing unit 9 amplifies, filters, and binarizes an electrical signal corresponding to the reflected light of the barcode symbol 20 output from the sensor 7, thereby converting a barcode signal representing each element width of the barcode symbol 20. Generate. Further, the signal processing unit 9 controls the scanning process in the scanning mirror 4 by driving a motor in the scanning mirror 4 and controlling the rotation operation of the scanning mirror 4.

信号処理部9は、バーコード記号20に対して、第1の処理方向で第1のバーコード信号を生成するとともに、第2の処理方向で第2のバーコード信号を生成できる。信号処理部9は、特許請求の範囲における受光手段による第1の処理方向に対応する受光結果をもとに第1のバーコード信号を生成し、受光手段による第2の処理方向に対応する受光結果をもとに第2のバーコード信号を生成する。具体的には、信号処理部9は、走査ミラー4が図1および図2に示すS1方向の順方向走査光をバーコード記号20に照射した場合には、センサ7の受光結果をもとに順方向バーコード信号を生成する。また、信号処理部9は、走査ミラー4が図1および図2に示すS2方向の逆方向走査光をバーコード記号20に照射した場合には、センサ7の受光結果をもとに逆方向バーコード信号を生成する。   The signal processing unit 9 can generate a first barcode signal in the first processing direction for the barcode symbol 20 and a second barcode signal in the second processing direction. The signal processing unit 9 generates a first barcode signal based on the light reception result corresponding to the first processing direction by the light receiving means in the claims, and receives the light corresponding to the second processing direction by the light receiving means. Based on the result, a second barcode signal is generated. Specifically, when the scanning mirror 4 irradiates the barcode symbol 20 with the forward scanning light in the S1 direction shown in FIGS. 1 and 2, the signal processing unit 9 is based on the light reception result of the sensor 7. A forward bar code signal is generated. In addition, when the scanning mirror 4 irradiates the bar code symbol 20 with the backward scanning light in the S2 direction shown in FIGS. 1 and 2, the signal processing unit 9 detects the backward bar based on the light reception result of the sensor 7. Generate a code signal.

デコード処理部10は、信号処理部9によって生成されたバーコード信号に表される各エレメント幅をカウントしたカウントデータを用いてバーコード記号20に記録された情報をデコードし、図示しない外部装置に出力する。記憶部11は、デコード処理部10によるカウントデータを記憶する。   The decode processing unit 10 decodes the information recorded in the barcode symbol 20 using the count data obtained by counting the element widths represented in the barcode signal generated by the signal processing unit 9, and sends it to an external device (not shown). Output. The storage unit 11 stores count data from the decoding processing unit 10.

デコード処理部10は、第1のバーコード信号に対するデコードがバーコード記号の端部に位置する端部エレメントに起因して失敗した場合、第1のバーコード信号における端部エレメントに対応する信号を、第2のバーコード信号における端部エレメントに対応する信号で置き換えて第1のバーコード信号を補完する補完処理を行い、補完した第1のバーコード信号を用いて再度デコードする。デコード処理部10は、第1のバーコード信号であるに対するデコードがバーコード記号の端部に位置する端部エレメントに起因して失敗した場合、第1のバーコード信号のカウントデータにおける端部エレメントの計測値を、第2のバーコード信号のカウントデータにおける端部エレメントの計測値で置き換えて第1の計測情報を補完する補完処理を行い、補完した第1の計測情報を用いて再度デコードする。   When the decoding for the first barcode signal fails due to the end element located at the end of the barcode symbol, the decode processing unit 10 outputs a signal corresponding to the end element in the first barcode signal. Then, a complementary process for complementing the first barcode signal by replacing with a signal corresponding to the end element in the second barcode signal is performed, and decoding is performed again using the complemented first barcode signal. When the decoding for the first barcode signal fails due to the end element located at the end of the bar code symbol, the decode processing unit 10 uses the end element in the count data of the first bar code signal. Is replaced with the measurement value of the end element in the count data of the second barcode signal to perform the complement processing for complementing the first measurement information, and is decoded again using the supplemented first measurement information. .

具体的には、デコード処理部10は、順方向走査光におけるデコード失敗後に逆方向走査光のデコードを行なってさらに失敗した場合には、逆方向バーコード信号のカウントデータにおける端部エレメントの計測値を、記憶部11に記憶していた順方向バーコード信号のカウントデータにおける同位置の端部エレメントの計測値で置き換えて、逆方向カウントデータを補完する。そして、デコード処理部11は、補完した逆方向カウントデータを用いて再度デコード処理を行なう。記憶部11は、順方向バーコード信号のカウントデータおよび逆方向バーコード信号のカウントデータを記憶する。   Specifically, the decoding processing unit 10 decodes the backward scanning light after the decoding failure in the forward scanning light and further fails, the measured value of the end element in the count data of the backward barcode signal Is replaced with the measured value of the end element at the same position in the count data of the forward bar code signal stored in the storage unit 11 to complement the reverse direction count data. Then, the decode processing unit 11 performs the decoding process again using the complemented reverse count data. The storage unit 11 stores count data of the forward barcode signal and count data of the backward barcode signal.

ところで、バーコード読取装置1においては、周辺状況の影響を受けない良好な状態でバーコード記号20が印字されている場合には、図2に示すS1方向の順方向走査光に対応するバーコード信号が正確に生成されるため、一度の走査でデコードが成功する。しかしながら、図2に示すように、バーコード記号20端部のマージン領域Gs,Geに、絵、文字または白以外の背景色がある場合には、バーコード信号においてバーコード記号端部のエレメント幅を正確に再現することができない。このため、バーコード読取装置1においては、1度目の走査光である順方向走査光におけるデコードが失敗する場合がある。この場合、バーコード読取装置1は、再デコードのため、逆方向走査光を2度目の走査光としてバーコード記号20に照射する。しかしながら、逆方向走査光を用いた場合においてもマージン領域Gs,Geの影響を受けてバーコード記号端部のエレメント幅を正確に生成できず、2度目のデコードも失敗する場合ある。この場合に、本実施の形態1にかかるバーコード読取装置1は補完処理を行なう。   By the way, in the barcode reader 1, when the barcode symbol 20 is printed in a good state not affected by the surrounding situation, the barcode corresponding to the forward scanning light in the S1 direction shown in FIG. Since the signal is generated accurately, decoding is successful in one scan. However, as shown in FIG. 2, when the margin regions Gs and Ge at the end of the barcode symbol 20 have a background color other than a picture, character, or white, the element width at the end of the barcode symbol in the barcode signal Cannot be reproduced accurately. For this reason, in the barcode reader 1, decoding in the forward scanning light that is the first scanning light may fail. In this case, the barcode reader 1 irradiates the barcode symbol 20 with the backward scanning light as the second scanning light for re-decoding. However, even when reverse scanning light is used, the element width at the end of the bar code symbol cannot be generated accurately due to the influence of the margin regions Gs and Ge, and the second decoding may fail. In this case, the barcode reading apparatus 1 according to the first embodiment performs a complementing process.

具体的に、図3〜図5を参照して説明する。図3は、S2方向にしたがって逆方向走査光が照射された場合におけるセンサ7の受光信号および信号処理部9の逆方向バーコード信号を示す図である。図4は、S1方向にしたがって順方向走査光が照射された場合におけるセンサ7の受光信号および信号処理部9の順方向バーコード信号を示す図である。また、図5は、デコード処理部10における補完処理を説明する図である。図3および図4においては、バーコード記号20の右端部を含む領域を示している。   This will be specifically described with reference to FIGS. FIG. 3 is a diagram illustrating a light reception signal of the sensor 7 and a reverse barcode signal of the signal processing unit 9 when the backward scanning light is irradiated according to the S2 direction. FIG. 4 is a diagram illustrating a light reception signal of the sensor 7 and a forward barcode signal of the signal processing unit 9 when the forward scanning light is irradiated according to the S1 direction. FIG. 5 is a diagram for explaining the complementing process in the decoding processing unit 10. 3 and 4, an area including the right end portion of the bar code symbol 20 is shown.

まず、図3を参照して、バーコード記号20の端部エレメントに起因してデコードが失敗する場合について詳細に説明する。図3に示すように、S2方向にしたがってバーコード記号20を走査する場合、バーコード記号20の右端部に位置するエレメントEeに対する反射光が最初にセンサ7によって受光される。つぎに、信号処理部9は、S2方向にしたがって順次出力された受光信号W2を1次微分することによって、受光信号W2の受光量の増減のエッジを上下方向のピーク信号で表した微分信号E2を生成する。   First, the case where decoding fails due to the end element of the barcode symbol 20 will be described in detail with reference to FIG. As shown in FIG. 3, when scanning the barcode symbol 20 according to the S2 direction, the reflected light to the element Ee located at the right end of the barcode symbol 20 is first received by the sensor 7. Next, the signal processing unit 9 first-order differentiates the light reception signal W2 sequentially output according to the S2 direction, whereby a differential signal E2 in which an increase / decrease edge of the light reception amount of the light reception signal W2 is represented by a peak signal in the vertical direction. Is generated.

ここで、エレメントEeのマージン領域Geに絵、文字または白以外の背景色がある場合には、白の背景色がある場合と比較して反射率が低い。このため、受光信号W2に示すように、マージン領域Geに対応する領域Sgの受光量は、白の背景領域に対応する領域Swの受光量と比較し、低くなってしまう。さらに、エレメントEeは、黒色であるため、エレメントEeに対応する領域Seの受光量は、領域Sgにおける受光量と比較しさらに低くなる。したがって、信号処理部9は、図2の微分信号E2に示すように、マージン領域Geと白の背景領域との境界に対応して下方向のピーク信号Pg2が生成した後に、マージン領域GeとエレメントEeとの境界に対応して、ピーク信号Pg2と同じ下方向のピーク信号Pe2を生成する。   Here, when the margin area Ge of the element Ee has a background color other than a picture, a character, or white, the reflectance is lower than that of the white background color. For this reason, as shown in the light reception signal W2, the amount of light received in the region Sg corresponding to the margin region Ge is lower than the amount of light received in the region Sw corresponding to the white background region. Furthermore, since the element Ee is black, the amount of light received in the region Se corresponding to the element Ee is further lower than the amount of light received in the region Sg. Therefore, the signal processing unit 9 generates a downward peak signal Pg2 corresponding to the boundary between the margin region Ge and the white background region, and then generates the margin region Ge and the element as shown in the differential signal E2 of FIG. Corresponding to the boundary with Ee, the same downward peak signal Pe2 as the peak signal Pg2 is generated.

つぎに、信号処理部9は、S2方向にしたがって微分信号E2を処理し、下方向のピーク信号があった場合にはバーコード信号の信号を下げ、下方向のピークの次に上方向のピーク信号があった場合にはバーコード信号を上げることによって、バーコード記号20の各エレメント幅に対応した時間幅を表すバーコード信号B2を生成する。また、信号処理部9は、受光信号において同方向のピーク信号があった場合には、最初にあったピーク信号に応じてバーコード信号の上下方向を決定し、次に同方向のピーク信号があった場合であってもバーコード信号の上下方向を変えず、異方向のピーク信号があった場合にバーコード信号の上下方向を変える。   Next, the signal processing unit 9 processes the differential signal E2 in accordance with the S2 direction. If there is a downward peak signal, the signal processing unit 9 lowers the barcode signal, and the upward peak next to the downward peak. When there is a signal, the barcode signal is raised to generate a barcode signal B2 representing a time width corresponding to each element width of the barcode symbol 20. Further, when there is a peak signal in the same direction in the received light signal, the signal processing unit 9 determines the vertical direction of the barcode signal according to the peak signal first, and then the peak signal in the same direction Even if it is, the vertical direction of the barcode signal is not changed, and the vertical direction of the barcode signal is changed when there is a peak signal in a different direction.

このため、信号処理部9は、S2方向にしたがって受光信号W2からバーコード信号B2を生成する場合には、微分信号E2のマージン領域Geに対応するピーク信号Pg2にしたがって位置P1においてバーコード信号B2を下げる。そして、信号処理部9は、本来の読取対象であるエレメントEeの右端部に対応するピーク信号Pe2がある場合であっても、位置P2においてバーコード信号B2をそのまま維持してしまう。そして、信号処理部9は、エレメントEeの左端部を検出したピーク信号にしたがって、位置P3においてバーコード信号B2の方向を上方向に上げる。   Therefore, when the signal processing unit 9 generates the barcode signal B2 from the light reception signal W2 according to the S2 direction, the barcode signal B2 at the position P1 according to the peak signal Pg2 corresponding to the margin region Ge of the differential signal E2. Lower. The signal processing unit 9 maintains the barcode signal B2 as it is at the position P2 even when there is a peak signal Pe2 corresponding to the right end of the element Ee that is the original reading target. Then, the signal processing unit 9 raises the direction of the barcode signal B2 upward at the position P3 according to the peak signal detected at the left end of the element Ee.

このように、信号処理部9は、エレメントEeのマージン領域Geに絵、文字または白以外の背景色がある場合には、本来の読取対象であるバーコード端のエレメントEe端ではなくマージン領域Ge端部でバーコード信号の方向を決定しまう。この結果、バーコード信号B2の最初部分は、本来の読取対象であるエレメントEeの幅Dlのみならずマージン領域Geの幅Dgを含むものとなってしまい、バーコード信号B2は、他のエレメントと異なり、端部のエレメントEeの幅を正確に再現できない。したがって、信号処理部9は、このバーコード信号B2を用いた場合には正確に端部のエレメントEeの幅を計測することができないため、デコード処理を失敗してしまう。   As described above, when the margin area Ge of the element Ee has a background color other than a picture, a character, or white, the signal processing unit 9 does not use the element Ee end of the barcode end that is the original reading target but the margin area Ge. The direction of the barcode signal is determined at the end. As a result, the first portion of the barcode signal B2 includes not only the width Dl of the element Ee that is the original reading target but also the width Dg of the margin region Ge. The barcode signal B2 Unlikely, the width of the end element Ee cannot be accurately reproduced. Therefore, the signal processing unit 9 cannot accurately measure the width of the end element Ee when the barcode signal B2 is used, and thus the decoding process fails.

ここで、バーコード読取装置1においては、S2方向にしたがって走査を行なう逆方向走査の前に、S1方向にしたがって走査を行なう順方向走査を行なっている。このS1方向にしたがった順方向走査においては、図4に示すように、走査方向が逆方向走査と逆である。言い換えると、バーコード読取装置1は、同じバーコード記号20に異なる方向で走査光をそれぞれ照射するため、バーコード記号20を表す受光信号W1は、逆方向走査における受光信号W2と逆順で出力された同じ波形信号となる。さらに、順方向走査においては、逆方向走査と逆の方向にしたがって、受光信号を処理しバーコード信号を生成する。このため、順方向走査においては、逆方向走査において正確にバーコード信号を生成できなかった最初のエレメントEeは、最後に走査されてバーコード信号の最後部分を構成する。バーコード信号の最後部分は、マージン領域Geの影響を受けにくいため、端部のエレメントEeの幅を正確に再現している場合が多い。   Here, in the barcode reading apparatus 1, before the backward scanning in which the scanning is performed in the S2 direction, the forward scanning in which the scanning is performed in the S1 direction is performed. In the forward scanning along the S1 direction, as shown in FIG. 4, the scanning direction is opposite to the backward scanning. In other words, since the barcode reader 1 irradiates the same barcode symbol 20 with scanning light in different directions, the received light signal W1 representing the barcode symbol 20 is output in the reverse order to the received light signal W2 in the backward scanning. The same waveform signal. Further, in the forward scanning, the received light signal is processed and a barcode signal is generated according to the reverse direction to the backward scanning. For this reason, in the forward scanning, the first element Ee that could not generate the barcode signal accurately in the backward scanning is scanned last to form the last part of the barcode signal. Since the last part of the barcode signal is hardly affected by the margin region Ge, the width of the element Ee at the end is often accurately reproduced.

具体的には、図4に示すように、信号処理部9は、S1方向にしたがって、順方向走査で得られた受光信号W1を処理した微分信号E1からバーコード信号B1を生成する。信号処理部9は、端部のエレメントEeに対応する領域においては、微分信号E1におけるエレメントEeの左端部に応じたピーク信号にしたがって位置P3にてバーコード信号B1を下方向に下げる。つぎに、信号処理部9は、エレメントEeの右端部に応じたピーク信号Pe1にしたがって、位置P2においてバーコード信号B1を上方向に上げる。そして、信号処理部9は、マージン領域Geの右端部に対応するピーク信号Pg1がある場合であっても、バーコード信号をそのまま維持する。この結果、バーコード信号B1の最後部分は、本来の読取対象であるエレメントEeの幅Dlのみを表したものとなるため、バーコード信号B1は、端部のエレメントEeの幅を正確に再現したものとなる。このように、信号処理部9は、S1方向にしたがいエレメントEeの信号を最後に生成するバーコード信号B1においては、S2方向にしたがい端部のエレメントEeの信号を最初に生成するバーコードB2と異なり、エレメントEe幅を正確に表すことができる。   Specifically, as shown in FIG. 4, the signal processing unit 9 generates a barcode signal B1 from the differential signal E1 obtained by processing the light reception signal W1 obtained by the forward scanning according to the S1 direction. In the region corresponding to the end element Ee, the signal processing unit 9 lowers the barcode signal B1 downward at the position P3 according to the peak signal corresponding to the left end of the element Ee in the differential signal E1. Next, the signal processing unit 9 raises the barcode signal B1 upward at the position P2 in accordance with the peak signal Pe1 corresponding to the right end of the element Ee. The signal processing unit 9 maintains the barcode signal as it is even when there is a peak signal Pg1 corresponding to the right end of the margin region Ge. As a result, since the last part of the barcode signal B1 represents only the width Dl of the element Ee that is the original reading object, the barcode signal B1 accurately reproduces the width of the end element Ee. It will be a thing. In this way, the signal processing unit 9 uses the barcode B2 that first generates the signal of the end element Ee in the S2 direction in the barcode signal B1 that finally generates the signal of the element Ee in the S1 direction. Unlikely, the element Ee width can be expressed accurately.

そこで、デコード処理部10は、図5の矢印Y1に示すように、逆方向走査のバーコード信号B2における端部エレメントEeの幅Dlとともにマージン領域Geの幅Dgを含む領域B2tの信号を、順方向走査のバーコード信号B1における端部エレメントEeの幅Dlのみを表した領域B1lの信号で置き換えて補完する。この結果、デコード処理部10は、図5の矢印Y2に示すように、補完したバーコード信号として、マージン領域Geの幅Dgを含まずエレメントEeの幅Dlのみを正確に表したバーコード信号B2aを生成することができる。デコード処理部10は、補完したバーコード信号B2aを用いて再度デコード処理を行なうことによって、端部のエレメントEeの幅を正確に取得でき、デコード処理を成功させることができる。なお、実際の処理においては、デコード処理部10は、バーコード信号B2の各エレメントの幅をカウントしたカウントデータと、バーコード信号B1の各エレメントの幅をカウントしたカウントデータとを用いて補完処理を行なう。具体的には、デコード処理部10は、バーコード信号B2のカウントデータにおける領域B2tに対応するカウント値を、バーコード信号B1のカウントデータにおける領域B1lに対応するカウント値で置き換えることによって、バーコード信号B2に対応するカウントデータを補完し、補完したカウントデータを用いて再度デコード処理を行なう。   Therefore, as shown by an arrow Y1 in FIG. 5, the decode processing unit 10 sequentially outputs a signal in the region B2t including the width Dg of the margin region Ge together with the width Dl of the end element Ee in the barcode signal B2 in the backward scanning. This is complemented by replacing with the signal of the region B1l representing only the width Dl of the end element Ee in the bar code signal B1 of direction scanning. As a result, the decode processing unit 10 does not include the width Dg of the margin region Ge and does not include the width Dg of the margin region Ge, as shown by an arrow Y2 in FIG. Can be generated. The decode processing unit 10 can obtain the width of the end element Ee accurately by performing the decode process again using the complemented barcode signal B2a, and can successfully perform the decode process. In actual processing, the decoding processing unit 10 performs a complementary process using count data obtained by counting the width of each element of the barcode signal B2 and count data obtained by counting the width of each element of the barcode signal B1. To do. Specifically, the decode processing unit 10 replaces the count value corresponding to the area B2t in the count data of the barcode signal B2 with the count value corresponding to the area B1l in the count data of the barcode signal B1, thereby The count data corresponding to the signal B2 is complemented, and the decoding process is performed again using the complemented count data.

つぎに、図6を参照して、バーコード読取装置1のバーコード読取処理について説明する。図6は、図1に示すバーコード読取装置1におけるバーコード読取処理の処理手順を示すフローチャートである。   Next, the barcode reading process of the barcode reading apparatus 1 will be described with reference to FIG. FIG. 6 is a flowchart showing the processing procedure of the barcode reading process in the barcode reading apparatus 1 shown in FIG.

まず、図6に示すように、バーコード読取装置1は、たとえば図2のS1方向で生成されたバーコード信号に対する順方向デコード処理を行なう(ステップS2)。デコード処理部10は、ステップS2における順方向デコード処理が成功または失敗したかを判断する(ステップS4)。デコード処理部10は、順方向デコード処理が成功したと判断した場合(ステップS4:成功)、読み取ったバーコード記号20の情報を図示しない外部装置に出力するとともに順方向デコード処理において用いられたカウントデータを消去してバーコード読取処理を終了する。   First, as shown in FIG. 6, the barcode reader 1 performs forward decoding processing on the barcode signal generated in the S1 direction of FIG. 2, for example (step S2). The decoding processing unit 10 determines whether the forward decoding process in step S2 has succeeded or failed (step S4). When the decoding processing unit 10 determines that the forward decoding process has been successful (step S4: success), the decoding processing unit 10 outputs the read barcode symbol 20 information to an external device (not shown) and uses the count used in the forward decoding process. The data is erased and the barcode reading process is terminated.

一方、デコード処理部10は、順方向デコード処理が失敗したと判断した場合(ステップS4:失敗)、順方向デコード処理において用いられたカウントデータを記憶部11に保持した後に(ステップS6)、たとえば図2のS2方向で生成されたバーコード信号に対する逆方向デコード処理を行なう(ステップS8)。そして、デコード処理部10は、ステップS8における逆方向デコード処理が成功または失敗したかを判断する(ステップS10)。デコード処理部10は、逆方向デコード処理が成功したと判断した場合(ステップS10:成功)、読み取ったバーコード記号20の情報を図示しない外部装置に出力するとともに順方向デコード処理および逆方向デコード処理において用いられたカウントデータを消去してバーコード読取処理を終了する。   On the other hand, when the decoding processing unit 10 determines that the forward decoding process has failed (step S4: failure), after holding the count data used in the forward decoding process in the storage unit 11 (step S6), for example, A backward decoding process is performed on the barcode signal generated in the S2 direction of FIG. 2 (step S8). Then, the decoding processing unit 10 determines whether the backward decoding process in step S8 has succeeded or failed (step S10). When the decoding processing unit 10 determines that the backward decoding process is successful (step S10: success), the decoding processing unit 10 outputs the read barcode symbol 20 information to an external device (not shown) and forward decoding processing and backward decoding processing. The count data used in is erased and the barcode reading process is terminated.

一方、デコード処理部10は、逆方向デコード処理が失敗したと判断した場合(ステップS10:失敗)、逆方向デコード処理において最初に処理されるエレメントに起因して、バーコード記号20の最初のキャラクタパターンがデコードテーブルと不一致であったためデコード処理が失敗したか否かを判断する(ステップS12)。デコード処理部10は、バーコード記号20の最初のキャラクタパターンがデコードテーブルと不一致であったためデコード処理が失敗したのではないと判断した場合(ステップS12:No)、ステップS2に戻り、再度順方向デコード処理を行なう。   On the other hand, when the decoding processing unit 10 determines that the backward decoding process has failed (step S10: failure), the first character of the barcode symbol 20 is caused by the element processed first in the backward decoding process. It is determined whether or not the decoding process has failed because the pattern does not match the decoding table (step S12). When the decoding processing unit 10 determines that the decoding process has not failed because the first character pattern of the bar code symbol 20 does not match the decoding table (step S12: No), the decoding processing unit 10 returns to step S2 and forwards again. Perform decoding processing.

これに対し、デコード処理部10は、バーコード記号20の最初のキャラクタパターンがデコードテーブルと不一致であったためデコード処理が失敗したと判断した場合(ステップS12:Yes)、逆方向デコード処理において用いられたカウントデータを記憶部11に保持する(ステップS14)。   On the other hand, when the decoding processing unit 10 determines that the decoding process has failed because the first character pattern of the barcode symbol 20 does not match the decoding table (step S12: Yes), it is used in the backward decoding process. The counted data is held in the storage unit 11 (step S14).

そして、デコード処理部10は、逆方向デコード処理におけるカウントデータを順方向デコード処理におけるカウントデータで補完する補完処理を行なう(ステップS16)。次いで、デコード処理部10は、補完処理において補完されたカウントデータを用いて再度デコード処理を行い(ステップS18)、このデコード処理が成功または失敗したかを判断する(ステップS20)。デコード処理部10は、このデコード処理が成功したと判断した場合(ステップS20:成功)、読み取ったバーコード記号20の情報を図示しない外部装置に出力するとともに順方向デコード処理および逆方向デコード処理において用いられたカウントデータを消去してバーコード読取処理を終了する。一方、デコード処理部10は、このデコード処理が失敗したと判断した場合(ステップS20:失敗)、ステップS2に戻り、再度順方向デコード処理を行なう。なお、ステップS6およびステップS14において、デコード処理部10は、順方向デコード処理および逆方向デコード処理におけるカウントデータ全体を記憶部11に保持するほか、カウントデータのうち補完処理で使用される一部分のみを保持してもよい。   Then, the decoding processing unit 10 performs a complementing process for complementing the count data in the backward decoding process with the count data in the forward decoding process (step S16). Next, the decoding processing unit 10 performs the decoding process again using the count data supplemented in the complementing process (step S18), and determines whether the decoding process has succeeded or failed (step S20). When the decoding processing unit 10 determines that the decoding process is successful (step S20: success), the decoding processing unit 10 outputs the read barcode symbol 20 information to an external device (not shown) and performs forward decoding processing and backward decoding processing. The used count data is deleted and the barcode reading process is terminated. On the other hand, when it is determined that the decoding process has failed (step S20: failure), the decoding processing unit 10 returns to step S2 and performs the forward decoding process again. In step S6 and step S14, the decoding processing unit 10 holds the entire count data in the forward decoding process and the backward decoding process in the storage unit 11 and only a part of the count data used in the complementing process. It may be held.

つぎに、図6に示す順方向デコード処理について説明する。図7は、図6に示す順方向デコード処理の処理手順を示すフローチャートである。図7に示すように、順方向デコード処理においては、光源2および走査ミラー4が駆動し、バーコード記号20に対して、S1方向にしたがって順方向に走査光を照射する(ステップS21)。つぎに、センサ7は、反射光を順次受光して電気信号に変換し、信号処理部9に出力する。信号処理部9は、センサ7から出力された電気信号を受信して、図4の受光信号W1に例示するように、順方向走査光に対する反射光であってバーコード記号20に対応する受光信号を検出する(ステップS22)。   Next, the forward decoding process shown in FIG. 6 will be described. FIG. 7 is a flowchart showing a processing procedure of the forward decoding process shown in FIG. As shown in FIG. 7, in the forward decoding process, the light source 2 and the scanning mirror 4 are driven to irradiate the barcode symbol 20 with scanning light in the forward direction according to the S1 direction (step S21). Next, the sensor 7 sequentially receives the reflected light, converts it into an electrical signal, and outputs it to the signal processing unit 9. The signal processing unit 9 receives the electrical signal output from the sensor 7, and as illustrated in the light reception signal W1 in FIG. 4, the light reception signal corresponding to the barcode symbol 20 is reflected light with respect to the forward scanning light. Is detected (step S22).

つぎに、信号処理部9は、検出した受光信号に対し1次微分処理などの処理を行なうことによって、順方向のバーコード信号を生成し(ステップS23)、デコード処理部10に生成したバーコード信号を出力する。デコード処理部10は、信号処理部9が生成したバーコード信号における各エレメント幅をカウントして(ステップS24)順方向のカウントデータを生成し、順方向のカウントデータを記憶部11に記憶させる(ステップS25)。そして、デコード処理部10は、デコードテーブルを参照し、カウントデータにおける各カウント値が対応するキャラクタパターンを求めるデコード処理を行なう(ステップS26)。   Next, the signal processing unit 9 generates a bar code signal in the forward direction by performing processing such as primary differentiation on the detected light reception signal (step S23), and generates the bar code generated in the decoding processing unit 10. Output a signal. The decode processing unit 10 counts each element width in the barcode signal generated by the signal processing unit 9 (step S24), generates forward count data, and stores the forward count data in the storage unit 11 ( Step S25). Then, the decode processing unit 10 refers to the decode table and performs a decoding process for obtaining a character pattern corresponding to each count value in the count data (step S26).

つぎに、図6に示す逆方向デコード処理について説明する。図8は、図6に示す逆方向デコード処理の処理手順を示すフローチャートである。図8に示すように、逆方向デコード処理においては、光源2および走査ミラー4が駆動し、バーコード記号20に対して、S2方向にしたがって逆方向に走査光を照射する(ステップS31)。つぎに、センサ7は、反射光を順次受光して電気信号に変換し、信号処理部9に出力する。信号処理部9は、センサ7から出力された電気信号を受信して、図3の受光信号W2に例示するように、逆方向走査光に対する反射光であってバーコード記号20に対応する受光信号を検出する(ステップS32)。   Next, the backward decoding process shown in FIG. 6 will be described. FIG. 8 is a flowchart showing a processing procedure of the backward decoding process shown in FIG. As shown in FIG. 8, in the reverse decoding process, the light source 2 and the scanning mirror 4 are driven to irradiate the barcode symbol 20 with scanning light in the reverse direction according to the S2 direction (step S31). Next, the sensor 7 sequentially receives the reflected light, converts it into an electrical signal, and outputs it to the signal processing unit 9. The signal processing unit 9 receives the electrical signal output from the sensor 7 and, as exemplified by the light reception signal W2 in FIG. 3, the light reception signal corresponding to the barcode symbol 20 that is reflected light with respect to the backward scanning light. Is detected (step S32).

つぎに、信号処理部9は、検出した受光信号に対し1次微分処理などの処理を行なうことによって、逆方向のバーコード信号を生成し(ステップS33)、デコード処理部10に生成したバーコード信号を出力する。デコード処理部10は、信号処理部9が生成したバーコード信号における各エレメント幅をカウントして(ステップS34)逆方向のカウントデータを生成し、逆方向のカウントデータを記憶部11に記憶させる(ステップS35)。そして、デコード処理部10は、デコードテーブルを参照し、カウントデータにおける各カウント値が対応するキャラクタパターンを求めるデコード処理を行なう(ステップS36)。   Next, the signal processing unit 9 generates a barcode signal in the reverse direction by performing a process such as a primary differentiation process on the detected light reception signal (step S33), and generates the barcode generated in the decoding processing unit 10. Output a signal. The decode processing unit 10 counts each element width in the barcode signal generated by the signal processing unit 9 (step S34), generates reverse count data, and stores the reverse count data in the storage unit 11 ( Step S35). Then, the decode processing unit 10 refers to the decode table and performs a decoding process for obtaining a character pattern corresponding to each count value in the count data (step S36).

つぎに、図6に示す補完処理について説明する。図9は、図6に示す補完処理の処理手順を示すフローチャートである。図9に示すように、デコード処理部10は、順方向デコード処理におけるバーコード信号に対応するカウントデータおよび逆方向デコード処理におけるバーコード信号に対応するカウントデータを記憶部11から取得する(ステップS41)。つぎに、デコード処理部10は、逆方向デコード処理のカウントデータにおける最初部分のカウント値を、順方向デコード処理のカウントデータにおける最後部分のカウント値で置き換え(ステップS42)、置き換えた逆方向デコード処理におけるバーコード信号のカウントデータを補完カウントデータとして記憶部11に記憶させ(ステップS43)、補完処理を終了する。   Next, the complementing process shown in FIG. 6 will be described. FIG. 9 is a flowchart showing a processing procedure of the complement processing shown in FIG. As shown in FIG. 9, the decode processing unit 10 acquires count data corresponding to the barcode signal in the forward decoding process and count data corresponding to the barcode signal in the backward decoding process from the storage unit 11 (step S41). ). Next, the decoding processing unit 10 replaces the count value of the first part in the count data of the backward decoding process with the count value of the last part in the count data of the forward decoding process (step S42), and the replaced backward decoding process Is stored in the storage unit 11 as complementary count data (step S43), and the complementary processing is terminated.

このように、実施の形態1によれば、バーコード記号の端部に位置する端部エレメントに起因してデコードが失敗した場合、バーコード信号における端部エレメントに対応する信号を、異なる処理方向で処理したバーコード信号における端部エレメントに対応する信号で置き換えてバーコード信号を補完し再度デコードすることによって、バーコード記号端部のエレメントを正確に表したバーコード信号を生成することができない場合であっても、バーコード記号を正確に読み取ることができる。   Thus, according to the first embodiment, when decoding fails due to the end element located at the end of the bar code symbol, the signal corresponding to the end element in the bar code signal is processed in a different processing direction. It is not possible to generate a barcode signal that accurately represents the element at the end of the bar code symbol by replacing the bar code signal with the signal corresponding to the end element in the bar code signal processed in step 2 Even in this case, the bar code symbol can be read accurately.

(実施の形態2)
つぎに、実施の形態2について説明する。図10は、実施の形態2にかかるバーコード読取装置の構成を示す模式図である。図10に示すように、実施の形態2にかかるバーコード読取装置201は、図1に示すバーコード読取装置1におけるデコード処理部10に代えて、デコード処理部210を備えた構成を有する。デコード処理部210は、バーコード記号の所定の比較領域内のエレメントに対する順方向走査のカウントデータのカウント値と逆方向走査のカウントデータのカウント値とが一致した場合、または、バーコード記号の所定の比較領域内のエレメントに対する順方向走査のカウントデータのカウント値と逆方向走査のカウントデータのカウント値との差が所定の範囲内であった場合、図1に示すデコード処理部10と同様の処理手順で補完処理を行なう。
(Embodiment 2)
Next, a second embodiment will be described. FIG. 10 is a schematic diagram illustrating a configuration of the barcode reading apparatus according to the second embodiment. As shown in FIG. 10, the barcode reading apparatus 201 according to the second embodiment has a configuration including a decoding processing unit 210 instead of the decoding processing unit 10 in the barcode reading apparatus 1 shown in FIG. 1. When the count value of the forward scan count data matches the count value of the reverse scan count data for the element in the predetermined comparison area of the bar code symbol, or the predetermined value of the bar code symbol When the difference between the count value of the forward scan count data and the count value of the reverse scan count data for the elements in the comparison region is within a predetermined range, the same processing as that of the decoding processing unit 10 shown in FIG. Complement processing is performed in the processing procedure.

つぎに、図10に示すバーコード読取装置201のバーコード読取処理について説明する。図11は、図10に示すバーコード読取装置201におけるバーコード読取処理の処理手順を示すフローチャートである。   Next, the barcode reading process of the barcode reading apparatus 201 shown in FIG. 10 will be described. FIG. 11 is a flowchart showing the processing procedure of the barcode reading process in the barcode reading apparatus 201 shown in FIG.

図11に示すように、バーコード読取装置201は、図6のステップS2〜ステップS12と同様に、順方向デコード処理(ステップS202)、デコード成功判断処理(ステップS204)、順方向データ保持処理(ステップS206)、逆方向デコード処理(ステップS208)、デコード成功判断処理(ステップS210)および最初のキャラクタパターン不一致判断処理(ステップS212)を行なう。   As shown in FIG. 11, the bar code reader 201 performs the forward decoding process (step S202), the decoding success determination process (step S204), and the forward data holding process (step S204) as in steps S2 to S12 of FIG. Step S206), backward decoding processing (step S208), decoding success determination processing (step S210), and first character pattern mismatch determination processing (step S212) are performed.

デコード処理部210は、バーコード記号20の最初のキャラクタパターンがデコードテーブルと不一致であったためデコード処理が失敗したと判断した場合(ステップS212:Yes)、所定の比較領域における順方向走査のカウントデータのカウント値と逆方向走査のカウントデータのカウント値とが一致するか否かを判断する(ステップS213)。なお、ステップS213においては、所定の比較領域における順方向走査のカウントデータのカウント値と逆方向走査のカウントデータのカウント値との差が所定の範囲内であるか否かを判断してもよい。順方向走査における走査速度と逆方向走査における走査速度は、必ずしも完全に一致するわけではない。このため、各方向の走査速度に差があった場合には、所定の比較領域における各方向の走査が正常に行なわれていた場合であっても順方向走査のカウントデータのカウント値と逆方向走査のカウントデータのカウント値とに差が生じる場合がある。このため、順方向走査と逆方向走査の走査速度ズレに対応する範囲を設定し、所定の比較領域における順方向走査のカウントデータのカウント値と逆方向走査のカウントデータのカウント値との差が設定した所定の範囲内であった場合には、各方向の走査が正常に行なわれていると判断できる。   When the decoding processing unit 210 determines that the decoding process has failed because the first character pattern of the bar code symbol 20 does not match the decoding table (step S212: Yes), the count data of the forward scan in the predetermined comparison region It is determined whether or not the count value of the counter value coincides with the count value of the count data of the backward scanning (step S213). In step S213, it may be determined whether or not the difference between the count value of the forward scan count data and the count value of the reverse scan count data in the predetermined comparison area is within a predetermined range. . The scanning speed in the forward scanning and the scanning speed in the backward scanning do not always coincide completely. Therefore, if there is a difference in the scanning speed in each direction, even if the scanning in each direction in the predetermined comparison area is performed normally, the count value of the forward scan count data is in the reverse direction. There may be a difference in the count value of the scan count data. Therefore, a range corresponding to the scanning speed deviation between the forward scanning and the backward scanning is set, and the difference between the count value of the forward scanning count data and the count data of the backward scanning count data in a predetermined comparison area is determined. If the predetermined range is set, it can be determined that scanning in each direction is normally performed.

具体的には、図12に示すように、デコード処理部210は、順方向走査に対応するバーコード信号B1と逆方向走査に対応するバーコード信号B2とにおける、たとえば端部のエレメントEeの隣に位置するエレメントから所定数のエレメントを含む領域のエレメント幅をそれぞれ比較する。デコード処理部210は、図12の矢印Y21に示すように、バーコード信号B1の領域Bc1における各エレメントの幅と、バーコード信号B1の領域Bc1に対応するバーコード信号B2の領域Bc2における各エレメントの幅とを比較する。そして、デコード処理部210は、バーコード信号B1の領域Bc1における各エレメントの幅と、バーコード信号B2の領域Bc2における各エレメントの幅とが一致するか否かを判断する。なお、ステップS213において、所定の比較領域における順方向走査のカウントデータのカウント値と逆方向走査のカウントデータのカウント値との差が所定の範囲内である否かを判断する場合には、デコード処理部210は、バーコード信号B1の領域Bc1における各エレメントの幅と、バーコード信号B2の領域Bc2における各エレメントの幅との差が所定の範囲内であるか否かを判断すればよい。また、ステップS213において各エレメント幅を比較する比較領域および所定の範囲は、図示しない外部装置から入力された指示情報にしたがって変更可能である。このため、ステップS213において比較される領域は、図12に例示する端部のエレメントEeの隣のエレメントを含む領域に限らず、バーコード信号がさらに安定して正確に表されるバーコード記号20の中央部分であってもよい。また、比較領域に含まれるエレメントの数量は、図12に示す数量以上であってもよく、また、単数であってもよい。比較領域を変更することによって、エレメント幅を比較するエレメントの本数や領域などを変更できる。   Specifically, as shown in FIG. 12, the decode processing unit 210, for example, next to the end element Ee in the barcode signal B1 corresponding to forward scanning and the barcode signal B2 corresponding to backward scanning. The element widths of the regions including a predetermined number of elements from the elements positioned at are respectively compared. As indicated by an arrow Y21 in FIG. 12, the decoding processing unit 210 has a width of each element in the region Bc1 of the barcode signal B1 and each element in the region Bc2 of the barcode signal B2 corresponding to the region Bc1 of the barcode signal B1. Compare the width of. Then, the decoding processing unit 210 determines whether or not the width of each element in the region Bc1 of the barcode signal B1 matches the width of each element in the region Bc2 of the barcode signal B2. In step S213, when it is determined whether or not the difference between the count value of the forward scan count data and the count value of the reverse scan count data in the predetermined comparison area is within a predetermined range, the decoding is performed. The processing unit 210 may determine whether the difference between the width of each element in the area Bc1 of the barcode signal B1 and the width of each element in the area Bc2 of the barcode signal B2 is within a predetermined range. In addition, the comparison area and the predetermined range in which the element widths are compared in step S213 can be changed according to instruction information input from an external device (not shown). For this reason, the region compared in step S213 is not limited to the region including the element adjacent to the end element Ee illustrated in FIG. 12, but the barcode symbol 20 in which the barcode signal is expressed more stably and accurately. It may be the central part. Further, the number of elements included in the comparison region may be greater than or equal to the number shown in FIG. 12, or may be singular. By changing the comparison area, it is possible to change the number of elements to be compared, the area, and the like.

デコード処理部210は、所定の比較領域における順方向走査のカウントデータのカウント値と逆方向走査のカウントデータのカウント値とが一致しないと判断した場合、または、所定の比較領域における順方向走査のカウントデータのカウント値と逆方向走査のカウントデータのカウント値との差が所定の範囲内でないと判断した場合(ステップS213:No)、端部のエレメント以外においてもバーコード信号が正確に生成されていないと考えられるため、ステップS202に戻り、再度順方向デコード処理を行なう。   When the decode processing unit 210 determines that the count value of the forward scan count data in the predetermined comparison region does not match the count value of the reverse scan count data, or the forward scan in the predetermined comparison region When it is determined that the difference between the count value of the count data and the count value of the count data of the backward scanning is not within the predetermined range (step S213: No), the barcode signal is accurately generated even in the elements other than the end elements. Therefore, the process returns to step S202, and the forward decoding process is performed again.

これに対し、デコード処理部210は、所定の比較領域における順方向走査のカウントデータのカウント値と逆方向走査のカウントデータのカウント値とが一致したと判断した場合、所定の比較領域における順方向走査のカウントデータのカウント値と逆方向走査のカウントデータのカウント値との差が所定の範囲内であると判断した場合(ステップS213:Yes)、端部のエレメント以外においては、正確なバーコード信号が生成されていると考えられるため、図6に示すステップS16と同様の処理手順を行なうことによって、補完処理を行なう(ステップS216)。この結果、デコード処理部210は、端部のエレメントも含めて、バーコード信号全体が正確に再現されたと考えられるバーコード信号を取得することができる。そして、図6に示すステップS18およびステップS20と同様に、デコード処理(ステップS218)、デコード成功判断処理(ステップS220)を行なう。なお、ステップS206およびステップS214において、デコード処理部10は、順方向デコード処理および逆方向デコード処理におけるカウントデータ全体を記憶部11に保持するほか、カウントデータのうちステップS213における判断処理およびステップS216における補完処理で使用される一部分のみを保持してもよい。   On the other hand, when the decode processing unit 210 determines that the count value of the forward scan count data in the predetermined comparison area matches the count value of the reverse scan count data, the forward processing in the predetermined comparison area. When it is determined that the difference between the count value of the scan count data and the count value of the reverse scan count data is within a predetermined range (step S213: Yes), an accurate bar code other than the end element is used. Since it is considered that a signal is generated, a complementary process is performed by performing the same processing procedure as in step S16 shown in FIG. 6 (step S216). As a result, the decoding processing unit 210 can acquire a barcode signal that is considered to be accurately reproduced as a whole barcode signal including the end elements. Then, similarly to step S18 and step S20 shown in FIG. 6, a decoding process (step S218) and a decoding success determination process (step S220) are performed. Note that in steps S206 and S214, the decoding processing unit 10 holds the entire count data in the forward decoding process and the backward decoding process in the storage unit 11, and among the count data, in the determination process in step S213 and in step S216. Only a part used in the complementing process may be retained.

このように、実施の形態2においては、補完処理の前に、補完処理で用いる順方向デコード処理におけるカウントデータと逆方向デコード処理におけるカウントデータの所定の比較領域のエレメント幅のカウント値が一致するか否か、または、所定の比較領域における順方向走査のカウントデータのカウント値と逆方向走査のカウントデータのカウント値との差が所定の範囲内である否かを判断することによって、補完対象である端部のエレメントに対応する領域以外の領域において、正確なバーコード信号が生成されているか否かを検証している。したがって、実施の形態2によれば、実施の形態1と比して、カウントデータの補完処理における正確性をさらに高めることが可能になる。   As described above, in the second embodiment, before the complementing process, the count data in the predetermined comparison region of the count data in the forward decoding process and the count data in the backward decoding process used in the complementing process match. Or whether or not the difference between the count value of the forward scan count data and the count value of the reverse scan count data in the predetermined comparison area is within a predetermined range. It is verified whether or not an accurate barcode signal is generated in a region other than the region corresponding to the end element. Therefore, according to the second embodiment, it is possible to further improve the accuracy in the count data complementing process as compared with the first embodiment.

なお、実施の形態2においては、所定の比較領域におけるカウントデータのカウント値を比較した場合について説明したが、細いエレメントと太いエレメントの配列状態をもとにバーコード記号20に記録された情報を読み取る場合には、所定の比較領域における各太さのエレメントの配列状態を比較した後に、補完処理を行なってもよい。図13〜図18を参照して、具体的に説明する。   In the second embodiment, the case where the count values of the count data in the predetermined comparison area are compared has been described. However, the information recorded in the bar code symbol 20 based on the arrangement state of the thin elements and the thick elements is described. In the case of reading, complementation processing may be performed after comparing the arrangement state of elements of each thickness in a predetermined comparison region. A specific description will be given with reference to FIGS.

図13は、実施の形態2にかかるバーコード読取装置の他の構成を示す模式図である。図13に示すバーコード読取装置201aは、図10に示すバーコード読取装置201におけるデコード処理部210に代えて、デコード処理部210aを備えた構成を有する。デコード処理部210aは、バーコード記号20の所定の比較領域内のエレメントに対する順方向バーコード信号のカウントデータのカウント値と逆方向バーコード信号のカウントデータのカウント値とをもとに順方向バーコード信号のカウントデータにおける第1の閾値および逆方向バーコード信号のカウントデータにおける第2の閾値を設定する。そして、デコード処理部210aは、比較領域内の順方向バーコード信号のカウントデータにおける第1の閾値を超えるカウント値および第1の閾値を下回るカウント値の第1の配列状態を示す第1の配列パターンを取得する。そして、デコード処理部210aは、比較領域内の逆方向バーコード信号のカウントデータにおける第2の閾値を超えるカウント値および第2の閾値を下回るカウント値の第2の配列状態を示す第2の配列パターンを取得する。つぎに、デコード処理部210aは、比較領域にそれぞれ対応する第1の配列パターンと第2の配列パターンとが一致するか否かを判断し、第1の配列パターンと第2の配列パターンとが一致したと判断した場合に補完処理を行なう。   FIG. 13 is a schematic diagram illustrating another configuration of the barcode reading apparatus according to the second embodiment. A barcode reader 201a shown in FIG. 13 has a configuration including a decode processor 210a instead of the decode processor 210 in the barcode reader 201 shown in FIG. The decode processing unit 210a performs forward bar code based on the count value of the count data of the forward bar code signal and the count value of the count data of the reverse bar code signal for the elements in the predetermined comparison area of the bar code symbol 20. A first threshold value in the count data of the code signal and a second threshold value in the count data of the backward barcode signal are set. Then, the decoding processing unit 210a has a first arrangement indicating a first arrangement state of a count value exceeding the first threshold and a count value falling below the first threshold in the count data of the forward barcode signal in the comparison area. Get the pattern. Then, the decode processing unit 210a has a second arrangement indicating a second arrangement state of the count value exceeding the second threshold and the count value falling below the second threshold in the count data of the backward barcode signal in the comparison area. Get the pattern. Next, the decoding processing unit 210a determines whether or not the first array pattern and the second array pattern corresponding to each comparison region match each other, and the first array pattern and the second array pattern are determined. Complement processing is performed when it is determined that they match.

つぎに、図13に示すバーコード読取装置201aのバーコード読取処理について説明する。図14は、図13に示すバーコード読取装置201aにおけるバーコード読取処理の処理手順を示すフローチャートである。図14に示すように、バーコード読取装置201aは、順方向バーコード信号に対するカウントデータを取得するとともに配列パターンを取得する順方向デコード処理(ステップS222)、デコード成功判断処理(ステップS224)、順方向データ保持処理(ステップS226)、逆方向バーコード信号に対するカウントデータを取得するとともに配列パターンを取得する逆方向デコード処理(ステップS228)、デコード成功判断処理(ステップS230)および最初のキャラクタパターン不一致判断処理(ステップS232)を行なう。   Next, the barcode reading process of the barcode reading apparatus 201a shown in FIG. 13 will be described. FIG. 14 is a flowchart showing a processing procedure of barcode reading processing in the barcode reading apparatus 201a shown in FIG. As shown in FIG. 14, the barcode reader 201a obtains count data for the forward barcode signal and obtains an array pattern, a forward decoding process (step S222), a decoding success determination process (step S224), Direction data holding process (step S226), reverse decoding process (step S228) for obtaining count data for the backward barcode signal and obtaining an array pattern, decoding success judgment process (step S230), and first character pattern mismatch judgment Processing (step S232) is performed.

デコード処理部210aは、バーコード記号20の最初のキャラクタパターンがデコードテーブルと不一致であったためデコード処理が失敗したと判断した場合(ステップS232:Yes)、所定の比較領域における順方向走査の配列パターンと逆方向走査の配列パターンとが一致するか否かを判断する(ステップS233)。   When the decoding processing unit 210a determines that the decoding process has failed because the first character pattern of the barcode symbol 20 does not match the decoding table (step S232: Yes), the forward scanning array pattern in the predetermined comparison region It is determined whether or not the array pattern of the reverse scanning matches (step S233).

デコード処理部210は、所定の比較領域における順方向走査の配列パターンと逆方向走査の配列パターンとが一致しないと判断した場合(ステップS233:No)、端部のエレメント以外においてもバーコード信号が正確に生成されていないと考えられるため、ステップS222に戻り、再度順方向デコード処理を行なう。   When the decoding processing unit 210 determines that the forward scanning array pattern and the backward scanning array pattern in the predetermined comparison area do not match (step S233: No), the barcode signal is also output from elements other than the end elements. Since it is considered that the data has not been generated correctly, the process returns to step S222 and the forward decoding process is performed again.

これに対し、デコード処理部210aは、所定の比較領域における順方向走査の配列パターンと逆方向走査の配列パターンとが一致すると判断した場合(ステップS233:Yes)、端部のエレメント以外においては、正確なバーコード信号が生成されていると考えられるため、図6に示すステップS16と同様の処理手順を行なうことによって、補完処理を行なう(ステップS236)。この結果、デコード処理部210aは、端部のエレメントも含めて、バーコード信号全体が正確に再現されたと考えられるバーコード信号を取得することができる。そして、図6に示すステップS18およびステップS20と同様に、デコード処理(ステップS238)、デコード成功判断処理(ステップS240)を行なう。なお、ステップS226およびステップS234において、デコード処理部10は、順方向デコード処理および逆方向デコード処理におけるカウントデータ全体を記憶部11に保持するほか、カウントデータのうちステップS233における判断処理およびステップS236における補完処理で使用される一部分のみを保持してもよい。   On the other hand, when the decoding processing unit 210a determines that the forward scanning array pattern and the backward scanning array pattern in the predetermined comparison region match (step S233: Yes), except for the end element, Since it is considered that an accurate barcode signal has been generated, a complementary process is performed by performing the same processing procedure as step S16 shown in FIG. 6 (step S236). As a result, the decoding processing unit 210a can acquire a barcode signal that is considered to be accurately reproduced as a whole barcode signal including the end element. Then, similarly to step S18 and step S20 shown in FIG. 6, a decoding process (step S238) and a decoding success determination process (step S240) are performed. In step S226 and step S234, the decode processing unit 10 holds the entire count data in the forward decoding process and the backward decoding process in the storage unit 11, and among the count data, in the determination process in step S233 and in step S236. Only a part used in the complementing process may be retained.

つぎに、図15を参照して、図14に示す順方向デコード処理について説明する。図15に示すように、順方向デコード処理として、デコード処理部210aは、図7に示すステップS21〜ステップS24と同様の処理手順を行なうことによって、順方向走査光照射処理(ステップS241)、順方向走査光受光処理(ステップS242)、順方向バーコード信号生成処理(ステップS243)、エレメント幅カウント処理(ステップS244)を行なう。   Next, the forward decoding process shown in FIG. 14 will be described with reference to FIG. As shown in FIG. 15, as the forward decoding process, the decoding processing unit 210 a performs a forward scanning light irradiation process (step S <b> 241), a forward processing by performing a processing procedure similar to steps S <b> 21 to S <b> 24 shown in FIG. 7. Direction scanning light reception processing (step S242), forward barcode signal generation processing (step S243), and element width count processing (step S244) are performed.

そして、デコード処理部210aは、順方向走査におけるバーコード信号に対するカウントデータ内の所定の比較領域内のカウント値にもとに閾値を設定する閾値設定処理を行なう(ステップS245)。たとえば、図17に示すように、バーコード信号20が所定幅よりも太いエレメントおよび所定幅よりも細いエレメントのいずれかが配列する場合、デコード処理部210aは、順方向走査におけるバーコード信号B1の比較領域BC11内の各エレメント幅をカウントしたカウントデータから、バーコード信号B1における細い幅のエレメントおよび太い幅のエレメントを分類することができるエレメント幅の閾値を設定する。この場合には、細い幅のエレメントおよび太い幅のエレメントを分類可能である図17の信号Bc1thの幅に対応する値T1を順方向デコード処理における第1の閾値として設定する。この信号Bc1thよりも幅が狭い信号、すなわち、閾値T1よりもカウント値が小さいカウント値は、細い幅のエレメントに対応すると判断できる。そして、この信号Bc1thよりも幅が広い信号、すなわち、閾値T1よりもカウント値が大きいカウント値は、太い幅のエレメントに対応すると判断できる。   Then, the decode processing unit 210a performs a threshold setting process for setting a threshold based on the count value in a predetermined comparison area in the count data for the barcode signal in the forward scanning (step S245). For example, as shown in FIG. 17, when the barcode signal 20 is arranged with either an element larger than the predetermined width or an element thinner than the predetermined width, the decoding processing unit 210a performs the barcode signal B1 in the forward scanning. Based on the count data obtained by counting the element widths in the comparison area BC11, an element width threshold value is set that can classify the narrow and wide elements in the barcode signal B1. In this case, the value T1 corresponding to the width of the signal Bc1th in FIG. 17 that can classify the narrow-width element and the thick-width element is set as the first threshold value in the forward decoding process. A signal having a narrower width than the signal Bc1th, that is, a count value having a count value smaller than the threshold value T1, can be determined to correspond to an element having a narrow width. A signal having a wider width than the signal Bc1th, that is, a count value having a count value larger than the threshold value T1, can be determined to correspond to an element having a thick width.

そして、デコード処理部210aは、比較領域内の順方向バーコード信号のカウントデータにおける第1の閾値を超えるカウント値および第1の閾値を下回るカウント値の第1の配列状態を示す第1の配列パターンを取得する配列パターン取得処理を行なう(ステップS246)。具体的には、図17に示すように、順方向バーコード信号のカウントデータにおけるカウント値が、閾値T1よりを下回る場合、閾値T1よりも幅が細いエレメントに対応すると判断でき、カウント値が、閾値T1よりを超える場合、閾値T1よりも幅が細いエレメントに対応すると判断できる。この結果、デコード処理部210aは、図17の信号Bs1のように、細いエレメントおよび太いエレメントがどのような順序で配列しているか示す配列パターンを取得することができる。   Then, the decoding processing unit 210a has a first arrangement indicating a first arrangement state of a count value exceeding the first threshold and a count value falling below the first threshold in the count data of the forward barcode signal in the comparison area. An array pattern acquisition process for acquiring a pattern is performed (step S246). Specifically, as shown in FIG. 17, when the count value in the count data of the forward barcode signal is lower than the threshold value T1, it can be determined that the element corresponds to an element having a width smaller than the threshold value T1, and the count value is When it exceeds the threshold value T1, it can be determined that it corresponds to an element having a width narrower than the threshold value T1. As a result, the decoding processing unit 210a can acquire an arrangement pattern indicating in what order the thin elements and the thick elements are arranged as in the signal Bs1 of FIG.

そして、デコード処理部210aは、記憶部11に取得したカウントデータとともに配列パターンを順方向データとして記憶させ(ステップS247)、取得したカウントデータおよび配列パターンを用いてデコード処理を行なう(ステップS248)。デコード処理部210aは、配列パターンを用いる場合には、細いエレメントおよび太いエレメントの配列状態をもとに、バーコード信号20に記録された情報を取得する。   Then, the decoding processing unit 210a stores the array pattern as forward data together with the acquired count data in the storage unit 11 (step S247), and performs a decoding process using the acquired count data and the array pattern (step S248). When using the arrangement pattern, the decoding processing unit 210a acquires information recorded in the barcode signal 20 based on the arrangement state of the thin elements and the thick elements.

つぎに、図16を参照して、図14に示す逆方向デコード処理について説明する。図16に示すように、逆方向デコード処理として、デコード処理部210aは、図8に示すステップS31〜ステップS34と同様の処理手順を行なうことによって、逆方向走査光照射処理(ステップS251)、逆方向走査光受光処理(ステップS252)、逆方向バーコード信号生成処理(ステップS253)、エレメント幅カウント処理(ステップS254)を行なう。   Next, the backward decoding process shown in FIG. 14 will be described with reference to FIG. As shown in FIG. 16, as the backward decoding process, the decoding processing unit 210 a performs the backward scanning light irradiation process (step S <b> 251), the reverse by performing the same processing procedure as step S <b> 31 to step S <b> 34 shown in FIG. 8. Direction scanning light reception processing (step S252), reverse barcode signal generation processing (step S253), and element width count processing (step S254) are performed.

そして、デコード処理部210aは、逆方向走査におけるバーコード信号に対するカウントデータ内の所定の比較領域内のカウント値にもとに閾値を設定する閾値設定処理を行なう(ステップS255)。たとえば、図17に示すように、デコード処理部210aは、逆方向走査におけるバーコード信号B2の比較領域BC21内の各エレメント幅をカウントしたカウントデータから、細い幅のエレメントおよび太い幅のエレメントを分類することができるエレメント幅の閾値を設定する。この場合には、バーコード信号B2における細い幅のエレメントおよび太い幅のエレメントを分類可能である図17の信号Bc2thの幅に対応する値T2を逆方向デコード処理における第2の閾値として設定する。この信号Bc2thのよりも幅が狭い信号、すなわち、閾値T2よりもカウント値が小さいカウント値は、細い幅のエレメントに対応すると判断できる。そして、この信号Bc2thよりも幅が広い信号、すなわち、閾値T2よりもカウント値が大きいカウント値は、太い幅のエレメントに対応すると判断できる。   Then, the decode processing unit 210a performs a threshold setting process for setting a threshold based on the count value in a predetermined comparison area in the count data for the barcode signal in the backward scanning (step S255). For example, as shown in FIG. 17, the decoding processing unit 210a classifies the narrow width element and the wide width element from the count data obtained by counting the width of each element in the comparison area BC21 of the barcode signal B2 in the backward scanning. Set a threshold of element width that can be done. In this case, a value T2 corresponding to the width of the signal Bc2th in FIG. 17 that can classify the narrow-width element and the thick-width element in the barcode signal B2 is set as the second threshold value in the backward decoding process. A signal having a narrower width than the signal Bc2th, that is, a count value having a count value smaller than the threshold value T2, can be determined to correspond to an element having a narrow width. A signal having a wider width than the signal Bc2th, that is, a count value having a count value larger than the threshold value T2, can be determined to correspond to an element having a thick width.

そして、デコード処理部210aは、比較領域内の逆方向バーコード信号のカウントデータにおける第2の閾値を超えるカウント値および第2の閾値を下回るカウント値の第1の配列状態を示す第2の配列パターンを取得する配列パターン取得処理を行なう(ステップS256)。具体的には、図17に示すように、逆方向バーコード信号のカウントデータにおけるカウント値が、閾値T2よりを下回る場合、閾値T2よりも幅が細いエレメントに対応すると判断でき、カウント値が、閾値T2よりを超える場合、閾値T2よりも幅が細いエレメントに対応すると判断できる。この結果、デコード処理部210aは、図17の信号Bs2のように、細いエレメントおよび太いエレメントがどのような順序で配列しているか示す配列パターンを取得することができる。   Then, the decode processing unit 210a has a second array indicating the first array state of the count value exceeding the second threshold and the count value falling below the second threshold in the count data of the backward barcode signal in the comparison area. An array pattern acquisition process for acquiring a pattern is performed (step S256). Specifically, as shown in FIG. 17, when the count value in the count data of the reverse barcode signal is lower than the threshold value T2, it can be determined that it corresponds to an element having a width narrower than the threshold value T2, and the count value is When it exceeds the threshold value T2, it can be determined that it corresponds to an element having a width narrower than the threshold value T2. As a result, the decoding processing unit 210a can acquire an arrangement pattern indicating in what order the thin elements and the thick elements are arranged as in the signal Bs2 of FIG.

そして、デコード処理部210aは、記憶部11に取得したカウントデータとともに配列パターンを逆方向データとして記憶させ(ステップS257)、取得したカウントデータおよび配列パターンを用いてデコード処理を行なう(ステップS258)。   Then, the decoding processing unit 210a stores the array pattern as reverse data together with the acquired count data in the storage unit 11 (step S257), and performs a decoding process using the acquired count data and the array pattern (step S258).

そして、デコード処理部210aは、図14に示すステップS233において、バーコード信号B1に対応する配列パターンを示す信号Bs1とバーコード信号B2に対応する配列パターンを示す信号Bs2とを比較し、信号Bs1と信号Bs2における細い幅のエレメントおよび太い幅のエレメントの配列状態が一致するか否かを判断する。具体的には、図18の矢印Y22に示すように、デコード処理部210aは、信号Bs1の細い幅のエレメントおよび太い幅のエレメントの配列状態と、信号Bs2の細い幅のエレメントおよび太い幅のエレメントの配列状態とが一致すると判断した場合(ステップS233:Yes)、補完対象である端部のエレメントに対応する領域以外の領域において、バーコード信号B1とバーコード信号B2における正確な配列パターンが得られているものと判断できる。このため、デコード処理部210aは、ステップS234およびステップS246に進み、補完処理を行なう。また、デコード処理部210aは、図14に示すステップS233において、信号Bs1と信号Bs2における細い幅のエレメントおよび太い幅のエレメントの配列状態が一致しないと判断した場合(ステップS233:No)、補完対象である端部のエレメントに対応する領域以外の領域においても、バーコード信号B1とバーコード信号B2における正確な配列パターンが得られていないものと判断し、ステップS222に進み、再度順方向デコード処理を行なう。   In step S233 shown in FIG. 14, the decoding processing unit 210a compares the signal Bs1 indicating the arrangement pattern corresponding to the barcode signal B1 with the signal Bs2 indicating the arrangement pattern corresponding to the barcode signal B2, and outputs the signal Bs1. And whether the arrangement state of the narrow-width element and the thick-width element in the signal Bs2 matches. Specifically, as shown by an arrow Y22 in FIG. 18, the decoding processing unit 210a performs the arrangement state of the narrow and wide elements of the signal Bs1, and the narrow and thick elements of the signal Bs2. When it is determined that the arrangement state of the barcode signal B1 matches that of the barcode signal B1 (step S233: Yes), an accurate arrangement pattern in the barcode signal B1 and the barcode signal B2 is obtained in a region other than the region corresponding to the end element to be complemented. Can be judged. For this reason, the decoding processing unit 210a proceeds to step S234 and step S246, and performs a complementing process. If the decoding processing unit 210a determines in step S233 shown in FIG. 14 that the arrangement state of the narrow-width elements and the thick-width elements in the signal Bs1 and the signal Bs2 does not match (step S233: No), the complement target It is determined that the accurate arrangement pattern in the barcode signal B1 and the barcode signal B2 is not obtained in the region other than the region corresponding to the end element, and the process proceeds to step S222, and the forward decoding process is performed again. To do.

図13〜図18に示すように、各太さのエレメントの配列状態をもとにバーコード記号20の情報を読み取る場合においても、所定の比較領域における所定の比較領域における各太さのエレメントの配列状態を比較した後に補完処理を行なうことによって、カウントデータの補完処理における正確性をさらに高めることが可能になる。   As shown in FIGS. 13 to 18, even when the information of the barcode symbol 20 is read based on the arrangement state of the elements of each thickness, the elements of each thickness in the predetermined comparison area in the predetermined comparison area are read. By performing the complement processing after comparing the array states, it is possible to further improve the accuracy in the count data complement processing.

なお、図17および図18においては、バーコード記号20が細いエレメントおよび太いエレメントの2種によって形成されている場合であって単数の閾値をそれぞれ設定した場合について説明したが、これに限らない。デコード処理部210aは、バーコード記号20を構成するエレメントの幅が3種類以上ある場合には、各種類のエレメントの幅に対応させた閾値をそれぞれ設定して、各配列パターンを取得すればよい。たとえば、バーコード記号20のエレメントの太さが、太、中、細の3種に別れる場合には、エレメントの太さが太、中のものを分類可能である閾値と、エレメントの太さが中、細のものを分類可能である閾値との2種の閾値を、順方向デコード処理および逆方向デコード処理のそれぞれにおいて設定し、各2種の閾値をもとに太、中、細のエレメントを分類すればよい。また、各閾値の数は、読取対象であるバーコード記号20を構成するエレメントの各太さに応じて、図示しない外部装置から入力された指示情報にしたがって変更可能である。   In FIGS. 17 and 18, the case where the barcode symbol 20 is formed by two types of thin elements and thick elements and a single threshold value is set has been described, but the present invention is not limited to this. When there are three or more types of element widths constituting the barcode symbol 20, the decode processing unit 210a may set each threshold value corresponding to the width of each type of element and acquire each array pattern. . For example, if the element thickness of the barcode symbol 20 is divided into three types: thick, medium, and thin, the threshold value that allows the element thickness to be classified as thick and medium, and the element thickness Two types of threshold values, a threshold value that can classify medium and thin items, are set in each of the forward decoding process and the backward decoding process, and thick, medium, and thin elements are set based on the two types of threshold values. Can be classified. Further, the number of each threshold can be changed according to instruction information input from an external device (not shown) according to the thickness of each element constituting the barcode symbol 20 to be read.

(実施の形態3)
つぎに、実施の形態3について説明する。図19は、実施の形態3にかかるバーコード読取装置の構成を示す模式図である。図19に示すように、実施の形態3にかかるバーコード読取装置301は、図10に示すバーコード読取装置201におけるデコード処理部210に代えて、デコード処理部310を備えた構成を有する。デコード処理部310は、受光手段における逆方向走査速度と順方向走査速度とが異なる場合、逆方向走査に対応するカウントデータと順方向走査に対応するカウントデータのいずれか一方を他方のカウントデータにおける走査速度に対応させて補正した後に補完処理を行なう。
(Embodiment 3)
Next, a third embodiment will be described. FIG. 19 is a schematic diagram illustrating a configuration of the barcode reading apparatus according to the third embodiment. As illustrated in FIG. 19, the barcode reading apparatus 301 according to the third embodiment includes a decoding processing unit 310 instead of the decoding processing unit 210 in the barcode reading apparatus 201 illustrated in FIG. 10. When the reverse scanning speed and the forward scanning speed in the light receiving unit are different, the decoding processing unit 310 converts either the count data corresponding to the backward scanning or the count data corresponding to the forward scanning in the other count data. Complement processing is performed after correction corresponding to the scanning speed.

つぎに、図19に示すバーコード読取装置301のバーコード読取処理について説明する。図20は、図19に示すバーコード読取装置301におけるバーコード読取処理の処理手順を示すフローチャートである。   Next, the barcode reading process of the barcode reading device 301 shown in FIG. 19 will be described. FIG. 20 is a flowchart showing a processing procedure of barcode reading processing in the barcode reading apparatus 301 shown in FIG.

図20に示すように、バーコード読取装置301は、図11のステップS202〜ステップS212と同様に、順方向デコード処理(ステップS302)、デコード成功判断処理(ステップS304)、順方向データ保持処理(ステップS306)、逆方向デコード処理(ステップS308)、デコード成功判断処理(ステップS310)および最初のキャラクタパターン不一致判断処理(ステップS311)を行なう。   As shown in FIG. 20, the bar code reader 301 performs forward decoding processing (step S302), decoding success determination processing (step S304), and forward data holding processing (step S304) as in steps S202 to S212 of FIG. Step S306), backward decoding processing (step S308), decoding success determination processing (step S310), and first character pattern mismatch determination processing (step S311) are performed.

そして、デコード処理部310は、逆方向走査に対応するカウントデータと順方向走査に対応するカウントデータのいずれか一方を他方のカウントデータにおける走査速度に対応させて補正する補正処理を行なう(ステップS312)。たとえば、デコード処理部310は、図21に示すように、逆方向走査における走査速度が順方向走査における走査速度よりも遅く、バーコード信号B2bの各エレメント幅が、順方向走査におけるバーコード信号B1と異なる時間幅となる場合、矢印Y31に示すように、逆方向走査のバーコード信号を順方向走査における走査速度に対応させて補正したバーコード信号B2cを生成する。そして、デコード処理部310は、バーコードB1と補正したバーコード信号B2cとを用いて、図11に示すステップS213〜ステップS220と同様に、比較領域のカウント値の一致判断処理(ステップS313)、逆方向データ保持処理(ステップS314)、補完処理(ステップS316)、デコード処理(ステップS318)およびデコード成功判断処理(ステップS320)を行なう。   Then, the decode processing unit 310 performs a correction process for correcting either one of the count data corresponding to the backward scanning and the count data corresponding to the forward scanning in accordance with the scanning speed of the other count data (step S312). ). For example, as shown in FIG. 21, the decoding processing unit 310 has a scanning speed in the backward scanning slower than the scanning speed in the forward scanning, and each element width of the barcode signal B2b has a barcode signal B1 in the forward scanning. As shown by an arrow Y31, the barcode signal B2c is generated by correcting the barcode signal in the backward scanning in accordance with the scanning speed in the forward scanning. Then, the decode processing unit 310 uses the barcode B1 and the corrected barcode signal B2c, similarly to steps S213 to S220 shown in FIG. 11, to determine the comparison value of the comparison area count value (step S313), Reverse data holding processing (step S314), complement processing (step S316), decoding processing (step S318), and decoding success determination processing (step S320) are performed.

このように、実施の形態3によれば、順方向走査と逆方向走査における走査速度が異なっていた場合であっても、補正処理後に補完処理を行なうことによって、デコード処理の正確性を高めることができる。   Thus, according to the third embodiment, even if the scanning speeds in the forward scanning and the backward scanning are different, the accuracy of the decoding process is improved by performing the complementing process after the correction process. Can do.

(実施の形態4)
つぎに、実施の形態4について説明する。図22は、実施の形態4にかかるバーコード読取装置の構成を示す模式図である。図22に示すように、実施の形態4にかかるバーコード読取装置401は、図1に示すバーコード読取装置1における反射ミラー3、走査ミラー4、集光ミラー5、光学フィルタ6、センサ7およびシールド8に代えて、撮像部407および転送処理部408を備える。また、バーコード読取装置401は、図1に示すバーコード読取装置1における信号処理部9に代えて、信号処理部409を備える。なお、光源2は、バーコード記号20全体に光を照射する。
(Embodiment 4)
Next, a fourth embodiment will be described. FIG. 22 is a schematic diagram illustrating a configuration of the barcode reading apparatus according to the fourth embodiment. As shown in FIG. 22, the barcode reader 401 according to the fourth embodiment includes a reflection mirror 3, a scanning mirror 4, a condensing mirror 5, an optical filter 6, a sensor 7, and a sensor 7 in the barcode reader 1 shown in FIG. Instead of the shield 8, an imaging unit 407 and a transfer processing unit 408 are provided. Further, the barcode reading apparatus 401 includes a signal processing unit 409 instead of the signal processing unit 9 in the barcode reading apparatus 1 shown in FIG. The light source 2 irradiates the entire barcode symbol 20 with light.

撮像部407は、CCD(Charge Coupled Diode)などによって構成され、光源2によってバーコード記号20全体に照射された光のうちバーコード記号20全体から反射された反射光を受光して、このバーコード記号20全体に対応する受光信号を生成する。撮像部407は、図23に例示するように、バーコード記号20全体から反射された反射光の受光量を示す波形の受光信号Wcを生成する。転送処理部408は、撮像部407から出力された受光信号を記憶するメモリ408aを備え、受光信号を信号処理部409に転送する。   The imaging unit 407 is configured by a CCD (Charge Coupled Diode) or the like, and receives the reflected light reflected from the entire barcode symbol 20 out of the light irradiated to the entire barcode symbol 20 by the light source 2, and this barcode. A light reception signal corresponding to the entire symbol 20 is generated. As illustrated in FIG. 23, the imaging unit 407 generates a light reception signal Wc having a waveform indicating the amount of reflected light reflected from the entire barcode symbol 20. The transfer processing unit 408 includes a memory 408 a that stores the light reception signal output from the imaging unit 407, and transfers the light reception signal to the signal processing unit 409.

信号処理部409は、転送処理部409から転送された受光信号を記憶するメモリ409aを備える。信号処理部409は、メモリ409aに記憶された受光信号を取得して、第1の処理方向にしたがい波形信号を変換することによって第1のバーコード信号を生成し、第2の処理方向にしたがい波形信号を変換することによって第2のバーコード信号を生成する。具体的には、図23に示すように、信号処理部409は、順方向であるC1方向にしたがって受光信号Wcを1次微分した後に各ピーク信号を検出して順方向バーコード信号を生成する。そして、信号処理部409は、デコード処理部10における順方向バーコード信号に対するデコード処理が失敗した場合、逆方向であるC2方向にしたがって受光信号Wcを処理して逆方向バーコード信号を生成する。この場合も、実施の形態1と同様に、絵、文字または白以外の背景色がマージン領域にある場合にはマージン領域の影響を受けてしまい、バーコード信号の最初部分は、端部のエレメントの幅を正確に再現していない場合がある。このため、実施の形態1と同様に、デコード処理部10は、端部のエレメント幅を正確にカウントしたカウントデータを補完処理において生成することによって、正確なデコード処理を実現している。   The signal processing unit 409 includes a memory 409 a that stores the light reception signal transferred from the transfer processing unit 409. The signal processing unit 409 acquires the received light signal stored in the memory 409a, generates a first barcode signal by converting the waveform signal according to the first processing direction, and follows the second processing direction. A second barcode signal is generated by converting the waveform signal. Specifically, as shown in FIG. 23, the signal processing unit 409 first differentiates the received light signal Wc according to the C1 direction which is the forward direction and then detects each peak signal to generate a forward barcode signal. . When the decoding process on the forward barcode signal in the decoding processor 10 fails, the signal processing unit 409 processes the light reception signal Wc according to the C2 direction which is the reverse direction to generate a reverse barcode signal. Also in this case, as in the first embodiment, when a background color other than a picture, character, or white is in the margin area, it is affected by the margin area, and the first part of the barcode signal is the end element. The width of may not be accurately reproduced. For this reason, as in the first embodiment, the decoding processing unit 10 realizes accurate decoding processing by generating count data obtained by accurately counting the element width of the end portion in the complementing processing.

つぎに、図24を参照して、バーコード読取装置401のバーコード読取処理について説明する。図24は、図22に示すバーコード読取装置401におけるバーコード読取処理の処理手順を示すフローチャートである。   Next, the barcode reading process of the barcode reading device 401 will be described with reference to FIG. FIG. 24 is a flowchart showing the processing procedure of the barcode reading process in the barcode reading device 401 shown in FIG.

まず、図24に示すように、撮像部407は、バーコード記号20全体からの反射光を受光してバーコード記号20全体に対応する受光信号を生成し転送処理部408に出力する撮像処理を行なう(ステップS402)。転送処理部408は、撮像部407から出力された受光信号を信号処理部409に転送する転送処理を行なう(ステップS404)。つぎに、信号処理部409は、転送処理部408から転送された受光信号をメモリ409aに記憶させる(ステップS406)。そして、信号処理部409およびデコード処理部10は、たとえば図23のC1方向で受光信号を処理してデコード処理を行なう順方向デコード処理を行なう(ステップS408)。つぎに、ステップS408における順方向デコード処理が成功または失敗したかを判断する(ステップS410)。デコード処理部10は、順方向デコード処理が成功したと判断した場合(ステップS410:成功)、読み取ったバーコード記号20の情報を図示しない外部装置に出力するとともに順方向デコード処理において用いられたカウントデータを消去してバーコード読取処理を終了する。   First, as illustrated in FIG. 24, the imaging unit 407 performs imaging processing that receives reflected light from the entire barcode symbol 20, generates a received light signal corresponding to the entire barcode symbol 20, and outputs the received light signal to the transfer processing unit 408. This is performed (step S402). The transfer processing unit 408 performs a transfer process of transferring the light reception signal output from the imaging unit 407 to the signal processing unit 409 (step S404). Next, the signal processing unit 409 stores the received light signal transferred from the transfer processing unit 408 in the memory 409a (step S406). Then, the signal processing unit 409 and the decoding processing unit 10 perform forward decoding processing for processing the received light signal in the C1 direction of FIG. 23 and performing decoding processing (step S408). Next, it is determined whether the forward decoding process in step S408 has succeeded or failed (step S410). When the decoding processing unit 10 determines that the forward decoding process is successful (step S410: success), the decoding processing unit 10 outputs the read barcode symbol 20 information to an external device (not shown) and counts used in the forward decoding process. The data is erased and the barcode reading process is terminated.

一方、デコード処理部10は、順方向デコード処理が失敗したと判断した場合(ステップS410:失敗)、順方向デコード処理において用いられたカウントデータを記憶部11に保持した後に(ステップS412)、たとえば図23のC2方向で受光信号を処理してデコード処理を行なう逆方向デコード処理を行なう(ステップS414)。そして、デコード処理部10は、ステップS414における逆方向デコード処理が成功または失敗したかを判断する(ステップS416)。デコード処理部10は、逆方向デコード処理が成功したと判断した場合(ステップS416:成功)、読み取ったバーコード記号20の情報を図示しない外部装置に出力するとともに順方向デコード処理および逆方向デコード処理において用いられたカウントデータを消去してバーコード読取処理を終了する。   On the other hand, when the decoding processing unit 10 determines that the forward decoding process has failed (step S410: failure), after holding the count data used in the forward decoding process in the storage unit 11 (step S412), for example, A reverse decoding process is performed in which the received light signal is processed in the C2 direction of FIG. 23 to perform a decoding process (step S414). Then, the decoding processing unit 10 determines whether the backward decoding process in step S414 has succeeded or failed (step S416). When the decoding processing unit 10 determines that the backward decoding process has been successful (step S416: success), the decoding processing unit 10 outputs the read barcode symbol 20 information to an external device (not shown), and forward decoding processing and backward decoding processing. The count data used in is erased and the barcode reading process is terminated.

一方、デコード処理部10は、逆方向デコード処理が失敗したと判断した場合(ステップS416:失敗)、図6に示すステップS12〜ステップS20と同様に、最初のキャラクタパターン不一致判断処理(ステップS418)、逆方向データ保持処理(ステップS420)、補完処理(ステップS422)、デコード処理(ステップS424)、デコード成功判断処理(ステップS426)を行なう。   On the other hand, when the decoding processing unit 10 determines that the backward decoding process has failed (step S416: failure), the first character pattern mismatch determination process (step S418) is performed in the same manner as in steps S12 to S20 illustrated in FIG. The backward data holding process (step S420), the complementing process (step S422), the decoding process (step S424), and the decoding success determination process (step S426) are performed.

つぎに、図24に示す順方向デコード処理について説明する。図25は、図24に示す順方向デコード処理の処理手順を示すフローチャートである。図25に示すように、まず、信号処理部409は、メモリ409aに記憶された受光信号を取得する(ステップS431)。そして、信号処理部409は、たとえば図23の順方向であるC1方向にしたがって受光信号Wcをバーコード信号に変換して順方向バーコード信号を生成し(ステップS433)、デコード処理部10に出力する。デコード処理部10は、図7のステップS24〜ステップS26と同様に、エレメント幅カウント処理(ステップS434)、順方向データ記憶処理(ステップS435)およびデコード処理(ステップS436)を行なう。   Next, the forward decoding process shown in FIG. 24 will be described. FIG. 25 is a flowchart of a process procedure of the forward decoding process shown in FIG. As shown in FIG. 25, first, the signal processing unit 409 acquires the received light signal stored in the memory 409a (step S431). Then, for example, the signal processing unit 409 converts the received light signal Wc into a barcode signal in accordance with the C1 direction which is the forward direction in FIG. 23 to generate a forward barcode signal (step S433), and outputs it to the decode processing unit 10 To do. The decode processing unit 10 performs an element width count process (step S434), a forward data storage process (step S435), and a decode process (step S436), similarly to steps S24 to S26 of FIG.

つぎに、図24に示す逆方向デコード処理について説明する。図26は、図24に示す逆方向デコード処理の処理手順を示すフローチャートである。図26に示すように、信号処理部409は、メモリ409aに記憶された受光信号を取得する(ステップS441)。そして、信号処理部409は、たとえば図23の逆方向であるC2方向にしたがって受光信号Wcをバーコード信号に変換して逆方向バーコード信号を生成し(ステップS443)、デコード処理部10に出力する。デコード処理部10は、図8のステップS34〜ステップS36と同様に、エレメント幅カウント処理(ステップS444)、逆方向データ記憶処理(ステップS445)およびデコード処理(ステップS446)を行なう。   Next, the backward decoding process shown in FIG. 24 will be described. FIG. 26 is a flowchart of a process procedure of the backward decoding process shown in FIG. As shown in FIG. 26, the signal processing unit 409 acquires the received light signal stored in the memory 409a (step S441). Then, for example, the signal processing unit 409 converts the received light signal Wc into a barcode signal in accordance with the C2 direction that is the reverse direction of FIG. 23 to generate a backward barcode signal (step S443), and outputs the barcode signal to the decoding processor 10 To do. The decode processing unit 10 performs an element width count process (step S444), a reverse data storage process (step S445), and a decode process (step S446) in the same manner as steps S34 to S36 of FIG.

このように、実施の形態4においては、CCDなどのような撮像素子を有するバーコード読取装置においても、受光信号の処理方向を変えてそれぞれ生成したバーコード信号を用いることによって補完処理を行なっている。この結果、実施の形態4によれば、実施の形態1と同様に、バーコード記号の端部に位置する端部エレメントに起因してデコードが失敗した場合、端部エレメントの計測値を、異なる処理方向で処理したバーコード信号における端部エレメントの計測値で置き換えて補完し、再度デコードすることによって、バーコード記号端部のエレメントを正確に表したバーコード信号を生成することができない場合であっても、バーコード記号を正確に読み取ることができる。   As described above, in the fourth embodiment, even in a barcode reading apparatus having an image sensor such as a CCD, complementary processing is performed by using barcode signals generated by changing the processing direction of the received light signal. Yes. As a result, according to the fourth embodiment, as in the first embodiment, when the decoding fails due to the end element located at the end of the barcode symbol, the measurement value of the end element is different. When a barcode signal that accurately represents the element at the end of the bar code symbol cannot be generated by substituting with the measured value of the end element in the bar code signal processed in the processing direction, complementing it, and decoding again. Even so, the bar code symbol can be read accurately.

なお、実施の形態4においては、転送処理部408における受光信号の転送方向を変えることによって、受光信号に対する処理方向を変えてもよい。具体的に、図27を参照して説明する。図27は、図22に示すバーコード読取装置401におけるバーコード読取処理の他の処理手順を示すフローチャートである。   In the fourth embodiment, the processing direction for the received light signal may be changed by changing the transfer direction of the received light signal in the transfer processing unit 408. Specifically, this will be described with reference to FIG. FIG. 27 is a flowchart showing another processing procedure of the barcode reading process in the barcode reader 401 shown in FIG.

図27に示すように、撮像部407は、図24のステップS402と同様に撮像処理を行なう(ステップS502)。転送処理部408は、撮像部407から出力された受光信号をメモリ408a内に記憶させる(ステップS504)。そして、転送処理部408は、たとえば図23に示す順方向であるC1方向にしたがって、メモリ408a内に記憶させた受光信号を信号処理部409に転送する順方向転送処理を行なう(ステップS506)。信号処理部409およびデコード処理部10は、順方向に転送された受光信号を用いて、図24に示すステップS408と同様の処理手順を行なって、順方向デコード処理を行なう(ステップS508)。具体的には、信号処理部409は、順方向に転送された受光信号を転送順にしたがってバーコード信号に変換し、デコード処理部10は、このバーコード信号におけるカウントデータをもとにデコード処理を行なう。   As illustrated in FIG. 27, the imaging unit 407 performs an imaging process in the same manner as in step S402 in FIG. 24 (step S502). The transfer processing unit 408 stores the light reception signal output from the imaging unit 407 in the memory 408a (step S504). Then, the transfer processing unit 408 performs forward transfer processing for transferring the received light signal stored in the memory 408a to the signal processing unit 409, for example, according to the C1 direction shown in FIG. 23 (step S506). The signal processing unit 409 and the decoding processing unit 10 perform the forward decoding process by performing the same processing procedure as step S408 shown in FIG. 24 using the received light signal transferred in the forward direction (step S508). Specifically, the signal processing unit 409 converts the received light signal transferred in the forward direction into a barcode signal according to the transfer order, and the decoding processing unit 10 performs a decoding process based on the count data in the barcode signal. Do.

そして、デコード処理部10は、図24に示すステップS410と同様に、デコード成功判断処理(ステップS510)を行い、順方向バーコード信号に対するデコード処理が失敗したと判断した場合(ステップS510:失敗)、図24に示すステップS412と同様に、順方向データ保持処理を行なう(ステップS512)。   Then, similarly to step S410 shown in FIG. 24, the decoding processing unit 10 performs the decoding success determination process (step S510), and determines that the decoding process for the forward barcode signal has failed (step S510: failure). Similarly to step S412 shown in FIG. 24, forward data holding processing is performed (step S512).

つぎに、転送処理部408は、たとえば図23に示す逆方向であるC2方向にしたがって、メモリ408a内に記憶させた受光信号を信号処理部410に転送する逆方向転送処理を行なう(ステップS513)。信号処理部409およびデコード処理部409は、逆方向に転送された受光信号を用いて、図24に示すステップS414と同様の処理手順を行なって、逆方向デコード処理を行なう(ステップS514)。具体的には、信号処理部409は、逆方向に転送された受光信号を転送順にしたがってバーコード信号に変換し、デコード処理部10は、このバーコード信号におけるカウントデータをもとにデコード処理を行なう。   Next, the transfer processing unit 408 performs a reverse transfer process of transferring the received light signal stored in the memory 408a to the signal processing unit 410 in accordance with the C2 direction which is the reverse direction shown in FIG. 23, for example (step S513). . The signal processing unit 409 and the decoding processing unit 409 use the received light signal transferred in the reverse direction to perform the same decoding procedure as that in step S414 shown in FIG. 24 and perform the reverse decoding process (step S514). Specifically, the signal processing unit 409 converts the received light signal transferred in the reverse direction into a barcode signal according to the transfer order, and the decoding processing unit 10 performs the decoding process based on the count data in the barcode signal. Do.

そして、デコード処理部10は、図24に示すステップS416〜ステップS426と同様に、デコード成功判断処理(ステップS516)、最初のキャラクタパターン不一致判断処理(ステップS518)、逆方向データ保持処理(ステップS520)、補完処理(ステップS522)、デコード処理(ステップS524)、デコード成功判断処理(ステップS526)を行なう。このように、転送処理部408における受光信号の転送方向を変えることによって、受光信号に対する処理方向を変えて補完処理を行なえるため、バーコード記号を正確に読み取ることができる。   Then, the decoding processing unit 10 performs the decoding success determination processing (step S516), the first character pattern mismatch determination processing (step S518), and the backward data holding processing (step S520), similarly to steps S416 to S426 shown in FIG. ), Complement processing (step S522), decoding processing (step S524), and decoding success determination processing (step S526). As described above, by changing the transfer direction of the received light signal in the transfer processing unit 408, the complementary processing can be performed by changing the processing direction for the received light signal, so that the barcode symbol can be read accurately.

また、本実施の形態1〜4において、バーコード記号20の右端部のエレメントEeについて逆方向バーコード信号を補完した場合について説明したが、これに限らず、図28に示すように、バーコード記号20における左端部のエレメントEsのカウント値について順方向バーコード信号を補完してもよい。たとえば、図28の矢印Y41に示すように、S1方向にしたがった順方向バーコード信号内のエレメントEsに対応する領域B1tの最初のカウント値を、S2方向にしたがった逆方向バーコード信号におけるエレメントEsに対応する領域B2lの最後のカウントで置き換えることによって、順方向バーコード信号のカウントデータを補完してもよい。デコード処理部10,210,310は、補完した順方向バーコード信号のカウントデータを用いて、図6に示すステップS18、図11に示すステップS218、図20に示すステップS318、図24に示すステップS424および図27に示すステップS524における再度のデコード処理を行なえばよい。また、実施の形態2においては、図11に示すステップS213において、たとえば図28の矢印Y42に示すように、順方向バーコード信号内の領域Bd1の各エレメント幅と、逆方向バーコード信号内の領域Bd2内の各エレメント幅とを比較してもよい。また、図14に示すステップS213において、たとえば図28の矢印Y42に示すように、順方向バーコード信号内の領域Bd1の各幅のエレメントの配列パターンと、逆方向バーコード信号内の領域Bd2内の各幅のエレメントの配列パターンとを比較してもよい。   In the first to fourth embodiments, the case where the backward barcode signal is complemented for the element Ee at the right end of the barcode symbol 20 has been described. However, the present invention is not limited to this, and as shown in FIG. The forward barcode signal may be supplemented with respect to the count value of the element Es at the left end of the symbol 20. For example, as indicated by an arrow Y41 in FIG. 28, the first count value of the region B1t corresponding to the element Es in the forward barcode signal in the S1 direction is the element in the backward barcode signal in the S2 direction. The count data of the forward barcode signal may be supplemented by replacing with the last count of the area B2l corresponding to Es. The decode processing units 10, 210, and 310 use the count data of the complemented forward bar code signal, step S18 shown in FIG. 6, step S218 shown in FIG. 11, step S318 shown in FIG. 20, and step shown in FIG. What is necessary is just to perform the decoding process again in S424 and step S524 shown in FIG. In the second embodiment, in step S213 shown in FIG. 11, for example, as indicated by an arrow Y42 in FIG. 28, each element width of the region Bd1 in the forward barcode signal and the backward barcode signal You may compare each element width in area | region Bd2. Further, in step S213 shown in FIG. 14, for example, as shown by an arrow Y42 in FIG. 28, the array pattern of elements of each width in the area Bd1 in the forward barcode signal and the area Bd2 in the backward barcode signal You may compare with the arrangement pattern of the elements of each width.

また、本実施の形態1〜3においては、双方向の走査が可能である走査ミラーを備えたバーコード読取装置1,201,301について説明したが、これに限らず、走査光の照射領域が操作者によって走査されるペン型のバーコード読取装置についても適用可能である。   In the first to third embodiments, the barcode readers 1, 201, and 301 including scanning mirrors capable of bidirectional scanning have been described. The present invention can also be applied to a pen-type barcode reader scanned by an operator.

実施の形態1にかかるバーコード読取装置の構成を示す模式図である。1 is a schematic diagram illustrating a configuration of a barcode reading apparatus according to a first embodiment. 図1に示すバーコード読取装置の走査光の方向を説明する図である。It is a figure explaining the direction of the scanning light of the barcode reader shown in FIG. 図1に示すS2方向にしたがって逆方向走査光が照射された場合における逆方向バーコード信号を示す図である。It is a figure which shows a reverse direction barcode signal when reverse direction scanning light is irradiated according to the S2 direction shown in FIG. 図1に示すS1方向にしたがって順方向走査光が照射された場合における順方向バーコード信号を示す図である。It is a figure which shows a forward barcode signal in case the forward scanning light is irradiated according to the S1 direction shown in FIG. 図1に示すデコード処理部における補完処理を説明する図である。It is a figure explaining the complementation process in the decoding process part shown in FIG. 図6は、図1に示すバーコード読取装置におけるバーコード読取処理の処理手順を示すフローチャートである。FIG. 6 is a flowchart showing the processing procedure of the barcode reading process in the barcode reading apparatus shown in FIG. 図6に示す順方向デコード処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the forward direction decoding process shown in FIG. 図6に示す逆方向デコード処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the reverse direction decoding process shown in FIG. 図6に示す補完処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the complementation process shown in FIG. 実施の形態2にかかるバーコード読取装置の構成を示す模式図である。FIG. 3 is a schematic diagram illustrating a configuration of a barcode reading apparatus according to a second embodiment. 図10に示すバーコード読取装置におけるバーコード読取処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the barcode reading process in the barcode reading apparatus shown in FIG. 図10に示すデコード処理部の処理動作を説明する図である。It is a figure explaining the processing operation of the decoding process part shown in FIG. 実施の形態2にかかるバーコード読取装置の他の構成を示す模式図である。FIG. 10 is a schematic diagram illustrating another configuration of the barcode reading apparatus according to the second embodiment. 図13に示すバーコード読取装置におけるバーコード読取処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the barcode reading process in the barcode reading apparatus shown in FIG. 図14に示す順方向デコード処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the forward direction decoding process shown in FIG. 図14に示す逆方向デコード処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the reverse direction decoding process shown in FIG. 図14に示すデコード処理部の処理内容を説明する図である。It is a figure explaining the processing content of the decoding process part shown in FIG. 図14に示すデコード処理部の処理内容を説明する図である。It is a figure explaining the processing content of the decoding process part shown in FIG. 実施の形態3にかかるバーコード読取装置の構成を示す模式図である。FIG. 6 is a schematic diagram illustrating a configuration of a barcode reading apparatus according to a third embodiment. 図19に示すバーコード読取装置におけるバーコード読取処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the barcode reading process in the barcode reading apparatus shown in FIG. 図20に示す補正処理を説明する図である。It is a figure explaining the correction process shown in FIG. 実施の形態4にかかるバーコード読取装置の構成を示す模式図である。FIG. 6 is a schematic diagram illustrating a configuration of a barcode reading apparatus according to a fourth embodiment. 図22に示すバーコード読取処理における受光信号の処理方向を説明する図である。It is a figure explaining the process direction of the received light signal in the barcode reading process shown in FIG. 図22に示すバーコード読取装置におけるバーコード読取処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the barcode reading process in the barcode reading apparatus shown in FIG. 図24に示す順方向デコード処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the forward direction decoding process shown in FIG. 図24に示す逆方向デコード処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the reverse direction decoding process shown in FIG. 図22に示すバーコード読取装置におけるバーコード読取処理の他の処理手順を示すフローチャートである。It is a flowchart which shows the other process sequence of the barcode reading process in the barcode reading apparatus shown in FIG. 図6に示す補完処理を説明する図である。It is a figure explaining the complementation process shown in FIG.

符号の説明Explanation of symbols

1,201,201a,301,401 バーコード読取装置
2 光源
3 反射ミラー
4 走査ミラー
5 集光ミラー
6 光学フィルタ
7 センサ
8 シールド
9 信号処理部
10,210,210a,310 デコード処理部
11 記憶部
20 バーコード記号
407 撮像部
408 転送処理部
409 信号処理部
408a,409a メモリ
1, 201, 201a, 301, 401 Barcode reader 2 Light source 3 Reflecting mirror 4 Scanning mirror 5 Condensing mirror 6 Optical filter 7 Sensor 8 Shield 9 Signal processing unit 10, 210, 210a, 310 Decoding processing unit 11 Storage unit 20 Bar code symbol 407 Imaging unit 408 Transfer processing unit 409 Signal processing unit 408a, 409a Memory

Claims (24)

記録された情報に応じた幅で各エレメントが表示されたバーコード記号の各エレメント幅を表すバーコード信号を生成する信号処理手段と、前記バーコード信号に表される各エレメント幅を計測した計測情報を用いて前記バーコード記号に記録された情報をデコードするデコード処理手段とを備えたバーコード読取装置において、
前記信号処理手段は、第1の処理方向で第1の前記バーコード信号を生成するとともに前記第1の処理方向と異なる方向である第2の処理方向で第2の前記バーコード信号を生成でき、
前記デコード処理手段は、前記第1のバーコード信号に対するデコードが前記バーコード記号の端部に位置する端部エレメントに起因して失敗した場合、前記第1のバーコード信号における前記端部エレメントに対応する信号を、前記第2のバーコード信号における前記端部エレメントに対応する信号で置き換えて前記第1のバーコード信号を補完する補完処理を行い、補完した前記第1のバーコード信号を用いて再度デコードすることを特徴とするバーコード読取装置。
Signal processing means for generating a barcode signal representing each element width of the barcode symbol in which each element is displayed with a width corresponding to the recorded information, and measurement by measuring each element width represented by the barcode signal In a barcode reading apparatus comprising decoding processing means for decoding information recorded in the barcode symbol using information,
The signal processing means is capable of generating the first barcode signal in a first processing direction and generating the second barcode signal in a second processing direction that is different from the first processing direction. ,
When the decoding for the first barcode signal fails due to the end element located at the end of the barcode symbol, the decoding processing means applies the end element in the first barcode signal to the end element. A corresponding signal is replaced with a signal corresponding to the end element in the second barcode signal to perform a complementing process for complementing the first barcode signal, and the complemented first barcode signal is used. And a bar code reader for decoding again.
前記デコード処理手段は、前記補完処理として、前記第1のバーコード信号の第1の前記計測情報における前記端部エレメントの計測値を、前記第2のバーコード信号の第2の前記計測情報における前記端部エレメントの計測値で置き換えて前記第1の計測情報を補完し、補完した前記第1の計測情報を用いて再度デコードすることを特徴とする請求項1に記載のバーコード読取装置。   The decoding processing means uses the measurement value of the end element in the first measurement information of the first barcode signal as the complement processing, and the second measurement information of the second barcode signal in the second measurement information. The barcode reading apparatus according to claim 1, wherein the barcode is replaced with a measurement value of the end element to complement the first measurement information, and is decoded again using the complemented first measurement information. 前記デコード処理手段は、前記バーコード記号の所定の比較領域内のエレメントに対する前記第1の計測情報の計測値と前記第2の計測情報の計測値との差が所定の範囲であった場合に、前記補完処理を行なうことを特徴とする請求項2に記載のバーコード読取装置。   When the difference between the measurement value of the first measurement information and the measurement value of the second measurement information for an element in a predetermined comparison area of the barcode symbol is within a predetermined range, the decoding processing means The barcode reading apparatus according to claim 2, wherein the complementing process is performed. 前記所定の範囲は、変更可能であることを特徴とする請求項3に記載のバーコード読取装置。   The barcode reading apparatus according to claim 3, wherein the predetermined range is changeable. 前記デコード処理手段は、前記バーコード記号の所定の比較領域内のエレメントに対する前記第1の計測情報の計測値と前記第2の計測情報の計測値とをもとに前記第1の計測情報における第1の閾値および前記第2の計測情報における第2の閾値を設定し、前記比較領域内の前記第1の計測情報における前記第1の閾値を超える計測値および前記第1の閾値を下回る計測値の第1の配列状態と、前記比較領域内の前記第2の計測情報における前記第2の閾値を超える計測値および前記第2の閾値を下回る計測値の第2の配列状態とが一致した場合、前記補完処理を行なうことを特徴とする請求項2に記載のバーコード読取装置。   In the first measurement information, the decoding processing means is configured to use the measurement value of the first measurement information and the measurement value of the second measurement information for the element in the predetermined comparison area of the barcode symbol. A first threshold value and a second threshold value in the second measurement information are set, and a measurement value that exceeds the first threshold value in the first measurement information in the comparison region and a measurement that is less than the first threshold value. The first arrangement state of the values coincides with the second arrangement state of the measurement values exceeding the second threshold and the measurement values less than the second threshold in the second measurement information in the comparison region 3. The barcode reader according to claim 2, wherein the complementary processing is performed. 前記第1の閾値の数および前記第2の閾値の数は、変更可能であることを特徴とする請求項5に記載のバーコード読取装置。   6. The barcode reader according to claim 5, wherein the number of the first threshold and the number of the second threshold can be changed. 前記バーコード記号に前記第1の処理方向または前記第2の処理方向にしたがって走査光を照射し該バーコード記号における各領域から順次反射される反射光を受光する受光手段をさらに備え、
前記信号処理手段は、前記受光手段による前記第1の処理方向に対応する受光結果をもとに前記第1のバーコード信号を生成し、前記受光手段による前記第2の処理方向に対応する受光結果をもとに前記第2のバーコード信号を生成することを特徴とする請求項1〜6のいずれか一つに記載のバーコード読取装置。
Further comprising light receiving means for irradiating the barcode symbol with scanning light according to the first processing direction or the second processing direction and receiving reflected light sequentially reflected from each region in the barcode symbol;
The signal processing unit generates the first barcode signal based on a light reception result corresponding to the first processing direction by the light receiving unit, and receives light corresponding to the second processing direction by the light receiving unit. 7. The bar code reader according to claim 1, wherein the second bar code signal is generated based on a result.
前記デコード処理手段は、前記受光手段における前記第1の処理方向の走査速度と前記第2の処理方向の走査速度とが異なる場合、前記第1の計測情報または前記第2の計測情報のいずれか一方を他方の計測情報における走査速度に対応させて補正した後に前記補完処理を行なうことを特徴とする請求項7に記載のバーコード読取装置。   When the scanning speed in the first processing direction and the scanning speed in the second processing direction in the light receiving means are different from each other, the decoding processing means is either the first measurement information or the second measurement information. 8. The barcode reading apparatus according to claim 7, wherein the complementary processing is performed after correcting one in correspondence with the scanning speed in the other measurement information. 前記受光手段は、
光を発する光源と、
前記光源が発した光を前記第1の処理方向または前記第2の処理方向にしたがって前記バーコード記号上に走査させる走査手段と、
前記反射光を集光する集光手段と、
前記集光手段によって集光された光を順次受光して電気信号に変換し前記信号処理手段に出力する検出手段と、
を備え、
前記信号処理手段は、前記走査手段における走査処理を制御することを特徴とする請求項7または8に記載のバーコード読取装置。
The light receiving means is
A light source that emits light;
Scanning means for causing the light emitted from the light source to scan on the barcode symbol in accordance with the first processing direction or the second processing direction;
Condensing means for condensing the reflected light;
Detecting means for sequentially receiving the light collected by the light collecting means, converting it into an electrical signal, and outputting it to the signal processing means;
With
9. The bar code reading apparatus according to claim 7, wherein the signal processing unit controls a scanning process in the scanning unit.
前記バーコード記号全体に光を照射し該バーコード記号全体からの反射光を受光して該バーコード記号全体に対応する受光信号を生成する受光手段をさらに備え、
前記信号処理手段は、前記第1の処理方向にしたがい前記受光信号を変換することによって前記第1のバーコード信号を生成し、前記第2の処理方向にしたがい前記受光信号を変換することによって前記第2のバーコード信号を生成することを特徴とする請求項1〜6のいずれか一つに記載のバーコード読取装置。
Further comprising light receiving means for irradiating the entire barcode symbol with light and receiving reflected light from the entire barcode symbol to generate a received light signal corresponding to the entire barcode symbol;
The signal processing means generates the first barcode signal by converting the received light signal according to the first processing direction, and converts the received light signal according to the second processing direction. The bar code reader according to claim 1, wherein the bar code signal is generated.
前記第1の計測情報および前記第2の計測情報を記憶する記憶手段をさらに備えたことを特徴とする請求項2〜10のいずれか一つに記載のバーコード読取装置。   The barcode reader according to any one of claims 2 to 10, further comprising storage means for storing the first measurement information and the second measurement information. 前記記憶手段は、前記受光信号を記憶し、
前記信号処理手段は、前記記憶手段において記憶された前記受光信号を取得して前記第1のバーコード信号および/または前記第2のバーコード信号を生成することを特徴とする請求項11に記載のバーコード読取装置。
The storage means stores the light reception signal,
12. The signal processing means acquires the received light signal stored in the storage means and generates the first barcode signal and / or the second barcode signal. Bar code reader.
前記比較領域は、変更可能であることを特徴とする請求項3〜12のいずれか一つに記載のバーコード読取装置。   The bar code reader according to claim 3, wherein the comparison area is changeable. 記録された情報に応じた幅で各エレメントが表示されたバーコード記号における各エレメント幅を表すバーコード信号を生成する信号処理ステップと、前記バーコード信号に表される各エレメント幅を計測した計測情報を用いて前記バーコード記号に記録された情報をデコードするデコード処理ステップとを含むバーコード読取方法において、
前記信号処理ステップは、
第1の処理方向で第1の前記バーコード信号を生成する第1の信号処理ステップと、
前記第1の処理方向と異なる方向である第2の処理方向で第2の前記バーコード信号を生成する第2の信号処理ステップと、
を含み、
前記デコード処理ステップは、
前記第1の信号処理ステップにおいて生成された前記第1のバーコード信号に対する第1のデコード処理ステップと、
前記第1のデコード処理ステップにおいて前記第1のバーコード信号に対するデコードが前記バーコード記号の端部に位置する端部エレメントに起因して失敗した場合、前記第1のバーコード信号における前記端部エレメントに対応する信号を、前記第2のバーコード信号における前記端部エレメントに対応する信号で置き換えて前記第1のバーコード信号を補完する補完ステップと、
前記補完ステップにおいて補完された前記第1のバーコード信号を用いて再度デコードする第2のデコード処理ステップと、
を含むことを特徴とするバーコード読取方法。
A signal processing step for generating a barcode signal representing each element width in the barcode symbol in which each element is displayed with a width corresponding to the recorded information, and measurement by measuring each element width represented by the barcode signal A barcode reading method comprising: a decoding process step for decoding information recorded in the barcode symbol using information;
The signal processing step includes
A first signal processing step of generating a first barcode signal in a first processing direction;
A second signal processing step of generating a second barcode signal in a second processing direction that is different from the first processing direction;
Including
The decoding step includes
A first decoding step for the first barcode signal generated in the first signal processing step;
If the decoding for the first barcode signal fails in the first decoding processing step due to an end element located at the end of the barcode symbol, the end of the first barcode signal A complementing step of complementing the first barcode signal by replacing a signal corresponding to an element with a signal corresponding to the end element in the second barcode signal;
A second decoding process step for decoding again using the first barcode signal supplemented in the complementing step;
A barcode reading method comprising:
前記補完ステップは、前記第1のバーコード信号の第1の前記計測情報における前記端部エレメントの計測値を、前記第2のバーコード信号の第2の前記計測情報における前記端部エレメントの計測値で置き換えて前記第1の計測情報を補完し、
前記第2のデコード処理ステップは、前記補完ステップにおいて補完された前記第1の計測情報を用いて再度デコードすることを特徴とする請求項14に記載のバーコード読取方法。
The complementing step includes measuring the end element in the first measurement information of the first barcode signal, and measuring the end element in the second measurement information of the second barcode signal. Replace with the value to complement the first measurement information,
15. The barcode reading method according to claim 14, wherein the second decoding processing step performs decoding again using the first measurement information supplemented in the complementing step.
前記デコード処理ステップは、
前記バーコード記号の所定の比較領域内のエレメントに対する前記第1の計測情報の計測値と前記第2の計測情報の計測値との差が所定の範囲内であるか否かを判断する判断ステップを含み、
前記補完ステップは、前記判断ステップにおいて前記比較領域内のエレメントに対する前記第1の計測情報の計測値と前記第2の計測情報の計測値との差が所定の範囲内であると判断された場合に行なわれることを特徴とする請求項15に記載のバーコード読取方法。
The decoding step includes
A determination step of determining whether or not a difference between a measurement value of the first measurement information and a measurement value of the second measurement information with respect to an element in a predetermined comparison area of the barcode symbol is within a predetermined range. Including
The complementing step is performed when it is determined in the determination step that a difference between the measurement value of the first measurement information and the measurement value of the second measurement information for the element in the comparison region is within a predetermined range. The barcode reading method according to claim 15, wherein the barcode reading method is performed.
前記所定の範囲は、変更可能であることを特徴とする請求項16に記載のバーコード読取方法。   The barcode reading method according to claim 16, wherein the predetermined range is changeable. 前記デコード処理ステップは、
前記バーコード記号の所定の比較領域内のエレメントに対する前記第1の計測情報の計測値と前記第2の計測情報の計測値とをもとに前記第1の計測情報における第1の閾値および前記第2の計測情報における第2の閾値を設定する閾値設定ステップと、
前記比較領域内の前記第1の計測情報における前記第1の閾値を超える計測値および前記第1の閾値を下回る計測値の配列状態と、前記比較領域内の前記第2の計測情報における前記第2の閾値を超える計測値および前記第2の閾値を下回る計測値の第2の配列状態とを求める配列状態取得ステップと、
前記第1の配列状態と前記第2の配列状態が一致するか否かを判断する配列状態判断ステップと、
前記配列状態判断ステップにおいて前記第1の配列状態と前記第2の配列状態が一致したと判断された場合、前記補完ステップを行なうことを特徴とする請求項15に記載のバーコード読取方法。
The decoding step includes
A first threshold value in the first measurement information based on a measurement value of the first measurement information and a measurement value of the second measurement information for an element in a predetermined comparison area of the barcode symbol; A threshold setting step for setting a second threshold in the second measurement information;
An arrangement state of measurement values exceeding the first threshold value and measurement values falling below the first threshold value in the first measurement information in the comparison area, and the second measurement information in the comparison area in the second measurement information An array state obtaining step for obtaining a measured value exceeding a threshold value of 2 and a second array state of measured values falling below the second threshold value;
An array state determining step for determining whether or not the first array state and the second array state match;
16. The barcode reading method according to claim 15, wherein the complementing step is performed when it is determined in the arrangement state determining step that the first arrangement state and the second arrangement state coincide with each other.
前記第1の閾値の数および前記第2の閾値の数は、変更可能であることを特徴とする請求項18に記載のバーコード読取方法。   19. The barcode reading method according to claim 18, wherein the number of the first threshold value and the number of the second threshold value are changeable. 前記バーコード記号に前記第1の処理方向または前記第2の処理方向にしたがって走査光を照射し該バーコード記号における各領域から順次反射される反射光を受光する受光ステップをさらに含み、
前記第1の信号処理ステップは、前記受光ステップによる前記第1の処理方向に対応する受光結果をもとに前記第1のバーコード信号を生成し、
前記第2の信号処理ステップは、前記受光手段による前記第2の処理方向に対応する受光結果をもとに前記第2のバーコード信号を生成することを特徴とする請求項14〜19のいずれか一つに記載のバーコード読取方法。
A light receiving step of irradiating the bar code symbol with scanning light according to the first processing direction or the second processing direction and receiving reflected light sequentially reflected from each region in the bar code symbol;
The first signal processing step generates the first barcode signal based on a light reception result corresponding to the first processing direction by the light reception step,
20. The second signal processing step generates the second barcode signal based on a light reception result corresponding to the second processing direction by the light receiving means. The barcode reading method according to claim 1.
前記デコード処理ステップは、
前記受光ステップにおける前記第1の処理方向の走査速度と前記第2の処理方向の走査速度とが異なる場合、前記第1の計測情報または前記第2の計測情報のいずれか一方を他方の計測情報における走査速度に対応させて補正する補正ステップをさらに含み、
前記補完ステップは、前記補正ステップの後に行なわれることを特徴とする請求項20に記載のバーコード読取方法。
The decoding step includes
When the scanning speed in the first processing direction and the scanning speed in the second processing direction are different in the light receiving step, either the first measurement information or the second measurement information is used as the other measurement information. And a correction step of correcting in accordance with the scanning speed in
The barcode reading method according to claim 20, wherein the complementing step is performed after the correcting step.
前記バーコード記号全体に光を照射し該バーコード記号全体からの反射光を受光して該バーコード記号全体に対応する受光信号を生成する受光ステップをさらに含み、
前記第1の信号処理ステップは、前記第1の処理方向にしたがい前記受光ステップにおいて生成された前記受光信号を変換することによって前記第1のバーコード信号を生成し、
前記第2の信号処理ステップは、前記第2の処理方向にしたがい前記受光ステップにおいて生成された前記受光信号を変換することによって前記第2のバーコード信号を生成することを特徴とする請求項14〜19のいずれか一つに記載のバーコード読取方法。
A light receiving step of irradiating the entire barcode symbol with light and receiving reflected light from the entire barcode symbol to generate a received light signal corresponding to the entire barcode symbol;
The first signal processing step generates the first barcode signal by converting the light reception signal generated in the light reception step according to the first processing direction,
15. The second signal processing step generates the second barcode signal by converting the light reception signal generated in the light reception step according to the second processing direction. The barcode reading method according to any one of -19.
前記第1の計測情報および前記第2の計測情報を記憶する記憶ステップをさらに含むことを特徴とする請求項15〜22のいずれか一つに記載のバーコード読取方法。   The barcode reading method according to any one of claims 15 to 22, further comprising a storing step of storing the first measurement information and the second measurement information. 前記比較領域は、変更可能であることを特徴とする請求項16〜23のいずれか一つに記載のバーコード読取方法。   24. The barcode reading method according to claim 16, wherein the comparison area is changeable.
JP2006327182A 2006-12-04 2006-12-04 Bar code reader and bar code reading method Withdrawn JP2008140255A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006327182A JP2008140255A (en) 2006-12-04 2006-12-04 Bar code reader and bar code reading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006327182A JP2008140255A (en) 2006-12-04 2006-12-04 Bar code reader and bar code reading method

Publications (1)

Publication Number Publication Date
JP2008140255A true JP2008140255A (en) 2008-06-19

Family

ID=39601620

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006327182A Withdrawn JP2008140255A (en) 2006-12-04 2006-12-04 Bar code reader and bar code reading method

Country Status (1)

Country Link
JP (1) JP2008140255A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009076031A (en) * 2007-08-29 2009-04-09 Denso Wave Inc Optical information reader
JP2012164058A (en) * 2011-02-04 2012-08-30 Casio Comput Co Ltd Scanner and program
WO2014091880A1 (en) * 2012-12-12 2014-06-19 Necインフロンティア株式会社 Barcode reader, barcode reading method, and barcode reading program
CN112464679A (en) * 2020-11-23 2021-03-09 苏州摩比信通智能系统有限公司 Code scanning method and code scanning equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009076031A (en) * 2007-08-29 2009-04-09 Denso Wave Inc Optical information reader
JP2012164058A (en) * 2011-02-04 2012-08-30 Casio Comput Co Ltd Scanner and program
CN102682262A (en) * 2011-02-04 2012-09-19 卡西欧计算机株式会社 Barcode reader and computer program product
WO2014091880A1 (en) * 2012-12-12 2014-06-19 Necインフロンティア株式会社 Barcode reader, barcode reading method, and barcode reading program
CN104704509A (en) * 2012-12-12 2015-06-10 Nec平台株式会社 Barcode reader, barcode reading method, and barcode reading program
US9336424B2 (en) 2012-12-12 2016-05-10 Nec Platforms, Ltd Barcode reader, barcode reading method, and barcode reading program
CN112464679A (en) * 2020-11-23 2021-03-09 苏州摩比信通智能系统有限公司 Code scanning method and code scanning equipment

Similar Documents

Publication Publication Date Title
JP4911340B2 (en) Two-dimensional code detection system and two-dimensional code detection program
CN102640165B (en) Imaging-based scanner including border searching for image acquisition
JP2007122243A (en) Optical information verification device
JP2008242828A (en) Bar-code reading apparatus and program
JP2008140255A (en) Bar code reader and bar code reading method
JP2008282262A (en) Bar code reader and bar code reading method
JP2007293836A (en) Method for reading information code printing medium and system for reading information code printing medium
US10460142B2 (en) Barcode identification method for improving decoding reliability by correcting image distortion
JP2012058776A (en) Bar code reading device and method
JP4652201B2 (en) Bar code symbol information reading method and bar code symbol information reading device
JP5379626B2 (en) Stack bar code information reading method and stack bar code information reading device
US9262665B2 (en) Decoding method and decoding processing device
JP5035042B2 (en) Optical information reader
JP4403750B2 (en) Code reader
US8405884B2 (en) Scanner, image correcting method, and image forming apparatus for correcting an image by determining a foreign substance position based on a shading profile
JP2008028522A (en) Image reading device
JP3711725B2 (en) Image recognition device
JP5453594B2 (en) Symbol information reading apparatus and symbol information reading method
JP5825110B2 (en) Two-dimensional code reader
JP2576370B2 (en) ID mark reading device
JP2506142B2 (en) Character reader
US20040164160A1 (en) Bar-code reader, method of reading a bar code, and computer product
JP5349504B2 (en) Optical information reading apparatus and optical information reading method
JP4403063B2 (en) Symbol information reading method and symbol information reading apparatus
JP2007213358A (en) Two-dimensional code detection system and two-dimensional code detection program

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20100302