JP5152086B2 - Bar code reading method and bar code reading apparatus - Google Patents

Bar code reading method and bar code reading apparatus Download PDF

Info

Publication number
JP5152086B2
JP5152086B2 JP2009100554A JP2009100554A JP5152086B2 JP 5152086 B2 JP5152086 B2 JP 5152086B2 JP 2009100554 A JP2009100554 A JP 2009100554A JP 2009100554 A JP2009100554 A JP 2009100554A JP 5152086 B2 JP5152086 B2 JP 5152086B2
Authority
JP
Japan
Prior art keywords
barcode
code
read
reading
margin
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.)
Expired - Fee Related
Application number
JP2009100554A
Other languages
Japanese (ja)
Other versions
JP2010250641A (en
Inventor
光一 矢野
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.)
Denso Wave Inc
Original Assignee
Denso Wave Inc
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 Denso Wave Inc filed Critical Denso Wave Inc
Priority to JP2009100554A priority Critical patent/JP5152086B2/en
Publication of JP2010250641A publication Critical patent/JP2010250641A/en
Application granted granted Critical
Publication of JP5152086B2 publication Critical patent/JP5152086B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、複数種類の規格に基づいて作成されたバーコードを光学的に読み取るバーコード読取方法およびバーコード読取装置に関するものである。   The present invention relates to a barcode reading method and a barcode reading apparatus that optically read barcodes created based on a plurality of types of standards.

従来より、バーコードについて多くの種類の規格が開発されて実際に運用されている。そのため、所定の種類のバーコードの一部分が他の種類のバーコードを構成しているという場合も存在する。従って、複数種類のバーコードの読み取りを可能にするためには、上述のような場合でもバーコードの種類を明確に区別する必要がある。そこで、例えば、複数種類の規格に基づいて作成されたバーコードを光学的に読み取るバーコード読取方法として、下記特許文献1に示すバーコード読取方法が知られている。   Conventionally, many types of standards for bar codes have been developed and actually used. For this reason, there is a case where a part of a predetermined type of barcode constitutes another type of barcode. Therefore, in order to enable reading of a plurality of types of barcodes, it is necessary to clearly distinguish the types of barcodes even in the above case. Therefore, for example, as a barcode reading method for optically reading a barcode created based on a plurality of types of standards, a barcode reading method shown in Patent Document 1 below is known.

このバーコード読取方法では、読み取り対象として指定されたバーコードが、省スペース型であるRSS (Reduced Space Symbology)コードの1つ、RSS_Limitedであるか否かが判定される。そして、上記バーコードがRSS_Limitedである可能性が認識されると、このコードパターン両端部の少なくとも一方に、UPC−A/EAN−13のキャラクタコードが存在するか否かを判定する。そして、上記キャラクタコードが存在しない場合には当該バーコードがRSS_Limitedであると判定され、上記キャラクタコードが存在する場合にはRSS_Limitedでないと判定される。   In this barcode reading method, it is determined whether or not the barcode specified as a reading target is RSS_Limited, one of the space-saving RSS (Reduce Space Symbol) codes. When the possibility that the barcode is RSS_Limited is recognized, it is determined whether or not the character code of UPC-A / EAN-13 exists in at least one of both ends of the code pattern. When the character code does not exist, it is determined that the barcode is RSS_Limited. When the character code exists, it is determined that the character code is not RSS_Limited.

特開2006−227796号公報(第34,35段落、図4)Japanese Patent Laying-Open No. 2006-227796 (paragraphs 34 and 35, FIG. 4)

ところで、RSS_Limitedは省スペース型として開発されているため、当該バーコードの両端外側にマージンを必要としないことから、当該バーコードの近傍にバーコード状の模様などが配置される場合がある。この場合、上記特許文献1に示すバーコード読取方法では、読み取り対象がRSS_Limitedであっても、上記模様のために読み取ったコードパターン両端部の少なくとも一方にUPC−A/EAN−13のキャラクタコードが存在するとみなされると、当該バーコードがRSS_Limitedでないと判定され、RSS_Limitedに関する読取精度が低下してしまうという問題がある。   By the way, since RSS_Limited is developed as a space-saving type, a margin is not required on both outer sides of the barcode, so that a barcode-like pattern or the like may be arranged in the vicinity of the barcode. In this case, in the barcode reading method shown in Patent Document 1, even if the reading target is RSS_Limited, the character code of UPC-A / EAN-13 is placed on at least one of both ends of the code pattern read for the pattern. If it is assumed that the barcode is present, it is determined that the barcode is not RSS_Limited, and there is a problem that reading accuracy related to RSS_Limited is lowered.

本発明は、上述した課題を解決するためになされたものであり、その目的とするところは、複数種類の規格の類似したパターンのバーコードが混在する場合でも読取精度を向上させ得るバーコード読取方法およびバーコード読取装置を提供することにある。   The present invention has been made in order to solve the above-described problems, and an object of the present invention is to provide barcode reading that can improve reading accuracy even when barcodes of similar patterns of a plurality of types of standards coexist. It is to provide a method and a barcode reader.

上記目的を達成するため、特許請求の範囲に記載の請求項1のバーコード読取方法では、複数種類の規格に基づいて作成されたバーコードを光学的に読み取り、当該バーコードに記録されているデータをデコードするバーコード読取方法において、前記複数種類のうち、第1規格に基づく第1バーコードの一部のコードパターンが、前記第1規格よりもバーの構成本数が少なく設定される第2規格に基づく第2バーコードとして読み取れる可能性がある場合に、読み取ったバーコードを2値化処理して得られる明暗パターン列に対して前記第2規格の読み取りアルゴリズムを適用して読み取りを行う第1ステップと、前記第1ステップにより読み取られた前記明暗パターン列の両端近傍の少なくとも一方に、前記第1バーコードに存在し得るキャラクタパターンが存在するか否かを判定する第2ステップと、前記第2ステップにより前記キャラクタパターンが存在すると判定された場合に前記明暗パターン列を前記第1バーコードの一部のコードパターンと想定して当該第1バーコードに対応するマージン位置を推定する第3ステップと、前記第3ステップにより推定された前記マージン位置にマージンを検出しない場合には、前記明暗パターン列を前記第2バーコードの読取データとして確定する第4ステップと、を備えることを特徴とする。   In order to achieve the above object, in the barcode reading method according to claim 1, a barcode created based on a plurality of kinds of standards is optically read and recorded in the barcode. In the barcode reading method for decoding data, among the plurality of types, a part of the code pattern of the first barcode based on the first standard is set to have a smaller number of bars than the first standard. When there is a possibility of being read as a second bar code based on the standard, the second bar code is read by applying the read algorithm of the second standard to the light and dark pattern string obtained by binarizing the read bar code. The first barcode may be present at least in the vicinity of both ends of the bright and dark pattern row read by the first step and the first step. A second step for determining whether or not a character pattern exists; and when the character pattern is determined to exist by the second step, the light and dark pattern sequence is assumed to be a part of the first barcode code pattern. A third step of estimating a margin position corresponding to the first barcode, and when no margin is detected at the margin position estimated by the third step, the light / dark pattern string is represented by the second barcode. And a fourth step of confirming as read data.

請求項2の発明は、請求項1に記載のバーコード読取方法において、前記第3ステップは、前記第1バーコードに対応するマージン位置を当該第1バーコードのセンターバーに基づいて推定することを特徴とする。   According to a second aspect of the present invention, in the barcode reading method according to the first aspect, the third step estimates a margin position corresponding to the first barcode based on a center bar of the first barcode. It is characterized by.

請求項3の発明は、請求項1または2に記載のバーコード読取方法において、前記第4ステップは、前記第3ステップにより推定された前記マージン位置にマージンを検出する場合には、前記第1ステップにより読み取った前記バーコードを無効とすることを特徴とする。   According to a third aspect of the present invention, in the barcode reading method according to the first or second aspect, when the fourth step detects a margin at the margin position estimated by the third step, the first step The bar code read in the step is invalidated.

請求項4の発明は、請求項3に記載のバーコード読取方法において、前記第1ステップにより読み取った前記バーコードを前記第4ステップにより無効とする場合には、その旨を報知する第5ステップを備えることを特徴とする。   According to a fourth aspect of the present invention, in the barcode reading method according to the third aspect, when the barcode read in the first step is invalidated in the fourth step, a fifth step for notifying the fact is provided. It is characterized by providing.

請求項5の発明は、請求項1〜4のいずれか一項に記載のバーコード読取方法において、前記第1バーコードは、EAN (European Article Number)コード、および、UPC (Universal Product Code)コードのいずれか1つであり、前記第2バーコードは、RSS (Reduced Space Symbology)コードであることを特徴とする。   According to a fifth aspect of the present invention, in the barcode reading method according to any one of the first to fourth aspects, the first barcode is an EAN (European Article Number) code and a UPC (Universal Product Code) code. And the second bar code is an RSS (Reduced Space Symbol) code.

特許請求の範囲に記載の請求項6のバーコード読取装置では、複数種類の規格に基づいて作成されたバーコードを光学的に読み取り、当該バーコードに記録されているデータをデコードするバーコード読取装置において、前記複数種類のうち、第1規格に基づく第1バーコードの一部のコードパターンが、前記第1規格よりもバーの構成本数が少なく設定される第2規格に基づく第2バーコードとして読み取れる可能性がある場合に、読み取ったバーコードを2値化処理して得られる明暗パターン列に対して前記第2規格の読み取りアルゴリズムを適用して読み取りを行う読取手段と、前記読取手段により読み取られた前記明暗パターン列の両端近傍の少なくとも一方に、前記第1バーコードに存在し得るキャラクタパターンが存在するか否かを判定する判定手段と、前記判定手段により前記キャラクタパターンが存在すると判定された場合に前記明暗パターン列を前記第1バーコードの一部のコードパターンと想定して当該第1バーコードに対応するマージン位置を推定するマージン位置推定手段と、前記マージン位置推定手段により推定された前記マージン位置にマージンを検出しない場合には、前記明暗パターン列を前記第2バーコードの読取データとして確定する確定手段と、を備えることを特徴とする。   The barcode reading device according to claim 6, wherein the barcode reading device optically reads a barcode created based on a plurality of types of standards and decodes data recorded in the barcode. In the apparatus, among the plurality of types, the second barcode based on the second standard in which a part of the code pattern of the first barcode based on the first standard is set to have a smaller number of bars than the first standard. Read by applying the reading algorithm of the second standard to the light and dark pattern string obtained by binarizing the read barcode, and the reading means Whether or not there is a character pattern that can exist in the first bar code in at least one of the vicinity of both ends of the read light / dark pattern row And a determination means for determining whether the character pattern is present by the determination means, the light and dark pattern string is assumed to be a partial code pattern of the first barcode and corresponds to the first barcode. Margin position estimating means for estimating a margin position, and confirmation means for determining the bright / dark pattern string as read data of the second barcode when no margin is detected at the margin position estimated by the margin position estimating means And.

請求項7の発明は、請求項6に記載のバーコード読取装置において、前記マージン位置推定手段は、前記第1バーコードに対応するマージン位置を当該第1バーコードのセンターバーに基づいて推定することを特徴とする。   According to a seventh aspect of the present invention, in the barcode reading apparatus according to the sixth aspect, the margin position estimating means estimates a margin position corresponding to the first barcode based on a center bar of the first barcode. It is characterized by that.

請求項8の発明は、請求項6または7に記載のバーコード読取装置において、前記確定手段は、前記マージン位置推定手段により推定された前記マージン位置にマージンを検出する場合には、前記読取手段により読み取った前記バーコードを無効とすることを特徴とする。   According to an eighth aspect of the present invention, in the barcode reading apparatus according to the sixth or seventh aspect, when the determining unit detects a margin at the margin position estimated by the margin position estimating unit, the reading unit The bar code read in the above is invalidated.

請求項9の発明は、請求項8に記載のバーコード読取装置において、前記読取手段により読み取った前記バーコードを前記確定手段により無効とする場合には、その旨を報知する報知手段を備えることを特徴とする。   A ninth aspect of the invention is the barcode reading apparatus according to the eighth aspect, further comprising notifying means for notifying the barcode read by the reading means when the barcode is invalidated by the determining means. It is characterized by.

請求項10の発明は、請求項6〜9のいずれか一項に記載のバーコード読取装置において、前記第1バーコードは、EAN (European Article Number)コード、および、UPC (Universal Product Code)コードのいずれか1つであり、前記第2バーコードは、RSS (Reduced Space Symbology)コードであることを特徴とする。   According to a tenth aspect of the present invention, in the bar code reading device according to any one of the sixth to ninth aspects, the first bar code includes an EAN (European Article Number) code and a UPC (Universal Product Code) code. And the second bar code is an RSS (Reduced Space Symbol) code.

請求項1および6の発明では、第1規格に基づく第1バーコードの一部のコードパターンが、当該第1規格よりもバーの構成本数が少なく設定される第2規格に基づく第2バーコードとして読み取れる可能性がある場合に、読み取ったバーコードを2値化処理して得られる明暗パターン列に対して第2規格の読み取りアルゴリズムを適用して読み取りがなされる。そして、明暗パターン列の両端近傍の少なくとも一方に第1バーコードに存在し得るキャラクタパターンが存在すると判定されると、明暗パターン列を第1バーコードの一部のコードパターンと想定して当該第1バーコードに対応するマージン位置が推定される。この推定されたマージン位置に所定のマージンを検出しない場合には、上記明暗パターン列が第2バーコードの読取データとして確定される。   In the first and sixth aspects of the invention, the second barcode based on the second standard in which a part of the code pattern of the first barcode based on the first standard is set to have a smaller number of bars than the first standard. In the case where there is a possibility of reading, the reading is performed by applying the reading algorithm of the second standard to the light and dark pattern sequence obtained by binarizing the read barcode. If it is determined that there is a character pattern that can exist in the first barcode in at least one of the vicinity of both ends of the light / dark pattern row, the light / dark pattern row is assumed to be a partial code pattern of the first barcode. A margin position corresponding to one barcode is estimated. When a predetermined margin is not detected at the estimated margin position, the light / dark pattern sequence is determined as read data of the second barcode.

第1バーコードの一部のコードパターンが第2バーコードとして読み取れる場合を想定しているので、明暗パターン列が第1バーコードの一部のコードパターンである場合には、明暗パターン列の両端近傍の少なくとも一方に第1バーコードに存在し得るキャラクタパターンが存在するとともに、所定のマージン位置にマージンが存在することとなる。   Since it is assumed that a part of the code pattern of the first barcode can be read as the second barcode, when the light and dark pattern sequence is a partial code pattern of the first barcode, both ends of the light and dark pattern sequence A character pattern that may exist in the first barcode exists in at least one of the neighborhoods, and a margin exists at a predetermined margin position.

そこで、上記明暗パターン列が第2バーコードとして読み取れる可能性がある場合において、明暗パターン列の両端近傍の少なくとも一方に第1バーコードに存在し得るキャラクタパターンが存在しかつ所定のマージン位置にマージンが存在しない場合には、このキャラクタパターンはバーコードの一部とは異なる模様等であるから、当該明暗パターン列を第2バーコードの読取データとして確定することができる。
したがって、複数種類の規格の類似したパターンのバーコードが混在する場合でも上述のような第2バーコードの読取精度を向上させることができる。
Therefore, when there is a possibility that the light and dark pattern string can be read as the second bar code, there is a character pattern that can exist in the first bar code at least near the both ends of the light and dark pattern line and a margin at a predetermined margin position. If the character pattern does not exist, the character pattern is a pattern different from a part of the barcode, so that the light / dark pattern row can be determined as the read data of the second barcode.
Therefore, even when bar codes with similar patterns of a plurality of types of standards are mixed, the reading accuracy of the second bar code as described above can be improved.

請求項2および7の発明では、第1バーコードに対応するマージン位置が当該第1バーコードのセンターバーに基づいて推定される。センターバーは一般的に5本のナローバーから構成されるため、例えば、バーコードの両端に設けられる3本のナローバーから構成されるガードバーに基づいてマージン位置を推定する場合と比較して、マージン位置の推定精度を向上させることができる。   In the inventions of claims 2 and 7, the margin position corresponding to the first barcode is estimated based on the center bar of the first barcode. Since the center bar is generally composed of five narrow bars, for example, the margin position is compared with the case where the margin position is estimated based on a guard bar composed of three narrow bars provided at both ends of the barcode. The estimation accuracy of can be improved.

請求項3および8の発明では、推定されたマージン位置にマージンが検出される場合には、読み取ったバーコードが無効とされる。   According to the third and eighth aspects of the present invention, when a margin is detected at the estimated margin position, the read barcode is invalidated.

本来、上記明暗パターン列を一部とするコードパターンが第1バーコードとして読み取れるのであれば、そもそも当該明暗パターン列が第2バーコードとして読み取れるか否かを判定する必要性は低くなる。そのため、上記明暗パターン列と異なる領域の欠損等により第1バーコードとして読み取ることができないことから当該明暗パターン列が第2バーコードとして読み取れるか否かを判定して、第2バーコードとして読み取れない場合、すなわち、推定されたマージン位置にマージンが検出される場合には、当該明暗パターン列を含むコードパターンを読み取る可能性は非常に低いので、読み取り不能である不要なデータを確実に除外することができる。   Originally, if a code pattern including a part of the light / dark pattern sequence can be read as the first barcode, the necessity of determining whether or not the light / dark pattern sequence can be read as the second barcode is reduced. For this reason, since it cannot be read as the first barcode due to a lack of a region different from the light and dark pattern row, it is determined whether or not the light and dark pattern row can be read as the second barcode and cannot be read as the second barcode. In other words, if a margin is detected at the estimated margin position, it is very unlikely that the code pattern including the light and dark pattern sequence will be read. Can do.

請求項4および9の発明では、読み取ったバーコードを無効とする場合にはその旨が報知されるため、読み取ったバーコードが第2バーコードとして読み取りできないが、読み取り対象のバーコードを新たに読み取る場合には第1バーコードとして読み取れる可能性が高いことを使用者に認識させることができる。   In the inventions of claims 4 and 9, when the read barcode is invalidated, the fact is notified, so the read barcode cannot be read as the second barcode, but the barcode to be read is newly added. When reading, it is possible to make the user recognize that there is a high possibility of being read as the first barcode.

請求項5および10の発明では、第1バーコードは、EAN (European Article Number)コード、および、UPC (Universal Product Code)コードのいずれか1つであり、第2バーコードは、RSS (Reduced Space Symbology)コードである。   In the inventions of claims 5 and 10, the first barcode is one of an EAN (European Article Number) code and a UPC (Universal Product Code) code, and the second barcode is an RSS (Reduced Space). (Symbolology) code.

RSSコードは、EANコードやUPCコードと比較して省スペース型であり、実際にEANコードやUPCコードの一部がRSSコードに一致する場合がある。このような場合でも、上述のように明暗パターン列の両端近傍の少なくとも一方に第1バーコードに存在し得るキャラクタパターンが存在しかつ所定のマージン位置にマージンが存在しない場合に当該明暗パターン列をRSSコードとして確定することができるので、RSSコードやEANコード、UPCコードが混在する場合でもRSSコードの読取精度を向上させることができる。   The RSS code is a space-saving type as compared with the EAN code and the UPC code, and part of the EAN code and the UPC code may actually match the RSS code. Even in such a case, as described above, when there is a character pattern that can exist in the first bar code in at least one of the vicinity of both ends of the light and dark pattern row and there is no margin at a predetermined margin position, the light and dark pattern row is displayed. Since the RSS code can be determined, the RSS code reading accuracy can be improved even when the RSS code, the EAN code, and the UPC code are mixed.

本実施形態に係るバーコード読取装置10の電気的構成を示すブロック図である。It is a block diagram which shows the electric constitution of the barcode reader 10 which concerns on this embodiment. 第1バーコードBの一部が第2バーコードBに一致する状態を示す説明図である。A first portion of the bar code B 1 is an explanatory view showing a state that matches the second barcode B 2. 本実施形態における読取処理の流れを例示するフローチャートの一部である。6 is a part of a flowchart illustrating a flow of a reading process in the present embodiment. 本実施形態における読取処理の流れを例示するフローチャートの一部である。6 is a part of a flowchart illustrating a flow of a reading process in the present embodiment. 図5(A)は、明暗パターン列Baの一端側にマージンBdが存在しない状態を示す説明図であり、図5(B)は、明暗パターン列Baの一端側にマージンBdが存在する状態を示す説明図である。FIG. 5A is an explanatory diagram showing a state where the margin Bd does not exist on one end side of the light / dark pattern row Ba, and FIG. 5B shows a state where the margin Bd exists on one end side of the light / dark pattern row Ba. It is explanatory drawing shown.

以下、本発明の一実施形態に係るバーコード読取装置について図を参照して説明する。図1に示すように、バーコード読取装置10は、複数種類の規格に基づいて作成されたバーコード(図1では物品Rに付されたバーコードBを例示)を読み取る装置として構成されている。なお、バーコードとは、RSSコード、EANコード、および、UPCコード等の1次元コードを意味する。   A barcode reader according to an embodiment of the present invention will be described below with reference to the drawings. As shown in FIG. 1, the barcode reader 10 is configured as a device that reads a barcode (based on the barcode B attached to the article R in FIG. 1) created based on a plurality of types of standards. . The bar code means a one-dimensional code such as an RSS code, an EAN code, and a UPC code.

このバーコード読取装置10は、図示しないケースの内部に回路部20が収容されてなるものであり、回路部20は、主に、照明光源21、受光センサ28、結像レンズ27等の光学系と、メモリ35、制御回路40、トリガースイッチ42等のマイクロコンピュータ(以下「マイコン」という)系と、から構成されている。   The bar code reader 10 is configured such that a circuit unit 20 is accommodated in a case (not shown). The circuit unit 20 mainly includes an optical system such as an illumination light source 21, a light receiving sensor 28, and an imaging lens 27. And a microcomputer (hereinafter referred to as “microcomputer”) system such as a memory 35, a control circuit 40, and a trigger switch 42.

光学系は、投光光学系と、受光光学系とに分かれている。投光光学系を構成する照明光源21は、照明光Lfを発光可能な照明光源として機能するもので、例えば、赤色のLEDとこのLEDの出射側に設けられるレンズとから構成されている。なお、図1では、バーコードBが付された物品Rに向けて照明光Lfを照射する例を概念的に示している。   The optical system is divided into a light projecting optical system and a light receiving optical system. The illumination light source 21 constituting the light projecting optical system functions as an illumination light source capable of emitting the illumination light Lf, and includes, for example, a red LED and a lens provided on the emission side of the LED. In addition, in FIG. 1, the example which irradiates the illumination light Lf toward the articles | goods R to which barcode B was attached | subjected is shown notionally.

受光光学系は、受光センサ28、結像レンズ27、反射鏡(図示略)などによって構成されている。受光センサ28は、CCDエリアセンサとして構成されるものであり、バーコードBに照射されて反射した反射光Lrを受光可能に構成されている。この受光センサ28は、結像レンズ27を介して入射する入射光を受光可能にプリント配線板(図示略)に実装されている。   The light receiving optical system includes a light receiving sensor 28, an imaging lens 27, a reflecting mirror (not shown), and the like. The light receiving sensor 28 is configured as a CCD area sensor, and is configured to be able to receive the reflected light Lr irradiated and reflected on the barcode B. The light receiving sensor 28 is mounted on a printed wiring board (not shown) so as to be able to receive incident light incident through the imaging lens 27.

結像レンズ27は、外部から読取口(図示略)を介して入射する入射光を集光して受光センサ28の受光面28aに像を結像可能な結像光学系として機能するものである。本実施形態では、照明光源21から照射された照明光LfがバーコードBにて反射した後、この反射光Lrを結像レンズ27で集光し、受光センサ28の受光面28aにコード像を結像させている。   The imaging lens 27 functions as an imaging optical system capable of condensing incident light incident from the outside via a reading port (not shown) and forming an image on the light receiving surface 28a of the light receiving sensor 28. . In the present embodiment, after the illumination light Lf emitted from the illumination light source 21 is reflected by the barcode B, the reflected light Lr is condensed by the imaging lens 27 and a code image is formed on the light receiving surface 28 a of the light receiving sensor 28. The image is formed.

マイコン系は、増幅回路31、A/D変換回路33、メモリ35、アドレス発生回路36、同期信号発生回路38、制御回路40、トリガースイッチ42、発光部43、ブザー44、バイブレータ45、液晶表示器46、通信インタフェース48等から構成されている。   The microcomputer system includes an amplification circuit 31, an A / D conversion circuit 33, a memory 35, an address generation circuit 36, a synchronization signal generation circuit 38, a control circuit 40, a trigger switch 42, a light emitting unit 43, a buzzer 44, a vibrator 45, and a liquid crystal display. 46, a communication interface 48, and the like.

光学系の受光センサ28から出力される画像信号(アナログ信号)は、増幅回路31に入力されることで所定ゲインで増幅された後、A/D変換回路33に入力されると、アナログ信号からディジタル信号に変換される。そして、ディジタル化された画像信号、つまり画像データ(画像情報)は、生成されてメモリ35に入力されると、所定のコード画像情報格納領域に蓄積される。なお、同期信号発生回路38は、受光センサ28およびアドレス発生回路36に対する同期信号を発生可能に構成されており、またアドレス発生回路36は、この同期信号発生回路38から供給される同期信号に基づいて、メモリ35に格納される画像データの格納アドレスを発生可能に構成されている。   The image signal (analog signal) output from the light receiving sensor 28 of the optical system is amplified by a predetermined gain by being input to the amplifier circuit 31, and then input from the analog signal when input to the A / D conversion circuit 33. Converted into a digital signal. When the digitized image signal, that is, image data (image information) is generated and input to the memory 35, it is stored in a predetermined code image information storage area. The synchronization signal generation circuit 38 is configured to generate a synchronization signal for the light receiving sensor 28 and the address generation circuit 36, and the address generation circuit 36 is based on the synchronization signal supplied from the synchronization signal generation circuit 38. Thus, the storage address of the image data stored in the memory 35 can be generated.

制御回路40は、バーコード読取装置10全体を制御可能なマイコンによって構成されており、CPU、システムバス、入出力インタフェース等を有すると共に、情報処理機能を備えており、メモリ35とともに情報処理装置を構成している。本実施形態では、制御回路40に対し、トリガースイッチ42、発光部43、ブザー44、バイブレータ45、液晶表示器46、通信インタフェース48等が接続されている。   The control circuit 40 is configured by a microcomputer capable of controlling the entire barcode reader 10 and has a CPU, a system bus, an input / output interface, and the like, and has an information processing function. It is composed. In the present embodiment, a trigger switch 42, a light emitting unit 43, a buzzer 44, a vibrator 45, a liquid crystal display 46, a communication interface 48, and the like are connected to the control circuit 40.

これにより、制御回路40は、例えば、トリガースイッチ42の監視や管理、バーコードBの読み取りに関する情報を報知するインジケータとして機能する発光部43の点灯・消灯、ビープ音やアラーム音を発生可能なブザー44の鳴動のオンオフ、当該バーコード読取装置10の使用者に伝達し得る振動を発生可能なバイブレータ45の駆動制御、液晶表示器46の表示制御や外部装置とのシリアル通信を可能にする通信インタフェース48の通信制御等を可能にしている。   Thereby, for example, the control circuit 40 can turn on / off the light emitting unit 43 that functions as an indicator for notifying information related to monitoring and management of the trigger switch 42 and reading of the barcode B, and a buzzer that can generate a beep sound and an alarm sound. Communication interface enabling ON / OFF of ringing 44, drive control of vibrator 45 capable of generating vibration that can be transmitted to the user of the barcode reader 10, display control of liquid crystal display 46, and serial communication with an external device 48 communication control and the like are possible.

以下、本実施形態に係るバーコード読取装置10の読取処理について図を参照して詳細に説明する。
複数種類の規格に基づくバーコードを読み取る場合には、第1規格に基づく第1バーコードの一部のコードパターンが、当該第1規格よりもバーの構成本数が少なく設定される第2規格に基づく第2バーコードとして読み取られてしまう可能性がある。上記第2規格に基づく第2バーコードとしては、例えば、省スペース型であるRSSコードが想定され、上記第1規格に基づく第1バーコードとしては、例えば、EANコードやUPCコードが想定される。
Hereinafter, the reading process of the barcode reader 10 according to the present embodiment will be described in detail with reference to the drawings.
When reading a barcode based on a plurality of types of standards, the code pattern of a part of the first barcode based on the first standard is set to the second standard in which the number of bars is set to be smaller than that of the first standard. There is a possibility of being read as the second barcode. As the second bar code based on the second standard, for example, a space-saving RSS code is assumed, and as the first bar code based on the first standard, for example, an EAN code or a UPC code is assumed. .

具体的には、図2に示すように、第1規格に基づく第1バーコードBであるEANコードの一部のコードパターンが、第2規格に基づく第2バーコードBであるRSSコードの1つ、RSS_Limitedに一致する場合が想定される。 Specifically, as shown in FIG. 2, an RSS code in which a part of the code pattern of the EAN code that is the first barcode B 1 based on the first standard is the second barcode B 2 based on the second standard One of them is assumed to match RSS_Limited.

本実施形態では、上述のように第1バーコードBの一部が第2バーコードBに一致する場合でも第2バーコードBの読取精度を向上させるために、以下に示す読取処理を実施する。 In the present embodiment, in order first portion of the bar code B 1 is to improve the second reading accuracy of the barcode B 2 even if it matches the second barcode B 2 as described above, read the following process To implement.

まず、図3のステップS101おいて、最小バー本数設定処理がなされる。この処理では、使用者により読み取り対象として指定された複数種類のバーコードから、読み取り可能な最小バー本数Xが設定される。   First, in step S101 of FIG. 3, a minimum bar number setting process is performed. In this process, the minimum bar number X that can be read is set from a plurality of types of barcodes designated as reading targets by the user.

次に、ステップS103において、明暗パターン列取得処理がなされる。この処理では、使用者のトリガースイッチ42の操作に応じて、受光センサ28にバーコードBのコード情報が読み取られると、上記第2規格の読み取りアルゴリズムを適用することにより受光センサ28からの受光信号の信号波形が所定の閾値と比較されて、その比較に基づいて信号波形が明色領域と暗色領域とに2値化され、暗色領域と明色領域との配列データに応じた明暗パターン列Baが取得される。なお、ステップS103における処理は、特許請求の範囲における「第1ステップ」または「読取手段」の一例に相当する。   Next, in step S103, a light / dark pattern string acquisition process is performed. In this process, when the bar code B code information is read by the light receiving sensor 28 in response to the user's operation of the trigger switch 42, the light receiving signal from the light receiving sensor 28 is applied by applying the reading algorithm of the second standard. Is compared with a predetermined threshold value, and based on the comparison, the signal waveform is binarized into a light color region and a dark color region, and a light / dark pattern sequence Ba corresponding to the arrangement data of the dark color region and the light color region is obtained. Is acquired. The processing in step S103 corresponds to an example of “first step” or “reading unit” in the claims.

そして、ステップS105にて上記明暗パターン列Baよりバーの本数nが検出されるとともに、ステップS107にて、上記明暗パターン列Baよりバー幅Wが検出される。   In step S105, the number n of bars is detected from the light / dark pattern row Ba, and in step S107, the bar width W is detected from the light / dark pattern row Ba.

次に、ステップS109において、バー本数nが最小バー本数X以上であるか否かについて判定される。ここで、n≧Xの場合には(S109でYes)、ステップS111にてバーコード決定処理がなされ、バー本数nに応じてデコード対象とするバーコードが決定される。なお、ステップS109にてバー本数nが最小バー本数X未満になると(S109でNo)、図4のステップS139にて読み取り無効処理がなされて、上記読み取りが失敗であるとして読み取ったバーコードが無効とされる。   Next, in step S109, it is determined whether or not the number n of bars is equal to or greater than the minimum number X of bars. If n ≧ X (Yes in S109), barcode determination processing is performed in step S111, and a barcode to be decoded is determined according to the number of bars n. If the number of bars n is less than the minimum number of bars X in step S109 (No in S109), a reading invalidation process is performed in step S139 in FIG. 4, and the barcode read as the above reading fails is invalid. It is said.

バーコードが決定されると、ステップS113にて一側マージンが存在するか否かについて判定される。この判定処理では、明暗パターン列Baの最初の白バー(通常はマージン領域に相当)とその次(内側)に位置する黒バーとの間、又は最初のキャラクタパターンより、バーコードの種類に応じてマージンチェックが実行される。   When the barcode is determined, it is determined in step S113 whether or not a one-side margin exists. In this determination processing, depending on the type of bar code between the first white bar (usually corresponding to the margin area) of the light / dark pattern row Ba and the black bar positioned next (inside) or from the first character pattern. Margin check is executed.

ここで、明暗パターン列Baに一側マージンが存在すれば(S113でYes)、ステップS115において、明暗パターン列Baにバーコードの種類に応じた読み取りアルゴリズムが適用されてデコード処理が実施される。一方、明暗パターン列Baに一側マージンが存在しない場合には(S113でNo)、ステップS117にて明暗パターン列Baの両端のバーを1本ずつ減らして(n=n−2)、上記ステップS109からの処理がなされる。   Here, if the one-side margin exists in the light / dark pattern row Ba (Yes in S113), in step S115, a reading algorithm corresponding to the type of barcode is applied to the light / dark pattern row Ba, and the decoding process is performed. On the other hand, if there is no one-side margin in the light / dark pattern row Ba (No in S113), the bars at both ends of the light / dark pattern row Ba are reduced one by one (n = n−2) in step S117, and the above steps are performed. Processing from S109 is performed.

ステップS115にてデコード処理が実施されると、ステップS119にてこのデコード処理が成功しているか否かについて判定され、デコード処理が成功している場合には(S119でYes)、ステップS121にて他側マージンが存在するか否かについて判定される。この判定処理では、明暗パターン列Baの最後の黒バー又はキャラクタパターンより、バーコードの種類に応じてマージンチェックが実行される。   When the decoding process is performed in step S115, it is determined in step S119 whether or not the decoding process is successful. If the decoding process is successful (Yes in S119), the process proceeds to step S121. A determination is made as to whether the other side margin exists. In this determination process, a margin check is executed in accordance with the type of barcode from the last black bar or character pattern in the light / dark pattern row Ba.

ここで、デコード処理が失敗するか(S119でNo)、明暗パターン列Baに他側のマージンが存在しない(S121でNo)場合には、ステップS123において、上述したデコード処理においてデコード対象として評価されたバーの本数mをバー本数nより減じて(n=n−m)、上記ステップS109からの処理がなされる。   Here, if the decoding process fails (No in S119) or the other side margin does not exist in the light / dark pattern row Ba (No in S121), it is evaluated as a decoding target in the decoding process described above in step S123. The number of bars m is subtracted from the number n of bars (n = n−m), and the processing from step S109 is performed.

明暗パターン列Baに他側マージンが存在すると(S121でYes)、図4のステップS125において、当該バーコードがRSSコードの1つであるRSS_Limitedとして認識できるか否かを判定し、RSS_Limitedとして認識できない場合には(S125でNo)、本読取処理を終了する。   If the other side margin exists in the light / dark pattern row Ba (Yes in S121), it is determined in step S125 of FIG. 4 whether or not the barcode can be recognized as RSS_Limited, which is one of the RSS codes, and cannot be recognized as RSS_Limited. In this case (No in S125), the reading process is terminated.

一方、バーコードがRSS_Limitedとして認識できる場合は(S125でYes)、ステップS127において、明暗パターン列Baの配列方向外方であって当該明暗パターン列Baの両端近傍のいずれかに判定用キャラクタBbが存在するか否かについて判定される。ここで、判定用キャラクタBbとは、第1バーコードBに存在し得るキャラクタパターンの1つであり、明暗パターン列Baの両端近傍における双方の領域に判定用キャラクタBbが存在しない場合には(S127でNo)、明暗パターン列Baが第1バーコードBの一部のコードパターンに一致すると想定されないので、ステップS135にて、当該バーコードがRSS_Limitedであることが確定される。 On the other hand, if the barcode can be recognized as RSS_Limited (Yes in S125), in step S127, the determination character Bb is located outside the light / dark pattern row Ba in the vicinity of both ends of the light / dark pattern row Ba. It is determined whether or not it exists. Here, the determination character Bb is one of character patterns which may be present in the first bar code B 1, in the absence of determination character Bb in both regions near both ends of the light-dark pattern sequence Ba is (no in S127), since the light-dark pattern sequence Ba is not assumed to conform to a portion of the code pattern of the first bar code B 1, at step S135, the barcode is determined to be RSS_Limited.

一方、明暗パターン列Baの両端近傍のいずれかの領域に第1バーコードBの一部のコードパターンに一致する領域があることから判定用キャラクタBbが存在すると判定される場合には(S127でYes)、ステップS129にて、明暗パターン列BaにセンターバーBcが存在するか否かについて判定される。本実施形態では、5本のナローバーからセンターバーBcが構成されるものとし、明暗パターン列BaにセンターバーBcが存在しない場合には(S129でNo)、ステップS135にて、当該バーコードがRSS_Limitedであることが確定される。 On the other hand, when it is determined that the determination character Bb exists because there is an area that matches a part of the code pattern of the first barcode B 1 in any area near both ends of the light / dark pattern row Ba (S127). In step S129, it is determined whether or not the center bar Bc is present in the light and dark pattern row Ba. In the present embodiment, it is assumed that the center bar Bc is composed of five narrow bars, and when the center bar Bc does not exist in the light / dark pattern row Ba (No in S129), the barcode is RSS_Limited in step S135. It is determined that

一方、図5に示すように、明暗パターン列Baの一端近傍の領域に判定用キャラクタBbが存在するとともに当該明暗パターン列BaにセンターバーBcが存在する場合には(S129でYes)、ステップS131にてマージン位置推定処理がなされる。この処理では、上記第1規格に基づいて、明暗パターン列Baに対してセンターバーBcの位置を基準に上記判定用キャラクタBbが存在する方のマージン位置が推定される。   On the other hand, as shown in FIG. 5, when the determination character Bb exists in the region near one end of the light / dark pattern row Ba and the center bar Bc exists in the light / dark pattern row Ba (Yes in S129), step S131. Margin position estimation processing is performed at. In this process, based on the first standard, the margin position where the determination character Bb is present is estimated based on the position of the center bar Bc with respect to the light and dark pattern row Ba.

このように5本のナローバーから構成されるセンターバーBcを基準にして上記マージン位置を推定する理由は、例えば、バーコードの両端に設けられる3本のナローバーから構成されるガードバーに基づいてマージン位置を推定する場合と比較して、マージン位置の推定精度を向上させることができるからである。   The reason for estimating the margin position based on the center bar Bc composed of five narrow bars in this way is, for example, based on the guard position composed of three narrow bars provided at both ends of the barcode. This is because the margin position estimation accuracy can be improved as compared with the case of estimating.

そして、ステップS133において、上述のように推定されたマージン位置に上記第1規格に基づくマージンBdが存在するか否かについて判定される。ここで、ステップS127にて判定用キャラクタBbと判定された領域が実際には第1バーコードBとは異なる模様等であることから、図5(A)に示すように上記マージン位置に上記第1規格に基づくマージンBdが存在しないと判定される場合には(S133でNo)、ステップS135にて当該バーコードがRSS_Limitedであることが確定される。 In step S133, it is determined whether or not the margin Bd based on the first standard exists at the margin position estimated as described above. Said Here, since the determined region and determination character Bb is actually the first bar code B 1 is different pattern or the like in step S127, to the margin position as shown in FIG. 5 (A) If it is determined that the margin Bd based on the first standard does not exist (No in S133), it is determined in step S135 that the barcode is RSS_Limited.

このように、明暗パターン列Baの両端近傍に存在する模様等により判定用キャラクタBbが存在すると判定されることから、従来、RSS_Limitedでないとみなされていた場合でも、推定されるマージン位置にマージンBdが存在しないと判定される場合にはRSS_Limitedと判断することで、RSS_Limitedに関する読取精度を向上させることができる。   Thus, since it is determined that the determination character Bb is present due to the pattern or the like existing near both ends of the light / dark pattern row Ba, even if it is conventionally regarded as not RSS_Limited, the margin Bd is in the estimated margin position. When it is determined that there is no existing, it is possible to improve the reading accuracy regarding RSS_Limited by determining RSS_Limited.

一方、ステップS127にて判定用キャラクタBbと判定された領域が実際に第1バーコードBの一部であることから、図5(B)に示すように上記マージン位置に上記第1規格に基づくマージンBdが存在する場合には(S133でYes)、ステップS137にて報知処理がなされて、制御回路40により制御されて発光部43が所定の警告色で点灯する。 On the other hand, since it is determined as the determination character Bb region is indeed a first portion of the bar code B 1 at step S127, to the first standard to the margin position as shown in FIG. 5 (B) When the margin Bd based is present (Yes in S133), a notification process is performed in Step S137, and the light emitting unit 43 is lit in a predetermined warning color under the control of the control circuit 40.

そして、ステップS139にて無効処理がなされて、上記読み取りが失敗であり読み取ったバーコードが無効とされる。   Then, invalidation processing is performed in step S139, and the above-mentioned reading fails and the read barcode is invalidated.

ここで、上記マージン位置にマージンBdが存在しないことからステップS139にてバーコードを無効する理由について、以下に説明する。本来、上記明暗パターン列Baを一部とするコードパターンが第1バーコードBであるEANコードやUPCコード等として読み取れるのであれば、そもそも当該明暗パターン列Baが第2バーコードBであるRSS_Limitedとして読み取れるか否かを判定する必要性は低くなる。そのため、上記明暗パターン列Baと異なる領域の欠損等により第1バーコードBとして読み取ることができないことから当該明暗パターン列Baが第2バーコードBとして読み取れるか否かを判定して、第2バーコードBとして読み取れない場合、すなわち、推定されたマージン位置にマージンBdが検出される場合には、読み取ったバーコードを無効にする。このような場合には、当該明暗パターン列Baを含むコードパターンを読み取る可能性は非常に低いので、読み取ったバーコードを無効にすることにより、不要なデータを確実に除外することができる。 Here, the reason why the bar code is invalidated in step S139 because the margin Bd does not exist at the margin position will be described below. Originally, if the code pattern including a part of the light / dark pattern row Ba can be read as an EAN code or UPC code as the first barcode B 1 , the light / dark pattern row Ba is originally the second barcode B 2 . The necessity to determine whether or not it can be read as RSS_Limited is reduced. Therefore, it is determined whether the light-dark pattern array Ba different regions the dark pattern string Ba from the inability to read first as a bar code B 1 by a deficiency or the like can be read as a second bar code B 2, the If you can not read as a 2 bar code B 2, namely, if the margin Bd is detected the estimated margin position disables the bar code read. In such a case, since the possibility of reading the code pattern including the light and dark pattern row Ba is very low, unnecessary data can be surely excluded by invalidating the read barcode.

また、上記マージン位置にマージンBdが存在しないことからステップS139にてバーコードを無効する場合には、上記報知処理により、発光部43が所定の警告色で点灯するので、読み取ったバーコードが第2バーコードBとして読み取りできないが読み取り対象のバーコードを新たに読み取る場合には第1バーコードBとして読み取れる可能性が高いことを、使用者に認識させることができる。 In addition, since the margin Bd does not exist at the margin position and the barcode is invalidated in step S139, the light emitting unit 43 is lit in a predetermined warning color by the notification process, so the read barcode is 2 If is not be read as a bar code B 2 to read a new bar code to be read is that there is likely to read the first bar code B 1, it can be recognized by the user.

以上説明したように、本実施形態に係るバーコード読取装置10では、第1規格に基づく第1バーコードBの一部のコードパターンが、当該第1規格よりもバーの構成本数が少なく設定される第2規格に基づく第2バーコードBとして読み取れる可能性がある場合に、上記ステップS103等(第1ステップ,読取手段)により、読み取ったバーコードを2値化処理して得られる明暗パターン列Baに対して第2規格の読み取りアルゴリズムを適用して読み取りがなされる。そして、上記ステップS127(第2ステップ,判定手段)により、明暗パターン列Baの両端近傍の少なくとも一方に判定用キャラクタBbが存在すると判定されると、上記ステップS131(第3ステップ,マージン位置推定手段)により、明暗パターン列Baを第1バーコードBの一部のコードパターンと想定して当該第1バーコードBに対応するマージン位置が推定される。そして、この推定されたマージン位置にマージンBdを検出しない場合には、上記ステップS135(第4ステップ,確定手段)により、上記明暗パターン列Baが第2バーコードBであるRSS_Limitedとして確定される。 As described above, in the barcode reader 10 according to the present embodiment, a part of the code pattern of the first barcode B 1 based on the first standard is set to have a smaller number of bars than the first standard. If there is a possibility that read as the second bar code B 2 based on the second standard being, the step S103 or the like (first step, reading means) by, obtained by binarizing the read bar code dark Reading is performed by applying the reading algorithm of the second standard to the pattern row Ba. If it is determined by step S127 (second step, determination means) that the determination character Bb is present at least near both ends of the light and dark pattern row Ba, step S131 (third step, margin position estimation means). ), the margin position corresponding to the first bar code B 1 assumes a dark pattern columns Ba first bar code portion of the code pattern of B 1 is being estimated. When detecting no margin Bd to the estimated margin position, the step S135 (the fourth step, determining means), the above-described light-dark pattern sequence Ba is determined as RSS_Limited a second barcode B 2 .

これにより、上記明暗パターン列BaがRSS_Limitedとして読み取れる可能性がある場合において、当該明暗パターン列Baの両端近傍の少なくとも一方に判定用キャラクタBbが存在しかつ所定のマージン位置にマージンBdが存在しない場合には、このキャラクタパターンはバーコードの一部とは異なる模様であるから、当該明暗パターン列BaをRSS_Limitedの読取データとして確定することができる。
したがって、複数種類の規格の類似したパターンのバーコードが混在する場合でもRSS_Limitedの読取精度を向上させることができる。
Thereby, when there is a possibility that the light / dark pattern row Ba can be read as RSS_Limited, the determination character Bb exists in at least one of the ends of the light / dark pattern row Ba and the margin Bd does not exist at a predetermined margin position. Since the character pattern is different from a part of the barcode, the light / dark pattern row Ba can be determined as RSS_Limited read data.
Therefore, even when barcodes with similar patterns of a plurality of types of standards coexist, the RSS_Limited reading accuracy can be improved.

また、本実施形態に係るバーコード読取装置10では、第1バーコードに対応するマージン位置が当該第1バーコードのセンターバーBcに基づいて推定されるため、ガードバー等に基づいてマージン位置を推定する場合と比較して、マージン位置の推定精度を向上させることができる。   In the barcode reader 10 according to the present embodiment, since the margin position corresponding to the first barcode is estimated based on the center bar Bc of the first barcode, the margin position is estimated based on the guard bar or the like. The margin position estimation accuracy can be improved as compared with the case of doing so.

さらに、本実施形態に係るバーコード読取装置10では、推定されたマージン位置にマージンBdが検出される場合には、読み取ったバーコードが無効とされる。このように、推定されたマージン位置にマージンBdが検出される場合には、当該明暗パターン列Baを含むコードパターンを読み取る可能性は非常に低いとして、読み取ったバーコードを無効にすることにより、不要なデータを確実に除外することができる。   Furthermore, in the barcode reader 10 according to the present embodiment, when the margin Bd is detected at the estimated margin position, the read barcode is invalidated. As described above, when the margin Bd is detected at the estimated margin position, the possibility of reading the code pattern including the light and dark pattern row Ba is very low, and by invalidating the read barcode, Unnecessary data can be surely excluded.

また、本実施形態に係るバーコード読取装置10では、読み取ったバーコードを無効とする場合には発光部43が所定の警告色で点灯することでその旨が使用者に報知されるため、読み取ったバーコードが第2バーコードBとして読み取りできないが読み取り対象のバーコードを新たに読み取る場合には第1バーコードBとして読み取れる可能性が高いことを、使用者に認識させることができる。 Further, in the barcode reader 10 according to the present embodiment, when the read barcode is invalidated, the light emitting unit 43 is lit in a predetermined warning color so that the user is informed so. and if it barcode not be read as a second bar code B 2 to read a new bar code to be read is that there is likely to read the first bar code B 1, can be recognized by the user.

なお、本発明は上記実施形態に限定されるものではなく、以下のように具体化してもよく、その場合でも、上記実施形態と同等の作用・効果が得られる。
(1)上記ステップS137の報知処理において、発光部43の点灯により第1バーコードBとして読み取り可能性を使用者に報知することに限らず、例えば、ブザー44やバイブレータ45を駆動させることで第1バーコードBとして読み取り可能性を使用者に報知してもよい。
In addition, this invention is not limited to the said embodiment, You may actualize as follows, and even in that case, an effect | action and effect equivalent to the said embodiment are acquired.
(1) In the notification process in step S137, not only to inform the readability to the user as the first bar code B 1 by turning on the light emitting portion 43, for example, by driving the buzzer 44 and a vibrator 45 The user may be notified of the readability as the first barcode B 1 .

(2)本発明は、EANコードの一部のコードパターンが、RSS_Limitedに一致する場合に適用されることに限らず、UPCコードの一部のコードパターンが、RSS_Limitedに一致する場合に適用されてもよい。また、本発明は、第1規格に基づく第1バーコードの一部のコードパターンが、当該第1規格よりもバーの構成本数が少なく設定される第2規格に基づく第2バーコードとして読み取られてしまう可能性がある場合に適用することができる。 (2) The present invention is not limited to being applied when a partial code pattern of the EAN code matches RSS_Limited, but is applied when a partial code pattern of the UPC code matches RSS_Limited. Also good. Further, according to the present invention, a part of the code pattern of the first barcode based on the first standard is read as a second barcode based on the second standard in which the number of bars is set to be smaller than that of the first standard. It can be applied when there is a possibility that

10…バーコード読取装置
B…バーコード
…第1バーコード
…第2バーコード
Ba…明暗パターン列
Bb…判定用キャラクタ
Bc…センターバー
Bd…マージン
10 ... barcode reader B ... Barcode B 1 ... first bar code B 2 ... second barcode Ba ... dark pattern string Bb ... determination character Bc ... center bar Bd ... margin

Claims (10)

複数種類の規格に基づいて作成されたバーコードを光学的に読み取り、当該バーコードに記録されているデータをデコードするバーコード読取方法において、
前記複数種類のうち、第1規格に基づく第1バーコードの一部のコードパターンが、前記第1規格よりもバーの構成本数が少なく設定される第2規格に基づく第2バーコードとして読み取れる可能性がある場合に、
読み取ったバーコードを2値化処理して得られる明暗パターン列に対して前記第2規格の読み取りアルゴリズムを適用して読み取りを行う第1ステップと、
前記第1ステップにより読み取られた前記明暗パターン列の両端近傍の少なくとも一方に、前記第1バーコードに存在し得るキャラクタパターンが存在するか否かを判定する第2ステップと、
前記第2ステップにより前記キャラクタパターンが存在すると判定された場合に前記明暗パターン列を前記第1バーコードの一部のコードパターンと想定して当該第1バーコードに対応するマージン位置を推定する第3ステップと、
前記第3ステップにより推定された前記マージン位置にマージンを検出しない場合には、前記明暗パターン列を前記第2バーコードの読取データとして確定する第4ステップと、
を備えることを特徴とするバーコード読取方法。
In a barcode reading method for optically reading a barcode created based on multiple types of standards and decoding the data recorded in the barcode,
Among the plurality of types, a part of the code pattern of the first barcode based on the first standard can be read as a second barcode based on the second standard in which the number of bars is set to be smaller than that of the first standard. If you have sex
A first step of performing reading by applying the reading algorithm of the second standard to a light and dark pattern sequence obtained by binarizing the read barcode;
A second step of determining whether or not a character pattern that can exist in the first barcode exists in at least one of the vicinity of both ends of the light and dark pattern sequence read in the first step;
When it is determined in the second step that the character pattern exists, a margin position corresponding to the first barcode is estimated assuming that the light / dark pattern string is a partial code pattern of the first barcode. 3 steps,
A fourth step of determining the bright and dark pattern string as read data of the second barcode when a margin is not detected at the margin position estimated in the third step;
A bar code reading method comprising:
前記第3ステップは、前記第1バーコードに対応するマージン位置を当該第1バーコードのセンターバーに基づいて推定することを特徴とする請求項1に記載のバーコード読取方法。   The barcode reading method according to claim 1, wherein the third step estimates a margin position corresponding to the first barcode based on a center bar of the first barcode. 前記第4ステップは、前記第3ステップにより推定された前記マージン位置にマージンを検出する場合には、前記第1ステップにより読み取った前記バーコードを無効とすることを特徴とする請求項1または2に記載のバーコード読取方法。   The said 4th step makes invalid the said barcode read by the said 1st step, when a margin is detected in the said margin position estimated by the said 3rd step. The barcode reading method described in 1. 前記第1ステップにより読み取った前記バーコードを前記第4ステップにより無効とする場合には、その旨を報知する第5ステップを備えることを特徴とする請求項3に記載のバーコード読取方法。   4. The barcode reading method according to claim 3, further comprising: a fifth step of notifying that the barcode read in the first step is invalidated in the fourth step. 前記第1バーコードは、EAN (European Article Number)コード、および、UPC (Universal Product Code)コードのいずれか1つであり、
前記第2バーコードは、RSS (Reduced Space Symbology)コードであることを特徴とする請求項1〜4のいずれか一項に記載のバーコード読取方法。
The first barcode is any one of an EAN (European Article Number) code and a UPC (Universal Product Code) code.
The barcode reading method according to any one of claims 1 to 4, wherein the second barcode is an RSS (Reduced Space Symbol) code.
複数種類の規格に基づいて作成されたバーコードを光学的に読み取り、当該バーコードに記録されているデータをデコードするバーコード読取装置において、
前記複数種類のうち、第1規格に基づく第1バーコードの一部のコードパターンが、前記第1規格よりもバーの構成本数が少なく設定される第2規格に基づく第2バーコードとして読み取れる可能性がある場合に、
読み取ったバーコードを2値化処理して得られる明暗パターン列に対して前記第2規格の読み取りアルゴリズムを適用して読み取りを行う読取手段と、
前記読取手段により読み取られた前記明暗パターン列の両端近傍の少なくとも一方に、前記第1バーコードに存在し得るキャラクタパターンが存在するか否かを判定する判定手段と、
前記判定手段により前記キャラクタパターンが存在すると判定された場合に前記明暗パターン列を前記第1バーコードの一部のコードパターンと想定して当該第1バーコードに対応するマージン位置を推定するマージン位置推定手段と、
前記マージン位置推定手段により推定された前記マージン位置にマージンを検出しない場合には、前記明暗パターン列を前記第2バーコードの読取データとして確定する確定手段と、
を備えることを特徴とするバーコード読取装置。
In a barcode reader that optically reads barcodes created based on multiple types of standards and decodes data recorded in the barcodes,
Among the plurality of types, a part of the code pattern of the first barcode based on the first standard can be read as a second barcode based on the second standard in which the number of bars is set to be smaller than that of the first standard. If you have sex
Reading means for applying a reading algorithm of the second standard to a light and dark pattern string obtained by binarizing the read barcode;
Determining means for determining whether or not a character pattern that may exist in the first barcode exists in at least one of the vicinity of both ends of the light and dark pattern row read by the reading means;
A margin position for estimating a margin position corresponding to the first barcode assuming that the light / dark pattern string is a partial code pattern of the first barcode when the determination unit determines that the character pattern exists. An estimation means;
A determination means for determining the bright and dark pattern string as read data of the second barcode when a margin is not detected at the margin position estimated by the margin position estimation means;
A bar code reader characterized by comprising:
前記マージン位置推定手段は、前記第1バーコードに対応するマージン位置を当該第1バーコードのセンターバーに基づいて推定することを特徴とする請求項6に記載のバーコード読取装置。   7. The barcode reader according to claim 6, wherein the margin position estimation means estimates a margin position corresponding to the first barcode based on a center bar of the first barcode. 前記確定手段は、前記マージン位置推定手段により推定された前記マージン位置にマージンを検出する場合には、前記読取手段により読み取った前記バーコードを無効とすることを特徴とする請求項6または7に記載のバーコード読取装置。   8. The method according to claim 6, wherein the determining unit invalidates the barcode read by the reading unit when detecting a margin at the margin position estimated by the margin position estimating unit. The barcode reader according to the description. 前記読取手段により読み取った前記バーコードを前記確定手段により無効とする場合には、その旨を報知する報知手段を備えることを特徴とする請求項8に記載のバーコード読取装置。   The barcode reading apparatus according to claim 8, further comprising a notifying unit that notifies that the barcode read by the reading unit is invalidated by the determining unit. 前記第1バーコードは、EAN (European Article Number)コード、および、UPC (Universal Product Code)コードのいずれか1つであり、
前記第2バーコードは、RSS (Reduced Space Symbology)コードであることを特徴とする請求項6〜9のいずれか一項に記載のバーコード読取装置。
The first barcode is any one of an EAN (European Article Number) code and a UPC (Universal Product Code) code.
10. The barcode reader according to claim 6, wherein the second barcode is an RSS (Reduced Space Symbol) code. 11.
JP2009100554A 2009-04-17 2009-04-17 Bar code reading method and bar code reading apparatus Expired - Fee Related JP5152086B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009100554A JP5152086B2 (en) 2009-04-17 2009-04-17 Bar code reading method and bar code reading apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009100554A JP5152086B2 (en) 2009-04-17 2009-04-17 Bar code reading method and bar code reading apparatus

Publications (2)

Publication Number Publication Date
JP2010250641A JP2010250641A (en) 2010-11-04
JP5152086B2 true JP5152086B2 (en) 2013-02-27

Family

ID=43312882

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009100554A Expired - Fee Related JP5152086B2 (en) 2009-04-17 2009-04-17 Bar code reading method and bar code reading apparatus

Country Status (1)

Country Link
JP (1) JP5152086B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220083406A (en) 2020-12-11 2022-06-20 (주)에스피에스 Apparatus and method for extracting barcode

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001307013A (en) * 2000-04-20 2001-11-02 Oki Electric Ind Co Ltd Bar code reader
JP4254724B2 (en) * 2005-02-16 2009-04-15 株式会社デンソーウェーブ Bar code reading method and computer program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220083406A (en) 2020-12-11 2022-06-20 (주)에스피에스 Apparatus and method for extracting barcode

Also Published As

Publication number Publication date
JP2010250641A (en) 2010-11-04

Similar Documents

Publication Publication Date Title
US9230147B2 (en) Method and apparatus for optically reading out information stored in a barcode
JP2004078896A (en) Method and device for reading optical information code
JP5152086B2 (en) Bar code reading method and bar code reading apparatus
JP2010086182A (en) Optical information reader
JP5195264B2 (en) Bar code reading method and bar code reading apparatus
JP4154871B2 (en) Bar code reading method and bar code reading apparatus
JP4058478B2 (en) Optical information reading method
JP2002092542A (en) Optical information reader
JP2011008574A (en) Optical information reader
JP2009076031A (en) Optical information reader
JP2007094976A (en) Optical data reading apparatus
JP4650138B2 (en) Optical information reader
JP5104713B2 (en) Optical information reader
JP5218316B2 (en) Optical information reader
JP2011197856A (en) Optical information reading device
JP5825141B2 (en) Optical information reader
JP4591216B2 (en) Information code reading system, information code reading device, and label
JP4951745B2 (en) Bar code reader
JP5724771B2 (en) Optical information reader
JP2006134160A (en) Optical information reading device
JP2014157451A (en) Optical information reader
JP5115131B2 (en) Optical information reader
JP5240161B2 (en) Optical information reader
JP5895340B2 (en) Optical information reader
JP4636105B2 (en) Bar code reading method, bar code reading apparatus, and computer program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110822

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121025

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20121106

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121119

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

Free format text: PAYMENT UNTIL: 20151214

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5152086

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20151214

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees