Automatic vending machine and automatic vending machine system
The vending machine system addresses sales defects by using image analysis to correct product installation and posture, enhancing sales efficiency and reducing product loss.
Patent Information
- Application Number
- JP2023043618
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-17
- Publication Date
- 2024-10-01
AI Technical Summary
Existing vending machines may experience sales defects where products are not removed from columns due to improper installation or product posture, leading to purchasers not receiving their purchases.
A vending machine system with a photographing section and control unit that determines the correspondence and posture of products within columns using image analysis, allowing for correction of installation issues and product posture to prevent sales defects.
The system effectively reduces sales defects by ensuring proper installation and posture of products, thereby minimizing product loss and improving sales efficiency.
Smart Images

Figure 2024132726000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a vending machine and a vending machine system, and more particularly to a vending machine and a vending machine system that include a storage unit including a plurality of columns for storing products, and an imaging unit that images the storage unit. [Background technology]
[0002] 2. Description of the Related Art Conventionally, there is known a vending machine that includes a storage unit including a plurality of columns for storing products, and an imaging unit that images the storage unit (see, for example, Patent Document 1).
[0003] The above-mentioned Patent Document 1 discloses a vending machine including a storage unit in which multiple columns on which products are placed are arranged, a determination member detection unit including a photographing unit, and a sold-out determination unit. The above-mentioned Patent Document 1 discloses that the photographing unit detects the sold-out determination members provided on the columns. The above-mentioned Patent Document 1 also discloses that the sold-out determination unit determines whether or not the products in each column are sold out based on the detection result of the sold-out determination members by the photographing unit. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2020-21367 A Summary of the Invention [Problem to be solved by the invention]
[0005] Although not disclosed in the above Patent Document 1, a vending failure may occur in which a product purchased by a product purchaser is not conveyed from the column to the product outlet due to the column being too narrow for the product installed by the user, or the product being placed at an angle to the column. When a vending failure occurs, the product purchaser is unable to receive the product despite having purchased it. Therefore, there is a demand for a vending machine that can prevent the occurrence of a vending failure in which a purchased product is not conveyed from the column.
[0006] The present invention has been made to solve the above-mentioned problems, and one object of the present invention is to provide a vending machine and vending machine system that can reduce the occurrence of vending problems in which purchased products are not removed from the column. [Means for solving the problem]
[0007] In order to achieve the above object, a vending machine according to a first aspect of the present invention comprises a storage cabinet including a plurality of columns for storing products, a photographing unit that photographs the storage cabinet, and a control unit that determines the correspondence between the columns and the products or the posture of the products based on the image of the columns photographed by the photographing unit.
[0008] In the vending machine according to the first aspect of the present invention, as described above, the control unit determines the correspondence between the column and the product or the attitude of the product based on the image of the column photographed by the photographing unit. This allows the control unit to determine the correspondence between the column and the product based on the image of the column photographed by the photographing unit. Alternatively, the control unit can determine the attitude of the product based on the image of the column photographed by the photographing unit. As a result, based on the determination result by the control unit, it is possible to correct the column installed with respect to the product, correct the attitude of the product in the column, or stop selling the product in the column where the correspondence between the column and the product is determined to be poor or the attitude of the product is determined to be poor. Therefore, it is possible to suppress the occurrence of a sales defect in which a purchased product is not carried out from the column.
[0009] In the vending machine according to the first aspect, preferably, the control unit notifies the user that the judgment result is negative at least when the judgment result is negative. With this configuration, when the judgment result of the correspondence between the column and the product is negative or the judgment result of the attitude of the product is negative, the user can recognize the negative judgment result. As a result, based on the notification of the negative judgment result, the user can quickly correct the column installed for the product or correct the attitude of the product in the column. As a result, the loss of sales opportunities for the product can be suppressed. Here, in this specification, the user means at least one of the manager of the vending machine, the person who installs the column of the vending machine, and the person who fills the vending machine with products.
[0010] In the vending machine according to the first aspect, the control unit preferably judges whether the column installed for the product is good or bad based on the column-product correspondence information in which the column and the dimensions of the product are associated with each other and the image of the column. With this configuration, the correspondence between the column and the product can be judged based on the column-product correspondence information in which the column and the dimensions of the product are associated with each other and the image of the column, so that the quality of the column installed for the product can be easily judged. As a result, based on the judgment result by the control unit, it is possible to correct the column installed for the product, stop selling the product in the column in which the correspondence between the column and the product is judged to be bad, etc. Therefore, it is possible to further suppress the occurrence of sales defects in which purchased products are not carried out from the column.
[0011] In this case, the control unit preferably judges the quality of the installed column based on the column-product correspondence information, a pre-product arrangement image, which is an image of the column before the product arrangement, and an at-product sale image, which is an image of the column and the product stored in the column at the time of product sale, both of which are photographed by the photographing unit. With this configuration, the correspondence between the column and the product can be judged based on the pre-product arrangement image, which is an image of the column before the product arrangement, and the at-product sale image, which is an image of the column and the product stored in the column at the time of product sale. This makes it possible to judge the quality of the currently installed column based on the pre-product arrangement image and the at-product sale image. As a result, the quality of the column installed relative to the product can be judged with high accuracy.
[0012] In the above-mentioned configuration in which the control unit judges the quality of the column based on the column-product correspondence information, the product before arrangement image, and the product at sale image, the control unit preferably acquires column information related to the column and product dimension information related to the product dimensions based on the product before arrangement image and the product at sale image, and judges the quality of the installed column based on the column-product correspondence information and the acquired column information and product dimension information. With this configuration, the correspondence between the column and the product can be judged based on the column information related to the column and the product dimension information related to the product dimensions. This makes it possible to judge the quality of the currently installed column based on the column information and the product dimension information. As a result, the quality of the column installed relative to the product can be judged with greater accuracy.
[0013] In this case, preferably, the storage includes a partition plate that separates adjacent columns in the left-right direction and a spiral member that is wound in a spiral shape and extends in the front-rear direction, and the column product correspondence information and the column information include at least one of the following information: the number of spiral members arranged in one column, the spiral pitch of the spiral member, and the interval between the partition plates that separate the columns. In this manner, the column product correspondence information and the column information include at least one of the above information. This makes it possible to determine the quality of the currently installed column based on at least one of the above information included in the column product correspondence information and the column information. As a result, the quality of the column can be determined with even greater accuracy.
[0014] In the configuration in which the column product correspondence information and the column information include at least one of the above information, preferably, when the number of spiral members arranged in one column is more than one, the control unit further acquires position information of the tip of each of the plurality of spiral members based on the product sales image, and further judges whether the positional relationship between the tips is good or bad based on the acquired tip position information. With this configuration, the control unit can further judge whether the positional relationship between the tip of each of the plurality of spiral members is good or bad. As a result, when the judgment result is judged to be negative, the position of the tip of the spiral member can be corrected, so that the delivery failure of the product caused by the position of the tip of each of the plurality of spiral members not being aligned can be suppressed. As a result, the loss of the sales opportunity of the product can be further suppressed.
[0015] In the vending machine according to the first aspect, the control unit preferably acquires storage posture information on the posture of the stored products based on a product vending image, which is an image of the column at the time of product vending and the products stored in the column photographed by the photographing unit, and normal posture information on the normal posture of the products, and judges whether the posture of the products in the column is good or bad based on the acquired storage posture information and normal posture information. With this configuration, the posture of the products in the column can be judged based on the acquired storage posture information and normal posture information, so that the good or bad posture of the products in the column can be easily judged compared to the case where the good or bad posture of the products in the column is judged based only on the storage posture information. As a result, based on the judgment result by the control unit, it is possible to correct the posture of the products in the column, stop selling the products in the column whose posture is judged to be bad, etc. Therefore, it is possible to further suppress the occurrence of sales defects in which purchased products are not carried out from the column.
[0016] In this case, preferably, the control unit acquires product shape information related to the shape of the product based on the product sales image, acquires storage posture information based on the acquired product shape information and the product sales image, acquires normal posture information based on the storage posture information, and judges whether the posture of the product in the column is good or bad based on the acquired storage posture information and normal posture information. With this configuration, since storage posture information can be acquired based on the product shape information acquired based on the product sales image and the product sales image, it is possible to acquire storage posture information according to the shape of the product, and to acquire normal posture information based on the storage posture information according to the shape of the product. As a result, it is possible to judge whether the posture of the product in the column is good or bad based on the storage posture information and the normal posture information. Therefore, it is possible to accurately judge whether the posture of the product in the column is good or bad based on the shape of the product.
[0017] In the above-mentioned configuration in which the control unit acquires storage posture information based on the product shape information and the product sales image, and acquires normal posture information based on the storage posture information, preferably, the control unit acquires a difference between the acquired storage posture information and the normal posture information, and judges the posture of the product to be poor if the acquired difference exceeds a preset threshold. With this configuration, it is possible to judge the posture of the product to be poor if the acquired difference exceeds a preset threshold. This makes it possible to more accurately judge whether the posture of the product in the column according to the shape of the product is good or bad.
[0018] In the above-mentioned configuration in which the control unit judges whether the posture of the product in the column is good or bad based on the storage posture information and the normal posture information, preferably, the control unit performs control to stop the sale of the product in the column when the judgment result judges that the posture of the product is bad. With this configuration, the sale of the product in the column whose posture is judged to be bad can be stopped. As a result, it is possible to reliably suppress the occurrence of sales failures in which purchased products are not carried out from the column.
[0019] In the vending machine according to the first aspect, preferably, the control unit corrects the product sales image based on pre-arrangement portion information on a plurality of portions in the product pre-arrangement image, which is an image of the column before product arrangement photographed by the photographing unit, and sales-time portion information on a portion corresponding to the plurality of portions in the product sales-time image, which is an image of the column at the time of product sales photographed by the photographing unit, and further determines the presence or absence of a product in the column based on the product pre-arrangement image and the corrected product sales-time image. With this configuration, the product sales-time image can be corrected based on the pre-arrangement portion information on a plurality of portions in the product pre-arrangement image and the sales-time portion information on a portion corresponding to the plurality of portions in the product sales-time image, so that the positional deviation between the product pre-arrangement image and the product sales-time image caused by the positional deviation of the photographing unit can be appropriately corrected compared to the case where the product sales-time image is corrected based on one portion in the product pre-arrangement image and the product sales-time image. As a result, even if the positional deviation of the photographing unit occurs when photographing the product pre-arrangement image and the product sales-time image, the control unit can accurately determine the presence or absence of a product in the column based on the product pre-arrangement image and the corrected product sales-time image. Therefore, the accuracy of determining whether an item in a column is sold out can be improved.
[0020] In this case, preferably, the control unit acquires a plurality of images corresponding to the identification marks given to each of the plurality of columns, detects a plurality of images in the before-product arrangement image, acquires first arrangement information related to the detected plurality of images as before-arrangement portion information, detects a plurality of images in the product sales image, acquires second arrangement information related to the detected plurality of images as sales portion information, corrects the product sales image based on the first arrangement information and the second arrangement information, and determines the presence or absence of a product in the column based on the before-product arrangement image and the corrected product sales image. With this configuration, the product sales image can be corrected based on the first arrangement information and the second arrangement information acquired by detecting a plurality of images corresponding to the identification marks, so that the positional deviation between the before-product arrangement image and the product sales image caused by the positional deviation of the photographing unit can be appropriately corrected. As a result, even if the positional deviation of the photographing unit occurs when photographing the before-product arrangement image and the product sales image, the control unit can more accurately determine the presence or absence of a product in the column based on the before-product arrangement image and the corrected product sales image. Therefore, the accuracy of determining whether a product is sold out in the column can be further improved.
[0021] In the above-mentioned configuration in which the control unit corrects the product sales image based on the first and second arrangement information, preferably, the control unit acquires position information and angle information based on a plurality of images detected in the product before arrangement image as the first arrangement information, acquires position information and angle information based on a plurality of images detected in the product sales image as the second arrangement information, corrects the product sales image based on the first and second arrangement information, and determines the presence or absence of a product in the column based on the product before arrangement image and the corrected product sales image. With this configuration, the product sales image can be corrected based on the first and second arrangement information including the angle information, so that the complex positional deviation in the rotation direction of the product before arrangement image and the product sales image can be appropriately corrected. As a result, even if a complex positional deviation of the image capturing unit occurs when capturing the product before arrangement image and the product sales image, the control unit can more accurately determine the presence or absence of a product in the column based on the product before arrangement image and the corrected product sales image.
[0022] In the configuration in which the control unit corrects the product sales image based on the pre-arrangement portion information and the sales portion information, preferably, when the sales portion information is not acquired in the product sales image, the control unit notifies the user that the photographing unit is abnormal. With this configuration, the user can recognize the abnormality of the photographing unit based on the notification that the photographing unit is abnormal, and can quickly correct the defect of the photographing unit. As a result, the loss of sales opportunities for the product can be suppressed.
[0023] A vending machine system according to a second aspect of the present invention comprises a vending machine including a storage cabinet with a plurality of columns for storing products, and a display device capable of communicating with the vending machine, the vending machine comprising a photographing unit which photographs the storage cabinet, and a control unit which determines the correspondence between the columns and the products or determines the posture of the products based on images of the columns photographed by the photographing unit, and at least when the judgment result is negative, notifies the display device that the judgment result is negative, and the display device displays the judgment result notified by the control unit.
[0024] In the vending machine system according to the second aspect of the present invention, similarly to the first aspect, the control unit determines the correspondence between the column and the product or the attitude of the product based on the image of the column photographed by the photographing unit. This allows the control unit to determine the correspondence between the column and the product based on the image of the column photographed by the photographing unit. Alternatively, the control unit can determine the attitude of the product based on the image of the column photographed by the photographing unit. As a result, based on the judgment result by the control unit displayed on the display unit, the user can correct the column installed for the product, correct the attitude of the product in the column, or stop selling the product in the column where the correspondence between the column and the product is judged to be poor or the attitude of the product is judged to be poor. Therefore, it is possible to suppress the occurrence of a sales failure in which a purchased product is not carried out from the column. Effect of the Invention
[0025] According to the present invention, as described above, it is possible to provide a vending machine and a vending machine system that are capable of suppressing the occurrence of vending problems in which purchased products are not removed from the columns. [Brief description of the drawings]
[0026] [Figure 1] 1 is a block diagram showing a configuration of a vending machine system including a vending machine according to a first embodiment. [Diagram 2] FIG. 1 is a schematic diagram showing an example of a vending machine. [Diagram 3] FIG. 13 is a schematic diagram showing an example of a pre-product arrangement image. [Figure 4] FIG. 13 is a schematic diagram showing an example of an image when a product is sold; [Diagram 5] FIG. 11 is an explanatory diagram for explaining an example of column information. [Figure 6] FIG. 11 is an explanatory diagram for explaining an example of product dimension information. [Figure 7] FIG. 13 is an explanatory diagram for explaining an example of column product corresponding information. [Figure 8] 11 is an explanatory diagram for explaining an example of a result of a judgment made by a judging section as to whether a column is good or bad; FIG. [Figure 9] 13 is an explanatory diagram for explaining a display example on the display unit when a judgment result by the judging unit is good; FIG. [Figure 10] 13 is an explanatory diagram for explaining a display example on the display unit when the result of the pass / fail judgment of the column is defective; FIG. [Figure 11] 13 is a flowchart for explaining a process for determining whether a column is good or bad. [Figure 12] FIG. 13 is a schematic diagram for explaining a storage posture shape in a box shape. [Figure 13] FIG. 2 is a schematic diagram for explaining a storage posture shape in a first container shape. [Figure 14] FIG. 11 is a schematic diagram for explaining a storage posture shape in a second container shape. [Figure 15] FIG. 13 is a schematic diagram for explaining a normal posture shape in a box shape. [Figure 16] FIG. 2 is a schematic diagram for explaining a normal posture shape in a first container shape. [Figure 17] FIG. 11 is a schematic diagram for explaining a normal posture shape in a second container shape. [Figure 18] 13 is an explanatory diagram for explaining a display example on the display unit when a result of determining whether the attitude of the product is bad. FIG. [Figure 19] 13 is a flowchart for explaining a process for determining whether the attitude of a product is good or bad. [Figure 20] FIG. 11 is a block diagram showing a configuration of a vending machine system including a vending machine according to a second embodiment. [Figure 21] FIG. 13 is a schematic diagram of a feature distribution. [Figure 22] FIG. 13 is a schematic diagram for explaining an image without a commodity. [Diagram 23] FIG. 13 is a schematic diagram showing an example of a pre-product arrangement image for explaining correction of a product sales image; [Figure 24] 13 is a schematic diagram showing an example of a product sales image for explaining correction of the product sales image; FIG. [Diagram 25] FIG. 13 is a schematic diagram showing an example of a corrected product sales image. [Figure 26] 11 is a flowchart illustrating a process for determining the presence or absence of a product. [Figure 27] 13 is a flowchart illustrating a process of acquiring first arrangement information. [Figure 28] 13 is a flowchart illustrating a process for acquiring second arrangement information. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0027] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings.
[0028] [First embodiment] (Vending machine system configuration) First, the configuration of a vending machine system 200 according to a first embodiment will be described with reference to Figs. 1 to 4.
[0029] As shown in Fig. 1, the vending machine system 200 includes a vending machine 100 and a terminal device 90. The vending machine 100 and the terminal device 90 are capable of communicating with each other via a communication network 95. The terminal device 90 is an example of a "display device" as defined in the claims.
[0030] (Vending machine configuration) The vending machine 100 includes, as hardware, a storage unit 1, a photography unit 2, a vending machine control unit 10, a storage unit 30, a vending machine communication unit 3, and a transport unit 4. As shown in FIG. 2, the vending machine 100 also includes a housing 101 and a door 102. The storage unit 1 is disposed inside the housing 101. The vending machine control unit 10 is an example of a "control unit" as defined in the claims.
[0031] As shown in Fig. 3, the storage cabinet 1 has a number of partitioned columns 5 in which products 80 are arranged. The storage cabinet 1 includes partition plates 6 that separate adjacent columns 5 in the left-right direction, and one or more spiral members 7 arranged in each of the partitioned columns 5. In the first embodiment, one or two spiral members 7 are provided in each of the multiple columns 5 separated by the partition plates 6.
[0032] In a column 5 in which a plurality of spiral members 7 are arranged, the arranged partition plate 6 is configured to be movable in either the left or right direction in order to adjust the spacing in the left and right direction of the column 5. In the first embodiment, in a column 5 in which two spiral members 7 are arranged, by adjusting by moving the arranged partition plate 6, the column 5 can be installed as any one of a wide column 5 having a wide width in the left and right direction of the column 5, a narrow column 5 having a narrow width in the left and right direction of the column 5, and a standard column 5 having a narrower width than the wide column 5 and a wider width than the narrow column 5.
[0033] 2, the spiral member 7 is wound in a spiral shape and is disposed so as to extend in the front-to-rear direction of the column 5. The spiral member 7 is provided to convey the products 80 disposed in the column 5 to the conveying section 4.
[0034] The photographing unit 2 is configured to photograph a pre-product arrangement image 20 (see FIG. 3) which is an image of the column 5 before the product is arranged, and a product sale image 21 (see FIG. 4) which is an image of the column 5 and the product 80 stored in the column 5 at the time of product sale. The photographing unit 2 includes two cameras. The photographing unit 2 is disposed in the conveying unit 4. Specifically, one camera is disposed on each of the non-rotating portions at both the left and right ends of the conveying unit 4. The photographing unit 2 is configured to be able to acquire column information 32 related to the column 5 and product dimension information 33 related to the dimensions of the product 80 based on the two cameras. The photographing unit 2 may be one stereo camera instead of two cameras.
[0035] The photographing unit 2 photographs the pre-product arrangement image 20 after the user installs the column 5 and before the user arranges the product 80 in the column 5. Specifically, after the column 5 is installed and before the product arrangement, in a state in which the door 102 of the vending machine 100 is closed, the photographing unit 2 photographs the pre-product arrangement image 20 based on an input operation of a remote control (not shown) by the user.
[0036] The photographing unit 2 also photographs the product vending image 21 after the user places the product 80 in the column 5. Specifically, the photographing unit 2 photographs the product vending image 21 based on the door switch being turned on as the door 102 of the vending machine 100 is closed after the user places the product. The photographing unit 2 also photographs the product vending image 21 after the product purchaser purchases the product 80. Specifically, the photographing unit 2 photographs the product vending image 21 based on the purchase of the product 80 by the product purchaser.
[0037] As shown in Fig. 1, the vending machine control unit 10 includes, as software (software program), a determination unit 11, a column information acquisition unit 12, a commodity outline acquisition unit 13, an image processing unit 14, a commodity shape acquisition unit 15, and an operation control unit 16. The vending machine control unit 10 includes a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), a GPU (Graphics Processing Unit), or an FPGA (Field-Programmable Gate Array) configured for image processing. The vending machine control unit 10 including the determination unit 11, the column information acquisition unit 12, the commodity outline acquisition unit 13, the image processing unit 14, the commodity shape acquisition unit 15, the commodity outline acquisition unit 13, and the operation control unit 16 is an example of the "control unit" in the claims.
[0038] The determination unit 11 is configured to determine whether the column 5 placed in relation to the product 80 is good or bad, based on column-product correspondence information 31 (described later) in which the dimensions of the column 5 and the product 80 are associated with each other, a product pre-arrangement image 20, and a product sales image 21. The determination unit 11 is also configured to determine whether the attitude of the product 80 in the column 5 is good or bad, based on storage attitude information 35 and normal attitude information 36 (described later). The determination by the determination unit 11 of the quality of the column 5 and the quality of the attitude of the product 80 in the column 5 will be described later.
[0039] The column information acquisition unit 12 is configured to acquire column information 32 regarding the column 5 based on the product pre-arrangement image 20. As an example, as shown in FIG. 5, the column information acquisition unit 12 acquires information on the number of spiral members 7 arranged in one column 5, the spiral pitch of the spiral member 7, and the interval of the partition plate 6 that divides the column 5. The column information acquisition unit 12 acquires the distance to the partition plate 6 and the spiral member 7 installed in the column 5 based on the parallax of the two cameras included in the shooting unit 2, and acquires the position and dimensions of the partition plate 6 and the spiral member 7 based on the acquired distance. When the product pre-arrangement image 20 is shot by the shooting unit 2, the column information acquisition unit 12 acquires the column information 32 based on the shot product pre-arrangement image 20.
[0040] The product outer shape acquisition unit 13 is configured to acquire product dimension information 33 related to the dimensions of the product 80 based on the product sales image 21. The product outer shape acquisition unit 13 acquires product dimension information 33 of the product 80 arranged at the forefront of the column 5 for each of the multiple columns 5. As an example, as shown in FIG. 6, the product outer shape acquisition unit 13 acquires information on the width dimension of the product 80, information on the height dimension of the product 80, and information on the depth dimension of the product 80. The product outer shape acquisition unit 13 acquires a distance related to the product 80 arranged at the forefront of the column 5 based on the parallax of the two cameras included in the shooting unit 2, and acquires information on the dimensions of the product 80 based on the acquired distance. In addition, the product outer shape acquisition unit 13 acquires storage posture information 35 including information on the vertex coordinates of the contour of the product 80 based on the product shape information 34 acquired by the product shape acquisition unit 15 and the product sales image 21 captured by the shooting unit 2. Details of the acquisition of the storage posture information 35 by the product outer shape acquisition unit 13 will be described later. The product outer shape acquisition unit 13 acquires product dimension information 33 of the product 80 based on information relating to the dimensions of the product 80 that is based on the above distance and on the storage attitude information 35 .
[0041] Moreover, the product outer shape acquisition unit 13 is configured to acquire normal attitude information 36 based on the acquired storage attitude information 35 .
[0042] When the photographing unit 2 photographs a product vending image 21 based on the door switch being turned on as the door 102 of the vending machine 100 is closed after the user places the product, the product external shape acquisition unit 13 acquires product dimension information 33 based on the photographed product vending image 21.
[0043] Furthermore, when a plurality of spiral members 7 are arranged in one column 5, the product outer shape acquisition unit 13 further acquires position information of the tip 7a of each of the plurality of spiral members 7 based on the product sales image 21. As shown in FIG. 6, the product outer shape acquisition unit 13 acquires, as the position information of the tip 7a, information on whether the positions of the tip 7a of each of the plurality of spiral members 7 (see FIG. 4) are aligned, i.e., good, or whether the positions of the tip 7a are not aligned, i.e., bad. Here, the position of the tip 7a of each of the plurality of spiral members 7 being aligned means that the position of the tip 7a of each of the plurality of spiral members 7 is arranged in a line-symmetrical position with respect to the center line extending in the up-down direction of the column 5.
[0044] The product shape acquisition unit 15 is configured to acquire product shape information 34 relating to the shape of the product 80 based on the product sales image 21. The product shape acquisition unit 15 is configured to acquire product shape information 34 of the product 80 arranged at the forefront of the column 5 using the first trained model 37. Specifically, the product shape acquisition unit 15 inputs the product sales image 21 for each column 5, which is an input image, to the first trained model 37, and acquires product shape information 34 of the product 80 arranged at the forefront of the column 5, which is an output result.
[0045] When the photographing unit 2 photographs the product vending image 21 based on the door 102 of the vending machine 100 being closed after the user places the product, the product shape acquisition unit 15 acquires the product shape information 34 based on the photographed product vending image 21. In addition, when the photographing unit 2 photographs the product vending image 21 based on the purchase of the product 80 by the product purchaser, the product shape acquisition unit 15 acquires the product shape information 34 based on the photographed product vending image 21.
[0046] The image processing unit 14 is configured to perform a process of cutting out an area corresponding to the column 5 in which the product 80 was sold from the product vending image 21 captured by the photographing unit 2. Specifically, the image processing unit 14 generates an extracted image 70 (see FIG. 12) by extracting an area corresponding to the column 5 in which the product 80 was sold from the product vending image 21 (see FIG. 4) in which a plurality of columns 5 arranged in two vertical rows are captured together. The image processing unit 14 is also configured to generate the extracted image 70 by performing a process of cutting out an area for each column 5 from the product vending image 21 captured by the photographing unit 2 after the user places the product 80 in the column 5.
[0047] The operation control unit 16 is configured to control the vending operation of the vending machine 100. The operation control unit 16 is configured to control the spiral member 7 to cause the conveying unit 4 to convey the selected product 80 based on the product selection button (not shown) being operated by the product purchaser. The operation control unit 16 is also configured to control the conveying unit 4 to move to the column 5 in which the selected product 80 is arranged. The operation control unit 16 is configured to control the conveying unit 4, from which the product 80 has been conveyed, to move to the outlet 103 (see FIG. 2).
[0048] The operation control unit 16 is configured to perform control to stop the sale of the product 80 in the column 5 in which the posture of the product 80 is determined to be poor by the determination unit 11. Also, when a sales stop command to stop the sale of the product 80 in a specific column 5 by a user is acquired by the vending machine side communication unit 3, the operation control unit 16 is configured to perform control to stop the sale of the product 80 in the specific column 5 related to the sales stop command. In these cases, the operation control unit 16 is configured not to accept an operation input to select the column 5 in which the posture of the product 80 is determined to be poor or the specific column 5 related to the sales stop command.
[0049] The storage unit 30 includes a volatile storage device and a non-volatile storage device. The storage unit 30 stores a product pre-arrangement image 20 and a product vending image 21 captured by the image capture unit 2. The storage unit 30 also stores column product correspondence information 31, column information 32 acquired by the column information acquisition unit 12, and product dimension information 33 acquired by the product external shape acquisition unit 13. The storage unit 30 also stores product shape information 34 acquired by the product shape acquisition unit 15, and storage posture information 35 and normal posture information 36 acquired by the product external shape acquisition unit 13. The storage unit 30 also stores a first trained model 37 for acquiring the product shape information 34. The storage unit 30 also stores various programs 38 executed by the vending machine side control unit 10.
[0050] The vending machine communication unit 3 communicates with the terminal device 90.
[0051] The conveying unit 4 conveys the product 80 removed from the column 5 to the outlet 103. The conveying unit 4 is a bucket that is open at the top. The conveying unit 4 moves in the vertical direction. The conveying unit 4 conveys the product 80 to the outlet 103 by rotating near the outlet 103.
[0052] (Terminal Device Configuration) The terminal device 90 includes an operation unit 91, a display unit 92, a terminal device side communication unit 93, and a terminal device side control unit 94. The terminal device 90 is, for example, a computer used by a user.
[0053] The operation unit 91 accepts operation input to the terminal device 90. The operation unit 91 is, for example, a keyboard, a mouse, a touch panel provided on the display unit 92, or the like.
[0054] The display unit 92 displays the determination result from the determination unit 11 of the vending machine 100 and information for operating the terminal device 90. The display unit 92 is, for example, a liquid crystal display or an organic EL display.
[0055] The terminal device communication unit 93 communicates with the vending machine 100 .
[0056] The terminal device control unit 94 controls the operation of the terminal device 90. The terminal device control unit 94 includes a central processing unit (CPU), a read only memory (ROM), a random access memory (RAM), and the like.
[0057] (Determining whether a column is good or bad) The process of determining whether the installed column 5 is good or bad by the determining unit 11 will be described.
[0058] As described above, the judgment unit 11 is configured to judge the acceptability of the installed column 5 based on the column-product correspondence information 31, the column information 32, and the product dimension information 33.
[0059] As shown in FIG. 5, the column information 32 is acquired by the column information acquisition unit 12 for each of the multiple columns 5 based on the product pre-arrangement image 20. The column information acquisition unit 12 acquires information on whether the number of spiral members 7 is one or two as information on the number of spiral members 7 arranged in one column 5. When the number of spiral members 7 is one, information on "single" is acquired, and when the number of spiral members 7 is two, information on "double" is acquired. The column information acquisition unit 12 also acquires information on the number of turns of the spiral member 7 as information on the spiral pitch of the spiral member 7. The number of turns of the spiral member 7 is the number of products that can be stored in the spiral member 7. The column information acquisition unit 12 also acquires information on whether the column 5 is a wide column 5, a narrow column 5, or a standard column 5 as information on the interval of the partition plate 6 that separates the column 5.
[0060] The column information 32 acquired by the column information acquisition unit 12 is stored as a data table in the storage unit 30. As an example of the column information 32, in column position: 1-2, the number of spiral members 7: double, the pitch of the spiral members 7: 5, and the spacing of the partition plates 6: wide are stored.
[0061] 6, product dimension information 33 is acquired by the product outer shape acquisition unit 13 for each of the columns 5 based on the product sales image 21. The product dimension information 33 acquired by the product outer shape acquisition unit 13 is stored as a data table in the storage unit 30. As an example of the product dimension information 33, at column position: 1-2, the width dimension of the product 80: 110 mm, the height dimension of the product 80: 100, the depth dimension of the product 80: 80, and the position of the tip 7a of the spiral: good are stored.
[0062] 7, the column product correspondence information 31 is stored in advance as a data table in the storage unit 30. The column product correspondence information 31 is information on the optimal combination of columns 5 to be installed for arranging the products 80 with respect to the dimensions of the products 80 that can be sold in the vending machine 100. The column product correspondence information 31 associates information on the number of spiral members 7, the number of turns of the spiral member 7, and the spacing of the partition plates 6 as the optimal column 5 to be installed for each combination of information on the width dimension of the product 80, information on the height dimension of the product 80, and information on the depth dimension of the product 80.
[0063] As an example, the optimal column 5 to be installed for a product 80 having a width dimension of the product 80 of 132 mm to 164 mm, a height dimension of the product 80 of 30 mm to 160 mm, and a depth dimension of the product 80 of 56 mm to 87 mm is associated with the number of spiral members 7: double, the pitch of the spiral members 7: 5, and the spacing of the partition plates 6: wide.
[0064] The determination unit 11 compares the column-product correspondence information 31 with the column information 32 and the product dimension information 33. Fig. 8 is an example of a determination result by the determination unit 11. As shown in Fig. 8, the columns 5 installed at column positions 1-2, 5-6, and 10 are determined to be defective, and the columns 5 installed at positions other than column positions 1-2, 5-6, and 10 are determined to be good.
[0065] Specifically, column position 1-2 is determined to be defective because the spacing of partition plates 6 is standard, which is appropriate based on the width dimension of placed product 80, whereas the spacing of partition plates 6 of installed column 5 is wide. Also, column position 5-6 is determined to be defective because the position of spiral tip 7a is defective. Also, column position 10 is determined to be defective because the number of turns of spiral member 7 is 5, which is appropriate based on the depth dimension of placed product 80, whereas the number of turns of spiral member 7 of installed column 5 is 10, therefore column position 10 is determined to be defective.
[0066] The determination result by the determination unit 11 is notified to the terminal device 90 by the vending machine side communication unit 3. Fig. 9 shows the determination result displayed on the display unit 92 of the terminal device 90 when the determination result by the determination unit 11 is positive in all columns 5. In other words, the determination result by the determination unit 11 is good in all columns 5. In this case, "Shelf setting status: good" is displayed on the display unit 92.
[0067] In contrast, Fig. 10 shows the judgment result displayed on the display unit 92 of the terminal device 90 when the judgment result by the judgment unit 11 is negative. That is, the judgment result by the judgment unit 11 is that some or all of the columns 5 are defective. In the example shown in Fig. 10, based on the judgment result that the columns 5 installed at column position 1-2, column position 5-6, and column position 10 are defective, the display fields related to column position 1-2, column position 5-6, and column position 10 are colored (shown by hatching). In this case, "Shelf setting status: defective" is displayed on the display unit 92.
[0068] If the determination result by the determination unit 11 is negative, the operation control unit 16 may stop the sale of the product 80 in the column 5 corresponding to the negative determination result via the terminal device side communication unit 93 based on the user's input of a sales stop command in the operation unit 91. This makes it possible to avoid a sales problem in which the purchased product 80 is not removed from the column 5 corresponding to the negative determination result.
[0069] (Determining whether a column is good or bad) 11, a description will be given of the process of determining the quality of an installed column 5 according to the first embodiment, which is performed by the photographing unit 2, the vending machine control unit 10 (determination unit 11, column information acquisition unit 12, product outer shape acquisition unit 13), and the vending machine communication unit 3. Note that the order of the processing steps can be reversed or executed simultaneously, as long as there is no contradiction between them.
[0070] In step S1, the photographing unit 2 photographs the product pre-arrangement image 20 after the user installs the column 5 and before the user arranges the product 80 in the column 5. Thereafter, the process proceeds to step S2.
[0071] In step S2, the column information acquisition unit 12 acquires, for each of the multiple columns 5, information on the number of spiral members 7 arranged in one column 5, information on the spiral pitch of the spiral member 7, and information on the spacing between the partition plates 6 that separate the columns 5, as column information 32, based on the pre-product arrangement image 20 captured by the imaging unit 2. The acquired column information 32 is stored in the storage unit 30. Thereafter, the process proceeds to step S3.
[0072] In step S3, the photographing unit 2 photographs the product vending image 21 after the user places the product 80 in the column 5. Thereafter, the process proceeds to step S4.
[0073] In step S4, the commodity external shape acquisition unit 13 acquires, as commodity dimension information 33, information on the width direction dimension of the commodity 80, information on the height direction dimension of the commodity 80, and information on the depth direction dimension of the commodity 80 for each of the plurality of columns 5, based on the commodity sales image 21 photographed by the photographing unit 2 and the storage attitude information 35 acquired based on the commodity shape information 34 acquired by the commodity shape acquisition unit 15. In addition, when there are a plurality of spiral members 7 arranged in one column 5, the commodity external shape acquisition unit 13 acquires position information of each of the tip portions 7a of the plurality of spiral members 7 based on the commodity sales image 21. The acquired commodity dimension information 33 and position information of the tip portions 7a are stored in the storage unit 30. Thereafter, the process proceeds to step S5.
[0074] In step S5, the determination unit 11 determines whether the installed columns 5 are good or bad based on the column-product correspondence information 31, the column information 32, the product dimension information 33, and the position information of the tip portion 7a stored in the memory unit 30. If the determination unit 11 determines that all columns 5 are good (positive) (Yes in step S5), the process proceeds to step S6, and if the determination unit 11 determines that some or all columns 5 are bad (negative) (No in step S5), the process proceeds to step S7.
[0075] In step S6, the determination unit 11 notifies the terminal device 90 that the determination result is positive via the vending machine communication unit 3. The terminal device 90 displays information related to the positive determination result on the display unit 92. After that, the process ends.
[0076] In step S7, the determination unit 11 notifies the terminal device 90 that the determination result is negative via the vending machine communication unit 3. The terminal device 90 displays information about the negative determination result on the display unit 92. After that, the process ends.
[0077] (Determining whether the product's posture is good or bad in a column) Next, how the determining unit 11 determines whether the attitude of the product 80 in the column 5 is good or bad will be described.
[0078] As described above, as shown in FIG. 1, the product shape acquisition unit 15 is configured to acquire product shape information 34 based on the product sales image 21. Also, as described above, the product outer shape acquisition unit 13 is configured to acquire storage posture information 35 based on the product shape information 34 and the product sales image 21. Also, the product outer shape acquisition unit 13 is configured to acquire normal posture information 36 based on the storage posture information 35. Also, the determination unit 11 is configured to determine whether the posture of the product 80 in the column 5 is good or bad based on the storage posture information 35 and the normal posture information 36. Note that, in determining whether the posture of the product 80 in the column 5 is good or bad, the same storage posture information 35 acquired by the product outer shape acquisition unit 13 and used in determining the quality of the installed column 5 is used.
[0079] The product shape acquisition unit 15 acquires product shape information 34 relating to the shape of a pre-classified product 80 using the first trained model 37 stored in the storage unit 30. The product shape acquisition unit 15 inputs the extracted image 70 generated by the image processing unit 14 for the product sales image 21 to the first trained model 37, and acquires the product shape information 34 of the product 80 as an output result.
[0080] The first trained model 37 is created by performing machine learning using a plurality of created training data sets as training data. As a machine learning method for the first trained model 37, any method such as a Fully Convolutional Neural Network (FCN), a neural network, a support vector machine (SVM), boosting, etc. However, the method for creating the first trained model 37 is not particularly limited.
[0081] In the first embodiment, as the product shape information 34, for example, any one of information that the shape of the product 80 arranged at the forefront of the column 5 is a box shape, information that the shape is a first container shape, or information that the shape is a second container shape is acquired. As shown in FIG. 12, the information that the shape is a box shape is information that the product 80 has a rectangular box shape. As shown in FIG. 13, the information that the shape is a first container shape is information that the product 80 has a product shape that includes a substantially conical container 81 having a bottom and a substantially circular lid 82, and is stored so that the surface of the lid 82 is disposed on the front side of the column 5. As shown in FIG. 14, the information that the shape is a second container shape is information that the product 80 has a product shape that includes a substantially conical container 81 having a bottom and a substantially circular lid 82, and is stored so that the side of the container 81 is disposed on the front side of the column 5.
[0082] The commodity outer shape acquisition unit 13 compares the commodity sales image 21 captured by the image capture unit 2 with the extracted image 70 based on the commodity arrangement image 20 stored in the storage unit 30, and extracts the area of the commodity 80 in the extracted image 70 based on the commodity sales image 21 using a background subtraction method. The commodity outer shape acquisition unit 13 detects the contour of the commodity 80 in the commodity sales image 21 based on the commodity shape information 34 acquired by the commodity shape acquisition unit 15 and the area of the commodity 80 extracted in the extracted image 70, and acquires storage posture information 35, which is, for example, information on the vertex coordinates of the contour, information on the angle of the contour side with respect to the horizontal direction, and information on the center coordinates of the contour, based on the detection result of the commodity contour. That is, the commodity outer shape acquisition unit 13 acquires the storage posture information 35 related to the current posture of the commodity 80 stored in the column 5 in the extracted image 70.
[0083] In the first embodiment, as shown in Fig. 12, when information indicating a box shape is acquired as product shape information 34, the product outer shape acquisition unit 13 acquires information on an upper left vertex coordinate P1 of a rectangular outline of the product 80 in the extracted image 70, information on a lower right vertex coordinate P2 of the rectangular outline of the product 80, and information on an angle θ1 of the base of the rectangular outline of the product 80 relative to the horizontal direction as storage posture information 35. Also, as shown in Fig. 13, when information indicating a first container shape is acquired as product shape information 34, the product outer shape acquisition unit 13 acquires information on a center coordinate P3 of a outline of a substantially circular lid 82 of the product 80 in the extracted image 70, and information on an aspect ratio of the outline of the substantially circular lid 82 of the product 80 as storage posture information 35. Furthermore, as shown in FIG. 14, when information indicating that the product shape is a second container shape is acquired as product shape information 34, the product outline acquisition unit 13 acquires, as storage posture information 35, information on the upper left vertex coordinate P4 of the trapezoidal contour in a side view of the container 81 of the product 80 in the extracted image 70, information on the lower right vertex coordinate P5 of the trapezoidal contour in a side view of the container 81 of the product 80, information on the angle θ2 of the center line of the trapezoidal contour in a side view of the container 81 of the product 80 relative to the horizontal direction, and information on the length ratio of the upper and lower bases of the trapezoidal contour in a side view of the container 81 of the product 80.
[0084] As shown in FIG. 1, the storage attitude information 35 acquired by the product outer shape acquisition unit 13 is stored in the storage unit 30.
[0085] Furthermore, the commodity outline acquisition unit 13 calculates the outline of the commodity 80 when stored in the column 5 in the normal orientation 83 based on the acquired storage orientation information 35 and the commodity shape information 34 acquired by the commodity shape acquisition unit 15, and acquires normal orientation information 36 which is, for example, information on the vertex coordinates of the outline, information on the angle of the outline sides relative to the horizontal direction, and information on the central coordinates of the outline, based on the detection result of the commodity outline in the normal orientation 83. In other words, the commodity outline acquisition unit 13 acquires normal orientation information 36 regarding the normal orientation 83 of the commodity 80 stored in the column 5 in the extracted image 70.
[0086] 15 , when information indicating a box shape is acquired as product shape information 34, the product outer shape acquisition unit 13 calculates the contour of the product 80 when stored in the column 5 in a normal posture 83 from side length information based on storage posture information 35, and acquires normal posture information 36 based on the detection result of the product contour in the normal posture 83. For ease of explanation, the normal posture 83 of the product 80 is illustrated by hatching. As the normal posture information 36, information on the upper left vertex coordinate P6 of the rectangular contour of the product 80 and information on the lower right vertex coordinate P7 of the rectangular contour of the product 80 in the normal posture 83 are acquired.
[0087] 16, when information indicating that the product shape is a first container shape is acquired as product shape information 34, the product outer shape acquisition unit 13 detects the elliptical shape of the lid 82 based on the storage posture information 35 and acquires the length information of the major axis of the detected elliptical shape. The product outer shape acquisition unit 13 then calculates the contour of the lid 82 of the product 80 when stored in the column 5 in a normal posture 83 from the major axis length information, and acquires normal posture information 36 based on the detection result of the product contour in the normal posture 83. For ease of explanation, the normal posture 83 of the product 80 is illustrated by hatching. Information on the center coordinate P8 of the contour of the approximately circular lid 82 of the product 80 in the normal posture 83 is acquired as the normal posture information 36.
[0088] 17, when the product shape information 34 indicates that the product is the second container shape, the product outer shape acquisition unit 13 detects a trapezoidal shape of the container 81 of the product 80 in a side view based on the storage posture information 35, and determines the up-down direction of the product 80 from the length ratio of the upper and lower bases of the detected trapezoidal shape. The product outer shape acquisition unit 13 then calculates the outline of the trapezoidal shape of the container 81 of the product 80 in a side view when the product 80 is stored in the column 5 in a normal posture 83, and acquires normal posture information 36 based on the detection result of the product outline in the normal posture 83. For convenience of explanation, the normal posture 83 of the product 80 is illustrated by hatching. As the normal posture information 36, information on the upper right vertex coordinate P9 of the outline of the trapezoidal shape of the container 81 of the product 80 in a side view in the normal posture 83 and information on the lower left vertex coordinate P10 of the outline of the trapezoidal shape of the container 81 of the product 80 in a side view are acquired.
[0089] As shown in FIG. 1, the normal posture information 36 acquired by the product outer shape acquisition unit 13 is stored in the storage unit 30.
[0090] The determination unit 11 acquires the difference between the storage posture information 35 and the normal posture information 36. Then, when the acquired difference is equal to or less than a preset threshold, the determination unit 11 determines that the posture of the product 80 is good, and when the acquired difference exceeds the preset threshold, the determination unit 11 determines that the posture of the product 80 is bad.
[0091] After a user places a commodity 80 in a column 5, the determination unit 11 performs a determination as to whether the posture of the commodity 80 in each of the columns 5 is good or bad based on the commodity sale image 21 captured by the photographing unit 2. In addition, after a commodity 80 is purchased by a commodity purchaser, the determination unit 11 performs a determination as to whether the posture of the commodity 80 in the column 5 in which the commodity 80 was sold is good or bad based on the commodity sale image 21 captured by the photographing unit 2.
[0092] The result of the determination by the determination unit 11 is notified to the terminal device 90 by the vending machine communication unit 3. If the determination unit 11 determines that the posture of the product 80 is good, the display unit 92 of the terminal device 90 displays a message indicating that the posture of the product 80 is good.
[0093] 19 is an example of a judgment result displayed on the display unit 92 of the terminal device 90 when the judgment unit 11 judges that the posture of the product 80 is poor. In this case, "Judgment result: NG" is displayed on the display unit 92. The display unit 92 also displays a superimposed image in which the outline of the product 80 based on the normal posture information 36 is superimposed on the extracted image 70, and also displays a message saying "Please correct so that it fits in the frame."
[0094] Furthermore, based on the result of the judgment by the judgment unit 11, the operation control unit 16 (see FIG. 1) performs control to stop the sale of the product 80 in the column 5 that corresponds to the judgment result of being defective. This makes it possible to avoid the occurrence of a sales problem in which the purchased product 80 is not carried out from the column 5 that corresponds to the judgment result of being defective.
[0095] (Processing to determine whether the product posture in the column is good or bad) 19, the process of determining whether the posture of a commodity 80 in a column 5 is good or bad according to the first embodiment, performed by the photographing unit 2, the vending machine control unit 10 (determination unit 11, commodity shape acquisition unit 15, commodity external shape acquisition unit 13, image processing unit 14), and the vending machine communication unit 3 will be described. Note that the order of the processing steps can be reversed or executed simultaneously as long as there is no contradiction between them.
[0096] In step S11, after the user installs the column 5 and before the user places the product 80 in the column 5, the photographing unit 2 photographs the product pre-arrangement image 20. Thereafter, the process proceeds to step S12.
[0097] In step S12, the photographing unit 2 photographs the product sales image 21 after the user places the product 80 in the column 5 and after the product purchaser purchases the product 80. Thereafter, the process proceeds to step S13.
[0098] In step S13, the image processing unit 14 generates an extracted image 70 based on the product-on-sale image 21 captured by the imaging unit 2 after the user places the product 80 in the column 5 and after the product purchaser purchases the product 80. Then, the process proceeds to step S14.
[0099] In step S14, the commodity shape acquisition unit 15 inputs the extracted image 70 generated by the image processing unit 14 to the first trained model 37 stored in the storage unit 30, and acquires, as an output result, the commodity shape information 34 of the commodity 80. After that, the process proceeds to step S15.
[0100] In step S15, the product outer shape acquisition unit 13 acquires storage posture information 35 based on the product shape information 34 acquired by the product shape acquisition unit 15 and the extracted image 70. The acquired storage posture information 35 is stored in the memory unit 30. After that, the process proceeds to step S16.
[0101] In step S16, the product outer shape acquisition unit 13 acquires normal posture information 36 based on the acquired storage posture information 35 and the product shape information 34 acquired by the product shape acquisition unit 15. The acquired normal posture information 36 is stored in the memory unit 30. After that, the process proceeds to step S17.
[0102] In step S17, the determination unit 11 determines whether the posture of the product 80 in column 5 is good or bad, based on the storage posture information 35 and the normal posture information 36 stored in the memory unit 30. Specifically, the determination unit 11 acquires a difference between the storage posture information 35 and the normal posture information 36, and when the acquired difference is equal to or less than a preset threshold, determines the posture of the product 80 to be good, and when the acquired difference exceeds the preset threshold, determines the posture of the product 80 to be bad. If the determination unit 11 determines that the posture of the product 80 in column 5 is good (positive) (Yes in step S17), the process proceeds to step S18, and if the determination unit 11 determines that the posture of the product 80 in column 5 is bad (negative) (No in step S17), the process proceeds to step S19.
[0103] In step S18, the determination unit 11 notifies the terminal device 90 that the determination result is positive via the vending machine communication unit 3. The terminal device 90 displays information related to the positive determination result on the display unit 92. After that, the process ends.
[0104] In step S19, the determination unit 11 notifies the terminal device 90 that the determination result is negative via the vending machine communication unit 3. The terminal device 90 displays, on the display unit 92, information related to the negative determination result and a superimposed image in which the contour of the commodity 80 based on the normal posture information 36 is superimposed on the extracted image 70. Thereafter, the process proceeds to step S20.
[0105] In step S20, the operation control unit 16 performs control to stop the sale of the product 80 in the column 5 that is determined to be defective, and then the process ends.
[0106] (Effects of the first embodiment) In the first embodiment, the following effects can be obtained.
[0107] In the first embodiment, as described above, the determination unit 11 determines the correspondence between the column 5 and the product 80 or determines the attitude of the product 80 based on the image of the column 5 photographed by the photographing unit 2. As a result, the determination unit 11 can determine the correspondence between the column 5 and the product 80 based on the image of the column 5 photographed by the photographing unit 2. Alternatively, the determination unit 11 can determine the attitude of the product 80 based on the image of the column 5 photographed by the photographing unit 2. As a result, based on the determination result by the determination unit 11, it is possible to correct the column 5 installed with respect to the product 80, correct the attitude of the product 80 in the column 5, or stop the sale of the product 80 in the column 5 where the correspondence between the column 5 and the product 80 is determined to be poor or the attitude of the product 80 is determined to be poor. Therefore, it is possible to suppress the occurrence of a sales defect in which the purchased product 80 is not carried out from the column 5.
[0108] Also, in the first embodiment, as described above, the determination unit 11 notifies the user that the determination result is negative at least when the determination result is negative. This allows the user to recognize the negative determination result when the determination result of the correspondence between the column 5 and the product 80 is negative or the determination result of the attitude of the product 80 is negative. Therefore, based on the notification of the negative determination result, the user can quickly correct the column 5 installed on the product 80 or correct the attitude of the product 80 in the column 5. As a result, the loss of sales opportunities for the product 80 can be suppressed.
[0109] In the first embodiment, as described above, the determination unit 11 determines whether the column 5 installed with respect to the product 80 is good or bad based on the column-product correspondence information 31 in which the dimensions of the column 5 and the product 80 are associated with each other, and the image of the column 5. This allows the correspondence between the column 5 and the product 80 to be determined based on the column-product correspondence information 31 in which the dimensions of the column 5 and the product 80 are associated with each other, and the image of the column 5, so that the quality of the column 5 installed with respect to the product 80 can be easily determined. As a result, based on the determination result by the determination unit 11, it is possible to correct the column 5 installed with respect to the product 80, or stop selling the product 80 in the column 5 in which the correspondence between the column 5 and the product 80 is determined to be bad. Therefore, it is possible to further suppress the occurrence of sales defects in which the purchased product 80 is not carried out from the column 5.
[0110] In the first embodiment, as described above, the determination unit 11 determines whether the installed column 5 is good or bad based on the column-product correspondence information 31, the before-product arrangement image 20, which is an image of the column 5 before the product arrangement, and the product sales image 21, which is an image of the column 5 and the product 80 stored in the column 5 at the time of product sales, both of which are photographed by the photographing unit 2. This allows the correspondence between the column 5 and the product 80 to be determined based on the before-product arrangement image 20, which is an image of the column 5 before the product arrangement, and the product sales image 21, which is an image of the column 5 and the product 80 stored in the column 5 at the time of product sales. Therefore, the quality of the currently installed column 5 can be determined based on the before-product arrangement image 20 and the product sales image 21. As a result, the quality of the column 5 installed relative to the product 80 can be accurately determined.
[0111] Also, in the first embodiment, as described above, the determination unit 11 acquires the column information 32 regarding the column 5 and the product dimension information 33 regarding the dimensions of the product 80 based on the product pre-arrangement image 20 and the product sales image 21, and determines the quality of the installed column 5 based on the column-product correspondence information 31 and the acquired column information 32 and product dimension information 33. This makes it possible to determine the correspondence between the column 5 and the product 80 based on the column information 32 regarding the column 5 and the product dimension information 33 regarding the dimensions of the product 80. Therefore, it is possible to determine the quality of the currently installed column 5 based on the column information 32 and the product dimension information 33. As a result, it is possible to more accurately determine the quality of the column 5 installed relative to the product 80.
[0112] In the first embodiment, as described above, the storage 1 includes the partition plate 6 that separates the columns 5 adjacent to each other in the left-right direction, and the spiral member 7 that is wound in a spiral shape and extends in the front-rear direction, and the column product correspondence information 31 and the column information 32 include information on the number of spiral members 7 arranged in one column 5, the spiral pitch of the spiral member 7, and the interval between the partition plates 6 that separate the columns 5. As a result, the column product correspondence information 31 and the column information 32 include the above information, so that the quality of the currently installed column 5 can be determined based on the above information included in the column product correspondence information 31 and the column information 32. As a result, the determination unit 11 can determine the quality of the column 5 with even greater accuracy.
[0113] In the first embodiment, as described above, when a plurality of spiral members 7 are arranged in one column 5, the product outer shape acquisition unit 13 acquires position information of the tip 7a of each of the plurality of spiral members 7 based on the product sales image 21, and further judges whether the positional relationship between the tip 7a is good or bad based on the acquired positional information of the tip 7a. This allows the product outer shape acquisition unit 13 to further judge whether the positional relationship between the tip 7a of each of the plurality of spiral members 7 is good or bad. Therefore, when the judgment result is judged to be negative by the judgment unit 11, the position of the tip 7a of the spiral member 7 can be corrected, and therefore, it is possible to suppress the failure of the product 80 to be carried out due to the position of the tip 7a of each of the plurality of spiral members 7 not being aligned. As a result, it is possible to further suppress the loss of sales opportunities for the product 80.
[0114] In the first embodiment, as described above, the determination unit 11 acquires the storage posture information 35 related to the posture of the stored commodity 80 based on the commodity vending image 21, which is an image of the column 5 at the time of commodity vending and the commodity 80 stored in the column 5 captured by the image capturing unit 2, and the normal posture information 36 related to the normal posture of the commodity 80, and determines whether the posture of the commodity 80 in the column 5 is good or bad based on the acquired storage posture information 35 and normal posture information 36. As a result, since the posture of the commodity 80 in the column 5 can be determined based on the acquired storage posture information 35 and normal posture information 36, it is possible to easily determine whether the posture of the commodity 80 in the column 5 is good or bad, compared to the case where the posture of the commodity 80 in the column 5 is determined to be good or bad based only on the storage posture information 35. As a result, based on the determination result by the determination unit 11, it is possible to correct the posture of the commodity 80 in the column 5, stop the sale of the commodity 80 in the column 5 whose posture is determined to be bad, or the like. Therefore, it is possible to further suppress the occurrence of a sales defect in which the purchased commodity 80 is not carried out from the column 5.
[0115] Also, in the first embodiment, as described above, the product shape acquisition unit 15 acquires product shape information 34 related to the shape of the product 80 based on the product vending image 21, the product outer shape acquisition unit 13 acquires storage posture information 35 based on the acquired product shape information 34 and the product vending image 21, and acquires normal posture information 36 based on the storage posture information 35, and the determination unit 11 judges whether the posture of the product 80 in the column 5 is good or bad based on the acquired storage posture information 35 and normal posture information 36. As a result, the product outer shape acquisition unit 13 can acquire the storage posture information 35 based on the product shape information 34 acquired based on the product vending image 21 and the product vending image 21, so that it is possible to acquire the storage posture information 35 according to the shape of the product 80 and to acquire the normal posture information 36 based on the storage posture information 35 according to the shape of the product 80. As a result, it is possible to judge whether the posture of the product 80 in the column 5 is good or bad based on the storage posture information 35 and the normal posture information 36. Therefore, it is possible to accurately determine whether the posture of the product 80 in the column 5 is good or bad, depending on the shape of the product 80.
[0116] Furthermore, in the first embodiment, as described above, the determination unit 11 obtains the difference between the acquired storage posture information 35 and the normal posture information 36, and determines that the posture of the product 80 is poor if the acquired difference exceeds a preset threshold. This makes it possible to determine that the posture of the product 80 is poor if the acquired difference exceeds a preset threshold. Therefore, it is possible to more accurately determine whether the posture of the product 80 in the column 5 is good or bad depending on the shape of the product 80.
[0117] Furthermore, in the first embodiment, as described above, when the determination unit 11 determines that the posture of the product 80 is poor as a determination result, the operation control unit 16 performs control to stop the sale of the product 80 in the column 5. This makes it possible to stop the sale of the product 80 in the column 5 where the posture of the product 80 is determined to be poor as a determination result. As a result, it is possible to reliably prevent the occurrence of a sales defect in which the purchased product 80 is not carried out from the column 5.
[0118] [Second embodiment] (Vending machine configuration) Next, the configuration of a vending machine system 210 according to the second embodiment will be described with reference to Figs. 20 to 25. In the second embodiment, unlike the first embodiment, the image processing unit 14 corrects the product vending image 21 based on pre-arrangement portion information in the product pre-arrangement image 20 photographed by the photographing unit 2 and vending portion information in the product vending image 21, and the determination unit 11 is further configured to determine the presence or absence of a product 80 in the column 5. Note that in the drawings, parts having the same configuration as the vending machine system 200 according to the first embodiment are given the same reference numerals.
[0119] 20, the vending machine-side control unit 10 includes, as software (software program), a determination unit 11, a column information acquisition unit 12, a product outer shape acquisition unit 13, an image processing unit 14, a product shape acquisition unit 15, an operation control unit 16, and a feature amount extraction unit 17. The vending machine-side control unit 10 including the determination unit 11, the column information acquisition unit 12, the product outer shape acquisition unit 13, the image processing unit 14, the product shape acquisition unit 15, the operation control unit 16, and the feature amount extraction unit 17 is an example of the "control unit" in the claims.
[0120] The storage unit 30 further stores a second trained model 41, a reference pattern image 23, and a product-absent image 22. The second trained model 41 is a trained model created by machine learning. The reference pattern image 23 is a pattern image including a column number plate 8 (see FIG. 3 and FIG. 4) arranged near each of the multiple columns 5 and indicating the column number assigned to each of the multiple columns 5. The product-absent image 22 is an image of a range including only one column 5 in the product-before-arrangement image 20.
[0121] The feature extraction unit 17 is configured to use the second trained model 41 stored in the storage unit 30 to extract a plurality of feature amounts obtained by digitizing feature points as feature points from the commodity-free image 22 stored in the storage unit 30, and to acquire a feature amount distribution 50 (see FIG. 21). The feature amounts are digitized values such as the brightness of the storage unit 1 in which the commodity 80 is placed.
[0122] 22, in the image 20 before product arrangement, a shooting range R is set so that a plurality of columns 5 are photographed together. In the image 22 without products, a range A of the image 22 without products is set so as to include only one column 5 among the plurality of columns 5 within the shooting range R in the image 20 before product arrangement.
[0123] The photographing unit 2 photographs the product pre-arrangement image 20. In the second embodiment, the photographing unit 2 photographs the product pre-arrangement image 20 when the vending machine 110 is shipped from the manufacturing factory or when the vending machine 110 is installed. In addition, the photographing unit 2 photographs the product vending image 21 while the vending machine 110 is in operation.
[0124] The image processing unit 14 acquires a reference pattern image 23 (see FIG. 20) of each column number plate 8 (see FIG. 3 and FIG. 4) of a plurality of columns 5. As shown in FIG. 23, the image processing unit 14 detects number pattern images 24 of a plurality of column number plates 8 in the pre-product arrangement image 20, and acquires first arrangement information 39 (see FIG. 20) related to the detected number pattern images 24 of the plurality of column number plates 8 as pre-arrangement partial information. In the second embodiment, the image processing unit 14 detects two number pattern images 24 in the pre-product arrangement image 20, and acquires first arrangement information 39 related to the detected two number pattern images 24.
[0125] Further, as shown in Fig. 24, the image processing unit 14 detects number pattern images 24 of a plurality of column number plates 8 in the product sales image 21, and acquires second arrangement information 40 (see Fig. 20) related to the detected number pattern images 24 of the plurality of column number plates 8 as sales partial information. In the second embodiment, the image processing unit 14 detects two number pattern images 24 in the product sales image 21, and acquires second arrangement information 40 related to the detected two number pattern images 24. Then, as shown in Fig. 25, the image processing unit 14 acquires a corrected product sales image 25 by correcting the product sales image 21 based on the first arrangement information 39 (see Fig. 20) and the second arrangement information 40 (see Fig. 20).
[0126] The image processing unit 14 acquires, as first arrangement information 39 (see FIG. 20), position information and angle information based on the two number pattern images 24 detected in the product before arrangement image 20. The image processing unit 14 also acquires, as second arrangement information 40 (see FIG. 20), position information and angle information based on the two number pattern images 24 detected in the product sales image 21.
[0127] If the image processing unit 14 does not acquire the second arrangement information 40 (see FIG. 20), the image processing unit 14 notifies the terminal device 90 via the vending machine side communication unit 3 (see FIG. 20) of an abnormality in the photographing unit 2. In this case, information that the photographing unit 2 is abnormal is displayed on the display unit 92 of the terminal device 90.
[0128] As shown in FIG. 20, the determination unit 11 is configured to compare the feature amount extracted by the feature amount extraction unit 17 with the feature amount obtained by digitizing the feature points extracted from the product sales image 21 captured by the image capture unit 2 to determine the presence or absence of a product 80 in the storage shed 1. Specifically, the determination unit 11 is configured to calculate the feature amount obtained by digitizing the feature points extracted from the product sales image 21 using a second trained model 41 (see FIG. 20) created by machine learning. The determination unit 11 is also configured to determine that there is no product when the feature amount obtained by digitizing the feature points extracted from the product sales image 21 is within a range of no product set based on the feature amount distribution 50 (see FIG. 21). When the feature amount obtained by digitizing the feature points extracted from the product sales image 21 is outside the range of no product set based on the feature amount distribution 50, the determination unit 11 is configured to determine that there is a product.
[0129] (Acquisition of first and second placement information) Acquisition of the first arrangement information 39 by the image processing unit 14 will be described with reference to FIG.
[0130] As an example, the image processing unit 14 acquires two column numbers among the preselected column numbers assigned to each of the multiple columns 5, and acquires a first reference pattern image 23 (see FIG. 20) and a second reference pattern image 23 (see FIG. 20) corresponding to each column number plate 8 of the acquired two column numbers, which are stored in the storage unit 30. In the second embodiment, the first reference pattern image 23 is the reference pattern image 23 of the column number plate 8 arranged at the left end of the lower row. Moreover, the second reference pattern image 23 is the reference pattern image 23 of the column number plate 8 arranged at the right end of the lower row.
[0131] The image processing unit 14 detects the first number pattern image 24a and the second number pattern image 24b corresponding to the first reference pattern image 23 and the second reference pattern image 23 in the before-product arrangement image 20 stored in the storage unit 30 by performing pattern matching on each of the acquired first reference pattern image 23 (see FIG. 20) and the second reference pattern image 23 (see FIG. 20). Then, the image processing unit 14 acquires the first arrangement information 39 based on the detected first number pattern image 24a and the second number pattern image 24b. As the first arrangement information 39, the image processing unit 14 acquires the coordinates P11 of the detected first number pattern image 24a and the angle θ3 between the line connecting the detected first number pattern image 24a and the detected second number pattern image 24b and the horizontal direction of the image. The first arrangement information 39 acquired by the image processing unit 14 is stored in the storage unit 30.
[0132] Next, acquisition of the second arrangement information 40 by the image processing unit 14 will be described with reference to FIG.
[0133] As an example, the image processing unit 14 acquires two column numbers in the product sales image 21 at positions corresponding to the positions at which the two column numbers selected when acquiring the first arrangement information 39 are arranged, and acquires a third reference pattern image 23 (see FIG. 20) and a fourth reference pattern image 23 (see FIG. 20) corresponding to each of the column number plates 8 of the acquired two column numbers, which are stored in the storage unit 30. In the second embodiment, the third reference pattern image 23 is a pattern image of the column number plate 8 arranged at the left end of the lower row. Moreover, the fourth reference pattern image 23 is a pattern image of the column number plate 8 arranged at the right end of the lower row.
[0134] The image processing unit 14 detects the third number pattern image 24c and the fourth number pattern image 24d corresponding to the third reference pattern image 23 and the fourth reference pattern image 23 in the product sales image 21 stored in the storage unit 30 by performing pattern matching on each of the acquired third reference pattern image 23 (see FIG. 20) and the fourth reference pattern image 23 (see FIG. 20). Then, the image processing unit 14 acquires the second arrangement information 40 based on the detected third number pattern image 24c and the fourth number pattern image 24d. As the second arrangement information 40, the image processing unit 14 acquires the coordinates P12 of the detected third number pattern image 24c and the angle θ4 between the line connecting the detected third number pattern image 24c and the detected fourth number pattern image 24d and the horizontal direction of the image. The second arrangement information 40 acquired by the image processing unit 14 is stored in the storage unit 30.
[0135] Here, the product sales image 21 is an image including a column 5 in which the product 80 was sold. Therefore, depending on the product 80 sold, the multiple columns 5 included in the two vertical rows reflected in the product sales image 21 may differ from the multiple columns 5 included in the two vertical rows reflected in the product before arrangement image 20. However, the positional relationship between the third reference pattern image 23 and the fourth reference pattern in the product sales image 21 corresponds to the positional relationship between the first reference pattern image 23 and the second reference pattern in the product before arrangement image 20. That is, even if the column 5 reflected in the product sales image 21 is different from the column 5 reflected in the product before arrangement image 20, the positional relationship between the third reference pattern image 23 and the fourth reference pattern in the product sales image 21 is the same as the positional relationship between the first reference pattern image 23 and the second reference pattern in the product before arrangement image 20. Therefore, the product sales image 21 can be corrected based on the second arrangement information 40 and the first arrangement information 39.
[0136] In addition, when the image processing unit 14 acquires the second arrangement information 40, a search area for performing pattern matching is set in advance in the product vending image 21. When the third number pattern image 24c and the fourth number pattern image 24d are not detected by the image processing unit 14 in the preset search area, or when the similarity between the third number pattern image 24c and the fourth number pattern image 24d detected by the image processing unit 14 in the preset search area and the third reference pattern image 23 (see FIG. 20) and the fourth reference pattern image 23 (see FIG. 20) is less than a preset threshold, the image processing unit 14 notifies the terminal device 90 of an abnormality in the photographing unit 2 via the vending machine side communication unit 3. The abnormality in the photographing unit 2 is, for example, an abnormality caused by an excessive positional deviation of the photographing unit 2 or an abnormality caused by a cloudy lens of the camera of the photographing unit 2.
[0137] When the image processing unit 14 notifies the user of an abnormality in the photographing unit 2, the operation control unit 16 (see FIG. 20) is configured to perform control to stop the vending machine 110 from selling the product 80. In this case, the operation control unit 16 is configured not to accept any operation input to the vending machine 110 by a product purchaser.
[0138] (Image correction when selling products) As shown in Fig. 25, the image processing unit 14 corrects the product vending image so that the first arrangement information 39 stored in the storage unit 30 and the second arrangement information 40 stored in the storage unit 30 are equal. Specifically, the image processing unit 14 performs image processing of rotation and translation on the product vending image 21 so that the coordinates P11 (see Fig. 23) of the detected first number pattern image 24a included in the first arrangement information 39 and the angle θ3 (see Fig. 23) between the line connecting the detected first number pattern image 24a and the detected second number pattern image 24b and the image horizontal direction match the coordinates P12 (see Fig. 24) of the detected third number pattern image 24c included in the second arrangement information 40 and the angle θ4 (see Fig. 24) between the line connecting the detected third number pattern image 24c and the detected fourth number pattern image 24d and the image horizontal direction. The corrected product sales image 25 is stored in the storage unit 30.
[0139] (Creating feature distribution) FIG. 21 is a diagram showing the feature distribution 50 in two dimensions. The feature extraction unit 17 (see FIG. 20) is configured to create the feature distribution 50 from the no-commodity image 22. The feature extraction unit 17 is configured to acquire the feature distribution 50 when the commodity 80 in the vending machine 110 is selected by the commodity purchaser. The feature extraction unit 17 uses, as the no-commodity images 22 from which the multiple feature quantities are extracted, the multiple no-commodity images 22 taken under substantially the same shooting conditions as at least one of the multiple shooting conditions under which the commodity vending image 21 was taken, including the position where the commodity 80 was placed in the storage 1, the time period when the commodity vending image 21 was taken, and the location where the vending machine 110 where the commodity vending image 21 was taken was installed. The position where the commodity 80 was placed is, for example, an image of the column 5 with the same number in the case of a vending machine 110 in which columns 5 are numbered in the same way. The time period is, for example, morning, afternoon, evening, and the like. Moreover, the location where the vending machine 110 where the product vending image 21 was taken is installed may be indoors or outdoors.
[0140] Machine learning is used to create the feature distribution 50. In the second embodiment, PaDiM (Patch Distribution Modeling) is used. PaDiM is a method of extracting features using a machine-learned trained model, creating a distribution, and calculating the distance between the created distribution and the evaluation target. In the second embodiment, the distribution is the feature distribution 50, and the evaluation target is the product sales image 21. In the second embodiment, PaDiM is used in the feature extraction unit 17 and the determination unit 11. The feature extraction unit 17 performs operations up to extracting features using a machine-learned second trained model 41 (see FIG. 20) and creating a distribution, and also performs an operation of calculating the distance between the created distribution and the evaluation target by the determination unit 11.
[0141] In the second embodiment, the feature amount extraction unit 17 is configured to acquire a hundred-dimensional feature amount distribution 50 by calculation from a plurality of feature points of the commodity-free image 22 using PaDiM.
[0142] The determination unit 11 is configured to determine that a product is not present as a range set based on the feature amount distribution 50 shown by an ellipse in Fig. 21, and to determine that a product is not present when the feature amount of the product-on-sale image 21 falls within the range for determining that a product is not present, and to determine that a product is present when the feature amount of the product-on-sale image falls outside the range. Specifically, the determination unit 11 is configured to calculate feature amounts from feature points of the product-on-sale image 21 using PaDiM, and to determine that a product is present when the distance from the feature amount distribution 50 exceeds a threshold value, as being outside the range for determining that a product is not present, and to determine that a product is not present when the distance is equal to or less than the threshold value, as being within the range for determining that a product is not present.
[0143] (Determining whether a product is available in a column) 26 to 28, the process of determining whether or not a commodity 80 is present in a column 5 by the photographing unit 2, the vending machine control unit 10 (determination unit 11, image processing unit 14, feature extraction unit 17), and the vending machine communication unit 3 according to the second embodiment will be described. Note that the order of the processing steps can be reversed or executed simultaneously as long as there is no contradiction between them.
[0144] 26, the image processing unit 14 acquires, as the first arrangement information 39, position information and angle information based on the two number pattern images 24 detected in the before-product arrangement image 20. After that, the process proceeds to step S32.
[0145] In step S32, the vending machine controller 10 accepts an input by the purchaser of the product 80 selection button. After that, the process proceeds to step S33.
[0146] In step S33, the feature amount extraction unit 17 creates a feature amount distribution 50 from the commodity-free image 22. After that, the process proceeds to step S34.
[0147] In step S34, the operation control unit 16 carries the selected product 80 out to the conveying unit 4, and the conveying unit 4 conveys the product 80 to the outlet 103. After that, the process proceeds to step S35.
[0148] In step S35, the photographing unit 2 photographs the product sales image 21 including the column 5 in which the selected product 80 was placed. After that, the process proceeds to step S36.
[0149] In step S36, the image processing unit 14 acquires, as the second arrangement information 40, position information and angle information based on the two number pattern images 24 detected in the product sales image 21, and corrects the product sales image 21 photographed by the photographing unit 2 based on the acquired first arrangement image and second arrangement information 40. Thereafter, the process proceeds to step S37.
[0150] In step S37, the determination unit 11 extracts feature amounts obtained by digitizing feature points of the corrected product-at-sale image 25, and compares the feature amount distribution 50 with the feature amounts of the corrected product-at-sale image 25 to determine whether or not a product 80 is present in column 5 in which the selected product 80 was placed. If the determination unit 11 determines that a product is present in column 5 (Yes in step S37), the process proceeds to step S32, and if the determination unit 11 determines that a product is not present in column 5 (No in step S37), the process proceeds to step S38.
[0151] In step S38, the operation control unit 16 performs control to stop the sale of the product 80 in the column 5 corresponding to the determination result that there is no product, and then the process ends.
[0152] Next, the flow of the first arrangement information acquisition process by the image processing unit 14 in step S31 of FIG. 26 will be described.
[0153] 27, the image processing unit 14 acquires two of the preselected column numbers assigned to each of the plurality of columns 5, and acquires the first and second reference pattern images 23 and 23 stored in the storage unit 30 and corresponding to the column number plates 8 of each of the acquired two column numbers. Then, the process proceeds to S312.
[0154] In step S312, the image processing unit 14 performs pattern matching on the acquired first reference pattern image 23 and second reference pattern image 23 in the before-product arrangement image 20 to detect the first number pattern image 24a and the second number pattern image 24b in the before-product arrangement image 20, and acquires the first arrangement information 39 based on the detected first number pattern image 24a and second number pattern image 24b. Then, the process proceeds to S313.
[0155] In step S313, the image processing unit 14 stores the acquired first arrangement information 39 in the storage unit 30. After that, the process proceeds to S32 in FIG.
[0156] Next, a process flow of acquiring the second arrangement information and correcting the product sales image 21 by the image processing unit 14 in step S36 of FIG. 26 will be described.
[0157] 28, the image processing unit 14 acquires two column numbers located at positions in the product sales image 21 corresponding to the positions at which the two column numbers selected when acquiring the first arrangement information 39 were arranged, and acquires the third reference pattern image 23 and the fourth reference pattern image 23 corresponding to the column number plates 8 of each of the acquired two column numbers, which are stored in the storage unit 30. Then, the process proceeds to S362.
[0158] In step S362, the image processing unit 14 detects the third number pattern image 24c and the fourth number pattern image 24d in the product sales image 21 by performing pattern matching on the acquired third reference pattern image 23 and fourth reference pattern image 23 in the product sales image 21. If the image processing unit 14 detects the third number pattern image 24c and the fourth number pattern image 24d (Yes in step S362), the process proceeds to step S363, and if the image processing unit 14 does not detect the third number pattern image 24c and the fourth number pattern image 24d (No in step S362), the process proceeds to step S366.
[0159] In step S363, the image processing unit 14 judges whether the similarity between the detected third number pattern image 24c and fourth number pattern image 24d and the third reference pattern image 23 and the fourth reference pattern image 23 is equal to or greater than a preset threshold value. If the image processing unit 14 judges that the similarity is equal to or greater than the preset threshold value (Yes in step S363), the process proceeds to step S364, and if the image processing unit 14 judges that the similarity is less than the preset threshold value (No in step S363), the process proceeds to step S366.
[0160] In step S364, the image processing unit 14 acquires the second arrangement information 40 based on the detected third number pattern image 24c and fourth number pattern image 24d, and stores the acquired second arrangement information 40 in the storage unit 30. After that, the process proceeds to S365.
[0161] In step S365, the image processing unit 14 corrects the product sales image 21 captured by the imaging unit 2 based on the first arrangement information 39 stored in the storage unit 30 and the second arrangement information 40 stored in the storage unit 30, and stores the corrected product sales image 25 in the storage unit 30. Thereafter, the process proceeds to S37 in FIG.
[0162] In step S366, the image processing unit 14 notifies the terminal device 90 of the abnormality in the photographing unit 2 via the vending machine side communication unit 3. After that, the process proceeds to S367.
[0163] In step S367, the operation control unit 16 performs control to stop the sale of the product 80 in the vending machine 100. After that, the process ends.
[0164] Other configurations of the second embodiment are similar to those of the first embodiment.
[0165] (Effects of the second embodiment) In the second embodiment, the following effects can be obtained.
[0166] In the second embodiment, as described above, the image processing unit 14 corrects the product sales image 21 based on pre-arrangement portion information on two portions in the product before arrangement image 20, which is an image of the column 5 before the product 80 is arranged and photographed by the photographing unit 2, and on-sale portion information on portions corresponding to the two portions in the product sales image 21, which is an image of the column 5 at the time of selling the product 80 photographed by the photographing unit 2, and the determination unit 11 further determines the presence or absence of the product 80 in the column 5 based on the product before arrangement image 20 and the corrected product sales image 25. As a result, the product sales image 21 can be corrected based on the pre-arrangement portion information on the two portions in the product before arrangement image 20 and on-sale portion information on portions corresponding to the two portions in the product sales image 21. Therefore, compared to the case where the product sales image 21 is corrected based on one portion in the product before arrangement image 20 and the product sales image 21, the positional deviation between the product before arrangement image 20 and the product sales image 21 caused by the positional deviation of the photographing unit 2 can be appropriately corrected. As a result, even if the photographing unit 2 is misaligned when photographing the before-product arrangement image 20 and the at-sale product image 21, the determining unit 11 can accurately determine the presence or absence of the product 80 in the column 5 based on the before-product arrangement image 20 and the corrected at-sale product image 25. This makes it possible to improve the accuracy of determining whether the product 80 in the column 5 is sold out.
[0167] Furthermore, in the second embodiment, as described above, the image processing unit 14 acquires the first reference pattern image 23 and the second reference pattern image 23 corresponding to the two column number plates 8, detects the first number pattern image 24a and the second number pattern image 24b in the pre-product arrangement image 20, acquires first arrangement information 39 relating to the detected first number pattern image 24a and second number pattern image 24b as pre-arrangement partial information, detects the third number pattern image 24c and the fourth number pattern image 24d in the product sales image 21, acquires second arrangement information 40 relating to the detected third number pattern image 24c and fourth number pattern image 24d as sales partial information, corrects the product sales image 21 based on the first arrangement information 39 and the second arrangement information 40, and determines the presence or absence of a product 80 in the column 5 based on the pre-product arrangement image 20 and the corrected product sales image 25. This allows the product on-sale image 21 to be corrected based on the first arrangement information 39 and the second arrangement information 40 acquired by detecting the number pattern image 24 corresponding to the column number plate 8, so that the positional deviation between the product before arrangement image 20 and the product on-sale image 21 caused by the positional deviation of the photographing unit 2 can be appropriately corrected. As a result, even if the positional deviation of the photographing unit 2 occurs when photographing the product before arrangement image 20 and the product on-sale image 21, the determining unit 11 can more accurately determine the presence or absence of the product 80 in the column 5 based on the product before arrangement image 20 and the corrected product on-sale image 25. This allows the accuracy of determining whether the product 80 in the column 5 is sold out to be further improved.
[0168] In the second embodiment, as described above, the image processing unit 14 acquires, as the first arrangement information 39, position information and angle information based on the first number pattern image 24a and the second number pattern image 24b detected in the before-product arrangement image 20, and acquires, as the second arrangement information 40, position information and angle information based on the third number pattern image 24c and the fourth number pattern image 24d detected in the product sales image 21, corrects the product sales image 21 based on the first arrangement information 39 and the second arrangement information 40, and determines the presence or absence of a product 80 in the column 5 based on the before-product arrangement image 20 and the corrected product sales image 25. As a result, the product sales image 21 can be corrected based on the first arrangement information 39 and the second arrangement information 40 including the angle information, so that the complex positional deviation in the rotation direction of the product before-product arrangement image 20 and the product sales image 21 can be appropriately corrected. As a result, even if a complex positional shift occurs in the photographing unit 2 when photographing the pre-product arrangement image 20 and the product sale image 21, the judgment unit 11 can more accurately judge the presence or absence of the product 80 in the column 5 based on the pre-product arrangement image 20 and the corrected product sale image 25.
[0169] In the second embodiment, as described above, when the sales part information is not acquired in the product sales image 21, the image processing unit 14 notifies the user that the photographing unit 2 is abnormal. This allows the user to recognize the abnormality of the photographing unit 2 based on the notification that the photographing unit 2 is abnormal, and therefore allows the user to quickly correct the defect in the photographing unit 2. As a result, the loss of sales opportunities for the product 80 can be suppressed.
[0170] Other effects of the second embodiment are similar to those of the first embodiment.
[0171] (Modification) The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present invention is indicated by the claims rather than the description of the above embodiments, and further includes all modifications (variations) within the meaning and scope of the claims.
[0172] For example, in the first embodiment, the information on the number of spiral members arranged in one column, the information on the spiral pitch of the spiral member, and the information on the interval between the partition plates that separate the columns are shown as examples of the information on the columns and the column information in the column product correspondence information, but the present invention is not limited to this. In the present invention, for example, the information on the columns and the column information may be at least one of the above information, or may be information to which other information on the columns is added.
[0173] In the first embodiment, the information on the product dimensions and the product dimension information in the column product correspondence information are exemplified as information on the product width dimension, information on the product height dimension, and information on the product depth dimension, but the present invention is not limited to this. In the present invention, for example, the information on the product dimensions and the product dimension information may be at least one of the above information, or may be information to which other information on the product dimensions is added.
[0174] In the above first embodiment, position information of each tip of the spiral member is acquired, and the quality of the positional relationship between the tip portions is further determined based on the acquired position information of the tip portions, but the present invention is not limited to this. In the present invention, it is not necessary to acquire position information of the tip portions, and it is not necessary to determine the quality of the positional relationship between the tip portions.
[0175] In the first embodiment, the column product corresponding information is stored in the storage unit, but the present invention is not limited to this. For example, the column product corresponding information stored in a server or the like may be acquired via a vending machine communication unit.
[0176] In the above first embodiment, examples of the product shape information include a box shape, a first container shape, and a second container shape, but the present invention is not limited to this. In the present invention, examples of other product shapes may be added to the product shape information.
[0177] In the above-described first embodiment, examples of the storage posture information and normal posture information include information on the vertex coordinates of the contour, information on the angle of the contour side with respect to the horizontal direction, and information on the center coordinates of the contour, but the present invention is not limited to this. In the present invention, other information may be added as the storage posture information and normal posture information.
[0178] In the above first embodiment, the product shape acquisition unit acquires the product shape information using the first trained model, but the present invention is not limited to this. In the present invention, the product shape information may be acquired using a software program that does not use a trained model.
[0179] In the above first embodiment, the commodity outline acquisition unit extracts the commodity area using the background subtraction method, but the present invention is not limited to this. In the present invention, the commodity area may be extracted using other known methods.
[0180] In the above first and second embodiments, the product vending image is an image of a plurality of columns arranged in two vertical rows, but the present invention is not limited to this. In the present invention, the product vending image may be an image of each of a plurality of columns, or may be an image of a plurality of columns arranged in one row or in three or more vertical rows.
[0181] In the above first and second embodiments, the photographing unit is disposed in the transport unit, but the present invention is not limited to this. In the present invention, for example, the photographing unit may be disposed in the door. In this case, multiple photographing units may be disposed.
[0182] In the above second embodiment, the image processing unit detects two number pattern images in the before-product arrangement image and obtains the first arrangement information related to the detected two number pattern images, and detects two number pattern images in the at-sale product image and obtains the second arrangement information related to the detected two number pattern images, but the present invention is not limited to this. For example, in the present invention, three or more number pattern images may be detected and the first arrangement information and the second arrangement information related to the detected three or more number pattern images may be obtained.
[0183] In the second embodiment, an example of performing pattern matching based on a pattern image of a column number plate is shown, but the present invention is not limited to this. In the present invention, for example, pattern matching may be performed based on a pattern image of a frame portion of a column number plate or an object other than a column number plate.
[0184] In the above second embodiment, an example is shown in which PaDiM is used as machine learning in creating the second trained model, but the present invention is not limited to this. In the present invention, for example, deep learning may be used as machine learning in creating the second trained model. [Explanation of symbols]
[0185] 1 Storage 2. Photography Department 5. Column 6 Partition 7 Spiral member 7a Tip 10 Control unit (vending machine side control unit) 20 Product before placement image 21 Product sales images 31 Column Product Information 32 Column Information 33 Product Dimensions Information 34 Product shape information 35 Storage posture information 36 Normal posture information 39 First placement information 40 Second placement information 80 items 90 Display device (terminal device) 100, 110 Vending Machine 200, 210 Vending machine system
Claims
1. a storage unit including a plurality of columns for storing items; An imaging unit that images the storage facility; A vending machine comprising: a control unit that determines a correspondence between the column and the product or determines a posture of the product based on an image of the column captured by the imaging unit.
2. The vending machine according to claim 1 , wherein the control unit notifies a user that the determination result is negative at least when the determination result is negative.
3. The vending machine according to claim 1 or 2, wherein the control unit determines whether the column installed relative to the product is good or bad based on column-product correspondence information in which the column corresponds to dimensions of the product and an image of the column.
4. The vending machine described in claim 3, wherein the control unit determines whether the installed column is good or bad based on the column product correspondence information, a pre-product arrangement image captured by the photographing unit which is an image of the column before the product is arranged, and a product sales image which is an image of the column and the product stored in the column at the time of product sales.
5. The vending machine described in claim 4, wherein the control unit acquires column information regarding the column and product dimension information regarding the dimensions of the product based on the image before product arrangement and the image at the time of product sale, and determines whether the installed column is good or bad based on the column-product correspondence information and the acquired column information and product dimension information.
6. The storage includes a partition plate that separates the columns adjacent to each other in the left-right direction, and a spiral member that is wound in a spiral shape and extends in the front-rear direction, The vending machine of claim 5, wherein the column product correspondence information and the column information include at least one of the following information: the number of the spiral members arranged in one column, the spiral pitch of the spiral member, and the spacing between the partition plates that separate the columns.
7. 7. The vending machine according to claim 6, wherein when a plurality of the spiral members are arranged in one column, the control unit further acquires positional information of the tip of each of the plurality of spiral members based on the product vending image, and further determines whether the positional relationship between the tips is good or bad based on the acquired positional information of the tip.
8. The vending machine of claim 1 or 2, wherein the control unit acquires storage posture information regarding the posture of the stored product based on a product sales image, which is an image of the column at the time of product sales and the product stored in the column photographed by the photographing unit, and normal posture information regarding a normal product posture, and determines whether the posture of the product in the column is good or bad based on the acquired storage posture information and normal posture information.
9. The control unit is acquiring product shape information relating to a shape of the product based on the product sales image, acquiring the storage posture information based on the acquired product shape information and the product sales image, and acquiring the normal posture information based on the storage posture information; The vending machine according to claim 8 , further comprising: a step of determining whether or not the attitude of the products in the column is good based on the acquired storage attitude information and normal attitude information.
10. The vending machine according to claim 9, wherein the control unit acquires a difference between the acquired storage posture information and the normal posture information, and when the acquired difference exceeds a preset threshold, determines that the posture of the product is poor.
11. The vending machine according to claim 8 , wherein the control unit performs control to stop selling of the product in the column when the posture of the product is determined to be poor as the determination result.
12. The vending machine described in claim 1 or 2, wherein the control unit corrects the product sales image based on pre-arrangement portion information regarding multiple portions in a pre-product arrangement image, which is an image of the column before the product is arranged and photographed by the photographing unit, and sales-time portion information regarding portions corresponding to the multiple portions in a product sales-time image, which is an image of the column at the time of product sale and photographed by the photographing unit, and further determines the presence or absence of the product in the column based on the pre-product arrangement image and the corrected product sales-time image.
13. The control unit is acquiring a plurality of images corresponding to identification indicia provided to each of a plurality of said columns; Detecting the plurality of images in the pre-arrangement image of the product, and acquiring first arrangement information related to the detected plurality of images as the pre-arrangement partial information; detecting the plurality of images in the image at the time of sale of the product, and acquiring second arrangement information related to the detected plurality of images as the at-sale partial information; and correcting the image at the time of sale of the product based on the first arrangement information and the second arrangement information; The vending machine according to claim 12 , further comprising: determining whether or not the product is present in the column based on the pre-product arrangement image and the corrected product vending image.
14. The control unit is As the first arrangement information, position information and angle information based on the plurality of images detected in the product pre-arrangement image are obtained, and as the second arrangement information, position information and angle information based on the plurality of images detected in the product sales image are obtained, and the product sales image is corrected based on the first arrangement information and the second arrangement information. The vending machine according to claim 13, further comprising: a determination as to whether or not the product is present in the column based on the pre-product arrangement image and the corrected product vending image.
15. The vending machine according to claim 12 , wherein, when the vending portion information is not acquired in the product vending image, the control unit notifies a user that the photographing unit is abnormal.
16. A vending machine including a storage unit having a plurality of columns for storing products, and a display device capable of communicating with the vending machine, The vending machine includes: An imaging unit that images the storage facility; a control unit that determines a correspondence relationship between the column and the product or determines a posture of the product based on an image of the column captured by the image capturing unit, and notifies the display device that the determination result is negative at least when the determination result is negative; The display device displays the determination result notified by the control unit.
Citation Information
Patent Citations
Automatic vending machine
JP2020021367A
