JP7390919B2 - Code symbol reader and program - Google Patents

Code symbol reader and program Download PDF

Info

Publication number
JP7390919B2
JP7390919B2 JP2020022549A JP2020022549A JP7390919B2 JP 7390919 B2 JP7390919 B2 JP 7390919B2 JP 2020022549 A JP2020022549 A JP 2020022549A JP 2020022549 A JP2020022549 A JP 2020022549A JP 7390919 B2 JP7390919 B2 JP 7390919B2
Authority
JP
Japan
Prior art keywords
mode
unit
successes
image
imaging
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
JP2020022549A
Other languages
Japanese (ja)
Other versions
JP2021128522A (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 JP2020022549A priority Critical patent/JP7390919B2/en
Priority to CN202011279044.4A priority patent/CN113255380A/en
Publication of JP2021128522A publication Critical patent/JP2021128522A/en
Application granted granted Critical
Publication of JP7390919B2 publication Critical patent/JP7390919B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Description

本発明の実施形態は、コードシンボル読取装置およびプログラムに関する。 Embodiments of the present invention relate to a code symbol reading device and a program.

紙媒体に印刷されたバーコードや二次元コード等(コードシンボルの一例)や携帯端末等の表示画面に表示されたバーコードや二次元コード等を読取るコードシンボル読取装置において、紙媒体に印刷されたバーコードや二次元コード等と、携帯端末等の表示画面に表示されたバーコードや二次元コード等と、の両方を読取るために、照明のON/OFFを切替えて読取を行う技術が知られている。 Code symbol reading devices that read barcodes, two-dimensional codes, etc. printed on paper media (an example of code symbols) and barcodes and two-dimensional codes, etc. displayed on the display screen of mobile terminals, etc. In order to read both barcodes, two-dimensional codes, etc. displayed on the display screen of mobile terminals, etc., there is a technology that can be used to switch the lighting ON/OFF. It is being

しかし、照明のON/OFFを一定時間経過毎に自動的に切り替えることとした場合、照明ONで読取を行う時間と、照明OFFで読取を行う時間との比率を固定にしてしまうと、例えば、読取環境が、紙媒体に印刷されたバーコードや二次元コード等を読取る比率が高い環境から携帯端末等の表示画面に表示されたバーコードや二次元コード等を読取る比率が高い環境に変わった場合、読取効率が低下してしまうおそれがある。 However, in the case where the lighting is automatically switched on and off after a certain period of time, if the ratio of the time for reading with the light ON and the time for reading with the light OFF is fixed, for example, The reading environment has changed from an environment where a high proportion of barcodes and 2D codes printed on paper media are read to an environment where a high proportion of barcodes and 2D codes displayed on display screens of mobile terminals etc. are read. In this case, there is a risk that the reading efficiency will decrease.

本発明が解決しようとする課題は、紙媒体に印刷されたコードシンボルと、携帯端末等の表示画面に表示されたコードシンボルと、の読取優先度を自動的に決定し、読取効率を向上させることができるコードシンボル読取装置およびプログラムを提供することである。 The problem to be solved by the present invention is to automatically determine the reading priority of a code symbol printed on a paper medium and a code symbol displayed on a display screen of a mobile terminal, etc., and improve reading efficiency. An object of the present invention is to provide a code symbol reading device and a program that can read code symbols.

実施形態のコードシンボル読取装置は、対象物を撮像する撮像部と、前記対象物に光を照射する照明部と、前記対象物に光を照射する第1のモードと、前記対象物に光を照射しない第2のモードと、を繰り返すように前記照明部による光の照射を制御する照明制御部と、前記撮像部が前記第1のモードで撮像した画像に基づく対象物の認識の成功回数である第1の成功回数と、前記撮像部が前記第2のモードで撮像した画像に基づく対象物の認識の成功回数である第2の成功回数との和が規定回数以上になった場合、前記第1の成功回数と前記第2の成功回数とに基づいて、前記第1のモードと前記第2のモードとの時間比率を変更する比率変更部と、を備える。また、前記比率変更部は、前記第2の成功回数よりも前記第1の成功回数が多い場合は、前記第1のモードの時間比率を高くし、前記第1の成功回数よりも前記第2の成功回数が多い場合は、前記第2のモードの時間比率を高くする。 The code symbol reading device of the embodiment includes: an imaging unit that captures an image of an object; an illumination unit that irradiates the object with light; a first mode that irradiates the object with light; and a first mode that irradiates the object with light. a second mode in which the light is not irradiated; When the sum of the first number of successes and the second number of successes, which is the number of times of success in recognizing the object based on the image captured by the imaging unit in the second mode, is equal to or greater than the specified number of times, the A ratio changing unit that changes a time ratio between the first mode and the second mode based on the first number of successes and the second number of successes . Further, when the first number of successes is greater than the second number of successes, the ratio changing unit increases the time ratio of the first mode, and increases the time ratio of the first mode to the second number of successes than the first number of successes. If the number of successes is large, the time ratio of the second mode is increased.

図1は、POSシステムの全体構成を示す斜視図である。FIG. 1 is a perspective view showing the overall configuration of a POS system. 図2は、読取装置の構成の一例を説明するための図である。FIG. 2 is a diagram for explaining an example of the configuration of the reading device. 図3は、読取装置のハードウェア構成の一例を示す図である。FIG. 3 is a diagram showing an example of the hardware configuration of the reading device. 図4は、読取装置の機能構成の一例を示す図である。FIG. 4 is a diagram showing an example of the functional configuration of the reading device. 図5は、比率変更テーブルの一例を示す図である。FIG. 5 is a diagram showing an example of a ratio change table. 図6は、読取装置の動作の一例を示すフローチャートである。FIG. 6 is a flowchart showing an example of the operation of the reading device.

以下、本実施形態に係るコードシンボル読取装置及びプログラムについて説明する。以下の実施形態では、小売店の店舗に設置されたPOS(Point Of Sales)システムへの適用例について説明するが、本発明はこの実施形態に限定されるものではない。 The code symbol reading device and program according to this embodiment will be explained below. In the following embodiment, an example of application to a POS (Point Of Sales) system installed in a retail store will be described, but the present invention is not limited to this embodiment.

(POSシステムの全体構成)
図1は、POSシステム1の全体構成を示す斜視図である。POS(Point Of Sales)システム1は、読取装置10と、読取装置10で読み取られたデータに基づきデータ処理を実行するPOS端末20と、を備える。読取装置10は、「コードシンボル読取装置」の一例である。
(Overall configuration of POS system)
FIG. 1 is a perspective view showing the overall configuration of a POS system 1. As shown in FIG. A POS (Point Of Sales) system 1 includes a reading device 10 and a POS terminal 20 that executes data processing based on data read by the reading device 10. The reading device 10 is an example of a "code symbol reading device."

読取装置10は、商品を入れた買物カゴ等を載置するためのサッカー台2上において、オペレータと顧客とが略対面する場所(略中央部)に立設される。POS端末20は、サッカー台2の一方の端部付近に設けられる。読取装置10とPOS端末20とは、図示しない伝送路によって通信可能に接続される。読取装置10とPOS端末20とは、POSシステム1を構成する。 The reading device 10 is installed upright at a location (approximately in the center) where an operator and a customer substantially face each other on a soccer table 2 on which a shopping cart containing products or the like is placed. The POS terminal 20 is provided near one end of the soccer table 2. The reading device 10 and the POS terminal 20 are communicably connected via a transmission path (not shown). The reading device 10 and the POS terminal 20 constitute a POS system 1.

POS端末20は、読取装置10で読み取られた商品等のデータに基づいて、顧客が購入する商品の登録処理や精算処理等を含む販売データ処理を実行する。POS端末20は、硬貨及び紙幣を出し入れ自在に収納するドロワ30の上に設置されている。POS端末20は、オペレータ用と客用との2つの表示器21(211、212)と、キーボードや鍵キーを含む入力装置22と、レシートプリンタ23とを備えている。 The POS terminal 20 executes sales data processing, including registration processing for products purchased by customers, payment processing, etc., based on data on products etc. read by the reading device 10. The POS terminal 20 is installed on a drawer 30 that stores coins and banknotes in a freely removable manner. The POS terminal 20 includes two displays 21 (211, 212), one for an operator and one for a customer, an input device 22 including a keyboard and keys, and a receipt printer 23.

(読取装置の構成)
次に、読取装置10の構成について説明する。図2は、読取装置10の構成の一例を説明するための図である。ここで、図2は、読取装置10を撮像窓111が設けられている側(オペレータの立ち位置側)から見た状態を示している。
(Configuration of reading device)
Next, the configuration of the reading device 10 will be explained. FIG. 2 is a diagram for explaining an example of the configuration of the reading device 10. Here, FIG. 2 shows the reading device 10 viewed from the side where the imaging window 111 is provided (the side where the operator stands).

読取装置10は、本体部11、撮像部12、照明部13、第1表示部14、キーボード15及び第2表示部16等を備える。 The reading device 10 includes a main body section 11, an imaging section 12, an illumination section 13, a first display section 14, a keyboard 15, a second display section 16, and the like.

本体部11は、略直方体状に形成されており、サッカー台2上に立設される。本体部11の高さは、例えば、サッカー台2上においてオペレータの目の高さ程度とすることが好ましい。 The main body portion 11 is formed into a substantially rectangular parallelepiped shape and is erected on the soccer table 2 . It is preferable that the height of the main body part 11 be approximately the same as the operator's eye level on the soccer table 2, for example.

本体部11におけるオペレータの立ち位置側には、開口部となる撮像窓111が設けられる。撮像窓111内には、撮像部12および照明部13が設置される。オペレータは、買物客が持って来た商品を撮像窓111に翳すことで、当該商品の読取(撮像)を行う。 An imaging window 111 serving as an opening is provided on the side of the main body 11 where the operator stands. Inside the imaging window 111, an imaging section 12 and an illumination section 13 are installed. The operator scans (images) the product brought by the shopper by holding it over the imaging window 111.

撮像部12は、CCD(Charge Coupled Device)やCMOS(Complementary MOS)等の撮像素子と撮像レンズとを有する。撮像レンズは、撮像領域の画像を撮像素子に結像する。撮像領域とは、撮像窓111から撮像レンズを通して撮像素子のエリアに結像する領域を指す。 The imaging unit 12 includes an imaging element such as a CCD (Charge Coupled Device) or a CMOS (Complementary MOS), and an imaging lens. The imaging lens forms an image of the imaging area on the imaging element. The imaging area refers to an area where an image is formed from the imaging window 111 through the imaging lens to the area of the imaging device.

撮像部12は、撮像窓111を介して、本体部11の外を撮像する。例えば、撮像部12は、紙媒体に印刷されたバーコードや二次元コード等を光学的に撮像する。また、例えば、撮像部12は、顧客が所持する携帯端末等の表示画面に表示されたバーコードや二次元コード等を光学的に撮像する。なお、バーコードや二次元コード等は、「コードシンボル」の一例である。 The imaging unit 12 images the outside of the main body 11 through the imaging window 111 . For example, the imaging unit 12 optically images a barcode, two-dimensional code, or the like printed on a paper medium. Further, for example, the imaging unit 12 optically images a barcode, two-dimensional code, or the like displayed on a display screen of a mobile terminal or the like owned by the customer. Note that barcodes, two-dimensional codes, and the like are examples of "code symbols."

ここで、紙媒体に印刷されるバーコードや二次元コード等には、商品の識別子(商品コード)や価格等のデータが、バーコードや二次元コード等にエンコードされた状態で保持されているものとする。 Here, barcodes, two-dimensional codes, etc. printed on paper media contain data such as product identifiers (product codes) and prices encoded in the barcodes, two-dimensional codes, etc. shall be taken as a thing.

また、携帯端末等の表示画面に表示されるバーコードや二次元コード等には、例えば、値引や割引のクーポン券等を表すデータが、バーコードや二次元コード等にエンコードされた状態で保持されているものとする。なお、POS端末20は、クーポン券等を表すデータが読取装置10で読み取られた場合、当該データに基づいて値引や割引等の処理を実行する。 In addition, barcodes and two-dimensional codes displayed on the display screen of mobile terminals etc., for example, contain data representing discounts and discount coupons encoded in the barcodes and two-dimensional codes. shall be retained. Note that, when data representing a coupon or the like is read by the reading device 10, the POS terminal 20 executes processing such as a discount or a discount based on the data.

照明部13は、光源を有する。照明部13の光源は、撮像部12の撮像レンズの周囲に配置される。照明部13は、光源を点灯させることにより対象物に光を照射する。なお、光源は、例えばLED、冷陰極管、蛍光灯、または白熱灯等である。 The illumination section 13 has a light source. The light source of the illumination unit 13 is arranged around the imaging lens of the imaging unit 12. The illumination unit 13 irradiates a target object with light by turning on a light source. Note that the light source is, for example, an LED, a cold cathode tube, a fluorescent lamp, an incandescent lamp, or the like.

第1表示部14は、オペレータ用の表示装置であって、撮像窓111の上部に設けられる。第1表示部14は、LCD(Liquid Crystal Display)等の表示デバイスで構成されるタッチパネル付きの表示装置である。第1表示部14は、POS端末20による売上登録処理に応じ、オペレータに対して登録された商品の品名、価格等を表示する。 The first display unit 14 is a display device for an operator, and is provided above the imaging window 111. The first display unit 14 is a display device with a touch panel configured of a display device such as an LCD (Liquid Crystal Display). The first display unit 14 displays the product name, price, etc. of the registered product to the operator in accordance with the sales registration process by the POS terminal 20.

キーボード15は、第1表示部14の近傍(側部)に設けられる。キーボード15は、バーコードや二次元コード等やオブジェクト画像で登録不能な商品の登録を行うための各種キー等を有する。なお、図2では、第1表示部14とキーボード15とを一体的に設けた例を示しているが、別体としてもよい。 The keyboard 15 is provided near (on the side) of the first display section 14 . The keyboard 15 has various keys for registering products that cannot be registered using barcodes, two-dimensional codes, or object images. Although FIG. 2 shows an example in which the first display section 14 and the keyboard 15 are provided integrally, they may be provided separately.

第2表示部16は、LCD等の表示デバイスで構成されるタッチパネル付きの表示装置である。第2表示部16は、POS端末20による売上登録処理に応じ、買物客に対して登録された商品の品名、価格等を表示する。なお、本実施形態では、図示しない保持部材により、本体部11の側部に第2表示部16を保持する構成としたが、この構成に限定されないものとする。 The second display unit 16 is a display device with a touch panel that is configured of a display device such as an LCD. The second display unit 16 displays the product name, price, etc. of the registered product to the shopper in accordance with the sales registration process by the POS terminal 20. In this embodiment, the second display section 16 is held on the side of the main body section 11 by a holding member (not shown), but the present invention is not limited to this structure.

(読取装置のハードウェア構成)
次に、読取装置10のハードウェア構成について説明する。図3は、読取装置10のハードウェア構成の一例を示す図である。読取装置10は、マイクロコンピュータ101が備えられており、このマイクロコンピュータ101が各部を駆動制御する。
(Hardware configuration of reading device)
Next, the hardware configuration of the reading device 10 will be explained. FIG. 3 is a diagram showing an example of the hardware configuration of the reading device 10. The reading device 10 is equipped with a microcomputer 101, and the microcomputer 101 drives and controls each part.

マイクロコンピュータ101は、CPU102、ROM104、RAM105、入出力コントローラ106、照明駆動回路107、表示/キーボードコントローラ108、記憶部109、通信インタフェース110を備える。各構成要素は、バスライン103を介して接続されている。 The microcomputer 101 includes a CPU 102, a ROM 104, a RAM 105, an input/output controller 106, a lighting drive circuit 107, a display/keyboard controller 108, a storage section 109, and a communication interface 110. Each component is connected via a bus line 103.

CPU(Central Processing Unit)102は、各部を集中的に制御する。ROM(Read Only Memory)104は、制御プログラム等の固定的情報を予め記憶する。RAM(Random Access Memory)105は、各種データを書き換え自在に記憶してワークエリア等として機能する。 A CPU (Central Processing Unit) 102 centrally controls each part. A ROM (Read Only Memory) 104 stores fixed information such as a control program in advance. A RAM (Random Access Memory) 105 rewritably stores various data and functions as a work area or the like.

したがって、マイクロコンピュータ101は、情報処理を実行する情報処理部を構成する。RAM105は、その全部又は一部が不揮発性メモリである。 Therefore, the microcomputer 101 constitutes an information processing section that executes information processing. All or part of the RAM 105 is nonvolatile memory.

入出力コントローラ106は、撮像部12と接続される。入出力コントローラ106は、撮像部12で撮像された画像(画像データ)をマイクロコンピュータ101に出力する。また、入出力コントローラ106は、マイクロコンピュータ101から出力される制御信号を、撮像部12に出力する。 The input/output controller 106 is connected to the imaging section 12. The input/output controller 106 outputs the image (image data) captured by the imaging unit 12 to the microcomputer 101. Further, the input/output controller 106 outputs a control signal output from the microcomputer 101 to the imaging section 12.

照明駆動回路107は、照明部13と接続される。照明駆動回路107は、CPU102の制御下で、照明部13の光源の点灯、消灯を制御する。 The lighting drive circuit 107 is connected to the lighting section 13. The lighting drive circuit 107 controls turning on and off of the light source of the lighting section 13 under the control of the CPU 102.

表示/キーボードコントローラ108は、第1表示部14及び第2表示部16を駆動制御し、各種の画像を表示器21に表示させる。また、表示/キーボードコントローラ108は、第1表示部14及び第2表示部16でのタッチ操作に伴う操作信号やキーボード15からの操作信号をマイクロコンピュータ101に出力する。 The display/keyboard controller 108 drives and controls the first display section 14 and the second display section 16 to display various images on the display 21. Further, the display/keyboard controller 108 outputs operation signals associated with touch operations on the first display section 14 and the second display section 16 and operation signals from the keyboard 15 to the microcomputer 101.

記憶部109は、HDD(Hard Disk Drive)やSSD(Solid State Drive)等の記憶装置である。記憶部109は、読取装置10の動作に係る各種プログラムや各種データを記憶する。通信インタフェース110は、LANケーブル等の接続線を介して他の機器(POS端末20)との間でのデータ通信を可能とする。 The storage unit 109 is a storage device such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive). The storage unit 109 stores various programs and various data related to the operation of the reading device 10. The communication interface 110 enables data communication with other devices (POS terminal 20) via a connection line such as a LAN cable.

(読取装置の機能)
次に、図4を参照して、読取装置10の機能構成について説明する。図4は、読取装置10の機能構成の一例を示す図である。読取装置10は、第1の取得部121、デコード部122、判定部123、計数部124、照明制御部125、第2の取得部126、比率変更部127を機能構成として備える。
(Function of reading device)
Next, the functional configuration of the reading device 10 will be described with reference to FIG. 4. FIG. 4 is a diagram showing an example of the functional configuration of the reading device 10. The reading device 10 includes a first acquisition section 121, a decoding section 122, a determination section 123, a counting section 124, a lighting control section 125, a second acquisition section 126, and a ratio changing section 127 as functional components.

より詳細には、読取装置10は、CPU102と記憶部109に記憶されたプログラムとの協働により、上記機能構成をソフトウェア構成として備える。なお、上記機能構成の一部又は全ては、CPU102又は専用回路等のハードウェア構成により実現されてもよい。 More specifically, the reading device 10 has the above functional configuration as a software configuration through cooperation between the CPU 102 and a program stored in the storage unit 109. Note that part or all of the above functional configuration may be realized by a hardware configuration such as the CPU 102 or a dedicated circuit.

第1の取得部121は、撮像部12で撮像される画像を取得する。具体的には、第1の取得部121は、キーボード15や第1表示部14を介した操作或いはPOS端末20から通知される信号により取引開始が指示されると、入出力コントローラ106を介して、撮像部12で撮像された画像データの取り込みを開始する。 The first acquisition unit 121 acquires an image captured by the imaging unit 12. Specifically, when the first acquisition unit 121 is instructed to start a transaction by an operation via the keyboard 15 or the first display unit 14 or by a signal notified from the POS terminal 20, the first acquisition unit 121 receives an instruction via the input/output controller 106 to start a transaction. , starts capturing image data captured by the imaging unit 12.

また、第1の取得部121は、キーボード15や第1表示部14の操作或いはPOS端末20から通知される信号により取引終了が指示されると、画像データの取り込みを停止する。 Further, when the first acquisition unit 121 is instructed to end the transaction by operating the keyboard 15 or the first display unit 14 or by a signal notified from the POS terminal 20, the first acquisition unit 121 stops capturing image data.

デコード部122は、第1の取得部121が取得した画像が有するコード化された情報をデコードする。本実施形態において、デコード部122は、エンコードされた情報をデコードすることで、その情報を取り出す。 The decoding unit 122 decodes coded information included in the image acquired by the first acquisition unit 121. In this embodiment, the decoding unit 122 extracts encoded information by decoding the information.

具体的には、デコード部122は、第1の取得部121が取得した画像データからバーコードや二次元コード等を表す領域を検出し、当該バーコードや二次元コード等が保持するエンコードされたデータをデコードするための処理を実行する。また、デコード部122は、バーコードや二次元コード等が保持するエンコードされたデータをデコードすることにより取り出したデータをPOS端末20等に出力する。 Specifically, the decoding unit 122 detects an area representing a barcode, two-dimensional code, etc. from the image data acquired by the first acquisition unit 121, and decodes the encoded area held by the barcode, two-dimensional code, etc. Perform processing to decode data. Further, the decoding unit 122 outputs the extracted data to the POS terminal 20 or the like by decoding encoded data held by a barcode, two-dimensional code, or the like.

判定部123は、画像に基づく対象物の認識が成功したか否かを判定する。本実施形態において、判定部123は、撮像部12が撮像した画像のデコードが成功したか否かを判定することで、画像に基づく対象物の認識が成功したか否かを判定する。 The determination unit 123 determines whether recognition of the target object based on the image has been successful. In the present embodiment, the determining unit 123 determines whether recognition of the target object based on the image has been successful by determining whether decoding of the image captured by the imaging unit 12 has been successful.

なお、画像のデコードが成功したということは、画像に含まれるコードシンボルの認識に成功したということもできる。そして、コードシンボルは読取対象物であるため、画像のデコードは、「画像に基づく対象物の認識」の一例であるといえる。 Note that successful decoding of an image can also mean successful recognition of code symbols included in the image. Since a code symbol is an object to be read, decoding an image can be said to be an example of "recognition of an object based on an image."

具体的に説明すると、判定部123は、撮像部12が撮像した画像からデータを読み出すことができた場合、撮像部12が撮像した画像のデコードが成功したと判定する。一方、判定部123は、撮像部12が撮像した画像からデータを読み出すことができなかった場合には、撮像部12が撮像した画像のデコードが失敗したと判定する。 Specifically, if data can be read from the image captured by the imaging unit 12, the determination unit 123 determines that the decoding of the image captured by the imaging unit 12 has been successful. On the other hand, if data cannot be read from the image captured by the imaging unit 12, the determination unit 123 determines that the decoding of the image captured by the imaging unit 12 has failed.

なお、デコード失敗の定義は、上記例に限らないものとする。例えば、コードシンボルからデータを読み出すことができた場合であっても、当該データのフォーマットが規定のフォーマットと異なる場合には、デコード失敗と判定してもよい。 Note that the definition of decoding failure is not limited to the above example. For example, even if data can be read from a code symbol, if the format of the data is different from a specified format, it may be determined that decoding has failed.

計数部124は、各種回数のカウントおよびリセットを行う。本実施形態において、計数部124は、第1のモードの撮像回数、第2のモードの撮像回数、第1のモードで撮像した画像のデコード成功回数、第2のモードで撮像した画像のデコード成功回数のカウントおよびリセットを行う。 The counting unit 124 counts and resets various times. In this embodiment, the counting unit 124 includes the number of times of imaging in the first mode, the number of times of imaging in the second mode, the number of successful decodings of images captured in the first mode, and the number of successful decodings of images captured in the second mode. Count and reset the number of times.

具体的には、計数部124は、取引が開始されると、第1のモードの撮像回数をリセットし、撮像部12が第1のモードで1回撮像を行う毎に、第1のモードの撮像回数を+1する。そして、デコード部122によるデコードが成功した場合には、第1のモードで撮像した画像のデコード成功回数を+1する。 Specifically, when a transaction is started, the counting unit 124 resets the number of times of imaging in the first mode, and each time the imaging unit 12 performs one imaging in the first mode, the counting unit 124 resets the number of times of imaging in the first mode. Increase the number of images taken by 1. If the decoding by the decoding unit 122 is successful, the number of successful decodings of the image captured in the first mode is increased by 1.

また、計数部124は、第1のモードの撮像回数が規定回数に達すると、第2のモードの撮像回数をリセットし、撮像部12が第2のモードで1回撮像を行う毎に、第2のモードの撮像回数を+1する。そして、デコード部122によるデコードが成功した場合には、第2のモードで撮像した画像のデコード成功回数を+1する。 Further, when the number of times of imaging in the first mode reaches a prescribed number of times, the counting unit 124 resets the number of times of imaging in the second mode, and each time the imaging unit 12 performs imaging once in the second mode, the number of times of imaging in the second mode is reset. The number of times of imaging in mode 2 is increased by 1. If the decoding by the decoding unit 122 is successful, the number of successful decodings of the image captured in the second mode is increased by 1.

第2のモードの撮像回数が規定回数に達し、第1のモードで撮像した画像のデコード成功回数と第2のモードで撮像した画像のデコード成功回数との和が規定回数以上になり、後述する比率変更部127により、第1のモードと第2のモードとの時間比率が変更された場合、計数部124は、第1のモードで撮像した画像のデコード成功回数および第2のモードで撮像した画像のデコード成功回数をリセットする。 The number of times of imaging in the second mode reaches a specified number of times, and the sum of the number of successful decoding times of images captured in the first mode and the number of successful decoding of images captured in the second mode becomes equal to or greater than the specified number of times, which will be described later. When the ratio changing unit 127 changes the time ratio between the first mode and the second mode, the counting unit 124 calculates the number of successful decodings of images captured in the first mode and the number of successful decodings of images captured in the second mode. Reset the number of successful image decodes.

なお、計数部124は、比率変更部127により、時間比率が変更されたか否かに関係なく、第2のモードの撮像回数が規定回数に達すれば、第1のモードの撮像回数をリセットする。 Note that the counting unit 124 resets the number of times of imaging in the first mode when the number of times of imaging in the second mode reaches the prescribed number of times, regardless of whether the time ratio has been changed by the ratio changing unit 127.

照明制御部125は、対象物に光を照射する第1のモードと、対象物に光を照射しない第2のモードと、を繰り返すように照明部13による光の照射を制御する。 The illumination control unit 125 controls the illumination unit 13 to emit light so as to repeat a first mode in which the object is irradiated with light and a second mode in which the object is not irradiated with light.

本実施形態において、照明制御部125は、照明駆動回路107を介して照明部13の光源の点灯、消灯を制御する。具体的には、照明制御部125は、照明部13の光源を点灯し、ユーザが撮像窓111の前に読取対象物を翳した場合、読取対象物に光が照射されるよう制御を行う。これにより、撮像部12は、読取対象物に光が照射される第1のモードで読取対象物の撮像を行うことができる。 In this embodiment, the lighting control unit 125 controls turning on and off of the light source of the lighting unit 13 via the lighting drive circuit 107. Specifically, the illumination control unit 125 lights up the light source of the illumination unit 13 and performs control so that when the user holds the object to be read in front of the imaging window 111, the object to be read is irradiated with light. Thereby, the imaging unit 12 can image the object to be read in the first mode in which the object to be read is irradiated with light.

また、照明制御部125は、照明部13の光源を消灯し、ユーザが撮像窓111の前に読取対象物を翳した場合、読取対象物に光が照射されないよう制御を行う。これにより、撮像部12は、読取対象物に光が照射されない第2のモードで読取対象物の撮像を行うことができる。 Further, the illumination control unit 125 turns off the light source of the illumination unit 13 and performs control so that when the user holds the object to be read in front of the imaging window 111, the object to be read is not irradiated with light. Thereby, the imaging unit 12 can image the object to be read in the second mode in which the object to be read is not irradiated with light.

さらに、照明制御部125は、照明部13の光源の一定期間の点灯、一定期間の消灯を交互に繰り返す制御を行う。具体的には、照明制御部125は、照明部13の光源を点灯させ、撮像部12による撮像が規定回数に達するまでの間、点灯状態を維持し、その後、照明部13の光源を消灯させ、撮像部12による撮像が規定回数に達するまでの間、消灯状態を維持させる制御を交互に繰り返す。 Further, the lighting control unit 125 controls the light source of the lighting unit 13 to alternately turn on the light source for a certain period of time and turn off the light for a certain period of time. Specifically, the lighting control unit 125 turns on the light source of the lighting unit 13, maintains the lighting state until the imaging unit 12 captures a prescribed number of times, and then turns off the light source of the lighting unit 13. , the control for maintaining the light-off state is alternately repeated until the imaging unit 12 captures images a predetermined number of times.

これにより、撮像部12は、第1のモードと第2のモードと、の両方で読取対象物の撮像を行うことができる。ここで、本実施形態において、第1のモードは、紙媒体に印刷されたバーコードや二次元コード等を読取るモードとして機能し、第2のモードは、携帯端末等の表示画面に表示されたバーコードや二次元コード等を読取るモードとして機能する。 Thereby, the imaging unit 12 can image the object to be read in both the first mode and the second mode. Here, in this embodiment, the first mode functions as a mode for reading barcodes, two-dimensional codes, etc. printed on paper media, and the second mode functions as a mode for reading barcodes, two-dimensional codes, etc. printed on paper media, and the second mode functions as a mode for reading barcodes, two-dimensional codes, etc. printed on paper media. It functions as a mode for reading barcodes, two-dimensional codes, etc.

なお、本実施形態において、撮像部12が第1のモードで読取対象物の撮像を行う規定回数および撮像部12が第2のモードで読取対象物の撮像を行う規定回数は、比率変更部127が一定期間毎に自動的に変更する。 In the present embodiment, the prescribed number of times that the imaging unit 12 images the object to be read in the first mode and the prescribed number of times that the image sensing unit 12 images the object to be read in the second mode are determined by the ratio changing unit 127. changes automatically at regular intervals.

第2の取得部126は、第1のモードで撮像した画像に基づく対象物の認識の成功回数および第2のモードで撮像した画像に基づく対象物の認識の成功回数を取得する。 The second acquisition unit 126 acquires the number of successful target object recognitions based on images captured in the first mode and the number of successful target object recognitions based on images captured in the second mode.

本実施形態において、第2の取得部126は、第1のモードの撮像回数および第2のモードの撮像回数が規定回数に達し、第1のモードで撮像した画像のデコード成功回数と第2のモードで撮像した画像のデコード成功回数との和が規定回数以上になった場合、第1のモードで撮像した画像のデコード成功回数および第2のモードで撮像した画像のデコード成功回数を取得する。 In this embodiment, the second acquisition unit 126 detects that when the number of times of image capturing in the first mode and the number of times of image capturing in the second mode reach a specified number of times, the number of times of successful decoding of images captured in the first mode and the number of times of successful decoding of images captured in the first mode and the number of times of successful decoding of images captured in the first mode are When the sum of the number of times of successful decoding of the image taken in the first mode and the number of successful decoding of the image taken in the first mode is equal to or more than the prescribed number of times, the number of successful decoding of the image taken in the first mode and the number of successful decoding of the image taken in the second mode are acquired.

比率変更部127は、撮像部12が第1のモードで撮像した画像に基づく対象物の認識の成功回数と、撮像部12が第2のモードで撮像した画像に基づく対象物の認識の成功回数と、に基づいて、第1のモードと第2のモードとの時間比率を変更する。 The ratio changing unit 127 determines the number of times the object has been successfully recognized based on the image taken by the imaging unit 12 in the first mode and the number of times the object has been successfully recognized based on the image taken by the imaging unit 12 in the second mode. The time ratio between the first mode and the second mode is changed based on .

本実施形態において、比率変更部127は、第1のモードで撮像した画像のデコード成功回数と第2のモードで撮像した画像のデコード成功回数との和が規定回数以上になった場合、第2のモードで撮像した画像のデコード成功回数よりも第1のモードで撮像した画像のデコード成功回数が多い場合は、第1のモードの時間比率を高くし、第1のモードで撮像した画像のデコード成功回数よりも第2のモードで撮像した画像のデコード成功回数が多い場合は、第2のモードの時間比率を高くする。 In the present embodiment, when the sum of the number of times of successful decoding of the image captured in the first mode and the number of successful decoding of the image captured in the second mode is equal to or greater than the specified number of times, the ratio changing unit 127 If the number of successful decodings of images captured in the first mode is greater than the number of successful decodings of images captured in the first mode, increase the time ratio of the first mode and decode the images captured in the first mode. If the number of successful decodings of images captured in the second mode is greater than the number of successful decodings, the time ratio of the second mode is increased.

ここで、比率変更部127による第1のモードの時間比率と第2のモードの時間比率の変更について詳しく説明する。 Here, the change of the time ratio of the first mode and the time ratio of the second mode by the ratio change unit 127 will be described in detail.

比率変更部127は、例えば、第1のモードで撮像した画像のデコード成功回数と第2のモードで撮像した画像のデコード成功回数との和が規定回数以上になった場合、第2の取得部126が取得した、第1のモードで撮像した画像のデコード成功回数および第2のモードで撮像した画像のデコード成功回数と、読取装置10の記憶部109に記憶された比率変更テーブルと、を参照し、第1のモードと第2のモードとの時間比率を変更する。 For example, when the sum of the number of successful decodings of images captured in the first mode and the number of successful decodings of images captured in the second mode exceeds a predetermined number of times, the ratio changing unit 127 changes the ratio to the second obtaining unit. Refer to the number of successful decodings of images captured in the first mode and the number of successful decodings of images captured in the second mode acquired by 126, and the ratio change table stored in the storage unit 109 of the reading device 10. Then, the time ratio between the first mode and the second mode is changed.

図5は、比率変更テーブルの一例を示す図である。本実施形態において、比率変更テーブルは、第1のモードで撮像した画像のデコード成功回数と第2のモードで撮像した画像のデコード成功回数との差の条件と、第1のモードと第2のモードとの時間比率と、を対応付けたテーブルである。 FIG. 5 is a diagram showing an example of a ratio change table. In this embodiment, the ratio change table includes a condition for the difference between the number of successful decodings of images captured in the first mode and the number of successful decodings of images captured in the second mode, and a condition for the difference between the number of successful decodings of images captured in the first mode and This is a table that associates modes with time ratios.

この例では、例えば、第1のモードで撮像を行う期間が15フレーム、第2のモードで撮像を行う期間が15フレームとして読取対象物の撮像を行っている状態で、第1のモードで撮像した画像のデコード成功回数と第2のモードで撮像した画像のデコード成功回数との差が2を超えた場合、第1のモードで撮像を行う期間を20フレーム、第2のモードで撮像を行う期間を10フレーム、に比率を変更する。 In this example, for example, the period of imaging in the first mode is 15 frames, the period of imaging in the second mode is 15 frames, and the object to be read is being imaged. If the difference between the number of successful decodings of the image captured in the second mode and the number of successful decodings of the image captured in the second mode exceeds 2, the imaging period in the first mode is set to 20 frames, and the imaging is performed in the second mode. Change the ratio to a period of 10 frames.

なお、比率変更部127による第1のモードと第2のモードとの時間比率の変更方法は、これに限定されない。 Note that the method of changing the time ratio between the first mode and the second mode by the ratio changing unit 127 is not limited to this.

例えば、比率変更テーブルは、第1のモードで撮像した画像のデコード成功回数と第2のモードで撮像した画像のデコード成功回数との差の条件を、「-2≦X-Y≦2、2<X-Y≦6、6<X-Y、-2>X-Y≧-6、-6>X-Y」、第1のモードで撮像を行う期間と第2のモードで撮像を行う期間との比率を、「15:15、20:10、25:5、10:20、5:25」のように細分化させてもよい。 For example, the ratio change table sets the conditions for the difference between the number of successful decodings of images captured in the first mode and the number of successful decodings of images captured in the second mode as "-2≦X-Y≦2, 2 <X-Y≦6, 6<X-Y, -2>X-Y≧-6, -6>X-Y", the period of imaging in the first mode and the period of imaging in the second mode The ratio may be subdivided into "15:15, 20:10, 25:5, 10:20, 5:25".

(読取装置の動作)
次に、読取装置10の動作について説明する。図6は、読取装置の動作の一例を示すフローチャートである。
(Operation of reading device)
Next, the operation of the reading device 10 will be explained. FIG. 6 is a flowchart showing an example of the operation of the reading device.

まず、キーボード15等から通知される信号により取引開始が指示された場合、計数部124は、第1のモードでの撮像回数(以下iとする)をリセットする(ステップS101)。照明制御部125は、照明部13の光源を点灯させる制御を行う(ステップS102)。撮像部12は、第1のモードで読取対象物の撮像を行う(ステップS103)。 First, when the start of a transaction is instructed by a signal notified from the keyboard 15 or the like, the counting unit 124 resets the number of times of imaging (hereinafter referred to as i) in the first mode (step S101). The lighting control unit 125 performs control to turn on the light source of the lighting unit 13 (step S102). The imaging unit 12 images the object to be read in the first mode (step S103).

デコード部122は、撮像部12により撮像された画像が有するエンコードされた情報をデコードし、判定部123は、デコード部122によるデコードが成功したか否かを判定する(ステップS104)。デコードが成功した場合(ステップS104:Yes)、計数部124は、第1のモードでのデコード成功回数(以下Xとする)を+1する(ステップS105)。また、計数部124は、iを+1する(ステップS106)。 The decoding unit 122 decodes the encoded information included in the image captured by the imaging unit 12, and the determining unit 123 determines whether the decoding by the decoding unit 122 is successful (step S104). If the decoding is successful (step S104: Yes), the counting unit 124 increments the number of successful decodings (hereinafter referred to as X) in the first mode by 1 (step S105). Furthermore, the counting unit 124 increments i by 1 (step S106).

なお、デコードが失敗した場合(ステップS104:No)、ステップS105をスキップして、iのみを+1する(ステップS106)。その後、計数部124は、iが規定回数(以下Aとする)に達したか否かを確認する(ステップS107)。iがAに達しない場合(ステップS107:No)、iがAに達するまで、ステップS103乃至ステップS107の処理を繰り返す。 Note that if the decoding fails (step S104: No), step S105 is skipped and only i is incremented by 1 (step S106). After that, the counting unit 124 checks whether or not i has reached a specified number of times (hereinafter referred to as A) (step S107). If i does not reach A (step S107: No), the processes from step S103 to step S107 are repeated until i reaches A.

iがAに達した場合(ステップS107:Yes)、計数部124は、第2のモードでの撮像回数(以下jとする)をリセットする(ステップS108)。照明制御部125は、照明部13の光源を消灯させる制御を行う(ステップS109)。撮像部12は、第2のモードで読取対象物の撮像を行う(ステップS110)。 When i reaches A (step S107: Yes), the counting unit 124 resets the number of times of imaging in the second mode (hereinafter referred to as j) (step S108). The lighting control unit 125 performs control to turn off the light source of the lighting unit 13 (step S109). The imaging unit 12 images the object to be read in the second mode (step S110).

デコード部122は、撮像部12により撮像された画像が有するエンコードされた情報をデコードし、判定部123は、デコード部122によるデコードが成功したか否かを判定する(ステップS121)。デコードが成功した場合(ステップS121:Yes)、計数部124は、第2のモードでのデコード成功回数(以下Yとする)を+1する(ステップS122)。また、計数部124は、jを+1する(ステップS123)。 The decoding unit 122 decodes the encoded information included in the image captured by the imaging unit 12, and the determining unit 123 determines whether the decoding by the decoding unit 122 is successful (step S121). If the decoding is successful (step S121: Yes), the counting unit 124 increments the number of successful decodings in the second mode (hereinafter referred to as Y) by 1 (step S122). Further, the counting unit 124 increments j by +1 (step S123).

なお、デコードが失敗した場合(ステップS121:No)、ステップS122をスキップして、jのみを+1する(ステップS123)。その後、計数部124は、jが規定回数(以下Bとする)に達したか否かを確認する(ステップS124)。jがBに達しない場合(ステップS124:No)、jがBに達するまで、ステップS110乃至ステップS124の処理を繰り返す。 Note that if the decoding fails (step S121: No), step S122 is skipped and only j is incremented by 1 (step S123). After that, the counting unit 124 checks whether j has reached a specified number of times (hereinafter referred to as B) (step S124). If j does not reach B (step S124: No), the processes from step S110 to step S124 are repeated until j reaches B.

jがBに達した場合(ステップS124:Yes)、計数部124は、XとYとの和(以下、X+Yとする)が規定回数(以下Cとする)以上になったか否かを確認する(ステップS125)。 If j has reached B (step S124: Yes), the counting unit 124 checks whether the sum of X and Y (hereinafter referred to as X+Y) has exceeded a specified number of times (hereinafter referred to as C). (Step S125).

X+YがC以上になった場合(ステップS125:Yes)、第2の取得部126は、XおよびYを取得し、比率変更部127は、XおよびYに基づいて、AおよびBの値を更新する(ステップS126)。また、計数部124は、XおよびYをリセットする(ステップS127)。そして、再び、ステップS101に戻り、キーボード15等から通知される信号により取引終了が指示されるまで、上記の処理を繰り返す。 If X+Y is equal to or greater than C (step S125: Yes), the second acquisition unit 126 acquires X and Y, and the ratio change unit 127 updates the values of A and B based on X and Y. (Step S126). Furthermore, the counting unit 124 resets X and Y (step S127). Then, the process returns to step S101 again, and the above process is repeated until the end of the transaction is instructed by a signal notified from the keyboard 15 or the like.

一方、X+YがCを下回る場合(ステップS125:No)、比率変更部127は、AおよびBの値を更新せず、X+YがC以上になるまで、ステップS101乃至ステップS125の処理を繰り返す。 On the other hand, if X+Y is less than C (step S125: No), the ratio changing unit 127 does not update the values of A and B, and repeats the processing from step S101 to step S125 until X+Y becomes C or more.

(読取装置の効果)
従来のコードシンボル読取装置は、紙媒体に印刷されたバーコードや二次元コード等と、携帯端末等の表示画面に表示されたバーコードや二次元コード等と、の両方を読取ることができるように、照明のON/OFFを一定期間経過毎に自動的に切替えて読取対象物の読取を行っていた。
(Effect of reading device)
Conventional code symbol reading devices can read both barcodes, two-dimensional codes, etc. printed on paper media and barcodes, two-dimensional codes, etc. displayed on the display screen of mobile terminals, etc. In addition, the object to be read was read by automatically switching ON/OFF of the illumination after a certain period of time.

しかし、従来のコードシンボル読取装置では、照明ONで読取を行う期間と照明OFFで読取を行う期間との比率が固定値であり、例えば、紙媒体に印刷されたバーコードや二次元コード等を読取ることが多い環境から、携帯端末等の表示画面に表示されたバーコードや二次元コード等を読取ることが多い環境に変化した場合、照明ONの状態での読取では、携帯端末等の表示画面に表示されたバーコードや二次元コード等の読取が失敗する可能性が高く、紙媒体に印刷されたバーコードや二次元コード等を読取ることが多かった環境と比較すると読取対象物の読取の成功率が低下する可能性が高いと考えられる。 However, in conventional code symbol reading devices, the ratio of the reading period with the illumination ON and the reading period with the illumination OFF is a fixed value. If you change from an environment where you often read barcodes or two-dimensional codes displayed on the display screen of a mobile device to an environment where you often read barcodes or two-dimensional codes displayed on the display screen of a mobile terminal, etc., the display screen of the mobile terminal etc. There is a high possibility of failure in reading barcodes and two-dimensional codes displayed on paper, and compared to an environment where barcodes and two-dimensional codes printed on paper media were often read, the reading of the target object is more difficult. It is considered that there is a high possibility that the success rate will decrease.

つまり、読取に成功する回数が減少するため、読取にかかる時間が増加することとなり、読取の効率が低下してしまうと考えられる。 In other words, since the number of successful readings decreases, the time required for reading increases, and it is thought that the efficiency of reading decreases.

これに対し、本実施形態の読取装置10は、読取対象物に光を照射する第1のモードで読取対象物を撮像した画像のデコードの成功回数および読取対象物に光を照射しない第2のモードで読取対象物を撮像した画像のデコードの成功回数に基づいて、第1のモードと第2のモードとの時間比率を変更する比率変更部127を備えている。 On the other hand, the reading device 10 of the present embodiment has two modes: the number of successful decodings of images taken of the object to be read in the first mode in which the object to be read is irradiated with light; The reading apparatus includes a ratio changing unit 127 that changes the time ratio between the first mode and the second mode based on the number of successful decodings of images of the object to be read in the mode.

つまり、比率変更部127は、第2のモードで撮像した画像のデコード成功回数よりも第1のモードで撮像した画像のデコード成功回数が多い場合は、第1のモードの時間比率を高くし、第1のモードで撮像した画像のデコード成功回数よりも第2のモードで撮像した画像のデコード成功回数が多い場合は、第2のモードの時間比率を高くする、といった変更を一定期間毎に行うことが可能である。 In other words, if the number of times of successful decoding of the image captured in the first mode is greater than the number of successful decoding of the image captured in the second mode, the ratio changing unit 127 increases the time ratio of the first mode, If the number of successful decodings of images captured in the second mode is greater than the number of successful decodings of images captured in the first mode, changes are made at regular intervals, such as increasing the time ratio of the second mode. Is possible.

ここで、第1のモードで撮像した画像のデコード成功回数が増加するのは、紙媒体に印刷されたバーコードや二次元コード等を読取る場面が増加していることを意味し、第2のモードで撮像した画像のデコード成功回数が増加するのは、携帯端末等の表示画面に表示されたバーコードや二次元コード等を読取る場面が増加していることを意味すると考えられる。 Here, the increase in the number of successful decodings of images captured in the first mode means that the number of situations in which barcodes, two-dimensional codes, etc. printed on paper media are being read is increasing; The increase in the number of successful decodings of images captured in this mode is considered to mean that the number of situations in which barcodes, two-dimensional codes, etc. displayed on the display screen of a mobile terminal or the like are being read is increasing.

したがって、第1のモードの時間比率を高くすることは、紙媒体に印刷されたバーコードや二次元コード等の読取優先度を高くするということであり、第2のモードの時間比率を高くすることは、携帯端末等の表示画面に表示されたバーコードや二次元コード等の読取優先度を高くするということであると考えられる。 Therefore, increasing the time ratio of the first mode means increasing the reading priority of barcodes, two-dimensional codes, etc. printed on paper media, and increasing the time ratio of the second mode. This is considered to mean increasing the reading priority of barcodes, two-dimensional codes, etc. displayed on the display screen of a mobile terminal or the like.

つまり、本実施形態の読取装置10は、紙媒体に印刷されたコードシンボルと、携帯端末等の表示画面に表示されたコードシンボルと、の読取優先度を自動的に決定し、読取効率を向上させることができる。 In other words, the reading device 10 of the present embodiment automatically determines the reading priority of code symbols printed on paper media and code symbols displayed on the display screen of a mobile terminal, etc., and improves reading efficiency. can be done.

以上、本発明の実施形態を説明したが、この実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。この新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。この実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。 Although the embodiment of the present invention has been described above, this embodiment is presented as an example and is not intended to limit the scope of the invention. This novel embodiment can be implemented in various other forms, and various omissions, substitutions, and changes can be made without departing from the gist of the invention. This embodiment and its modifications are included within the scope and gist of the invention, as well as within the scope of the invention described in the claims and its equivalents.

例えば、上記実施形態の読取装置10で実行されるプログラムは、読取装置10が備える記憶媒体(ROM104又は記憶部109)に予め組み込んで提供するものとするが、これに限らず、インストール可能な形式又は実行可能な形式のファイルでCD-ROM、フレキシブルディスク(FD)、CD-R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録して提供するように構成してもよい。 For example, the program to be executed by the reading device 10 of the above embodiment is provided by being pre-installed in a storage medium (ROM 104 or storage unit 109) included in the reading device 10, but is not limited to this, and is provided in an installable format. Alternatively, it may be configured to be provided as an executable file recorded on a computer-readable recording medium such as a CD-ROM, flexible disk (FD), CD-R, or DVD (Digital Versatile Disk). .

なお、記憶媒体は、コンピュータ或いは組み込みシステムと独立した媒体に限らず、LANやインターネット等により伝達されたプログラムをダウンロードして記憶又は一時記憶した記憶媒体も含まれる。 Note that the storage medium is not limited to a medium independent of a computer or an embedded system, but also includes a storage medium in which a program transmitted via a LAN, the Internet, etc. is downloaded and stored or temporarily stored.

また、上記実施形態の読取装置10で実行されるプログラムをインターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成してもよい。また、上記実施形態の読取装置10で実行されるプログラムを、インターネット等のネットワーク経由で提供又は配布するように構成してもよい。 Further, the program executed by the reading device 10 of the embodiment described above may be stored on a computer connected to a network such as the Internet, and may be provided by being downloaded via the network. Further, the program executed by the reading device 10 of the above embodiment may be configured to be provided or distributed via a network such as the Internet.

1 POSシステム
2 サッカー台
10 読取装置
11 本体部
12 撮像部
13 照明部
14 第1表示部
15 キーボード
16 第2表示部
20 POS端末
21 表示器
22 入力装置
23 レシートプリンタ
30 ドロワ
101 マイクロコンピュータ
102 CPU
103 バスライン
104 ROM
105 RAM
106 入出力コントローラ
107 照明駆動回路
108 表示/キーボードコントローラ
109 記憶部
110 通信インタフェース
121 第1の取得部
122 デコード部
123 判定部
124 計数部
125 照明制御部
126 第2の取得部
127 比率変更部
1 POS system 2 Soccer table 10 Reading device 11 Main unit 12 Imaging unit 13 Lighting unit 14 First display unit 15 Keyboard 16 Second display unit 20 POS terminal 21 Display 22 Input device 23 Receipt printer 30 Drawer 101 Microcomputer 102 CPU
103 Bus line 104 ROM
105 RAM
106 Input/output controller 107 Lighting drive circuit 108 Display/keyboard controller 109 Storage unit 110 Communication interface 121 First acquisition unit 122 Decoding unit 123 Judgment unit 124 Counting unit 125 Lighting control unit 126 Second acquisition unit 127 Ratio changing unit

特開2015-211368号公報Japanese Patent Application Publication No. 2015-211368

Claims (4)

対象物を撮像する撮像部と、
前記対象物に光を照射する照明部と、
前記対象物に光を照射する第1のモードと、前記対象物に光を照射しない第2のモードと、を繰り返すように前記照明部による光の照射を制御する照明制御部と、
前記撮像部が前記第1のモードで撮像した画像に基づく対象物の認識の成功回数である第1の成功回数と、前記撮像部が前記第2のモードで撮像した画像に基づく対象物の認識の成功回数である第2の成功回数との和が規定回数以上になった場合、前記第1の成功回数と前記第2の成功回数とに基づいて、前記第1のモードと前記第2のモードとの時間比率を変更する比率変更部と、
を備え
前記比率変更部は、前記第2の成功回数よりも前記第1の成功回数が多い場合は、前記第1のモードの時間比率を高くし、前記第1の成功回数よりも前記第2の成功回数が多い場合は、前記第2のモードの時間比率を高くする、コードシンボル読取装置。
an imaging unit that captures an image of a target object;
an illumination unit that irradiates the object with light;
an illumination control unit that controls light irradiation by the illumination unit to repeat a first mode in which the target object is irradiated with light and a second mode in which the target object is not irradiated with light;
a first number of successes in recognizing the object based on the image captured by the imaging unit in the first mode; and recognition of the target based on the image captured by the imaging unit in the second mode. If the sum of the second number of successes, which is the number of successes of a ratio changing section that changes the time ratio with the mode;
Equipped with
When the first number of successes is greater than the second number of successes, the ratio changing unit increases the time ratio of the first mode, and increases the time ratio of the first mode to the second number of successes than the first number of successes. The code symbol reading device increases the time ratio of the second mode when the number of times is large .
前記撮像部が前記第1のモードでの撮像した回数、前記撮像部が前記第1のモードで撮像した画像に基づく対象物の認識の成功回数、前記撮像部が前記第2のモードで撮像した回数、前記撮像部が前記第2のモードで撮像した画像に基づく対象物の認識の成功回数、のカウントおよびリセットを行う計数部をさらに備え、
前記計数部は、前記撮像部が前記第1のモードでの撮像した回数が規定回数に達すると、前記撮像部が前記第2のモードで撮像した回数をリセットし、
前記撮像部が前記第2のモードでの撮像した回数が規定回数に達すると、前記撮像部が前記第1のモードで撮像した回数をリセットする、
請求項1に記載のコードシンボル読取装置。
The number of times the image capturing unit captured an image in the first mode, the number of times the image capturing unit successfully recognized an object based on the image captured in the first mode, and the number of times the image capturing unit captured an image in the second mode. further comprising a counter that counts and resets the number of times the object has been successfully recognized based on the image captured by the imaging unit in the second mode;
The counting unit resets the number of times the imaging unit took images in the second mode when the number of times the imaging unit took images in the first mode reaches a specified number of times,
When the number of times the imaging unit has taken images in the second mode reaches a specified number of times, the number of times the imaging unit has taken images in the first mode is reset;
The code symbol reading device according to claim 1 .
前記第1のモードは、紙媒体に印刷されたコードシンボルを読取るモードとして機能し、前記第2のモードは、携帯端末の表示画面に表示されたコードシンボルを読取るモードして機能する、
請求項1又は2に記載のコードシンボル読取装置。
The first mode functions as a mode for reading code symbols printed on a paper medium, and the second mode functions as a mode for reading code symbols displayed on a display screen of a mobile terminal .
The code symbol reading device according to claim 1 or 2 .
対象物を撮像する撮像部と、
前記対象物に光を照射する照明部と、
を備えるコードシンボル読取装置のコンピュータを、
前記対象物に光を照射する第1のモードと、前記対象物に光を照射しない第2のモードと、を繰り返すように前記照明部による光の照射を制御する照明制御部と、
前記撮像部が前記第1のモードで撮像した画像に基づく対象物の認識の成功回数である第1の成功回数と、前記撮像部が前記第2のモードで撮像した画像に基づく対象物の認識の成功回数である第2の成功回数との和が規定回数以上になった場合、前記第1の成功回数と前記第2の成功回数とに基づいて、前記第1のモードと前記第2のモードとの時間比率を変更する比率変更部と、
として機能させるプログラムであって、
前記比率変更部は、前記第2の成功回数よりも前記第1の成功回数が多い場合は、前記第1のモードの時間比率を高くし、前記第1の成功回数よりも前記第2の成功回数が多い場合は、前記第2のモードの時間比率を高くするプログラム
an imaging unit that captures an image of a target object;
an illumination unit that irradiates the object with light;
A code symbol reading device computer comprising:
an illumination control unit that controls light irradiation by the illumination unit to repeat a first mode in which the target object is irradiated with light and a second mode in which the target object is not irradiated with light;
a first number of successes in recognizing the object based on the image captured by the imaging unit in the first mode; and recognition of the target based on the image captured by the imaging unit in the second mode. If the sum of the second number of successes, which is the number of successes of a ratio changing section that changes the time ratio with the mode;
A program that functions as
When the first number of successes is greater than the second number of successes, the ratio changing unit increases the time ratio of the first mode, and increases the time ratio of the first mode to the second number of successes than the first number of successes. If the number of times is large, the program increases the time ratio of the second mode .
JP2020022549A 2020-02-13 2020-02-13 Code symbol reader and program Active JP7390919B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2020022549A JP7390919B2 (en) 2020-02-13 2020-02-13 Code symbol reader and program
CN202011279044.4A CN113255380A (en) 2020-02-13 2020-11-16 Code symbol reading device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020022549A JP7390919B2 (en) 2020-02-13 2020-02-13 Code symbol reader and program

Publications (2)

Publication Number Publication Date
JP2021128522A JP2021128522A (en) 2021-09-02
JP7390919B2 true JP7390919B2 (en) 2023-12-04

Family

ID=77180692

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020022549A Active JP7390919B2 (en) 2020-02-13 2020-02-13 Code symbol reader and program

Country Status (2)

Country Link
JP (1) JP7390919B2 (en)
CN (1) CN113255380A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009129266A (en) 2007-11-26 2009-06-11 Toshiba Tec Corp Data code reader, its method and pos system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8939374B2 (en) * 2010-12-30 2015-01-27 Hand Held Products, Inc. Terminal having illumination and exposure control
US8646692B2 (en) * 2011-09-30 2014-02-11 Hand Held Products, Inc. Devices and methods employing dual target auto exposure
JP2019197491A (en) * 2018-05-11 2019-11-14 株式会社オプトエレクトロニクス Device and method for reading optical information

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009129266A (en) 2007-11-26 2009-06-11 Toshiba Tec Corp Data code reader, its method and pos system

Also Published As

Publication number Publication date
CN113255380A (en) 2021-08-13
JP2021128522A (en) 2021-09-02

Similar Documents

Publication Publication Date Title
JP5297506B2 (en) Code reader and program
US20120029994A1 (en) Coupon organization using a bar code reader
EP2573705A1 (en) Method of and apparatus for managing and redeeming bar-coded coupons displayed from the light emitting display surfaces of information display devices
US8403216B2 (en) Code reading apparatus, sales registration processing apparatus, and code reading method
EP2905757A1 (en) Reading apparatus
JP2013050787A (en) Code reader, sales data processor, and program
JP2016033694A (en) Object recognition apparatus and object recognition program
JP5286405B2 (en) Scanner and sales data processing device
US20120048926A1 (en) Code reading apparatus, code reading system, and code reading method
JP5782059B2 (en) Code reader and program
JP7390919B2 (en) Code symbol reader and program
JP2022035394A (en) Reader, product data registration system, and program
US20220301400A1 (en) Symbol reading device and method
JP2010231436A (en) Code symbol reader
JP5075866B2 (en) Code symbol reader
JP7132029B2 (en) Code symbol reader and program
JP2011164934A (en) Symbol reader and control program thereof
JP2012043175A (en) Commodity code reader and commodity code reading method
JP5349444B2 (en) Code reader and program
JP2012256312A (en) Code reader and program
JP7360956B2 (en) Symbol reader and program
JP6487498B2 (en) Code reader
JP5349646B2 (en) Scanner
JP6692949B2 (en) Code reader and program
JP2019153167A (en) Code reading device and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20221213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230718

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230721

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230901

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231121

R150 Certificate of patent or registration of utility model

Ref document number: 7390919

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150