[go: up one dir, main page]

JP7567996B2 - COUNTING DEVICE, CONTROL METHOD, AND PROGRAM - Google Patents

COUNTING DEVICE, CONTROL METHOD, AND PROGRAM Download PDF

Info

Publication number
JP7567996B2
JP7567996B2 JP2023106983A JP2023106983A JP7567996B2 JP 7567996 B2 JP7567996 B2 JP 7567996B2 JP 2023106983 A JP2023106983 A JP 2023106983A JP 2023106983 A JP2023106983 A JP 2023106983A JP 7567996 B2 JP7567996 B2 JP 7567996B2
Authority
JP
Japan
Prior art keywords
product
camera
captured image
products
target
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
JP2023106983A
Other languages
Japanese (ja)
Other versions
JP2023115304A (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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2023106983A priority Critical patent/JP7567996B2/en
Publication of JP2023115304A publication Critical patent/JP2023115304A/en
Priority to JP2024173033A priority patent/JP2024174173A/en
Application granted granted Critical
Publication of JP7567996B2 publication Critical patent/JP7567996B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Description

本発明は商品の計数に関する。 The present invention relates to counting products.

検品作業などにおいて、検品対象の商品の管理が行われている。例えば特許文献1は、検品対象の荷物が撮像された画像を解析して荷物の品名と段数を特定し、その品名に対応する積み付け方法を特定し、その積み付け方法と段数に基づいて荷物の個数を特定する技術を開示している。なお、積み付け方法は、品物ごとに予め定められている。 During inspection work, products to be inspected are managed. For example, Patent Document 1 discloses a technique for analyzing an image of a package to be inspected to identify the name and number of layers of the package, identifying a stacking method corresponding to the name of the package, and identifying the number of packages based on the stacking method and number of layers. The stacking method is determined in advance for each product.

特開2013-067499号公報JP 2013-067499 A

特許文献1の発明では、様々な荷物の特徴量が予めデータベースに格納されており、荷物を撮像した画像から得られた特徴量とデータベースに格納されている各荷物の特徴量とを比較することにより、荷物の品名を特定している。しかしながらこの方法では、荷物の品名の特定に要する時間が長くなってしまう。その結果、荷物の個数の特定に要する時間も長くなってしまう。 In the invention of Patent Document 1, the features of various packages are stored in advance in a database, and the name of the package is identified by comparing the features obtained from an image of the package with the features of each package stored in the database. However, with this method, it takes a long time to identify the name of the package. As a result, it also takes a long time to identify the number of packages.

本発明は上述の課題に鑑みてなされたものであり、その目的の一つは、商品の個数の特定を短い時間で行う技術を提供することである。 The present invention was made in consideration of the above-mentioned problems, and one of its objectives is to provide a technology that can identify the number of products in a short period of time.

本発明の計数装置は、1)撮像画像に含まれる複数商品のうちの一部の商品から検出されたマークに基づいて、前記マークによって識別される前記商品を特定する特定部と、2)特定された前記商品の画像に関する情報に基づいて、前記撮像画像から、特定された前記商品と同一商品と判別される商品である対象商品を特定して、特定された前記対象商品の数を計数する計数部と、を有する。 The counting device of the present invention has: 1) an identification unit that identifies products identified by marks based on marks detected from some of the products included in a captured image; and 2) a counting unit that identifies target products from the captured image that are determined to be the same product as the identified product based on information about the image of the identified product, and counts the number of identified target products.

本発明の制御方法はコンピュータによって実行される。当該制御方法は、1)撮像画像に含まれる複数商品のうちの一部の商品から検出されたマークに基づいて、前記マークによって識別される前記商品を特定する特定ステップと、2)特定された前記商品の画像に関する情報に基づいて、前記撮像画像から、特定された前記商品と同一商品と判別される商品である対象商品を特定して、特定された前記対象商品の数を計数する計数ステップと、を有する。 The control method of the present invention is executed by a computer. The control method includes: 1) a step of identifying products identified by marks based on marks detected from some of the products included in a captured image; and 2) a step of counting to identify target products from the captured image that are determined to be the same product as the identified product based on information about the image of the identified product, and to count the number of the identified target products.

本発明のプログラムは、本発明の制御方法が有する各ステップをコンピュータに実行させる。 The program of the present invention causes a computer to execute each step of the control method of the present invention.

本発明によれば、商品の個数の特定を短い時間で行う技術が提供される。 The present invention provides a technology that can quickly identify the number of products.

実施形態1に係る計数装置の動作を概念的に例示する図である。4A to 4C are diagrams conceptually illustrating an example of the operation of the counting device according to the first embodiment. 計数装置の機能構成を例示するブロック図である。FIG. 2 is a block diagram illustrating a functional configuration of a counting device. 計数装置を実現するための計算機を例示する図である。FIG. 13 is a diagram illustrating a computer for implementing a counting device. 実施形態1の計数装置によって実行される処理の流れを例示するフローチャートである。4 is a flowchart illustrating a flow of a process executed by the counting device of the first embodiment. 商品群が1方向から撮像されるケースを例示する図である。FIG. 13 is a diagram illustrating a case in which an image of a group of products is captured from one direction. 商品群が1方向から撮像され、なおかつ、第2カメラが第2撮像画像と深度画像を生成するケースを例示する図である。A figure illustrating a case where a group of products is imaged from one direction and a second camera generates a second captured image and a depth image. 実施形態2の計数装置の機能構成を例示するブロック図である。FIG. 11 is a block diagram illustrating a functional configuration of a counting device according to a second embodiment.

以下、本発明の実施の形態について、図面を用いて説明する。尚、すべての図面において、同様な構成要素には同様の符号を付し、適宜説明を省略する。また、特に説明する場合を除き、各ブロック図において、各ブロックは、ハードウエア単位の構成ではなく、機能単位の構成を表している。以下の説明において、特に説明しない限り、各種所定の値(閾値など)は、その値を利用する機能構成部からアクセス可能な記憶装置に予め記憶させておく。 The following describes an embodiment of the present invention with reference to the drawings. In all drawings, similar components are given similar reference numerals and descriptions are omitted where appropriate. In addition, unless otherwise specified, in each block diagram, each block represents a functional configuration, not a hardware configuration. In the following description, unless otherwise specified, various predetermined values (such as threshold values) are stored in advance in a storage device accessible from the functional configuration unit that uses the values.

[実施形態1]
<概要>
図1は、実施形態1に係る計数装置2000の動作を概念的に例示する図である。ここで、図1を用いて説明する計数装置2000の動作は、計数装置2000の理解を容易にするための例示であり、計数装置2000の動作を限定するものではない。計数装置2000の動作の詳細やバリエーションについては後述する。
[Embodiment 1]
<Overview>
Fig. 1 is a diagram conceptually illustrating the operation of the counting device 2000 according to the first embodiment. Here, the operation of the counting device 2000 described using Fig. 1 is an example for making it easier to understand the counting device 2000, and does not limit the operation of the counting device 2000. Details and variations of the operation of the counting device 2000 will be described later.

計数装置2000は、商品群20に含まれる対象商品10の個数を特定する。商品群20は、1つ以上の対象商品10を一箇所に集めたものである。例えば、対象商品10の出荷や入荷時の検品作業においてパレットに積まれた複数の対象商品10が、商品群20として扱われる。以下、計数装置2000が商品群20に含まれる対象商品10の個数を特定する方法の概要を説明する。 The counting device 2000 identifies the number of target products 10 included in the product group 20. The product group 20 is one or more target products 10 gathered in one place. For example, multiple target products 10 stacked on a pallet during inspection work at the time of shipment or arrival of the target products 10 are treated as a product group 20. Below, an overview of the method by which the counting device 2000 identifies the number of target products 10 included in the product group 20 is described.

計数装置2000は、第1撮像画像32を取得する。第1撮像画像32は、第1カメラ30によって生成される。第1カメラ30は、マーク12がその撮像範囲に入るように設けられる。マーク12は、対象商品10の識別情報を表す任意のマーク(例えばバーコード)である。計数装置2000は、第1撮像画像32を解析することで、第1撮像画像32に含まれるマーク12から、対象商品10の識別情報を特定する。 The counting device 2000 acquires a first captured image 32. The first captured image 32 is generated by a first camera 30. The first camera 30 is positioned so that the mark 12 is within its imaging range. The mark 12 is any mark (e.g., a barcode) that represents the identification information of the target product 10. The counting device 2000 analyzes the first captured image 32 to identify the identification information of the target product 10 from the mark 12 included in the first captured image 32.

計数装置2000は、対象商品10の識別情報に対応づけられているマスタ情報50を取得する。マスタ情報50は、対象商品10を検出するための画像解析に利用される。マスタ情報50は、例えば、対象商品10のテンプレート画像や、対象商品10の画像特徴(画像上の特徴量)などである。 The counting device 2000 acquires master information 50 that is associated with the identification information of the target product 10. The master information 50 is used for image analysis to detect the target product 10. The master information 50 is, for example, a template image of the target product 10, image features of the target product 10 (feature quantities on the image), etc.

計数装置2000は、商品群20が含まれる第2撮像画像42を取得する。第2撮像画像42は、第2カメラ40によって生成される。第2カメラ40は、その撮像範囲に商品群20が含まれるように設けられる。計数装置2000は、マスタ情報50を利用して第2撮像画像42を解析することにより、第2撮像画像42に含まれる対象商品10を検出する。計数装置2000は、この検出結果に基づいて、商品群20に含まれる対象商品10の数を特定する。 The counting device 2000 acquires a second captured image 42 that includes the group of products 20. The second captured image 42 is generated by the second camera 40. The second camera 40 is provided so that the group of products 20 is included in its imaging range. The counting device 2000 detects the target products 10 included in the second captured image 42 by analyzing the second captured image 42 using the master information 50. The counting device 2000 determines the number of target products 10 included in the group of products 20 based on the detection result.

ここで、1つの第2撮像画像42には、商品群20に含まれる全ての対象商品10ではなく、一部の対象商品10しか含まれない可能性がある。例えば対象商品10がパレットに積み上げられている場合、一方向から商品群20を撮像しただけでは、一部の対象商品10が別の対象商品10に隠れてしまう可能性がある。 Here, one second captured image 42 may not include all of the target products 10 in the product group 20, but may only include some of the target products 10. For example, if the target products 10 are stacked on a pallet, capturing an image of the product group 20 from only one direction may result in some of the target products 10 being hidden by other target products 10.

そこで例えば、計数装置2000は、第2撮像画像42から検出された対象商品10の個数、及び商品群20における対象商品10の配置に関する事前ルールに基づいて、商品群20に含まれる対象商品10の個数を特定する。その他にも例えば、計数装置2000は、それぞれ異なる方向から商品群20を撮像するように設置された複数の第2カメラ40それぞれから第2撮像画像42を取得し、各第2撮像画像42から検出された対象商品10の個数に基づいて、商品群20に含まれる対象商品10の個数を特定する。対象商品10の個数を特定するより具体的な方法については後述する。 Therefore, for example, the counting device 2000 determines the number of target products 10 included in the product group 20 based on the number of target products 10 detected from the second captured image 42 and a prior rule regarding the arrangement of the target products 10 in the product group 20. As another example, the counting device 2000 acquires second captured images 42 from each of a plurality of second cameras 40 installed so as to capture images of the product group 20 from different directions, and determines the number of target products 10 included in the product group 20 based on the number of target products 10 detected from each second captured image 42. A more specific method for determining the number of target products 10 will be described later.

<作用効果の一例>
本実施形態の計数装置2000は、第1撮像画像32に含まれるマーク12を利用して、対象商品10の識別情報を特定する。また、計数装置2000は、特定された対象商品10の識別情報に対応するマスタ情報50を取得し、そのマスタ情報50を利用して第2撮像画像42から対象商品10を検出する。そして、計数装置2000は、対象商品10の検出結果に基づいて、商品群20に含まれる対象商品10の個数を特定する。
<Examples of effects>
The counting device 2000 of this embodiment identifies the identification information of the target products 10 by using the marks 12 included in the first captured image 32. The counting device 2000 also acquires master information 50 corresponding to the identification information of the identified target products 10, and detects the target products 10 from the second captured image 42 by using the master information 50. The counting device 2000 then identifies the number of target products 10 included in the product group 20 based on the detection results of the target products 10.

このように計数装置2000では、対象商品10の個数を特定するために第2撮像画像42から対象商品10を検出するに当たり、対象商品10の識別情報に対応するマスタ情報50が利用される。そのため、第2撮像画像42を解析する際に、対象商品10とは別の商品のマスタ情報を利用したマッチング等は行われない。よって、特許文献1に開示されている発明などと比較し、画像から対象商品10を検出する処理に要する時間が短くなる。よって、対象商品10をより短い時間で計数することができる。また、対象商品10のマスタ情報50を利用することには、商品の検出で誤りが生じること(例えば、第2撮像画像42に含まれる商品が対象商品10以外の商品であると判定されてしまうこと)を減らすことができるという効果もある。 In this way, in the counting device 2000, when detecting the target products 10 from the second captured image 42 in order to identify the number of the target products 10, the master information 50 corresponding to the identification information of the target products 10 is used. Therefore, when analyzing the second captured image 42, matching using master information of products other than the target products 10 is not performed. Therefore, compared to the invention disclosed in Patent Document 1, the time required for the process of detecting the target products 10 from the image is shorter. Therefore, the target products 10 can be counted in a shorter time. In addition, using the master information 50 of the target products 10 has the effect of reducing errors in product detection (for example, a product included in the second captured image 42 being determined to be a product other than the target product 10).

以下、計数装置2000についてより詳細に説明する。 The counting device 2000 is described in more detail below.

<機能構成の例>
図2は、計数装置2000の機能構成を例示するブロック図である。計数装置2000は、特定部2020、マスタ取得部2040、及び計数部2060を有する。特定部2020は、第1撮像画像32を解析することで、マーク12によって表される対象商品10の識別情報を特定する。マスタ取得部2040は、対象商品10の識別情報に対応するマスタ情報50を取得する。計数部2060は、マスタ情報50を利用して第2撮像画像42から対象商品10を検出し、その検出結果に基づいて、商品群20に含まれる対象商品10の個数を特定する。
<Example of functional configuration>
2 is a block diagram illustrating a functional configuration of the counting device 2000. The counting device 2000 has an identification unit 2020, a master acquisition unit 2040, and a counting unit 2060. The identification unit 2020 analyzes the first captured image 32 to identify the identification information of the target product 10 represented by the mark 12. The master acquisition unit 2040 acquires master information 50 corresponding to the identification information of the target product 10. The counting unit 2060 detects the target product 10 from the second captured image 42 using the master information 50, and identifies the number of target products 10 included in the product group 20 based on the detection result.

<計数装置2000のハードウエア構成の例>
計数装置2000の各機能構成部は、各機能構成部を実現するハードウエア(例:ハードワイヤードされた電子回路など)で実現されてもよいし、ハードウエアとソフトウエアとの組み合わせ(例:電子回路とそれを制御するプログラムの組み合わせなど)で実現されてもよい。以下、計数装置2000の各機能構成部がハードウエアとソフトウエアとの組み合わせで実現される場合について、さらに説明する。
<Example of Hardware Configuration of Counting Device 2000>
Each functional component of the counting device 2000 may be realized by hardware that realizes each functional component (e.g., a hardwired electronic circuit, etc.), or may be realized by a combination of hardware and software (e.g., a combination of an electronic circuit and a program that controls it, etc.). A case in which each functional component of the counting device 2000 is realized by a combination of hardware and software will be further described below.

図3は、計数装置2000を実現するための計算機1000を例示する図である。計算機1000は、任意の計算機である。例えば計算機1000は、PC(Personal Computer)やサーバマシンなどといった、据え置き型の計算機である。その他にも例えば、計算機1000は、スマートフォンやタブレット端末などといった可搬型の計算機である。 Figure 3 is a diagram illustrating a computer 1000 for realizing the counting device 2000. The computer 1000 is any computer. For example, the computer 1000 is a stationary computer such as a PC (Personal Computer) or a server machine. In addition, for example, the computer 1000 is a portable computer such as a smartphone or a tablet terminal.

計算機1000は、計数装置2000を実現するために設計された専用の計算機であってもよいし、汎用の計算機であってもよい。後者の場合、例えば、計算機1000に対して所定のアプリケーションをインストールすることにより、計算機1000で、計数装置2000の各機能が実現される(計算機1000が計数装置2000として動作するようになる)。上記アプリケーションは、計数装置2000の機能構成部を実現するためのプログラムで構成される。 The computer 1000 may be a dedicated computer designed to realize the counting device 2000, or may be a general-purpose computer. In the latter case, for example, by installing a specific application on the computer 1000, the computer 1000 realizes each function of the counting device 2000 (the computer 1000 operates as the counting device 2000). The application is composed of a program for realizing the functional components of the counting device 2000.

計算機1000は、バス1020、プロセッサ1040、メモリ1060、ストレージデバイス1080、入出力インタフェース1100、及びネットワークインタフェース1120を有する。バス1020は、プロセッサ1040、メモリ1060、ストレージデバイス1080、入出力インタフェース1100、及びネットワークインタフェース1120が、相互にデータを送受信するためのデータ伝送路である。ただし、プロセッサ1040などを互いに接続する方法は、バス接続に限定されない。 The computer 1000 has a bus 1020, a processor 1040, a memory 1060, a storage device 1080, an input/output interface 1100, and a network interface 1120. The bus 1020 is a data transmission path through which the processor 1040, the memory 1060, the storage device 1080, the input/output interface 1100, and the network interface 1120 transmit and receive data to each other. However, the method of connecting the processor 1040 and the like to each other is not limited to a bus connection.

プロセッサ1040は、CPU(Central Processing Unit)、GPU(Graphics Processing Unit)、FPGA(Field-Programmable Gate Array)などの種々のプロセッサである。メモリ1060は、RAM(Random Access Memory)などを用いて実現される主記憶装置である。ストレージデバイス1080は、ハードディスク、SSD(Solid State Drive)、メモリカード、又は ROM(Read Only Memory)などを用いて実現される補助記憶装置である。 The processor 1040 is a processor of various types, such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), or an FPGA (Field-Programmable Gate Array). The memory 1060 is a main storage device realized using a RAM (Random Access Memory) or the like. The storage device 1080 is an auxiliary storage device realized using a hard disk, an SSD (Solid State Drive), a memory card, or a ROM (Read Only Memory) or the like.

入出力インタフェース1100は、計算機1000と入出力デバイスとを接続するためのインタフェースである。例えば入出力インタフェース1100には、キーボードなどの入力装置や、ディスプレイ装置などの出力装置が接続される。 The input/output interface 1100 is an interface for connecting the computer 1000 to an input/output device. For example, an input device such as a keyboard and an output device such as a display device are connected to the input/output interface 1100.

ネットワークインタフェース1120は、計算機1000を通信網に接続するためのインタフェースである。この通信網は、例えば LAN(Local Area Network)や WAN(Wide Area Network)である。例えばネットワークインタフェース1120には、通信網を介して、第1カメラ30や第2カメラ40が接続される。ただし、第1カメラ30や第2カメラ40は、ネットワークインタフェース1120以外を介して(例えば入出力インタフェース1100を介して)計算機1000と通信可能に接続されてもよいし、計算機1000とは通信可能に接続されていなくてもよい。後者の場合、例えば、各カメラと計算機1000が共通の記憶装置にアクセスできるようにしておく。そして、計算機1000は、その記憶装置を介して、第1撮像画像32や第2撮像画像42を取得する。 The network interface 1120 is an interface for connecting the computer 1000 to a communication network. This communication network is, for example, a LAN (Local Area Network) or a WAN (Wide Area Network). For example, the first camera 30 and the second camera 40 are connected to the network interface 1120 via the communication network. However, the first camera 30 and the second camera 40 may be communicatively connected to the computer 1000 via something other than the network interface 1120 (for example, via the input/output interface 1100), or may not be communicatively connected to the computer 1000. In the latter case, for example, each camera and the computer 1000 are set to be able to access a common storage device. Then, the computer 1000 acquires the first captured image 32 and the second captured image 42 via that storage device.

ストレージデバイス1080は、計数装置2000の各機能構成部を実現するプログラム(前述したアプリケーションを実現するプログラム)を記憶している。プロセッサ1040は、このプログラムをメモリ1060に読み出して実行することで、計数装置2000の各機能構成部を実現する。 The storage device 1080 stores a program that realizes each functional component of the counting device 2000 (a program that realizes the application described above). The processor 1040 reads this program into the memory 1060 and executes it to realize each functional component of the counting device 2000.

<処理の流れ>
図4は、実施形態1の計数装置2000によって実行される処理の流れを例示するフローチャートである。特定部2020は第1撮像画像32を取得する(S102)。特定部2020は、第1撮像画像32を解析することで、マーク12によって表される対象商品10の識別情報を特定する(S104)。マスタ取得部2040は、対象商品10の識別情報に対応するマスタ情報50を取得する(S106)。計数部2060は、第2撮像画像42を取得する(S108)。計数部2060は、マスタ情報50を利用して第2撮像画像42を解析することで、第2撮像画像42から対象商品10を検出する(S110)。計数部2060は、対象商品10の検出結果に基づいて、商品群20に含まれる対象商品10の個数を特定する(S110)。
<Processing flow>
4 is a flowchart illustrating the flow of a process executed by the counting device 2000 of the first embodiment. The identification unit 2020 acquires the first captured image 32 (S102). The identification unit 2020 analyzes the first captured image 32 to identify the identification information of the target product 10 represented by the mark 12 (S104). The master acquisition unit 2040 acquires master information 50 corresponding to the identification information of the target product 10 (S106). The counting unit 2060 acquires the second captured image 42 (S108). The counting unit 2060 analyzes the second captured image 42 using the master information 50 to detect the target product 10 from the second captured image 42 (S110). The counting unit 2060 identifies the number of target products 10 included in the product group 20 based on the detection result of the target product 10 (S110).

計数装置2000によって実行される処理の流れは図4に示したものに限定されない。例えば第2撮像画像42を取得するタイミングは、S110よりも前の任意のタイミングとすることができる。 The process flow executed by the counting device 2000 is not limited to that shown in FIG. 4. For example, the timing for acquiring the second captured image 42 can be any timing prior to S110.

<対象商品10と商品群20について>
対象商品10は、計数対象となる任意の商品である。ここで、対象商品10は、販売の単位となる1つの商品であってもよいし、販売の単位となる商品を複数まとめて梱包したものであってもよい。例えば、複数の同一の商品が1つの段ボール箱に入れられた状態で運搬される場合において、その商品が複数入れられた1つの段ボール箱が1つの対象商品10として扱われる。
<Regarding Target Product 10 and Product Group 20>
The target product 10 is any product that is the subject of counting. Here, the target product 10 may be a single product that is a unit of sale, or a package of multiple products that are units of sale. For example, when multiple identical products are transported in a single cardboard box, the single cardboard box containing the multiple products is treated as one target product 10.

対象商品10は複数まとめられた状態で、何らかの処理の対象となる。商品群20は、このように処理の単位としてまとめられた複数の対象商品10の集まりである。例えば、複数の商品が1つのパレットに載せられ、パレット単位で検品が行われることがある。そこで、このように1つのパレットに載せられた複数の対象商品10が、商品群20として扱われる。なお、複数の同一の商品が1つの段ボール箱に入れられており、その段ボール箱が複数まとめて処理の単位となる場合(例えば、パレットに複数の段ボール箱が積まれ、パレット単位で検品が行われる場合)、そのように複数の段ボールを1つにまとめたものが商品群20として扱われる。 The target products 10 are grouped together and become the subject of some kind of processing. A product group 20 is a collection of multiple target products 10 grouped together in this way as a processing unit. For example, multiple products may be placed on a single pallet, and inspection may be carried out on a pallet basis. Thus, multiple target products 10 placed on a single pallet in this way are treated as a product group 20. Note that when multiple identical products are placed in a single cardboard box, and the cardboard box is collectively used as a processing unit (for example, when multiple cardboard boxes are stacked on a pallet and inspection is carried out on a pallet basis), such a group of multiple cardboard boxes is treated as a product group 20.

例えば対象商品10は、入荷や出荷の作業において検品の対象となっている商品である。入荷又はや出荷における検品作業は、同一の商品を複数まとめたものを1単位として(例えばパレット単位)で行われることがある。計数装置2000は、このように複数個で1単位として扱われる対象商品10について、その1単位である商品群20にいくつの対象商品10が含まれているかを特定するために利用される。 For example, the target products 10 are products that are subject to inspection during receiving and shipping operations. Inspection operations during receiving and shipping may be carried out with a group of the same products as one unit (e.g., a pallet). The counting device 2000 is used to determine how many target products 10 are included in a product group 20, which is one unit of target products 10 that are treated as a single unit of multiple products.

商品群20は、第1カメラ30や第2カメラ40によって撮像される際、任意の方法で運搬されうる。例えば商品群20は、ベルトコンベアに載せられて運搬されうる。その他にも例えば、商品群20は、フォークリフトなどの自動車に乗せられたり、人力で動く台車に乗せられたりすることで、運搬されうる。 When the product group 20 is imaged by the first camera 30 and the second camera 40, the product group 20 may be transported in any manner. For example, the product group 20 may be transported on a conveyer belt. In other examples, the product group 20 may be transported by being placed on a vehicle such as a forklift or on a hand-powered cart.

ただし、第1カメラ30や第2カメラ40は、静止している状態の商品群20を撮像してもよい。この場合、例えば商品群20は、第1カメラ30や第2カメラ40が設置されている場所に任意の方法で運搬され、その場所で一端止められる。そして、第1カメラ30や第2カメラ40による撮像が行われた後、再び別の場所に運搬される。 However, the first camera 30 and the second camera 40 may capture images of the product group 20 in a stationary state. In this case, for example, the product group 20 is transported by any method to the location where the first camera 30 and the second camera 40 are installed, and stopped at that location for a while. Then, after the images are captured by the first camera 30 and the second camera 40, the product group 20 is transported again to another location.

<マーク12について>
マーク12は、商品群20に含まれる対象商品10の識別情報を表す。ここで、マーク12としては、識別情報を表すことができ、なおかつ、カメラによって撮像可能な任意のマークを利用することができる。例えばマーク12は、対象商品10の識別情報を符号化することで得られる種々のコード(例えば、バーコードや二次元コード)である。その他にも例えば、マーク12は、対象商品10の識別情報を表す文字列(数値列を含む)であってもよい。
<About Mark 12>
The mark 12 represents the identification information of the target product 10 included in the product group 20. Any mark that can represent the identification information and can be captured by a camera can be used as the mark 12. For example, the mark 12 is a variety of codes (e.g., a barcode or a two-dimensional code) obtained by encoding the identification information of the target product 10. Alternatively, for example, the mark 12 may be a character string (including a numeric string) that represents the identification information of the target product 10.

マーク12が付されている場所は様々である。例えばマーク12は、各対象商品10の任意の位置に付されている。その他にも例えば、マーク12は、パレットなど、複数の対象商品10を1つの商品群20にまとめるために利用される物の任意の位置に付されていてもよい。 The mark 12 may be placed in various locations. For example, the mark 12 may be placed at any location on each target product 10. As another example, the mark 12 may be placed at any location on an object, such as a pallet, that is used to group multiple target products 10 into one product group 20.

ただし、マーク12は、第1カメラ30によって撮像可能な位置に付されている必要がある。例えば各対象商品10にマーク12が付される場合、少なくとも1つの対象商品10は、それに付されているマーク12が第1カメラ30によって撮像できる状態である必要がある。そこで例えば、第1カメラ30の撮像範囲に少なくとも1つのマーク12が含まれるように、商品群20における対象商品10の配置や、商品群20の運搬について、運用のルールを定めておくことが公的である。例えば、「商品群20を運搬する際、少なくとも1つの対象商品10については、マーク12が見える状態(外側を向いた状態)で配置されるようにする」という運用ルールを定めておく。パレット等にマーク12が付される場合も同様である。 However, the mark 12 must be placed in a position that can be imaged by the first camera 30. For example, if a mark 12 is placed on each target product 10, the mark 12 placed on at least one target product 10 must be in a state where it can be imaged by the first camera 30. Therefore, for example, it is publicly required to establish operational rules for the arrangement of the target products 10 in the product group 20 and the transportation of the product group 20 so that at least one mark 12 is included in the imaging range of the first camera 30. For example, an operational rule may be established that "when transporting the product group 20, at least one target product 10 must be placed so that the mark 12 is visible (facing outward)." The same applies when the mark 12 is placed on a pallet or the like.

ここで、マーク12を対象商品10やパレット等に付す方法は任意である。例えばマーク12は、対象商品10やパレット等に貼り付け可能なシールに印字される。この場合、そのシールを対象商品10やパレット等に貼り付けることで、マーク12が対象商品10やパレット等に付される。その他にも例えば、マーク12を対象商品10やパレット等の外面に直接印字することで、マーク12が付されてもよい。また、印字ではなく、人手による描画などでマーク12が付されてもよい。 Here, the method of attaching the mark 12 to the target product 10, pallet, etc. is arbitrary. For example, the mark 12 is printed on a sticker that can be attached to the target product 10, pallet, etc. In this case, the mark 12 is attached to the target product 10, pallet, etc. by attaching the sticker to the target product 10, pallet, etc. In other ways, for example, the mark 12 may be attached by directly printing the mark 12 on the outer surface of the target product 10, pallet, etc. Furthermore, the mark 12 may be attached by hand drawing instead of printing.

<第1カメラ30について>
第1カメラ30は、マーク12を撮像するために利用される。言い換えれば、第1カメラ30としては、「第1撮像画像32に含まれるマーク12から対象商品10の識別情報を特定できる」という条件を満たすことができる任意のカメラを利用することができる。例えばこのような条件を満たすカメラとしては、バーコードリーダや QR コード(登録商標)リーダなどに利用されるカメラなどを利用することができる。その他にも例えば、第1カメラ30には、一般的なデジタルカメラ(例えば、携帯端末に設けられているデジタルカメラ)が利用されてもよい。なお、第1カメラ30は、静止画を撮像するスチルカメラであってもよいし、動画を撮像するビデオカメラであってもよい。
<Regarding the first camera 30>
The first camera 30 is used to capture the mark 12. In other words, any camera that can satisfy the condition that "the identification information of the target product 10 can be specified from the mark 12 included in the first captured image 32" can be used as the first camera 30. For example, a camera that satisfies such a condition can be a camera used for a barcode reader or a QR code (registered trademark) reader. In addition, for example, a general digital camera (for example, a digital camera provided in a mobile terminal) may be used as the first camera 30. Note that the first camera 30 may be a still camera that captures still images, or a video camera that captures moving images.

第1カメラ30は、マーク12を撮像可能な位置に設置される。例えば商品群20が運搬される場合、第1カメラ30は、その運搬経路(商品群20の移動経路)上に設置される。より具体的には、ベルトコンベアの付近や、フォークリフト等が移動する通路の付近などに設けられる。また、第1カメラ30は、商品群20の運搬に利用されるフォークリフト等に設けられてもよい。 The first camera 30 is installed in a position where it can capture an image of the mark 12. For example, when the group of products 20 is being transported, the first camera 30 is installed on the transport path (the path along which the group of products 20 move). More specifically, the first camera 30 is installed near a conveyor belt or near an aisle along which a forklift or the like moves. The first camera 30 may also be installed on a forklift or the like used to transport the group of products 20.

第1カメラ30が撮像を行うタイミングは任意である。例えば第1カメラ30は、マーク12がその撮像範囲内に含まれるか否かにかかわらず、定期的なタイミングで撮像を繰り返してもよい。この場合、後述するように、特定部2020は、複数の第1撮像画像32それぞれからマーク12の検出を試みて、マーク12が検出されたら、そのマーク12から対象商品10の識別情報を特定する。 The timing at which the first camera 30 captures images is arbitrary. For example, the first camera 30 may repeatedly capture images at regular intervals regardless of whether the mark 12 is included within its capture range. In this case, as described below, the identification unit 2020 attempts to detect the mark 12 from each of the multiple first captured images 32, and if the mark 12 is detected, identifies the identification information of the target product 10 from the mark 12.

その他にも例えば、第1カメラ30は、マーク12がその撮像範囲に入るタイミングを把握し、そのタイミングで撮像を行うように構成されてもよい。例えば商品群20が運搬される場合、物体の通過を検知するセンサ(以下、物体検知センサ)を商品群20の運搬経路上に設けておく。物体検知センサは、物体の通過を検知したら第1カメラ30へ信号を送信するように、第1カメラ30と接続しておく。また、第1カメラ30は、物体検知センサから信号を受信したら撮像を行って第1撮像画像32を生成するように設定しておく。さらに、物体検知センサの位置は、物体検知センサによって商品群20が検知されるタイミングで、第1カメラ30の撮像範囲にマーク12が含まれるように、予め位置決めをしておく。このようにすることで、第1カメラ30によって生成される第1撮像画像32には、マーク12が含まれるようにすることができる。 Alternatively, for example, the first camera 30 may be configured to grasp the timing when the mark 12 enters its imaging range and capture an image at that timing. For example, when the product group 20 is transported, a sensor that detects the passage of an object (hereinafter, object detection sensor) is provided on the transport route of the product group 20. The object detection sensor is connected to the first camera 30 so as to transmit a signal to the first camera 30 when it detects the passage of an object. The first camera 30 is also set to capture an image and generate a first captured image 32 when it receives a signal from the object detection sensor. Furthermore, the position of the object detection sensor is previously determined so that the mark 12 is included in the imaging range of the first camera 30 at the timing when the product group 20 is detected by the object detection sensor. In this way, the mark 12 can be included in the first captured image 32 generated by the first camera 30.

<第2カメラ40について>
第2カメラ40は、商品群20を撮像し、その中に含まれる対象商品10を計数するために利用される。そのため、第2カメラ40としては、画像解析によって認識可能な態様で対象商品10が含まれる第2撮像画像42を生成できる任意のカメラを利用できる。例えば第2カメラ40には、携帯端末に設けられているカメラなどといった一般的なデジタルカメラを利用することできる。
<Regarding the second camera 40>
The second camera 40 is used to capture an image of the product group 20 and count the target products 10 contained therein. Therefore, any camera capable of generating a second captured image 42 in which the target products 10 are included in a manner that can be recognized by image analysis can be used as the second camera 40. For example, a general digital camera such as a camera provided in a mobile terminal can be used as the second camera 40.

なお、第2カメラ40は、第1カメラ30と比較し、より広範囲を撮像できることが好ましい。例えば第1カメラ30は、その画角内の大部分がマーク12で占められるように、商品群20に対して比較的近接するように設置される。一方で、第2カメラ40は、商品群20全体を撮像できるように、商品群20から比較的離して設置される。ただし、第1カメラ30は、必ずしも商品群20に近接して設置される必要はなく、第2カメラ40と同様に、商品群20全体を撮像できるように設置されてもよい。 It is preferable that the second camera 40 can capture a wider range than the first camera 30. For example, the first camera 30 is installed relatively close to the group of products 20 so that the marks 12 occupy a large portion of its angle of view. On the other hand, the second camera 40 is installed relatively far from the group of products 20 so that it can capture an image of the entire group of products 20. However, the first camera 30 does not necessarily have to be installed close to the group of products 20, and may be installed so that it can capture an image of the entire group of products 20, just like the second camera 40.

第2カメラ40は、商品群20を撮像可能な位置に設置される。例えば商品群20が運搬される場合、第2カメラ40は、第1カメラ30と同様に、その運搬経路上に設置されたり、商品群20の運搬に利用されるフォークリフト等に設けられたりする。 The second camera 40 is installed in a position where it can capture an image of the group of products 20. For example, when the group of products 20 is being transported, the second camera 40, like the first camera 30, is installed on the transport route, or is provided on a forklift or the like used to transport the group of products 20.

なお、第2撮像画像42の解析には、第1撮像画像32を利用して得られるマスタ情報50が利用される。そのため、第1カメラ30は、第2カメラ40よりも早いタイミングで商品群20を撮像できる位置に設けられることが好適である。例えば第1カメラ30と第2カメラ40の双方を商品群20の移動経路上に設ける場合、第1カメラ30は、商品群20の移動方向に関し、第2カメラ40よりも手前に設けられることが好適である。 The master information 50 obtained using the first captured image 32 is used to analyze the second captured image 42. Therefore, it is preferable that the first camera 30 is provided in a position where it can capture an image of the product group 20 at an earlier timing than the second camera 40. For example, when both the first camera 30 and the second camera 40 are provided on the movement path of the product group 20, it is preferable that the first camera 30 is provided in front of the second camera 40 in the movement direction of the product group 20.

第2カメラ40が撮像を行うタイミングは様々である。例えば第2カメラ40は、商品群20がその撮像範囲内に含まれるか否かにかかわらず、定期的なタイミングで撮像を繰り返してもよい。この場合、後述するように、特定部2020は、複数の第2撮像画像42それぞれから商品群20の検出を試みて、商品群20が検出されたら、対象商品10の計数を行う。 The second camera 40 may capture images at various times. For example, the second camera 40 may repeatedly capture images at regular intervals regardless of whether the product group 20 is included within its capture range. In this case, as described below, the identification unit 2020 attempts to detect the product group 20 from each of the multiple second captured images 42, and when the product group 20 is detected, counts the target products 10.

その他にも例えば、第2カメラ40は、商品群20がその撮像範囲に入るタイミングを把握し、そのタイミングで撮像を行うように構成されてもよい。例えば商品群20が運搬される場合において、マーク12が第1カメラ30の撮像範囲に入るタイミングと、商品群20が第2カメラ40の撮像範囲に入るタイミングとの差異が既知であるとする(例えば、商品群20が一定の速度で移動する場合)。また、前述した物体検知センサなどを用いることにより、マーク12が第1カメラ30の撮像範囲に入るタイミングで第1カメラ30が撮像を行うとする。この場合、第2カメラ40は、第1カメラ30によって撮像が行われたことを検知し、第1カメラ30によって撮像が行われた時点から前述した既知の差異が経過したタイミングで撮像を行うように構成される。第1カメラ30によって撮像が行われたことは、例えば、第1カメラ30が撮像を行ったことに応じて第1カメラ30から第2カメラ40へ所定の信号が送信されるようにし、その信号を第2カメラ40が受信することによって把握することができる。また、第2カメラ40は、前述した物体検知センサから信号を受信し、その受信時点から所定の時間(前述した既知の差異など)が経過したタイミングで撮像を行ってもよい。その他にも例えば、第1カメラ30による撮像のタイミングを決める物体検知センサとは別に、第2カメラ40による撮像のタイミングを決める物体検知センサをさらに設けてもよい。 In addition, for example, the second camera 40 may be configured to grasp the timing when the product group 20 enters its imaging range and capture an image at that timing. For example, when the product group 20 is transported, the difference between the timing when the mark 12 enters the imaging range of the first camera 30 and the timing when the product group 20 enters the imaging range of the second camera 40 is known (for example, when the product group 20 moves at a constant speed). In addition, by using the object detection sensor described above, the first camera 30 captures an image at the timing when the mark 12 enters the imaging range of the first camera 30. In this case, the second camera 40 is configured to detect that an image has been captured by the first camera 30 and capture an image at a timing when the known difference described above has elapsed from the time when the image was captured by the first camera 30. The fact that an image has been captured by the first camera 30 can be grasped, for example, by transmitting a predetermined signal from the first camera 30 to the second camera 40 in response to the first camera 30 capturing an image, and the second camera 40 receiving the signal. The second camera 40 may also receive a signal from the object detection sensor described above, and capture an image when a predetermined time (such as the known difference described above) has elapsed since the signal was received. In addition, for example, an object detection sensor that determines the timing of image capture by the second camera 40 may be provided in addition to the object detection sensor that determines the timing of image capture by the first camera 30.

また、第2カメラ40は、第1カメラ30による撮像の影響を避けるタイミングで撮像を行ってもよい。具体的には、第1カメラ30が、光が照射された状況で撮像を行うように構成されているとする。このようにマーク12を撮像する際に利用される光は、マーク12の撮像には好適である一方で、商品群20の撮像には適さないことがある。例えば、第1カメラ30の撮像のために照射された光の影響で、第2撮像画像42において色飽和が起きてしまい、第2撮像画像42に含まれる対象商品10の認識精度が低下してしまう可能性がある。 The second camera 40 may also capture images at a timing that avoids the influence of the image capture by the first camera 30. Specifically, the first camera 30 is configured to capture images when light is irradiated. The light used to capture images of the marks 12 in this manner may be suitable for capturing images of the marks 12, but may not be suitable for capturing images of the product group 20. For example, the influence of the light irradiated for image capture by the first camera 30 may cause color saturation in the second captured image 42, which may reduce the recognition accuracy of the target products 10 included in the second captured image 42.

そこで、第1カメラ30の撮像のために照射された光の影響が無くなったタイミング(光の照射が終わったタイミングや、光の照射が終わってから所定時間経過後など)で撮像を行うように第2カメラ40を構成する。こうすることで、第1カメラ30の撮像のために
利用される光が第2カメラ40による撮像に影響を及ぼしてしまうことを防げるため、第2撮像画像42から対象商品10を認識する処理の精度、ひいては対象商品10の計数の精度を向上させることができる。
Therefore, the second camera 40 is configured to capture an image when the influence of the light irradiated for capturing an image by the first camera 30 has disappeared (when the light irradiation has ended, or after a predetermined time has elapsed since the light irradiation has ended, etc.). This makes it possible to prevent the light used for capturing an image by the first camera 30 from affecting the image captured by the second camera 40, thereby improving the accuracy of the process for recognizing the target product 10 from the second captured image 42, and ultimately the accuracy of counting the target products 10.

例えば第2カメラ40は、第1カメラ30が撮像を行ってから所定時間経過後に撮像を行うように構成される。この所定時間は、第1カメラ30による撮像に利用される光の影響が無くなる長さに設定される。またこの場合、第2カメラ40の設置位置は、第1カメラ30が撮像を行ってから上記所定時間が経過したタイミングで商品群20が撮像範囲に含まれるように決められる。 For example, the second camera 40 is configured to capture an image a predetermined time after the first camera 30 captures an image. This predetermined time is set to a length that eliminates the influence of light used for capturing images by the first camera 30. In this case, the installation position of the second camera 40 is determined so that the product group 20 is included in the capture range at the timing when the above-mentioned predetermined time has elapsed after the first camera 30 captures an image.

第1カメラ30の撮像に利用される光の影響を避ける方法は、上述した方法に限定されない。例えば、商品群20のうち、第1カメラ30の撮像のために照射される光の影響を受けない部分(すなわち、光が照射されない部分)を撮像するように、第2カメラ40が設置されてもよい。 The method of avoiding the influence of the light used for image capture by the first camera 30 is not limited to the above-mentioned method. For example, the second camera 40 may be installed so as to capture an image of a portion of the product group 20 that is not influenced by the light irradiated for image capture by the first camera 30 (i.e., a portion that is not irradiated with light).

<第1撮像画像32の取得:S102>
特定部2020は第1撮像画像32を取得する(S102)。特定部2020が第1撮像画像32を取得する方法は任意である。例えば特定部2020は、第1カメラ30から送信される第1撮像画像32を受信することで、第1撮像画像32を取得する。その他にも例えば、特定部2020は、第1撮像画像32が格納されている記憶装置にアクセスすることで、第1撮像画像32を取得してもよい。なお、第1撮像画像32が格納される記憶装置は、第1カメラ30の内部と外部のどちらに設けられてもよい。
<Acquisition of the first captured image 32: S102>
The identification unit 2020 acquires the first captured image 32 (S102). The method by which the identification unit 2020 acquires the first captured image 32 is arbitrary. For example, the identification unit 2020 acquires the first captured image 32 by receiving the first captured image 32 transmitted from the first camera 30. Alternatively, for example, the identification unit 2020 may acquire the first captured image 32 by accessing a storage device in which the first captured image 32 is stored. Note that the storage device in which the first captured image 32 is stored may be provided either inside or outside the first camera 30.

ここで、前述したように、第1カメラ30は、マーク12が撮像範囲に含まれないタイミングでも第1撮像画像32を生成しうる。この場合、例えば特定部2020は、第1カメラ30によって生成される各第1撮像画像32からマーク12の検出を試みる。そして、第1撮像画像32からマーク12が検出された場合、特定部2020は、検出されたマーク12を識別情報に変換し、その識別情報を、その第1撮像画像32に含まれる対象商品10の識別情報として特定する。 As described above, the first camera 30 may generate the first captured image 32 even when the mark 12 is not included in the image capture range. In this case, for example, the identification unit 2020 attempts to detect the mark 12 from each of the first captured images 32 generated by the first camera 30. Then, when the mark 12 is detected from the first captured image 32, the identification unit 2020 converts the detected mark 12 into identification information and identifies the identification information as the identification information of the target product 10 included in the first captured image 32.

<対象商品10の識別情報の特定:S104>
特定部2020は、第1撮像画像32を用いて、対象商品10の識別情報を特定する(S104)。より具体的には、特定部2020は、第1撮像画像32に含まれるマーク12について画像解析を行うことにより、対象商品10の識別情報を特定する。
<Identification of the identification information of the target product 10: S104>
The identification unit 2020 identifies the identification information of the target product 10 by using the first captured image 32 (S104). More specifically, the identification unit 2020 identifies the identification information of the target product 10 by performing image analysis on the mark 12 included in the first captured image 32.

例えばマーク12は、対象商品10の識別情報を符号化することで得られる種々のコードである。この場合、特定部2020は、第1撮像画像32からマーク12を検出し、検出したマーク12をデコードすることにより、対象商品10の識別情報を特定する。ここで、画像に含まれるバーコードや二次元コードを解析してデコードすることにより、それらによって表される識別情報(例えば、バーコードによって表される JAN(Japan Article Number)コード)を特定する技術には、既存の技術を利用することができる。 For example, the mark 12 is a variety of codes obtained by encoding the identification information of the target product 10. In this case, the identification unit 2020 detects the mark 12 from the first captured image 32 and identifies the identification information of the target product 10 by decoding the detected mark 12. Here, existing technology can be used to analyze and decode the barcode or two-dimensional code contained in the image to identify the identification information represented by them (for example, a JAN (Japan Article Number) code represented by a barcode).

その他にも例えば、マーク12は、対象商品10の識別情報を表す文字列である。この場合、特定部2020は、第1撮像画像32からマーク12を検出し、検出したマーク12について文字列認識処理(OCR:Optical Character Recognition)を行うことにより、マーク12によって表される対象商品10の識別情報を特定する。ここで、画像から文字列を検出し、検出した文字列を認識する技術には、既存の技術を利用することができる。 For another example, the mark 12 is a character string representing the identification information of the target product 10. In this case, the identification unit 2020 detects the mark 12 from the first captured image 32, and performs character string recognition processing (OCR: Optical Character Recognition) on the detected mark 12, thereby identifying the identification information of the target product 10 represented by the mark 12. Here, existing technology can be used as the technology for detecting a character string from an image and recognizing the detected character string.

なお、マーク12が文字列である場合、第1撮像画像32の中に、マーク12以外の文字列(例えば商品名)も含まれうる。この場合、例えば、対象商品10の識別情報を表す文字列の条件(所定の文字数である、所定のプレフィックス又はサフィックスを持つ、又は所定の形状の図形で囲われているなど)を予め定めておく。そして、特定部2020は、第1撮像画像32から検出される複数の文字列のうち、この条件を満たす文字列を、対象商品10の識別情報を表すものとして特定する。 When the mark 12 is a character string, the first captured image 32 may also contain character strings other than the mark 12 (e.g., a product name). In this case, for example, conditions for the character string representing the identification information of the target product 10 (such as a predetermined number of characters, having a predetermined prefix or suffix, or being surrounded by a figure of a predetermined shape) are determined in advance. The identification unit 2020 then identifies, from among the multiple character strings detected from the first captured image 32, a character string that satisfies this condition as one that represents the identification information of the target product 10.

<マスタ情報50の取得:S106>
マスタ取得部2040は、特定された対象商品10の識別情報に対応するマスタ情報50を取得する(S106)。そのために、商品の識別情報とその商品についてのマスタ情報50とを対応づけて、予めマスタ情報記憶装置60に格納しておく。マスタ取得部2040は、特定部2020によって特定された対象商品10の識別情報でマスタ情報記憶装置60を検索することで、その識別情報に対応づけて格納されているマスタ情報50を取得する。
<Acquisition of Master Information 50: S106>
The master acquisition unit 2040 acquires the master information 50 corresponding to the identification information of the specified target product 10 (S106). For this purpose, the identification information of the product and the master information 50 for the product are associated with each other and stored in advance in the master information storage device 60. The master acquisition unit 2040 searches the master information storage device 60 for the identification information of the target product 10 specified by the identification unit 2020, and acquires the master information 50 stored in association with the identification information.

ここで、同一の対象商品10についての複数の商品群20が、計数装置2000による処理の対象となることがある。例えば、同一の対象商品10が積まれたパレットが複数搬入され、それらが順次検品されるケースなどである。このようなケースでは、マスタ取得部2040は、同一のマスタ情報を複数回利用しうる。そこで、マスタ情報記憶装置60から取得したマスタ情報をキャッシュに格納しておき、再度このマスタ情報を利用する場合にはキャッシュから取得するようにして、マスタ情報の取得を効率化してもよい。なお、キャッシュを実現する記憶装置は、計数装置2000からのアクセスに要する時間がマスタ情報記憶装置60より短いものであればよく、計数装置2000の内部と外部のどちらに設けられてもよい。 Here, multiple product groups 20 for the same target product 10 may be subject to processing by the counting device 2000. For example, multiple pallets loaded with the same target products 10 may be brought in and inspected one after another. In such a case, the master acquisition unit 2040 may use the same master information multiple times. Therefore, the master information acquired from the master information storage device 60 may be stored in a cache, and when this master information is used again, it may be acquired from the cache, thereby making the acquisition of master information more efficient. Note that the storage device that realizes the cache may be one that requires less time for access from the counting device 2000 than the master information storage device 60, and may be provided either inside or outside the counting device 2000.

<第2撮像画像42の取得:S108>
計数部2060は、第2撮像画像42を取得する。計数部2060が第2撮像画像42を取得する方法は、特定部2020が第1撮像画像32を取得する方法と同様である。
<Acquisition of second captured image 42: S108>
The counting unit 2060 acquires the second captured image 42. The method by which the counting unit 2060 acquires the second captured image 42 is similar to the method by which the identifying unit 2020 acquires the first captured image 32.

ここで、前述したように、第2カメラ40は、商品群20が撮像範囲に含まれるか否かにかかわらず繰り返し撮像を行ってもよい。この場合、計数部2060は、複数の第2撮像画像42それぞれから商品群20の検出を試みて、商品群20が含まれる第2撮像画像42を特定し、その第2撮像画像42を利用して対象商品10の計数を行う。例えば、対象商品10が含まれていない第2撮像画像42や、対象商品10の一部が切れている第2撮像画像42(すなわち、第2撮像画像42に含まれるべき商品群20の外面の一部しか含まれていない第2撮像画像42)は、商品群20が含まれていない第2撮像画像42として扱われる。 Here, as described above, the second camera 40 may repeatedly capture images regardless of whether the product group 20 is included in the capture range. In this case, the counting unit 2060 attempts to detect the product group 20 from each of the multiple second captured images 42, identifies the second captured images 42 that include the product group 20, and counts the target products 10 using the second captured images 42. For example, a second captured image 42 that does not include the target product 10 or a second captured image 42 in which a part of the target product 10 is cut off (i.e., a second captured image 42 that includes only a part of the outer surface of the product group 20 that should be included in the second captured image 42) is treated as a second captured image 42 that does not include the product group 20.

<対象商品10の検出:S110>
計数部2060は、マスタ取得部2040によって取得されたマスタ情報50を利用して、第2撮像画像42から対象商品10を検出する(S110)。ここで、テンプレート画像や画像特徴などを利用して画像から特定の物体を認識する技術には、既存の技術を利用することができる。
<Detection of target product 10: S110>
The counting unit 2060 detects the target product 10 from the second captured image 42 using the master information 50 acquired by the master acquisition unit 2040 (S110). Here, existing technology can be used as the technology for recognizing a specific object from an image using a template image, image features, or the like.

なお、複数の商品群20それぞれが順次第1カメラ30や第2カメラ40の撮像範囲を通過するケース(例えば、これらの商品群20がコンベア上を順次流れているケース)などでは、各商品群20について、その商品群20に含まれる対象商品10の識別情報の特定が行われる。そのため、計数部2060は、複数の商品群20それぞれについて得られる対象商品10の識別情報の中から、これから解析しようとしている第2撮像画像42に含まれる商品群20について特定されたものを特定する必要がある。言い換えれば、計数部2060は、同一の商品群20が撮像された第1撮像画像32と第2撮像画像42とを対応づける必要がある。 In cases where multiple product groups 20 pass sequentially through the imaging range of the first camera 30 and the second camera 40 (for example, where these product groups 20 are moving sequentially on a conveyer), the identification information of the target products 10 included in each product group 20 is identified. Therefore, the counting unit 2060 needs to identify the identification information of the target products 10 obtained for each of the multiple product groups 20 that has been identified for the product group 20 included in the second captured image 42 to be analyzed. In other words, the counting unit 2060 needs to associate the first captured image 32 and the second captured image 42 in which the same product group 20 has been captured.

例えば計数部2060は、各第1撮像画像32の生成時点と、各第2撮像画像42の生成時点とに基づいて、同一の商品群20が撮像された第1撮像画像32と第2撮像画像42とを対応づける。例えば計数部2060は、互いの生成時点の差異が小さい(所定値以下である)第1撮像画像32と第2撮像画像42とを対応づける。そして、計数部2060は、第2撮像画像42に対応づけられた第1撮像画像32から得られた対象商品10の識別情報を利用して得られたマスタ情報を、その第2撮像画像42の画像解析に利用する。 For example, the counting unit 2060 associates the first captured image 32 and the second captured image 42 of the same product group 20 based on the generation time of each first captured image 32 and the generation time of each second captured image 42. For example, the counting unit 2060 associates the first captured image 32 and the second captured image 42 whose difference in generation time is small (a predetermined value or less). Then, the counting unit 2060 uses the master information obtained using the identification information of the target product 10 obtained from the first captured image 32 associated with the second captured image 42 for image analysis of the second captured image 42.

その他にも例えば、前述したように、第1カメラ30が撮像を行ったことに応じて第1カメラ30から第2カメラ40へ信号を送信し、その信号を受信したことに応じて第2カメラ40が撮像を行うように、第1カメラ30と第2カメラ40が構成されているとする。この場合、信号を送信するトリガとなった撮像で生成された第1撮像画像32と、その信号をトリガとして行われた撮像で生成された第2撮像画像42とを対応付けてもよい。 As another example, as described above, the first camera 30 and the second camera 40 are configured so that the first camera 30 transmits a signal to the second camera 40 in response to capturing an image by the first camera 30, and the second camera 40 captures an image in response to receiving the signal. In this case, the first captured image 32 generated by the image capturing that triggers the transmission of the signal may be associated with the second captured image 42 generated by the image capturing that is triggered by the signal.

<対象商品10の個数の特定:S112>
計数部2060は、第2撮像画像42について対象商品10の認識を行った結果に基づいて、商品群20に含まれる対象商品10の個数を特定する(S112)。ここで、商品群20に含まれる対象商品10の全てが第2撮像画像42に含まれるとは限らない。例えば、「縦に4個かつ横に3個並べた対象商品10が、3段積み上げられている」といった商品群20の場合、中に隠れている対象商品10は第2カメラ40によって撮像することができない。
<Identifying the number of target products 10: S112>
The counting unit 2060 identifies the number of target products 10 included in the product group 20 based on the result of recognizing the target products 10 in the second captured image 42 (S112). Here, all of the target products 10 included in the product group 20 are not necessarily included in the second captured image 42. For example, in the case of a product group 20 in which "four target products 10 are arranged vertically and three horizontally, stacked in three layers," the target products 10 hidden inside cannot be imaged by the second camera 40.

そこで例えば、計数部2060は、第2撮像画像42から認識された対象商品10の個数及びその配置と、商品群20における対象商品10の配置について予め定められた配置ルールとに基づいて、商品群20に含まれる対象商品10の個数を特定する。以下、商品群20に含まれる対象商品10の個数を特定する具体的な方法について説明する。 Therefore, for example, the counting unit 2060 determines the number of target products 10 included in the product group 20 based on the number and arrangement of the target products 10 recognized from the second captured image 42 and predetermined arrangement rules for the arrangement of the target products 10 in the product group 20. A specific method for determining the number of target products 10 included in the product group 20 will be described below.

図5は、商品群20が1方向から撮像されるケースを例示する図である。図5では、パレットの載置面と平行な面が xy 平面であり、鉛直方向下向きが z 方向である。また、第2カメラ40の撮像方向は y 方向である。そのため、第2撮像画像42には、xz 平面視した商品群20が撮像される。 Figure 5 is a diagram illustrating a case where the group of products 20 is imaged from one direction. In Figure 5, the plane parallel to the placement surface of the pallet is the xy plane, and the vertical downward direction is the z direction. The imaging direction of the second camera 40 is the y direction. Therefore, the second captured image 42 captures the group of products 20 viewed in the xz plane.

このように y 方向からのみ撮像を行う場合、第2撮像画像42からは、対象商品10が y 方向に何個並べられているのかを把握することが難しい。そこで、対象商品10の配置ルールとして、「y 方向には対象商品10を N 個ならべる」というルールを予め定めておく。 When capturing images only from the y direction in this way, it is difficult to determine from the second captured image 42 how many target products 10 are lined up in the y direction. Therefore, a rule that "N target products 10 are lined up in the y direction" is determined in advance as a placement rule for the target products 10.

計数部2060は、第2撮像画像42を解析することにより、 xz 平面視において対象商品10が何個存在するかを特定する。そして、計数部2060は、 xz 平面視における対象商品10の数に、配置ルールで定められている y 方向における対象商品10の数 N を掛けることにより、商品群20に含まれる対象商品10の数を特定する。 The counting unit 2060 analyzes the second captured image 42 to determine how many target products 10 are present in the xz plane view. The counting unit 2060 then multiplies the number of target products 10 in the xz plane view by the number N of target products 10 in the y direction defined by the placement rule to determine the number of target products 10 included in the product group 20.

また、第2撮像画像42に加えて深度画像を生成する機能をさらに持たせた第2カメラ40により、1方向から商品群20を撮像してもよい。この場合、例えば計数部2060は、第2撮像画像42と深度画像を使って以下のように対象商品10の個数を特定する。 The group of products 20 may also be imaged from one direction by a second camera 40 that further has a function of generating a depth image in addition to the second captured image 42. In this case, for example, the counting unit 2060 uses the second captured image 42 and the depth image to determine the number of target products 10 as follows.

図6は、商品群20が1方向から撮像され、なおかつ、第2カメラ40が第2撮像画像42と深度画像44を生成するケースを例示する図である。図6において、第2カメラ40の撮像方向は z 方向である。そのため、第2カメラ40からは、xy 平面視における対象商品10の配置を示す第2撮像画像42と、z 方向における各位置の深度を表す深度画像44とを得ることができる。深度画像44では、各画素の色の濃さが深度(その画素に対応する物体までの距離)を表している。 Figure 6 is a diagram illustrating a case in which the product group 20 is imaged from one direction and the second camera 40 generates a second captured image 42 and a depth image 44. In Figure 6, the imaging direction of the second camera 40 is the z direction. Therefore, from the second camera 40, it is possible to obtain a second captured image 42 showing the arrangement of the target products 10 in an xy planar view and a depth image 44 showing the depth of each position in the z direction. In the depth image 44, the color intensity of each pixel represents the depth (the distance to the object corresponding to that pixel).

計数部2060は、第2撮像画像42から対象商品10を検出することにより、xy 平面視における対象商品10の配置を特定する。さらに、計数部2060は、深度画像44を利用し、各対象商品10が配置されている位置において、対象商品10が何個積み上げられているのかを特定する。そして、計数部2060は、各位置において対象商品10が積み上げられている数を合計することにより、商品群20に含まれている対象商品10の数を特定する。 The counting unit 2060 detects the target products 10 from the second captured image 42, thereby determining the arrangement of the target products 10 in the xy planar view. Furthermore, the counting unit 2060 uses the depth image 44 to determine how many target products 10 are stacked at the position where each target product 10 is placed. Then, the counting unit 2060 determines the number of target products 10 included in the product group 20 by adding up the number of target products 10 stacked at each position.

深度画像44を利用して各位置に何個の物体が積まれているのかを特定する方法は、例えば以下の通りである。まず、深度画像44を利用することにより、第2カメラ40からパレットの載置面までの距離 D と、ある位置 P の最上段の対象商品10までの距離 a とを特定することができる。また、対象商品10の z 方向の厚み b を、予め把握しておく。これらの情報を利用することにより、位置 P に積まれている対象商品10の数は、(D-a)/b で計算することができる。なお、対象商品10の z 方向の厚みを示す情報は、例えば、マスタ情報50と共に、対象商品10の識別情報と対応づけて記憶装置に格納しておく。 For example, the method of using the depth image 44 to identify how many objects are stacked at each position is as follows. First, by using the depth image 44, it is possible to identify the distance D from the second camera 40 to the placement surface of the pallet and the distance a to the topmost target product 10 at a certain position P. In addition, the thickness b of the target products 10 in the z direction is known in advance. By using this information, the number of target products 10 stacked at position P can be calculated as (D-a)/b. Note that the information indicating the thickness of the target products 10 in the z direction is stored in a storage device, for example, together with the master information 50, in association with the identification information of the target products 10.

また、深度画像44を利用して奥行き方向の対象商品10の個数を把握する代わりに、第2カメラ40を複数台設け、それぞれ異なる方向から商品群20が撮像された複数の第2撮像画像42を利用してもよい。第2カメラ40を2台設ける場合、例えば、商品群20の進行方向に向かって側面に垂直に2台設ける方法や、商品群20の進行方向斜め前方又は後方に2台設けるなどといった方法がある。第2カメラ40を3台設ける場合、例えば、商品群20の進行方向に向かって側面に垂直に2台の第2カメラ40を設け、かつ、商品群20の進捗方向の前方斜め上又は後方斜め上に1台の第2カメラ40を設ける方法がある。 In addition, instead of using the depth image 44 to grasp the number of target products 10 in the depth direction, multiple second cameras 40 may be provided and multiple second captured images 42 in which the product group 20 is captured from different directions may be used. When two second cameras 40 are provided, for example, two cameras may be provided perpendicularly to the side facing the direction of travel of the product group 20, or two cameras may be provided diagonally forward or backward in the direction of travel of the product group 20. When three second cameras 40 are provided, for example, two second cameras 40 may be provided perpendicularly to the side facing the direction of travel of the product group 20, and one second camera 40 may be provided diagonally upwards forward or backward in the direction of travel of the product group 20.

ここで、複数の第2カメラ40でそれぞれ異なる方向から商品群20を撮像する方法には、それぞれ異なる商品群20の面が撮像された複数の第2撮像画像42について対象商品10の認識を行うことにより、対象商品10以外の商品が誤って混入している状況を検出しやすくなるという利点がある。このように対象商品10以外の商品が混入していることが検出された場合、例えば後述する実施形態2で説明するように、エラーの通知が出力される。 The method of capturing images of the product group 20 from different directions using multiple second cameras 40 has the advantage that it is easier to detect a situation in which a product other than the target product 10 has been mistakenly mixed in by recognizing the target product 10 from multiple second captured images 42 in which different faces of the product group 20 are captured. When it is detected that a product other than the target product 10 has been mixed in in this way, an error notification is output, for example, as described in embodiment 2 below.

<対象商品10の個数の特定結果を活用する方法>
計数部2060によって特定された商品群20に含まれる対象商品10の個数に関する情報を活用する方法は様々である。以下、その活用方法について、具体的に例示する。
<Method of utilizing the result of identifying the number of target products 10>
There are various methods for utilizing the information on the number of target products 10 included in the product group 20 identified by the counting unit 2060. Specific examples of such utilization methods will be described below.

<<活用方法の例1>>
例えば、商品群20に含まれる対象商品10の個数は、商品群20の管理に利用される。この場合、計数部2060は、商品群20の識別情報(例えばパレットの識別情報)と対応づけて、その商品群20に含まれる対象商品10の個数を、記憶装置に格納する。このようにすることで、入荷や出荷が行われる対象商品10を、商品群20という単位(例えばパレット単位)で容易に管理できるようになる。
<<Example of usage 1>>
For example, the number of target products 10 included in a product group 20 is used for managing the product group 20. In this case, the counting unit 2060 stores in a storage device the number of target products 10 included in the product group 20 in association with identification information (e.g., identification information of a pallet) of the product group 20. In this way, it becomes possible to easily manage the target products 10 that are received or shipped in units of product groups 20 (e.g., pallet units).

なお、商品群20の識別情報を取得する方法は任意である。例えば、商品群20の任意の位置(例えばパレット外面の任意の位置)に、商品群20の識別情報を表すマークを付しておく。計数装置2000は、マーク12から対象商品10の識別情報を特定する方法と同様の方法により、商品群20の識別情報を表すマークから、商品群20の識別情報を特定する。なお、商品群20の識別情報は、第1カメラ30によって撮像されてもよいし、第2カメラ40によって撮像されてもよいし、これら以外に用意された別のカメラによって撮像されてもよい。 The method of acquiring the identification information of the product group 20 is arbitrary. For example, a mark representing the identification information of the product group 20 is attached to any position of the product group 20 (for example, any position on the outer surface of the pallet). The counting device 2000 identifies the identification information of the product group 20 from the mark representing the identification information of the product group 20 using a method similar to the method of identifying the identification information of the target product 10 from the mark 12. The identification information of the product group 20 may be captured by the first camera 30, the second camera 40, or another camera prepared other than these.

なお、商品群20の識別情報に対応づけて管理される情報としては、対象商品10の個数以外にも様々なものを採用しうる。例えば計数装置2000は、商品群20の識別情報に、その中に含まれる対象商品10の識別情報をさらに対応づける。その他にも例えば、計数装置2000は、商品群20に含まれる対象商品10の属性に関する情報(以下、属性情報)をさらに取得し、その属性情報を商品群20の識別情報と対応づけて、記憶装置に格納する。属性情報としては、例えば、対象商品10の使用期限(食品の賞味期限や消費期限、又は薬の使用期限など)などといった任意の情報を採用できる。 In addition, various information other than the number of target products 10 may be used as the information managed in association with the identification information of the product group 20. For example, the counting device 2000 further associates the identification information of the product group 20 with the identification information of the target products 10 contained therein. As another example, the counting device 2000 further acquires information on the attributes of the target products 10 included in the product group 20 (hereinafter, attribute information), associates the attribute information with the identification information of the product group 20, and stores the attribute information in the storage device. As the attribute information, any information such as the expiration date of the target products 10 (such as the best-before date or expiration date of food, or the expiration date of medicine) may be used.

例えば、対象商品10の属性情報を表すマーク(文字列やコード)が、対象商品10の外面に示されている。計数装置2000は、このマークが含まれる画像に対して画像解析を行うことにより、対象商品10の属性情報を特定する。例えば対象商品10の使用期限を表す文字列が対象商品10の外面に印字されている場合、計数装置2000は、その文字列が含まれる画像を解析してその文字列を認識することにより、対象商品10の使用期限を特定する。なお、対象商品10の属性情報を表すマークは、第1カメラ30によって撮像されてもよいし、第2カメラ40によって撮像されてもよいし、それ以外の画像によって撮像されてもよい。 For example, a mark (character string or code) representing the attribute information of the target product 10 is displayed on the outer surface of the target product 10. The counting device 2000 identifies the attribute information of the target product 10 by performing image analysis on an image containing this mark. For example, if a character string representing the expiration date of the target product 10 is printed on the outer surface of the target product 10, the counting device 2000 identifies the expiration date of the target product 10 by analyzing an image containing the character string and recognizing the character string. Note that the mark representing the attribute information of the target product 10 may be captured by the first camera 30, the second camera 40, or another image.

<<活用方法の例2>>
商品群20に含まれる対象商品10の数が既知である場合において、計数装置2000は、計数部2060によって特定された対象商品10の個数を、商品群20に含まれる対象商品10の数が正しいか否かをチェックするために利用してもよい。この場合、計数装置2000は、商品群20に含まれるべき対象商品10の個数やその範囲を示す情報を取得し、その個数と計数部2060によって特定された対象商品10の個数を比較することで、計数部2060によって特定された対象商品10の個数が不正であるか否か(正しい個数と一致しない、又は正しい個数の範囲から外れている)を判定する。計数部2060によって特定された対象商品10の個数が不正であると判定した場合、計数装置2000は、エラーを表す通知を出力する。ここで、エラーを表す通知についての詳細は、実施形態2で説明する。
<<Example of usage 2>>
In the case where the number of target products 10 included in the product group 20 is known, the counting device 2000 may use the number of target products 10 identified by the counting unit 2060 to check whether the number of target products 10 included in the product group 20 is correct. In this case, the counting device 2000 acquires information indicating the number and range of target products 10 to be included in the product group 20, and compares the number with the number of target products 10 identified by the counting unit 2060 to determine whether the number of target products 10 identified by the counting unit 2060 is incorrect (does not match the correct number or is outside the range of the correct number). If it is determined that the number of target products 10 identified by the counting unit 2060 is incorrect, the counting device 2000 outputs a notification indicating an error. Details of the notification indicating an error will be described in the second embodiment.

<変形例>
これまでの例では、第1カメラ30と第2カメラ40が別々のカメラとして設けられていた。しかしながら、1つのカメラが第1カメラ30と第2カメラ40の双方として利用されてもよい。例えば、第1カメラ30を別途設けることなく、第2カメラ40を第1カメラ30としても利用するようにする。この場合、特定部2020は、第2撮像画像42に含まれるマーク12から、対象商品10の識別情報を特定する。なお、第2カメラ40が複数設けられる場合、少なくとも1つの第2カメラ40の撮像範囲にマーク12が含まれるようにする。
<Modification>
In the examples described above, the first camera 30 and the second camera 40 are provided as separate cameras. However, one camera may be used as both the first camera 30 and the second camera 40. For example, the second camera 40 is used as the first camera 30 as well, without providing a separate first camera 30. In this case, the identification unit 2020 identifies the identification information of the target product 10 from the mark 12 included in the second captured image 42. In addition, when a plurality of second cameras 40 are provided, the mark 12 is included in the imaging range of at least one of the second cameras 40.

[実施形態2]
図7は、実施形態2の計数装置2000の機能構成を例示するブロック図である。以下で説明する点を除き、実施形態2の計数装置2000は、実施形態1の計数装置2000と同様の機能を有する。
[Embodiment 2]
7 is a block diagram illustrating a functional configuration of a counting device 2000 according to embodiment 2. Except for the points described below, the counting device 2000 according to embodiment 2 has the same functions as the counting device 2000 according to embodiment 1.

実施形態2の計数装置2000は通知部2080を有する。通知部2080は、エラーを表す通知(以下、エラー通知)を出力する。以下、通知部2080によって出力されるエラーの種類について説明する。 The counting device 2000 of the second embodiment has a notification unit 2080. The notification unit 2080 outputs a notification indicating an error (hereinafter, an error notification). The types of errors output by the notification unit 2080 are described below.

<エラー通知の例1>
例えば、特定部2020が第1撮像画像32から対象商品10の識別情報を特定できないことが考えられる。この場合、通知部2080は、対象商品10の識別情報を特定できなかった旨を表すエラー通知を出力する。ここで、対象商品10の識別情報を特定できないケースとしては、1)第1撮像画像32からマーク12が検出されないケースと、第1撮像画像32から検出されたマーク12を対象商品10の識別情報に変換できないケースとが考えられる。そこで、エラー通知には、1)と2)のどちらのケースなのかを示す情報がさらに含められていてもよい。また、エラー通知には、第1撮像画像32がさらに含まれてもよい。
<Error notification example 1>
For example, it is considered that the identification unit 2020 cannot identify the identification information of the target product 10 from the first captured image 32. In this case, the notification unit 2080 outputs an error notification indicating that the identification information of the target product 10 could not be identified. Here, cases in which the identification information of the target product 10 cannot be identified include 1) a case in which the mark 12 is not detected from the first captured image 32, and a case in which the mark 12 detected from the first captured image 32 cannot be converted into the identification information of the target product 10. Therefore, the error notification may further include information indicating whether the case is 1) or 2). Moreover, the error notification may further include the first captured image 32.

対象商品10の識別情報が特定できなかった場合と同様にして、対象商品10の識別情報が不正である場合にエラー通知が出力されるようにしてもよい。例えば、検品対象となる対象商品10が特定の3種類の商品のいずれかであることが予め分かっている場合、それら3種類の商品のいずれにも該当しない商品の識別情報が特定部2020によって特定されたら、特定された対象商品10の識別情報が不正であると言える。そこで通知部2080は、このように対象商品10の識別情報が不正である場合についても、エラー通知を出力するようにする。 Similarly to the case where the identification information of the target product 10 cannot be identified, an error notification may be output when the identification information of the target product 10 is invalid. For example, if it is known in advance that the target product 10 to be inspected is one of three specific types of products, and the identification unit 2020 identifies identification information of a product that does not fall into any of these three types of products, it can be said that the identification information of the identified target product 10 is invalid. Therefore, the notification unit 2080 is configured to output an error notification even when the identification information of the target product 10 is invalid in this way.

<エラー通知の例2>
計数部2060は、マスタ情報を用いて、第2撮像画像42から対象商品10を認識する。しかしながら、商品群20の中に含まれる物体を、対象商品10として認識できないことがありうる。これは例えば、計数部2060が、対象商品10のマスタ情報50を利用して、第2撮像画像42に含まれる商品が対象商品10である確度(第2撮像画像42に含まれる商品の画像特徴と対象商品10のマスタ情報50に示されている画像特徴との類似度など)を算出した結果、その確度が所定値以下であると判定された場合などである。このようなことは、第2撮像画像42の一部が不鮮明である場合や、商品群20の中に誤った商品が混入している場合などで起こりうる。
<Error notification example 2>
The counting unit 2060 recognizes the target product 10 from the second captured image 42 using the master information. However, it may not be possible to recognize an object included in the product group 20 as the target product 10. This may occur, for example, when the counting unit 2060 uses the master information 50 of the target product 10 to calculate the probability that the product included in the second captured image 42 is the target product 10 (such as the similarity between the image features of the product included in the second captured image 42 and the image features shown in the master information 50 of the target product 10) and determines that the probability is equal to or lower than a predetermined value. This may occur when a part of the second captured image 42 is unclear or when an incorrect product is mixed into the product group 20.

そこで通知部2080は、このように、商品群20の中に対象商品10として認識できない物体が含まれる場合に、その旨を示すエラー通知を出力する。このエラー通知には、対象商品10として認識できなかった物体が含まれる第2撮像画像42を含めることが好適である。なお、この第2撮像画像42には、対象商品10として認識できなかった物体を強調する情報(例えば、その物体を囲む枠)が加えられてもよい。 The notification unit 2080 thus outputs an error notification indicating that an object that cannot be recognized as a target product 10 is included in the product group 20. This error notification preferably includes the second captured image 42 that includes the object that could not be recognized as a target product 10. Note that information that highlights the object that could not be recognized as a target product 10 (for example, a frame surrounding the object) may be added to this second captured image 42.

<エラー通知の例3>
計数装置2000は、前述したように対象商品10の属性情報を取得してもよい。この場合、通知部2080は、対象商品10の属性情報を取得することができなかった場合(例えば、OCR 処理でエラーが出た場合)に、その旨を表すエラー通知を出力してもよい。
<Error notification example 3>
As described above, the counting device 2000 may acquire attribute information of the target product 10. In this case, if the counting device 2000 is unable to acquire the attribute information of the target product 10 (for example, if an error occurs in the OCR process), the notification unit 2080 may output an error notification indicating that fact.

<エラー通知の例4>
実施形態1の「活用方法の例2」で説明したように、計数装置2000は、計数部2060によって特定された対象商品10の数が正しいかどうかのチェックをしてもよい。この場合、通知部2080は、対象商品10の数が不正であると判定されたら、その旨を表すエラー通知を出力する。また、このエラー通知には、計数部2060によって特定された対象商品10の個数と、予め定められている対象商品10の正しい個数又はその範囲とが示されていてもよい。
<Error notification example 4>
As described in "Example 2 of Application Method" of the first embodiment, the counting device 2000 may check whether the number of target products 10 identified by the counting unit 2060 is correct. In this case, if the notification unit 2080 determines that the number of target products 10 is incorrect, it outputs an error notification indicating that fact. Furthermore, this error notification may indicate the number of target products 10 identified by the counting unit 2060 and the correct number or range of target products 10 that is determined in advance.

<エラー通知の出力先について>
エラー通知の出力先は任意である。例えばエラー通知は、オペレータの端末に送信される。例えばオペレータは、上記エラー通知を受信したら、そのエラー通知を見えることで、エラーの状況を確認する。また、オペレータは、エラー通知に含まれる画像などを利用し、計数装置2000に対して正しい情報を与えてもよい。例えば対象商品10の識別情報や属性情報が文字列で表されている場合に、それらを特定することができないことを表すエラー通知が出力されたとする。この場合、オペレータは、エラー通知に含まれている画像を目視で確認することで、対象商品10の識別情報や属性情報を特定する。そして、オペレータは、特定した正しい対象商品10の識別情報や属性情報を端末に入力して計数装置2000へ送信する。これらの情報が商品群20の識別情報と対応づけて管理される場合、オペレータによって入力された情報を利用することで、商品群20の識別情報に正しい情報を対応づけて管理することができるようになる。
<Error notification output destination>
The output destination of the error notification is arbitrary. For example, the error notification is sent to the operator's terminal. For example, when the operator receives the error notification, the operator checks the error status by looking at the error notification. The operator may also use an image or the like included in the error notification to provide correct information to the counting device 2000. For example, when the identification information and attribute information of the target product 10 are expressed as a character string, an error notification indicating that they cannot be identified is output. In this case, the operator visually checks the image included in the error notification to identify the identification information and attribute information of the target product 10. Then, the operator inputs the identified correct identification information and attribute information of the target product 10 into the terminal and transmits it to the counting device 2000. When these pieces of information are managed in association with the identification information of the product group 20, the information input by the operator can be used to manage the identification information of the product group 20 in association with the correct information.

エラー通知の出力先は、オペレータの端末には限定されず、例えば、計数装置2000と接続されているディスプレイ装置に対して出力されたり、記憶装置にエラーログとして格納されたりしてもよい。 The output destination of the error notification is not limited to the operator's terminal, but may be, for example, output to a display device connected to the counting device 2000 or stored as an error log in a storage device.

<ハードウエア構成の例>
実施形態2の計数装置2000のハードウエア構成は、実施形態1の計数装置2000のハードウエア構成と同様に、例えば図3で表される。ただし、実施形態2のストレージデバイス1080には、実施形態2の計数装置2000が有する各機能を実現するプログラムが格納されている。
<Example of hardware configuration>
The hardware configuration of the counting device 2000 of the second embodiment is shown in, for example, Fig. 3, similar to the hardware configuration of the counting device 2000 of the first embodiment. However, the storage device 1080 of the second embodiment stores a program for realizing each function of the counting device 2000 of the second embodiment.

上記の実施形態の一部又は全部は、以下の付記のようにも記載されうるが、以下には限られない。
1. 対象商品の識別情報を表すマークが含まれる第1の撮像画像を解析することで、前記マークによって表される識別情報を特定する特定部と、
前記識別情報に対応するマスタ情報を取得するマスタ取得部と、
複数の前記対象商品から成る商品群が含まれる第2の撮像画像を前記取得したマスタ情報を利用して解析することで、前記第2の撮像画像から前記対象商品を検出し、その検出結果に基づいて、前記商品群に含まれる前記対象商品の個数を特定する計数部と、を有する計数装置。
2. 前記第1の撮像画像と前記第2の撮像画像は同一の画像である、1.に記載の計数装置。
3. 前記第1の撮像画像は、第1のカメラによって生成され、
前記第2の撮像画像は、第1のカメラとは異なる第2のカメラによって生成される、1.に記載の計数装置。
4. 前記第1のカメラと第2のカメラは、前記対象商品の移動経路上に設けられており、
前記第1のカメラは、前記第2のカメラと比較し、前記対象商品の移動方向に関して手前側に設けられている、3.に記載の計数装置。
5. 前記第1のカメラは、光が照射されている状態で撮像を行って前記第1の撮像画像を生成するように構成されており、
前記第2のカメラは、前記光が照射されていないタイミングで撮像を行うように制御される、3.又は4.に記載の計数装置。
6. 前記第2の撮像画像に含まれる商品の中に、前記対象商品である確度が閾値以下であるものが含まれる場合に、その第2の撮像画像が含まれる通知を出力する通知部を有する、1.乃至5.いずれか一つに記載の計数装置。
7. 前記計数部は、前記第2の撮像画像における前記対象商品の配置と、前記商品群における商品の配置のルールとに基づいて、前記商品群に含まれる前記対象商品の数を特定する、1.乃至6.いずれか一つに記載の計数装置。
8. コンピュータによって実行される制御方法であって、
対象商品の識別情報を表すマークが含まれる第1の撮像画像を解析することで、前記マークによって表される識別情報を特定する特定ステップと、
前記識別情報に対応するマスタ情報を取得するマスタ取得ステップと、
複数の前記対象商品から成る商品群が含まれる第2の撮像画像を前記取得したマスタ情報を利用して解析することで、前記第2の撮像画像から前記対象商品を検出し、その検出結果に基づいて、前記商品群に含まれる前記対象商品の個数を特定する計数ステップと、を有する制御方法。
9. 前記第1の撮像画像と前記第2の撮像画像は同一の画像である、8.に記載の制御方法。
10. 前記第1の撮像画像は、第1のカメラによって生成され、
前記第2の撮像画像は、第1のカメラとは異なる第2のカメラによって生成される、8.に記載の制御方法。
11. 前記第1のカメラと第2のカメラは、前記対象商品の移動経路上に設けられており、
前記第1のカメラは、前記第2のカメラと比較し、前記対象商品の移動方向に関して手前側に設けられている、10.に記載の制御方法。
12. 前記第1のカメラは、光が照射されている状態で撮像を行って前記第1の撮像画像を生成するように構成されており、
前記第2のカメラは、前記光が照射されていないタイミングで撮像を行うように制御される、10.又は11.に記載の制御方法。
13. 前記第2の撮像画像に含まれる商品の中に、前記対象商品である確度が閾値以下であるものが含まれる場合に、その第2の撮像画像が含まれる通知を出力する通知ステップを有する、8.乃至12.いずれか一つに記載の制御方法。
14. 前記計数ステップにおいて、前記第2の撮像画像における前記対象商品の配置と、前記商品群における商品の配置のルールとに基づいて、前記商品群に含まれる前記対象商品の数を特定する、8.乃至13.いずれか一つに記載の制御方法。
15. 8.乃至13.いずれか一つに記載の制御方法をコンピュータに実行させるプログラム。
A part or all of the above-described embodiments can be described as, but is not limited to, the following supplementary notes.
1. An identification unit that analyzes a first captured image including a mark that represents identification information of a target product, and identifies the identification information represented by the mark;
a master acquisition unit that acquires master information corresponding to the identification information;
A counting device having a counting unit that detects the target products from a second captured image by analyzing the second captured image including a product group consisting of a plurality of the target products using the acquired master information, and identifies the number of the target products included in the product group based on the detection result.
2. The counting device according to 1., wherein the first captured image and the second captured image are the same image.
3. The first captured image is generated by a first camera;
1. The counting device according to claim 1, wherein the second captured image is generated by a second camera different from the first camera.
4. The first camera and the second camera are provided on a moving path of the target product,
3. The counting device according to Item 3, wherein the first camera is provided closer to the user than the second camera in a moving direction of the target products.
5. The first camera is configured to capture an image in a state where light is irradiated to generate the first captured image,
5. The counting device according to 3. or 4., wherein the second camera is controlled to capture an image at a timing when the light is not being irradiated.
6. The counting device according to any one of 1. to 5., further comprising a notification unit that outputs a notification that the second captured image includes a product that has a certainty of being the target product equal to or lower than a threshold value among the products included in the second captured image.
7. The counting device described in any one of 1. to 6., wherein the counting unit specifies the number of the target products included in the product group based on an arrangement of the target products in the second captured image and a rule for arranging products in the product group.
8. A computer-implemented control method comprising:
an identifying step of identifying the identification information represented by the mark by analyzing a first captured image including the mark representing the identification information of the target product;
a master acquisition step of acquiring master information corresponding to the identification information;
a counting step of detecting the target products from a second captured image by analyzing the second captured image, the second captured image including a product group consisting of a plurality of the target products, using the acquired master information, and determining the number of the target products included in the product group based on the detection result.
9. The control method according to 8., wherein the first captured image and the second captured image are the same image.
10. The first captured image is generated by a first camera;
8. The control method according to 8., wherein the second captured image is generated by a second camera different from the first camera.
11. The first camera and the second camera are provided on a moving path of the target product,
10. The control method according to claim 10, wherein the first camera is provided closer to the second camera in terms of a moving direction of the target product.
12. The first camera is configured to capture an image in a state where light is irradiated to generate the first captured image;
12. The control method according to 10. or 11., wherein the second camera is controlled to capture an image at a timing when the light is not being irradiated.
13. The control method according to any one of 8. to 12., further comprising a notification step of outputting a notification that the second captured image is included when the second captured image includes a product whose certainty as the target product is equal to or lower than a threshold value.
14. The control method described in any one of 8. to 13., wherein in the counting step, the number of the target products included in the product group is identified based on an arrangement of the target products in the second captured image and a rule for arranging products in the product group.
15. A program for causing a computer to execute the control method according to any one of 8. to 13.

10 対象商品
12 マーク
20 商品群
30 第1カメラ
32 第1撮像画像
40 第2カメラ
42 第2撮像画像
44 深度画像
50 マスタ情報
60 マスタ情報記憶装置
1000 計算機
1020 バス
1040 プロセッサ
1060 メモリ
1080 ストレージデバイス
1100 入出力インタフェース
1120 ネットワークインタフェース
2000 計数装置
2020 特定部
2040 マスタ取得部
2060 計数部
2080 通知部
10 Target product 12 Mark 20 Product group 30 First camera 32 First captured image 40 Second camera 42 Second captured image 44 Depth image 50 Master information 60 Master information storage device 1000 Computer 1020 Bus 1040 Processor 1060 Memory 1080 Storage device 1100 Input/output interface 1120 Network interface 2000 Counting device 2020 Identification unit 2040 Master acquisition unit 2060 Counting unit 2080 Notification unit

Claims (7)

撮像画像に含まれる複数商品のうちの一部の商品から検出されたマークに基づいて、前記マークによって識別される前記商品を特定する特定部と、
特定された前記商品の画像に関する情報に基づいて、前記撮像画像から、特定された前記商品と同一商品と判別される商品である対象商品を特定して、特定された前記対象商品の数を計数する計数部と、を有する計数装置。
an identification unit that identifies a product identified by a mark based on a mark detected from a part of a plurality of products included in a captured image;
A counting device having a counting unit that identifies target products from the captured image, which are products that are determined to be the same product as the identified product, based on information regarding the image of the identified product, and counts the number of the identified target products.
前記マークは、バーコード、または、2次元コードである、
請求項1に記載の計数装置。
The mark is a bar code or a two-dimensional code.
2. The counting device according to claim 1.
前記画像に関する情報は、特定された前記商品のテンプレート画像、または、特定された前記商品の画像上の特徴量である、
請求項1又は請求項2に記載の計数装置。
The information about the image is a template image of the identified product or a feature amount on the image of the identified product.
3. The counting device according to claim 1 or 2.
前記撮像画像に含まれる商品の中に、前記対象商品である確度が閾値以下であるものが含まれる場合に、その撮像画像が含まれる通知を出力する通知部を有する、請求項1乃至3いずれか一項に記載の計数装置。 The counting device according to any one of claims 1 to 3, further comprising a notification unit that outputs a notification that the captured image includes a product whose certainty as the target product is equal to or less than a threshold value among the products included in the captured image. 前記計数部は、前記撮像画像における前記対象商品の配置と、複数の前記対象商品から成る商品群における商品の配置のルールとに基づいて、前記商品群に含まれる前記対象商品の数を特定する、請求項1乃至4いずれか一項に記載の計数装置。 The counting device according to any one of claims 1 to 4, wherein the counting unit determines the number of the target products included in the product group based on the arrangement of the target products in the captured image and a rule for arranging products in the product group consisting of a plurality of the target products. コンピュータによって実行される制御方法であって、
撮像画像に含まれる複数商品のうちの一部の商品から検出されたマークに基づいて、前記マークによって識別される前記商品を特定する特定ステップと、
特定された前記商品の画像に関する情報に基づいて、前記撮像画像から、特定された前記商品と同一商品と判別される商品である対象商品を特定して、特定された前記対象商品の数を計数する計数ステップと、を有する制御方法。
1. A computer-implemented control method comprising:
a step of identifying a product identified by a mark based on a mark detected from a part of a plurality of products included in a captured image;
A control method comprising: a counting step of identifying target products from the captured image, which are products that are determined to be the same product as the identified product, based on information regarding the image of the identified product, and counting the number of the identified target products.
請求項6に記載の制御方法をコンピュータに実行させるプログラム。 A program for causing a computer to execute the control method described in claim 6.
JP2023106983A 2019-11-29 2023-06-29 COUNTING DEVICE, CONTROL METHOD, AND PROGRAM Active JP7567996B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2023106983A JP7567996B2 (en) 2019-11-29 2023-06-29 COUNTING DEVICE, CONTROL METHOD, AND PROGRAM
JP2024173033A JP2024174173A (en) 2019-11-29 2024-10-02 COUNTING DEVICE AND CONTROL METHOD

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2019217065A JP7310572B2 (en) 2019-11-29 2019-11-29 Counting device, control method, and program
JP2023106983A JP7567996B2 (en) 2019-11-29 2023-06-29 COUNTING DEVICE, CONTROL METHOD, AND PROGRAM

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2019217065A Division JP7310572B2 (en) 2019-11-29 2019-11-29 Counting device, control method, and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2024173033A Division JP2024174173A (en) 2019-11-29 2024-10-02 COUNTING DEVICE AND CONTROL METHOD

Publications (2)

Publication Number Publication Date
JP2023115304A JP2023115304A (en) 2023-08-18
JP7567996B2 true JP7567996B2 (en) 2024-10-16

Family

ID=76087831

Family Applications (3)

Application Number Title Priority Date Filing Date
JP2019217065A Active JP7310572B2 (en) 2019-11-29 2019-11-29 Counting device, control method, and program
JP2023106983A Active JP7567996B2 (en) 2019-11-29 2023-06-29 COUNTING DEVICE, CONTROL METHOD, AND PROGRAM
JP2024173033A Pending JP2024174173A (en) 2019-11-29 2024-10-02 COUNTING DEVICE AND CONTROL METHOD

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2019217065A Active JP7310572B2 (en) 2019-11-29 2019-11-29 Counting device, control method, and program

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2024173033A Pending JP2024174173A (en) 2019-11-29 2024-10-02 COUNTING DEVICE AND CONTROL METHOD

Country Status (1)

Country Link
JP (3) JP7310572B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2024174173A (en) * 2019-11-29 2024-12-13 日本電気株式会社 COUNTING DEVICE AND CONTROL METHOD

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IL307887A (en) 2021-05-13 2023-12-01 Foundation For Biomedical Res And Innovation At Kobe An anti-human PD-1 agonist antibody and a pharmaceutical preparation comprising the antibody for the treatment or prevention of inflammatory diseases

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019159386A (en) 2018-03-07 2019-09-19 山九株式会社 Assisting tool and method for counting the number of steel materials

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5250773A (en) * 1975-10-22 1977-04-23 Hitachi Ltd System for identification of objects
JP2787151B2 (en) * 1993-03-29 1998-08-13 日立エンジニアリング株式会社 Article quantity inspection method and device
JP5998744B2 (en) * 2012-08-23 2016-09-28 大日本印刷株式会社 Colony detection device, medium information registration system, hygiene management system, and program
JP6048741B2 (en) * 2013-03-04 2016-12-21 日本電気株式会社 Article management system, article management method, information processing apparatus, control method thereof, and control program
US9747512B2 (en) * 2015-06-25 2017-08-29 Toshiba Tec Kabushiki Kaisha Article recognition apparatus and image processing method for article recognition apparatus
JP6576714B2 (en) * 2015-07-06 2019-09-18 日本電産サンキョー株式会社 Card-like medium counting device and control method for card-like medium counting device
JP7310572B2 (en) * 2019-11-29 2023-07-19 日本電気株式会社 Counting device, control method, and program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019159386A (en) 2018-03-07 2019-09-19 山九株式会社 Assisting tool and method for counting the number of steel materials

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2024174173A (en) * 2019-11-29 2024-12-13 日本電気株式会社 COUNTING DEVICE AND CONTROL METHOD

Also Published As

Publication number Publication date
JP2023115304A (en) 2023-08-18
JP2024174173A (en) 2024-12-13
JP7310572B2 (en) 2023-07-19
JP2021086534A (en) 2021-06-03

Similar Documents

Publication Publication Date Title
JP2024174173A (en) COUNTING DEVICE AND CONTROL METHOD
US20240103447A1 (en) Product identification system and method
JP7396722B2 (en) System, processing method and program
US20120328180A1 (en) System and method for automatic recognition of undetected assets
US9375758B2 (en) Sorting device and sorting method
WO2019075911A1 (en) Commodity sorting system and sorting method
EP3273394A1 (en) Package inspection system and package inspection program
JP2006509271A (en) Mail identification tag with image signature and associated mail handler
SE535853C2 (en) checkout counter
CN111709687A (en) Article warehousing system and article warehousing method
US20230306625A1 (en) Object dimensioning system
CN105425308A (en) System and method for article tracking
RS66660B1 (en) Package inspection system
US20090072948A1 (en) ID Reading Device, ID Reading Method, ID Reading Program, and Inspection Device
JP4536533B2 (en) X-ray foreign object detection device
US11933745B2 (en) Inspection apparatus and non-transitory recording medium storing inspection program
US20230162148A1 (en) Product registration apparatus, product registration method, and non-transitory storage medium
JP4536548B2 (en) X-ray inspection apparatus and stored information extraction system
US10631668B2 (en) Inspection system, information collection apparatus, inspection method, information collection method, and non-transitory storage medium
US20080046115A1 (en) Method and Device for Checking the Loading of a Transport Device with Objects
JP6747681B2 (en) Inspection system, information collection device and inspection method
US20200184619A1 (en) Article inspection information management apparatus, program for the same, and article inspection system
CN120900952B (en) Intelligent logistics sorting method, device, terminal and storage medium
JP2010107358A (en) Apparatus for inspecting or weighing article
JP2020117403A (en) Inspection management device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230629

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240916

R150 Certificate of patent or registration of utility model

Ref document number: 7567996

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150