JP2022040557A - Information processing device, information processing system, information processing program, and information processing method - Google Patents

Information processing device, information processing system, information processing program, and information processing method Download PDF

Info

Publication number
JP2022040557A
JP2022040557A JP2020145325A JP2020145325A JP2022040557A JP 2022040557 A JP2022040557 A JP 2022040557A JP 2020145325 A JP2020145325 A JP 2020145325A JP 2020145325 A JP2020145325 A JP 2020145325A JP 2022040557 A JP2022040557 A JP 2022040557A
Authority
JP
Japan
Prior art keywords
product
focal position
area
information
unit
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.)
Pending
Application number
JP2020145325A
Other languages
Japanese (ja)
Inventor
典史 片渕
Norifumi Katabuchi
尚史 柳原
Takashi Yanagihara
勝弘 宮▲崎▼
Katsuhiro Miyazaki
富茂 田口
Tomishige Taguchi
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.)
Retail AI Inc.
Original Assignee
Retail AI Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Retail AI Inc. filed Critical Retail AI Inc.
Priority to JP2020145325A priority Critical patent/JP2022040557A/en
Publication of JP2022040557A publication Critical patent/JP2022040557A/en
Pending legal-status Critical Current

Links

Images

Abstract

To provide an information processing device in which accuracy of merchandise management is improved.SOLUTION: An information processing device includes: a storage unit 22 which stores a plurality of focus position patterns for specifying combinations of individual areas in which focus positions are set among a plurality of individual areas; an acquisition unit 231 which acquires a photographed image as a reference image obtained by photographing a merchandise shelf; an information specifying unit 237 which specifies merchandise information corresponding to a merchandise code on the basis of a plurality of focus change images; and a photographing device control unit. The photographing device control unit is composed of an area specifying unit 232 which specifies an area of the merchandise shelf, a detection unit 233 which detects a plurality of specific areas, a selection unit 234 which selects one focus position pattern as a selection pattern according to a detection result of the detection unit, a focus position setting unit 235 which sets a focus position for each of the plurality of individual areas contained in the selection pattern on the basis of the specific areas, and a signal generation unit 236 which generates a control signal for allowing a photographing device to photograph a plurality of focus change images in which respective focus positions are focused.SELECTED DRAWING: Figure 5

Description

本発明は、情報処理装置と、情報処理システムと、情報処理プログラムと、情報処理方法と、に関する。 The present invention relates to an information processing apparatus, an information processing system, an information processing program, and an information processing method.

スーパーマーケットやコンビニエンスストア(コンビニ)などの売場において、陳列された商品が不足(欠品)していると、商品の販売機会が失われ、売場の売上げが減少する。そのため、売場の店員は、定期的に商品を監視して、商品が不足している場合、不足している商品を補充して商品の不足を解消する作業を速やかに行わなければならない。 If there is a shortage (out of stock) of displayed products in sales floors such as supermarkets and convenience stores (convenience stores), sales opportunities for the products will be lost and sales in the sales floor will decrease. Therefore, the clerk at the sales floor must regularly monitor the products, and if the products are in short supply, promptly perform the work of replenishing the shortage of products and eliminating the shortage of products.

また、同売場において商品棚へ商品を陳列する際、商品棚への商品の割り当て(棚割)は、商品の売上げを左右する重要な要素である。そのため、売場における棚割の作成や、棚割通りに商品が陳列されているか否かの監視、売上げや季節に応じた棚割の変更などの棚割の管理は、売場においてしばしば実行されている。 In addition, when displaying products on the product shelves at the same sales floor, the allocation of products to the product shelves (shelf allocation) is an important factor that influences the sales of the products. Therefore, shelving allocation management such as creating shelf allocations at the sales floor, monitoring whether products are displayed according to the shelving allocation, and changing the shelving allocation according to sales and seasons is often performed at the sales floor. ..

このような商品の欠品や商品の棚割などの商品管理において、商品が陳列された商品棚を撮像した撮像画像を用いて、商品を管理する技術が提案されている(例えば、特許文献1参照)。 In product management such as product shortages and product shelving allocation, a technique for managing products using an image taken from an image of a product shelf on which products are displayed has been proposed (for example, Patent Document 1). reference).

特許文献1に開示された技術は、値札(商品タグ)が付された商品棚を撮像した撮像画像に基づいて、商品棚に陳列されている商品の商品識別情報と、値札の商品識別情報と、を取得し、両商品識別情報を比較することにより、商品の陳列状況(例えば、商品が陳列中か、欠品か、などの状況)を判定する。その結果、同技術は、商品棚に陳列されている商品の陳列状況を精度よく判定できる。 The technology disclosed in Patent Document 1 includes product identification information of products displayed on the product shelf and product identification information of the price tag based on an image taken by imaging a product shelf with a price tag (product tag). , And compare the two product identification information to determine the display status of the product (for example, whether the product is on display or out of stock). As a result, the technology can accurately determine the display status of the products displayed on the product shelves.

しかしながら、同技術は、撮像画像に全ての商品と値札とが商品識別情報を取得可能な状態で撮像されていることを前提としている。そのため、撮像画像において、一部の商品の値札が検出できないとき、同技術は、誤った棚割情報および/または欠品情報を生成する。すなわち、同技術は、不正確な棚割情報および/または欠品情報を生成し得る。その結果、同技術を用いた商品管理は、正確性に欠ける場合が有る。 However, the technique presupposes that all the products and the price tag are captured in the captured image in a state where the product identification information can be acquired. Therefore, when the price tag of some products cannot be detected in the captured image, the technique generates erroneous shelving allocation information and / or out-of-stock information. That is, the technique can generate inaccurate shelving allocation information and / or out-of-stock information. As a result, product management using this technology may lack accuracy.

また、一般的な撮像装置で撮像された撮像画像の焦点は撮像画像の外縁部に近づくほどずれ易く、同外縁部の画像は不鮮明で低コントラストになり易い。さらに、商品棚では、商品のフェイス面が商品棚の棚板(プライスレール)の正面に合わせて配置される。そのため、商品棚の正面は、一様なテクスチャとなり易い。その結果、オートフォーカス機能による焦点合わせ(合焦)が用いられたとしても、撮像画像の全ての領域における商品と商品タグへの合焦は、困難である。 Further, the focal point of the captured image captured by a general image pickup device tends to shift as it approaches the outer edge portion of the captured image, and the image at the outer edge portion tends to be unclear and have low contrast. Further, in the product shelf, the face surface of the product is arranged so as to be aligned with the front of the shelf board (price rail) of the product shelf. Therefore, the front surface of the product shelf tends to have a uniform texture. As a result, even if focusing (focusing) by the autofocus function is used, it is difficult to focus on the product and the product tag in all areas of the captured image.

このように、商品棚を撮像した撮像画像において、全ての値札が識別可能な状態で撮像されている可能性は極めて少ない。そのため、撮像画像に撮像された値札の認識精度を向上させた正確性の高い商品管理の技術が望まれている。 As described above, in the captured image of the product shelf, it is extremely unlikely that all the price tags are captured in an identifiable state. Therefore, a highly accurate product management technique that improves the recognition accuracy of the price tag captured in the captured image is desired.

特開2019-185684号公報Japanese Unexamined Patent Publication No. 2019-185648

本発明は、商品管理の正確性を向上可能な情報処理装置と情報処理システムと情報処理プログラムと情報処理方法とを提供することを目的とする。 An object of the present invention is to provide an information processing apparatus, an information processing system, an information processing program, and an information processing method capable of improving the accuracy of product management.

本発明に係る情報処理装置は、商品が陳列される商品棚を撮像する撮像装置が撮像した複数の撮像画像に基づいて、商品の商品情報を特定する情報処理装置であって、商品棚には、商品の商品情報に対応する商品コードを表示する表示札が付され、撮像画像に撮像された商品棚の領域は、複数の個別領域、を含み、複数の撮像画像は、焦点位置の異なる複数の焦点変更画像、を含み、複数の個別領域のうち、焦点位置が設定される個別領域の組み合わせを特定する焦点位置パターンを複数記憶する記憶部と、撮像装置が商品棚を撮像した撮像画像を基準画像として取得する取得部と、撮像装置の動作を制御する撮像装置制御部と、制御信号に基づいて動作が制御された撮像装置により撮像された複数の焦点変更画像に基づいて、商品コードに対応する商品情報を特定する情報特定部と、を有してなり、撮像装置制御部は、基準画像に撮像された商品棚の領域を特定する領域特定部と、商品棚の領域に撮像されている商品コードを含む複数の特定領域を検出する検出部と、記憶部に記憶されている複数の焦点位置パターンのうち、検出部の検出結果に応じた1の焦点位置パターンを、選択パターンとして選択する選択部と、検出部により検出された特定領域に基づいて、選択パターンに含まれる複数の個別領域ごとに、焦点位置を設定する焦点位置設定部と、複数の焦点位置それぞれに焦点を合わせた複数の焦点変更画像を、撮像装置に撮像させる制御信号を生成する信号生成部と、を備えることを特徴とする。 The information processing device according to the present invention is an information processing device that specifies product information of a product based on a plurality of captured images captured by an image pickup device that captures an image of the product shelf on which the product is displayed. , A display tag displaying the product code corresponding to the product information of the product is attached, and the area of the product shelf captured in the captured image includes a plurality of individual areas, and the plurality of captured images have a plurality of different focal positions. A storage unit that stores a plurality of focus position patterns that specify a combination of individual areas in which a focus position is set, and an image captured by an image pickup device that captures a product shelf, including a focus change image of the above. The product code is based on a plurality of focus change images captured by an acquisition unit acquired as a reference image, an image pickup device control unit that controls the operation of the image pickup device, and an image pickup device whose operation is controlled based on a control signal. It has an information specifying unit that specifies the corresponding product information, and the image pickup device control unit is imaged in the area specifying unit that specifies the area of the product shelf captured in the reference image and the area of the product shelf. Among the detection unit that detects a plurality of specific areas including the product code and the plurality of focal position patterns stored in the storage unit, one focal position pattern according to the detection result of the detection unit is selected as the selection pattern. Based on the selection unit to be selected and the specific area detected by the detection unit, the focus position setting unit that sets the focus position for each of the plurality of individual regions included in the selection pattern and the focus positions are focused on each of the plurality of focus positions. It is characterized by including a signal generation unit for generating a control signal for causing an image pickup apparatus to capture a plurality of focus change images.

本発明によれば、商品管理の正確性を向上することができる。 According to the present invention, the accuracy of product management can be improved.

本発明に係る情報処理システムの実施の形態を示すネットワーク構成図である。It is a network block diagram which shows the embodiment of the information processing system which concerns on this invention. 図1の情報処理システムが備える撮像装置の機能ブロック図である。It is a functional block diagram of the image pickup apparatus provided in the information processing system of FIG. 図2の撮像装置により撮像された撮像画像の例を示す模式図である。It is a schematic diagram which shows the example of the image captured by the image pickup apparatus of FIG. 図3の撮像画像に撮像される表示札の表示例を示す模式図である。It is a schematic diagram which shows the display example of the display tag which is imaged in the captured image of FIG. 本発明に係る情報処理装置の実施の形態を示す機能ブロック図である。It is a functional block diagram which shows the embodiment of the information processing apparatus which concerns on this invention. 本発明に係る情報処理方法の実施の形態を示すフローチャートである。It is a flowchart which shows the embodiment of the information processing method which concerns on this invention. 図6の情報処理方法に含まれる判定処理のフローチャートである。It is a flowchart of the determination process included in the information processing method of FIG. 図7の判定処理に含まれる商品棚領域を特定する処理の後の基準画像の例を示す模式図である。It is a schematic diagram which shows the example of the reference image after the process of specifying the product shelf area included in the determination process of FIG. 7. 図7の判定処理に含まれる表示札を検出する処理の後の基準画像の例を示す模式図である。It is a schematic diagram which shows the example of the reference image after the process of detecting the display tag included in the determination process of FIG. 7. 図7の判定処理に含まれる表示札領域を検出する処理の後の基準画像の例を示す模式図である。It is a schematic diagram which shows the example of the reference image after the process of detecting the display tag area included in the determination process of FIG. 7. 図7の判定処理に含まれる商品コードの組を検出する処理の後の基準画像の例を示す模式図である。It is a schematic diagram which shows the example of the reference image after the process which detects the set of the product code included in the determination process of FIG. 7. 図6の情報処理方法に含まれる制御信号生成処理のフローチャートである。It is a flowchart of the control signal generation processing included in the information processing method of FIG. 図12の制御信号生成処理で選択される焦点位置パターンの例を示す模式図である。It is a schematic diagram which shows the example of the focal position pattern selected in the control signal generation processing of FIG. 図12の制御信号生成処理に含まれる選択パターンを選択する処理の後の基準画像の例を示す模式図である。It is a schematic diagram which shows the example of the reference image after the process of selecting the selection pattern included in the control signal generation process of FIG. 図12の制御信号生成処理に含まれる第1焦点位置設定処理のフローチャートである。It is a flowchart of the 1st focus position setting process included in the control signal generation process of FIG. 図12の制御信号生成処理に含まれる第2焦点位置設定処理のフローチャートである。It is a flowchart of the 2nd focal point position setting process included in the control signal generation process of FIG. 図12の制御信号生成処理に含まれる第3焦点位置設定処理のフローチャートである。It is a flowchart of the 3rd focal point position setting process included in the control signal generation process of FIG. 図6の情報処理方法に含まれる焦点変更画像撮像処理のフローチャートである。It is a flowchart of the focus change image imaging process included in the information processing method of FIG. 図6の情報処理方法に含まれる商品情報統合処理のフローチャートである。It is a flowchart of the product information integration processing included in the information processing method of FIG.

本発明に係る情報処理装置と情報処理システムと情報処理プログラムと情報処理方法との実施の形態は、以下の実施の形態と図面とにより説明される。 An embodiment of the information processing apparatus, the information processing system, the information processing program, and the information processing method according to the present invention will be described with reference to the following embodiments and drawings.

●情報処理システム●
本発明に係る情報処理システム(以下「本システム」という。)は、商品が陳列された商品棚が撮像された撮像画像に基づいて、商品の商品情報を特定する。具体的には、本システムは、撮像画像に基づいて、焦点位置パターンを選択し、選択された焦点位置パターンに対応する焦点位置を設定し、撮像装置の動作を制御して、複数の焦点変更画像を取得する。本システムは、焦点変更画像に基づいて、商品棚に付された商品コードに対応する商品情報を特定する。
● Information processing system ●
The information processing system according to the present invention (hereinafter referred to as "the present system") specifies the product information of the product based on the captured image of the product shelf on which the product is displayed. Specifically, the system selects a focal position pattern based on the captured image, sets the focal position corresponding to the selected focal position pattern, controls the operation of the image pickup device, and changes a plurality of focal points. Get an image. This system identifies the product information corresponding to the product code attached to the product shelf based on the focus change image.

「商品」は、閉空間内に陳列され、客に購入される物品である。商品は、閉空間内に設置される商品棚に、商品の種類ごとに整列された(または、重ねられた)状態で陳列される。 A "commodity" is an item that is displayed in a closed space and purchased by a customer. The products are displayed in a state of being arranged (or stacked) according to the types of products on the product shelves installed in the closed space.

「閉空間」は、任意の範囲で区画される三次元的な空間であり、本システムが商品の商品情報を特定可能な空間である。閉空間は、物理的に区画される空間と、物理的に区画されない空間と、を含む。すなわち、例えば、閉空間は、スーパーマーケットやコンビニエンスストアなどの売場の内部空間、多数の売場が連なるショッピングモールや空港の免税店の各売場の内部空間、売場の屋外売場などの屋外の空間、を含む。 The "closed space" is a three-dimensional space partitioned by an arbitrary range, and is a space in which the product information of the product can be specified by this system. The closed space includes a space that is physically partitioned and a space that is not physically partitioned. That is, for example, a closed space includes an internal space of a sales floor such as a supermarket or a convenience store, an internal space of each sales floor of a shopping mall or an airport duty-free shop where many sales floors are connected, and an outdoor space such as an outdoor sales floor of a sales floor. ..

「商品棚」は、商品が陳列される陳列スペースを有し、売場に設置される物体である。商品棚には、後述される表示札が付され、表示札に対応する商品が陳列される。商品棚は、水平の棚板の上に商品を陳列する陳列棚や、天板の上に商品を陳列する陳列台、天板の上で作業をするための作業棚(作業台)、段ボールなどの容器で構成される簡易棚、多段型や平型の冷蔵・冷凍ショーケース、などを含む。商品棚は、土台や支柱、天板、背板などから構成される外枠と、外枠に囲まれた領域に配置される棚板と、を備える。 A "product shelf" is an object that has a display space for displaying products and is installed in a sales floor. A display tag, which will be described later, is attached to the product shelf, and products corresponding to the display tag are displayed. Product shelves include display shelves that display products on horizontal shelves, display shelves that display products on top plates, work shelves (work tables) for working on top plates, cardboard, etc. Includes simple shelves, multi-tiered and flat refrigerated / frozen showcases, etc. The product shelf includes an outer frame composed of a base, a support, a top plate, a back plate, and the like, and a shelf plate arranged in an area surrounded by the outer frame.

「撮像画像」は、商品棚と、商品棚に陳列された商品と、商品に対応する表示札と、が撮像された画像情報である。すなわち、撮像画像は、商品棚の領域を含む。 The "captured image" is image information obtained by capturing a product shelf, a product displayed on the product shelf, and a display tag corresponding to the product. That is, the captured image includes the area of the product shelf.

「商品棚の領域」は、撮像画像に含まれる全ての領域のうち、1つまたは1群の商品棚により占められる領域(商品棚の外枠や棚板で囲まれた領域)である。商品棚の領域(以下「商品棚領域」という。)は、複数の個別領域を含む。 The “product shelf area” is an area occupied by one or a group of product shelves (area surrounded by an outer frame or a shelf board of the product shelf) among all the areas included in the captured image. The product shelf area (hereinafter referred to as “product shelf area”) includes a plurality of individual areas.

「個別領域」は、商品棚領域を複数の小領域に分割したとき、それぞれの小領域が占める領域である。個別領域は、少なくとも商品棚領域の一部を含み、商品棚以外の領域(撮像画像に撮像された隣接する商品棚や、通路、天井・壁の領域)の一部を含み得る。各個別領域の大きさ(面積)は、同じでもよく、あるいは、異なってもよい。本実施の形態において、商品棚領域に含まれる個別領域の数は「9」である。 The "individual area" is an area occupied by each of the small areas when the product shelf area is divided into a plurality of small areas. The individual area includes at least a part of the product shelf area, and may include a part of the area other than the product shelf (adjacent product shelf captured in the captured image, aisle, ceiling / wall area). The size (area) of each individual area may be the same or different. In the present embodiment, the number of individual areas included in the product shelf area is "9".

「表示札」は、商品コードと、商品情報のうち、客が必要とする情報(以下「客用商品情報」という。)と、を表示する。表示札は、例えば、商品コードと客用商品情報とが印刷された紙製の値札である。表示札は、対応する商品の陳列範囲ごとに、商品棚の前面(例えば、棚板の前面、同前面に取り付けられるプライスレール、吊下げられた商品の上方、など値札が一般的に取り付けられる場所を含む)に配置される。すなわち、表示札は、商品棚に陳列される商品ごとに存在する。 The "display tag" displays the product code and the information required by the customer (hereinafter referred to as "customer product information") among the product information. The display tag is, for example, a paper price tag on which a product code and customer product information are printed. The display tag is the place where the price tag is generally attached, such as the front of the product shelf (for example, the front of the shelf board, the price rail attached to the front of the shelf, the upper part of the suspended product, etc.) for each display range of the corresponding product. Is placed in). That is, the display tag exists for each product displayed on the product shelf.

なお、表示札は、例えば、電子ペーパーや液晶ディスプレイ、有機EL(Electro-Luminescence)ディスプレイなどの情報表示媒体で構成される電子値札(電子棚札)でもよい。 The display tag may be, for example, an electronic price tag (electronic shelf tag) composed of an information display medium such as an electronic paper, a liquid crystal display, or an organic EL (Electro-Luminescence) display.

「商品コード」は、商品を識別するために、商品ごとに定められる一次元状または二次元状の識別子である。商品コードは、例えば、バーコードなどの一次元コードや、QRコード(登録商標)などの二次元コード、を含む。 The "product code" is a one-dimensional or two-dimensional identifier defined for each product in order to identify the product. The product code includes, for example, a one-dimensional code such as a bar code and a two-dimensional code such as a QR code (registered trademark).

「商品情報」は、例えば、商品の名称(商品名)、金額、製造メーカ名、大きさ(容量
)、重量、製造年月日、消費期限、などの商品ごとに定められる情報であり、JAN(Japanese Article Number)コードなどの商品識別コードを含む。
"Product information" is information defined for each product such as product name (product name), price, manufacturer name, size (capacity), weight, date of manufacture, expiration date, etc., and is JAN. (Japanese Article Number) Includes product identification code such as code.

「焦点位置パターン」は、複数の個別領域のうち、焦点位置が設定される個別領域の組み合わせを特定する情報である。焦点位置パターンは、複数の個別領域のうち、全ての個別領域の組み合わせと、一部の個別領域の組み合わせと、を含む。 The "focus position pattern" is information that identifies a combination of individual areas in which a focus position is set among a plurality of individual areas. The focal position pattern includes a combination of all individual regions and a combination of some individual regions among a plurality of individual regions.

「焦点位置」は、撮像装置の画角内において、焦点変更画像の撮像時に焦点が合わせられる位置である。焦点位置は、焦点位置パターンを構成する個別領域ごとに設定される。すなわち、焦点位置は、個別領域を構成する画素のうち、焦点変更画像の撮像時に焦点が合わせられる位置に対応する画素の座標に設定される。 The "focus position" is a position within the angle of view of the image pickup device that is focused when the focus change image is captured. The focal position is set for each individual region constituting the focal position pattern. That is, the focal position is set to the coordinates of the pixels constituting the individual region, which correspond to the positions to be focused at the time of capturing the focus change image.

「焦点変更画像」は、焦点位置が設定された焦点変更パターンに基づいて、個別領域ごとの焦点位置それぞれに焦点を合わせて撮像された撮像画像である。すなわち、撮像画像は、複数の焦点変更画像を含む。また、各焦点変更画像の焦点位置は、異なる。 The "focus change image" is an image taken by focusing on each focus position for each individual region based on the focus change pattern in which the focus position is set. That is, the captured image includes a plurality of focus change images. Also, the focal position of each focus change image is different.

●情報処理システムの構成
図1は、本システムの実施の形態を示すネットワーク構成図である。
● Configuration of Information Processing System FIG. 1 is a network configuration diagram showing an embodiment of this system.

本システム1は、複数の撮像装置10(1),・・・,10(n)(nは整数)と、情報処理装置20と、を有してなる。以下の説明において、複数の撮像装置10(1),・・・,10(n)は、各撮像装置10(1),・・・,10(n)を特に区別する場合を除き、「撮像装置10」と表記される。情報処理装置20は、本発明に係る情報処理装置(以下「本装置」という。)である。以下の説明において、情報処理装置20は、本装置20とも表記される。 The system 1 includes a plurality of image pickup devices 10 (1), ..., 10 (n) (n is an integer) and an information processing device 20. In the following description, the plurality of image pickup devices 10 (1), ..., 10 (n) are referred to as "imaging" unless the respective image pickup devices 10 (1), ..., 10 (n) are particularly distinguished. Notated as "device 10". The information processing apparatus 20 is an information processing apparatus according to the present invention (hereinafter referred to as “the present apparatus”). In the following description, the information processing apparatus 20 is also referred to as the present apparatus 20.

撮像装置10と本装置20とは、有線通信方式または無線通信方式を利用するネットワークN(通信回線)を介して、接続される。ネットワークNは、例えば、インターネット、移動体通信網、LAN(Local Area Network)、WAN(Wide Area Network)、Wi-Fi(登録商標)などの通信網である。 The image pickup apparatus 10 and the present apparatus 20 are connected via a network N (communication line) that uses a wired communication method or a wireless communication method. The network N is, for example, a communication network such as the Internet, a mobile communication network, a LAN (Local Area Network), a WAN (Wide Area Network), and a Wi-Fi (registered trademark).

●撮像装置の構成
図2は、撮像装置10の機能ブロック図である。
● Configuration of the image pickup device FIG. 2 is a functional block diagram of the image pickup device 10.

撮像装置10は、商品棚S(図3参照。以下同じ。)を撮像して撮像画像を生成する。撮像装置10は、例えば、売場内の商品棚Sの静止画を所定の時間間隔で撮像するカメラユニットである。各撮像装置10は、例えば、売場内において、対応する商品棚Sの前部(前面)の全体像と、同商品棚Sに陳列された商品と、が撮像可能な位置(例えば、売場の天井面や壁面)に配置される。本実施の形態において、撮像装置10は、焦点変更画像を撮像する場合を除き、焦点位置を画角の中心に合わせて撮像画像を撮像する。撮像装置10は、通信部11と、記憶部12と、制御部13と、撮像部14と、を備える。 The image pickup device 10 takes an image of the product shelf S (see FIG. 3; the same applies hereinafter) to generate an image. The image pickup device 10 is, for example, a camera unit that captures a still image of a product shelf S in a sales floor at predetermined time intervals. Each image pickup device 10 is, for example, in a position (for example, the ceiling of the sales floor) where the entire image of the front portion (front surface) of the corresponding product shelf S and the products displayed on the product shelf S can be imaged in the sales floor. It is placed on the surface or wall surface). In the present embodiment, the image pickup apparatus 10 captures the captured image by aligning the focal position with the center of the angle of view, except when capturing the focus change image. The image pickup apparatus 10 includes a communication unit 11, a storage unit 12, a control unit 13, and an image pickup unit 14.

「所定の時間間隔」は、撮像装置10が定期的に商品棚Sを撮像する時間間隔であり、例えば、15秒である。 The "predetermined time interval" is a time interval in which the image pickup apparatus 10 periodically images the product shelf S, and is, for example, 15 seconds.

なお、撮像装置は、撮像部を含むカメラ機能を備える端末装置であればよい。すわなち、例えば、撮像装置は、カメラ機能を備えるスマートホン、携帯電話、タブレット端末、ノートパソコンでもよく、あるいは、通信機能を備えるデジタルカメラでもよい。 The image pickup device may be a terminal device having a camera function including an image pickup unit. That is, for example, the image pickup device may be a smart phone having a camera function, a mobile phone, a tablet terminal, a laptop computer, or a digital camera having a communication function.

また、撮像装置は、動画を撮像するカメラユニットでもよく、あるいは、静止画と動画とを撮像するカメラユニットでもよい。 Further, the image pickup device may be a camera unit that captures a moving image, or may be a camera unit that captures a still image and a moving image.

図3は、撮像画像の例を示す模式図である。
同図は、商品棚Sを正面から撮像した状態を示す。同図は、商品棚Sに20種の商品が陳列されており、各商品に対応する20個の表示札P(1~20)が取り付けられていることを示す。同図は、表示札P(1~20)が対応する商品の陳列範囲の右下(正面視において左下)に配置されていることを示す。以下の説明において、表示札P(1~20)は、各表示札P(1~20)を特に区別する場合を除き、「表示札P」と表記される。
FIG. 3 is a schematic diagram showing an example of a captured image.
The figure shows a state in which the product shelf S is imaged from the front. The figure shows that 20 kinds of products are displayed on the product shelf S, and 20 display tags P (1 to 20) corresponding to each product are attached. The figure shows that the display tag P (1 to 20) is arranged at the lower right (lower left in the front view) of the display range of the corresponding product. In the following description, the display tags P (1 to 20) are referred to as "display tags P" unless the display tags P (1 to 20) are particularly distinguished.

なお、商品棚が撮像画像により撮像される方向は、正面(前方)に限定されない。すなわち、例えば、売場の天井に配置された撮像装置により商品棚が撮像されるとき、同方向は、前方かつ斜め上方でもよく、あるいは、斜め前方かつ斜め上方でもよい。 The direction in which the product shelf is imaged by the captured image is not limited to the front (front). That is, for example, when the product shelf is imaged by an image pickup device arranged on the ceiling of the sales floor, the same direction may be forward and diagonally upward, or diagonally forward and diagonally upward.

図4は、表示札Pの表示例を示す模式図である。
同図は、表示札Pに客用商品情報(「商品名」「金額」)と2つの商品コードとが表示されていることを示す。同図は、正面視において、右寄りの領域に商品コードが表示され、残りの領域に客用商品情報が表示されていることを示す。また、同図は、商品コードとしてハミング(Hamming)符号が図案化された二次元コードが表示されていることを示す。
FIG. 4 is a schematic diagram showing a display example of the display tag P.
The figure shows that the customer product information (“product name” and “amount”) and two product codes are displayed on the display tag P. The figure shows that the product code is displayed in the area to the right and the customer product information is displayed in the remaining area in the front view. In addition, the figure shows that a two-dimensional code in which a Hamming code is stylized is displayed as a product code.

なお、商品コードは、本実施の形態に限定されない。すなわち、例えば、商品コードは、リード・ソロモン(Reed-Solomon)符号が図案化された二次元コードや、二次元パリティ(Parity)が図案化された二次元コード、QRコード(登録商標)でもよい。 The product code is not limited to this embodiment. That is, for example, the product code may be a two-dimensional code in which the Reed-Solomon code is stylized, a two-dimensional code in which the two-dimensional parity (Parity) is stylized, or a QR code (registered trademark). ..

また、2つの商品コードは同種の二次元コードで構成されてもよく、あるいは、異なる種類の二次元コードや、一次元コードと二次元コードとで構成されてもよい。 Further, the two product codes may be composed of the same type of two-dimensional code, or may be composed of different types of two-dimensional codes, one-dimensional code and two-dimensional code.

さらに、表示札は、1の商品コードのみを表示してもよい。 Further, the display tag may display only one product code.

図2に戻る。
通信部11は、ネットワークNを介して、本装置20と通信する。通信部11は、例えば、通信モジュールや通信回路などの通信インターフェイスである。
Return to FIG.
The communication unit 11 communicates with the apparatus 20 via the network N. The communication unit 11 is, for example, a communication interface such as a communication module or a communication circuit.

記憶部12は、撮像部14が撮像した撮像画像や、撮像装置10の動作に必要な情報(例えば、後述される制御信号)を記憶する。記憶部12は、例えば、例えば、HDD(Hard Disk Drive)、SSD(Solid State Drive)などの記録装置や、RAM(Random Access Memory)、フラッシュメモリなどの半導体メモリ素子、などにより構成される。 The storage unit 12 stores an image captured by the image pickup unit 14 and information necessary for the operation of the image pickup device 10 (for example, a control signal described later). The storage unit 12 is composed of, for example, a recording device such as an HDD (Hard Disk Drive) or SSD (Solid State Drive), a semiconductor memory element such as a RAM (Random Access Memory) or a flash memory, or the like.

制御部13は、撮像装置10全体の動作を制御する。制御部13は、例えば、CPU(Central Processing Unit)、MPU(Micro Processing Unit)、DSP(Digital Signal Processor)などのプロセッサ、または、ASIC(Application Specific Integrated Circuit)、FPGA(Field Programmable Gate Array)などの集積回路と、半導体メモリと、により構成される。 The control unit 13 controls the operation of the entire image pickup apparatus 10. The control unit 13 is, for example, a processor such as a CPU (Central Processing Unit), an MPU (Micro Processing Unit), or a DSP (Digital Signal Processor), or an ASIC (Application Specific Integrated Circuit), FPGA (Field Programmable Gate Array), or the like. It is composed of an integrated circuit and a semiconductor memory.

撮像部14は、売場内において、商品棚Sと、商品棚Sに陳列された商品と、商品棚Sに取り付けられた表示札Pと、を撮像して、商品棚Sと商品と表示札Pとが撮像された撮像画像を生成する。撮像部14は、例えば、レンズ群、シャッター、撮像素子、A/D変換器などにより構成される。撮像部14により生成された撮像画像は、記憶部12に記憶される。 The image pickup unit 14 images the product shelf S, the products displayed on the product shelf S, and the display tag P attached to the product shelf S in the sales floor, and captures the product shelf S, the product, and the display tag P. And to generate an image taken. The image pickup unit 14 is composed of, for example, a lens group, a shutter, an image pickup element, an A / D converter, and the like. The captured image generated by the imaging unit 14 is stored in the storage unit 12.

●情報処理装置の構成
図5は、本装置20の実施の形態を示す機能ブロック図である。
● Configuration of Information Processing Device FIG. 5 is a functional block diagram showing an embodiment of the device 20.

本装置20は、撮像画像に基づいて、焦点位置パターンを選択し、選択された焦点位置パターンに対応する焦点位置を設定し、撮像装置10の動作を制御して、複数の焦点変更画像を取得する。また、本装置20は、複数の焦点変更画像に基づいて、商品の商品情報を特定する。本装置20は、例えば、サーバなどのパーソナルコンピュータである。本装置20は、通信部21と、記憶部22と、制御部23と、を備える。 The apparatus 20 selects a focal position pattern based on the captured image, sets the focal position corresponding to the selected focal position pattern, controls the operation of the imaging device 10, and acquires a plurality of focus change images. do. Further, the present device 20 specifies the product information of the product based on the plurality of focus change images. The present device 20 is, for example, a personal computer such as a server. The apparatus 20 includes a communication unit 21, a storage unit 22, and a control unit 23.

本装置20では、本発明にかかる情報処理プログラム(以下「本プログラム」という。)が動作して、本プログラムが本装置20のハードウェア資源と協働して、後述される本方法を実現する。すなわち、本プログラムは、コンピュータを本装置20として機能させる。 In the present device 20, the information processing program according to the present invention (hereinafter referred to as “the present program”) operates, and the present program cooperates with the hardware resources of the present device 20 to realize the present method described later. .. That is, this program causes the computer to function as the present device 20.

通信部21は、ネットワークNを介して、撮像装置10と通信する。通信部21は、例えば、通信モジュールや通信回路などの通信インターフェイスである。 The communication unit 21 communicates with the image pickup apparatus 10 via the network N. The communication unit 21 is, for example, a communication interface such as a communication module or a communication circuit.

記憶部22は、本装置20の動作に必要な情報(例えば、後述される基準画像や焦点変更画像、焦点位置パターンなど)を記憶する。記憶部12は、例えば、例えば、HDD、SSDなどの記録装置や、RAM、フラッシュメモリなどの半導体メモリ素子、などにより構成される。 The storage unit 22 stores information necessary for the operation of the apparatus 20 (for example, a reference image, a focus change image, a focus position pattern, etc., which will be described later). The storage unit 12 is composed of, for example, a recording device such as an HDD or an SSD, a semiconductor memory element such as a RAM or a flash memory, or the like.

制御部23は、後述される情報処理を実行すると共に、本装置20全体の動作を制御する。制御部23は、例えば、CPU、MPU、DSPなどのプロセッサ、または、ASIC、FPGAなどの集積回路と、半導体メモリと、により構成される。制御部23は、取得部231と、領域特定部232と、検出部233と、選択部234と、焦点位置設定部235と、信号生成部236と、情報特定部237と、を備える。 The control unit 23 executes information processing described later and controls the operation of the entire apparatus 20. The control unit 23 is composed of, for example, a processor such as a CPU, MPU, or DSP, an integrated circuit such as an ASIC or FPGA, and a semiconductor memory. The control unit 23 includes an acquisition unit 231, an area identification unit 232, a detection unit 233, a selection unit 234, a focus position setting unit 235, a signal generation unit 236, and an information identification unit 237.

取得部231は、撮像装置10が商品棚Sを撮像した撮像画像を基準画像として取得する。取得部231の具体的な動作と基準画像とは、後述される。 The acquisition unit 231 acquires an image captured by the image pickup device 10 as a reference image. The specific operation of the acquisition unit 231 and the reference image will be described later.

領域特定部232は、基準画像に撮像された商品棚領域を特定する。領域特定部232の具体的な動作は、後述される。 The area specifying unit 232 identifies the product shelf area captured in the reference image. The specific operation of the area specifying unit 232 will be described later.

検出部233は、商品棚領域に撮像されている複数の特定領域を検出する。検出部233の具体的な動作は、後述される。 The detection unit 233 detects a plurality of specific areas imaged in the product shelf area. The specific operation of the detection unit 233 will be described later.

「特定領域」は、商品棚領域のうち、表示札Pを撮像可能な領域(以下「表示札領域」という。)の全て、または、その一部である。すなわち、特定領域は、商品棚Sのうち、表示札Pを付加可能な領域の全て、または、その一部である。換言すれば、特定領域は、商品棚領域のうち、商品棚Sの棚板の前面、または、同棚板に付されるプライスレールに対応する領域である。特定領域は、表示札Pと、表示札Pに表示される商品コードと、を含む。本実施の形態において、特定領域として扱われる領域は、後述される設定方式により異なる。 The "specific area" is all or a part of the area in which the display tag P can be imaged (hereinafter referred to as "display tag area") in the product shelf area. That is, the specific area is all or a part of the area to which the display tag P can be added in the product shelf S. In other words, the specific area is an area of the product shelf area corresponding to the front surface of the shelf board of the product shelf S or the price rail attached to the shelf board. The specific area includes the display tag P and the product code displayed on the display tag P. In the present embodiment, the area treated as a specific area differs depending on the setting method described later.

選択部234は、記憶部22に記憶されている複数の焦点位置パターンのうち、検出部233の検出結果に応じた1の焦点位置パターンを、選択パターンとして選択する。選択部234の具体的な動作は、後述される。 The selection unit 234 selects one focal position pattern according to the detection result of the detection unit 233 as the selection pattern from the plurality of focal position patterns stored in the storage unit 22. The specific operation of the selection unit 234 will be described later.

焦点位置設定部235は、検出部233により検出された特定領域(商品コード)に基づいて、選択パターンに含まれる複数の個別領域ごとに、焦点位置を設定する。焦点位置設定部235の具体的な動作は、後述される。 The focal position setting unit 235 sets the focal position for each of a plurality of individual regions included in the selection pattern based on the specific region (product code) detected by the detection unit 233. The specific operation of the focal position setting unit 235 will be described later.

信号生成部236は、選択パターンと、選択パターンに設定された焦点位置と、に基づいて、制御信号を生成する。信号生成部236の具体的な動作は、後述される。 The signal generation unit 236 generates a control signal based on the selection pattern and the focal position set in the selection pattern. The specific operation of the signal generation unit 236 will be described later.

「制御信号」は、選択パターンに設定された複数の焦点位置それぞれに焦点を合わせた複数の焦点変更画像を、撮像装置10に撮像させる信号である。 The "control signal" is a signal for causing the image pickup apparatus 10 to capture a plurality of focus change images focused on each of the plurality of focus positions set in the selection pattern.

領域特定部232と、検出部233と、選択部234と、焦点位置設定部235と、信号生成部236とは、本発明における撮像装置制御部を構成する。すなわち、撮像装置制御部は、領域特定部232と、検出部233と、選択部234と、焦点位置設定部235と、信号生成部236と、を備える。撮像装置制御部は、制御信号を用いて、撮像装置10の動作を制御する。 The area specifying unit 232, the detection unit 233, the selection unit 234, the focal position setting unit 235, and the signal generation unit 236 constitute the image pickup device control unit in the present invention. That is, the image pickup device control unit includes a region specifying unit 232, a detection unit 233, a selection unit 234, a focal position setting unit 235, and a signal generation unit 236. The image pickup device control unit controls the operation of the image pickup device 10 by using the control signal.

情報特定部237は、制御信号に基づいて動作が制御された撮像装置10により撮像された複数の焦点変更画像に基づいて、商品コードに対応する商品情報を特定する。情報特定部237の具体的な動作は、後述される。 The information specifying unit 237 identifies the product information corresponding to the product code based on the plurality of focus change images captured by the image pickup device 10 whose operation is controlled based on the control signal. The specific operation of the information specifying unit 237 will be described later.

なお、本装置は、種々の情報を本システムの使用者に表示する表示部(例えば、モニタ)や、同使用者に操作される操作部(例えば、キーボード)、を備えてもよい。 The apparatus may include a display unit (for example, a monitor) that displays various information to the user of the system, and an operation unit (for example, a keyboard) that is operated by the same user.

●情報処理方法●
次に、本システム1(本装置20)が実行する本発明にかかる情報処理方法(以下「本方法」という。)について、図5も参照しつつ説明する。
● Information processing method ●
Next, the information processing method (hereinafter referred to as “the present method”) according to the present invention executed by the present system 1 (the present apparatus 20) will be described with reference to FIG.

図6は、本方法の実施の形態を示すフローチャートである。 FIG. 6 is a flowchart showing an embodiment of the present method.

本方法は、判定処理(S1)と、制御信号生成処理(S2)と、焦点変更画像撮像処理(S6)と、商品情報統合処理(S7)と、を実行する。 This method executes a determination process (S1), a control signal generation process (S2), a focus change image imaging process (S6), and a product information integration process (S7).

●判定処理
図7は、判定処理(S1)のフローチャートである。
「判定処理(S1)」は、本装置20による制御信号生成処理(S2)と焦点変更画像撮像処理(S6)と商品情報統合処理(S7)との実行が必要か否かを判定する処理である。
● Judgment process FIG. 7 is a flowchart of the determination process (S1).
The "determination process (S1)" is a process for determining whether or not it is necessary to execute the control signal generation process (S2), the focus change image imaging process (S6), and the product information integration process (S7) by the apparatus 20. be.

先ず、本装置20は、次処理実行フラグを「OFF」にする(S101)。「次処理実行フラグ」は、本方法において、制御信号生成処理(S2)と焦点変更画像撮像処理(S6)と商品情報統合処理(S7)との実行の要否を決定するフラグである。 First, the present device 20 sets the next processing execution flag to “OFF” (S101). The "next process execution flag" is a flag that determines whether or not the control signal generation process (S2), the focus change image imaging process (S6), and the product information integration process (S7) need to be executed in this method.

次いで、取得部231は、通信部21を介して、撮像装置10から撮像画像を基準画像として取得する(S102)。処理(S102)は、本発明における取得ステップの例である。このとき、取得部231は、例えば、基準画像を撮像した撮像装置10を識別する情報(例えば、ID情報)も取得する。基準画像は、基準画像を撮像した撮像装置10を識別する情報に関連付けられて記憶部22に記憶される。 Next, the acquisition unit 231 acquires the captured image as a reference image from the image pickup device 10 via the communication unit 21 (S102). The process (S102) is an example of the acquisition step in the present invention. At this time, the acquisition unit 231 also acquires, for example, information (for example, ID information) for identifying the image pickup device 10 that has captured the reference image. The reference image is stored in the storage unit 22 in association with the information that identifies the image pickup device 10 that has captured the reference image.

「基準画像」は、撮像画像のうち、本装置20が判定処理(S1)を実行するために用いる画像であり、本装置20による制御信号生成処理と焦点変更画像撮像処理との実行が必要か否かの判定の基準となる撮像画像である。以下の説明において、取得部231は、図3に示される撮像画像を基準画像として取得したものとする。 The "reference image" is an image used by the apparatus 20 to execute the determination process (S1) among the captured images, and is it necessary to execute the control signal generation process and the focus change image imaging process by the apparatus 20? It is a captured image that serves as a reference for determining whether or not to use it. In the following description, it is assumed that the acquisition unit 231 acquires the captured image shown in FIG. 3 as a reference image.

次いで、領域特定部232は、例えば、公知の画像認識処理を用いて、基準画像に撮像されている商品棚領域を特定する(S103)。処理(S103)は、本発明における領域特定ステップの例である。「公知の画像認識処理」は、例えば、ディープラーニング画像認識(例えば、SSD:Single Shot Multibox Detectorモデル)を利用して物体を検出する処理である。すなわち、例えば、領域特定部232は、撮像画像に撮像されている商品棚Sの棚枠(支柱や天板などの商品棚Sの輪郭となる部材)の前面に付された標識(後述)を検出する。次いで、領域特定部232は、検出した標識のうち、上下方向(商品棚Sにおける上下方向)に並ぶ標識を結び、支柱(外枠)の領域として検出する。次いで、領域特定部232は、検出した標識のうち、上端と下端それぞれにおいて左右方向(商品棚Sにおける水平方向)に並ぶ標識を結び、天板・土台(外枠)の領域を検出する。次いで、領域特定部232は、検出した支柱、天板、土台の領域を連結して、矩形状の商品棚領域を特定する。特定された商品棚領域は、基準画像に関連付けられて記憶部22に記憶される。 Next, the area specifying unit 232 identifies the product shelf area captured in the reference image by using, for example, a known image recognition process (S103). The process (S103) is an example of the region specifying step in the present invention. The "known image recognition process" is, for example, a process of detecting an object by using deep learning image recognition (for example, SSD: Single Shot Multibox Detector model). That is, for example, the area specifying unit 232 has a sign (described later) attached to the front surface of the shelf frame of the product shelf S (a member that is the outline of the product shelf S such as a support column or a top plate) captured in the captured image. To detect. Next, the area specifying unit 232 connects the signs arranged in the vertical direction (vertical direction in the product shelf S) among the detected signs, and detects them as the area of the support column (outer frame). Next, the area specifying unit 232 connects the detected signs that are lined up in the left-right direction (horizontal direction in the product shelf S) at the upper end and the lower end, and detects the area of the top plate / base (outer frame). Next, the area specifying unit 232 connects the detected columns, top plate, and base area to specify a rectangular product shelf area. The specified product shelf area is associated with the reference image and stored in the storage unit 22.

「標識」は、例えば、支柱の位置を示すシールである。標識は、例えば、支柱の前面に、上下方向に並んで付される。 A "sign" is, for example, a sticker indicating the position of a strut. The signs are attached to the front of the column, for example, side by side in the vertical direction.

なお、標識は、シールに限定されない。すなわち、例えば、標識は、支柱に配置されるマグネットや、支柱に塗布される塗料、支柱に形成されている凹凸・孔、でもよい。 The sign is not limited to the seal. That is, for example, the sign may be a magnet arranged on the support column, a paint applied to the support column, or an unevenness / hole formed on the support column.

また、領域特定部は、基準画像をそのまま用いて商品棚領域を特定してもよく、あるいは、基準画像に公知の透視変換処理を実行して、商品棚が正面視の状態に補正された基準画像を用いて商品棚領域を特定してもよい。 Further, the area specifying unit may specify the product shelf area by using the reference image as it is, or the reference image is subjected to a known fluoroscopic conversion process to correct the product shelf to the front view state. The product shelf area may be specified using an image.

さらに、領域特定部は、例えば、基準画像をモニタなどの表示部に表示させ、本システム1の使用者に商品棚領域の4点を選択させ、選択された4点を結んだ領域を商品棚領域として特定してもよい。すなわち、領域特定部は、手動で選択された領域を商品棚領域として特定してもよい。 Further, the area specifying unit displays, for example, a reference image on a display unit such as a monitor, causes the user of the system 1 to select four points in the product shelf area, and sets the area connecting the selected four points as the product shelf. It may be specified as an area. That is, the area specifying unit may specify the manually selected area as the product shelf area.

さらにまた、領域特定部は、左右方向に並ぶ標識を結び、棚板の領域(表示札領域)を特定してもよい。 Furthermore, the area specifying portion may connect the signs arranged in the left-right direction to specify the area of the shelf board (display tag area).

図8は、商品棚領域を特定する処理(S103)の後の基準画像の例を示す模式図である。同図は、商品棚領域を示す枠を太線で示す。同図は、商品棚領域が矩形の領域であることを示す。 FIG. 8 is a schematic diagram showing an example of a reference image after the process of specifying the product shelf area (S103). In the figure, the frame showing the product shelf area is shown by a thick line. The figure shows that the product shelf area is a rectangular area.

図7に戻る。
次いで、検出部233は、例えば、公知の画像認識処理を用いて、領域特定部232により特定された商品棚領域において、表示札Pを検出する(S104)。検出された表示札Pは、例えば、表示札PのIDと位置情報と共に、基準画像に関連付けられて記憶部22に記憶される。
Return to FIG.
Next, the detection unit 233 detects the display tag P in the product shelf area specified by the area identification unit 232 using, for example, a known image recognition process (S104). The detected display tag P is stored in the storage unit 22 in association with the reference image, for example, together with the ID and position information of the display tag P.

図9は、表示札Pを検出する処理(S104)の後の基準画像の例を示す模式図である。同図は、検出された表示札Pを示す枠を太線で示し、商品棚領域を破線で示す。同図は、商品棚領域において、全ての表示札Pが検出されたことを示す。 FIG. 9 is a schematic diagram showing an example of a reference image after the process of detecting the display tag P (S104). In the figure, the frame showing the detected display tag P is shown by a thick line, and the product shelf area is shown by a broken line. The figure shows that all the display tags P were detected in the product shelf area.

図7に戻る。
次いで、検出部233は、未検出の表示札Pの有無を判定する(S105)。このとき、例えば、検出部233は、商品棚Sに陳列されている商品の種類数や、過去の検出結果(履歴)、商品棚Sごとに設定されている表示札Pの配列表などを参照して、未検出の表示札Pの有無を判定する。商品の種類数や過去の検出結果、配列表は、例えば、予め記憶部22に記憶されている。
Return to FIG.
Next, the detection unit 233 determines the presence / absence of the undetected display tag P (S105). At this time, for example, the detection unit 233 refers to the number of types of products displayed on the product shelf S, past detection results (history), an arrangement table of display tags P set for each product shelf S, and the like. Then, it is determined whether or not there is an undetected display tag P. The number of types of products, past detection results, and sequence listings are stored in, for example, in the storage unit 22 in advance.

未検出の表示札Pが有るとき(S105の「Y」)、本装置20は、次処理実行フラグを「ON」にする(S106)。一方、未検出の表示札Pが無いとき(S105の「N」)、本装置20は、次処理実行フラグを「OFF」に維持する(S107)。 When there is an undetected display tag P (“Y” in S105), the apparatus 20 sets the next processing execution flag to “ON” (S106). On the other hand, when there is no undetected display tag P (“N” in S105), the present device 20 maintains the next processing execution flag in “OFF” (S107).

次いで、検出部233は、検出された表示札Pに基づいて、表示札領域を検出する(S108)。すなわち、例えば、検出部233は、検出された表示札Pのうち、基準画像のX方向(商品棚Sの水平方向)に並ぶ表示札Pのグループを抽出する。次いで、検出部233は、抽出したグループごとに、グループを構成する表示札Pを結び、支柱(商品棚領域の端部)まで延びる直線帯状の領域を表示札領域として検出する。表示札領域は、表示札Pと略同じ幅(上下方向の長さ)と、支柱間と略同じ長さ(左右方向の長さ)を有する。処理(S108)は、本発明における検出ステップの例である。表示札領域は、例えば、表示札領域の位置情報と共に、基準画像に関連付けられて記憶部22に記憶される。 Next, the detection unit 233 detects the display tag area based on the detected display tag P (S108). That is, for example, the detection unit 233 extracts a group of display tags P arranged in the X direction of the reference image (horizontal direction of the product shelf S) from the detected display tags P. Next, the detection unit 233 connects the display tags P constituting the group for each extracted group, and detects a linear band-shaped area extending to the support column (end of the product shelf area) as the display tag area. The display tag area has substantially the same width (length in the vertical direction) as the display tag P and substantially the same length (length in the left-right direction) as between the columns. Processing (S108) is an example of a detection step in the present invention. The display tag area is stored in the storage unit 22 in association with the reference image, for example, together with the position information of the display tag area.

図10は、表示札領域を検出する処理(S108)の後の基準画像の例を示す模式図である。同図は、検出された表示札領域を示す枠を太線で示し、商品棚領域を破線で示す。同図は、商品棚領域において、4つの表示札領域が検出されたことを示す。同図は、説明の便宜上、1の表示札Pと、同表示札Pに表示される商品コードと、を除く他の表示札Pと、他の表示札Pに表示される商品コードと、の図示は省略する。表示札Pと、表示札Pに表示される商品コードと、が表示札領域に含まれることを示す。 FIG. 10 is a schematic diagram showing an example of a reference image after the process of detecting the display tag area (S108). In the figure, the frame showing the detected display tag area is shown by a thick line, and the product shelf area is shown by a broken line. The figure shows that four display tag areas were detected in the product shelf area. For convenience of explanation, the figure shows a display tag P of 1, a product code displayed on the display tag P, another display tag P excluding the display tag P, and a product code displayed on the other display tag P. Illustration is omitted. It is shown that the display tag P and the product code displayed on the display tag P are included in the display tag area.

図7に戻る。
次いで、検出部233は、公知の画像認識処理を用いて、検出した全ての表示札Pにおいて、商品コードの組を検出する(S109)。このとき、検出部233は、各商品コードの鮮明度(コントラスト)を取得すると共に、その位置情報を特定する。検出された商品コードは、例えば、商品コードの位置情報ごとに割り当てられた番号と商品コードの位置情報および鮮明度と共に、基準画像に関連付けられて記憶部22に記憶される。
Return to FIG.
Next, the detection unit 233 detects a set of product codes in all the detected display tags P by using a known image recognition process (S109). At this time, the detection unit 233 acquires the sharpness (contrast) of each product code and specifies the position information thereof. The detected product code is, for example, stored in the storage unit 22 in association with the reference image together with the number assigned for each product code position information, the product code position information, and the sharpness.

なお、検出部は、商品コードの検出前に、基準画像に対してガンマ補正やバイラテラルフィルタなどの公知の前処理を実行してもよい。 The detection unit may perform known preprocessing such as gamma correction and bilateral filter on the reference image before detecting the product code.

ここで、鮮明度は、例えば、公知の画像処理方法を用いて、算出される。すなわち、例えば、鮮明度は、基準画像をグレースケールに変換し、商品コードのエッジをCanny法により抽出し、エッジ画像の全ての輝度値の分散を算出することにより、算出される。 Here, the sharpness is calculated using, for example, a known image processing method. That is, for example, the sharpness is calculated by converting the reference image into grayscale, extracting the edges of the product code by the Canny method, and calculating the variance of all the luminance values of the edge image.

次いで、検出部233は、未検出の商品コードの組の有無を判定する(S110)。このとき、例えば、検出部233は、処理(S104)において検出された表示札Pの数に基づいて、未検出の商品コードの組の有無を判定する。 Next, the detection unit 233 determines whether or not there is a set of undetected product codes (S110). At this time, for example, the detection unit 233 determines whether or not there is a set of undetected product codes based on the number of display tags P detected in the process (S104).

図11は、商品コードの組を検出する処理(S109)の後の基準画像の例を示す模式図である。同図は、説明の便宜上、商品の図示を省略する。同図は、検出された商品コードを「■」で示し、未検出の商品コードを「□」で示す。同図は、太線の枠で囲まれた検出コードの組が未検出であることを示す。 FIG. 11 is a schematic diagram showing an example of a reference image after the process (S109) for detecting a set of product codes. In the figure, the illustration of the product is omitted for convenience of explanation. In the figure, the detected product code is indicated by "■", and the undetected product code is indicated by "□". The figure shows that the set of detection codes surrounded by the thick line frame has not been detected.

図7に戻る。
未検出の商品コードの組が有るとき(S110の「Y」)、本装置20は、次処理実行フラグを「ON」にして(S111)、判定処理(S1)を終了する。
Return to FIG.
When there is an undetected set of product codes (“Y” in S110), the apparatus 20 sets the next processing execution flag to “ON” (S111) and ends the determination processing (S1).

一方、未検出の商品コードの組が無いとき(S110の「N」)、本装置20は、次処理実行フラグを「OFF」に維持したまま(S112)、判定処理(S1)を終了する。 On the other hand, when there is no undetected product code set (“N” in S110), the apparatus 20 ends the determination process (S1) while maintaining the next process execution flag in “OFF” (S112).

●制御信号生成処理
図12は、制御信号生成処理(S2)のフローチャートである。
「制御信号生成処理(S2)」は、本装置20が、焦点位置パターンを選択し、焦点位置パターンに含まれる個別領域に焦点位置を設定し、選択された焦点位置パターンと設定された焦点位置とに基づいて制御信号を生成する処理である。制御信号生成処理(S2)は、本発明における信号生成ステップの例である。
● Control signal generation processing FIG. 12 is a flowchart of the control signal generation processing (S2).
In the "control signal generation process (S2)", the apparatus 20 selects a focal position pattern, sets the focal position in an individual region included in the focal position pattern, and sets the selected focal position pattern and the set focal position. It is a process of generating a control signal based on. The control signal generation process (S2) is an example of the signal generation step in the present invention.

先ず、本装置20は、次処理実行フラグの状態(「ON」または「OFF」)を確認する(S201)。 First, the present device 20 confirms the state (“ON” or “OFF”) of the next processing execution flag (S201).

次処理実行フラグが「ON」のとき(S201の「Y」)、選択部234は、記憶部22に記憶されている複数の焦点位置パターンのうち、検出部233の検出結果に応じた1の焦点位置パターンを、選択パターンとして選択する(S202)。すなわち、例えば、選択部234は、未検出の商品コードの組(または表示札P)が存在する個別領域を特定し、同個別領域を含む焦点位置パターンを選択する。選択パターンの候補として複数の焦点位置パターンが存在するとき、選択部234は、例えば、焦点位置パターンに含まれる個別領域の数(最大数または最小数)に基づいて選択パターンを選択し、あるいは、本システム1の使用者に焦点位置パターンの候補を示して同使用者に選択された焦点位置パターンを選択パターンとして選択してもよい。処理(S202)は、本発明における選択ステップの例である。選択パターンは、例えば、基準画像に関連付けられて記憶部22に記憶される。一方、次処理実行フラグが「ON」のとき(S201の「Y」)、本装置20は、制御信号生成処理(S2)を終了する。この場合、本装置20は、例えば、1枚の基準画像に基づいて、全ての商品コードの商品情報を特定する。 When the next processing execution flag is “ON” (“Y” in S201), the selection unit 234 selects one of the plurality of focal position patterns stored in the storage unit 22 according to the detection result of the detection unit 233. The focal position pattern is selected as the selection pattern (S202). That is, for example, the selection unit 234 identifies an individual region in which a set of undetected product codes (or display tag P) exists, and selects a focal position pattern including the individual region. When there are a plurality of focal position patterns as candidates for the selection pattern, the selection unit 234 selects, for example, the selection pattern based on the number of individual regions (maximum number or minimum number) included in the focus position pattern, or A focus position pattern candidate may be shown to the user of the system 1 and the focus position pattern selected by the user may be selected as the selection pattern. The process (S202) is an example of a selection step in the present invention. The selection pattern is stored in the storage unit 22 in association with the reference image, for example. On the other hand, when the next processing execution flag is “ON” (“Y” in S201), the apparatus 20 ends the control signal generation processing (S2). In this case, the apparatus 20 specifies the product information of all the product codes based on, for example, one reference image.

なお、本発明における選択部が選択パターンを選択する手法は、本実施の形態に限定されない。すなわち、例えば、本発明における選択部は、過去の選択履歴に基づいて選択パターンを選択してもよい。または、未検出の商品コードの組(または表示札)が存在することが予測される個別領域を含む焦点位置パターンが予め決定されていて、選択部は、決定されている焦点位置パターンを選択してもよい。あるいは、選択部は、商品コードの画素情報(位置情報、鮮明度)に基づいて、選択パターンを選択してもよい。 The method by which the selection unit in the present invention selects a selection pattern is not limited to the present embodiment. That is, for example, the selection unit in the present invention may select a selection pattern based on a past selection history. Alternatively, a focal position pattern including an individual area in which an undetected set of product codes (or display tags) is expected to exist is predetermined, and the selection unit selects the determined focal position pattern. You may. Alternatively, the selection unit may select a selection pattern based on the pixel information (position information, sharpness) of the product code.

図13(a)~(f)は、記憶部22に記憶されている焦点位置パターンの例を示す模式図である。同図は、個別領域を実線で示し、焦点位置パターンに含まれる個別領域を太線で示す。同図は、「9」の個別領域が商品棚領域に含まれていることを示す。同図(a)は「9」の個別領域を含む焦点位置パターンの例を示し、同図(b)は「7」の個別領域を含む焦点位置パターンの例を示し、同図(c)は「5」の個別領域を含む焦点位置パターンの例を示し、同図(d)は「4」の個別領域を含む焦点位置パターンの例を示し、同図(e)は「6」の個別領域を含む焦点位置パターンの例を示し、同図(f)は「2」の大きさの異なる個別領域を含む焦点位置パターンの例を示す。図中の数字は、個別領域の固有の番号の例である。 13 (a) to 13 (f) are schematic views showing an example of a focal position pattern stored in the storage unit 22. In the figure, the individual areas are shown by solid lines, and the individual areas included in the focal position pattern are shown by thick lines. The figure shows that the individual area of “9” is included in the product shelf area. FIG. (A) shows an example of a focal position pattern including the individual region of “9”, FIG. 2B shows an example of a focal position pattern including the individual region of “7”, and FIG. 3C shows an example of the focal position pattern. An example of a focal position pattern including the individual area of "5" is shown, FIG. 6D shows an example of a focal position pattern including the individual area of "4", and FIG. 6E shows an example of the individual area of "6". An example of a focal position pattern including is shown, and FIG. 3F shows an example of a focal position pattern including individual regions having different sizes of “2”. The numbers in the figure are examples of unique numbers for individual areas.

各焦点位置パターンに含まれる個別領域それぞれには、固有の番号が割り当てられる。本実施の形態において、固有の番号は、図12に示されるとおり、中央の個別領域を「1」として、左上の個別領域から時計回りに「2」「3」「4」「5」「6」「7」「8」「9」と割り当てられる。 A unique number is assigned to each individual area included in each focal position pattern. In the present embodiment, as shown in FIG. 12, the unique numbers are "2", "3", "4", "5", and "6" clockwise from the upper left individual area, with the central individual area as "1". "7" "8" "9" are assigned.

図14は、選択パターンを選択する処理(S202)の後の基準画像の例を示す模式図である。
同図は、個別領域を太い破線で示す。同図は、同じ大きさの「9」の個別領域を含む焦点位置パターンが選択パターンとして選択されていることを示す。
FIG. 14 is a schematic diagram showing an example of a reference image after the process of selecting a selection pattern (S202).
In the figure, individual areas are indicated by thick dashed lines. The figure shows that a focal position pattern containing "9" individual regions of the same size is selected as the selection pattern.

図12に戻る。
次いで、焦点位置設定部235は、記憶部22に記憶されている複数の設定方式の中から1の設定方式を選択する(S203)。焦点位置設定部235は、例えば、処理(S109)において取得した商品コードの画素情報(例えば、鮮明度)に基づいて、設定方式を選択する。すなわち、例えば、商品コードの鮮明度の平均値が所定の閾値「V1」より高いとき、焦点位置設定部235は、後述される第1設定方式を選択する。一方、同平均値が所定の閾値「V1」以下のとき、焦点位置設定部235は、後述される第2設定方式または第3設定方式を選択する。「所定の閾値「V1」」は、例えば、後述される処理(S303)において、十分な数の商品コードの鮮明度が、処理(S303)の閾値「V2」以上となるように設定される。閾値「V1」は、例えば、予め、使用者により設定され、記憶部22に記憶されている。
Return to FIG.
Next, the focus position setting unit 235 selects one setting method from the plurality of setting methods stored in the storage unit 22 (S203). The focal position setting unit 235 selects a setting method based on, for example, the pixel information (for example, sharpness) of the product code acquired in the process (S109). That is, for example, when the average value of the sharpness of the product code is higher than the predetermined threshold value “V1”, the focal position setting unit 235 selects the first setting method described later. On the other hand, when the average value is equal to or less than the predetermined threshold value “V1”, the focal position setting unit 235 selects the second setting method or the third setting method described later. The "predetermined threshold value" V1 "" is set so that, for example, in the process (S303) described later, the sharpness of a sufficient number of product codes is equal to or higher than the threshold value "V2" of the process (S303). The threshold value “V1” is set in advance by the user, for example, and is stored in the storage unit 22.

「設定方式」は、焦点位置設定部235が選択パターンに含まれる個別領域ごとに焦点位置を設定するために用いる方式である。設定方式は、第1設定方式と第2設定方式と第3設定方式とを含む。「第1設定方式」は、検出部233により検出された基準画像の商品コードそれぞれの鮮明度に基づいて、焦点位置を設定する方式である。「第2設定方式」は、検出部233により検出された基準画像の商品コードそれぞれの位置情報に基づいて、焦点位置を設定する方式である。「第3設定方式」は、検出部233により検出された表示札付加領域の商品棚領域に対する位置関係に基づいて、焦点位置を設定する方式である。本実施の形態において、記憶部22は、予め、第1設定方式と第2設定方式と第3設定方式とを記憶しているものとする。 The "setting method" is a method used by the focus position setting unit 235 to set the focus position for each individual region included in the selection pattern. The setting method includes a first setting method, a second setting method, and a third setting method. The "first setting method" is a method of setting the focal position based on the sharpness of each product code of the reference image detected by the detection unit 233. The "second setting method" is a method of setting the focal position based on the position information of each product code of the reference image detected by the detection unit 233. The "third setting method" is a method of setting the focal position based on the positional relationship of the display tag addition area detected by the detection unit 233 with respect to the product shelf area. In the present embodiment, it is assumed that the storage unit 22 stores the first setting method, the second setting method, and the third setting method in advance.

なお、焦点位置設定部は、例えば、特定領域に基づいて取得可能な情報に基づいて設定方式を選択すればよく、焦点位置設定部の選択は、本実施の形態に限定されない。すなわち、例えば、焦点位置設定部は、処理(S109)で検出された商品コードの組の数または位置情報に基づいて、設定方式を選択してもよい。また、例えば、焦点位置設定部は、処理(S104)で検出された表示札の数または位置情報に基づいて、設定方式を選択してもよい。さらに、例えば、焦点位置設定部は、本システム1の使用者により予め設定されている設定方式を選択してもよい。 The focal position setting unit may select, for example, a setting method based on information that can be acquired based on a specific area, and the selection of the focal position setting unit is not limited to the present embodiment. That is, for example, the focal position setting unit may select a setting method based on the number of product code sets or position information detected in the process (S109). Further, for example, the focal position setting unit may select a setting method based on the number of display tags or position information detected in the process (S104). Further, for example, the focal position setting unit may select a setting method preset by the user of the system 1.

焦点位置設定部235が第1設定方式を選択したとき(S203の「第1設定方式」)、本装置20は、第1焦点位置設定処理(S3)を実行する。一方、焦点位置設定部235が第2設定方式を選択したとき(S203の「第2設定方式」)、本装置20は、第2焦点位置設定処理(S4)を実行する。さらに、焦点位置設定部235が第3設定方式を選択したとき(S203の「第3設定方式」)、本装置20は、第3焦点位置設定処理(S5)を実行する。 When the focus position setting unit 235 selects the first setting method (“first setting method” in S203), the apparatus 20 executes the first focus position setting process (S3). On the other hand, when the focus position setting unit 235 selects the second setting method (“second setting method” in S203), the apparatus 20 executes the second focus position setting process (S4). Further, when the focus position setting unit 235 selects the third setting method (“third setting method” in S203), the apparatus 20 executes the third focus position setting process (S5).

図15は、第1焦点位置設定処理(S3)のフローチャートである。
「第1焦点位置設定処理(S3)」は、商品コードの鮮明度に基づいて、選択パターンに含まれる各個別領域の焦点位置を設定する処理である。第1焦点位置設定処理(S3)において、商品コードは、特定領域として扱われる。第1焦点位置設定処理(S3)は、本発明における焦点位置設定ステップの例である。
FIG. 15 is a flowchart of the first focal position setting process (S3).
The "first focal position setting process (S3)" is a process of setting the focal position of each individual region included in the selection pattern based on the sharpness of the product code. In the first focal position setting process (S3), the product code is treated as a specific area. The first focal position setting process (S3) is an example of the focal position setting step in the present invention.

先ず、焦点位置設定部235は、焦点位置を設定する設定領域の固有の番号「n」を「1」に設定する(S301)。 First, the focal position setting unit 235 sets the unique number “n” of the setting area for setting the focal position to “1” (S301).

次いで、焦点位置設定部235は、個別領域「1」において、検出部233により検出された全ての商品コードと、その鮮明度と、を記憶部22から読み出す(S302)。 Next, the focal position setting unit 235 reads out all the product codes detected by the detection unit 233 and their sharpness from the storage unit 22 in the individual area “1” (S302).

次いで、焦点位置設定部235は、各商品コードのうち、鮮明度が所定の閾値「V2」以上、かつ、最小となる商品コードを特定商品コードとして選択する(S303)。「閾値「V2」」は、例えば、情報特定部237が商品コードに基づいて商品情報を特定可能な鮮明度の下限値、または、同下限値に多少のマージンを付加した値である。換言すれば、閾値「V2」は、本装置20が商品コードをデコード可能な鮮明度に基づいて設定される値である。閾値「V2」は、例えば、予め、使用者により設定され、記憶部22に記憶されている。 Next, the focal position setting unit 235 selects, among the product codes, the product code having the sharpness of the predetermined threshold value “V2” or more and the minimum as the specific product code (S303). The “threshold value“ V2 ”” is, for example, a lower limit value of sharpness that allows the information specifying unit 237 to specify product information based on a product code, or a value obtained by adding a slight margin to the lower limit value. In other words, the threshold value "V2" is a value set based on the sharpness by which the apparatus 20 can decode the product code. The threshold value “V2” is set in advance by the user, for example, and is stored in the storage unit 22.

次いで、焦点位置設定部235は、特定商品コードとして選択された商品コードの位置情報を記憶部22から読み出し、その中心座標を個別領域「1」の焦点位置として設定する(S304)。焦点位置は、対応する個別領域と、選択パターンと、に関連付けられて記憶部22に記憶される。 Next, the focal position setting unit 235 reads the position information of the product code selected as the specific product code from the storage unit 22, and sets the center coordinates thereof as the focal position of the individual area “1” (S304). The focal position is stored in the storage unit 22 in association with the corresponding individual area and the selection pattern.

次いで、焦点位置設定部235は、焦点位置が設定されていない個別領域の有無を判定する(S305)。 Next, the focus position setting unit 235 determines the presence or absence of an individual region in which the focus position is not set (S305).

焦点位置が設定されていない個別領域が有るとき(S305の「Y」)、焦点位置設定部235は、焦点位置を設定する個別領域の固有の番号「n」に1を付加して(S306)、処理(S302~S305)を実行する。 When there is an individual area in which the focal position is not set (“Y” in S305), the focal position setting unit 235 adds 1 to the unique number “n” of the individual area in which the focal position is set (S306). , Processing (S302 to S305) is executed.

一方、焦点位置が設定されていない個別領域が無いとき(S305の「N」)、焦点位置設定部235は、第1焦点位置設定処理(S3)を終了する。 On the other hand, when there is no individual area in which the focal position is not set (“N” in S305), the focal position setting unit 235 ends the first focal position setting process (S3).

このように、第1焦点位置設定処理(S3)において、焦点位置設定部235は、選択パターンに含まれる個別領域それぞれにおいて検出された複数の商品コードのうち、鮮明度が閾値V1以上、かつ、最小となる特定商品コードを選択し、特定商品コードの位置情報に基づいて、焦点位置を設定する。換言すれば、焦点位置設定部235は、各個別領域において、デコード可能な商品コードのうち、鮮明度が最小の商品コードに焦点位置を設定する。 As described above, in the first focus position setting process (S3), the focus position setting unit 235 has a sharpness of the threshold value V1 or more and a sharpness of the plurality of product codes detected in each of the individual regions included in the selection pattern. Select the minimum specific product code and set the focal position based on the position information of the specific product code. In other words, the focal position setting unit 235 sets the focal position to the product code having the smallest sharpness among the decodable product codes in each individual area.

図16は、第2焦点位置設定処理(S4)のフローチャートである。
「第2焦点位置設定処理(S4)」は、商品コードそれぞれの間の位置関係に基づいて、選択パターンに含まれる各個別領域の焦点位置を設定する処理である。第2焦点位置設定処理(S4)において、商品コードは、特定領域として扱われる。第2焦点位置設定処理(S4)は、本発明における焦点位置設定ステップの例である。
FIG. 16 is a flowchart of the second focal position setting process (S4).
The "second focal position setting process (S4)" is a process of setting the focal position of each individual region included in the selection pattern based on the positional relationship between the product codes. In the second focal position setting process (S4), the product code is treated as a specific area. The second focal position setting process (S4) is an example of the focal position setting step in the present invention.

先ず、焦点位置設定部235は、基準画像に対応する商品棚領域を記憶部22から読み出す(S401)。 First, the focal position setting unit 235 reads out the product shelf area corresponding to the reference image from the storage unit 22 (S401).

次いで、焦点位置設定部235は、焦点位置を設定する設定領域の固有の番号「n」を「1」に設定する(S402)。 Next, the focal position setting unit 235 sets the unique number “n” of the setting area for setting the focal position to “1” (S402).

次いで、焦点位置設定部235は、個別領域「1」において、検出部233により検出された全ての表示札Pと、その位置情報(座標)と、を記憶部22から読み出す(S403)。 Next, the focal position setting unit 235 reads out all the display tags P detected by the detection unit 233 and their position information (coordinates) from the storage unit 22 in the individual area “1” (S403).

次いで、焦点位置設定部235は、商品棚領域の重心の座標を特定し、同座標に最も近い位置情報を有する表示札Pを中心表示札として特定する(S404)。すなわち、例えば、焦点位置設定部235は、各表示札Pの重心の座標を特定し、同座標と基準画像の重心の座標との間の距離が最も近い表示札Pを中心表示札として特定する。 Next, the focal position setting unit 235 specifies the coordinates of the center of gravity of the product shelf area, and specifies the display tag P having the position information closest to the coordinates as the center display tag (S404). That is, for example, the focal position setting unit 235 specifies the coordinates of the center of gravity of each display tag P, and specifies the display tag P having the shortest distance between the coordinates and the coordinates of the center of gravity of the reference image as the center display tag. ..

なお、焦点位置設定部は、商品棚領域の重心に代えて、基準画像の中心位置の座標を特定し、同座標に最も近い位置情報を有する表示札を中心表示札として特定してもよい。 The focal position setting unit may specify the coordinates of the center position of the reference image instead of the center of gravity of the product shelf area, and may specify the display tag having the position information closest to the coordinates as the center display tag.

次いで、焦点位置設定部235は、中心表示札に対応する2つの商品コードのうち、上側に配置された商品コードを中心商品コードとして特定する(S405)。 Next, the focus position setting unit 235 identifies the product code arranged on the upper side as the center product code among the two product codes corresponding to the center display tag (S405).

なお、焦点位置設定部は、下側に配置された商品コードを中心商品コードとして特定してもよい。 The focus position setting unit may specify the product code arranged on the lower side as the central product code.

次いで、焦点位置設定部235は、中心商品コードの位置情報を記憶部22から読み出し、中心商品コードの中心に対応する位置情報(中心に対応する画素の座標)を個別領域「1」の焦点位置として設定する(S406)。焦点位置は、対応する個別領域と、選択パターンと、に関連付けられて記憶部22に記憶される。 Next, the focal position setting unit 235 reads the position information of the central product code from the storage unit 22, and obtains the position information (coordinates of the pixels corresponding to the center) corresponding to the center of the central product code to the focal position of the individual area “1”. Is set as (S406). The focal position is stored in the storage unit 22 in association with the corresponding individual area and the selection pattern.

次いで、焦点位置設定部235は、焦点位置を設定する個別領域の固有の番号「n」に1を付加する(S407)。 Next, the focus position setting unit 235 adds 1 to the unique number “n” of the individual area for setting the focus position (S407).

次いで、焦点位置設定部235は、個別領域の固有の番号が偶数(「2,4,6,8」)か奇数(「3,5,7,9」)かを判定する(S408)。 Next, the focal position setting unit 235 determines whether the unique number of the individual region is an even number (“2,4,6,8”) or an odd number (“3,5,7,9”) (S408).

個別領域の固有の番号が偶数のとき(S408の「偶数」)、焦点位置設定部235は、個別領域において、商品棚領域の角部に最も近い表示札Pを端部表示札として特定する(S409)。換言すれば、焦点位置設定部235は、個別領域において、商品棚領域の端部に近く、かつ、中心商品コードから最も離れた表示札Pを端部表示札として特定する。すなわち、例えば、焦点位置設定部235は、各表示札Pの重心の座標を特定し、同座標と商品棚領域の角部の座標との間の距離が最も近い表示札Pを端部表示札として特定する。ここで、「商品棚領域の角部」は、各個別領域に対応する角部である。すなわち、例えば、本実施の形態において、商品棚領域の左上の角部が個別領域「2」に対応し、商品棚領域の右上の角部が個別領域「4」に対応し、商品棚領域の右下の角部が個別領域「6」に対応し、商品棚領域の左下の角部が個別領域「8」に対応する。 When the unique number of the individual area is an even number (“even number” in S408), the focal position setting unit 235 identifies the display tag P closest to the corner of the product shelf area as the end display tag in the individual area (“even number” in S408). S409). In other words, the focal position setting unit 235 identifies the display tag P that is close to the end of the product shelf area and is the furthest from the central product code as the end display tag in the individual area. That is, for example, the focal position setting unit 235 specifies the coordinates of the center of gravity of each display tag P, and the end display tag P is the display tag P having the shortest distance between the coordinates and the coordinates of the corner of the product shelf area. Specify as. Here, the "corner portion of the product shelf area" is a corner portion corresponding to each individual area. That is, for example, in the present embodiment, the upper left corner of the product shelf area corresponds to the individual area "2", the upper right corner of the product shelf area corresponds to the individual area "4", and the product shelf area. The lower right corner corresponds to the individual area "6", and the lower left corner of the product shelf area corresponds to the individual area "8".

一方、個別領域の固有の番号が奇数のとき(S408の「奇数」)、焦点位置設定部235は、個別領域において、商品棚領域の各辺の中点に最も近い表示札Pを端部表示札として特定する(S410)。換言すれば、焦点位置設定部235は、個別領域において、商品棚領域の端部に近い表示札Pのうち、中心商品コードに最も近い表示札Pを端部表示札として特定する。すなわち、例えば、焦点位置設定部235は、各表示札Pの重心の座標を特定し、同座標と商品棚領域の各辺の中点の座標との間の距離が最も近い表示札Pを端部表示札として特定する。ここで、「商品棚領域の各辺」は、各個別領域に対応する辺である。すなわち、例えば、本実施の形態において、商品棚領域の上辺が個別領域「3」に対応し、商品棚領域の右辺が個別領域「5」に対応し、商品棚領域の下辺が個別領域「7」に対応し、商品棚領域の左辺が個別領域「9」に対応する。 On the other hand, when the unique number of the individual area is an odd number (“odd number” in S408), the focal position setting unit 235 displays the display tag P closest to the midpoint of each side of the product shelf area at the end of the individual area. Specify as a tag (S410). In other words, the focal position setting unit 235 specifies the display tag P closest to the central product code among the display tags P near the end of the product shelf area as the end display tag in the individual area. That is, for example, the focal position setting unit 235 specifies the coordinates of the center of gravity of each display tag P, and ends the display tag P having the shortest distance between the coordinates and the coordinates of the midpoint of each side of the product shelf area. Specify as a department display tag. Here, "each side of the product shelf area" is a side corresponding to each individual area. That is, for example, in the present embodiment, the upper side of the product shelf area corresponds to the individual area "3", the right side of the product shelf area corresponds to the individual area "5", and the lower side of the product shelf area corresponds to the individual area "7". , And the left side of the product shelf area corresponds to the individual area “9”.

次いで、焦点位置設定部235は、端部表示札に対応する2つの商品コードのうち、上側に配置された商品コードを端部商品コードとして特定する(S411)。 Next, the focus position setting unit 235 identifies the product code arranged on the upper side as the end product code among the two product codes corresponding to the end display tags (S411).

なお、焦点位置設定部は、下側に配置された商品コードを端部商品コードとして特定してもよい。 The focus position setting unit may specify the product code arranged on the lower side as the end product code.

次いで、焦点位置設定部235は、端部商品コードの位置情報を記憶部22から読み出し、端部商品コードの中心に対応する位置情報(中心に対応する画素の座標)を同端部表示札に対応する個別領域の焦点位置として設定する(S412)。焦点位置は、対応する個別領域と、選択パターンと、に関連付けられて記憶部22に記憶される。 Next, the focus position setting unit 235 reads the position information of the end product code from the storage unit 22, and uses the position information (coordinates of the pixels corresponding to the center) corresponding to the center of the end product code on the same end display tag. It is set as the focal position of the corresponding individual area (S412). The focal position is stored in the storage unit 22 in association with the corresponding individual area and the selection pattern.

次いで、焦点位置設定部235は、焦点位置が設定されていない個別領域の有無を判定する(S413)。 Next, the focus position setting unit 235 determines the presence or absence of an individual region in which the focus position is not set (S413).

焦点位置が設定されていない個別領域が有るとき(S413の「Y」)、焦点位置設定部235は、処理(S407~S413)を実行する。 When there is an individual area in which the focal position is not set (“Y” in S413), the focal position setting unit 235 executes the process (S407 to S413).

一方、焦点位置が設定されていない個別領域が無いとき(S413の「N」)、焦点位置設定部235は、第2焦点位置設定処理(S4)を終了する。 On the other hand, when there is no individual area in which the focal position is not set (“N” in S413), the focal position setting unit 235 ends the second focal position setting process (S4).

このように、第2焦点位置設定処理(S4)において、焦点位置設定部235は、選択パターンに含まれる個別領域それぞれにおいて検出された表示札Pのうち、商品棚領域の角部または各辺の中点に最も近い表示札Pを端部表示札として特定する。換言すれば、焦点位置設定部235は、個別領域において、商品棚領域の端部に近く、かつ、中心商品コードから最も離れた表示札P、または、商品棚領域の端部に近い表示札Pのうち、中心商品コードに最も近い表示札P、を端部表示札として特定する。 As described above, in the second focus position setting process (S4), the focus position setting unit 235 is the corner portion or each side of the product shelf area among the display tags P detected in each of the individual areas included in the selection pattern. The display tag P closest to the midpoint is specified as the end display tag. In other words, the focal position setting unit 235 is the display tag P that is close to the end of the product shelf area and is the furthest from the central product code, or the display tag P that is closest to the end of the product shelf area in the individual area. Of these, the display tag P closest to the central product code is specified as the end display tag.

また、焦点位置設定部235は、端部表示札に対応する2つの商品コードのうち、上側に配置された商品コードを端部商品コードとして特定する。換言すれば、焦点位置設定部235は、上側に配置された商品コードのうち、商品棚領域の端部に近く、かつ、中心商品コードから最も離れた商品コード、または、商品棚領域の端部に近い商品コードのうち、中心商品コードに最も近い商品コード、を端部商品コードとして特定する。つまり、焦点位置設定部235は、検出部233により検出された商品コードのうち、中心商品コードを除く商品コードそれぞれと、中心商品コードと、の位置関係に基づいて、個別領域それぞれにおいて検出された商品コードのうち、1の商品コードを選択し、その位置情報に基づいて焦点位置を設定する。 Further, the focus position setting unit 235 specifies the product code arranged on the upper side as the end product code among the two product codes corresponding to the end display tags. In other words, the focal position setting unit 235 is the product code located near the end of the product shelf area and the farthest from the central product code, or the end of the product shelf area among the product codes arranged on the upper side. Among the product codes close to, the product code closest to the central product code is specified as the end product code. That is, the focal position setting unit 235 is detected in each of the individual regions based on the positional relationship between each product code excluding the central product code and the central product code among the product codes detected by the detection unit 233. One product code is selected from the product codes, and the focal position is set based on the position information.

図17は、第3焦点位置設定処理(S5)のフローチャートである。
「第3焦点位置設定処理(S5)」は、商品棚領域に対する特定領域(表示札領域)の位置関係に基づいて、選択パターンに含まれる各個別領域の焦点位置を設定する処理である。第3焦点位置設定処理(S5)において、表示札領域は、特定領域として扱われる。第3焦点位置設定処理(S5)は、本発明における焦点位置設定ステップの例である。
FIG. 17 is a flowchart of the third focal position setting process (S5).
The "third focal position setting process (S5)" is a process of setting the focal position of each individual area included in the selection pattern based on the positional relationship of the specific area (display tag area) with respect to the product shelf area. In the third focus position setting process (S5), the display tag area is treated as a specific area. The third focal position setting process (S5) is an example of the focal position setting step in the present invention.

先ず、焦点位置設定部235は、基準画像に対応する商品棚領域と、表示札領域とその位置情報と、を記憶部22から読み出す(S501)。 First, the focal position setting unit 235 reads out the product shelf area corresponding to the reference image, the display tag area, and the position information thereof from the storage unit 22 (S501).

次いで、焦点位置設定部235は、焦点位置を設定する設定領域の固有の番号「n」を「1」に設定する(S502)。 Next, the focal position setting unit 235 sets the unique number “n” of the setting area for setting the focal position to “1” (S502).

次いで、焦点位置設定部235は、個別領域「1」において、検出部233により検出された全ての表示札領域と、その位置情報(座標)と、を特定する(S503)。 Next, the focus position setting unit 235 specifies all the display tag areas detected by the detection unit 233 and the position information (coordinates) thereof in the individual area "1" (S503).

次いで、焦点位置設定部235は、商品棚領域の重心の座標を特定し、同座標に最も近い位置情報を有する表示札領域を特定する(S504)。 Next, the focal position setting unit 235 specifies the coordinates of the center of gravity of the product shelf area, and specifies the display tag area having the position information closest to the coordinates (S504).

なお、焦点位置設定部は、商品棚領域の重心に代えて、基準画像の中心位置の座標を特定し、同座標に最も近い位置情報を有する表示札領域を特定してもよい。 The focal position setting unit may specify the coordinates of the center position of the reference image instead of the center of gravity of the product shelf area, and may specify the display tag area having the position information closest to the coordinates.

次いで、焦点位置設定部235は、個別領域「1」において特定された表示札領域の重心の座標を個別領域「1」の焦点位置として設定する(S505)。焦点位置は、対応する個別領域と、選択パターンと、に関連付けられて記憶部22に記憶される。 Next, the focal position setting unit 235 sets the coordinates of the center of gravity of the display tag area specified in the individual area "1" as the focal position of the individual area "1" (S505). The focal position is stored in the storage unit 22 in association with the corresponding individual area and the selection pattern.

次いで、焦点位置設定部235は、焦点位置を設定する個別領域のうち、固有の番号が偶数(「2,4,6,8」)の個別領域を特定個別領域として特定し、固有の番号が奇数(「3,5,7,9」)の個別領域を非特定個別領域として特定する(S506)。「特定個別領域」は、個別領域のうち、商品棚領域の角部を含む個別領域である。「非特定個別領域」は、個別領域のうち、特定個別領域の間に位置する個別領域である。すなわち、個別領域は、特定個別領域と非特定個別領域とを含む。 Next, the focus position setting unit 235 identifies the individual area having an even number (“2, 4, 6, 8”) among the individual areas for setting the focus position as the specific individual area, and the unique number is assigned. An odd number (“3, 5, 7, 9”) individual area is specified as a non-specific individual area (S506). The "specific individual area" is an individual area including a corner portion of the product shelf area among the individual areas. The "non-specific individual area" is an individual area located between the specific individual areas among the individual areas. That is, the individual area includes a specific individual area and a non-specific individual area.

次いで、焦点位置設定部235は、焦点位置が未設定の特定個別領域のうち、固有の番号が最小の特定個別領域を選択する(S507)。 Next, the focus position setting unit 235 selects the specific individual area having the smallest unique number among the specific individual areas in which the focus position has not been set (S507).

次いで、焦点位置設定部235は、特定個別領域において、商品棚領域の角部に最も近い表示札領域を特定する(S508)。 Next, the focal position setting unit 235 identifies the display tag area closest to the corner of the product shelf area in the specific individual area (S508).

次いで、焦点位置設定部235は、特定された表示札領域の中心線上であって、同表示札領域に隣接する商品棚領域の端部から所定の長さX方向の内側に位置する点の座標を対応する特定個別領域の焦点位置として設定する(S509)。焦点位置は、対応する個別領域(特定個別領域)と、選択パターンと、に関連付けられて記憶部22に記憶される。 Next, the focus position setting unit 235 is the coordinates of a point located on the center line of the specified display tag area and inside the predetermined length X direction from the end of the product shelf area adjacent to the display tag area. Is set as the focal position of the corresponding specific individual region (S509). The focal position is stored in the storage unit 22 in association with the corresponding individual area (specific individual area) and the selection pattern.

次いで、焦点位置設定部235は、焦点位置が未設定の特定個別領域の有無を判定する(S510)。焦点位置が未設定の特定個別領域が有るとき(S510の「Y」)、焦点位置設定部235は、処理(S507~S509)を実行する。 Next, the focal position setting unit 235 determines the presence or absence of a specific individual region in which the focal position has not been set (S510). When there is a specific individual area in which the focal position has not been set (“Y” in S510), the focal position setting unit 235 executes processing (S507 to S509).

一方、焦点位置が未設定の特定個別領域が無いとき(S510の「N」)、焦点位置が未設定の非特定個別領域のうち、固有の番号が最小の非特定個別領域を選択する(S511)。 On the other hand, when there is no specific individual area for which the focal position has not been set (“N” in S510), the non-specific individual area having the smallest unique number is selected from the non-specific individual areas for which the focal position has not been set (S511). ).

次いで、焦点位置設定部235は、選択された非特定個別領域に隣接する2つの特定個別領域に設定された焦点位置を結んだ線分を生成し、同線分の中点の座標、または、同線分と同線分の中点に最も近い表示札領域の中心線との交点、を非特定個別領域の焦点位置として設定する(S512)。すなわち、例えば、非特定個別領域「3」の焦点位置は、特定個別領域「2」「4」の焦点位置を結んだ線分の中点の座標である。焦点位置は、対応する個別領域(非特定個別領域)と、選択パターンと、に関連付けられて記憶部22に記憶される。 Next, the focal position setting unit 235 generates a line segment connecting the focal positions set in the two specific individual regions adjacent to the selected non-specific individual region, and the coordinates of the midpoint of the same line segment, or The intersection of the same line segment and the center line of the display tag area closest to the midpoint of the same line segment is set as the focal position of the non-specific individual area (S512). That is, for example, the focal position of the non-specific individual area "3" is the coordinates of the midpoint of the line segment connecting the focal positions of the specific individual areas "2" and "4". The focal position is stored in the storage unit 22 in association with the corresponding individual area (non-specific individual area) and the selection pattern.

次いで、焦点位置設定部235は、焦点位置が未設定の非特定個別領域の有無を判定する(S513)。焦点位置が未設定の非特定個別領域が有るとき(S513の「Y」)、焦点位置設定部235は、処理(S511~S512)を繰り返す。 Next, the focus position setting unit 235 determines the presence or absence of a non-specific individual region in which the focus position has not been set (S513). When there is a non-specific individual area in which the focal position has not been set (“Y” in S513), the focal position setting unit 235 repeats the process (S511 to S512).

一方、焦点位置が未設定の非特定個別領域が無いとき(S513の「N」)、焦点位置設定部235は、第3焦点位置設定処理(S5)を終了する。 On the other hand, when there is no non-specific individual area in which the focal position has not been set (“N” in S513), the focal position setting unit 235 ends the third focal position setting process (S5).

このように、第3焦点位置設定処理(S5)において、焦点位置設定部235は、商品棚領域に対する特定個別領域の位置関係に基づいて、特定個別領域に対応する焦点位置を設定し、特定個別領域に設定された焦点位置に基づいて、非特定個別領域に対応する焦点位置を設定する。 As described above, in the third focal position setting process (S5), the focal position setting unit 235 sets the focal position corresponding to the specific individual area based on the positional relationship of the specific individual area with respect to the product shelf area, and sets the specific individual area. Based on the focal position set in the area, the focal position corresponding to the non-specific individual area is set.

図12にもどる。
次いで、信号生成部236は、選択パターンと、選択パターンに含まれる個別領域に設定された焦点位置と、を記憶部22から読み出す(S204)。
Return to FIG.
Next, the signal generation unit 236 reads out the selection pattern and the focal position set in the individual area included in the selection pattern from the storage unit 22 (S204).

次いで、信号生成部236は、読み出した選択パターンと焦点位置とに基づいて、選択パターンの各焦点位置それぞれに焦点を合わせた複数の焦点変更画像を、撮像装置10に撮像させる制御信号を生成する(S205)。制御信号は、記憶部22に記憶される。 Next, the signal generation unit 236 generates a control signal for the image pickup device 10 to capture a plurality of focus change images focused on each focus position of the selection pattern based on the read selection pattern and the focus position. (S205). The control signal is stored in the storage unit 22.

●焦点変更画像撮像処理
図18は、焦点変更画像撮像処理(S6)のフローチャートである。
「焦点変更画像撮像処理(S6)」は、制御信号に基づいて、撮像装置10が焦点変更画像を撮像する処理である。
● Focus-changing image imaging process FIG. 18 is a flowchart of the focus-changing image imaging process (S6).
The “focus change image imaging process (S6)” is a process in which the image pickup apparatus 10 acquires a focus change image based on a control signal.

先ず、本装置20の制御部23は、制御信号を記憶部22から読み出す(S601)。 First, the control unit 23 of the present device 20 reads out the control signal from the storage unit 22 (S601).

次いで、制御部23は、通信部21を介して、制御信号の生成の基となった基準画像を撮像した撮像装置10に制御信号を送信する(S602)。 Next, the control unit 23 transmits the control signal to the image pickup device 10 that has captured the reference image that is the basis of the generation of the control signal via the communication unit 21 (S602).

次いで、撮像装置10の制御部13は、通信部11を介して、本装置20からの制御信号を受信する(S603)。制御信号は、制御部13に伝送される。 Next, the control unit 13 of the image pickup apparatus 10 receives the control signal from the apparatus 20 via the communication unit 11 (S603). The control signal is transmitted to the control unit 13.

次いで、制御部13は、制御信号に基づいて、各焦点位置に焦点を合わせた焦点変更画像を撮像する(S604)。焦点変更画像は、焦点位置の数と同数撮像される。 Next, the control unit 13 captures a focus change image focused on each focal position based on the control signal (S604). The number of focus change images is captured as many as the number of focus positions.

次いで、制御部13は、各焦点変更画像に対して、焦点のずれ(いわゆるピンボケ)の有無を判定する(S605)。 Next, the control unit 13 determines whether or not there is a focus shift (so-called out-of-focus) for each focus change image (S605).

焦点が適切なとき(S605の「Y」)、制御部13は、公知の画像認識処理を用いて、焦点変更画像に人が含まれていないか否かを判定する(S606)。 When the focus is appropriate (“Y” in S605), the control unit 13 uses a known image recognition process to determine whether or not a person is included in the focus change image (S606).

焦点が不適切なとき(S605の「N」)、または、焦点変更画像に人が含まれているとき(S606の「Y」)、制御部13は、該当する焦点変更画像に対応する焦点位置を記憶部12から読み出して(S607)、処理(S604)を実行する。 When the focus is inappropriate (“N” in S605) or when a person is included in the focus change image (“Y” in S606), the control unit 13 controls the focus position corresponding to the corresponding focus change image. Is read from the storage unit 12 (S607), and the process (S604) is executed.

一方、焦点変更画像に人が含まれていないとき(S606の「N」)、制御部13は、各焦点変更画像それぞれを対応する焦点位置に関連付けると共に、各焦点変更画像を相互に関連付けて1組の焦点変更画像群として記憶部12に記憶する(S608)。 On the other hand, when the focus change image does not include a person (“N” in S606), the control unit 13 associates each focus change image with the corresponding focus position and associates the focus change images with each other. It is stored in the storage unit 12 as a set of focus change image groups (S608).

次いで、制御部13は、焦点変更画像群を記憶部12から読み出して、通信部11を介して、本装置20に送信する(S609)。 Next, the control unit 13 reads out the focus change image group from the storage unit 12 and transmits it to the apparatus 20 via the communication unit 11 (S609).

次いで、本装置20の制御部23(取得部231)は、通信部21を介して、撮像装置10からの焦点変更画像群を受信する(取得する)(S610)。このとき、制御部23(取得部231)は、例えば、焦点変更画像群を撮像した撮像装置10を識別する情報(例えば、ID情報)も受信する(取得する)。焦点変更画像群は、焦点変更画像群を撮像した撮像装置10を識別する情報に関連付けられて記憶部22に記憶される。 Next, the control unit 23 (acquisition unit 231) of the apparatus 20 receives (acquires) the focus change image group from the image pickup apparatus 10 via the communication unit 21 (S610). At this time, the control unit 23 (acquisition unit 231) also receives (acquires), for example, information (for example, ID information) for identifying the image pickup device 10 that has captured the focus change image group. The focus change image group is stored in the storage unit 22 in association with the information that identifies the image pickup device 10 that has captured the focus change image group.

●商品情報統合処理
図19は、商品情報統合処理(S7)のフローチャートである。
「商品情報統合処理(S7)」は、焦点変更画像に基づいて、本装置20が焦点変更画像ごとの商品情報を取得・統合し、商品棚Sに付された商品コードに対応する商品情報を取得する処理である。商品情報統合処理(S7)は、本発明における情報特定ステップの例である。以下の説明において、個別領域「n」に設定された焦点位置で撮像された焦点変更画像を「焦点変更画像「n」」と表記する。すなわち、例えば、個別領域「1」に設定された焦点位置で撮像された焦点変更画像は、焦点変更画像「1」と表記する。
● Product information integration process FIG. 19 is a flowchart of the product information integration process (S7).
In the "product information integration process (S7)", the apparatus 20 acquires and integrates the product information for each focus change image based on the focus change image, and obtains the product information corresponding to the product code attached to the product shelf S. It is a process to acquire. The product information integration process (S7) is an example of the information specifying step in the present invention. In the following description, the focus change image captured at the focus position set in the individual area “n” is referred to as “focus change image“ n ””. That is, for example, the focus change image captured at the focus position set in the individual area "1" is referred to as the focus change image "1".

先ず、検出部233は、焦点変更画像群を記憶部22から読み出す(S701)。 First, the detection unit 233 reads out the focus change image group from the storage unit 22 (S701).

次いで、検出部233は、焦点変更画像ごとに、商品コードを検出する(S702)。このとき、検出部233は、例えば、処理(S104,S109)と同様に、表示札Pを検出し、検出された表示札Pに対応する商品コードを検出し、その位置情報を特定する。検出された商品コードは、例えば、商品コードの位置情報ごとに割り当てられた番号と商品コードの位置情報と共に、焦点変更画像に関連付けられて記憶部22に記憶される。 Next, the detection unit 233 detects the product code for each focus change image (S702). At this time, the detection unit 233 detects the display tag P, detects the product code corresponding to the detected display tag P, and specifies the position information thereof, for example, as in the process (S104, S109). The detected product code is, for example, stored in the storage unit 22 in association with the focus change image together with the number assigned for each product code position information and the product code position information.

次いで、情報特定部237は、焦点変更画像ごとに、商品コードに基づいて、商品コードに対応する商品情報を特定する(S703)。すなわち、情報特定部237は、焦点変更画像ごとに、商品コードをデコード(識別)する。商品情報は、対応する商品コードの位置情報と、対応する焦点変更画像と、に関連付けられて記憶部22に記憶される。 Next, the information specifying unit 237 specifies the product information corresponding to the product code for each focus change image (S703). That is, the information specifying unit 237 decodes (identifies) the product code for each focus change image. The product information is stored in the storage unit 22 in association with the position information of the corresponding product code and the corresponding focus change image.

次いで、情報特定部237は、焦点変更画像間において商品コードそれぞれの位置情報を比較する(S704)。すなわち、例えば、情報特定部237は、焦点変更画像「1」の各商品コードの位置情報と、焦点変更画像「2」~[9]それぞれの各商品コードの位置情報と、を比較する。 Next, the information specifying unit 237 compares the position information of each product code between the focus change images (S704). That is, for example, the information specifying unit 237 compares the position information of each product code of the focus change image "1" with the position information of each product code of the focus change images "2" to [9].

次いで、情報特定部237は、焦点変更画像間において共通する距離範囲「L1」内に位置する商品コードを、焦点変更画像間で同一の商品コードに対応する商品コード群として特定する(S705)。すなわち、情報特定部237は、各焦点変更画像において略同じ位置に撮像されている商品コードを同一の商品コードであると推定し、これらの商品コードを同一の商品コードの集合である商品コード群として特定する。「距離範囲「L1」」は、複数の焦点変更画像間に亘って、焦点変更画像同士の商品コードを商品棚Sの同じ位置に付された商品コードとして特定する範囲である。すなわち、例えば、焦点変更画像「1」のある商品コード「α」と、焦点変更画像「2」のある商品コード「β」と、の間の距離が距離範囲「L1」以内のとき、商品コード「α」と商品コード「β」とは、商品棚Sの同じ位置に付された商品コード(すなわち、同じ商品コード)として特定される。 Next, the information specifying unit 237 identifies the product code located within the common distance range “L1” between the focus change images as a product code group corresponding to the same product code between the focus change images (S705). That is, the information specifying unit 237 estimates that the product codes imaged at substantially the same position in each focus change image are the same product code, and these product codes are a set of the same product code, which is a product code group. Specify as. The “distance range“ L1 ”” is a range for specifying the product code of the focus change images as the product code attached to the same position on the product shelf S over the plurality of focus change images. That is, for example, when the distance between the product code "α" having the focus change image "1" and the product code "β" having the focus change image "2" is within the distance range "L1", the product code. The "α" and the product code "β" are specified as product codes (that is, the same product code) attached to the same position on the product shelf S.

次いで、情報特定部237は、商品コード群ごとに、商品コード群を構成する商品コードに対応する商品情報を比較し、商品コード群に対応する単一の商品情報を特定する(S706)。すなわち、例えば、情報特定部237は、商品コード群ごとに、最も数が多い商品情報を商品コード群に対応する単一の商品情報として特定する。つまり、情報特定部237は、商品コード群ごとに商品情報を統合して、商品コード群に対応する単一の商品情報を特定する。単一の商品情報は、対応する商品コード群に関連付けられて記憶部22に記憶される。 Next, the information specifying unit 237 compares the product information corresponding to the product code constituting the product code group for each product code group, and identifies a single product information corresponding to the product code group (S706). That is, for example, the information specifying unit 237 specifies the product information having the largest number for each product code group as a single product information corresponding to the product code group. That is, the information specifying unit 237 integrates the product information for each product code group and identifies a single product information corresponding to the product code group. The single product information is associated with the corresponding product code group and stored in the storage unit 22.

なお、情報特定部は、商品コード群ごとに、重複する商品情報を削除して、残った商品情報を、商品コード群に対応する単一の商品情報として特定してもよい。 The information specifying unit may delete duplicate product information for each product code group and specify the remaining product information as a single product information corresponding to the product code group.

このように、本装置20は、各焦点変更画像において検出された商品コードに対応する商品情報を特定し、焦点変更画像間において商品コードそれぞれの位置情報を比較して商品コード群を特定し、商品コード群に含まれる複数の商品コードに対応する商品情報に基づいて、商品コード群に対応する単一の商品情報を特定する。すなわち、本装置20は、いわゆるマルチフォーカスポイントで撮像された焦点変更画像同士を合成するのではなく、同焦点変更画像において特定された商品情報を統合して、焦点変更画像に撮像された商品棚Sの単一の商品情報を特定する。 In this way, the present device 20 identifies the product information corresponding to the product code detected in each focus change image, compares the position information of each product code between the focus change images, and identifies the product code group. A single product information corresponding to a product code group is specified based on the product information corresponding to a plurality of product codes included in the product code group. That is, the present device 20 does not synthesize the focus change images captured by the so-called multi-focus points, but integrates the product information specified in the same focus change image and captures the product shelf in the focus change image. Identify a single product information for S.

また、本装置20は、前述の本方法により、1枚の撮像画像に基づいて、各焦点変更画像の焦点位置を特定し、焦点変更画像において検出された商品コードに基づいて撮像装置に対応する商品棚に陳列された商品の商品情報をより正確に特定できる。そして、本装置20は、特定された商品情報に基づいて、棚割作成や、商品棚ごとの欠品検知などの商品管理を高い確度で実行できる。 Further, the present device 20 identifies the focal position of each focus change image based on one captured image by the above-mentioned method, and corresponds to the image pickup device based on the product code detected in the focus change image. It is possible to more accurately identify the product information of the products displayed on the product shelves. Then, the present device 20 can execute product management such as shelf allocation creation and shortage detection for each product shelf with high accuracy based on the specified product information.

●まとめ
以上説明した実施の形態によれば、本システム1(本装置20)は、複数の焦点位置パターンを記憶する記憶部22と、商品棚領域に撮像されている複数の特定領域を検出する検出部233と、記憶部22に記憶されている複数の焦点位置パターンのうち、検出部233の検出結果に応じた1の焦点位置パターンを、選択パターンとして選択する選択部234と、を有してなる。この構成によれば、本システム1(本装置20)は、検出部233の検出結果に応じた1の焦点位置パターンを選択パターンとして選択するだけで、いわゆるマルチフォーカスポイントの焦点位置を設定する領域(個別領域)の組み合わせを特定できる。
● Summary According to the embodiment described above, the system 1 (device 20) detects a storage unit 22 that stores a plurality of focal position patterns and a plurality of specific areas imaged in the product shelf area. It has a detection unit 233 and a selection unit 234 that selects one focal position pattern according to the detection result of the detection unit 233 as a selection pattern among a plurality of focal position patterns stored in the storage unit 22. Become. According to this configuration, the system 1 (device 20) simply selects the focal position pattern of 1 according to the detection result of the detection unit 233 as the selection pattern, and sets the focal position of the so-called multi-focus point. The combination of (individual areas) can be specified.

また、以上説明した実施の形態によれば、本システム1(本装置20)は、検出部233により検出された特定領域に基づいて、選択パターンに含まれる複数の個別領域ごとに、焦点位置を設定する焦点位置設定部235、を有してなる。この構成によれば、本システム1(本装置20)は、基準画像として取得した撮像画像ごとに、各選択パターンに含まれる個別領域ごとの焦点位置を特定領域の情報を用いて容易に設定できる。換言すれば、本システム1(本装置20)は、撮像装置10の撮像条件(画素数、画角など)や撮像環境(明るさなど)に応じて、撮像画像ごとに焦点位置を設定できる。 Further, according to the embodiment described above, the system 1 (device 20) sets the focal position for each of a plurality of individual areas included in the selection pattern based on the specific area detected by the detection unit 233. It has a focal position setting unit 235 to be set. According to this configuration, the system 1 (device 20) can easily set the focal position for each individual region included in each selection pattern for each captured image acquired as a reference image by using the information of the specific region. .. In other words, the system 1 (device 20) can set the focal position for each captured image according to the imaging conditions (number of pixels, angle of view, etc.) and imaging environment (brightness, etc.) of the imaging device 10.

さらに、以上説明した実施の形態によれば、本システム1(本装置20)は、複数の焦点位置それぞれに焦点を合わせた複数の焦点変更画像を撮像装置10に撮像させる制御信号を生成する信号生成部236と、制御信号に基づいて動作が制御された撮像装置10により撮像された複数の焦点変更画像に基づいて、商品コードに対応する商品情報を特定する情報特定部237と、を有してなる。この構成によれば、本システム1(本装置20)は、基準画像として取得した撮像画像ごとに、いわゆるマルチフォーカスポイントで撮像された焦点変更画像それぞれから商品コードを識別して、商品コードに対応する商品情報を特定できる。 Further, according to the embodiment described above, the system 1 (device 20) generates a control signal for causing the image pickup device 10 to capture a plurality of focus change images focused on each of the plurality of focus positions. It has a generation unit 236 and an information identification unit 237 that specifies product information corresponding to a product code based on a plurality of focus change images captured by an image pickup device 10 whose operation is controlled based on a control signal. It becomes. According to this configuration, the system 1 (device 20) identifies the product code from each of the focus change images captured at the so-called multi-focus points for each captured image acquired as the reference image, and corresponds to the product code. You can specify the product information to be used.

このように、本システム1(本装置20)は、商品棚Sを撮像した撮像画像において、全ての商品コードを識別可能な状態で撮像できる。そのため、撮像画像に撮像された商品コードの認識精度は、向上する。その結果、本システム1(本装置20)は、正確性の高い商品管理(棚割作成や欠品検知など)に活用できる。 As described above, the system 1 (device 20) can capture all the product codes in the captured image of the product shelf S in a distinguishable state. Therefore, the recognition accuracy of the product code captured in the captured image is improved. As a result, the system 1 (device 20) can be utilized for highly accurate product management (such as shelving allocation creation and shortage detection).

さらにまた、以上説明した実施の形態によれば、選択部234は、検出部233により検出された複数の商品コードの画素情報(位置情報、鮮明度)に基づいて、選択パターンを選択する。この構成によれば、本システム1(本装置20)は、商品情報をデコードするために正確な検出を必要とする商品コードの位置情報または鮮明度に基づいて、選択パターンを選択できる。その結果、本システム1(本装置20)は、商品コードを正確に検出可能な選択パターンを選択できる。その結果、本システム1(本装置20)は、正確性の高い商品管理に活用できる。 Furthermore, according to the embodiment described above, the selection unit 234 selects a selection pattern based on the pixel information (position information, sharpness) of the plurality of product codes detected by the detection unit 233. According to this configuration, the system 1 (device 20) can select a selection pattern based on the position information or sharpness of the product code that requires accurate detection in order to decode the product information. As a result, the system 1 (device 20) can select a selection pattern that can accurately detect the product code. As a result, the system 1 (device 20) can be utilized for highly accurate product management.

さらにまた、以上説明した実施の形態によれば、焦点位置設定部235は、個別領域それぞれにおいて検出された複数の商品コードのうち、鮮明度が所定の閾値V1以上、かつ、最小となる商品コードを選択し、選択された商品コードの位置情報に基づいて、焦点位置を設定する。すなわち、焦点位置設定部235は、検出部233により検出された商品コードそれぞれの鮮明度に基づいて、焦点位置を設定する。通常、撮像画像から商品コードをデコードする場合、商品コードの鮮明度(コントラスト)は、商品コードのデコード(識別)に大きな影響を与える要素である。この構成によれば、焦点位置設定部235は、個別領域において検出された商品コードのうち、識別可能な下限値に近い鮮明度の商品コードに合わせて焦点位置を設定できる。すなわち、本システム1(本装置20)は、個別領域における商品コードの位置に係わらず、焦点位置変更画像においても確実に識別可能で、かつ、対応する個別領域内の他の商品コードの識別を向上可能な商品コードに焦点位置を設定できる。その結果、本システム1(本装置20)は、正確性の高い商品管理に活用できる。 Furthermore, according to the embodiment described above, the focal position setting unit 235 has the product code having a sharpness of a predetermined threshold value V1 or more and the minimum among the plurality of product codes detected in each of the individual regions. Select and set the focal position based on the position information of the selected product code. That is, the focal position setting unit 235 sets the focal position based on the sharpness of each product code detected by the detection unit 233. Usually, when a product code is decoded from a captured image, the sharpness (contrast) of the product code is a factor that greatly affects the decoding (identification) of the product code. According to this configuration, the focal position setting unit 235 can set the focal position according to the product code having a sharpness close to the identifiable lower limit value among the product codes detected in the individual regions. That is, the system 1 (device 20) can reliably identify the product code in the focal position change image regardless of the position of the product code in the individual area, and can identify other product codes in the corresponding individual area. You can set the focus position on the product code that can be improved. As a result, the system 1 (device 20) can be utilized for highly accurate product management.

さらにまた、以上説明した実施の形態によれば、焦点位置設定部235は、個別領域ごとに、商品棚領域の端部に近く、かつ、中心商品コードから最も離れた商品コード、または、端部に近い商品コードのうち、中心商品コードに最も近い商品コード、のいずれかの商品コードを選択し、選択された商品コードの位置情報に基づいて、焦点位置を設定する。すなわち、焦点位置設定部235は、検出部233により検出された商品コードそれぞれの間の位置関係に基づいて、焦点位置を設定する。通常、撮像装置10は、画角の中心付近に焦点位置を合わせて撮像画像を撮像する。そして、撮像画像において、焦点は、撮像時の焦点位置から離れるに連れて、ずれ易くなる。この構成によれば、焦点位置設定部235は、個別領域において検出された商品コードのうち、焦点がずれ易い商品コード(焦点がずれている商品コード)に合わせて焦点位置を設定できる。すなわち、本システム1(本装置20)は、例えば、棚割変更などで個別領域内の商品コードの位置が変更されたとしても、焦点がずれ易い商品コード(焦点がずれている商品コード)に合わせて焦点位置を設定できる。その結果、本システム1(本装置20)は、正確性の高い商品管理に活用できる。 Furthermore, according to the embodiment described above, the focal position setting unit 235 is the product code or the end portion which is close to the end portion of the product shelf area and is the farthest from the central product code for each individual area. Among the product codes close to, select one of the product codes closest to the central product code, and set the focal position based on the position information of the selected product code. That is, the focus position setting unit 235 sets the focus position based on the positional relationship between the product codes detected by the detection unit 233. Normally, the image pickup apparatus 10 aligns the focal position with the vicinity of the center of the angle of view and captures the captured image. Then, in the captured image, the focal point tends to shift as the distance from the focal position at the time of imaging increases. According to this configuration, the focal position setting unit 235 can set the focal position according to the product code (the product code that is out of focus) that is easily out of focus among the product codes detected in the individual areas. That is, even if the position of the product code in the individual area is changed due to, for example, a change in shelving allocation, the system 1 (device 20) becomes a product code that is easily out of focus (a product code that is out of focus). You can also set the focal position. As a result, the system 1 (device 20) can be utilized for highly accurate product management.

さらにまた、以上説明した実施の形態によれば、検出部233は、焦点変更画像間において共通する距離範囲「L1」内に位置する商品コードを、焦点変更画像間で同一の商品コードに対応する商品コード群として特定する。情報特定部237は、商品コード群に含まれる複数の商品コードに対応する商品情報に基づいて、商品コード群に対応する商品情報を特定する。この構成によれば、本システム1(本装置20)は、複数の焦点変更画像間においてほぼ同等の位置に検出された商品コードのグループ(商品コード群)を同一の商品コードとして特定し、同グループに対応する単一の商品情報を特定できる。その結果、本システム1(本装置20)は、正確性の高い商品管理に活用できる。 Furthermore, according to the embodiment described above, the detection unit 233 corresponds to the product code located within the common distance range “L1” between the focus change images and the same product code between the focus change images. Specify as a product code group. The information specifying unit 237 identifies the product information corresponding to the product code group based on the product information corresponding to the plurality of product codes included in the product code group. According to this configuration, the system 1 (device 20) identifies a group of product codes (product code group) detected at substantially the same positions among a plurality of focus change images as the same product code, and the same. A single product information corresponding to a group can be identified. As a result, the system 1 (device 20) can be utilized for highly accurate product management.

さらにまた、以上説明した実施の形態によれば、情報特定部237は、焦点変更画像ごとに特定された商品情報を統合して、商品棚に付された表示札それぞれが表示する商品コードに対応する商品情報を特定する。その結果、情報特定部237は、統合した結果、商品コード群ごとに、最も数が多い商品情報を商品コード群に対応する単一の商品情報として特定できる。また、情報特定部は、商品コード群ごとに、重複する商品情報を削除して、残った商品情報を、商品コード群に対応する単一の商品情報として特定できる。その結果、本システム1(本装置20)は、正確性の高い商品管理に活用できる。 Furthermore, according to the embodiment described above, the information specifying unit 237 integrates the product information specified for each focus change image and corresponds to the product code displayed by each display tag attached to the product shelf. Specify the product information to be used. As a result, the information specifying unit 237 can identify the product information having the largest number for each product code group as a single product information corresponding to the product code group as a result of the integration. Further, the information specifying unit can delete duplicate product information for each product code group and specify the remaining product information as a single product information corresponding to the product code group. As a result, the system 1 (device 20) can be utilized for highly accurate product management.

なお、商品棚領域に含まれる個別領域の数は、「9」に限定されない。すなわち、例えば、商品棚領域に含まれる個別領域の数は、「25」でもよく、あるいは、偶数の「4」「6」でもよい。商品棚領域に含まれる個別領域の数が偶数のとき、本発明における焦点位置設定部は、制御信号生成処理において、中心商品コードに代えて、基準画像の中心位置または商品棚領域の重心の座標と、各個別領域の商品コードと、の位置関係に基づいて、焦点位置を設定してもよい。 The number of individual areas included in the product shelf area is not limited to "9". That is, for example, the number of individual areas included in the product shelf area may be "25" or may be an even number of "4" and "6". When the number of individual areas included in the product shelf area is even, the focal position setting unit in the present invention uses the coordinates of the center position of the reference image or the center of gravity of the product shelf area in place of the center product code in the control signal generation process. The focal position may be set based on the positional relationship between the product code of each individual area and the product code of each individual area.

また、本発明における検出部は、判定処理において、表示札を検出しなくてもよい。すなわち、例えば、本発明における検出部は、判定処理において、特定領域として商品コードのみを検出してもよい。 Further, the detection unit in the present invention does not have to detect the display tag in the determination process. That is, for example, the detection unit in the present invention may detect only the product code as a specific area in the determination process.

さらに、本発明における検出部は、判定処理において、商品コードの組に代えて、上側の商品コードのみ(下側の商品コードのみ)を検出してもよい。 Further, the detection unit in the present invention may detect only the upper product code (only the lower product code) instead of the set of product codes in the determination process.

さらにまた、表示札に表示される商品コードの数は「1」でもよい。この場合、本発明における検出部は、判定処理において、表示札ごとに単一の商品コードを検出する。 Furthermore, the number of product codes displayed on the display tag may be "1". In this case, the detection unit in the present invention detects a single product code for each display tag in the determination process.

さらにまた、本発明における検出部は、判定処理において、商品コードの鮮明度を取得しなくてもよい。この場合、鮮明度は、例えば、制御信号生成処理(第1焦点位置設定処理)において取得されてもよい。 Furthermore, the detection unit in the present invention does not have to acquire the sharpness of the product code in the determination process. In this case, the sharpness may be acquired, for example, in the control signal generation process (first focus position setting process).

さらにまた、本発明における検出部は、表示札領域を検出しなくてもよい。この場合、本システム1(本装置20)は、第3焦点位置設定処理を実行しなくてもよい。 Furthermore, the detection unit in the present invention does not have to detect the display tag area. In this case, the system 1 (device 20) does not have to execute the third focal position setting process.

さらにまた、本発明における焦点位置設定部は、制御信号生成処理において、第1~第3設定方式のうち、少なくとも1の設定方式を選択すればよい。すなわち、例えば、本発明における焦点位置設定部は、制御信号生成処理において、第1設定方式または第2設定方式のいずれかのみを選択するように構成されてもよく、あるいは、第3設定方式のみを選択するように構成されてもよい。換言すれば、本発明における記憶部は、第1~第3設定方式のうち、いずれか1つ、または、いずれか2つ、のみを記憶していてもよく、あるいは、第1~第3設定方式以外の設定方式も記憶していてもよい。 Furthermore, the focal position setting unit in the present invention may select at least one setting method from the first to third setting methods in the control signal generation process. That is, for example, the focal position setting unit in the present invention may be configured to select only one of the first setting method and the second setting method in the control signal generation processing, or only the third setting method. May be configured to select. In other words, the storage unit in the present invention may store only one or two of the first to third setting methods, or the first to third settings. A setting method other than the method may be stored.

さらにまた、本発明における焦点位置設定部は、第1焦点位置設定処理において、鮮明度が最小となる商品コードを特定商品コードとして選択してもよい。 Furthermore, the focal position setting unit in the present invention may select the product code having the minimum sharpness as the specific product code in the first focal position setting process.

さらにまた、本発明における焦点位置設定部は、表示札に1の商品コードのみが表示されているとき、第2焦点位置設定処理において、表示札に表示されている商品コードを中心商品コードまたは端部商品コードとして特定してもよい。 Furthermore, when only one product code is displayed on the display tag, the focus position setting unit in the present invention uses the product code displayed on the display tag as the center product code or the end in the second focus position setting process. It may be specified as a department product code.

さらにまた、本発明における焦点位置設定部は、制御信号生成処理において、選択パターンに含まれる個別領域の固有の番号に対応する個別領域における焦点位置のみを設定すればよい。すなわち、例えば、本発明における焦点位置設定部は、選択パターンに含まれる個別領域の固有の番号が「1」「2」「4」「6」「8」のとき、個別領域「1」「2」「4」「6」「8」における焦点位置のみを設定すればよい。 Furthermore, the focal position setting unit in the present invention need only set the focal position in the individual region corresponding to the unique number of the individual region included in the selection pattern in the control signal generation process. That is, for example, the focal position setting unit in the present invention has individual areas "1" and "2" when the unique numbers of the individual areas included in the selection pattern are "1", "2", "4", "6", and "8". It is only necessary to set the focal position in "4", "6", and "8".

さらにまた、本発明における選択部は、情報特定部が商品コードに対応する商品情報を特定できないとき、商品情報が特定されていない商品コードの位置情報に基づいて、選択パターンとは異なる焦点位置パターンを新たな選択パターンとして選択してもよい。この構成によれば、本システム(本装置)は、より正確に商品情報を取得できる。 Furthermore, the selection unit in the present invention has a focus position pattern different from the selection pattern based on the position information of the product code for which the product information is not specified when the information identification unit cannot specify the product information corresponding to the product code. May be selected as a new selection pattern. According to this configuration, this system (this device) can acquire product information more accurately.

さらにまた、本発明における撮像装置が本装置として機能してもよい。 Furthermore, the image pickup apparatus in the present invention may function as the present apparatus.

さらにまた、本発明における取得部と、領域特定部と、検出部と、選択部と、焦点位置設定部と、信号生成部と、情報特定部とは、共通するプロセッサと半導体メモリとにより構成されてもよく、あるいは、複数のプロセッサと半導体メモリとにより構成されてもよい。 Furthermore, the acquisition unit, the area identification unit, the detection unit, the selection unit, the focal position setting unit, the signal generation unit, and the information identification unit in the present invention are composed of a common processor and a semiconductor memory. It may be composed of a plurality of processors and a semiconductor memory.

さらにまた、以上説明した実施の形態によれば、本装置20は、1つのコンピュータにより構成されていた。これに代えて、本装置は、複数のコンピュータにより構成されてもよい。すなわち、例えば、本装置は、本装置として機能する複数のコンピュータ群で構成されてもよい。具体的には、例えば、本装置(コンピュータ群)は、記憶部を備えるコンピュータと、本方法を実行する制御部を備えるコンピュータと、により構成されてもよい。また、例えば、複数のコンピュータが、取得部、領域特定部、検出部、選択部と、焦点位置設定部、信号生成部および情報特定部それぞれの機能を分散して備えてもよい。この場合、複数のコンピュータは、通信回線を通じて情報の送受信をしてもよく、あるいは、可搬記憶媒体を用いて情報の譲受をしてもよい。 Furthermore, according to the embodiment described above, the present device 20 is composed of one computer. Instead of this, the present device may be composed of a plurality of computers. That is, for example, the present device may be composed of a plurality of computers that function as the present device. Specifically, for example, the present apparatus (computer group) may be composed of a computer including a storage unit and a computer including a control unit for executing the present method. Further, for example, a plurality of computers may provide the acquisition unit, the area identification unit, the detection unit, the selection unit, and the functions of the focus position setting unit, the signal generation unit, and the information identification unit in a distributed manner. In this case, the plurality of computers may send and receive information through a communication line, or may transfer information using a portable storage medium.

さらにまた、以上説明した本方法において、各処理は、本発明を実施可能であればよく、本実施の形態に限定されない。すなわち、例えば、本方法は、判定処理を有さずに、全ての商品コードが検出可能な撮像画像に対しても実行されてもよく、あるいは、商品棚領域や表示札領域、商品コードの組の検出が制御信号生成処理で実行されてもよい。 Furthermore, in the present method described above, each treatment may be limited to the present embodiment as long as the present invention can be carried out. That is, for example, this method may be executed for a captured image in which all product codes can be detected without performing a determination process, or a product shelf area, a display tag area, and a set of product codes. Detection may be performed in the control signal generation process.

さらにまた、以上説明した実施の形態は、特許請求の範囲に記載される発明の内容を不当に限定するものではない。また、以上説明した実施の形態で説明される構成の全てが、本開示の必須構成要件であるとは限らない。 Furthermore, the embodiments described above do not unreasonably limit the content of the invention described in the claims. Moreover, not all of the configurations described in the embodiments described above are essential constituent requirements of the present disclosure.

1 情報処理システム
10 撮像装置
20 情報処理装置
22 記憶部
231 取得部
232 領域特定部
233 検出部
234 選択部
235 焦点位置設定部
236 信号生成部
237 情報特定部

1 Information processing system 10 Image pickup device 20 Information processing device 22 Storage unit 231 Acquisition unit 232 Area identification unit 233 Detection unit 234 Selection unit 235 Focus position setting unit 236 Signal generation unit 237 Information specification unit

Claims (18)

商品が陳列される商品棚を撮像する撮像装置が撮像した複数の撮像画像に基づいて、前記商品の商品情報を特定する情報処理装置であって、
前記商品棚には、前記商品情報に対応する商品コードを表示する表示札が付され、
前記撮像画像に撮像された前記商品棚の領域は、複数の個別領域、を含み、
複数の前記撮像画像は、焦点位置の異なる複数の焦点変更画像、を含み、
複数の前記個別領域のうち、前記焦点位置が設定される前記個別領域の組み合わせを特定する焦点位置パターンを複数記憶する記憶部と、
前記撮像装置が前記商品棚を撮像した前記撮像画像を基準画像として取得する取得部と、
前記撮像装置の動作を制御する撮像装置制御部と、
前記制御信号に基づいて前記動作が制御された前記撮像装置により撮像された複数の前記焦点変更画像に基づいて、前記商品コードに対応する前記商品情報を特定する情報特定部と、
を有してなり、
前記撮像装置制御部は、
前記基準画像に撮像された前記商品棚の前記領域を特定する領域特定部と、
前記商品棚の前記領域に撮像されている前記商品コードを含む複数の特定領域を検出する検出部と、
前記記憶部に記憶されている複数の前記焦点位置パターンのうち、前記検出部の検出結果に応じた1の前記焦点位置パターンを、選択パターンとして選択する選択部と、
前記検出部により検出された前記特定領域に基づいて、前記選択パターンに含まれる複数の前記個別領域ごとに、前記焦点位置を設定する焦点位置設定部と、
複数の前記焦点位置それぞれに焦点を合わせた複数の前記焦点変更画像を、前記撮像装置に撮像させる前記制御信号を生成する信号生成部と、
を備える、
ことを特徴とする情報処理装置。
An information processing device that identifies product information of the product based on a plurality of captured images captured by an image pickup device that captures an image of the product shelf on which the product is displayed.
A display tag displaying a product code corresponding to the product information is attached to the product shelf.
The area of the product shelf captured in the captured image includes a plurality of individual areas.
The plurality of captured images include a plurality of focus change images having different focal positions.
A storage unit that stores a plurality of focal position patterns that specify a combination of the individual areas in which the focal position is set among the plurality of individual areas.
An acquisition unit that acquires the captured image of the product shelf as a reference image by the imaging device, and
An image pickup device control unit that controls the operation of the image pickup device, and
An information specifying unit that identifies the product information corresponding to the product code based on a plurality of focus change images captured by the image pickup device whose operation is controlled based on the control signal.
Have
The image pickup device control unit is
An area specifying part that specifies the area of the product shelf captured in the reference image, and
A detection unit that detects a plurality of specific areas including the product code imaged in the area of the product shelf, and a detection unit.
A selection unit that selects one of the focal position patterns stored in the storage unit according to the detection result of the detection unit as a selection pattern.
A focal position setting unit that sets the focal position for each of the plurality of individual regions included in the selection pattern based on the specific region detected by the detection unit.
A signal generation unit that generates the control signal for causing the image pickup apparatus to image a plurality of the focus change images focused on each of the plurality of focal positions.
To prepare
An information processing device characterized by this.
前記特定領域は、前記商品コードである、
請求項1記載の情報処理装置。
The specific area is the product code.
The information processing apparatus according to claim 1.
前記選択部は、前記検出部により検出された複数の前記商品コードの画素情報に基づいて、前記選択パターンを選択する、
請求項2記載の情報処理装置。
The selection unit selects the selection pattern based on the pixel information of the plurality of product codes detected by the detection unit.
The information processing apparatus according to claim 2.
前記焦点位置設定部は、前記検出部により検出された前記商品コードそれぞれの鮮明度に基づいて、前記焦点位置を設定する、
請求項2記載の情報処理装置。
The focal position setting unit sets the focal position based on the sharpness of each of the product codes detected by the detection unit.
The information processing apparatus according to claim 2.
前記焦点位置設定部は、
前記個別領域それぞれにおいて検出された複数の前記商品コードのうち、前記鮮明度が所定の閾値以上、かつ、最小となる前記商品コードを選択し、
選択された前記商品コードの位置情報に基づいて、前記焦点位置を設定する、
請求項4記載の情報処理装置。
The focal position setting unit is
From the plurality of product codes detected in each of the individual regions, the product code having the sharpness equal to or higher than a predetermined threshold and the minimum is selected.
The focal position is set based on the position information of the selected product code.
The information processing apparatus according to claim 4.
前記焦点位置設定部は、前記検出部により検出された前記商品コードそれぞれの間の位置関係に基づいて、前記焦点位置を設定する、
請求項2記載の情報処理装置。
The focal position setting unit sets the focal position based on the positional relationship between the product codes detected by the detection unit.
The information processing apparatus according to claim 2.
前記焦点位置設定部は、
前記基準画像において、前記商品棚の前記領域の重心を特定し、
前記重心に最も近い前記商品コードを中心商品コードとして特定し、
前記検出部により検出された前記商品コードのうち、前記中心商品コードを除く前記商品コードそれぞれと、前記中心商品コードと、の前記位置関係に基づいて、前記個別領域それぞれにおいて検出された前記商品コードのうち、1の前記商品コードを選択し、
選択された前記商品コードの位置情報に基づいて、前記焦点位置を設定する、
請求項6記載の情報処理装置。
The focal position setting unit is
In the reference image, the center of gravity of the area of the product shelf is specified.
The product code closest to the center of gravity is specified as the central product code, and the product code is specified.
Among the product codes detected by the detection unit, the product code detected in each of the individual regions based on the positional relationship between each of the product codes excluding the central product code and the central product code. Of these, select the product code of 1 and select
The focal position is set based on the position information of the selected product code.
The information processing apparatus according to claim 6.
前記焦点位置設定部は、前記個別領域ごとに、前記商品棚の前記領域の端部に近く、かつ、前記中心商品コードから最も離れた前記商品コード、または、前記端部に近い前記商品コードのうち、前記中心商品コードに最も近い前記商品コード、のいずれかの前記商品コードを選択する、
請求項7記載の情報処理装置。
The focal position setting unit is the product code of the product code closest to the end of the region of the product shelf and farthest from the center product code, or the product code closest to the end of the product shelf for each individual area. Among them, the product code of any of the product codes closest to the central product code is selected.
The information processing apparatus according to claim 7.
前記記憶部は、前記焦点位置設定部が前記焦点位置を設定する複数の設定方式、を記憶し、
前記設定方式は、
前記基準画像の前記検出部により検出された前記商品コードそれぞれの鮮明度に基づいて、前記焦点位置を設定する第1設定方式と、
前記基準画像の前記検出部により検出された前記商品コードそれぞれの位置情報に基づいて、前記焦点位置を設定する第2設定方式と、
を含み、
前記焦点位置設定部は、前記基準画像の前記検出部により検出された前記商品コードそれぞれの画素情報に基づいて、前記第1設定方式と前記第2設定方式とのいずれかを選択する、
請求項2記載の情報処理装置。
The storage unit stores a plurality of setting methods in which the focal position setting unit sets the focal position.
The setting method is
A first setting method for setting the focal position based on the sharpness of each of the product codes detected by the detection unit of the reference image, and
A second setting method for setting the focal position based on the position information of each of the product codes detected by the detection unit of the reference image, and
Including
The focal position setting unit selects either the first setting method or the second setting method based on the pixel information of each of the product codes detected by the detection unit of the reference image.
The information processing apparatus according to claim 2.
前記検出部は、
前記焦点変更画像ごとに、前記商品棚の前記領域における複数の前記商品コードを検出し、
前記焦点変更画像ごとに検出された前記商品コードそれぞれの位置情報を特定し、
前記焦点変更画像間において前記商品コードそれぞれの前記位置情報を比較し、
前記焦点変更画像間において共通する距離範囲内に位置する前記商品コードを、前記焦点変更画像間で同一の前記商品コードに対応する商品コード群として特定する、
請求項1記載の情報処理装置。
The detector is
For each focus change image, a plurality of the product codes in the area of the product shelf are detected.
The position information of each of the product codes detected for each focus change image is specified, and the position information is specified.
The position information of each of the product codes is compared between the focus change images, and the position information is compared.
The product code located within a common distance range between the focus change images is specified as a product code group corresponding to the same product code between the focus change images.
The information processing apparatus according to claim 1.
前記情報特定部は、前記商品コード群に含まれる複数の前記商品コードに対応する前記商品情報に基づいて、前記商品コード群に対応する前記商品情報を特定する、
請求項10記載の情報処理装置。
The information specifying unit identifies the product information corresponding to the product code group based on the product information corresponding to the plurality of product codes included in the product code group.
The information processing apparatus according to claim 10.
前記情報特定部は、
前記焦点変更画像ごとに、前記商品コードに基づいて、前記商品情報を特定し、
前記焦点変更画像ごとに特定された前記商品情報を統合して、前記商品棚に付された前記表示札それぞれが表示する前記商品コードに対応する前記商品情報を特定する、
請求項9または10記載の情報処理装置。
The information specifying part is
For each focus change image, the product information is specified based on the product code.
The product information specified for each focus change image is integrated to specify the product information corresponding to the product code displayed by each of the display tags attached to the product shelves.
The information processing apparatus according to claim 9 or 10.
前記情報特定部が前記商品コードに対応する前記商品情報を特定できないとき、
前記選択部は、前記商品情報が特定されていない前記商品コードの位置情報に基づいて、前記選択パターンとは異なる前記焦点位置パターンを新たな選択パターンとして選択する、
請求項1記載の情報処理装置。
When the information specifying unit cannot specify the product information corresponding to the product code.
The selection unit selects the focal position pattern different from the selection pattern as a new selection pattern based on the position information of the product code for which the product information is not specified.
The information processing apparatus according to claim 1.
前記焦点位置設定部は、前記商品棚の前記領域に対する前記特定領域の位置関係に基づいて、前記焦点位置を設定し、
前記特定領域は、前記商品棚の前記領域のうち、前記表示札を撮像可能な領域である、
請求項3記載の情報処理装置。
The focal position setting unit sets the focal position based on the positional relationship of the specific area with respect to the area of the product shelf.
The specific area is an area in the area of the product shelf on which the display tag can be imaged.
The information processing apparatus according to claim 3.
前記個別領域は、特定個別領域と非特定個別領域とを含み、
前記焦点位置設定部は、
前記商品棚の前記領域に対する前記特定領域の前記位置関係に基づいて、前記特定個別領域に対応する前記焦点位置を設定し、
前記特定個別領域に設定された前記焦点位置に基づいて、前記非特定個別領域に対応する前記焦点位置を設定する、
請求項14記載の情報処理装置。
The individual area includes a specific individual area and a non-specific individual area.
The focal position setting unit is
Based on the positional relationship of the specific area with respect to the area of the product shelf, the focal position corresponding to the specific individual area is set.
Based on the focal position set in the specific individual area, the focal position corresponding to the non-specific individual area is set.
The information processing apparatus according to claim 14.
コンピュータを請求項1記載の情報処理装置として機能させる、
ことを特徴とする情報処理プログラム。
The computer functions as the information processing device according to claim 1.
An information processing program characterized by this.
商品が陳列される商品棚が撮像された複数の撮像画像に基づいて、前記商品の商品情報を特定する情報処理システムであって、
前記撮像画像を撮像する撮像装置と、
前記商品情報を特定する情報処理装置と、
を有してなり、
前記情報処理装置は、請求項1記載の情報処理装置である、
ことを特徴とする情報処理システム。
An information processing system that identifies product information of the product based on a plurality of captured images of the product shelves on which the product is displayed.
An image pickup device that captures the captured image and
An information processing device that identifies the product information and
Have
The information processing device is the information processing device according to claim 1.
An information processing system characterized by this.
商品が陳列される商品棚を撮像する撮像装置が撮像した複数の撮像画像に基づいて、前記商品の商品情報を特定する情報処理装置により実行される情報処理方法であって、
前記商品棚には、前記商品の商品情報に対応する商品コードを表示する表示札が付され、
前記撮像画像に撮像された前記商品棚の領域は、複数の個別領域、を含み、
複数の前記撮像画像は、焦点位置の異なる複数の焦点変更画像、を含み、
前記情報処理装置は、
複数の前記個別領域のうち、前記焦点位置が設定される前記個別領域の組み合わせを特定する焦点位置パターンを複数記憶する記憶部、
を備え、
前記情報処理装置が、
前記撮像装置が前記商品棚を撮像した前記撮像画像を基準画像として取得する取得ステップと、
前記基準画像に撮像された前記商品棚の前記領域を特定する領域特定ステップと、
前記撮像装置の動作を制御する制御信号を生成する信号生成ステップと、
前記制御信号に基づいて前記動作が制御された前記撮像装置により撮像された複数の前記焦点変更画像に基づいて、前記商品コードに対応する前記商品情報を特定する情報特定ステップと、
を有してなり、
前記信号生成ステップは、
前記商品棚の前記領域に撮像されている前記商品コードを含む特定領域を検出する検出ステップと、
前記記憶部に記憶されている複数の焦点位置パターンのうち、前記検出部の検出結果に応じた1の前記焦点位置パターンを、選択パターンとして選択する選択ステップと、
前記検出ステップにより検出された前記特定領域に基づいて、前記選択パターンに含まれる複数の前記個別領域ごとに、前記焦点位置を設定する焦点位置設定ステップと、
を含み、
前記制御信号は、複数の前記焦点位置それぞれに焦点を合わせた複数の前記焦点変更画像を、前記撮像装置に撮像させる信号である、
ことを特徴とする情報処理方法。

An information processing method executed by an information processing device that specifies product information of the product based on a plurality of captured images captured by an image pickup device that captures an image of the product shelf on which the product is displayed.
A display tag indicating a product code corresponding to the product information of the product is attached to the product shelf.
The area of the product shelf captured in the captured image includes a plurality of individual areas.
The plurality of captured images include a plurality of focus change images having different focal positions.
The information processing device is
A storage unit that stores a plurality of focal position patterns that specify a combination of the individual areas in which the focal position is set among the plurality of individual areas.
Equipped with
The information processing device
An acquisition step in which the image pickup device acquires the captured image as a reference image obtained by capturing the image of the product shelf, and the acquisition step.
An area specifying step for specifying the area of the product shelf captured in the reference image, and
A signal generation step for generating a control signal for controlling the operation of the image pickup device, and
An information identification step for specifying the product information corresponding to the product code based on a plurality of focus change images captured by the image pickup device whose operation is controlled based on the control signal.
Have
The signal generation step is
A detection step for detecting a specific area including the product code imaged in the area of the product shelf, and a detection step.
A selection step of selecting one of the focal position patterns stored in the storage unit according to the detection result of the detection unit as a selection pattern.
A focal position setting step for setting the focal position for each of the plurality of individual regions included in the selection pattern based on the specific region detected by the detection step.
Including
The control signal is a signal for causing the image pickup apparatus to capture a plurality of the focus change images focused on each of the plurality of focal positions.
An information processing method characterized by that.

JP2020145325A 2020-08-31 2020-08-31 Information processing device, information processing system, information processing program, and information processing method Pending JP2022040557A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020145325A JP2022040557A (en) 2020-08-31 2020-08-31 Information processing device, information processing system, information processing program, and information processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020145325A JP2022040557A (en) 2020-08-31 2020-08-31 Information processing device, information processing system, information processing program, and information processing method

Publications (1)

Publication Number Publication Date
JP2022040557A true JP2022040557A (en) 2022-03-11

Family

ID=80499389

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020145325A Pending JP2022040557A (en) 2020-08-31 2020-08-31 Information processing device, information processing system, information processing program, and information processing method

Country Status (1)

Country Link
JP (1) JP2022040557A (en)

Similar Documents

Publication Publication Date Title
US11049279B2 (en) Device for detecting positional relationship among objects
US9961256B2 (en) Apparatus and method for specifying and aiming cameras at shelves
US10796162B2 (en) Information processing apparatus, information processing method, and information processing system
WO2020048492A1 (en) Commodity state identification
US11288627B2 (en) Information processing apparatus, control method, and program
CN111315670B (en) Shelf label detection device, shelf label detection method, and recording medium
US20180101813A1 (en) Method and System for Product Data Review
CN109784323B (en) Image recognition method and device, electronic equipment and computer storage medium
CN111295684A (en) Shelf monitoring device, shelf monitoring method, and shelf monitoring program
JP6789670B2 (en) Image processing device
JP2023520786A (en) Image analysis for tracking, decoding, and locating multiple optical patterns
JP2016099923A (en) Monitoring device, monitoring system, and monitoring method
JP2018131331A (en) Article management device and article management method
JP6610348B2 (en) Management program, management apparatus, and management method
US11514665B2 (en) Mapping optical-code images to an overview image
JP2011150460A (en) System and method for managing warehousing/shipping
JP2019094191A (en) Shelf allocation generation program, shelf allocation generation method and shelf allocation generation device
JP6722438B2 (en) Information processing apparatus, information processing method, and program
US20220292445A1 (en) Work assistance system, work assistance device, work assistance method, and program
TWI631515B (en) System for identifying commodity to display commodity information and method thereof
JP2022040557A (en) Information processing device, information processing system, information processing program, and information processing method
JP2023139297A (en) Business support system, business support apparatus, business support method, and computer program
JP7130945B2 (en) Inventory detection program, inventory detection method and inventory detection device
CN112560563A (en) Article layout identification method and device and electronic equipment
JP7404038B2 (en) Information processing system, information processing device, information processing program, and information processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230712

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240412

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240423