JP6160243B2 - Detection apparatus, detection method, and detection program - Google Patents
Detection apparatus, detection method, and detection program Download PDFInfo
- Publication number
- JP6160243B2 JP6160243B2 JP2013110818A JP2013110818A JP6160243B2 JP 6160243 B2 JP6160243 B2 JP 6160243B2 JP 2013110818 A JP2013110818 A JP 2013110818A JP 2013110818 A JP2013110818 A JP 2013110818A JP 6160243 B2 JP6160243 B2 JP 6160243B2
- Authority
- JP
- Japan
- Prior art keywords
- shelf
- product
- area
- detection
- detection device
- 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
Links
Images
Landscapes
- Image Analysis (AREA)
Description
本発明は、検出装置、検出方法及び検出プログラムに関し、特に、物体を撮像した画像を取得する検出装置、検出方法及び検出プログラムに関する。 The present invention relates to a detection device, a detection method, and a detection program, and more particularly to a detection device, a detection method, and a detection program that acquire an image obtained by imaging an object.
一般に、コンビニエンスストア等の店舗では、POS(Point of Sales)システム等を利用して商品管理が行われている。しかしながら、一般的なシステムでは、商品陳列棚に陳列されている商品や商品の位置を自動的に把握することは困難である。商品陳列棚における商品の並び方は店舗の売り上げに大きく影響するため、商品陳列棚の商品や商品の位置を効果的に検出する技術が望まれている。 In general, in stores such as convenience stores, merchandise management is performed using a POS (Point of Sales) system or the like. However, in a general system, it is difficult to automatically grasp the product displayed on the product display shelf and the position of the product. Since the arrangement of the products on the product display shelf greatly affects the sales of the store, a technology for effectively detecting the product and the position of the product on the product display shelf is desired.
例えば、棚を撮影した画像から棚に配置された商品を検出する技術として、特許文献1が知られている。
For example,
しかしながら、特許文献1は、検出した商品から棚割モデルを生成するための技術であり、予め作成された「什器モデル」をもとにして、画像認識によって特定した各商品マスタを配置するものである。特許文献1では、予め商品が陳列される棚等の形状やサイズを「什器モデル」として作成しておくことが前提となっている。
However,
すなわち、特許文献1では、予め商品棚の形状やサイズを定義しておき、定義された棚を画像の中から認識しなければならない。したがって、特許文献1のような関連する技術では、予め棚を検出するための情報を用意し、その情報をもとに画像処理を行う必要であるため、検出処理を簡易に行うことができないという問題があった。
That is, in
本発明は、このような課題に鑑み、簡易に検出処理を行うことが可能な検出装置、検出方法及び検出プログラムを提供することを主要な目的としている。 In view of such a problem, the present invention has as its main object to provide a detection device, a detection method, and a detection program that can easily perform a detection process.
本発明に係る検出装置は、物体を撮像した入力画像を取得する画像取得部と、前記入力画像に含まれる前記物体を認識する物体認識部と、前記認識された物体の前記入力画像中の配置関係に基づいて、前記物体の配置を区切る領域を検出する区切り検出部と、を備えるものである。 The detection apparatus according to the present invention includes an image acquisition unit that acquires an input image obtained by imaging an object, an object recognition unit that recognizes the object included in the input image, and an arrangement of the recognized object in the input image And a delimiter detection unit that detects a region that delimits the arrangement of the objects based on the relationship.
本発明に係る検出方法は、物体を撮像した入力画像を取得し、前記入力画像に含まれる前記物体を認識し、前記認識された物体の前記入力画像中の配置関係に基づいて、前記物体の配置を区切る領域を検出するものである。 The detection method according to the present invention acquires an input image obtained by imaging an object, recognizes the object included in the input image, and based on an arrangement relationship of the recognized object in the input image, It detects the area that delimits the arrangement.
本発明に係る検出プログラムは、物体を撮像した入力画像を入力し、前記入力画像に含まれる前記物体を認識し、前記認識された物体の前記入力画像中の配置関係に基づいて、前記物体の配置を区切る領域を検出する検出処理をコンピュータに実行させるための検出プログラムである。 The detection program according to the present invention inputs an input image obtained by imaging an object, recognizes the object included in the input image, and based on the arrangement relationship of the recognized object in the input image, It is a detection program for causing a computer to execute a detection process for detecting an area that divides the arrangement.
本発明によれば、簡易に検出処理を行うことが可能な検出装置、検出方法及び検出プログラムを提供することができる。 ADVANTAGE OF THE INVENTION According to this invention, the detection apparatus, the detection method, and detection program which can perform a detection process easily can be provided.
(実施の形態の概要)
実施の形態の説明に先立って、実施の形態の特徴についてその概要を説明する。図1は、実施の形態に係る検出装置の主要な構成を示している。
(Outline of the embodiment)
Prior to the description of the embodiment, an outline of features of the embodiment will be described. FIG. 1 shows a main configuration of the detection apparatus according to the embodiment.
図1に示すように、実施の形態に係る検出装置は、画像取得部1、物体認識部2、区切り検出部3を備えている。
As shown in FIG. 1, the detection apparatus according to the embodiment includes an
画像取得部1は、物体を撮像した入力画像を取得する。物体認識部2は、入力画像に含まれる物体を認識する。区切り検出部3は、認識された物体の入力画像中の配置関係に基づいて、物体の配置を区切る領域を検出する。
The
このように、実施の形態では、入力画像の中から物体を認識し、認識された物体の位置や方向などの配置関係から棚など物体の配置を区切る領域を検出する。このため、実施の形態では、予め棚などを検出するための情報や処理が不要であるため、簡易に検出処理を行うことができる。例えば、区切る領域を検出することにより、区切る領域に対する物体の位置を把握できるため、簡易に物体の位置を検出することができる。 As described above, in the embodiment, an object is recognized from the input image, and a region that divides the arrangement of the object such as a shelf is detected from the arrangement relationship such as the position and direction of the recognized object. For this reason, in the embodiment, since information and processing for detecting a shelf or the like in advance are not necessary, the detection processing can be easily performed. For example, since the position of the object with respect to the area to be separated can be grasped by detecting the area to be separated, the position of the object can be easily detected.
(実施の形態1)
以下、図面を参照して実施の形態1について説明する。本実施の形態では、商品の配置を区切る領域として棚の領域を検出し、特に、棚の段数を取得し、取得した段数の棚を画像の中から検出する。
(Embodiment 1)
The first embodiment will be described below with reference to the drawings. In the present embodiment, an area of a shelf is detected as an area that delimits the arrangement of products, and in particular, the number of shelf levels is acquired, and the acquired number of shelf levels is detected from the image.
図2は、本実施の形態に係る商品検出装置の構成を示している。この商品検出装置は、商品を含む棚を撮影した画像から、商品を認識するとともに、棚上の商品の位置を検出する。例えば、複数の棚201を有するゴンドラ什器(商品陳列棚)200が店舗等に設置されており、各棚201に複数の商品202が陳列されている。なお、ここでは、商品を検出する商品検出装置の例を説明するが、商品に限らず、その他の物体を検出する物体検出装置(検出装置)でもよい。
FIG. 2 shows the configuration of the commodity detection apparatus according to the present embodiment. The product detection device recognizes a product from an image obtained by photographing a shelf including the product and detects the position of the product on the shelf. For example, a gondola fixture (product display shelf) 200 having a plurality of
図2に示すように、本実施の形態に係る商品検出装置100は、画像取得部101、商品認識部102、棚段数取得部103、棚特定部104、商品位置検出部105、商品情報データベース106を備えている。なお、後述の商品検出方法(物体検出方法)が実現できれば、その他の機能ブロックで構成してもよい。
As shown in FIG. 2, the
図2の商品検出装置100における各機能(各処理)は、ハードウェア又はソフトウェア、もしくはその両方によって構成され、1つのハードウェア又はソフトウェアから構成してもよいし、複数のハードウェア又はソフトウェアから構成してもよい。商品検出装置100の各機能を、CPU(Central Processing Unit)やメモリ等を有するコンピュータにより実現してもよい。例えば、記憶装置に後述する商品検出方法を行うための商品検出プログラム(物品検出プログラムもしくは検出プログラム)を格納し、商品検出装置100の各機能を、記憶装置に格納された商品検出プログラムをCPUで実行することにより実現してもよい。
Each function (each process) in the
商品検出プログラムは、様々なタイプの非一時的なコンピュータ可読媒体(non-transitory computer readable medium)を用いて格納され、コンピュータに供給することができる。非一時的なコンピュータ可読媒体は、様々なタイプの実体のある記録媒体(tangible storage medium)を含む。非一時的なコンピュータ可読媒体の例は、磁気記録媒体(例えばフレキシブルディスク、磁気テープ、ハードディスクドライブ)、光磁気記録媒体(例えば光磁気ディスク)、CD−ROM(Read Only Memory)、CD−R、CD−R/W、半導体メモリ(例えば、マスクROM、PROM(Programmable ROM)、EPROM(Erasable PROM)、フラッシュROM、RAM(random access memory))を含む。また、プログラムは、様々なタイプの一時的なコンピュータ可読媒体(transitory computer readable medium)によってコンピュータに供給されてもよい。一時的なコンピュータ可読媒体の例は、電気信号、光信号、及び電磁波を含む。一時的なコンピュータ可読媒体は、電線及び光ファイバ等の有線通信路、又は無線通信路を介して、プログラムをコンピュータに供給できる。 The product detection program can be stored using various types of non-transitory computer readable media and supplied to a computer. Non-transitory computer readable media include various types of tangible storage media. Examples of non-transitory computer-readable media include magnetic recording media (for example, flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (for example, magneto-optical disks), CD-ROMs (Read Only Memory), CD-Rs, CD-R / W and semiconductor memory (for example, mask ROM, PROM (Programmable ROM), EPROM (Erasable PROM), flash ROM, RAM (random access memory)) are included. The program may also be supplied to the computer by various types of transitory computer readable media. Examples of transitory computer readable media include electrical signals, optical signals, and electromagnetic waves. The temporary computer-readable medium can supply the program to the computer via a wired communication path such as an electric wire and an optical fiber, or a wireless communication path.
商品検出装置100の各構成について説明する。商品情報データベース106は、ゴンドラ什器200の棚201に陳列された商品202を認識するための商品マスタ情報(物品マスタ情報)を記憶する。例えば、商品マスタ情報は、商品名、商品の種類、商品を認識するための画像等を含んでいる。また、商品の画像は、商品の上下左右が識別可能となっている。
Each configuration of the
画像取得部101は、商品202、棚201、ゴンドラ什器200を含むゴンドラ什器画像(入力画像)を取得する。例えば、店員等が一般的なカメラ210によりゴンドラ什器200の全体を含むように撮影し、撮影したゴンドラ什器画像を画像取得部101に入力することで、画像取得部101が画像を取得する。ゴンドラ什器画像は、店員等がカメラ210を操作して撮影してもよいし、店舗等に備えられたカメラ210により自動的に撮影してもよい。画像取得部101への画像の入力は、カメラ210から直接入力してもよいし、記憶媒体やネットワーク等を介して入力してもよい。
The
商品認識部(物品認識部)102は、入力されたゴンドラ什器画像に含まれる商品202を認識する。商品認識部102は、一般的な画像マッチング処理を行うことで商品202を認識する。商品認識部102は、商品情報データベース106に記憶された商品マスタ情報とゴンドラ什器画像を比較し、商品マスタ情報とマッチング(一致)する画像領域を検出することで、商品202の種類や位置、方向等を認識する。
The product recognition unit (article recognition unit) 102 recognizes the
棚段数取得部103は、ゴンドラ什器200に含まれる棚201の段数(区切り数)を取得する。例えば、店員等がキーボードを用いて棚段数入力部103に棚の段数を入力することで、棚段数入力部103が段数を取得する。
The shelf level
棚特定部104は、商品の配置を区切る領域を検出する区切り検出部の一例である。本実施の形態の棚特定部104は、認識された複数の商品202の配置位置の差分に基づいて棚201の領域(商品の配置を区切る領域)を特定する。棚特定部104は、認識した商品202の位置が離れている領域を棚201の領域と判定する。特に、棚特定部104は、取得した段数の棚201の領域を、ゴンドラ什器画像の中から特定する。なお、棚201の領域を検出する例について説明するが、棚のライン(配置面)のみを検出してもよい。棚特定部104は、商品の上端または下端の差分に基づいて、商品の上端より上に棚201を検出してもよいし、商品の下端より下に棚201を検出してもよい。さらに、棚特定部104は、商品の右端または左端の差分に基づいて、商品の右端より右に棚201を検出してもよいし、商品の左端より左に棚201を検出してもよい。
The
商品位置検出部(物品位置検出部)105は、ゴンドラ什器画像の中で認識された商品202と特定された棚201とに基づき、棚201に対する商品202の位置を検出する。商品位置検出部105は、ゴンドラ什器200における各棚201の左右方向の順番(フェイス)を検出する。これにより、どの棚のどこにどのような商品が配置されているかを把握することができる。なお、棚の上に商品が配置されていない場合もあるため、商品間に隙間が空いている場合は、空きスロットを考慮して、商品の配置順番を検出してもよい。
The product position detection unit (article position detection unit) 105 detects the position of the
次に、図3を用いて、本実施の形態に係る商品検出装置で実行される商品検出方法(物品検出方法)について説明する。 Next, a product detection method (article detection method) executed by the product detection apparatus according to the present embodiment will be described with reference to FIG.
図3に示すように、まず、画像取得部101が画像を取得する(S101)。店員等が店舗に設置されているゴンドラ什器200の全体をカメラ210で撮影し、撮影したゴンドラ什器画像を画像取得部101に入力することで、画像取得部101が画像を取得する。図4は、画像取得部101が取得するゴンドラ什器画像300の一例を示している。ゴンドラ什器画像300は、商品202、棚201、ゴンドラ什器200の全体を含んでいる。この例では、ゴンドラ什器200は、3段の棚201を有し、棚201のそれぞれに2つの商品202が配置されている。なお、店員等がゴンドラ什器200の一部を複数回に分けて撮影した画像を入力し、画像入力部101が複数の画像を合成することで、ゴンドラ什器画像300を生成してもよい。
As shown in FIG. 3, first, the
続いて、商品認識部102は、取得した画像に含まれる商品を認識する(S102)。商品認識部102は、商品情報データベース106に記憶された商品マスタ情報と取得したゴンドラ什器画像とのマッチング(一致)を判定する。例えば、商品認識部102は、画像の色や輝度の変化に基づいて輪郭(エッジ)を検出し、輪郭に囲まれた領域の特徴と商品マスタ情報の特徴との類似度を算出し、類似度の高い商品が輪郭の領域(商品検出領域)に存在すると認識する。商品認識部102は、商品マスタ情報を参照することで、商品の上下左右、商品の配置領域の四隅、商品名、種類等を検出する。また、商品認識部102は、商品の上下左右及び四隅から、商品の配置方向を検出することができる。
Subsequently, the
図5は、商品認識部102が、図4のゴンドラ什器画像300から商品202を認識した結果を示している。商品認識部102は、ゴンドラ什器画像300の中の領域を商品マスタ情報と比較し、商品マスタ情報と一致する6つの領域を商品検出領域302と判定する。これにより、商品認識部102は、各商品検出領域302における、商品名、商品の種類、商品の上下左右、四隅、配置方向等が把握できる。
FIG. 5 shows a result of the
続いて、棚段数取得部103が棚の段数を取得する(S103)。店員等がキーボードを操作し、棚段数取得部103に検出すべき棚の段数を入力することで、棚段数取得部103が棚の段数を取得する。例えば、図4及び図5のゴンドラ什器画像300の場合、棚201が3つであるため、店員等が段数として3を入力する。
Subsequently, the shelf
続いて、棚特定部104は、商品の位置の差分を算出する(S104)。棚特定部104は、ゴンドラ什器画像300から棚201の領域を検出するため、Y座標軸(画像の縦方向)上で隣り合う商品の位置の差分を算出する。
Subsequently, the
図6は、図5で検出した商品検出領域302から差分を算出する例である。棚特定部104は、Y座標軸上で隣り合う商品検出領域302の座標の差分を算出する。例えば、棚特定部104は、商品検出領域302の左下端を特定し、Y座標軸上で隣り合う商品の左下端のY座標の差分を算出する。なお、棚特定部104は、商品の左下端に限らず、右下端や左下及び右下の平均を用いて算出してもよいし、左上端または右上端や、左上及び右上の平均を用いて算出してもよい。その他、棚特定部104は、商品の中央の座標の差分を算出してもよい。
FIG. 6 is an example in which a difference is calculated from the
図6では、商品検出領域302aのY座標を10、商品検出領域302bのY座標を12、商品検出領域302cのY座標を20、商品検出領域302dのY座標を21、商品検出領域302eのY座標を30、商品検出領域302fのY座標を32とし、棚特定部104がこれらの差分を算出する。
In FIG. 6, the Y coordinate of the
例えば、棚特定部104は、Y座標軸上に商品検出領域302のY座標を並べて、Y座標の原点から小さい順に隣り合う座標の差分を算出する。この例では、原点と商品検出領域302aのY差分は10、商品検出領域302aと302b間のY差分は2、商品検出領域302bと302c間のY差分は8、商品検出領域302cと302d間のY差分は1、商品検出領域302dと302e間のY差分は9、商品検出領域302eと302f間のY差分は2となる。
For example, the
続いて、棚特定部104は、棚の領域を特定する(S105)。棚特定部104は、算出したY座標軸上で隣り合う商品の位置の差分に基づいて棚の領域を特定する。棚特定部104は、取得した段数分の棚が、Y座標の差分の大きい領域にあると判定する。例えば、棚特定部104は、配置位置の差分が所定の閾値よりも大きい領域が棚の領域であると判定してもよい。また、棚特定部104は、配置位置の差分が大きい順に、取得した段数分の棚の領域を検出してもよい。
Subsequently, the
図7は、図6で算出した商品のY座標の差分から棚の領域を特定する例である。ここでは、棚の段数に3が入力されているため、棚特定部104は、Y座標軸上で隣り合う商品のY座標差分の大きい順に3つの棚の領域を検出する。ここでは一例として原点との差分を除いて棚の領域を検出する。まず、Y座標の差分が最も大きいのは、商品検出領域302dと302eの間であり、次に大きいのは、商品検出領域302bと302cの間である。このため、棚特定部104は、商品検出領域302dと302eの間と、商品検出領域302bと302cの間に棚が含まれるものとして、それぞれ棚領域301a及び301bを特定する。また、商品と棚とは重複しないため、商品とは重ならない領域を棚領域とする。すなわち、商品検出領域302dと302eの間で、商品検出領域302eと重ならない領域を棚領域301bとし、商品検出領域302bと302cの間で、商品検出領域302cと重ならない領域を棚領域301aとする。さらにこの例では、棚の上に商品が配置されているため、棚特定部104は、商品検出領域302fの下に棚領域301cを検出する。
FIG. 7 is an example in which the shelf area is specified from the difference in the Y coordinates of the products calculated in FIG. Here, since 3 is input as the number of shelf stages, the
続いて、商品位置検出部105は、商品の位置を検出する(S106)。商品位置検出部105は、特定した棚領域に対する商品の位置(配置順番)を検出する。商品位置検出部105は、棚領域に対する位置から、何段目の棚の何番目にどのような商品があるか検出する。
Subsequently, the product
図7の例では、商品位置検出部105は、棚領域301を区切りとして、商品検出領域302のY座標をもとに、商品を棚の上下に振り分ける。商品位置検出部105は、商品検出領域302a及び302b、商品検出領域302c及び302d、商品検出領域302e及び302fがそれぞれ同じ棚に配置されているものとして振り分け、商品検出領域302のX座標の順に棚の上の位置及び商品を検出する。
In the example of FIG. 7, the product
この例では、商品位置検出部105は、上から1段目の棚(棚領域301a)には、左から1番目(商品検出領域302a)にお茶が配置され、2番目(商品検出領域302b)に水が配置され、上から2段目の棚(棚領域301b)には、左から1番目(商品検出領域302c)にコーヒーが配置され、2番目(商品検出領域302d)にジュースが配置され、上から3段目の棚(棚領域301c)には、左から1番目(商品検出領域302e)に牛乳が配置され、2番目(商品検出領域302f)にヨーグルトが配置されていることを検出する。
In this example, the product
以上のように、本実施の形態では、取得した画像から商品を認識し、取得した段数の棚を商品の位置に基づいて検出し、さらに商品の棚上の位置を検出する。これにより、予め棚を認識するための情報やその情報に基づく処理が不要であるため、簡易に、商品の配置を区切る棚を検出するとともに、商品の棚上の位置を検出することができる。 As described above, in the present embodiment, the product is recognized from the acquired image, the shelf with the acquired number of steps is detected based on the position of the product, and the position of the product on the shelf is further detected. Thus, since information for recognizing the shelf in advance and processing based on the information are not necessary, it is possible to easily detect the shelf that divides the arrangement of the products and the position of the product on the shelf.
(実施の形態2)
以下、図面を参照して実施の形態2について説明する。本実施の形態では、商品の配置を区切る領域を示すラインを検出し、特に、入力画像の中で認識された商品に接するラインに基づいて棚を検出する。主に、実施の形態1と相違する部分について説明する。
(Embodiment 2)
The second embodiment will be described below with reference to the drawings. In the present embodiment, a line indicating a region that divides the arrangement of products is detected, and in particular, a shelf is detected based on a line in contact with the product recognized in the input image. Mainly, differences from the first embodiment will be described.
図8は、本実施の形態に係る商品検出装置の構成を示している。図8に示すように、本実施の形態に係る商品検出装置100は、実施の形態1の図2と比べて、棚段数取得部103に代えて、仮棚ライン推定部107を備えている。例えば、仮棚ライン推定部107及び棚特定部104が、商品の配置を区切る領域を検出する区切り検出部を構成するともいえる。本実施の形態では、認識された商品の配置方向に沿ったライン(商品ラインもしくは物品ライン)に基づいて、区切る領域を検出する。
FIG. 8 shows the configuration of the commodity detection apparatus according to the present embodiment. As shown in FIG. 8, the
仮棚ライン推定部107は、取得したゴンドラ什器画像において、認識した商品202が配置されている仮棚ラインを推定する。仮棚ラインは、認識した商品202の上端または下端を通過する一直線のライン(商品ラインもしくは物品ライン)である。また、商品の右端または左端を通過する仮棚ラインを検出してもよい。
The temporary shelf
本実施の形態の棚特定部104は、推定された仮棚ラインに基づいて、棚201の配置面である棚ライン(配置ライン)を特定する。棚特定部104は、複数の仮棚ライン(商品ライン)のパラメータを投票空間に投票することで棚ラインを特定する。
The
次に、図9を用いて、本実施の形態に係る商品検出装置で実行される商品検出方法(物品検出方法)について説明する。 Next, a product detection method (article detection method) executed by the product detection apparatus according to the present embodiment will be described with reference to FIG.
図9に示すように、まず、画像取得部101がゴンドラ什器画像を取得し(S101)、商品認識部102がゴンドラ什器画像に含まれる商品202を認識する(S102)。実施の形態1と同様に、画像取得部101が図4のようなゴンドラ什器画像300を取得し、商品認識部102が図5のようにゴンドラ什器画像300の中から、商品202を検出した商品検出領域302を特定する。
As shown in FIG. 9, first, the
続いて、仮棚ライン推定部107は、仮棚ラインを推定する(S107)。仮棚ライン推定部107は、認識した商品の下端または上端に対応した仮棚ライン(商品ライン)を推定する。この例では、棚201の上に商品202が配置されているため、仮棚ライン推定部107は、商品の下端を含む下辺(底辺)に沿ったラインを仮棚ラインとする。
Subsequently, the temporary shelf
仮棚ライン推定部107は、仮棚ラインを、次の式1のような一般的な直線式から求めてもよい。式1は傾きaとy軸切片bをパラメータとする式の例である。
y=ax+b ・・・(式1)
The temporary shelf
y = ax + b (Formula 1)
また、仮棚ライン推定部107は、仮棚ラインを、次の式2のような直線式から求めてもよい。図10に示すように、式2におけるパラメータθ及びrは、x軸に対する角度θと原点からの距離rである。式1の場合、直線によってはパラメータaが無限大となる場合があるのに対し、式2では、どのような直線でも有限のパラメータθ及びrによりラインを特定できる。
r=xcosθ+ysinθ ・・・(式2)
Further, the temporary shelf
r = x cos θ + ysin θ (Expression 2)
図10に示すように、商品検出領域302の右下端及び左下端を通る直線を仮棚ライン401とする。仮棚ライン推定部107は、商品検出領域302の右下端及び左下端の座標を式2に代入し、仮棚ラインを示す直線式を求める。なお、仮棚ライン推定部107は、右下端と左下端の平均から直線式を求めてもよい。
As shown in FIG. 10, a straight line passing through the lower right end and the lower left end of the
図11は、図5で検出した商品検出領域302から仮棚ライン401を求めた例である。仮棚ライン推定部107は、各商品検出領域302について、それぞれ右下端及び左下端を通る直線を仮棚ライン401とする。この例では、仮棚ライン推定部107は、商品検出領域302a〜302fについて、それぞれ右下端及び左下端の座標から直線式を求め、仮棚ライン401a〜401fを特定する。
FIG. 11 shows an example in which the
続いて、棚特定部104は、仮棚ラインの投票を行う(S108)。棚特定部104は、複数の仮棚ライン401に基づいて、棚201のラインを特定するため、仮棚ライン401のパラメータを投票空間に投票する。
Subsequently, the
図12は、図11で特定した仮棚ライン401を投票する投票空間の例である。この例では、上記の式2により仮棚ラインを特定しているため、棚特定部104は、仮棚ラインのパラメータθ及びrを横軸及び縦軸とする投票空間に投票する。投票空間は、θ及びrが一定間隔の投票値で区切られており、棚特定部104は、仮棚ライン401a〜401fのパラメータθ及びrを該当する投票値に投票する。
FIG. 12 is an example of a voting space for voting the
例えば、仮棚ライン401a及び401bのパラメータθはθ1に最も近く、パラメータrはr1に最も近いため、棚特定部104は、θ1及びr1の投票値に投票する。同様に、棚特定部104は、仮棚ライン401c及び401dのパラメータθ及びrに最も近いθ1及びr2の投票値に投票し、仮棚ライン401e及び401fのパラメータθ及びrに最も近いθ1及びr3の投票値に投票する。
For example, since the parameter θ of the
なお、棚特定部104は、パラメータに重みをつけて投票してもよい。例えば、棚特定部104は、直線式のパラメータが近い方の投票値に大きい重みをつけて投票してもよい。また、棚特定部104は、パラメータr及びθを同時に投票してもよいし、パラメータr及びθを別々に独立して投票してもよい。例えば、棚の方向は平行でるためθは近いものと推定されるため、棚特定部104は、まずθのみを投票し、θを決定した後で、rを投票してもよい。
Note that the
続いて、棚特定部104は、棚ラインを検出する(S109)。棚特定部104は、仮棚ラインの投票結果に基づいて棚ラインを検出する。棚特定部104は、投票の結果が多いパラメータのラインを棚ラインとする。例えば、棚特定部104は、投票した結果が閾値より大きいライン、もしくは、閾値よりも大きくかつ周辺で最も大きいラインを検出する。また、棚特定部104は、投票した結果が大きい順に、棚のラインを検出してもよい。
Subsequently, the
図12の例では、θ1及びr1(投票値)に仮棚ライン401a及び401bのパラメータが投票され、θ1及びr2に仮棚ライン401c及び401dのパラメータが投票され、θ1及びr3に仮棚ライン401e及び401fのパラメータが投票されている。このため、棚特定部104は、θ1及びr1、θ1及びr2、θ1及びr3を、それぞれ棚ラインのパラメータとする。
In the example of FIG. 12, the parameters of the
図13は、図12の投票結果から検出した棚ラインを示している。棚ライン402aは、仮棚ライン401a及び401bのパラメータから特定されたθ1及びr1(投票値)のラインであり、棚ライン402bは、仮棚ライン401c及び401dのパラメータから特定されたθ1及びr2のラインであり、棚ライン402cは、仮棚ライン401e及び401fのパラメータから特定されたθ1及びr3のラインである。
FIG. 13 shows a shelf line detected from the voting result of FIG. The
続いて、商品位置検出部105は、商品の位置を検出する(S106)。商品位置検出部105は、特定した棚ラインに対する商品の位置を検出する。商品位置検出部105は、棚ラインに対する位置から、何段目の棚の何番目にどのような商品があるか検出する。
Subsequently, the product
図13の例では、商品位置検出部105は、図12の投票結果の関係から、棚ライン402aには仮棚ライン401a及び401bが配置され、棚ライン402bには仮棚ライン401c及び401dが配置され、棚ライン402cには仮棚ライン401e及び401fが配置されていることがわかる。この関係に基づいて、商品検出領域302のX座標の順に棚の上の位置及び商品を検出する。
In the example of FIG. 13, the product
この例では、商品位置検出部105は、上から1段目の棚(棚ライン402a)には、左から1番目(商品検出領域302a)にお茶が配置され、2番目(商品検出領域302b)に水が配置され、上から2段目の棚(棚ライン402b)には、左から1番目(商品検出領域302c)にコーヒーが配置され、2番目(商品検出領域302d)にジュースが配置され、上から3段目の棚(棚ライン402c)には、左から1番目(商品検出領域302e)に牛乳が配置され、2番目(商品検出領域302f)にヨーグルトが配置されていることを検出する。
In this example, the product
以上のように、本実施の形態では、取得した画像から商品を認識し、認識した商品の配置方向に基づいて棚を検出し、さらに商品の棚上の位置を検出する。これにより、予め棚を認識するための情報やその情報に基づく処理が不要であるため、簡易に、商品を区切る領域である棚を検出するとともに、商品の棚上の位置を検出することができる。 As described above, in the present embodiment, the product is recognized from the acquired image, the shelf is detected based on the recognized arrangement direction of the product, and the position of the product on the shelf is further detected. Thereby, since information for recognizing the shelf in advance and processing based on the information are not necessary, it is possible to easily detect a shelf that is an area that divides the product and to detect the position of the product on the shelf. .
(その他の実施の形態)
上記実施の形態では、棚の上に横方向に並べた商品の位置を検出したが、商品を上下に積み上げた場合や商品を吊り下げている場合など縦方向の位置を検出してもよい。すなわち、商品の右端または左端に基づいて縦方向に商品の配置を区切る領域(ライン含む)を特定し、縦方向の商品の配置位置を検出してもよい。
(Other embodiments)
In the above embodiment, the positions of the products arranged in the horizontal direction on the shelf are detected. However, the positions in the vertical direction may be detected, for example, when the products are stacked up and down or when the products are suspended. That is, an area (including a line) that divides the product arrangement in the vertical direction may be specified based on the right end or the left end of the product, and the arrangement position of the product in the vertical direction may be detected.
また、商品の右端または左端に基づいて棚の端部を特定してもよい。一番右側に配置された商品の右端を棚の右端とし、一番左側に配置された商品の左端を棚の左端とする。例えば、全ての棚のうち最も左側の左端を横方向のスロットの1番目として、他の棚の位置を検出してもよい。 Moreover, you may identify the edge part of a shelf based on the right end or left end of goods. The right end of the product placed on the rightmost side is the right end of the shelf, and the left end of the product placed on the leftmost side is the left end of the shelf. For example, the position of another shelf may be detected by setting the leftmost left end of all the shelves as the first slot in the horizontal direction.
また、図14に示すように、実施の形態1または2の構成に加えて、ゴンドラ什器を検出するゴンドラ検出部108を備えていてもよい。ゴンドラ検出部108は、検出した配置ラインに基づいて、ゴンドラの端部を検出する。例えば、ゴンドラ検出部108は、商品の右端または左端に基づいてゴンドラ什器の端部を特定してもよい。全ての棚のうち一番右側に配置された商品の右端をゴンドラ什器の右端とし、全ての棚のうち一番左側に配置された商品の左端をゴンドラ什器の左端とする。これにより、画像内のゴンドラ什器を複数のゴンドラ什器に分離し、ゴンドラ什器ごとの商品の位置を検出してもよい。すなわち、どのゴンドラ什器のどの棚のどこにどのような商品が配置されているか検出する。
Moreover, as shown in FIG. 14, in addition to the structure of
通常、同じ棚には同じ商品を並べて配置することが多いため、商品の配置に加えて商品の種類を考慮して商品の位置を検出してもよい。例えば、商品の種類ごとに区切ることで、棚やゴンドラ什器の端部を検出してもよい。また、実施の形態2で同じ種類のラインに投票する場合には重みづけを大きくしてもよい。 Usually, since the same product is often arranged side by side on the same shelf, the position of the product may be detected in consideration of the type of product in addition to the product arrangement. For example, the ends of shelves and gondola fixtures may be detected by dividing each product type. Further, when voting on the same type of line in the second embodiment, the weight may be increased.
また、商品が積み上げられて上下に商品が接している(近い)場合、接している部分のライン(領域)は棚ではないと判定してもよい。例えば、閾値以上離れている部分のライン(領域)を棚と判定してもよい。また、上下の商品が近く、かつ、種類も同じ場合、商品が積み上げられていると判定してもよい。 Further, when the products are stacked and the products are in contact with each other up and down (close), it may be determined that the line (area) of the contacting portion is not a shelf. For example, a line (area) in a part that is more than a threshold may be determined as a shelf. Further, when the upper and lower products are close and the same type, it may be determined that the products are stacked.
上記実施の形態では、棚に配置された商品の位置を検出したが、棚や商品に限らず、倉庫に並べられた部品の位置、駐車場に並んで駐車された車の位置、列に並んでいる人の位置などを検出してもよい。
上記実施の形態では、商品などの物体の配置を区切る領域を検出したが、区切る領域には、実施の形態1のような所定の形状の領域(棚領域)や、実施の形態2のような直線状のライン(棚ライン)が含まれる。また、区切る領域の形状は、実施の形態1のような四角形に限らず任意の形状であってもよい。
In the above embodiment, the position of the product arranged on the shelf is detected, but not limited to the shelf or the product, the position of the parts arranged in the warehouse, the position of the car parked side by side in the parking lot, and the line You may detect the position of the person who is out.
In the embodiment described above, an area that divides the arrangement of an object such as a product is detected. However, the area to be divided is a predetermined shape area (shelf area) as in the first embodiment, or as in the second embodiment. A straight line (shelf line) is included. Further, the shape of the area to be divided is not limited to the quadrangle as in the first embodiment, and may be any shape.
なお、本発明は上記実施の形態に限られたものではなく、趣旨を逸脱しない範囲で適宜変更することが可能である。 Note that the present invention is not limited to the above-described embodiment, and can be changed as appropriate without departing from the spirit of the present invention.
1 画像取得部
2 物体認識部
3 区切り検出部
100 商品検出装置
101 画像取得部
102 商品認識部
103 棚段数取得部
104 棚特定部
105 商品位置検出部
106 商品情報データベース
107 仮棚ライン推定部
108 ゴンドラ検出部
200 ゴンドラ什器
201 棚
202 商品
210 カメラ
300 ゴンドラ什器画像
301 棚領域
302 商品検出領域
401 仮棚ライン
402 棚ライン
DESCRIPTION OF
Claims (21)
前記入力画像に含まれる棚に配置されている前記物体を認識する物体認識部と、
前記認識された物体の前記入力画像中の配置関係に基づいて、前記物体が配置されている前記棚の領域を検出する区切り検出部と、
を備える検出装置。 An image acquisition unit for acquiring an input image obtained by imaging an object;
An object recognition unit for recognizing the object arranged on a shelf included in the input image;
Based on the arrangement relationship of the recognized object in the input image, a delimiter detection unit that detects an area of the shelf in which the object is arranged ;
A detection device comprising:
請求項1に記載の検出装置。 The arrangement relationship is a relationship of an arrangement position or an arrangement direction of the recognized object .
The detection device according to claim 1.
前記区切り検出部は、前記認識された複数の物体の前記入力画像中の配置位置の差分に基づいて、前記棚の領域を検出する、
請求項1に記載の検出装置。 The object recognition unit recognizes a plurality of the objects included in the input image;
The delimiter detection unit detects an area of the shelf based on a difference between arrangement positions of the recognized plurality of objects in the input image;
The detection device according to claim 1.
請求項3に記載の検出装置。 The delimiter detection unit determines that an area where the difference between the arrangement positions of the plurality of objects is larger than a threshold is an area of the shelf .
The detection device according to claim 3 .
請求項3に記載の検出装置。 The delimiter detection unit detects the shelf region in descending order of the difference between the arrangement positions of the plurality of objects.
The detection device according to claim 3 .
請求項3乃至5のいずれか一項に記載の検出装置。 The delimiter detection unit detects the shelf area according to the input shelf number .
The detection device according to any one of claims 3 to 5 .
前記検出する棚の領域は、前記物体の上端より上、または前記物体の下端より下の領域である、
請求項3乃至6のいずれか一項に記載の検出装置。 The difference between the arrangement positions of the plurality of objects is a difference between the arrangement positions of the upper end or the lower end of each of the objects,
The area of the shelf to be detected is an area above the upper end of the object or below the lower end of the object.
The detection device according to any one of claims 3 to 6 .
前記検出する棚の領域は、前記物体の右端より右、または前記物体の左端より左の領域である、
請求項3乃至6のいずれか一項に記載の検出装置。 The difference between the arrangement positions of the plurality of objects is a difference between the arrangement positions of the right end or the left end of each of the objects,
The area of the shelf to be detected is an area on the right from the right end of the object or on the left from the left end of the object
The detection device according to any one of claims 3 to 6 .
請求項1に記載の検出装置。 The separation detection unit detects an area of the shelf based on an object line along an arrangement direction of the recognized object in the input image;
The detection device according to claim 1.
前記区切り検出部は、前記認識された複数の物体の前記物体ラインのパラメータを投票空間に投票した投票結果に基づいて、前記棚の領域を検出する、
請求項9に記載の検出装置。 The object recognition unit recognizes a plurality of the objects included in the input image;
The delimiter detection unit detects a region of the shelf based on a voting result obtained by voting a parameter of the object line of the plurality of recognized objects in a voting space;
The detection device according to claim 9 .
請求項10に記載の検出装置。 The delimiter detection unit determines that the corresponding parameter is a parameter of the shelf area when the number of votes in the voting space is larger than a threshold value,
The detection device according to claim 10 .
請求項11に記載の検出装置。 The delimiter detection unit determines that the corresponding parameter is a parameter of the shelf area corresponding to the voting space in descending order of votes.
The detection device according to claim 11 .
請求項9乃至12のいずれか一項に記載の検出装置。 The object line is a line passing through an upper end, a lower end, a right end or a left end of the recognized object.
The detection device according to any one of claims 9 to 12 .
請求項1乃至13のいずれか一項に記載の検出装置。 An object position detecting unit for detecting the position of the object with respect to the detected shelf area;
The detection device according to any one of claims 1 to 13 .
請求項14に記載の検出装置。 Before Symbol object position detector detects the position on the shelf of the object,
The detection device according to claim 14 .
請求項15に記載の検出装置。 A gondola detection unit for detecting an end of the gondola including the shelf based on the position of the detected object on the shelf;
The detection device according to claim 15 .
請求項1乃至14のいずれか一項に記載の検出装置。 Based on the area before Symbol detected shelves, comprising a gondola detector for detecting the end of the gondola with the shelf,
The detection device according to any one of claims 1 to 14 .
請求項1乃至17のいずれか一項に記載の検出装置。 The delimiter detection unit detects the shelf area based on the recognized object type;
The detection device according to any one of claims 1 to 17 .
請求項1乃至18のいずれか一項に記載の検出装置。 The detection device according to any one of claims 1 to 18.
前記入力画像に含まれる棚に配置されている前記物体を認識し、
前記認識された物体の前記入力画像中の配置関係に基づいて、前記物体が配置されている前記棚の領域を検出する、
検出方法。 Obtain an input image that captures the object,
Recognizing the object placed on a shelf included in the input image;
Detecting an area of the shelf on which the object is arranged based on an arrangement relationship in the input image of the recognized object;
Detection method.
前記入力画像に含まれる棚に配置されている前記物体を認識し、
前記認識された物体の前記入力画像中の配置関係に基づいて、前記物体が配置されている前記棚の領域を検出する、
検出処理をコンピュータに実行させるための検出プログラム。 Input an input image that captures the object,
Recognizing the object placed on a shelf included in the input image;
Detecting an area of the shelf on which the object is arranged based on an arrangement relationship in the input image of the recognized object;
A detection program for causing a computer to execute detection processing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013110818A JP6160243B2 (en) | 2013-05-27 | 2013-05-27 | Detection apparatus, detection method, and detection program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013110818A JP6160243B2 (en) | 2013-05-27 | 2013-05-27 | Detection apparatus, detection method, and detection program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2014229246A JP2014229246A (en) | 2014-12-08 |
JP6160243B2 true JP6160243B2 (en) | 2017-07-12 |
Family
ID=52128994
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013110818A Active JP6160243B2 (en) | 2013-05-27 | 2013-05-27 | Detection apparatus, detection method, and detection program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6160243B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10885493B2 (en) * | 2015-05-16 | 2021-01-05 | Tata Consultancy Services Limited | Method and system for planogram compliance check based on visual analysis |
JP6623565B2 (en) * | 2015-06-03 | 2019-12-25 | 日本電気株式会社 | Shelf allocation information generation device, shelf allocation information generation system, shelf allocation information generation method, imaging device, and program |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4473676B2 (en) * | 2004-08-18 | 2010-06-02 | 株式会社野村総合研究所 | Face-up degree evaluation system and evaluation program |
JP2009187482A (en) * | 2008-02-08 | 2009-08-20 | Nippon Sogo System Kk | Shelf allocation reproducing method, shelf allocation reproduction program, shelf allocation evaluating method, shelf allocation evaluation program, and recording medium |
JP2009265998A (en) * | 2008-04-25 | 2009-11-12 | Lambda Systems Inc | Image processing system, image processing method, and image processing program |
-
2013
- 2013-05-27 JP JP2013110818A patent/JP6160243B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2014229246A (en) | 2014-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7472945B2 (en) | Display status analysis system, display status analysis method, and program | |
JP6172380B2 (en) | POS terminal device, POS system, product recognition method and program | |
US9697429B2 (en) | Method and apparatus for image processing to avoid counting shelf edge promotional labels when counting product labels | |
EP3118813B1 (en) | Image recognition device, image sensor, and image recognition method | |
US20190073775A1 (en) | Multi-sensor object recognition system and method | |
EP3563345B1 (en) | Automatic detection, counting, and measurement of lumber boards using a handheld device | |
US10063843B2 (en) | Image processing apparatus and image processing method for estimating three-dimensional position of object in image | |
WO2016063484A1 (en) | Image processing apparatus, display control apparatus, image processing method and recording medium | |
JP5937469B2 (en) | Object recognition apparatus, object recognition method, and object recognition program | |
JP2016119059A5 (en) | ||
JP6160243B2 (en) | Detection apparatus, detection method, and detection program | |
US20150347855A1 (en) | Clothing Stripe Detection Based on Line Segment Orientation | |
JP2015045919A (en) | Image recognition method and robot | |
US9418286B2 (en) | Information processing device, information processing method, and program | |
JP6815793B2 (en) | Rectangular area detection method, rectangular area detection device and program | |
JP2013117896A (en) | Person detection device, person detection method and person detection program | |
JP2016045743A (en) | Information processing apparatus and program | |
JP2015069452A (en) | Mobile information management method, mobile information management device, and program | |
JP5509441B1 (en) | Corresponding point detection device and corresponding point detection method | |
JP2024086770A (en) | Display status analysis system, display status analysis method, and program | |
US11417025B2 (en) | Information processing apparatus, article identification apparatus, and article identification system | |
JP2016224884A (en) | Information processing apparatus and program | |
JP2013182428A (en) | Image identification method, image identification device, and image identification program | |
GB2530935A (en) | Method and apparatus for image processing to avoid counting shelf edge promotional labels when counting product labels |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160408 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170214 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170412 |
|
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: 20170516 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170529 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6160243 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |