Information processing device, information processing system, information processing program, and information processing method
The system enhances product management accuracy by capturing multiple focus-changed images and adjusting focus positions to ensure all product codes are recognized, addressing the issue of inaccurate planogram information and out-of-stock detection.
Patent Information
- Application Number
- JP2020145325
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-08-31
- Publication Date
- 2024-09-02
- Estimated Expiration
- 2040-08-31
AI Technical Summary
Existing product management technologies struggle with inaccurate planogram information and out-of-stock detection due to the inability to consistently focus on all price tags in captured images, especially at the edges, leading to unclear and low-contrast areas.
An information processing system that identifies product information by capturing multiple focus-changed images of product shelves, selecting a focus position pattern based on detected areas, and controlling the imaging device to adjust focus positions, ensuring all product codes are recognizable.
Improves the accuracy of product management by ensuring all product codes are identified, enabling precise planogram creation and out-of-stock detection.
Smart Images

Figure 0007543035000005 
Figure 0007543035000011 
Figure 0007543035000018
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, an information processing system, an information processing program, and an information processing method. [Background technology]
[0002] In sales floors of supermarkets and convenience stores, if there is a shortage of products on display, sales opportunities for the products are lost and sales at the sales floor decrease. Therefore, sales staff at the sales floor must regularly monitor the products, and if there is a shortage, they must quickly replenish the missing products and resolve the shortage.
[0003] In addition, when displaying products on shelves in the sales area, the allocation of products to shelves (shelf allocation) is an important factor that influences product sales. Therefore, shelf allocation management, such as creating shelf allocations in the sales area, monitoring whether products are displayed according to the shelf allocation, and changing the shelf allocation according to sales and seasons, is often carried out in the sales area.
[0004] In the area of product management, such as preventing out-of-stock items and shelf allocation, a technology has been proposed for managing products using captured images of product shelves on which the products are displayed (see, for example, Patent Document 1).
[0005] The technology disclosed in Patent Document 1 acquires product identification information of products displayed on a product shelf and product identification information on the price tag based on an image of a product shelf with a price tag (product tag) attached, and determines the display status of the product (e.g., whether the product is on display, out of stock, etc.) by comparing the two product identification information. As a result, the technology can accurately determine the display status of products displayed on a product shelf.
[0006] However, this technology is based on the premise that all products and price tags are captured in a captured image in a state in which product identification information can be obtained. Therefore, when the price tags of some products cannot be detected in the captured image, this technology generates erroneous shelf allocation information and / or out-of-stock information. In other words, this technology may generate inaccurate shelf allocation information and / or out-of-stock information. As a result, product management using this technology may lack accuracy.
[0007] In addition, the focus of an image captured by a general imaging device tends to shift as it approaches the outer edge of the captured image, and the image at the outer edge tends to be unclear and low-contrast. Furthermore, on a product shelf, the face of the product is arranged to be aligned with the front of the shelf board (price rail) of the product shelf. Therefore, the front of the product shelf tends to have a uniform texture. As a result, even if focusing (focusing) using an autofocus function is used, it is difficult to focus on the product and product tag in all areas of the captured image.
[0008] As described above, it is highly unlikely that all price tags are captured in a clearly identifiable state in an image of a product shelf. Therefore, there is a demand for a highly accurate product management technology that improves the recognition accuracy of price tags captured in a captured image. [Prior art documents] [Patent documents]
[0009] [Patent Document 1] JP 2019-185684 A Summary of the Invention [Problem to be solved by the invention]
[0010] An object of the present invention is to provide an information processing device, an information processing system, an information processing program, and an information processing method that can improve the accuracy of product management. [Means for solving the problem]
[0011] 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 taken by an imaging device that captures images of a product shelf on which products are displayed, the product shelf is provided with a display tag that displays a product code corresponding to the product information of the product, the product shelf area captured in the captured image includes a plurality of individual areas, the plurality of captured images include a plurality of focus-changed images with different focus positions, and the information processing device includes a memory unit that stores a plurality of focus position patterns that specify a combination of the individual areas among the plurality of individual areas in which a focus position is set, an acquisition unit that acquires an image of the product shelf captured by the imaging device as a reference image, an imaging device control unit that controls the operation of the imaging device, and a plurality of focus change images captured by the imaging device whose operation is controlled based on a control signal. and an information identification unit that identifies product information corresponding to the product code based on the changed image, and the imaging device control unit comprises an area identification unit that identifies the area of the product shelf imaged in the reference image, a detection unit that detects multiple specific areas including the product code imaged in the area of the product shelf, a selection unit that selects one focus position pattern corresponding to the detection result of the detection unit from multiple focus position patterns stored in the memory unit as a selection pattern, a focus position setting unit that sets a focus position for each of multiple individual areas included in the selection pattern based on the specific area detected by the detection unit, and a signal generation unit that generates a control signal to cause the imaging device to capture multiple focus-changed images focused on each of the multiple focus positions. Effect of the Invention
[0012] According to the present invention, the accuracy of product management can be improved. [Brief description of the drawings]
[0013] [Figure 1] 1 is a network configuration diagram showing an embodiment of an information processing system according to the present invention. [Diagram 2] 2 is a functional block diagram of an imaging device included in the information processing system of FIG. 1. [Diagram 3] 3 is a schematic diagram showing an example of a captured image captured by the imaging device of FIG. 2. [Figure 4]4 is a schematic diagram showing an example of a display tag captured in the captured image of FIG. 3. [Diagram 5] 1 is a functional block diagram showing an embodiment of an information processing apparatus according to the present invention; [Figure 6] 1 is a flowchart illustrating an embodiment of an information processing method according to the present invention. [Figure 7] 7 is a flowchart of a determination process included in the information processing method of FIG. 6. [Figure 8] 8 is a schematic diagram showing an example of a reference image after a process for identifying a product shelf area included in the determination process of FIG. 7. FIG. [Figure 9] 8 is a schematic diagram showing an example of a reference image after a process of detecting a display card included in the determination process of FIG. 7. [Figure 10] 8 is a schematic diagram showing an example of a reference image after a process for detecting a display tag area included in the determination process of FIG. 7. [Figure 11] 8 is a schematic diagram showing an example of a reference image after a process for detecting a set of product codes included in the determination process of FIG. 7. FIG. [Figure 12] 7 is a flowchart of a control signal generation process included in the information processing method of FIG. 6. [Figure 13] 13 is a schematic diagram showing an example of a focus position pattern selected in the control signal generation process of FIG. 12. [Figure 14] 13 is a schematic diagram showing an example of a reference image after a process of selecting a selection pattern included in the control signal generation process of FIG. 12. [Figure 15] 13 is a flowchart of a first focal position setting process included in the control signal generation process of FIG. 12. [Figure 16] 13 is a flowchart of a second focal position setting process included in the control signal generation process of FIG. 12. [Figure 17] 13 is a flowchart of a third focal position setting process included in the control signal generation process of FIG. 12. [Figure 18] 7 is a flowchart of a focus-changed image capturing process included in the information processing method of FIG. 6. [Figure 19] 7 is a flowchart of a product information integration process included in the information processing method of FIG. 6. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An information processing device, an information processing system, an information processing program, and an information processing method according to the present invention will be described with reference to the following embodiments and drawings.
[0015] ●Information Processing Systems● An information processing system according to the present invention (hereinafter referred to as "this system") identifies product information of a product based on a captured image of a product shelf on which the products are displayed. Specifically, this system selects a focus position pattern based on the captured image, sets a focus position corresponding to the selected focus position pattern, and controls the operation of the imaging device to obtain a plurality of focus-changed images. This system identifies product information corresponding to a product code attached to the product shelf based on the focus-changed images.
[0016] "Products" are items that are displayed in an enclosed space and purchased by customers. Products are displayed on shelves installed in the enclosed space, arranged (or stacked) according to product type.
[0017] A "closed space" is a three-dimensional space that is partitioned into any range, and is a space in which the present system can identify product information of a product. A 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 the internal space of a sales floor of a supermarket or a convenience store, the internal space of each sales floor of a shopping mall or an airport duty-free store where many sales floors are lined up, and an outdoor space such as an outdoor sales floor of a sales floor.
[0018] A "product shelf" is an object that has a display space in which products are displayed and is installed in a sales area. Display tags, which will be described later, are attached to the product shelf, and products corresponding to the display tags are displayed on the product shelf. Product shelves include display shelves that display products on horizontal shelves, display tables that display products on top plates, work shelves (work tables) for working on the top plates, simple shelves made of containers such as cardboard, multi-tiered or flat refrigerated / freezer showcases, etc. Product shelves include an outer frame made of a base, supports, top plate, back plate, etc., and shelves that are placed in the area surrounded by the outer frame.
[0019] The "captured image" is image information obtained by capturing an image of a product shelf, products displayed on the product shelf, and display tags corresponding to the products. In other words, the captured image includes the area of the product shelf.
[0020] The "product shelf area" is an area that is occupied by one or a group of product shelves (an area surrounded by the outer frame or shelf boards of the product shelves) among all areas included in the captured image. The product shelf area (hereinafter referred to as the "product shelf area") includes multiple individual areas.
[0021] An "individual area" is the area occupied by each small area when the product shelf area is divided into multiple small areas. An individual area includes at least a portion of the product shelf area, and may also include a portion of areas other than the product shelves (adjacent product shelves captured in the captured image, aisles, ceilings, and walls). The size (area) of each individual area may be the same or different. In this embodiment, the number of individual areas included in the product shelf area is "9".
[0022] A "display tag" displays the product code and the product information that is required by customers (hereinafter referred to as "customer product information"). A display tag is, for example, a paper price tag on which the product code and customer product information are printed. Display tags are placed on the front of the product shelf (including locations where price tags are typically attached, such as the front of the shelf, a price rail attached to the front, or above hanging products) for each display range of the corresponding product. In other words, a display tag exists for each product displayed on the product shelf.
[0023] The display tag may be, for example, an electronic price tag (electronic shelf tag) configured with an information display medium such as electronic paper, a liquid crystal display, or an organic EL (Electro-Luminescence) display.
[0024] A "product code" is a one-dimensional or two-dimensional identifier that is determined for each product in order to identify the product. Product codes include, for example, one-dimensional codes such as barcodes and two-dimensional codes such as QR codes (registered trademark).
[0025] "Product information" includes, for example, the name of the product (product name), the price, the name of the manufacturer, the size (capacity), This information is determined for each product, such as the product name, weight, manufacturing date, and expiration date, and includes product identification codes such as the JAN (Japanese Article Number) code.
[0026] The "focus position pattern" is information that specifies a combination of individual areas, among the plurality of individual areas, for which a focus position is set. The focus position pattern includes a combination of all of the plurality of individual areas and a combination of some of the individual areas.
[0027] A "focal position" is a position within the angle of view of an imaging device at which the focus is adjusted when capturing a focus-changed image. The focal position is set for each individual region constituting a focus position pattern. In other words, the focal position is set to the coordinates of a pixel that corresponds to the position at which the focus is adjusted when capturing a focus-changed image, among the pixels constituting an individual region.
[0028] The "focus-changed image" is a captured image captured by focusing on each of the focus positions of the individual regions based on a focus change pattern in which the focus positions are set. That is, the captured image includes a plurality of focus-changed images. In addition, the focus positions of the focus-changed images are different.
[0029] ● Information processing system configuration FIG. 1 is a network configuration diagram showing an embodiment of the present system.
[0030] The present system 1 includes a plurality of imaging devices 10(1),...,10(n) (n is an integer) and an information processing device 20. In the following description, the plurality of imaging devices 10(1),...,10(n) are referred to as "imaging device 10" unless the imaging devices 10(1),...,10(n) are particularly distinguished from one another. The information processing device 20 is an information processing device according to the present invention (hereinafter referred to as "the device"). In the following description, the information processing device 20 is also referred to as the device 20.
[0031] The imaging device 10 and the main device 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), or Wi-Fi (registered trademark).
[0032] Imaging device configuration FIG. 2 is a functional block diagram of the imaging device 10.
[0033] The imaging device 10 captures an image of a product shelf S (see FIG. 3; the same applies below). The imaging device 10 is, for example, a camera unit that captures still images of the product shelf S in a sales floor at a predetermined time interval. Each imaging device 10 is disposed, for example, in a sales floor at a position (for example, a ceiling surface or a wall surface of the sales floor) where it can capture an overall image of the front (front face) of the corresponding product shelf S and the products displayed on the product shelf S. In this embodiment, the imaging device 10 captures an image by adjusting the focal position to the center of the angle of view, except when capturing a focus-changed image. The imaging device 10 includes a communication unit 11, a memory unit 12, a control unit 13, and an imaging unit 14.
[0034] The "predetermined time interval" is the time interval at which the imaging device 10 periodically captures an image of the product shelf S, and is, for example, 15 seconds.
[0035] The imaging device may be a terminal device having a camera function including an imaging unit, for example, a smartphone, a mobile phone, a tablet terminal, or a notebook computer having a camera function, or a digital camera having a communication function.
[0036] The imaging device may be a camera unit that captures moving images, or may be a camera unit that captures both still images and moving images.
[0037] FIG. 3 is a schematic diagram showing an example of a captured image. The figure shows a product shelf S photographed from the front. The figure shows that 20 types of products are displayed on the product shelf S, with 20 display tags P (1-20) attached corresponding to each product. The figure shows that the display tags P (1-20) are located at the bottom right (bottom left when viewed from the front) of the display area of the corresponding product. In the following explanation, the display tags P (1-20) will be referred to as "display tag P" unless there is a need to specifically distinguish between the display tags P (1-20).
[0038] The direction in which the product shelf is captured by the captured image is not limited to the front (forward). That is, for example, when the product shelf is captured by an imaging device installed on the ceiling of the sales floor, the direction may be forward and diagonally upward, or diagonally forward and diagonally upward.
[0039] FIG. 4 is a schematic diagram showing a display example of the display tag P. The figure shows that customer product information ("product name" and "price") and two product codes are displayed on the display tag P. When viewed from the front, the figure shows that the product code is displayed in the area toward the right, and customer product information is displayed in the remaining area. The figure also shows that a two-dimensional code in which a Hamming code is depicted is displayed as the product code.
[0040] The product code is not limited to the present embodiment. For example, the product code may be a two-dimensional code in which a Reed-Solomon code is stylized, a two-dimensional code in which a two-dimensional parity is stylized, or a QR code (registered trademark).
[0041] Furthermore, the two product codes may be configured with the same type of two-dimensional code, or may be configured with different types of two-dimensional codes, or with a one-dimensional code and a two-dimensional code.
[0042] Furthermore, the label may only display one product code.
[0043] Return to Figure 2. The communication unit 11 communicates with the device 20 via the network N. The communication unit 11 is, for example, a communication interface such as a communication module or a communication circuit.
[0044] The storage unit 12 stores images captured by the imaging unit 14 and information (e.g., control signals described later) necessary for the operation of the imaging device 10. The storage unit 12 is configured, for example, with a recording device such as a hard disk drive (HDD) or a solid state drive (SSD), a random access memory (RAM), a semiconductor memory element such as a flash memory, or the like.
[0045] The control unit 13 controls the overall operation of the imaging device 10. The control unit 13 is configured with, for example, a processor such as a CPU (Central Processing Unit), an MPU (Micro Processing Unit), or a DSP (Digital Signal Processor), or an integrated circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array), and a semiconductor memory.
[0046] The imaging unit 14 captures images of the product shelves S, the products displayed on the product shelves S, and the display tags P attached to the product shelves S in the sales floor, and generates a captured image of the product shelves S, the products, and the display tags P. The imaging unit 14 is composed of, for example, a group of lenses, a shutter, an imaging element, an A / D converter, etc. The captured image generated by the imaging unit 14 is stored in the memory unit 12.
[0047] Configuration of information processing device FIG. 5 is a functional block diagram showing an embodiment of the present device 20. As shown in FIG.
[0048] The device 20 selects a focus position pattern based on the captured image, sets a focus position corresponding to the selected focus position pattern, and controls the operation of the imaging device 10 to obtain a plurality of focus-changed images. The device 20 also identifies product information of the product based on the plurality of focus-changed images. The device 20 is, for example, a personal computer such as a server. The device 20 includes a communication unit 21, a storage unit 22, and a control unit 23.
[0049] In the present device 20, an information processing program according to the present invention (hereinafter referred to as "the present program") runs, and the present program cooperates with the hardware resources of the present device 20 to realize the present method described below. In other words, the present program causes a computer to function as the present device 20.
[0050] The communication unit 21 communicates with the imaging device 10 via the network N. The communication unit 21 is, for example, a communication interface such as a communication module or a communication circuit.
[0051] The storage unit 22 stores information necessary for the operation of the device 20 (for example, a reference image, a focus-changed 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 SSD, a semiconductor memory element such as a RAM or a flash memory, or the like.
[0052] The control unit 23 executes information processing, which will be described later, and controls the operation of the entire device 20. The control unit 23 is configured with, for example, a processor such as a CPU, an MPU, or a DSP, or an integrated circuit such as an ASIC or an FPGA, and a semiconductor memory. The control unit 23 includes an acquisition unit 231, a region identification unit 232, a detection unit 233, a selection unit 234, a focal position setting unit 235, a signal generation unit 236, and an information identification unit 237.
[0053] The acquisition unit 231 acquires, as a reference image, a captured image of the product shelf S captured by the imaging device 10. A specific operation of the acquisition unit 231 and the reference image will be described later.
[0054] The area specifying unit 232 specifies the product shelf area captured in the reference image. The specific operation of the area specifying unit 232 will be described later.
[0055] The detection unit 233 detects a plurality of specific areas captured in the product shelf area. The specific operation of the detection unit 233 will be described later.
[0056] A "specific area" is all or part of the area of the product shelf area where a display tag P can be imaged (hereinafter referred to as the "display tag area"). In other words, the specific area is all or part of the area of the product shelf S where a display tag P can be added. In other words, the specific area is the area of the product shelf area that corresponds to the front surface of the shelf board of the product shelf S or a 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 this embodiment, the area treated as the specific area differs depending on the setting method described below.
[0057] The selection unit 234 selects, as a selection pattern, one focus position pattern according to the detection result of the detection unit 233 from among the multiple focus position patterns stored in the storage unit 22. A specific operation of the selection unit 234 will be described later.
[0058] The focal position setting unit 235 sets a focal position for each of a plurality of individual areas included in the selection pattern, based on the specific area (product code) detected by the detection unit 233. A specific operation of the focal position setting unit 235 will be described later.
[0059] The signal generating 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 generating unit 236 will be described later.
[0060] The "control signal" is a signal that causes the imaging device 10 to capture a plurality of focus-changed images focused on each of a plurality of focus positions set in the selection pattern.
[0061] 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 an imaging device control unit in the present invention. That is, the imaging device control unit includes 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. The imaging device control unit controls the operation of the imaging device 10 using the control signal.
[0062] The information identifying unit 237 identifies the product information corresponding to the product code based on a plurality of focus-changed images captured by the imaging device 10 whose operation is controlled based on the control signal. The specific operation of the information identifying unit 237 will be described later.
[0063] The present device may also include a display unit (eg, a monitor) that displays various information to a user of the present system, and an operation unit (eg, a keyboard) that is operated by the user.
[0064] ●Information processing method● Next, an information processing method according to the present invention (hereinafter referred to as "the present method") executed by the present system 1 (the present device 20) will be described with reference to FIG.
[0065] FIG. 6 is a flow chart illustrating an embodiment of the method.
[0066] This method executes a determination process (S1), a control signal generation process (S2), a focus-changed image capture process (S6), and a product information integration process (S7).
[0067] ● 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 for the device 20 to execute the control signal generation process (S2), the focus change image pickup process (S6), and the product information integration process (S7).
[0068] First, the device 20 sets the next process 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 capture process (S6), and the product information integration process (S7) are to be executed in this method.
[0069] Next, the acquisition unit 231 acquires a captured image as a reference image from the imaging device 10 via the communication unit 21 (S102). The process (S102) is an example of an 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 imaging device 10 that captured the reference image. The reference image is stored in the storage unit 22 in association with the information for identifying the imaging device 10 that captured the reference image.
[0070] The "reference image" is an image used by the device 20 to execute the determination process (S1) among the captured images, and is a captured image that serves as a reference for determining whether or not it is necessary to execute the control signal generation process and the focus change image capture process by the device 20. In the following description, it is assumed that the acquisition unit 231 acquires the captured image shown in FIG. 3 as the reference image.
[0071] Next, the area specifying unit 232 specifies the product shelf area captured in the reference image, for example, using a known image recognition process (S103). The process (S103) is an example of the area specifying step in the present invention. The "known image recognition process" is, for example, a process of detecting an object using deep learning image recognition (for example, SSD: Single Shot Multibox Detector model). That is, for example, the area specifying unit 232 detects a sign (described later) attached to the front of the shelf frame (members that form the outline of the product shelf S, such as a support or a top plate) of the product shelf S captured in the captured image. Next, the area specifying unit 232 connects the signs that are lined up in the vertical direction (vertical direction on the product shelf S) among the detected signs, and detects them as the area of the support (outer frame). Next, the area specifying unit 232 connects the signs that are lined up in the left-right direction (horizontal direction on the product shelf S) at the upper end and the lower end, among the detected signs, and detects the area of the top plate and base (outer frame). Next, the area specifying unit 232 connects the detected areas of the support posts, the top board, and the base to specify a rectangular product shelf area. The specified product shelf area is stored in the storage unit 22 in association with the reference image.
[0072] The "markers" are, for example, stickers that indicate the positions of the posts. The markers are, for example, attached to the front of the posts in a line in the vertical direction.
[0073] The marker is not limited to a sticker, and may be, for example, a magnet placed on the post, paint applied to the post, or projections and holes formed in the post.
[0074] In addition, the area identification unit may identify the product shelf area by using the reference image as is, or may perform a well-known perspective transformation process on the reference image to identify the product shelf area using a reference image that has been corrected so that the product shelf is viewed from the front.
[0075] Furthermore, the area specifying unit may, for example, display the reference image on a display unit such as a monitor, have the user of the present system 1 select four points in the product shelf area, and specify the area connecting the four selected points as the product shelf area. In other words, the area specifying unit may specify a manually selected area as the product shelf area.
[0076] Furthermore, the area specifying unit may specify an area of the shelf board (a sign tag area) by connecting signs arranged in the left-right direction.
[0077] 8 is a schematic diagram showing an example of a reference image after the process of identifying the product shelf area (S103). In the figure, a frame showing the product shelf area is shown by a thick line. In the figure, the product shelf area is shown to be a rectangular area.
[0078] Return to Figure 7. Next, the detection unit 233 detects the display tag P in the product shelf area identified by the area identification unit 232, for example, by using a known image recognition process (S104). The detected display tag P is stored in the storage unit 22 in association with the reference image together with, for example, the ID and position information of the display tag P.
[0079] 9 is a schematic diagram showing an example of a reference image after the process (S104) of detecting the sign tags P. In the figure, a frame showing the detected sign tags P is indicated by a thick line, and the product shelf area is indicated by a dashed line. The figure shows that all sign tags P have been detected in the product shelf area.
[0080] Return to Figure 7. Next, the detection unit 233 determines whether or not there is an undetected display tag P (S105). At this time, for example, the detection unit 233 determines whether or not there is an undetected display tag P by referring to the number of types of products displayed on the product shelf S, past detection results (history), an arrangement table of the display tags P set for each product shelf S, and the like. The number of types of products, past detection results, and the arrangement table are stored in advance in the storage unit 22, for example.
[0081] If there is an undetected display tag P ("Y" in S105), the device 20 sets the next process execution flag to "ON" (S106). On the other hand, if there is no undetected display tag P ("N" in S105), the device 20 keeps the next process execution flag "OFF" (S107).
[0082] Next, the detection unit 233 detects a display tag area based on the detected display tags P (S108). That is, for example, the detection unit 233 extracts a group of the detected display tags P arranged in the X direction (horizontal direction of the product shelf S) of the reference image. Next, for each extracted group, the detection unit 233 detects a linear belt-like area that connects the display tags P constituting the group and extends to the support pole (end of the product shelf area) as the display tag area. The display tag area has approximately the same width (vertical length) as the display tag P and approximately the same length (horizontal length) as the distance between the support poles. The process (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 together with, for example, position information of the display tag area.
[0083] Fig. 10 is a schematic diagram showing an example of a reference image after the process of detecting the display tag area (S108). In this figure, a frame indicating the detected display tag area is indicated by a thick line, and the product shelf area is indicated by a dashed line. This figure shows that four display tag areas have been detected in the product shelf area. For ease of explanation, this figure omits illustration of one display tag P, the product code displayed on this display tag P, and other display tags P and product codes displayed on the other display tags P. It shows that the display tag P and the product code displayed on the display tag P are included in the display tag area.
[0084] Return to Figure 7. Next, the detection unit 233 detects sets of product codes on all detected display tags P using a known image recognition process (S109). At this time, the detection unit 233 obtains the sharpness (contrast) of each product code and identifies its position information. The detected product codes are stored in the storage unit 22 in association with a reference image, together with, for example, a number assigned to each piece of product code position information, and the product code position information and sharpness.
[0085] Note that the detection unit may perform known pre-processing such as gamma correction or bilateral filtering on the reference image before detecting the product code.
[0086] Here, the sharpness is calculated using, for example, a known image processing method, for example, by converting the reference image into grayscale, extracting the edges of the product code using the Canny method, and calculating the variance of all the brightness values of the edge image.
[0087] Next, the detection unit 233 determines whether or not there is an undetected set of product codes (S110). At this time, for example, the detection unit 233 determines whether or not there is an undetected set of product codes based on the number of display tags P detected in the process (S104).
[0088] Fig. 11 is a schematic diagram showing an example of a reference image after the process of detecting sets of product codes (S109). For ease of explanation, products are not shown in Fig. 11. In Fig. 11, detected product codes are indicated by "■" and undetected product codes are indicated by "□". In Fig. 11, sets of detection codes surrounded by a thick line frame indicate sets that have not been detected.
[0089] Return to Figure 7. If there is an undetected combination of product codes ("Y" at S110), the device 20 sets the next process execution flag to "ON" (S111) and ends the determination process (S1).
[0090] On the other hand, if there is no undetected set of product codes ("N" in S110), the device 20 ends the determination process (S1) while keeping the next process execution flag "OFF" (S112).
[0091] ● Control signal generation processing FIG. 12 is a flowchart of the control signal generation process (S2). The "control signal generation process (S2)" is a process in which the device 20 selects a focus position pattern, sets a focus position in an individual area included in the focus position pattern, and generates a control signal based on the selected focus position pattern and the set focus position. The control signal generation process (S2) is an example of a signal generation step in the present invention.
[0092] First, the device 20 checks the state ("ON" or "OFF") of the next process execution flag (S201).
[0093] When the next process execution flag is "ON" ("Y" in S201), the selection unit 234 selects one focus position pattern according to the detection result of the detection unit 233 from among the multiple focus position patterns stored in the storage unit 22 as a selection pattern (S202). That is, for example, the selection unit 234 specifies an individual area in which an undetected set of product codes (or a display tag P) exists, and selects a focus position pattern including the individual area. When there are multiple focus position patterns as candidates for the selection pattern, the selection unit 234 may select a selection pattern based on, for example, the number of individual areas included in the focus position pattern (maximum number or minimum number), or may present candidates for focus position patterns to the user of the system 1 and select the focus position pattern selected by the user as the selection pattern. The process (S202) is an example of a selection step in the present invention. The selection pattern is, for example, associated with a reference image and stored in the storage unit 22. On the other hand, when the next process execution flag is "ON" ("Y" in S201), the device 20 ends the control signal generation process (S2). In this case, the device 20 identifies the product information of all product codes based on, for example, one reference image.
[0094] The method by which the selection unit of the present invention selects a selection pattern is not limited to this embodiment. That is, for example, the selection unit of the present invention may select a selection pattern based on a past selection history. Alternatively, a focus position pattern including an individual area where an undetected product code set (or display tag) is predicted to exist may be determined in advance, and the selection unit may select the determined focus position pattern. Alternatively, the selection unit may select a selection pattern based on pixel information (position information, sharpness) of the product code.
[0095] FIG. 13(a)-(f) are schematic diagrams showing examples of focus position patterns stored in the storage unit 22. In the figure, individual areas are indicated by solid lines, and individual areas included in the focus position pattern are indicated by thick lines. The figure shows that the individual area of "9" is included in the product shelf area. FIG. 13(a) shows an example of a focus position pattern including an individual area of "9", FIG. 13(b) shows an example of a focus position pattern including an individual area of "7", FIG. 13(c) shows an example of a focus position pattern including an individual area of "5", FIG. 13(d) shows an example of a focus position pattern including an individual area of "4", FIG. 13(e) shows an example of a focus position pattern including an individual area of "6", and FIG. 13(f) shows an example of a focus position pattern including individual areas of different sizes of "2". The numbers in the figures are examples of unique numbers of the individual areas.
[0096] A unique number is assigned to each individual area included in each focus position pattern. In this embodiment, the unique numbers are assigned as shown in Fig. 12, starting with the central individual area as "1", and going clockwise from the top left individual area as "2", "3", "4", "5", "6", "7", "8", and "9".
[0097] 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, the individual regions are indicated by thick dashed lines, and the figure shows that a focus position pattern including individual regions of the same size, each of which is a "9", is selected as the selected pattern.
[0098] Return to Figure 12. Next, the focal position setting unit 235 selects one setting method from among the multiple setting methods stored in the storage unit 22 (S203). The focal position setting unit 235 selects the setting method based on, for example, 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 a predetermined threshold "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 lower than the predetermined threshold "V1", the focal position setting unit 235 selects the second setting method or the third setting method described later. The "predetermined threshold "V1"" is set, for example, in the process (S303) described later, so that the sharpness of a sufficient number of product codes is equal to or higher than the threshold "V2" of the process (S303). The threshold "V1" is set, for example, in advance by the user and stored in the storage unit 22.
[0099] The "setting method" is a method used by the focal position setting unit 235 to set a focal position for each individual area included in the selection pattern. The setting methods include a first setting method, a second setting method, and a third setting method. The "first setting method" is a method for setting a focal position based on the clarity of each product code of the reference image detected by the detection unit 233. The "second setting method" is a method for setting a 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 for setting a focal position based on the positional relationship of the display tag addition area detected by the detection unit 233 to the product shelf area. In this embodiment, the storage unit 22 is assumed to store the first setting method, the second setting method, and the third setting method in advance.
[0100] The focus position setting unit may select a setting method based on information obtainable based on a specific region, for example, and the selection by the focus position setting unit is not limited to this embodiment. That is, for example, the focus position setting unit may select a setting method based on the number of sets of product codes detected in process (S109) or position information. Also, for example, the focus position setting unit may select a setting method based on the number of display tags detected in process (S104) or position information. Furthermore, for example, the focus position setting unit may select a setting method that is preset by a user of the present system 1.
[0101] When the focal position setting unit 235 selects the first setting method ("First setting method" in S203), the device 20 executes a first focal position setting process (S3). On the other hand, when the focal position setting unit 235 selects the second setting method ("Second setting method" in S203), the device 20 executes a second focal position setting process (S4). Furthermore, when the focal position setting unit 235 selects the third setting method ("Third setting method" in S203), the device 20 executes a third focal position setting process (S5).
[0102] FIG. 15 is a flowchart of the first focal position setting process (S3). The "first focus position setting process (S3)" is a process for setting the focus position of each individual area included in the selection pattern based on the sharpness of the product code. In the first focus position setting process (S3), the product code is treated as a specific area. The first focus position setting process (S3) is an example of a focus position setting step in the present invention.
[0103] First, the focal position setting unit 235 sets the unique number "n" of the setting area in which the focal position is to be set to "1" (S301).
[0104] Next, the focus position setting unit 235 reads out all the product codes detected by the detection unit 233 in the individual area "1" and their sharpness from the storage unit 22 (S302).
[0105] Next, the focus position setting unit 235 selects, from among the product codes, a product code whose clarity is equal to or greater than a predetermined threshold value "V2" and is the smallest as a specific product code (S303). The "threshold value "V2"" is, for example, the lower limit value of clarity at which the information identification unit 237 can identify product information based on the product code, or a value obtained by adding a small margin to the lower limit value. In other words, the threshold value "V2" is a value that is set based on the clarity at which the device 20 can decode the product code. The threshold value "V2" is, for example, set in advance by the user and stored in the memory unit 22.
[0106] Next, the focus position setting unit 235 reads out the position information of the product code selected as the specific product code from the storage unit 22, and sets the center coordinates as the focus position of individual area "1" (S304). The focus position is stored in the storage unit 22 in association with the corresponding individual area and the selection pattern.
[0107] Next, the focal position setting unit 235 determines whether there is an individual area for which a focal position has not been set (S305).
[0108] When there is an individual area for which a focus position has not been set ("Y" in S305), the focus position setting unit 235 adds 1 to the unique number "n" of the individual area for which the focus position is to be set (S306), and executes the processes (S302 to S305).
[0109] On the other hand, when there is no individual area for which a focal position has not been set ("N" in S305), the focal position setting section 235 ends the first focal position setting process (S3).
[0110] In this way, in the first focus position setting process (S3), the focus position setting unit 235 selects a specific product code whose definition is equal to or greater than the threshold V1 and is the smallest among the multiple product codes detected in each individual area included in the selection pattern, and sets the focus position based on the position information of the specific product code. In other words, the focus position setting unit 235 sets the focus position on the product code with the smallest definition among the decodable product codes in each individual area.
[0111] FIG. 16 is a flowchart of the second focal position setting process (S4). The "second focus position setting process (S4)" is a process for setting the focus position of each individual area included in the selection pattern based on the positional relationship between each of the product codes. In the second focus position setting process (S4), the product code is treated as a specific area. The second focus position setting process (S4) is an example of a focus position setting step in the present invention.
[0112] First, the focus position setting unit 235 reads out the product shelf area corresponding to the reference image from the storage unit 22 (S401).
[0113] Next, the focal position setting unit 235 sets the unique number "n" of the setting area in which the focal position is to be set to "1" (S402).
[0114] Next, the focus position setting unit 235 reads out all the display tags P detected by the detection unit 233 in the individual area "1" and their position information (coordinates) from the storage unit 22 (S403).
[0115] Next, the focus position setting unit 235 identifies the coordinates of the center of gravity of the product shelf area, and identifies the sign P having position information closest to the coordinates as the central sign (S404). That is, for example, the focus position setting unit 235 identifies the coordinates of the center of gravity of each sign P, and identifies the sign P having the closest distance between the coordinates and the coordinates of the center of gravity of the reference image as the central sign.
[0116] 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 specify the sign having position information closest to the coordinates as the central sign.
[0117] Next, the focus position setting unit 235 specifies, of the two product codes corresponding to the central display label, the product code located on the upper side as the central product code (S405).
[0118] The focus position setting unit may specify the product code arranged on the lower side as the central product code.
[0119] Next, the focus position setting unit 235 reads the position information of the central product code from the storage unit 22, and sets the position information corresponding to the center of the central product code (the coordinates of the pixel corresponding to the center) as the focus position of individual area "1" (S406). The focus position is stored in the storage unit 22 in association with the corresponding individual area and the selection pattern.
[0120] Next, the focal position setting unit 235 adds 1 to the unique number "n" of the individual area for which the focal position is to be set (S407).
[0121] Next, the focus position setting unit 235 determines whether the unique numbers of the individual areas are even numbers ("2, 4, 6, 8") or odd numbers ("3, 5, 7, 9") (S408).
[0122] When the unique number of the individual area is an even number ("even number" in S408), the focus position setting unit 235 specifies the display tag P closest to the corner of the product shelf area in the individual area as the end display tag (S409). In other words, the focus position setting unit 235 specifies the display tag P closest to the end of the product shelf area and farthest from the central product code in the individual area as the end display tag. That is, for example, the focus 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 closest distance between the coordinates and the coordinates of the corner of the product shelf area as the end display tag. Here, the "corner of the product shelf area" is the corner corresponding to each individual area. That is, for example, in this 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", the lower right corner of the product shelf area corresponds to the individual area "6", and the lower left corner of the product shelf area corresponds to the individual area "8".
[0123] On the other hand, when the unique number of the individual area is an odd number ("odd number" in S408), the focus position setting unit 235 specifies the display tag P closest to the midpoint of each side of the product shelf area in the individual area as the end display tag (S410). In other words, the focus position setting unit 235 specifies the display tag P closest to the central product code as the end display tag among the display tags P close to the end of the product shelf area in the individual area. That is, for example, the focus position setting unit 235 specifies the coordinates of the center of gravity of each display tag P, and specifies the display tag P with the shortest distance between the coordinates and the coordinates of the midpoint of each side of the product shelf area as the end display tag. Here, "each side of the product shelf area" is the 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", 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".
[0124] Next, the focus position setting unit 235 specifies, of the two product codes corresponding to the end label, the product code arranged on the upper side as the end product code (S411).
[0125] The focus position setting unit may specify the product code arranged on the lower side as the end product code.
[0126] Next, the focus position setting unit 235 reads the position information of the end product code from the storage unit 22, and sets the position information corresponding to the center of the end product code (the coordinates of the pixel corresponding to the center) as the focus position of the individual area corresponding to the end display tag (S412). The focus position is stored in the storage unit 22 in association with the corresponding individual area and the selection pattern.
[0127] Next, the focal position setting unit 235 determines whether there is an individual area for which a focal position has not been set (S413).
[0128] When there is an individual area for which a focal position has not been set ("Y" in S413), the focal position setting unit 235 executes the processes (S407 to S413).
[0129] On the other hand, when there is no individual area for which a focal position has not been set ("N" in S413), the focal position setting section 235 ends the second focal position setting process (S4).
[0130] In this way, in the second focal position setting process (S4), the focal position setting unit 235 specifies, among the display tags P detected in each individual area included in the selection pattern, the display tag P closest to the corner or the midpoint of each side of the product shelf area as the end display tag. In other words, the focal position setting unit 235 specifies, in the individual area, the display tag P closest to the end of the product shelf area and farthest from the central product code, or, among the display tags P close to the end of the product shelf area, the display tag P closest to the central product code, as the end display tag.
[0131] Furthermore, the focal position setting unit 235 specifies the upper product code among the two product codes corresponding to the end label as the end product code. In other words, the focal position setting unit 235 specifies the product code that is closest to the end of the product shelf area and farthest from the center product code among the product codes that are located at the top, or the product code that is closest to the center product code among the product codes that are close to the end of the product shelf area, as the end product code. In other words, the focal position setting unit 235 selects one product code among the product codes detected in each individual area based on the positional relationship between each of the product codes detected by the detection unit 233, excluding the center product code, and the center product code, and sets the focal position based on the position information of the selected product code.
[0132] FIG. 17 is a flowchart of the third focal position setting process (S5). The "third focus position setting process (S5)" is a process for setting the focus 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 the specific area. The third focus position setting process (S5) is an example of a focus position setting step in the present invention.
[0133] First, the focus position setting unit 235 reads out the product shelf area and the display label area and their position information corresponding to the reference image from the storage unit 22 (S501).
[0134] Next, the focal position setting unit 235 sets the unique number "n" of the setting area in which the focal position is to be set to "1" (S502).
[0135] Next, the focus position setting unit 235 identifies all the display tag areas detected by the detection unit 233 in the individual area "1" and their position information (coordinates) (S503).
[0136] Next, the focus position setting unit 235 identifies the coordinates of the center of gravity of the product shelf area, and identifies the display tag area having position information closest to the coordinates (S504).
[0137] 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 specify the display tag area having position information closest to the coordinates.
[0138] Next, the focal position setting unit 235 sets the coordinates of the center of gravity of the display tag area identified 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.
[0139] Next, the focus position setting unit 235 identifies, among the individual areas for which the focus position is to be set, individual areas with even unique numbers ("2, 4, 6, 8") as specific individual areas, and identifies individual areas with odd unique numbers ("3, 5, 7, 9") as non-specific individual areas (S506). A "specific individual area" is an individual area that includes a corner of the product shelf area. A "non-specific individual area" is an individual area that is located between specific individual areas. In other words, the individual areas include specific individual areas and non-specific individual areas.
[0140] Next, the focal position setting section 235 selects the specific individual area with the smallest unique number from among the specific individual areas for which the focal position has not been set (S507).
[0141] Next, the focus position setting unit 235 identifies the display tag area that is closest to the corner of the product shelf area in the specific individual area (S508).
[0142] Next, the focal position setting unit 235 sets the coordinates of a point located on the center line of the identified display tag area and a predetermined length inward in the X direction from the end of the product shelf area adjacent to the same display tag area as the focal position of the corresponding specific individual area (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.
[0143] Next, the focus position setting unit 235 determines whether or not there is a specific individual area for which a focus position has not been set (S510). When there is a specific individual area for which a focus position has not been set ("Y" in S510), the focus position setting unit 235 executes the processes (S507 to S509).
[0144] On the other hand, when there is no specific individual area for which a focus position has not been set ("N" in S510), the non-specific individual area with the smallest unique number is selected from among the non-specific individual areas for which a focus position has not been set (S511).
[0145] Next, the focus position setting unit 235 generates a line segment connecting the focus positions set in the two specific individual areas adjacent to the selected non-specific individual area, and sets the coordinates of the midpoint of the line segment, or the intersection of the line segment with the center line of the display tag area closest to the midpoint of the line segment, as the focus position of the non-specific individual area (S512). That is, for example, the focus position of the non-specific individual area "3" is the coordinates of the midpoint of the line segment connecting the focus positions of the specific individual areas "2" and "4". The focus position is stored in the storage unit 22 in association with the corresponding individual area (non-specific individual area) and the selection pattern.
[0146] Next, the focal position setting unit 235 determines whether or not there is a non-specific individual area for which a focal position has not been set (S513). When there is a non-specific individual area for which a focal position has not been set ("Y" in S513), the focal position setting unit 235 repeats the process (S511 to S512).
[0147] On the other hand, when there is no non-specific individual area for which the focal position has not been set ("N" in S513), the focal position setting section 235 ends the third focal position setting process (S5).
[0148] In this way, in the third focus position setting process (S5), the focus position setting unit 235 sets a focus position corresponding to a specific individual area based on the positional relationship of the specific individual area to the product shelf area, and sets a focus position corresponding to a non-specific individual area based on the focus position set in the specific individual area.
[0149] Return to Figure 12. Next, the signal generating unit 236 reads out the selection pattern and the focal positions set for the individual regions included in the selection pattern from the storage unit 22 (S204).
[0150] Next, the signal generating unit 236 generates a control signal for causing the imaging device 10 to capture a plurality of focus-changed images focused on each focus position of the selection pattern, based on the read selection pattern and focus position (S205). The control signal is stored in the storage unit 22.
[0151] Focus change image capture processing FIG. 18 is a flowchart of the focus change image capturing process (S6). The "focus-changed image capturing process (S6)" is a process in which the imaging device 10 captures a focus-changed image based on a control signal.
[0152] First, the control unit 23 of the device 20 reads out a control signal from the storage unit 22 (S601).
[0153] Next, the control unit 23 transmits a control signal via the communication unit 21 to the imaging device 10 that captured the reference image on which the control signal was generated (S602).
[0154] Next, the control unit 13 of the imaging device 10 receives the control signal from the device 20 via the communication unit 11 (S603).
[0155] Next, the control unit 13 captures focus-changed images focused on each focus position based on the control signal (S604). The number of focus-changed images captured is the same as the number of focus positions.
[0156] Next, the control unit 13 determines whether or not each of the focus-changed images is out of focus (so-called out-of-focus) (S605).
[0157] 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-changed image (S606).
[0158] When the focus is inappropriate ("N" in S605) or when a person is included in the focus-changed image ("Y" in S606), the control unit 13 reads out the focus position corresponding to the focus-changed image from the memory unit 12 (S607) and executes processing (S604).
[0159] On the other hand, when the focus-changed images do not include a person ("N" in S606), the control unit 13 associates each of the focus-changed images with a corresponding focus position, and associates each of the focus-changed images with each other and stores them in the memory unit 12 as a set of focus-changed images (S608).
[0160] Next, the control unit 13 reads out the focus-changed image group from the storage unit 12, and transmits it to the device 20 via the communication unit 11 (S609).
[0161] Next, the control unit 23 (acquisition unit 231) of the present device 20 receives (acquires) the focus-changed image group from the imaging device 10 via the communication unit 21 (S610). At this time, the control unit 23 (acquisition unit 231) also receives (acquires), for example, information identifying the imaging device 10 that captured the focus-changed image group (for example, ID information). The focus-changed image group is stored in the storage unit 22 in association with the information identifying the imaging device 10 that captured the focus-changed image group.
[0162] ● Product information integration processing FIG. 19 is a flowchart of the product information integration process (S7). The "product information integration process (S7)" is a process in which the device 20 acquires and integrates product information for each focus-changed image based on the focus-changed image, and acquires product information corresponding to the product code attached to the product shelf S. The product information integration process (S7) is an example of an information identification step in the present invention. In the following description, a focus-changed image captured at a focus position set in individual area "n" is referred to as "focus-changed image "n"." That is, for example, a focus-changed image captured at a focus position set in individual area "1" is referred to as focus-changed image "1."
[0163] First, the detection unit 233 reads out the focus-changed image group from the storage unit 22 (S701).
[0164] Next, the detection unit 233 detects a product code for each focus-changed image (S702). At this time, the detection unit 233 detects a display tag P, detects a product code corresponding to the detected display tag P, and identifies its position information, for example, in the same manner as in the processes (S104, S109). The detected product code is stored in the storage unit 22 in association with the focus-changed image together with, for example, a number assigned to each piece of position information of the product code and the position information of the product code.
[0165] Next, the information identifying unit 237 identifies product information corresponding to the product code for each focus-changed image based on the product code (S703). That is, the information identifying unit 237 decodes (identifies) the product code for each focus-changed 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-changed image.
[0166] Next, the information identifying unit 237 compares the position information of each of the product codes between the focus-changed images (S704). That is, for example, the information identifying unit 237 compares the position information of each of the product codes in the focus-changed image "1" with the position information of each of the product codes in the focus-changed images "2" to [9].
[0167] Next, the information identifying unit 237 identifies the product codes located within the distance range "L1" common between the focus-changed images as a product code group corresponding to the same product code between the focus-changed images (S705). That is, the information identifying unit 237 presumes that the product codes captured at approximately the same position in each focus-changed image are the same product code, and identifies these product codes as a product code group that is a collection of the same product codes. The "distance range "L1"" is a range that identifies the product codes of the focus-changed images as product codes attached to the same position on the product shelf S across multiple focus-changed images. That is, for example, when the distance between the product code "α" in the focus-changed image "1" and the product code "β" in the focus-changed image "2" is within the distance range "L1", the product code "α" and the product code "β" are identified as product codes attached to the same position on the product shelf S (i.e., the same product code).
[0168] Next, the information identifying unit 237 compares, for each product code group, the product information corresponding to the product codes constituting the product code group, and identifies a single piece of product information corresponding to the product code group (S706). That is, for example, the information identifying unit 237 identifies, for each product code group, the product information that is the most numerous as the single piece of product information corresponding to the product code group. That is, the information identifying unit 237 integrates the product information for each product code group, and identifies the single piece of product information corresponding to the product code group. The single piece of product information is stored in the storage unit 22 in association with the corresponding product code group.
[0169] The information identifying unit may delete duplicate product information for each product code group, and identify the remaining product information as a single piece of product information corresponding to the product code group.
[0170] In this way, the device 20 identifies product information corresponding to the product code detected in each focus-changed image, compares position information of each product code between the focus-changed images to identify a product code group, and identifies a single product information corresponding to the product code group based on product information corresponding to multiple product codes included in the product code group. In other words, the device 20 does not combine focus-changed images captured at so-called multiple focus points, but integrates product information identified in the same focus-changed image to identify a single product information of the product shelf S captured in the focus-changed image.
[0171] Furthermore, the device 20 can specify the focal position of each focus-changed image based on one captured image, and can specify more accurately the product information of the product displayed on the product shelf corresponding to the imaging device based on the product code detected in the focus-changed image by using the above-mentioned method.The device 20 can then perform product management, such as creating shelf layouts and detecting shortages on each product shelf, with high accuracy based on the specified product information.
[0172] Summary According to the embodiment described above, the present system 1 (the present device 20) includes a storage unit 22 that stores a plurality of focus position patterns, a detection unit 233 that detects a plurality of specific areas captured in an image of a product shelf area, and a selection unit 234 that selects one focus position pattern according to the detection result of the detection unit 233 as a selection pattern from the plurality of focus position patterns stored in the storage unit 22. According to this configuration, the present system 1 (the present device 20) can specify a combination of areas (individual areas) for setting the focal positions of so-called multi-focus points simply by selecting one focus position pattern according to the detection result of the detection unit 233 as the selection pattern.
[0173] Furthermore, according to the embodiment described above, the present system 1 (the present device 20) includes a focal position setting unit 235 that sets a focal position for each of a plurality of individual regions included in a selection pattern based on the specific region detected by the detection unit 233. With this configuration, the present system 1 (the present device 20) can easily set a focal position for each individual region included in each selection pattern for each captured image acquired as a reference image by using information on the specific region. In other words, the present system 1 (the present device 20) can set a 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.
[0174] Furthermore, according to the embodiment described above, the present system 1 (the present device 20) includes a signal generating unit 236 that generates a control signal for causing the imaging device 10 to capture a plurality of focus-changed images focused on a plurality of focus positions, and an information identifying unit 237 that identifies product information corresponding to a product code based on the plurality of focus-changed images captured by the imaging device 10 whose operation is controlled based on the control signal. According to this configuration, the present system 1 (the present device 20) can identify the product code from each of the focus-changed images captured at so-called multiple focus points for each captured image acquired as a reference image, and identify the product information corresponding to the product code.
[0175] In this way, the present system 1 (the present device 20) can capture an image of the product shelf S in a state in which all product codes can be identified. This improves the recognition accuracy of the product codes captured in the captured image. As a result, the present system 1 (the present device 20) can be used for highly accurate product management (such as creating shelf allocations and detecting out-of-stock items).
[0176] Furthermore, according to the embodiment described above, the selection unit 234 selects a selection pattern based on pixel information (position information, sharpness) of multiple product codes detected by the detection unit 233. With this configuration, the present system 1 (present device 20) can select a selection pattern based on the position information or sharpness of product codes that require accurate detection to decode product information. As a result, the present system 1 (present device 20) can select a selection pattern that can accurately detect product codes. As a result, the present system 1 (present device 20) can be used for highly accurate product management.
[0177] Furthermore, according to the embodiment described above, the focus position setting unit 235 selects a product code having a minimum sharpness that is equal to or greater than a predetermined threshold value V1 from among the multiple product codes detected in each individual area, and sets the focus 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 sharpness of each product code detected by the detection unit 233. Usually, when decoding a product code from a captured image, the sharpness (contrast) of the product code is a factor that has a large effect on the decoding (identification) of the product code. According to this configuration, the focus position setting unit 235 can set the focus position according to a product code having a sharpness close to the lower limit of discernment among the product codes detected in the individual area. That is, the present system 1 (the present device 20) can set the focus position to a product code that can be reliably identified in a focus position changed image regardless of the position of the product code in the individual area and can improve the identification of other product codes in the corresponding individual area. As a result, the present system 1 (the present device 20) can be used for highly accurate product management.
[0178] Furthermore, according to the embodiment described above, the focal position setting unit 235 selects, for each individual area, either the product code that is close to the end of the product shelf area and farthest from the central product code, or the product code that is closest to the end and closest to the central product code, and sets 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 positional relationship between each of the product codes detected by the detection unit 233. Usually, the imaging device 10 captures an image by adjusting the focal position near the center of the angle of view. Then, in the captured image, the focus is more likely to shift as it moves away from the focal position at the time of imaging. According to this configuration, the focal position setting unit 235 can set the focal position according to a product code that is easily out of focus (a product code that is out of focus) among the product codes detected in the individual area. That is, the present system 1 (the present device 20) can set the focal position according to a product code that is easily out of focus (a product code that is out of focus) even if the position of the product code in the individual area is changed due to, for example, a change in shelf allocation. As a result, the present system 1 (the present device 20) can be used for highly accurate product management.
[0179] Furthermore, according to the embodiment described above, the detection unit 233 identifies product codes located within the common distance range "L1" between the focus-changed images as a product code group corresponding to the same product code between the focus-changed images. The information identification unit 237 identifies product information corresponding to the product code group based on product information corresponding to multiple product codes included in the product code group. According to this configuration, the present system 1 (the present device 20) can identify a group (product code group) of product codes detected at approximately the same position between multiple focus-changed images as the same product code, and identify a single product information corresponding to the group. As a result, the present system 1 (the present device 20) can be used for highly accurate product management.
[0180] Furthermore, according to the embodiment described above, the information identification unit 237 integrates the product information identified for each focus-changed image and identifies product information corresponding to the product code displayed by each display tag attached to the product shelf. As a result, the information identification unit 237 can identify the most abundant product information for each product code group as a single product information corresponding to the product code group as a result of the integration. Furthermore, the information identification unit can delete duplicate product information for each product code group and identify the remaining product information as a single product information corresponding to the product code group. As a result, the present system 1 (the present device 20) can be used for highly accurate product management.
[0181] 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 such as "4" or "6". When the number of individual areas included in the product shelf area is an even number, the focal position setting unit in the present invention may set the focal position in the control signal generation process based on the positional relationship between the center position of the reference image or the coordinates of the center of gravity of the product shelf area and the product code of each individual area, instead of the central product code.
[0182] Furthermore, the detection unit in the present invention does not have to detect a display tag in the determination process. That is, for example, the detection unit in the present invention may detect only a product code as a specific area in the determination process.
[0183] Furthermore, the detection unit in the present invention may detect only the upper product code (only the lower product code) in place of a set of product codes in the determination process.
[0184] Furthermore, the number of product codes displayed on a 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.
[0185] Furthermore, the detection unit in the present invention does not need to obtain the sharpness of the product code in the determination process. In this case, the sharpness may be obtained, for example, in the control signal generation process (first focal position setting process).
[0186] Furthermore, the detection unit in the present invention does not need to detect the tag area. In this case, the present system 1 (the present device 20) does not need to execute the third focal position setting process.
[0187] Furthermore, the focal position setting unit in the present invention may select at least one of 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 either the first setting method or the second setting method, or may be configured to select only the third setting method in the control signal generation process. In other words, the storage unit in the present invention may store only one or two of the first to third setting methods, or may store setting methods other than the first to third setting methods.
[0188] Furthermore, the focal position setting section in the present invention may select the product code with the lowest sharpness as the specific product code in the first focal position setting process.
[0189] Furthermore, when only one product code is displayed on the display tag, the focus position setting unit in the present invention may, in the second focus position setting process, identify the product code displayed on the display tag as a central product code or an end product code.
[0190] Furthermore, in the control signal generation process, the focus position setting unit of the present invention only needs to set focus positions in individual areas corresponding to the unique numbers of the individual areas included in the selection pattern. That is, for example, when the unique numbers of the individual areas included in the selection pattern are "1", "2", "4", "6", and "8", the focus position setting unit of the present invention only needs to set focus positions in individual areas "1", "2", "4", "6", and "8".
[0191] Furthermore, when the information identifying unit cannot identify the product information corresponding to the product code, the selecting unit in the present invention may select a focus position pattern different from the selection pattern as a new selection pattern based on the position information of the product code whose product information is not identified. With this configuration, the present system (the present device) can obtain the product information more accurately.
[0192] Furthermore, the imaging device of the present invention may function as this device.
[0193] Furthermore, the acquisition unit, area identification unit, detection unit, selection unit, focal position setting unit, signal generation unit, and information identification unit in the present invention may be configured using a common processor and semiconductor memory, or may be configured using multiple processors and semiconductor memories.
[0194] Furthermore, according to the above-described embodiment, the present device 20 is configured by one computer. Instead of this, the present device may be configured by multiple computers. That is, for example, the present device may be configured by a group of multiple computers that function as the present device. Specifically, for example, the present device (group of computers) may be configured by a computer having a storage unit and a computer having a control unit that executes the present method. Also, for example, the multiple computers may have the respective functions of an acquisition unit, an area identification unit, a detection unit, a selection unit, a focal position setting unit, a signal generation unit, and an information identification unit in a distributed manner. In this case, the multiple computers may transmit and receive information through a communication line, or may transfer information using a portable storage medium.
[0195] Furthermore, in the above-described method, each process may be performed as long as it is possible to implement the present invention, and is not limited to the present embodiment. That is, for example, the method may be performed on a captured image in which all product codes are detectable without including a determination process, or the detection of product shelf areas, display tag areas, and sets of product codes may be performed in a control signal generation process.
[0196] Furthermore, the above-described embodiments do not unduly limit the contents of the invention described in the claims. Furthermore, all of the configurations described in the above-described embodiments are not necessarily essential components of the present disclosure. [Explanation of symbols]
[0197] 1. Information Processing Systems 10. Imaging device 20 Information processing device 22 Memory section 231 Acquisition Department 232 Area identification part 233 Detector 234 Selection Section 235 Focus position setting section 236 Signal Generator 237 Information Specification Department
Claims
1. An information processing device that identifies product information of a product based on a plurality of captured images captured by an imaging device that captures images of a product shelf on which the product is displayed, A label 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-changed images having different focus positions, a storage unit configured to store a plurality of focus position patterns that specify a combination of the individual areas to which the focus position is set, among the plurality of individual areas; an acquisition unit that acquires the captured image of the product shelf captured by the imaging device as a reference image; an imaging device control unit that controls an operation of the imaging device; an information identification unit that identifies the product information corresponding to the product code based on a plurality of the focus-changed images captured by the imaging device, the operation of which is controlled based on a control signal; and The imaging device control unit an area specifying unit that specifies the area of the product shelf captured in the reference image; a detection unit that detects a plurality of specific areas including the product code captured in the area of the product shelf; a selection unit that selects, as a selection pattern, one of the focus position patterns stored in the storage unit according to a detection result of the detection unit; and a focus position setting unit that sets the focus position for each of the individual regions included in the selection pattern based on the specific region detected by the detection unit; a signal generating unit that generates the control signal for causing the imaging device to capture a plurality of the focus-changed images focused on the plurality of focus positions, respectively; Equipped with 23. An information processing apparatus comprising:
2. The specific area is the product code.
2. The information processing device according to claim 1.
3. the selection unit selects the selection pattern based on pixel information of the plurality of product codes detected by the detection unit.
3. The information processing device according to claim 2.
4. the focus position setting unit sets the focus position based on the clarity of each of the product codes detected by the detection unit.
3. The information processing device according to claim 2.
5. The focus position setting unit is selecting a product code whose clarity is equal to or greater than a predetermined threshold and is the smallest from among the plurality of product codes detected in each of the individual regions; setting the focus position based on position information of the selected product code; 5. The information processing device according to claim 4.
6. the focus position setting unit sets the focus position based on a positional relationship between the product codes detected by the detection unit.
3. The information processing device according to claim 2.
7. The focus position setting unit is Identifying a center of gravity of the area of the product shelf in the reference image; Identifying the product code closest to the center of gravity as a central product code; selecting one of the product codes detected in each of the individual areas based on the positional relationship between the central product code and each of the product codes excluding the central product code among the product codes detected by the detection unit; setting the focus position based on position information of the selected product code; 7. The information processing device according to claim 6.
8. the focus position setting unit selects, for each individual area, either the product code that is closest to an end of the area of the product shelf and farthest from the central product code, or the product code that is closest to the central product code among the product codes that are close to the end.
8. The information processing device according to claim 7.
9. the storage unit stores a plurality of setting methods by which the focus position setting unit sets the focus position; The setting method is as follows: a first setting method for setting the focus position based on the definition of each of the product codes detected by the detection unit of the reference image; a second setting method for setting the focus position based on position information of each of the product codes detected by the detection unit of the reference image; Including, the focus position setting unit selects either the first setting method or the second setting method based on pixel information of each of the product codes detected by the detection unit in the reference image.
3. The information processing device according to claim 2.
10. The detection unit is Detecting a plurality of the product codes in the area of the product shelf for each of the refocused images; Identifying position information of each of the product codes detected for each of the refocused images; comparing the position information of each of the product codes between the refocused images; Identifying the product codes located within a common distance range between the focus-changed images as a product code group corresponding to the same product codes between the focus-changed images; 2. The information processing device according to claim 1.
11. the information identifying unit identifies the product information corresponding to the product code group based on the product information corresponding to a plurality of the product codes included in the product code group; The information processing device according to claim 10.
12. The information identifying unit is Identifying the product information for each of the refocused images based on the product code; The product information identified for each of the focus-changed images is integrated to identify the product information corresponding to the product code displayed by each of the display tags attached to the product shelves.
11. The information processing device according to claim 9 or 10.
13. When the information identification unit cannot identify the product information corresponding to the product code, the selection unit selects, as a new selection pattern, the focus position pattern that is different from the selection pattern, based on position information of the product code for which the product information is not specified.
2. The information processing device according to claim 1.
14. the focal position setting unit sets the focal position based on a positional relationship of the specific area with respect to the area of the product shelf; The specific area is an area of the product shelf where the display tag can be imaged.
4. The information processing device according to claim 3.
15. The individual regions include specific individual regions and non-specific individual regions, The focus position setting unit is setting the focal position corresponding to the specific individual area based on the positional relationship of the specific area with respect to the area of the product shelf; setting the focus position corresponding to the non-specific individual region based on the focus position set for the specific individual region; 15. The information processing device according to claim 14.
16. A computer is caused to function as the information processing device according to claim 1.
2. An information processing program comprising:
17. An information processing system that identifies product information of a product based on a plurality of captured images of a product shelf on which the product is displayed, comprising: An imaging device that captures the captured image; An information processing device that identifies the product information; and The information processing device is an information processing device according to claim 1. An information processing system comprising:
18. An information processing method executed by an information processing device that identifies product information of a product based on a plurality of captured images captured by an imaging device that captures images of a product shelf on which products are displayed, the method comprising: A label 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-changed images having different focus positions, The information processing device includes: a storage unit that stores a plurality of focus position patterns that specify a combination of the individual areas to which the focus position is set, among the plurality of individual areas; Equipped with The information processing device, an acquisition step of acquiring the captured image of the product shelf by the imaging device as a reference image; an area specifying step of specifying the area of the product shelf captured in the reference image; a signal generating step of generating a control signal for controlling an operation of the imaging device; an information identifying step of identifying the product information corresponding to the product code based on a plurality of the focus-changed images captured by the imaging device whose operation is controlled based on the control signal; and The signal generating step includes: a detection step of detecting a specific area including the product code captured in the area of the product shelf; a selection step of selecting, as a selection pattern, one of the focus position patterns stored in the storage unit according to a detection result of the detection step; a focus position setting step of setting the focus position for each of the 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 imaging device to capture a plurality of the focus-changed images focused on the plurality of focus positions, respectively; 23. An information processing method comprising:
Citation Information
Patent Citations
Display state determination system
JP2019185684A
System and Method for Self-Checkout Using Product Images
US20160019514A1
Store shelf imaging system and method
US20170032311A1
