JP5377605B2 - Code symbol reader - Google Patents

Code symbol reader Download PDF

Info

Publication number
JP5377605B2
JP5377605B2 JP2011200948A JP2011200948A JP5377605B2 JP 5377605 B2 JP5377605 B2 JP 5377605B2 JP 2011200948 A JP2011200948 A JP 2011200948A JP 2011200948 A JP2011200948 A JP 2011200948A JP 5377605 B2 JP5377605 B2 JP 5377605B2
Authority
JP
Japan
Prior art keywords
code symbol
barcode
image signal
region
area
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.)
Active
Application number
JP2011200948A
Other languages
Japanese (ja)
Other versions
JP2011248930A (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.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC 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 Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP2011200948A priority Critical patent/JP5377605B2/en
Publication of JP2011248930A publication Critical patent/JP2011248930A/en
Application granted granted Critical
Publication of JP5377605B2 publication Critical patent/JP5377605B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a code symbol reading device providing a mechanism for cutting out a code area to a design bar-code and the like having various design elements, and capable of preventing unreading; and a control program for the same. <P>SOLUTION: A code symbol reading device comprises an image pick-up portion 120 outputting a multi-gradation image signal of an picked-up image imaging to an area image sensor, a line writing portion 21 overwriting a line pattern having a predetermined gradation value to the multi-gradation image signal output from the image pick-up portion, a symbol area cutting-out portion 22 cutting out a code symbol area which should be read from an image of the multi-gradation image signal edited by the line writing portion, and a code symbol reading portion 23 reading the code symbol about the image area output from the symbol area cutting-out portion. <P>COPYRIGHT: (C)2012,JPO&amp;INPIT

Description

この発明は、コードシンボル読取装置に関し、例えば、バーコード読取装置等に適用される。   The present invention relates to a code symbol reader, and is applied to, for example, a barcode reader.

商品に付されたバーコード等のコードシンボルの画像を取得して、商品データを出力するコードシンボル読取装置として、CCD(Charge Coupled Device Image Sensor)撮像素子等のエリアイメージセンサを使用したものがある(例えば、特許文献1参照)。このようなコードシンボル読取装置では、CCD撮像素子で得られる画像データから対象とするバーコードの画像情報を抽出し、この画像情報を解析して商品データを取得する。   As a code symbol reading device that acquires an image of a code symbol such as a barcode attached to a product and outputs product data, there is one using an area image sensor such as a CCD (Charge Coupled Device Image Sensor) image sensor. (For example, refer to Patent Document 1). In such a code symbol reader, image information of a target barcode is extracted from image data obtained by a CCD image sensor, and product data is obtained by analyzing the image information.

ところで、エリアイメージセンサを使用したコードシンボル読取装置においては、画像データからバーコード領域を切り出し、その切り出された領域に対してバーコードのデコード処理を行う方法が考えられる。予めバーコード領域を切り出すことによって、デコード処理を高速化することが可能であり、デコードの確率も高くなる。ここで、予めバーコード領域を正確に切り出すためには、バーコードが示す形状の特徴を利用する方法が考えられる。   By the way, in a code symbol reader using an area image sensor, a method is considered in which a bar code area is cut out from image data and a bar code decoding process is performed on the cut out area. By cutting out the barcode area in advance, it is possible to speed up the decoding process, and the probability of decoding increases. Here, in order to accurately cut out the barcode area in advance, a method using the feature of the shape indicated by the barcode can be considered.

しかしながら、最近では、バーコードのバー幅の規定を保証しながらも従来のバーコードの形状とは異なるデザイン主体のバーコード(以下、デザインバーコードと称す)が出現している。このようなデザインバーコード等の場合、従来型のバーコードを対象にしたバーコード切り出し方式では対応できず、そのため、未読が発生する場合がある。   However, recently, barcodes of a design subject (hereinafter referred to as “design barcodes”) that are different from the shapes of conventional barcodes have appeared, while guaranteeing the definition of the barcode bar width. In the case of such a design barcode or the like, a conventional barcode cut-out method for a barcode is not applicable, and therefore unread may occur.

この発明の一態様に係るコードシンボル読取装置は、撮像画像の多階調画像信号を出力する撮像部を備え、前記撮像部から出力され、バーコード領域として検出可能でない前記多階調画像信号を読取対象とするコードシンボル読取装置であって、前記多階調画像信号から、バーコード領域として検出可能な領域が分断されるように、前記撮像部から出力された前記多階調画像信号に対して所定の階調値を有するラインパターンを上書きし、前記多階調画像信号の画像を第1の領域と第2の領域とに分断するライン書込部と、前記ライン書込部において上書きするラインパターンを切り替えるラインパターン切替部と、前記ライン書込部によって分断され、独立した構成バーが存在する前記第1の領域または前記第2の領域のいずれか領域のコードシンボルを読み取るコードシンボル読取部と、を具備する。 A code symbol reader according to an aspect of the present invention includes an imaging unit that outputs a multi-tone image signal of a captured image, and outputs the multi-tone image signal that is output from the imaging unit and cannot be detected as a barcode area. A code symbol reading device to be read, wherein the multi-tone image signal output from the imaging unit is divided from the multi-tone image signal so that a region that can be detected as a barcode region is divided. A line pattern having a predetermined gradation value is overwritten, and the line writing section for dividing the image of the multi-gradation image signal into a first area and a second area is overwritten in the line writing section. a line pattern switching unit for switching the line pattern, is divided by the line writing unit, any region U of the first region or the second region configured independently bar is present It comprises a code symbol reader for reading the Doshinboru, the.

この発明の一態様に係るコードシンボル読取装置の制御プログラムは、エリアイメージセンサを備えたコードシンボル読取装置に、前記エリアイメージセンサに結像した撮像画像の多階調画像信号に対して所定の階調値を有するラインパターンを上書きする手順と、前記上書きする手順によって編集された多階調画像信号の画像から読み取るべきコードシンボルの領域を切り出す手順と、前記シンボルの領域を切り出す手順により処理される画像領域を対象にコードシンボルを読み取る手順とを実行させるためのものである。   A control program for a code symbol reading apparatus according to an aspect of the present invention provides a code symbol reading apparatus provided with an area image sensor to a predetermined scale for a multi-gradation image signal of a captured image formed on the area image sensor. Processing is performed by a procedure of overwriting a line pattern having a tone value, a procedure of cutting out a code symbol area to be read from an image of a multi-tone image signal edited by the overwriting procedure, and a procedure of cutting out the symbol area And a procedure for reading a code symbol for an image area.

この発明によれば、多様なデザイン要素を持ったデザインバーコード等に対しても、コード領域を切り出す仕組みを提供し、未読を防止できるコードシンボル読取装置およびその制御プログラムを提供できる。   According to the present invention, it is possible to provide a mechanism for cutting out a code area even for a design barcode having various design elements, and to provide a code symbol reader capable of preventing unread and its control program.

この発明の第1の実施形態に係るバーコードスキャナの外観を示す斜視図。1 is a perspective view showing an appearance of a barcode scanner according to a first embodiment of the present invention. 第1の実施形態に係るコードシンボル読取装置の構成例を示す図。1 is a diagram illustrating a configuration example of a code symbol reading apparatus according to a first embodiment. 第1の実施形態に係るコードシンボル読取装置の制御プログラムを示す図。The figure which shows the control program of the code symbol reader which concerns on 1st Embodiment. 第1の実施形態に係る一般的なバーコードの一例を示す図。The figure which shows an example of the general barcode which concerns on 1st Embodiment. 第1の実施形態に係るデザインバーコードの一例を示す図。The figure which shows an example of the design barcode which concerns on 1st Embodiment. 第1の実施形態に係るデザインバーコードのその他の一例を示す図。The figure which shows another example of the design barcode which concerns on 1st Embodiment. 第1の実施形態に係るコードシンボル読取装置のバーコード読取動作を示すフロー図。FIG. 3 is a flowchart showing a barcode reading operation of the code symbol reading apparatus according to the first embodiment. 第1の実施形態に係るコードシンボル読取装置の上書きラインパターン(1)を示す図。The figure which shows the overwrite line pattern (1) of the code symbol reader which concerns on 1st Embodiment. 第1の実施形態に係る上書き処理後のデザインバーコードを示す図。The figure which shows the design barcode after the overwrite process which concerns on 1st Embodiment. 第1の実施形態に係る上書き処理後のデザインバーコードを示す図。The figure which shows the design barcode after the overwrite process which concerns on 1st Embodiment. 変形例に係るコードシンボル読取装置のバーコード読取動作を示すフロー図。The flowchart which shows the barcode reading operation | movement of the code symbol reader which concerns on a modification. 変形例に係るコードシンボル読取装置の上書きラインパターン(2)を示す図。The figure which shows the overwrite line pattern (2) of the code symbol reader which concerns on a modification. 変形例に係るコードシンボル読取装置の上書きラインパターン(3)を示す図。The figure which shows the overwrite line pattern (3) of the code symbol reader which concerns on a modification. 変形例に係るコードシンボル読取装置の上書きラインパターン(4)を示す図。The figure which shows the overwrite line pattern (4) of the code symbol reader which concerns on a modification.

以下、この発明の実施形態について図面を参照して説明する。本実施形態では、コードシンボル読取装置として、縦型のバーコードスキャナに用いられるコードシンボル読取装置を一例に挙げて説明する。尚、この説明においては、全図にわたり共通の部分には共通の参照符号を付す。   Embodiments of the present invention will be described below with reference to the drawings. In the present embodiment, a code symbol reader used in a vertical barcode scanner will be described as an example of the code symbol reader. In this description, common parts are denoted by common reference symbols throughout the drawings.

[第1の実施形態]
<1.構成例>
1−1.バーコードスキャナ10の外観構成例
まず、図1を用いて、この発明の第1の実施形態に係るバーコードスキャナ10の外観構成例について説明する。
[First Embodiment]
<1. Configuration example>
1-1. External configuration example of barcode scanner 10
First, an external configuration example of a barcode scanner 10 according to the first embodiment of the present invention will be described with reference to FIG.

図示するように、バーコードスキャナ10は、コードシンボル読取装置100の高さを変更する昇降機能を備え、オペレータによる読取操作を行い易くしたものである。バーコードスキャナ10は、商品が入れられたカゴ等が置かれるサッカー台11(又はカウンタ台)に立設されている。   As shown in the figure, the bar code scanner 10 has an elevating function for changing the height of the code symbol reading device 100 so that an operator can easily perform a reading operation. The barcode scanner 10 is erected on a soccer stand 11 (or a counter stand) on which a basket or the like in which goods are put is placed.

このバーコードスキャナ10には、案内溝12を有する一対の支柱13と、この案内溝12に沿って昇降自在に案内されるコードシンボル読取装置100とが設けられている。このように、本例に係るコードシンボル読取装置は、外観上、コードシンボル読取装置100として示されている。コードシンボル読取装置100の上方には、表示部16とキーボード17とが設けられている。   The bar code scanner 10 is provided with a pair of support columns 13 having guide grooves 12 and a code symbol reading device 100 that is guided along the guide grooves 12 so as to be movable up and down. Thus, the code symbol reader according to this example is shown as the code symbol reader 100 in appearance. A display unit 16 and a keyboard 17 are provided above the code symbol reader 100.

本実施の形態に係るバーコードスキャナ10の構成において、オペレータは、コードシンボル読取装置100の前方に商品を配置し、商品に付されたバーコードを読み取る。従って、本例に係るコードシンボル読取装置100の出力は、読み取ったバーコード読み取り情報のみとなる。   In the configuration of the barcode scanner 10 according to the present embodiment, an operator places a product in front of the code symbol reader 100 and reads a barcode attached to the product. Therefore, the output of the code symbol reading apparatus 100 according to this example is only the read barcode reading information.

1−2.コードシンボル読取装置100の構成例
次に、図2を用い、コードシンボル読取装置100の構成例について説明する。
図示するように、コードシンボル読取装置100は、制御の主体となるコードシンボル装置100全体を制御するCPU(Central Processing Unit:制御部)51を搭載している。このCPU51には、バス52を介してROM(Read Only Memory)53と、RAM(Random Access Memory)54と、通信インタフェース(I/F)55と、バーコード読取部101と、および撮像部120とが電気的に接続されている。
1-2. Configuration example of code symbol reader 100
Next, a configuration example of the code symbol reading apparatus 100 will be described with reference to FIG.
As shown in the figure, the code symbol reading apparatus 100 is equipped with a CPU (Central Processing Unit: control unit) 51 for controlling the entire code symbol apparatus 100 as a main subject of control. The CPU 51 includes a ROM (Read Only Memory) 53, a RAM (Random Access Memory) 54, a communication interface (I / F) 55, a barcode reading unit 101, and an imaging unit 120 via a bus 52. Are electrically connected.

通信インタフェース(I/F)55には、販売店舗内のLAN(Local Area Network)58を介してPOS(Point of Sales)サーバ60が接続されている。   A POS (Point of Sales) server 60 is connected to the communication interface (I / F) 55 via a LAN (Local Area Network) 58 in the store.

POSサーバ60は、例えば、店舗で販売する全ての商品の価格や商品名等のデータを予め格納する商品データベースを有している。POSサーバ60は、コードシンボル読取装置100との間で、商品の精算処理に関する情報の授受および商品の精算処理結果の記録を行う。より詳細には、POSサーバ60は、コードシンボル読取装置100からLAN58を介して送信されてくる商品に付されたバーコードのデコードデータを商品データベースに照会し、当該デコードデータに対応する商品の価格や商品名等のデータを読み出し、全ての商品の各価格を合計して精算額データを求める。表示部16、キーボード(操作入力部)17、およびコードシンボル読取装置100は、POSサーバ60に接続され、制御される。   The POS server 60 has, for example, a product database that stores in advance data such as prices and product names of all products sold in stores. The POS server 60 exchanges information regarding the product settlement process and records the product settlement process result with the code symbol reader 100. More specifically, the POS server 60 refers to the product database for the barcode decoding data attached to the product transmitted from the code symbol reader 100 via the LAN 58, and the price of the product corresponding to the decoded data. And data such as product names are read out, and the settlement amount data is obtained by summing up the prices of all products. The display unit 16, the keyboard (operation input unit) 17, and the code symbol reading device 100 are connected to the POS server 60 and controlled.

ROM53には、バーコード読取部101に係る制御プログラムが予め格納されていても良い。   The ROM 53 may store a control program related to the barcode reading unit 101 in advance.

RAM54には、例えば、撮像部120の撮像により取得された画像や、バーコード画像をデコードした結果であるデコードデータ等を格納するためのワークエリアが形成される。図示するように、後述するバーコード読取動作(S11〜S18)の際、RAM54の上記ワークエリアには、例えば、ROM53やバーコード読取部101等からロードされ、バーコード読取動作(S11〜S18)を実行する制御プログラムが一時的に格納される。バーコード読取動作は、CPU51等の制御部により実行される。   In the RAM 54, for example, a work area for storing an image acquired by imaging by the imaging unit 120, decoded data that is a result of decoding a barcode image, and the like is formed. As shown in the figure, during the barcode reading operation (S11 to S18) described later, the work area of the RAM 54 is loaded from, for example, the ROM 53, the barcode reading unit 101, etc., and the barcode reading operation (S11 to S18). Is temporarily stored. The barcode reading operation is executed by a control unit such as the CPU 51.

撮像部120は、エリアイメージセンサに結像した撮像画像の多階調画像信号を、バーコード読取部101に出力する。尚、この撮像部120は、例えば、CCD撮像素子等として、バーコード読取部101内に搭載されていても良い。   The imaging unit 120 outputs a multi-tone image signal of the captured image formed on the area image sensor to the barcode reading unit 101. The imaging unit 120 may be mounted in the barcode reading unit 101 as, for example, a CCD imaging device or the like.

バーコード読取部101は、CPU51の制御に従い、撮像部120から入力された多階調画像信号に対して、所定のバーコードデータの読取動作を行い、バーコード情報としてバス52に出力する。バーコードデータの読取動作の詳細については、後述する。   The barcode reading unit 101 performs a predetermined barcode data reading operation on the multi-tone image signal input from the imaging unit 120 under the control of the CPU 51 and outputs the barcode data to the bus 52 as barcode information. Details of the barcode data reading operation will be described later.

1−3.制御プログラム
次に、図3を用い、本例に係るコードシンボル読取装置100の制御プログラムについて説明する。また、この制御プログラムは、より具体的には、上記のように、RAM54上のワークエリアに展開されてCPU(制御部)51により制御実行される。
1-3. Control program
Next, a control program of the code symbol reading apparatus 100 according to this example will be described with reference to FIG. More specifically, this control program is developed in the work area on the RAM 54 and controlled and executed by the CPU (control unit) 51 as described above.

図示するように、本例に係るバーコード読取部101は、制御プログラムとして、ライン書込部21、シンボル領域切出部22、コードシンボル読取部23、および上書きパターン切替部25を少なくとも備える。   As shown in the figure, the barcode reading unit 101 according to this example includes at least a line writing unit 21, a symbol area cutting unit 22, a code symbol reading unit 23, and an overwrite pattern switching unit 25 as a control program.

ライン書込部21は、撮像部120から出力された前記多階調画像信号に対して所定の階調値を有したラインパターンを上書きする。   The line writing unit 21 overwrites the multi-tone image signal output from the imaging unit 120 with a line pattern having a predetermined gradation value.

シンボル領域切出部22は、上記ライン書込部21によって編集された多階調画像信号の画像から読み取るべきコードシンボルの領域を切り出す。より具体的には、後述する図9、図10に示すように、シンボル領域切出部22は、バーコードのスペース部の多階調画像信号に近似する値により分離された画像信号のうち、独立した構成バーが存在する側の画像信号(本例では、下側の画像信号)を切り出す。   The symbol area cutout unit 22 cuts out a code symbol area to be read from the image of the multi-tone image signal edited by the line writing unit 21. More specifically, as shown in FIGS. 9 and 10 to be described later, the symbol area cutout unit 22 includes an image signal separated by a value approximating the multi-tone image signal in the space portion of the barcode. The image signal on the side where the independent component bar exists (in this example, the lower image signal) is cut out.

コードシンボル読取部23は、上記シンボル領域切出部22から出力される画像領域を対象にコードシンボルを読み取る。   The code symbol reading unit 23 reads a code symbol for the image region output from the symbol region cutting unit 22.

上書きパターン切替部25は、後述の変形例で詳述するように、ライン書込部21により上書きされるラインパターンを切り替える。より詳細については、バーコード読取動作の際に説明する。   The overwrite pattern switching unit 25 switches the line pattern to be overwritten by the line writing unit 21 as will be described in detail in a later-described modification. More details will be described in the barcode reading operation.

尚、上記制御プログラムは、例えば、フロッピー(登録商標)ディスク、光学ディスク、半導体メモリ等のコンピュータ(情報処理装置)に読み取り可能な記録媒体に格納することが可能である。格納された本例に係る制御プログラムは、上記記憶媒体により記録されたデータの構造によりコンピュータが行う処理内容が特定される。   The control program can be stored in a recording medium readable by a computer (information processing apparatus) such as a floppy (registered trademark) disk, an optical disk, or a semiconductor memory. In the stored control program according to the present example, the contents of processing performed by the computer are specified by the structure of data recorded by the storage medium.

<2.バーコードの形態について>
次に、図4乃至図6を用い、本例に係るバーコードの形態について説明する。
図4は、一般的なバーコードの一例の形態を示す図である。図示するように、この一般的なバーコードでは、構成バーのそれぞれが、独立分離して存在している。そのため、所定のアルゴリズム(同じ長さでかつ同一方向に傾いたバーの集合体を検出する方式)を正常に機能させることができ、その結果、バーコード領域の検出(切り出すこと)ができない事態が生じることはない。
一方、図5および図6は、デザインバーコードの一例の形態を示す図である。
<2. Barcode format>
Next, the form of the barcode according to this example will be described with reference to FIGS.
FIG. 4 is a diagram showing an example of a general bar code. As shown in the figure, in this general bar code, each of the constituent bars exists independently. Therefore, a predetermined algorithm (a method for detecting an aggregate of bars having the same length and inclined in the same direction) can be functioned normally, and as a result, the barcode area cannot be detected (cut out). It does not occur.
On the other hand, FIG. 5 and FIG. 6 are diagrams showing examples of design barcodes.

図5に示されるデザインバーコード(1)では、構成バーの一端を結合させるようにして全体が”矢印状”となるデザインDA1が施されている。図6に示されるデザインバーコード(2)では、構成バーの一端を結合させて”長方形状”となるデザインDA2が施されている。   In the design barcode (1) shown in FIG. 5, a design DA1 having an “arrow shape” as a whole is applied so that one end of the component bar is coupled. In the design barcode (2) shown in FIG. 6, a design DA2 having a “rectangular shape” is formed by connecting one ends of the constituent bars.

ここで、これらのデザインバーコードであっても、構成バーのバー幅ピッチは規定を満たしている。そのため、例えば、レーザ方式のコードシンボル読取装置の場合では、図4に示す一般的なバーコードと同様に、バーコード上を走査できれば、デコードが可能であるとも思われる。   Here, even in the case of these design barcodes, the bar width pitch of the constituent bars satisfies the regulation. Therefore, for example, in the case of a laser-type code symbol reader, it is considered that decoding is possible if the barcode can be scanned, similarly to the general barcode shown in FIG.

しかしながら、エリアイメージセンサを使用したコードシンボル読取装置においては、高効率にデコード処理を行うために、撮像部から出力された多階調画像データからバーコード領域を切り出す処理を行う。このとき、バーコード領域を検出する為の情報として、バーコードを構成するバーに着目し、同じ長さでかつ同一方向に傾いたバーの集合体を検出するアルゴリズムを用いる。   However, in a code symbol reader using an area image sensor, in order to perform decoding processing with high efficiency, processing for cutting out a barcode area from multi-tone image data output from an imaging unit is performed. At this time, as information for detecting the barcode area, attention is paid to the bars constituting the barcode, and an algorithm for detecting an aggregate of bars having the same length and inclined in the same direction is used.

そのため、図5、図6で示したデザインバーコードの場合、構成バーの一端がデザイン化のための線(DA1,DA2)と接触しており、個々のバーが独立分離して存在していない。そうすると前記アルゴリズム(同じ長さでかつ同一方向に傾いたバーの集合体を検出する方式)が機能せず、その結果、バーコード領域の検出(切り出すこと)ができない事態が生じ、未読(コードシンボルが読取不可能であること)が発生する。   Therefore, in the case of the design barcode shown in FIGS. 5 and 6, one end of the configuration bar is in contact with the design line (DA1, DA2), and the individual bars do not exist independently. . As a result, the algorithm (method for detecting a collection of bars having the same length and inclined in the same direction) does not function, and as a result, the barcode area cannot be detected (cut out) and unread (code symbol) Is unreadable).

そこで、本例に係るコードシンボル読取装置およびそのコードシンボル読取動作では、上書きのラインパターンを、撮像部から出力された多階調画像データに重畳させ、バーコードを分断処理する。   Therefore, in the code symbol reading apparatus and the code symbol reading operation according to this example, the bar code is divided by superimposing the overwritten line pattern on the multi-tone image data output from the imaging unit.

その結果、***した一方(本例では、下側)の領域を、バーコード領域として検出することが可能となるので、バーコード領域として切り出して、その後のデコード処理でバーコードのデコードが可能になる。従って、図5、図6等に示すデザインバーコードであっても、未読が発生することはない。   As a result, it is possible to detect one of the divided areas (the lower side in this example) as a barcode area, so that it can be cut out as a barcode area and decoded in the subsequent decoding process. Become. Therefore, even in the case of the design barcode shown in FIGS.

尚、上書きするラインパターンについては、バーの延設方向に交差するように、複数のラインパターンを用意することが有効である。これは、読み取り対象のバーコードの方向が予め検知できないためであり、複数のパターンを、例えばフレーム毎に切り替えることで全方向に読取動作が対応可能になる。詳細については、後述する。   For the line pattern to be overwritten, it is effective to prepare a plurality of line patterns so as to intersect the extending direction of the bar. This is because the direction of the barcode to be read cannot be detected in advance, and the reading operation can be handled in all directions by switching a plurality of patterns, for example, for each frame. Details will be described later.

<3.バーコード読取動作>
次に、本例に係るコードシンボル読取装置のバーコード読取動作ついて、図7に示す処理手順フローに沿って説明する。
<3. Barcode reading operation>
Next, the barcode reading operation of the code symbol reading apparatus according to this example will be described along the processing procedure flow shown in FIG.

(ステップST11)
まず、CPU51は、撮像部120により撮像された多階調画像データを、RAM54に一時的に格納する。
(Step ST11)
First, the CPU 51 temporarily stores the multi-tone image data captured by the imaging unit 120 in the RAM 54.

(ステップST12)
続いて、CPU51は、前記多階調画像データに対して、所定の階調値をもつラインパターンを上書きする。ここで、上記の所定の階調値とは、バーコードのスペース部の多階調画像信号に近似する値であり、一般的に言えば白地の多階調画像信号と同等の階調値を設定する。また、ラインの傾き角度、位置、本数なども予め設定可能とする。
(Step ST12)
Subsequently, the CPU 51 overwrites the multi-tone image data with a line pattern having a predetermined tone value. Here, the predetermined gradation value is a value that approximates the multi-tone image signal in the space portion of the barcode, and generally speaking, it has a gradation value equivalent to that of the multi-tone image signal on a white background. Set. Also, the inclination angle, position, number of lines, etc. can be set in advance.

例えば、本例の場合、このステップST12の際に上書きされるラインパターンは、図8のように示される。図示する上書きラインパターン(1)は、バーの延設方向に対して交差するように(紙面で横方向)複数のラインが配置されるパターンである。   For example, in the case of this example, the line pattern to be overwritten at this step ST12 is shown as in FIG. The overwrite line pattern (1) shown in the figure is a pattern in which a plurality of lines are arranged so as to intersect with the extending direction of the bar (in the horizontal direction on the paper surface).

図示する上書きラインパターン(1)を、撮像部から出力された多階調画像データに重畳させ、分断処理した後のデザインバーコードは、例えば、図9、図10のように示される。   The design barcode after the overwriting line pattern (1) shown in the figure is superimposed on the multi-gradation image data output from the imaging unit and divided is shown in FIGS. 9 and 10, for example.

図中の矢印で示すように、上書きラインパターン(1)を多階調画像データに重畳させた結果、デザインバーコード(1)、(2)を、続くステップST13の際に、それぞれ上下に分断して判定することができる。そして、***した一方(本例では、下側)の領域を、バーコード領域として検出することが可能となる。さらに、バーコード領域として切り出して検出した領域は、その後のデコード処理でバーコードのデコードが可能になる。従って、図5、図6等に示したデザインバーコード(1)、(2)であっても、未読が発生することはない。   As shown by the arrows in the figure, as a result of superimposing the overwriting line pattern (1) on the multi-gradation image data, the design barcodes (1) and (2) are divided into upper and lower parts at the subsequent step ST13. Can be determined. Then, it becomes possible to detect one of the divided regions (the lower side in this example) as a barcode region. Furthermore, the bar code area can be decoded by the subsequent decoding process for the area cut out and detected as the bar code area. Therefore, even in the case of the design barcodes (1) and (2) shown in FIGS.

(ステップST13)
続いて、こうして得られた多階調画像に対してバーコード候補切り出し処理を行う。切り出し処理は、例えば、前記多階調画像データを所定の閾値で2値化して、同じ長さでかつ同一方向に傾いた領域(個々のバーを想定)の集合体を検出する。
(Step ST13)
Subsequently, barcode candidate cutout processing is performed on the multi-tone image obtained in this way. In the cut-out process, for example, the multi-tone image data is binarized with a predetermined threshold value, and an aggregate of regions (assuming individual bars) having the same length and inclined in the same direction is detected.

本例では、上記ステップST12に際に上書きラインパターン(1)を多階調画像データに重畳させる。そのため、バーが繋がったデザインバーコード(1)、(2)であっても、前記ラインパターンの上書きで、バーコードが***した領域について、バーコード領域を切り出すことが出来る。   In this example, the overwrite line pattern (1) is superimposed on the multi-tone image data at the time of step ST12. Therefore, even in the case of the design barcodes (1) and (2) in which the bar is connected, the barcode region can be cut out for the region where the barcode is split by overwriting the line pattern.

(ステップST14)
続いて、条件に合致した候補領域の存在を検証する。この際、候補領域がある場合(Yes)には、次の処理(ステップST15)に進む。一方、候補領域がない場合(No)には、次の画像入力(ステップST18)を介して、再びステップST11に戻る。
(Step ST14)
Subsequently, the existence of a candidate area that matches the condition is verified. At this time, if there is a candidate area (Yes), the process proceeds to the next process (step ST15). On the other hand, if there is no candidate area (No), the process returns to step ST11 again via the next image input (step ST18).

(ステップST15)
続いて、このバーコード読取処理ステップでは、前記切り出されたバーコード候補領域を対象に、デコード処理を行う。
(Step ST15)
Subsequently, in this barcode reading processing step, decoding processing is performed on the extracted barcode candidate area.

(ステップST16)
続いて、デコード処理の結果が完了したか否かを判定する。デコードが完了した場合(Yes)には、前記デコード結果を送出するために次のステップST17に進む(ステップST17)。一方、デコード処理が未完の場合(No)には、次の画像入力ステップ(ステップST18)を介して、再びステップST11に戻る。
(Step ST16)
Subsequently, it is determined whether or not the result of the decoding process has been completed. When the decoding is completed (Yes), the process proceeds to the next step ST17 in order to send the decoding result (step ST17). On the other hand, when the decoding process is not completed (No), the process returns to step ST11 again through the next image input step (step ST18).

(ステップST17)
続いて、上記デコードが完了したバーコード情報結果を送信する。以上ここまでのステップ(ST11〜ST17)で、1フレーム(1画像)のバーコード読取動作が終了する。
(ステップST18)
続いて、全てのフレームについてのバーコード読取処理が終了したか否かを判定する。全フレームについてバーコード読取処理が終了した場合(Yes)には、このバーコード読取動作を終了する(End)。一方、全フレームについてのバーコード読取処理が終了いない場合(No)には、再びステップST11に戻る。例えば、本例の場合のバーコード読取動作においては、数〜数十フレームについてバーコード読取処理が実行される。
(Step ST17)
Subsequently, the barcode information result for which the decoding has been completed is transmitted. The bar code reading operation for one frame (one image) is completed in the above steps (ST11 to ST17).
(Step ST18)
Subsequently, it is determined whether or not the barcode reading process for all the frames has been completed. When the barcode reading process is completed for all frames (Yes), this barcode reading operation is ended (End). On the other hand, when the barcode reading process for all frames is not completed (No), the process returns to step ST11 again. For example, in the barcode reading operation in this example, barcode reading processing is executed for several to several tens of frames.

[変形例(その他の上書きラインパターンに切り替える一例)]
次に、図11乃至図14を用いて、変形例に係るコードシンボル読取装置について、説明する。この変形例は、その他の上書きラインパターンに切り替える一例に関するものである。この説明において、上記第1の実施形態と重複する部分の詳細な説明を省略する。
[Modification (Example of switching to another overwrite line pattern)]
Next, a code symbol reading apparatus according to a modification will be described with reference to FIGS. This modification relates to an example of switching to another overwriting line pattern. In this description, detailed description of the same parts as those in the first embodiment is omitted.

<バーコード読取動作>
本例に係るバーコード読取動作について、図11に沿って説明する。
図示するように、本例に係るバーコード読取動作は、ステップST22を更に実行する点で、上記第1の実施形態と相違する。
<Bar code reading operation>
The barcode reading operation according to this example will be described with reference to FIG.
As shown in the figure, the barcode reading operation according to this example is different from the first embodiment in that step ST22 is further executed.

(ステップST22)
ステップST21の後、CPU51は、上記多階調画像データに対して行う、上書きラインパターンを切り替える。
例えば、本例の場合、CPU51は、上記図8に示した上書きラインパターン(1)から、図12に示す上書きラインパターン(2)に切り替える。図示する切り替えられた上書きラインパターン(2)は、バーの延設方向に対して交差するように(紙面で縦方向)複数のラインが配置されるパターンである。
以後、上記第1の実施形態と同様のステップST23〜ST29を繰り返す。
尚、上記ステップST22の際に切り替える上書きラインパターンについては、バーの延設方向に交差するように、更に方向が異なる複数のラインパターンを用意することが有効である。例えば、図13、図14に示す上書きラインパターン(3)、(4)は、バーの延設方向に対して交差するように(紙面で斜め方向)複数のラインが配置されるパターンである。このように、複数の上書きラインパターンを用意するのは、ラインパターン上書きのステップS23の時点で、読み取り対象のバーコードの方向が予め検知できないためである。
(Step ST22)
After step ST21, the CPU 51 switches overwriting line patterns to be performed on the multi-tone image data.
For example, in the case of this example, the CPU 51 switches from the overwrite line pattern (1) shown in FIG. 8 to the overwrite line pattern (2) shown in FIG. The switched overwriting line pattern (2) shown in the figure is a pattern in which a plurality of lines are arranged so as to intersect the extending direction of the bar (vertical direction on the paper surface).
Thereafter, steps ST23 to ST29 similar to those in the first embodiment are repeated.
In addition, it is effective to prepare a plurality of line patterns having different directions so as to intersect the extending direction of the bars for the overwrite line pattern to be switched at the time of step ST22. For example, the overwrite line patterns (3) and (4) shown in FIGS. 13 and 14 are patterns in which a plurality of lines are arranged so as to intersect with the extending direction of the bar (in a diagonal direction on the paper surface). The plurality of overwrite line patterns are prepared in this way because the barcode direction to be read cannot be detected in advance at the time of line pattern overwrite step S23.

また、上書きラインパターンを切り替える頻度については、必要に応じ、1フレーム毎でも良いし、複数フレーム毎に切り替えても良い。   In addition, the frequency of switching the overwrite line pattern may be changed every frame or every plural frames as necessary.

上記のように、本例では、複数の上書きラインパターンを切り替えることができる点で、全方向に読取対応が可能となり、バーコードを切り出しでき、未読防止に対して更に有利である。   As described above, in this example, since a plurality of overwrite line patterns can be switched, reading can be performed in all directions, and a barcode can be cut out, which is further advantageous for preventing unreading.

以上、第1の実施形態および変形例を用いて本発明の説明を行ったが、この発明は上記実施形態および変形例に限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で種々に変形することが可能である。また、上記各実施形態および変形例には種々の段階の発明が含まれており、開示される複数の構成要件の適宜な組み合わせにより種々の発明が抽出され得る。例えば、各実施形態および変形例比較例に示される全構成要件からいくつかの構成要件が削除されても、発明が解決しようとする課題の欄で述べた課題の少なくとも1つが解決でき、発明の効果の欄で述べられている効果の少なくとも1つが得られる場合には、この構成要件が削除された構成が発明として抽出され得る。
以下に、本願出願の当初の特許請求の範囲に記載された発明を付記する。
(付記1)
リアイメージセンサに結像した撮像画像の多階調画像信号を出力する撮像部と、
前記撮像部から出力された前記多階調画像信号に対して所定の階調値を有するラインパターンを上書きし、前記多階調画像信号の画像を第1の領域と第2の領域とに分断するライン書込部と、
前記ライン書込部において上書きするラインパターンを切り替えるラインパターン切替部とを具備すること
を特徴とするコードシンボル読取装置。
(付記2)
前記上書きするラインパターンは、前記多階調画像信号のバーの延設方向に交差する複数のラインパターンであること
を特徴とする付記1に記載のコードシンボル読取装置。
(付記3)
前記上書するラインパターンを切り替える頻度は、複数フレーム毎に切り替えること
を特徴とする付記2に記載のコードシンボル読取装置。
(付記4)
前記上書するラインパターンを切り替える頻度は、1フレーム毎に切り替えること
を特徴とする付記2に記載のコードシンボル読取装置。
(付記5)
前記ライン書込部によって編集された多階調画像信号の画像における前記第1の領域を、コードシンボルを読み取る画像領域とするシンボル領域切出部と、
この画像領域を対象にコードシンボルを読み取るコードシンボル読取部とを更に具備すること
を特徴とする付記1乃至4のいずれか1項に記載のコードシンボル読取装置。
As described above, the present invention has been described using the first embodiment and the modified examples. However, the present invention is not limited to the above-described embodiments and modified examples, and various modifications can be made without departing from the scope of the invention. It is possible to deform to. Each of the above embodiments and modifications includes inventions at various stages, and various inventions can be extracted by appropriately combining a plurality of disclosed constituent elements. For example, even if some constituent elements are deleted from all the constituent elements shown in each embodiment and the comparative example of the modification, at least one of the problems described in the column of problems to be solved by the invention can be solved. In a case where at least one of the effects described in the “Effect” column is obtained, a configuration in which this constituent requirement is deleted can be extracted as an invention.
Hereinafter, the invention described in the scope of claims of the present application will be appended.
(Appendix 1)
An imaging unit that outputs a multi-tone image signal of a captured image formed on the rear image sensor;
A line pattern having a predetermined gradation value is overwritten on the multi-tone image signal output from the imaging unit, and the image of the multi-tone image signal is divided into a first region and a second region. A line writing unit to perform,
A line pattern switching unit that switches a line pattern to be overwritten in the line writing unit.
A code symbol reader characterized by the above.
(Appendix 2)
The overwriting line pattern is a plurality of line patterns intersecting with the extending direction of the bar of the multi-tone image signal.
The code symbol reader according to appendix 1, characterized by:
(Appendix 3)
The frequency of switching the overwritten line pattern should be switched every plural frames.
The code symbol reader according to appendix 2, characterized by:
(Appendix 4)
The frequency of switching the overwritten line pattern should be switched every frame.
The code symbol reader according to appendix 2, characterized by:
(Appendix 5)
A symbol region cutout unit that uses the first region in the image of the multi-tone image signal edited by the line writing unit as an image region for reading a code symbol;
A code symbol reading unit for reading a code symbol for the image area;
The code symbol reading device according to any one of appendices 1 to 4, characterized in that:

51…CPU、52…ROM、53…RAM、55…通信I/F、100…コードシンボル読取装置、120…撮像部。 51 ... CPU, 52 ... ROM, 53 ... RAM, 55 ... Communication I / F, 100 ... Code symbol reader, 120 ... Imaging section.

特開平9−62763号公報JP-A-9-62763

Claims (5)

撮像画像の多階調画像信号を出力する撮像部を備え、前記撮像部から出力され、バーコード領域として検出可能でない前記多階調画像信号を読取対象とするコードシンボル読取装置であって、
前記多階調画像信号から、バーコード領域として検出可能な領域が分断されるように、前記撮像部から出力された前記多階調画像信号に対して所定の階調値を有するラインパターンを上書きし、前記多階調画像信号の画像を第1の領域と第2の領域とに分断するライン書込部と、
前記ライン書込部において上書きするラインパターンを切り替えるラインパターン切替部と
前記ライン書込部によって分断され、独立した構成バーが存在する前記第1の領域または前記第2の領域のいずれか領域のコードシンボルを読み取るコードシンボル読取部と、
を具備することを特徴とするコードシンボル読取装置。
A code symbol reading device including an imaging unit that outputs a multi-tone image signal of a captured image, the multi-tone image signal output from the imaging unit and not detectable as a barcode area;
The multi-tone image signal output from the imaging unit is overwritten with a line pattern having a predetermined tone value so that a region that can be detected as a barcode region is divided from the multi-tone image signal. A line writing unit that divides the image of the multi-tone image signal into a first region and a second region;
A line pattern switching unit for switching a line pattern to be overwritten in the line writing unit ;
A code symbol reading unit that reads a code symbol in either the first region or the second region divided by the line writing unit and having an independent configuration bar; and
A code symbol reading apparatus comprising:
前記上書きするラインパターンは、前記多階調画像信号のバーの延設方向に交差する複数のラインパターンであること
を特徴とする請求項1に記載のコードシンボル読取装置。
The code symbol reader according to claim 1, wherein the overwritten line pattern is a plurality of line patterns intersecting a bar extending direction of the multi-tone image signal.
前記上書するラインパターンを切り替える頻度は、複数フレーム毎に切り替えること
を特徴とする請求項2に記載のコードシンボル読取装置。
The code symbol reader according to claim 2, wherein the frequency of switching the overwritten line pattern is switched every plural frames.
前記上書するラインパターンを切り替える頻度は、1フレーム毎に切り替えること
を特徴とする請求項2に記載のコードシンボル読取装置。
The code symbol reading device according to claim 2, wherein the frequency of switching the overwritten line pattern is switched for each frame.
前記ライン書込部によって編集された多階調画像信号の画像における前記第1の領域を、コードシンボルを読み取る画像領域とするシンボル領域切出部を更に具備すること
を特徴とする請求項1乃至4のいずれか1項に記載のコードシンボル読取装置。
The symbol region cutout unit further comprising a first region in the image of the multi-tone image signal edited by the line writing unit as an image region for reading a code symbol. 5. The code symbol reader according to any one of 4 above.
JP2011200948A 2011-09-14 2011-09-14 Code symbol reader Active JP5377605B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011200948A JP5377605B2 (en) 2011-09-14 2011-09-14 Code symbol reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011200948A JP5377605B2 (en) 2011-09-14 2011-09-14 Code symbol reader

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2009148904A Division JP4830008B2 (en) 2009-06-23 2009-06-23 Code symbol reader and its control program

Publications (2)

Publication Number Publication Date
JP2011248930A JP2011248930A (en) 2011-12-08
JP5377605B2 true JP5377605B2 (en) 2013-12-25

Family

ID=45414010

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011200948A Active JP5377605B2 (en) 2011-09-14 2011-09-14 Code symbol reader

Country Status (1)

Country Link
JP (1) JP5377605B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2016111226A1 (en) * 2015-01-05 2017-12-14 大日本印刷株式会社 Fine particles, anti-counterfeit ink, anti-counterfeit toner, anti-counterfeit sheet, anti-counterfeit medium, and recorded information reader

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0962763A (en) * 1995-08-29 1997-03-07 Tec Corp Bar code detection method
JP3651148B2 (en) * 1996-11-08 2005-05-25 松下電器産業株式会社 Symbol information reader
JP2008021009A (en) * 2006-07-11 2008-01-31 Fuji Xerox Co Ltd Bar code recognition device, method and program
JP2008294617A (en) * 2007-05-23 2008-12-04 Design Barcode Kk Pocket mobile terminal and content distribution system
JP2009181219A (en) * 2008-01-29 2009-08-13 Toshiba Tec Corp Bar code reader and its method

Also Published As

Publication number Publication date
JP2011248930A (en) 2011-12-08

Similar Documents

Publication Publication Date Title
JP4830008B2 (en) Code symbol reader and its control program
US20140153786A1 (en) Commodity recognition apparatus and commodity recognition method
JP5038456B2 (en) Sales registration device, checkout system and program
JP2013250647A (en) Merchandise display information tabulation method and data structure and recording medium for recording the same
JP5140820B2 (en) Symbol information reading apparatus and symbol information reading method
JP7476938B2 (en) Information processing device, information processing method, and program
US20160110580A1 (en) Code reading device and code reading program
JP4255964B2 (en) Product sales data processing device
JP2020154791A (en) Commodity information inspection system and control method of computer
JP5377605B2 (en) Code symbol reader
JP4997264B2 (en) Code symbol reader
JP6329840B2 (en) Recognition dictionary management device and program
JP5462302B2 (en) Code reading device, sales registration device and program
JP2012014271A (en) Code reading apparatus and program
CN112417914B (en) Data scanning method and device and electronic equipment
JP2015022520A (en) Business form reader and program
RU2003124588A (en) METHOD FOR AUTOMATED ACCOUNTING AND SUBMISSION OF INFORMATION ABOUT THE AVAILABILITY AND MOVEMENT OF GOODS AT THE STORAGE AREA AND THEIR SELECTION FOR IMPLEMENTATION AND ELECTRONIC SYSTEM FOR ITS IMPLEMENTATION
JP5349631B2 (en) Scanner and program
JP5026475B2 (en) Code symbol reader and its control program
JP5470734B2 (en) Image processing apparatus and image processing program
JPH0469788A (en) Optical information reader
JP2009031892A (en) Information reading system and program
JP2007179458A (en) Data reader
US11977948B2 (en) Code reading device and code reading method
JP5066592B2 (en) Code reader and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110914

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130522

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130528

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130725

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130924

R150 Certificate of patent or registration of utility model

Ref document number: 5377605

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150