Information processing system and program
The system addresses image distortion and partial cuts in sales floor imaging by extracting and correcting indicators, ensuring accurate product detection and identification with reduced staff burden.
Patent Information
- Application Number
- JP2023036240
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-09
- Publication Date
- 2024-09-20
AI Technical Summary
The challenge in capturing high-quality images of sales floors for product detection and identification is often hindered by image distortion and partial cuts, leading to decreased accuracy and increased staff burden.
An information processing system that uses processors to extract physical indicators from moving images, correct image distortion, and cut out still images based on predetermined conditions, facilitating easy and high-quality image capture.
This system enables easier capture of high-quality images with reduced variations, allowing for accurate product detection and identification, while supporting photographers with feedback on imaging conditions.
Smart Images

Figure 2024127233000001
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing system and a program. [Background technology]
[0002] When creating a sales floor, the layout of the products to be displayed is important. This task is called "shelf allocation work." Today, there is a demand for more efficient shelf allocation work. To address this issue, efforts are being made to automate the detection and identification of products from images captured of actual sales floors. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2009-187482 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, there are various constraints on capturing images of sales floors, and images suitable for processing are not always captured. For example, distorted images or images in which part of the product shelf is cut off reduce the accuracy of product detection and identification. Therefore, technology to improve the quality of captured images has been studied, but problems such as an increased burden on staff who capture images have been pointed out.
[0005] The present invention aims to make it possible to capture high-quality images more easily than in a case where staff are required to position an indicator displayed on a screen relative to a product shelf. [Means for solving the problem]
[0006] The invention described in claim 1 is an information processing system having one or more processors that detects images of physical indicators that define the positions of the vertices of a target range from a moving image output from an imaging device, uses the indicators detected from the moving image to extract a first still image corresponding to the target range from the moving image, and outputs the result of identifying the product and its position using a second still image in which distortion of the first still image has been corrected. The invention described in claim 2 is the information processing system described in claim 1, wherein the one or more processors cut out the first still image from the video if the area identified by the detected indicator satisfies predetermined conditions. An invention described in claim 3 is the information processing system described in claim 2, wherein the one or more processors determine that the predetermined condition is satisfied when the size of the area is larger than a first threshold value. An invention described in claim 4 is the information processing system described in claim 2, wherein the one or more processors determine that the predetermined condition is satisfied when the distortion of the region is smaller than a second threshold value. The invention described in claim 5 is the information processing system described in claim 1, wherein the one or more processors display an area surrounded by lines connecting the detected indices in a manner that makes it distinguishable from the area outside the area. An invention described in claim 6 is the information processing system described in claim 5, wherein the one or more processors display a line segment connecting the detected indices superimposed on the moving image. The invention described in claim 7 is the information processing system described in claim 5, wherein the one or more processors perform a masking process on the outer area portion. The invention described in claim 8 is an information processing system described in claim 1, wherein the one or more processors display on a screen information indicating that the first still image cannot be extracted if the area identified by the detected indicator does not satisfy a predetermined condition. The invention described in claim 9 is the information processing system described in claim 8, wherein the one or more processors display the line segments connecting the detected indices in a manner different from when the area identified by the detected indices satisfies predetermined conditions. The invention recited in claim 10 is the information processing system recited in claim 8, wherein the one or more processors display, in text form, an action required of the person taking the video. The invention described in claim 11 is the information processing system described in claim 1, wherein the one or more processors display on a screen that it is possible to operate the shutter to extract the first still image when the area identified by the detected indicator satisfies predetermined conditions. The invention described in claim 12 is the information processing system described in claim 1, wherein the one or more processors, when the area identified by the detected indicator satisfies a predetermined condition, inversely transform the frame shape indicating the area of each product detected from the second still image according to the distortion of the first still image, and display it superimposed on the moving image. The invention described in claim 13 is the information processing system described in claim 12, wherein the one or more processors enable acceptance of a shutter operation for extracting the first still image from the moving image when the frame shape is displayed superimposed on the moving image. The invention described in claim 14 is a program for enabling one or more computers to realize the following functions: detect an image of a physical indicator that defines the position of the vertex of a target range from a moving image output from an imaging device; use the indicator detected from the moving image to extract a first still image corresponding to the target range from the moving image; and output the result of identifying the product and its position using a second still image obtained by correcting the distortion of the first still image. Effect of the Invention
[0007] According to the invention described in claim 1, it is possible to capture high-quality images more easily than in the case where a staff member is required to determine the position between an index displayed on a screen and a product shelf. According to the invention as recited in claim 2, it is possible to suppress variation in the quality of captured images. According to the invention as set forth in claim 3, it is possible to suppress variation in the quality of captured images. According to the invention as set forth in claim 4, it is possible to suppress variation in the quality of captured images. According to the invention described in claim 5, the detection status of the index can be confirmed. According to the invention described in claim 6, the detection status of the index can be confirmed. According to the invention described in claim 7, the detection status of the index can be confirmed. According to the invention as recited in claim 8, it is possible to make the photographer aware of the need to change the imaging conditions. According to the invention as recited in claim 9, it is possible to make the photographer aware of the need to change the imaging conditions. According to the invention described in claim 10, the photographer can be notified of specific actions to be taken to improve the quality. According to the invention described in claim 11, it is possible to assist the photographer in operating the shutter. According to the invention as set forth in claim 12, it is possible to assist the photographer in operating the shutter. According to the invention as set forth in claim 13, it is possible to suppress variation in the quality of captured images. According to the invention described in claim 14, it is possible to capture high-quality images more easily than in the case where a staff member is required to position the indicator displayed on the screen relative to the product shelf. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram illustrating an example of an image processing system assumed in a first embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of a hardware configuration of a user terminal. [Diagram 3] FIG. 2 illustrates an example of a hardware configuration of a server. [Figure 4] 2 is a diagram illustrating an example of a functional configuration of a server assumed in the first embodiment. FIG. [Diagram 5]1 is a diagram illustrating an example of attaching markers to a product shelf, in which (A) shows an example of a target range identified by the marker, and (B) shows an example of a pattern used to identify an ID embedded in the marker. [Figure 6] 1A and 1B are diagrams illustrating the relationship between a captured image and the coordinates of a marker detected from the image, in which (A) shows an example of a captured image, and (B) shows an example of the coordinates of the marker. [Figure 7] 11A and 11B are diagrams illustrating another relationship between a captured image and the coordinates of a marker detected from the image, where (A) shows an example of a captured image, and (B) shows an example of the coordinates of the marker. [Figure 8] 13A and 13B are diagrams illustrating an example of an output of a target range, in which (A) shows four detected coordinate points, and (B) shows a target range drawn using supplementary information. [Figure 9] FIG. 13 is a diagram illustrating a rectangular shape circumscribing a target range. [Figure 10] 1A and 1B are diagrams illustrating the correction and transformation performed by an image correction unit, in which (A) shows an image before the image transformation, and (B) shows the image after the image transformation. [Figure 11] 1A and 1B are diagrams illustrating an example of a rectangular area representing the position and size of a product detected from a corrected image, where (A) is an example of a corrected image, and (B) is an example of a rectangular area detected from the corrected image. [Figure 12] 1A is a diagram illustrating an image of a commodity detected by a commodity detection unit, and FIG. 1B is a diagram illustrating an example of detection when an image correction unit is provided in front of the commodity detection unit. [Figure 13] 2 is a diagram illustrating an example of a processing operation executed in the image processing system assumed in the first embodiment. FIG. [Figure 14] 11A and 11B are diagrams illustrating other examples of attaching markers to a product shelf, where (A) is an example in which six markers are arranged on a product shelf, and (B) is an example of the coordinates of the markers. [Figure 15] 10A and 10B are diagrams illustrating a case where the target range is a polygon, in which (A) shows the target range drawn using the auxiliary information, and (B) shows the vertex coordinates used for image correction. [Figure 16] FIG. 11 is a diagram illustrating an example of a functional configuration of a server assumed in the second embodiment. [Figure 17] 11A and 11B are diagrams illustrating a quality determination process performed by a quality determination unit. [Figure 18] 1A and 1B are diagrams illustrating a specific example of quality judgment when the target range is a rectangle and when the target range is a concave polygon; [Figure 19] FIG. 11 is a diagram illustrating an example of a processing operation executed in an image processing system assumed in a second embodiment. [Figure 20] FIG. 13 is a diagram illustrating an example of a functional configuration of a server assumed in the third embodiment. [Figure 21] 1A and 1B are diagrams illustrating an example of a confirmation screen for a subject being imaged, in which (A) is a confirmation screen on which a frame representing the outer edge of the target range is superimposed, and (B) is a confirmation screen on which the outside of the target range is masked. [Figure 22] 11A and 11B are diagrams illustrating examples of how the quality judgment result is displayed on a confirmation screen for a subject being imaged, in which (A) is an example in which the judgment result is displayed in the color of a frame that represents the outer edge of the target range, and (B) and (C) are examples in which the judgment result is displayed in text. [Figure 23] 11A and 11B are diagrams illustrating other examples of how the quality judgment result is displayed on the confirmation screen of the subject being imaged, in which (A) is an example in which the judgment result is displayed in the color of a frame that represents the outer edge of the target range, and (B) and (C) are examples in which the judgment result is displayed in text. [Figure 24] FIG. 13 is a diagram illustrating an example of a processing operation executed in an image processing system according to a third embodiment. [Diagram 25] FIG. 13 is a diagram illustrating an example of a functional configuration of a server assumed in the fourth embodiment. [Figure 26] 1A and 1B are diagrams illustrating an example in which a quality judgment result is displayed on a confirmation screen for a subject being imaged, where (A) is an example of the display when the judgment result is NG, and (B) is an example of the display when the judgment result is OK. [Figure 27] FIG. 13 is a diagram illustrating an example of a processing operation executed in an image processing system assumed in a fourth embodiment. [Figure 28]FIG. 13 is a diagram illustrating an example of the functional configuration of a server assumed in the fifth embodiment. [Figure 29] 13 is a diagram for explaining the display process of a rectangular area according to embodiment 5. (A) is an image of an item displayed on a shelf, (B) is the image after correction by the image correction unit, (C) is the rectangular area detected by the item detection unit, (D) is a product frame representing the rectangular area after inverse conversion by the image correction unit, and (E) is an image in which the product frame is superimposed on the item. [Diagram 30] 13 is a diagram illustrating an example of display of a rectangular area when the processing operation described in the fifth embodiment is not adopted. (A) is an image of a product displayed on a shelf, (B) is a rectangular area detected so as to be in contact with the periphery of the product, and (C) is an image in which the detected rectangular area is superimposed on the product. [Diagram 31] 13A and 13B are diagrams illustrating examples of display of a confirmation screen according to embodiment 5. (A) is an example of display when there is an oversight in detecting the position of a product, and (B) is an example of display when there is no oversight in detecting the position of a product. [Diagram 32] FIG. 13 is a diagram illustrating an example of a processing operation executed in an image processing system assumed in a fifth embodiment. [Diagram 33] 1A and 1B are diagrams illustrating another image processing system, in which (A) shows an example of a system configured with a user terminal and a server present in the same store, and (B) shows an example of a system configured only with a user terminal that captures images of product shelves. [Diagram 34] FIG. 11 is a diagram illustrating an example of a processing operation executed in a user terminal. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. <Assumed environment> Except for some large stores, it is difficult to secure an appropriate distance for photographing product shelves in the aisles of a store. For this reason, it is expected that a wide-angle lens will be used to photograph product shelves, and there is also a variation in imaging skills. Images of product shelves photographed in such an environment are likely to be highly distorted. As a result, the accuracy of product detection and identification decreases, and the reliability of the generated shelf allocation information also decreases. On the other hand, it is not realistic to require all users to have high-level photography skills. For this reason, technology is required to support users in taking high-quality images of product shelves.
[0010] <System configuration> FIG. 1 is a diagram illustrating an example of an image processing system 1 assumed in the first embodiment. The image processing system 1 shown in FIG. 1 is composed of a user terminal 10 that uploads images of product shelves installed in a store such as a retail shop, a server 20 that processes the images uploaded from the user terminal 10 and identifies the products displayed on the product shelves and their positions, and a network N that connects these together.
[0011] Although the server 20 shown in FIG. 1 is assumed to be connected to a plurality of user terminals 10, the minimum configuration of the image processing system 1 is one user terminal 10 and one server 20. In the case of Figure 1, only one product shelf is shown in a store, but the number of product shelves installed in each store is not limited to one, and may be multiple. Incidentally, the number of product shelves varies from store to store. Therefore, some stores may have two product shelves, some five product shelves, and some ten product shelves.
[0012] The image processing system 1 may include at least one user terminal 10 in each store, and multiple user terminals 10 may exist in one store. The user terminal 10 may be capable of uploading images of product shelves to the server 20. In this embodiment, the user terminal 10 is assumed to be a smartphone that a user can carry in the store. However, the user terminal 10 may also be, for example, a tablet-type computer terminal or a digital camera with a communication function. The user terminal 10 may also be smart glasses, AR (Augmented Reality) glasses, or other wearable terminals.
[0013] Incidentally, the camera used to capture an image of the product shelf does not need to be integrated with the user terminal 10. For example, the camera may be attached to the user terminal 10. Also, the camera may be connected to the user terminal 10 via wireless communication. Although one server 20 is depicted in FIG. 1, the image processing system 1 may include a plurality of servers 20. The network N is assumed to be the Internet or a LAN (Local Area Network). In addition, a part of the network N may be a 5G or other mobile communication system. Needless to say, the network N may be a wired network or a wireless network.
[0014] <Device configuration> <User terminal configuration> FIG. 2 is a diagram illustrating an example of a hardware configuration of the user terminal 10. As shown in FIG. 2 includes a processor 101, a ROM (=Read Only Memory) 22 in which a BIOS (=Basic Input Output System) and the like are stored, a RAM (=Random Access Memory) 103 used as a work area for the processor 101, an auxiliary storage device 104, a display 105, a camera 106, a microphone 107, a speaker 108, and a communication interface 109. Each device is connected via a bus or other signal lines 110.
[0015] The processor 101 is a device that realizes various functions through the execution of programs. The processor 101, the ROM 102, and the RAM 103 function as a computer. The auxiliary storage device 104 is configured by, for example, a hard disk device or a semiconductor storage. Various data related to programs are stored in the auxiliary storage device 104. The programs here include an OS and application programs. The display 105 is, for example, a liquid crystal display or an organic EL (Electro Luminescent) display. In the case of Fig. 1, the display 105 is integrated with the user terminal 10, but it may be external to the user terminal 10 or connected via wireless communication.
[0016] Camera 106 is an imaging device that uses, for example, a CMOS (=Complementary Metal Oxide Semiconductor) sensor or a CCD (=Charge Coupled Device) sensor as an imaging element. Camera 106 shown in FIG. 1 constitutes a part of user terminal 10. However, as described above, it may be attachable to the main body of user terminal 10, or may be connected via wireless communication. In this embodiment, camera 106 is used to capture images of product shelves. In this embodiment, the images of the product shelves are captured as moving images, and are uploaded as such to server 20 (see FIG. 1).
[0017] The microphone 107 is an acoustic device that converts sound into an electrical signal. The speaker 108 is an acoustic device that converts an electrical signal representing a sound into sound. The communication interface 109 is an interface used for communication with the server 20 (see FIG. 1), etc. The communication interface 109 supports various communication standards according to the network N used for communication. Examples of the communication standards include Ethernet (registered trademark), Wi-Fi (registered trademark), and mobile communication systems.
[0018] <Server configuration> FIG. 3 is a diagram illustrating an example of a hardware configuration of the server 20. As shown in FIG. The server 20 is an information processing terminal connected to the user terminal 10 (see FIG. 1) on the store side via the network N. The server 20 in this embodiment is an example of an information processing system. The server 20 detects partial images corresponding to each product displayed on the product shelf from the captured image of the product shelf, and executes a process of identifying each product from the detected partial images. The server 20 also detects the positional relationship between the product shelf and the partial images.
[0019] In this embodiment, information on combinations of each position on a product shelf and a product is called allocation information. The server 20 in this embodiment is used to generate current shelf allocation information for product shelves installed in a store or the like. The server 20 may be an on-premise server or a cloud server.
[0020] 3 includes a processor 201, a ROM 202 storing a BIOS and the like, a RAM 203 used as a work area for the processor 201, an auxiliary storage device 204, and a communication interface 205. Each device is connected via a bus or other signal lines 206.
[0021] The processor 201 is a device that realizes various functions through the execution of programs. The processor 201, the ROM 202, and the RAM 203 function as a computer. The auxiliary storage device 204 is configured, for example, with a hard disk device or semiconductor storage. Programs and various data are stored in the auxiliary storage device 204. Here, the program is used as a general term for the OS (=Operating System) and application programs. One of the application programs is a program used to generate shelf allocation information. In this embodiment, the auxiliary storage device 204 is built in the server 20, but it may be external to the server 20, or may exist on the network N (see FIG. 1).
[0022] The communication interface 205 is an interface used for communication with the user terminal 10 (see FIG. 1), etc. The communication interface 205 supports various communication standards according to the network N used for communication. Examples of communication standards include Ethernet (registered trademark), Wi-Fi (registered trademark), and mobile communication systems.
[0023] Fig. 4 is a diagram for explaining an example of a functional configuration of the server 20 assumed in the embodiment 1. The functions shown in Fig. 4 are realized through the execution of a program by the processor 201 (see Fig. 3). The server 20 shown in FIG. 4 is made up of a marker detection unit 211, a target range specification unit 212, an image correction unit 213, a product detection unit 214, a product matching unit 215, and a shelf allocation estimation unit 216.
[0024] The marker detection unit 211 is a functional unit having a sub-function of detecting markers that appear in an image of a product shelf, a sub-function of reading ID (=Identifier) information embedded in the marker, and a sub-function of outputting additional information linked to the ID. A target area is an example of an area identified by a marker. The additional information includes information about the shape of the area specified by the arrangement of multiple markers (hereinafter referred to as the "target range") and the aspect ratio of the target range. Therefore, the user needs to attach a dedicated marker, in which an ID corresponding to the target range is embedded, to the position that defines the vertex of the target range.
[0025] If the shape of the target area formed by the markers attached to the product shelves differs from the additional information of the ID embedded in the markers, the processing operation of the server 20 stops. The detection of markers is performed for all frame images constituting the video data uploaded from the user terminal 10 (see FIG. 1), or for a portion of frame images sampled from all frame images constituting the video data. In other words, markers are detected from the frame images.
[0026] 5 is a diagram illustrating an example of attaching a marker M to a product shelf. (A) shows an example of a target range identified by the marker M, and (B) shows an example of a pattern used to identify an ID embedded in the marker M. The marker M is an example of a physical indicator that defines the position of a vertex of the target range. Here, a vertex refers to the intersection of two sides of a polygon. In the case of FIG. 5(A), the target range is rectangular. Note that five or more markers M may be used to define a polygonal target range. Incidentally, it is also possible in principle to define a triangular target range using three markers M.
[0027] In the case of FIG. 5(A), there are four markers M, which are attached to the upper left, upper right, lower left, and lower right corners of a product shelf on which products of various shapes and sizes are displayed. However, the target range defined by the marker M may be a part of the product shelf. For example, the target range may be a space corresponding to one or more specific shelves, such as the space corresponding to the first shelf from the top. Also, the target range may be only a part of the space corresponding to one shelf, such as the left half or the right half of the space corresponding to a specific shelf. Also, the target range may be only a portion of the space spanning multiple shelves of a product shelf, such as the left or right half of the space corresponding to the second and third shelves from the top.
[0028] The pattern shown in Fig. 5(B) is a two-dimensional code. Fig. 5(B) illustrates ten types of two-dimensional codes with different patterns. In this case, ten types of IDs can be embedded. For example, if there are two types of expected target ranges and five types of aspect ratios, a total of ten types of two-dimensional codes are required. If 10 or more types of IDs are required, 10 or more types of two-dimensional codes are prepared in advance. Markers M with two-dimensional codes identified by IDs are attached to the product shelves. Incidentally, the ID may be embedded in the marker M using a one-dimensional code or a character string, or may be combined with a color.
[0029] As shown in Fig. 5(A), the four markers M attached to the four corners of the product shelf are all identical. Therefore, if even one marker M appears in the image to be processed, it is possible to read the additional information identified by the ID embedded in the marker M. As described above, the additional information is linked to information such as the shape and aspect ratio of the target range. Therefore, if even one marker M can be detected, it is possible to determine whether the number of markers M detected from the image is excessive or insufficient, and whether the identified target range matches the shape, aspect ratio, etc. of the target range specified in the additional information.
[0030] Returning to the explanation of Figure 4. The target range identification unit 212 has a sub-function of checking whether the number of markers M detected from the image matches the number of markers M specified in the additional information, and a sub-function of, if the number of all markers M detected from the image matches the number of markers M specified in the additional information, connecting the coordinates of each marker M with lines so as to form the shape specified in the additional information, and outputting the area surrounded by the lines as the target range. In addition, when the number of all markers M detected from the image matches the number of markers M specified in the supplementary information, it means that all of the markers M actually attached to the product shelf are detected from within the image.
[0031] 6 is a diagram for explaining the relationship between a captured image and the coordinates of a marker M detected from the image. (A) shows an example of a captured image, and (B) shows an example of the coordinates of the marker M. In addition, in Figs. 6(A) and (B), the outer edge of the captured image is indicated by a thick frame. In the image shown in Fig. 6(A), the product shelves are shown in a substantially trapezoidal shape, that is, the image of the product shelves shown in Fig. 6(A) is distorted.
[0032] The cause of the distortion here is mainly assumed to be the imaging conditions, that is, linear distortion due to the pitch, yaw, and roll of the camera 106 (see FIG. 2). In the present embodiment, lens distortion is not assumed as a cause of distortion, that is, nonlinear distortion is not assumed. In the case of Fig. 6(A), four markers M are detected. Therefore, as shown in Fig. 6(B), four coordinate points corresponding to the markers M are detected. Note that in Fig. 6(B), the upper left corner of the image is set as the origin (0,0), and the coordinates of the lower right corner are set as (1,1).
[0033] 7 is a diagram for explaining another relationship between a captured image and the coordinates of a marker M detected from the image. (A) shows an example of a captured image, and (B) shows an example of the coordinates of the marker M. Note that in FIG. 7, the same reference numerals are used to denote parts corresponding to those in FIG. 6. In the case of the image shown in Figure 7(A), the upper left corner of the product shelf is cut off, so the number of markers M that appear in the image is three. Therefore, in FIG. 7(B), three coordinate points corresponding to the marker M are detected.
[0034] The above-mentioned target range identification unit 212 (see FIG. 4) judges whether the number of markers M detected from FIG. 6 or FIG. 7 matches or does not match the number of markers M specified in the accompanying information linked to the markers M. In this example, the number of markers M specified in the accompanying information is four. Therefore, in the case of FIG. 6, the sub-function of outputting the target range is executed, but in the case of FIG. 7, the sub-function of outputting the target range is not executed. However, if the shape specified in the supplementary information is a rectangle, the number of vertices is four, so it is clear that the number of markers M is four. 8 is a diagram illustrating an example of the output of the target range, in which (A) shows four detected coordinate points, and (B) shows the target range drawn using the supplementary information.
[0035] The image correction unit 213 is a functional unit that detects image distortion caused by the shooting conditions from the shape of the target range output from the target range identification unit 212, and applies image conversion to the image corresponding to the target range to remove the effects of the detected distortion. The image of the product shelf from which the effects of distortion have been removed is output to the product detection unit 214 as a corrected image. The image transformation used here may be, for example, an affine transformation or a projective transformation. If the supplementary information includes aspect ratio information, the aspect ratio of the target range after the image transformation can be adjusted to make the corrected image closer to the actual state of the product shelf. The image correction here may include correction of, for example, brightness, contrast, saturation, and white balance.
[0036] First, prior to correcting an image that includes a product as a subject, a rectangular shape that circumscribes the target area is obtained. FIG. 9 is a diagram for explaining a rectangular figure circumscribing the target range. The figure enclosed by a solid line is the target range specified in FIG. 8(B). The figure enclosed by a dashed line is a rectangular figure circumscribing the target range. The coordinates in the figure are the coordinates (x 1i ,y 1i ) and the coordinates of the vertices that give the four corners of the rectangle that circumscribes the target range (x 2i ,y 2i ), where i = 1, 2, 3, 4. The rectangular shape in this case becomes the target shape of the image transformation process used to remove distortion from the image corresponding to the target area.
[0037] The rectangle circumscribing the target range is calculated using Equation 1. TIFF2024127233000002.tif47161
[0038] As described above, by using the information on the aspect ratio r specified as the supplementary information, it is possible to make the rectangular shape that is the conversion target closer to an actual product shelf. For example, the coordinates of a rectangle (x 23 ,y23 ) to coordinate (x' 23 ,y' 23 ) to TIFF2024127233000003.tif35161
[0039] Adjusting the shape of the rectangular figure using the aspect ratio r not only improves the accuracy of detecting the product's position and size, but also improves the accuracy of product matching. This is because the aspect ratio of the product in the corrected image is closer to that of the actual product, and the accuracy of matching with reference images in the database is improved. As a result, it becomes possible to distinguish between products with the same package design but different sizes. For example, it becomes possible to distinguish between 350ml and 500ml bottles of drink.
[0040] Next, the image correction unit 213 removes distortion from the image using, for example, the geometric transformation shown in Equation 3 so that the target range coincides with a circumscribing rectangular figure. TIFF2024127233000004.tif26161Note that the symbol ~ means the same thing except for the constant multiple.
[0041] Now, Equation 3 is transformed into the following equation: TIFF2024127233000005.tif37161Here, h is the transformation coefficient. Equation 4 is the projection transformation equation.
[0042] The conversion coefficient h can be calculated using the following formula: TIFF2024127233000006.tif41161
[0043] By substituting each coordinate point of the image corresponding to the target range into Equation 4, which is expressed as the conversion coefficient obtained in Equation 5, an image of the product shelf with distortion removed can be obtained. 10 is a diagram for explaining the correction conversion by image correction unit 213. (A) shows the image before the image conversion, and (B) shows the image after the image conversion. The image shown in Fig. 10(A) is an image corresponding to the target range. Since it is an image cut out from a captured image, it is distorted. Note that the image shown in Fig. 10(A) is an example of a first still image.
[0044] The image shown in Fig. 10(B) is an image in which distortion has been removed by image conversion. The image shown in Fig. 10(B) is rectangular, just like the actual product shelf described in Fig. 5(A). The image shown in Fig. 10(B) is an example of the second still image. The image after image conversion is output to the product detection unit 214.
[0045] In addition, the image correction unit 213 is not limited to geometric transformation, and can also correct brightness and color components. For example, when the periphery of the target range is bright (for example, in the case of backlighting), the exposure of the camera 106 (see FIG. 2) is set low, and as a result, the target range is photographed dark. In this case, the image correction unit 213 adjusts the exposure of the target area based on the luminance histogram of the target area. As a result, the accuracy of product detection and matching is improved. In addition, the image correction unit 213 may correct the contrast, saturation, and white balance.
[0046] The product detection unit 214 is a functional unit that detects products from an image of a product shelf from which the effects of distortion and the like have been removed, and outputs the product position and product size. The product detection unit 214 outputs the product position and product size using object detection AI (=artificial intelligence) that uses a learning model generated by machine learning, as well as image matching based on templates and image features. In this embodiment, the size of the product is output as a rectangular area defined by width and height. This rectangular area represents a box that borders the maximum width and maximum height of each product. The rectangular area is also called a bounding box.
[0047] 11 is a diagram illustrating an example of detection of a rectangular area representing the position and size of a product detected from a corrected image. (A) is an example of a corrected image, and (B) is an example of a rectangular area detected from the corrected image. In the case of FIG. 11(B), the positions and sizes of all products included in the corrected image are represented by rectangular areas.
[0048] 12 is a diagram illustrating an image of a commodity detected by the commodity detection unit 214. (A) shows an example of detection when the image correction unit 213 is provided in front of the commodity detection unit 214, and (B) shows an example of detection when the image correction unit 213 is not provided in front of the commodity detection unit 214. The image of the product shelf shown in Fig. 12(B) is the image of the product shelf shown in Fig. 10(A). In other words, the image of the product shelf shown in Fig. 12(B) still has the effects of distortion due to the imaging conditions. If the product position and size are detected from this image, the accuracy of image matching, etc. will decrease. For this reason, five products have been missed in the image shown in FIG. 12(B). On the other hand, the image shown in Fig. 12(A) is the image shown in Fig. 10(B). There is no detection failure in the image shown in Fig. 12(A).
[0049] The product matching unit 215 is a functional unit that outputs which product is located at which position on the product shelf by matching the product image corresponding to the rectangular area with images registered in the database. The matching here uses similarity calculated based on the features of the images, etc. The "position of the product" is specified, for example, by a number that specifies which shelf the product is on from the top and the number of a rectangular area counted from the left end of the shelf. The "product" is specified, for example, by information that specifies the product. In this embodiment, the "information that specifies the product" includes, for example, a category, a specific product name, and a product code. In this embodiment, a functional section constituted by the product detection section 214 and the product matching section 215 is referred to as a product identification section 220 .
[0050] The shelf allocation estimation unit 216 is a functional unit that estimates shelf allocation from the relationship between the type and position of the specific product identified by the product matching unit 215, and outputs the estimation result as shelf allocation information. The shelf allocation here refers to the layout of products actually displayed on a product shelf. Shelf allocation information is data that describes in a predefined format, for example, which product is located at which position from the left or right on which shelf from the top. Shelf allocation information is described in, for example, CSV, XML, or JSON format. In this embodiment, a functional unit constituted by the product identification unit 220 and the shelf allocation estimation unit 216 is referred to as a shelf allocation information generation unit 230 .
[0051] <Processing operation example> 13 is a diagram for explaining an example of a processing operation executed in the image processing system 1 assumed in the embodiment 1. Note that the symbol S shown in the diagram means a step. 13, the processing operations of the image processing system 1 assumed in the first embodiment are executed by cooperation between the user terminal 10 and the server 20. The processing operations on the user terminal 10 side are executed by the processor 101 (see FIG. 2), and the processing operations on the server 20 side are executed by the processor 201 (see FIG. 3).
[0052] A series of processing operations is started by starting a program for shelf allocation in the user terminal 10. When image capture by the program for shelf allocation is started, the user terminal 10 uploads moving image data being captured to the server 20 (Step 1). After starting uploading the video data, the user terminal 10 determines whether or not to end image capture (step 2), and while a negative result is obtained, it repeats uploading the video data to the server 20. If a positive result is obtained in step 2, the user terminal 10 ends uploading the video data (step 3).
[0053] On the other hand, when the server 20 acquires moving image data from the user terminal 10 (step 11), it detects the marker M (step 12). The detection of the marker M is performed on the frame images constituting the moving image data. Next, the server 20 judges whether all the markers M specified in the additional information are present (step 13). As described above, if even one marker M is detected, the additional information is read out via the ID embedded in the marker M, and the number of markers M, etc. are ascertained.
[0054] If the number of detected markers M is less than the number of markers M specified in the supplementary information, a negative result is obtained in step 13. In this case, the server 20 detects markers M in another frame image. If the number of markers M detected from the frame image satisfies the number of markers M specified in the supplementary information, a positive result is obtained in step 13. In this case, the server 20 identifies the target range (step 14). As described above, the target range is identified by connecting the coordinate points of the detected markers M with line segments so as to satisfy the shape of the target range specified in the supplementary information. Once the target range is identified, a conversion coefficient required for image conversion to remove image distortion is calculated. In this manner, in this embodiment, the target range for image correction is automatically set.
[0055] Next, the server 20 cuts out an image corresponding to the target range (step 15), and corrects distortion of the cut out image (step 16). The server 20 then detects the location and size of the items (step 17) and identifies the item at each location (step 18). Finally, the server 20 generates planogram information describing the identified items and locations (step 19).
[0056] <Other examples of marker M installation> In the above description, an example of an arrangement of four markers M has been described, but the processing operation described in this embodiment can also be applied to a case where the number of markers M is five or more. 14 is a diagram for explaining another example of attaching the markers M to a product shelf. (A) is an example in which six markers M are arranged on a product shelf, and (B) is an example of the coordinates of the markers M.
[0057] If information about the shape of the target range is specified as the supplementary information, it is possible to omit placing the marker M corresponding to the coordinate point (0.63, 0.72) shown in Fig. 14(B). Incidentally, the coordinate point (0.63, 0.72) defines the upper left corner of the cutout portion provided in the lower right of the target range, which is a concave polygon. Even if a marker M is not placed at the coordinate point (0.63, 0.72), it is possible to calculate the approximate coordinate point based on, for example, the coordinate point (0.8, 0.7) of the marker M to the right and the coordinate point (0.6, 0.92) of the marker M below.
[0058] In this sense, the target range in FIG. When the number of markers M used to specify the target range is large, multiple types of markers M with different two-dimensional codes may be used to reduce the number of markers M attached to the product shelves.
[0059] 15A and 15B are diagrams for explaining a case where the target range is a polygon, in which (A) shows the target range drawn using the auxiliary information, and (B) shows the vertex coordinates used for image correction. In Fig. 15(A), the target range is shown as a figure surrounded by a thick frame. This figure is drawn by connecting the vertex coordinates detected in Fig. 14(B) with line segments. Incidentally, the transformation equation for removing image distortion corresponding to the target range requires the coordinate points of the four corners of a rectangle, as shown in FIG. Therefore, as shown in FIG. 15(B), the coordinate point (x 23 ,y 23 Calculate the virtual coordinate point (x 23 ,y 23 ) to generate a rectangle for image conversion, the above-mentioned method can be applied as is.
[0060] <Embodiment 2> In this embodiment, an additional function for improving the accuracy of product detection and matching will be described. Fig. 16 is a diagram for explaining an example of the functional configuration of the server 20A assumed in the embodiment 2. In Fig. 16, parts corresponding to those in Fig. 4 are denoted by the same reference numerals. The hardware configuration of the server 20A and the configuration of the image processing system 1 that uses the server 20A are the same as those in the first embodiment.
[0061] The functional unit added to the server 20A shown in FIG. The quality judgment unit 217 is a functional unit that judges whether the target range identified by the target range identification unit 212 satisfies predetermined quality standards, and outputs the judgment results and information regarding the reason for the judgment to the image correction unit 213. In the case of this embodiment, the processing operation of image correction section 213 is started on condition that a result of the determination that the quality is satisfied is given from quality determination section 217 .
[0062] In this embodiment, whether or not a quality standard is met is determined using the size of the target range and the magnitude of distortion. Specifically, the quality determining unit 217 determines that the predetermined condition is satisfied when the size of the target range is larger than a first threshold value, and determines that the predetermined condition is satisfied when the distortion is smaller than a second threshold value.
[0063] 17 is a diagram for explaining the quality judgment process of quality judging section 217. The vertical axis represents the size S of the figure, and the horizontal axis represents the distortion D of the figure. The size S of a graphic is a so-called area, and in this embodiment, it is given by the number of pixels contained in the graphic. Incidentally, in Fig. 17, the maximum value of the size S is normalized to 1.0. In FIG. 17, the size threshold is represented as H1.
[0064] In this embodiment, the threshold value H1 is set to 0.5. The area of the entire screen is set to 1.0. In other words, if the size S of the target range is larger than 0.5, it is determined that the information on quality is satisfied. The threshold value H1 is determined based on the shape of the target area, the size of the image data output to the product detection unit 214, and the like. For example, the size of the image data is 640×640, 1014×1024.
[0065] Incidentally, if the size S of the target range is small, it becomes necessary to increase the magnification ratio when correcting the image even if there is no distortion in the target range. However, in the case of image conversion with a large magnification ratio, blurring becomes noticeable in the corrected image, and the accuracy of product detection and matching decreases. Therefore, it is required that the size S of the target range is larger than the threshold value H1. Note that the threshold value H1 is not limited to 0.5. For example, the threshold value H1 may be 0.6 or 0.7. In the case of Fig. 17, the target ranges F1 and F2, whose figure sizes are larger than the threshold H1, satisfy the size condition, whereas the target range F3 does not satisfy the size condition.
[0066] In Figure 17, the distortion threshold is represented by H2. If the distortion D of the target range is large, the amount of correction for distortion D will be large even if the size of the target range is large. Then, the effects of the distortion remain in the corrected image, reducing the accuracy of product detection and matching. Therefore, a threshold H2 is also prepared for distortion. In this embodiment, the magnitude of distortion D is defined as the sum of absolute values of the interior angle error in the target range. The interior angle error is given as the difference between the interior angle and 90°. Therefore, when the interior angle is 90°, the error is 0°.
[0067] For example, the target range F1 in Fig. 17 has four interior angles θ0, θ1, θ2, and θ3. In this case, the distortion D of the target range F1 is calculated by the following formula. TIFF2024127233000007.tif18161 In this embodiment, the threshold value H2 is set to 50°. That is, if the distortion D of the target range is smaller than 50°, it is determined that the information regarding quality is satisfied. 17, the target ranges F1 and F3 are roughly rectangular. Therefore, the target ranges F1 and F3 satisfy the condition regarding distortion. However, the distortion D of the target range F2 is greater than the threshold value H2. Therefore, the target range F2 does not satisfy the condition regarding distortion.
[0068] 18A and 18B are diagrams for explaining a specific example of quality judgment, in which (A) shows a case where the target range is a rectangle, and (B) shows a case where the target range is a concave polygon. In the case of Fig. 18(A), the distortion D is calculated to be 32° (=11°+5°+14°+2°). Therefore, the target range shown in Fig. 18(A) satisfies the condition regarding distortion. On the other hand, in the case of Fig. 18(B), the distortion D is calculated to be 64° (=11°+5°+16°+16°+14°+2°). Therefore, the target range shown in Fig. 18(B) does not satisfy the condition regarding distortion. As shown in FIG. 18B, for interior angles of 180° or more, the exterior angle is used. Incidentally, the distortion threshold value H2 may be the same regardless of the shape of the target range, or may be changed according to the number of interior angles.
[0069] Fig. 19 is a diagram for explaining an example of a processing operation executed by the image processing system 1 assumed in the embodiment 2. In Fig. 19, parts corresponding to those in Fig. 13 are denoted by the same reference numerals. The processing operation of the user terminal 10 is the same as the processing operation shown in FIG. On the other hand, with respect to the processing operation of the server 20A, two determination processes are added after execution of step 14. In the case of FIG. 19, after specifying the target range, the server 20A determines whether or not the size S of the specified target range is larger than a threshold H1 (step 21).
[0070] If the size S of the target range is equal to or smaller than the threshold H1, a negative result is obtained in step 21. In this case, the server 20A returns to step 12 and detects the marker M in another frame image. On the other hand, if the size S of the target range is greater than the threshold H1, a positive result is obtained in step 21. In this case, the server 20A determines whether the distortion D is smaller than the threshold H2 (step 22). If the distortion D is equal to or greater than the threshold H2, the server 20A returns to step 12 and detects the marker M in another frame image.
[0071] On the other hand, if the distortion D is smaller than the threshold H2, the server 20A proceeds to step 15 and cuts out the image corresponding to the target range. The order of execution of steps 21 and 22 can be reversed. Also, the judgments of steps 21 and 22 may be executed at the same time. In this case, a positive result is obtained when both conditions are satisfied, and a negative result is obtained when any one of the conditions is not satisfied.
[0072] <Embodiment 3> By using the server 20A (see FIG. 16) described in the second embodiment, it is possible to improve the accuracy of product detection and product matching compared to the server 20 (see FIG. 1) described in the first embodiment. However, even the server 20A will not generate shelf allocation information unless video data that satisfies the quality conditions is input.
[0073] Fig. 20 is a diagram for explaining an example of a functional configuration of the server 20B assumed in the embodiment 3. In Fig. 20, parts corresponding to those in Fig. 16 are denoted by the same reference numerals. The hardware configuration of the server 20B and the configuration of the image processing system 1 using the server 20B are the same as those in the second embodiment.
[0074] The functional unit added to the server 20B shown in FIG. The information display control unit 218 is a functional unit that reflects the judgment result of the quality judgment unit 217 in the display of the user terminal 10. In the case of this embodiment, the information display control unit 218 is provided with, for example, the following sub-functions. One of the sub-functions is a sub-function for displaying the specified target range and the area outside of it in a distinguishable manner.
[0075] 21 is a diagram illustrating an example of a confirmation screen of a subject being imaged. (A) is a confirmation screen on which a frame W representing the outer edge of the target range is superimposed, and (B) is a confirmation screen on which the outside of the target range is masked. The confirmation screens shown in FIGS. 21(A) and (B) are displayed on the display 105 of the user terminal 10 (see FIG. 1). The frame W in the confirmation screen shown in Fig. 21(A) is an example of a display using lines connecting the markers M. In other words, the frame W is an example of a frame shape indicating the area of the product. The frame W is displayed superimposed on the frame image used to detect the target range.
[0076] In the confirmation screen shown in Fig. 21(B), the outside of the target range is shown hidden by shading. This display form is an example of masking processing. There are two types of masking processing: a method that completely hides the outside of the target range and a method that adds a semi-transparent watermark process. These displays enable the user to judge the quality of the captured image on the display 105. For example, the user can become aware of the size of the target area and the magnitude of distortion.
[0077] In this embodiment, the display by the information display control unit 218 is premised on the target range being identified by the target range identification unit 212, but it may also be possible to superimpose and display a line segment connecting the vertices of the detected marker M even at a stage when the target range has not been identified. For example, if there is a missing line segment connecting the markers M, the user will be more likely to notice that the target range has not been specified.
[0078] 22 is a diagram illustrating an example in which the quality judgment result is displayed on the confirmation screen of the subject being imaged. (A) is an example in which the judgment result is displayed in the color of a frame W that represents the outer edge of the target range, and (B) and (C) are examples in which the judgment result is displayed in text. 22(A) is a display example when the size S of the detected target range is equal to or smaller than the threshold H1, and the frame W is displayed in red. Note that when the size S of the detected target range is larger than the threshold H1, the frame W is displayed in green. Therefore, displaying the frame W in red is an example of a display mode different from when the target range satisfies a predetermined condition.
[0079] The confirmation screen shown in Fig. 22(B) is an example of a display when the size S of the detected target range is equal to or smaller than the threshold value H1, and the quality judgment result is displayed as "NG" in the text T1. Note that the text T1 displays "Please move closer" as information to assist in improving the quality. Another possible message would be "Please zoom in a bit more." Incidentally, this information can also be output as sound from speaker 108 (see FIG. 2).
[0080] It is also possible to display the reason for the judgment result in the text T1. For example, it is possible to display "The distance seems to be too far" or "You are zoomed out too far." However, using the zoom function at close range may cause distortion of the image. Incidentally, if the quality is judged to be good, it is possible to configure the specifications so that the text T1 is not displayed, or to display "OK." In the confirmation screen shown in FIG. 22(B), a frame W indicating the outer edge of the target range is not superimposed, but the frame W may be superimposed as in the case of FIG. 22(A).
[0081] The confirmation screen shown in FIG. 22(C) is another example of the display when the size S of the detected target range is equal to or smaller than the threshold H1. In the confirmation screen shown in Fig. 22(C), the judgment result is displayed in text T1, similar to Fig. 22(B). Note that in the confirmation screen shown in Fig. 22(C), the outside of the target range is masked, similar to Fig. 21(B).
[0082] 23 is a diagram illustrating another example in which the quality judgment result is displayed on the confirmation screen of the subject being imaged. (A) is an example in which the judgment result is displayed in the color of a frame W that represents the outer edge of the target range, and (B) and (C) are examples in which the judgment result is displayed in text. 23(A) is a display example when the detected distortion D of the target range is equal to or greater than the threshold H2, and the frame W is displayed in red. Note that when the detected distortion D of the target range is smaller than the threshold H2, the frame W is displayed in green. Therefore, displaying the frame W in red is an example of a display mode different from when the target range satisfies a predetermined condition.
[0083] The confirmation screen shown in Fig. 23(B) is an example of a display when the detected distortion D of the target range is equal to or greater than the threshold value H2, and the quality judgment result is displayed as "NG" in the text T2. Note that the text T2 displays "Please level the camera" as information to help improve the quality. Other messages such as "Try taking the image from a little further away" are also possible. This information can also be output as sound from speaker 108 (see FIG. 2).
[0084] The text T2 may also display the reason why the judgment result was obtained. For example, it may display "The camera is tilted." Incidentally, if the quality is judged to be good, it is possible to configure the specifications so that the text T2 is not displayed, or to display "OK." In the confirmation screen shown in FIG. 23(B), a frame W representing the outer edge of the target range is not superimposed, but the frame W may be superimposed as in the case of FIG. 23(A).
[0085] The confirmation screen shown in FIG. 23(C) is another example of the display when the detected distortion D in the target range is equal to or greater than the threshold value H2. In the confirmation screen shown in Fig. 23(C), the judgment result is displayed in text T2, similar to Fig. 23(B). Note that in the confirmation screen shown in Fig. 23(C), the outside of the target range is masked, similar to Fig. 22(B).
[0086] Fig. 24 is a diagram for explaining an example of a processing operation executed by the image processing system 1 assumed in the embodiment 3. In Fig. 24, parts corresponding to those in Fig. 19 are denoted by the same reference numerals. In the case of Fig. 24, if a negative result is obtained in step 21 or step 22, server 20B notifies user terminal 10 of information to assist the user in taking an image (step 31). Step 31 is a processing operation unique to server 20B. The "information to assist the user in taking an image" here includes the judgment result, the reason for the judgment result, and information to assist in improving quality, as described above. The user terminal 10 that has received the notification from the server 20B displays the notified information on the display 105 (see FIG. 2) (step 4). Step 4 is executed only when the notification is received from the server 20B.
[0087] <Fourth embodiment> In the embodiment described above, the only task required of the user is to take a video of the product shelves. That is, the mechanism for automatically generating shelf allocation information when a frame image that satisfies a predetermined condition is obtained has been described. In this embodiment, a case will be described in which the processing operations after image correction proceed on the condition that a shutter operation is performed by a user who is taking a video of a product shelf. The shutter operation here is an operation for cutting out frame images to be used for generating shelf allocation information from the video data.
[0088] Fig. 25 is a diagram illustrating an example of a functional configuration of the server 20C assumed in the embodiment 4. In Fig. 25, parts corresponding to those in Fig. 20 are denoted by the same reference numerals. The hardware configuration of the server 20C and the configuration of the image processing system 1 using the server 20C are similar to those in the third embodiment. Server 20C shown in Fig. 25 differs from server 20B shown in Fig. 20 in two points: the quality determination unit 217 no longer notifies image correction unit 213 of the determination result, and the user terminal 10 (see Fig. 1) now notifies shutter operation information to image correction unit 213. The shutter operation information is information notifying whether or not an operation of shutter button B has been accepted.
[0089] 26 is a diagram illustrating an example in which the quality judgment result is displayed on the confirmation screen of the subject being imaged. (A) is a display example in which the judgment result is NG, and (B) is a display example in which the judgment result is OK. The confirmation screen shown in FIG. 26 is displayed on the display 105 of the user terminal 10. The confirmation screen shown in Fig. 26(A) corresponds to Fig. 22(B). Note that the quality of the image being captured does not satisfy the conditions, so the shutter button B is not displayed.
[0090] The confirmation screen shown in Fig. 26(B) is displayed when the quality of the image being captured satisfies the conditions. Therefore, the confirmation screen displays "OK" in text T3 as the quality judgment result. In the case of Fig. 26(B), the text T3 displays "Please tap the shutter button" as the operation required of the user. At the same time, the shutter button B is displayed within the confirmation screen. When the user taps this shutter button B, image correction is started for the frame image at the timing when the shutter button B is tapped.
[0091] Fig. 27 is a diagram for explaining an example of a processing operation executed by the image processing system 1 assumed in the embodiment 4. In Fig. 27, parts corresponding to those in Fig. 24 are denoted by the same reference numerals. 27, if a negative result is obtained in step 21 or step 22, the server 20C notifies the user terminal 10 of NG quality (step 41). After executing step 41, the server 20C returns to step 12.
[0092] On the other hand, if positive results are obtained in both steps 21 and 22, the server 20C notifies the user terminal 10 of the quality OK (step 42). In the case of FIG. 27, after executing step 42, the server 20C determines whether or not the shutter button B has been operated (step 43). If there is no operation of the shutter button B, a negative result is obtained in step 43. In this case, the server 20C returns to step 12. If the shutter button B has been operated, a positive result is obtained in step 43. In this case, the server 20C executes the processes of steps 15 to 18 on the frame image at the timing when the operation of the shutter button B was accepted.
[0093] As in the case of FIG. 24, when the user terminal 10 receives a notification regarding quality from the server 20C, the notified information is displayed on the display 105 (see FIG. 2) (step 4). Next, the user terminal 10 determines whether or not operation of the shutter button B is permitted (step 5). If operation of the shutter button B is not permitted (that is, if the quality is NG), a negative result is obtained in step 5. In this case, the user terminal 10 returns to step 1.
[0094] On the other hand, if the operation of the shutter button is permitted (that is, if the quality is OK), a positive result is obtained in step 5. In this case, the user terminal 10 determines whether or not the operation of the shutter button B has been accepted (step 6). If the operation of the shutter button B has not been accepted, a negative result is obtained in step 6. In this case, the user terminal 10 returns to step 1.
[0095] On the other hand, if the operation of the shutter button B is accepted, a positive result is obtained in step 6. In this case, the user terminal 10 notifies the server 20C of the operation of the shutter button B (step 7). Thereafter, the user terminal 10 judges whether or not to end the image capture (step 2), and while a negative result is obtained, the user terminal 10 repeats uploading of the video data to the server 20C. If a positive result is obtained in step 2, the user terminal 10 ends uploading of the video data (step 3).
[0096] <Embodiment 5> In this embodiment, a mechanism for feeding back information on the detection result by the product detection unit 214 to the user will be described. By employing the server 20C described in the fourth embodiment, the user can check in advance whether the image being captured satisfies the quality conditions. On the other hand, even if an image satisfies the quality conditions, the product detection unit 214 may miss detecting a product. Therefore, in this embodiment, information on the position and size of the product detected by the product detection unit 214 is fed back to the user terminal 10, so that frame images can be captured without any missed detections.
[0097] Fig. 28 is a diagram illustrating an example of a functional configuration of the server 20D assumed in the fifth embodiment. In Fig. 28, parts corresponding to those in Fig. 25 are denoted by the same reference numerals. The hardware configuration of the server 20C and the configuration of the image processing system 1 using the server 20D are the same as those in the fourth embodiment. The differences between server 20D shown in Figure 28 and server 20C shown in Figure 25 are that information about a rectangular area representing the position and size of the detected product is fed back from product detection unit 214 to image correction unit 213, and the image of the rectangular area inversely transformed by image correction unit 213 is notified to information display control unit 218. Inverse transformation here means the inverse transformation of the image transformation that removes the distortion of the image corresponding to the target range. Therefore, the figure after the inverse transformation of the rectangular area (hereinafter referred to as the "product frame") becomes a rectangle with added distortion.
[0098] 29 is a diagram for explaining the display process of a rectangular area according to the embodiment 5. (A) is an image of an item displayed on a product shelf, (B) is an image after correction by the image correction unit 213, (C) is a rectangular area detected by the product detection unit 214, (D) is a product frame representing the rectangular area after inverse conversion by the image correction unit 213, and (E) is an image in which the product frame is superimposed on the product. As shown in Figure 29(E), in this embodiment, it is possible to confirm the product frame corresponding to the detected rectangular area while matching the inclination and size of the product viewed on the confirmation screen during imaging.
[0099] 30 is a diagram illustrating an example of display of a rectangular area when the processing operation described in the fifth embodiment is not adopted. (A) is an image of a product displayed on a shelf, (B) is a rectangular area detected so as to be in contact with the periphery of the product, and (C) is an image in which the detected rectangular area is superimposed on the product. In addition, in FIG. 30, the title "Comparative Example" is added to clearly indicate that the processing operation is different from that described in the fifth embodiment.
[0100] In the comparative example, as shown in Fig. 30(B), a rectangular area is detected according to an image of a product that is tilted at an angle. Therefore, when the detected rectangular area is superimposed on a confirmation screen during imaging to inform the user of the detection state of the rectangular area, it is difficult to confirm which rectangular area corresponds to which product, as shown in Fig. 30(C). Therefore, it becomes difficult for the user to notice that a rectangular area has been overlooked.
[0101] 31 is a diagram illustrating a display example of a confirmation screen according to embodiment 5. (A) is a display example when there is an oversight in detecting the position of a product, and (B) is a display example when there is no oversight in detecting the position of a product. The confirmation screen shown in FIG. 31 is displayed on display 105 of user terminal 10. 31(A) and (B), the frame body corresponding to the rectangular area detected by the product detection unit 214 (see FIG. 28) matches the outline of the product. This makes it easy to compare each product with the frame body and to check whether or not a frame body is present.
[0102] In the confirmation screen shown in Figure 31(A), the two products displayed in the lower left corner of the product shelf are not framed, so if you operate the shutter button in this state, incomplete shelf allocation information will be generated. In addition, in the confirmation screen shown in Fig. 31(A), since the conditions for size S and distortion D are met, text T4 indicating the result of the quality judgment is displayed as "If there are no problems with the display of the product frame, please press the shutter button." Also, the shutter button B is displayed. On the other hand, in the confirmation screen shown in Fig. 31(B), frames are displayed around all the products displayed on the product shelves. Therefore, if the shutter button is operated in this state, allocation information for all the products displayed on the product shelves will be generated.
[0103] Fig. 32 is a diagram for explaining an example of a processing operation executed in the image processing system 1 assumed in the embodiment 5. In Fig. 32, parts corresponding to those in Fig. 27 are denoted by the same reference numerals. The processing operations of the server 20D in FIG. 32 are the same as those of the server 20C shown in FIG. After executing step 14, the server 20D determines whether the size S of the identified target range is greater than a threshold H1 (step 21).
[0104] If the size S of the target range is equal to or smaller than the threshold H1 (that is, if the result in step 21 is negative), the server 20D returns to step 12. On the other hand, if the size S of the target range is greater than the threshold H1 (ie, if the result in step 21 is positive), the server 20D determines whether the distortion D is smaller than a threshold H2 (step 22). If the distortion D in the target range is equal to or greater than the threshold H2 (ie, if the result in step 22 is negative), the server 20D returns to step 12.
[0105] On the other hand, if the distortion D of the target range is smaller than the threshold H2 (i.e., if the result in step 22 is positive), the server 20D executes the processes of steps 15 to 17. That is, the server 20D corrects the distortion of the image corresponding to the target range and detects the position and size of the product. After that, the server 20D determines whether or not the shutter button B has been operated (step 43). If an operation of the shutter button B is detected (i.e., if the result in step 43 is positive), the server 20D executes the processes of steps 18 to 19. That is, the server 20D identifies the product at each position, and generates shelf allocation information describing the identified product and its position.
[0106] On the other hand, if the operation of the shutter button B is not detected (that is, if the result is negative in step 43), the server 20D feeds back an image of the product frame obtained by inversely converting the rectangular area to the user terminal 10 (step 51). The user terminal 10, which has received the image of the product frame from the server 20D, displays the image of the product frame corresponding to the detected rectangular area by superimposing it on the image of the product shelf (step 8). Next, the user terminal 10 determines whether or not operation of the shutter button B has been accepted (step 6).
[0107] If the operation of the shutter button B has not been accepted (that is, if the result in step 6 is negative), the user terminal 10 returns to step 1. On the other hand, if the operation of the shutter button B is accepted (that is, if the result in step 6 is positive), the user terminal 10 notifies the server 20D of the operation of the shutter button B (step 7). After that, the user terminal 10 judges whether or not to end the image capture (step 2), and while a negative result is obtained, the user terminal 10 repeats uploading of the video data to the server 20D. If a positive result is obtained in step 2, the user terminal 10 ends uploading of the video data (step 3).
[0108] <Sixth embodiment> Fig. 33 is a diagram for explaining another image processing system. (A) shows an example of a system configured with a user terminal 10 and a server 20E that exist in the same store, and (B) shows an example of a system configured only with a user terminal 10A that captures images of product shelves. In Fig. 33, parts corresponding to those in Fig. 1 are denoted by the same reference numerals. Server 20E constituting image processing system 1A shown in Fig. 33(A) differs from image processing system 1 (see Fig. 1) described in other embodiments in that it does not communicate with user terminals 10 etc. in other stores. Note that the processing operation of image processing system 1A is the same as that of the user terminals and servers constituting embodiments 1 to 5 described above. Server 20E here is also an example of an information processing system.
[0109] In the case of the image processing system 1B shown in Fig. 33(B), all processing operations are completed by one user terminal 10A. That is, processing operations from capturing an image of a product shelf to generating shelf allocation information are executed by one user terminal 10A. The user terminal 10A here is an example of an information processing system. Fig. 34 is a diagram for explaining an example of processing operations executed by the user terminal 10A. Note that in Fig. 34, parts corresponding to those in Fig. 13 are denoted by the same reference numerals. The processing operation of the user terminal 10A is also started by starting up the shelf allocation program. When image capturing by the shelf allocation program is started, the user terminal 10A executes the processing of steps 12 to 19.
[0110] That is, the user terminal 10A detects the markers M from the moving image data being captured (step 12), and determines whether or not all the markers M specified in the supplementary information are present (step 13). If the number of detected markers M is less than the number of markers M specified in the supplementary information (that is, if the result in step 13 is negative), the user terminal 10A continues to detect the markers M in another frame image. On the other hand, if the number of detected markers M satisfies the number of markers M specified in the accompanying information (that is, if the result in step 13 is positive), the user terminal 10A identifies the target range (step 14).
[0111] Thereafter, the user terminal 10A specifies a target range by connecting the coordinate points of the markers M with line segments, and corrects distortion of the image corresponding to the specified target range (steps 15 to 16). Furthermore, the user terminal 10A detects the position and size of the product from the distortion-corrected image, identifies the product at each detected position, and generates shelf allocation information (steps 17 to 19).
[0112] <Other embodiments> (1) Although the embodiment of the present invention has been described above, the technical scope of the present invention is not limited to the scope of the above-mentioned embodiment. It is clear from the claims that the technical scope of the present invention includes various modifications and improvements to the above-mentioned embodiment.
[0113] (2) In the above embodiment, a case has been described in which moving image data being captured is uploaded from user terminal 10 to server 20. However, the moving image data may be a playback image.
[0114] (3) In the above-described embodiment, all processing from marker detection to shelf allocation information generation is performed by a single server or a single user terminal alone, but this may also be achieved through the coordinated operation of multiple servers or multiple user terminals.
[0115] (4) In the above-described embodiment, all the processes from marker detection to shelf allocation information generation are executed by one server or one user terminal alone, but a series of processes may be distributed between a server and a user terminal. For example, the processes corresponding to the marker detection unit 211 (see FIG. 4), the target range identification unit 212 (see FIG. 4), the image correction unit 213 (see FIG. 4), the quality determination unit 217 (see FIG. 16), and the information display control unit 218 (see FIG. 20) may be executed by a user terminal, and the processes corresponding to the product detection unit 214 (see FIG. 4), the product matching unit 215 (see FIG. 4), and the shelf allocation estimation unit 216 (see FIG. 4) may be executed by a server.
[0116] (5) The processor in the above-described embodiments refers to a processor in a broad sense, and includes general-purpose processors (e.g., CPUs, etc.) as well as dedicated processors (e.g., GPUs (Graphical Processing Units), ASICs, FPGAs (Field Programmable Gate Arrays), programmable logic devices, etc.). In addition, the operations of the processor in each of the above-mentioned embodiments may be executed by one processor alone, or may be executed by multiple processors located at physically separate locations in cooperation with each other. Furthermore, the order of execution of each operation in the processor is not limited to the order described in each of the above-mentioned embodiments, and may be changed individually.
[0117] <Additional Notes> (((1))) An information processing system having one or more processors, which detects images of physical indicators that define the positions of the vertices of a target range from a moving image output from an imaging device, uses the indicators detected from the moving image to extract a first still image corresponding to the target range from the moving image, and outputs the result of identifying the product and its position using a second still image obtained by correcting distortion of the first still image. (((2))) The information processing system according to (((1))), wherein the one or more processors cut out a first still image from the video if an area specified by the detected marker satisfies a predetermined condition. (((3))) The information processing system according to (((2))), wherein the one or more processors determine that a predetermined condition is satisfied if the size of the region is greater than a first threshold value. (((4))) The information processing system according to (((2))), wherein the one or more processors determine that the predetermined condition is satisfied when the distortion of the region is greater than a second threshold value. (((5))) The information processing system according to any one of (((1))) to (((4))), wherein the one or more processors display an area surrounded by lines connecting detected indices in a manner that makes the area distinguishable from an area outside the area. (((6))) The information processing system according to (((5))), wherein the one or more processors display a line segment connecting the detected indices superimposed on the moving image. (((7))) The information processing system described in (((5))), wherein the one or more processors perform a masking process on the outer area portion. (((8))) The information processing system described in any one of (((1))) to (((7))), wherein the one or more processors display on a screen information indicating that the first still image cannot be extracted if the area identified by the detected indicator does not satisfy a predetermined condition. (((9))) The information processing system described in (((8))), wherein the one or more processors display the line segments connecting the detected indices in a manner different from when the area specified by the detected indices satisfies a predetermined condition. (((10))) The information processing system according to (((8))), wherein the one or more processors display, in text form, the action required of the person taking the video. (((11))) The information processing system described in any one of (((1))) to (((10))), wherein the one or more processors display on a screen a message indicating that it is now possible to operate the shutter to extract a first still image when an area identified by the detected index satisfies a predetermined condition. (((12))) The information processing system is any one of (((1))) to (((1))), wherein, if the area identified by the detected indicator satisfies a predetermined condition, the one or more processors inversely transform a frame shape indicating the area of each product detected from the second still image in accordance with the distortion of the first still image, and display it superimposed on the moving image. (((13))) The information processing system described in (((12))), wherein the one or more processors enable acceptance of a shutter operation for extracting a first still image from the video when a frame shape is displayed superimposed on the video. (((14))) A program for enabling one or more computers to realize the following functions: detect an image of a physical index that defines the position of the vertex of the target range from a moving image output from an imaging device; extract a first still image corresponding to the target range from the moving image using the index detected from the moving image; and output the result of identifying the product and its position using a second still image obtained by correcting the distortion of the first still image.
[0118] According to the information processing system of (((1))), it is possible to capture high-quality images more easily than in a case where a staff member is required to position an indicator displayed on a screen relative to a product shelf. According to the information processing system of (((2))), it is possible to suppress variation in the quality of captured images. According to the information processing system of (((3))), it is possible to suppress variation in the quality of captured images. According to the information processing system of (((4))), it is possible to suppress variation in the quality of captured images. According to the information processing system of (((5))), it is possible to check the detection status of the index. According to the information processing system of (((6))), it is possible to check the detection status of the index. According to the information processing system of (((7))), it is possible to check the detection status of the index. According to the information processing system of (((8))), it is possible to make the photographer aware of the need to change the imaging conditions. According to the information processing system of (((9))), it is possible to make the photographer aware of the need to change the imaging conditions. According to the information processing system of (((10))), it is possible to notify the image taker of specific actions to improve the quality. According to the information processing system of (((11))), it is possible to assist the photographer in operating the shutter. According to the information processing system of (((12))), it is possible to assist the photographer in operating the shutter. According to the information processing system of (((13))), it is possible to suppress variation in the quality of captured images. According to the program of (((14))), it is possible to easily capture high-quality images compared to a case where a staff member is required to position an indicator displayed on a screen relative to a product shelf. [Explanation of symbols]
[0119] 1, 1A, 1B... image processing system, 10, 10A... user terminal, 20, 20A, 20B, 20C, 20D, 20E... server, 101, 201... processor, 102, 202... ROM, 103, 203... RAM, 104, 204... auxiliary storage device, 105... display, 106... camera, 107... microphone, 108... speaker, 109, 205... communication interface, 110, 206... signal line, 211... marker detection unit, 212... target range identification unit, 213... image correction unit, 214... product detection unit, 215... product matching unit, 216... shelf allocation estimation unit, 217... quality judgment unit, 218... information display control unit, 220... product identification unit, 230... shelf allocation information generation unit
Claims
1. One or more processors; The one or more processors: Detecting images of physical indices that define the positions of vertices of the target range from the moving images output from the imaging device; extracting a first still image corresponding to the target range from the video using the index detected from the video; outputting a result of identifying the product and its position using a second still image obtained by correcting the distortion of the first still image; Information processing system.
2. The one or more processors: If the area specified by the detected marker satisfies a predetermined condition, the first still image is cut out from the moving image. The information processing system according to claim 1 .
3. The one or more processors: If the size of the region is greater than a first threshold, it is determined that the predetermined condition is satisfied. The information processing system according to claim 2 .
4. The one or more processors: If the distortion of the region is smaller than a second threshold, it is determined that the predetermined condition is satisfied. The information processing system according to claim 2 .
5. The one or more processors: displaying an area surrounded by lines connecting the detected indices in a manner that makes the area distinguishable from an area outside the area; The information processing system according to claim 1 .
6. The one or more processors: a line segment connecting the detected indices is displayed superimposed on the moving image; 6. The information processing system according to claim 5.
7. The one or more processors: masking the outer region; 6. The information processing system according to claim 5.
8. The one or more processors: if the area specified by the detected marker does not satisfy a predetermined condition, displaying information on a screen indicating that the first still image cannot be extracted. The information processing system according to claim 1 .
9. The one or more processors: displaying a line segment connecting the detected indices in a manner different from that in a case where an area specified by the detected indices satisfies a predetermined condition; The information processing system according to claim 8.
10. The one or more processors: displaying, in text form, the action required of the person taking the video; The information processing system according to claim 8.
11. The one or more processors: when the area specified by the detected index satisfies a predetermined condition, a message is displayed on a screen indicating that a shutter operation for extracting the first still image is possible. The information processing system according to claim 1 .
12. The one or more processors: when the area specified by the detected indicator satisfies a predetermined condition, a frame shape indicating the area of each product detected from the second still image is inversely transformed in accordance with the distortion of the first still image, and is displayed by being superimposed on the moving image. The information processing system according to claim 1 .
13. The one or more processors: when the frame shape is displayed superimposed on the moving image, a shutter operation for extracting the first still image from the moving image is enabled. The information processing system according to claim 12.
14. On one or more computers, A function of detecting an image of a physical index that defines the position of a vertex of a target range from a moving image output from an imaging device; a function of extracting a first still image corresponding to the target range from the moving image by using the index detected from the moving image; a function of outputting a result of identifying a product and its position by using a second still image obtained by correcting the distortion of the first still image; A program to achieve this.
Citation Information
Patent Citations
Shelf allocation reproducing method, shelf allocation reproduction program, shelf allocation evaluating method, shelf allocation evaluation program, and recording medium
JP2009187482A
