Generation program, generation method, and information processing device
By acquiring and synthesizing three-dimensional object data from multiple images of an object, the method addresses the inefficiencies in generating training data for object recognition models, enhancing accuracy and reducing workload.
Patent Information
- Application Number
- JP2023019502
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-10
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Conventional methods face challenges in efficiently generating diverse and useful training data for machine learning models to accurately recognize objects in images, leading to increased workload and time for operators due to the need for extensive image capturing and annotation.
A method involving the acquisition of areas in multiple images of an object from different directions, generation of three-dimensional object data representing these areas, and synthesis with a predetermined image to create training data that identifies the object's presence, reducing the need for extensive image capturing and annotation.
This approach allows for efficient generation of diverse and useful training data, reducing operator workload and time, while improving the accuracy of object recognition models trained by machine learning.
Smart Images

Figure 2024114087000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a generating program, a generating method, and an information processing device. [Background technology]
[0002] Conventionally, there is a technique for training a model by machine learning, which outputs a result of recognizing an object shown in an input image based on training data in which an image is associated with a correct answer of the result of recognizing an object shown in the image. The model is, for example, a deep neural network. The model is, for example, a convolutional neural network.
[0003] An example of a prior art technique is a technique for obtaining 2D image information representing a 2D image by rendering a textured 3D model in which the image area in a captured image in which the object appears is texture-mapped onto a 3D model of the object. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] International Publication No. 2022 / 123636 Summary of the Invention [Problem to be solved by the invention]
[0005] However, in the conventional technology, it is difficult to prepare a variety of training data in order to train a model capable of accurately recognizing objects in input images by machine learning. For example, the more training data is prepared, the greater the workload and work time of the worker who takes the images forming the training data. For example, the more training data is prepared, the greater the workload and work time of the worker who performs the annotation work of associating the images forming the training data with the correct answer of the result of recognizing the object in the image.
[0006] In one aspect, the present invention aims to efficiently generate training data. [Means for solving the problem]
[0007] According to one embodiment, a generation program, a generation method, and an information processing device are proposed that generate training data capable of identifying the area in which an object is captured, which is used when training a model that recognizes the object captured in an input image by machine learning, by acquiring an area in each of a plurality of images in which the object is captured, applying the area to a texture for each of the acquired areas to generate three-dimensional object data representing one side of the object corresponding to the area, and synthesizing the three-dimensional object data with a specified image based on each of the generated three-dimensional object data. Effect of the Invention
[0008] According to one aspect, training data can be efficiently generated. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram illustrating an example of a generating method according to an embodiment. [Diagram 2] FIG. 2 is an explanatory diagram illustrating an example of an object recognition assistance system 200. As shown in FIG. [Diagram 3] FIG. 3 is a block diagram showing an example of a hardware configuration of the information processing device 100. As shown in FIG. [Figure 4] FIG. 4 is a block diagram showing an example of the hardware configuration of the administrator-side device 201. As shown in FIG. [Diagram 5] FIG. 5 is a block diagram showing an example of a functional configuration of the information processing device 100. As shown in FIG. [Figure 6] FIG. 6 is an explanatory diagram (part 1) showing an example of generating three-dimensional object data. [Figure 7]FIG. 7 is an explanatory diagram (part 2) showing an example of generating three-dimensional object data. [Figure 8] FIG. 8 is an explanatory diagram (part 3) showing an example of generating three-dimensional object data. [Figure 9] FIG. 9 is an explanatory diagram (part 1) showing an example of generating training data. [Figure 10] FIG. 10 is an explanatory diagram (part 2) showing an example of generating training data. [Figure 11] FIG. 11 is an explanatory diagram (part 3) showing an example of generating training data. [Figure 12] FIG. 12 is an explanatory diagram showing an example of training a model by machine learning. [Figure 13] FIG. 13 is an explanatory diagram (part 1) showing an example of the effect based on the annotation region. [Figure 14] FIG. 14 is an explanatory diagram (part 2) showing an example of the effect based on the annotation region. [Figure 15] FIG. 15 is a diagram (part 1) illustrating an example of the operation time. [Figure 16] FIG. 16 is a diagram (part 2) illustrating an example of the operation time. [Figure 17] FIG. 17 is an explanatory diagram showing an example of the accuracy of object recognition. [Figure 18] FIG. 18 is a flowchart illustrating an example of an overall processing procedure. [Figure 19] FIG. 19 is a flowchart illustrating an example of a generation process procedure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, embodiments of a generating program, a generating method, and an information processing device 100 according to the present invention will be described in detail with reference to the drawings.
[0011] (One Example of a Generation Method According to an Embodiment) 1 is an explanatory diagram showing an example of a generation method according to an embodiment. The information processing device 100 is a computer for generating training data used when training a model by machine learning. The information processing device 100 is, for example, a server or a PC (Personal Computer).
[0012] The model, for example, accepts an input of an image. The model, for example, has a function of outputting a result of recognizing an object shown in the input image. The model, for example, is a deep neural network. The model, for example, is a convolutional neural network. The training data, for example, is data in which an image is associated with a correct answer as a result of recognizing an object shown in the image. Specifically, the training data is data in which an image is associated with an area of the image in which an object is shown, and a correct answer as a result of recognizing the object. The model is trained by machine learning based on a plurality of training data, for example.
[0013] Here, in order to train a model capable of accurately recognizing an object in an input image by machine learning, it is desirable to prepare a variety of training data. For example, it is desirable to increase the number of training data to be prepared. For example, it is desirable to prepare training data including a plurality of images in which the same object is reflected in different ways. For example, it is desirable to prepare training data including a plurality of images in which different objects are reflected. For example, it is considered that the more the number of training data prepared, the more likely it is that a model trained by machine learning based on the prepared training data will recognize an object in an input image with higher accuracy.
[0014] However, it is conventionally difficult to prepare diverse training data.
[0015] For example, a worker may create training data by taking an image in which an object is captured, and performing annotation work to associate the correct answer of the result of recognizing the object with the area in which the object is captured in the captured image. In this case, for example, the more training data is prepared, the more images the worker must take, which increases the workload and work time of the worker. In this case, for example, the more training data is prepared, the more times the worker must perform annotation work, which increases the workload and work time of the worker.
[0016] In response to this, for example, a method 1 can be considered in which an operator creates a 3D model that represents the actual object, and creates an image in which the created 3D model is arranged, thereby creating training data. This method 1 creates training data that associates, for example, the created image, an area in the image in which the object appears, and the correct answer as a result of recognizing the object.
[0017] Even in this method 1, it may be difficult to prepare a variety of training data. For example, since an operator must use 3D modeling software to create a 3D model that represents the actual object, this increases the operator's workload and work time. For example, if an operator is not familiar with how to use 3D modeling software, it is difficult for the operator to create a 3D model that represents the actual object, and it is difficult to create training data.
[0018] In addition, in this method 1, it may be difficult to prepare useful training data. The useful training data is, for example, training data including a fictitious image in which a three-dimensional model is arranged, which is considered to be similar to an actual image obtained by photographing the actual object. For example, unless an operator creates a three-dimensional model that accurately represents the actual object, it is difficult to create a fictitious image in which a three-dimensional model is arranged, which is considered to be similar to an actual image obtained by photographing the actual object, and it is difficult to create useful training data.
[0019] Therefore, in this method 1, it is difficult to prepare diverse and useful training data to train a model that can accurately recognize objects in input images by machine learning. In this method 1, it is difficult to improve the accuracy with which a model trained by machine learning recognizes objects in input images based on the prepared training data.
[0020] On the other hand, method 2 can be considered in which an operator creates a 3D model representing the actual object by scanning the actual object with a 3D scanner, and creates an image in which the created 3D model is arranged, thereby creating training data. This method 2 creates training data that associates, for example, the created image, the area of the image in which the object appears, and the correct answer as a result of recognizing the object.
[0021] Even in this method 2, it may be difficult to prepare a variety of training data. For example, a 3D scanner tends not to be able to create a 3D model that accurately represents an object with a glossy surface or an object with a transparent part. For example, an operator must prepare a 3D scanner and software that creates a 3D model that represents the actual object based on the scan results using the 3D scanner. This leads to a problem of increased work costs for creating a 3D model that represents the actual object.
[0022] In addition, a third method may be considered in which an operator cuts out an area of an actual object from an image of the actual object, and creates training data including a plurality of images obtained by combining the cut-out areas. In this third method, for example, training data is created by associating the image, the area, and the correct answer of the recognition result of the object shown in the area for each of a plurality of images obtained by combining the cut-out areas.
[0023] In this method 3, it may be difficult to prepare useful training data. Useful training data is, for example, training data including images in which the target object to be recognized by the model is shown and other objects different from the target object are not shown. For example, if an object other than the target object to be recognized by the model is shown in the cut-out area, each of the multiple images synthesized from the cut-out area will also show the other object, making it impossible to create useful training data. In addition, for example, when an operator cuts out an area in which only the actual object of the object is shown from an image of the actual object so that other objects different from the target object to be recognized by the model are not shown in the cut-out area, this leads to an increase in the workload and work time of the operator.
[0024] In this embodiment, a method for efficiently generating training data will be described.
[0025] In Fig. 1, an information processing device 100 generates training data used when training a model by machine learning. The model accepts an input of an image 110. The model has a function of recognizing an object shown in the input image 110. The model outputs a result of recognizing the object shown in the input image 110. The training data is data that associates a sample image that can be input to the model, an area 120 in the sample image in which an object is shown, and a correct answer as a result of recognizing the object. The training data indicates the area 120 in which the object is shown in a distinguishable manner.
[0026] (1-1) For example, the information processing device 100 acquires, for each of a plurality of images 110 in which the object 101 is captured from different directions, a region 120 in which the object 101 is captured in the image 110. The object 101 is an object that can be recognized by a model trained by machine learning. For example, the plurality of images 110 are obtained by capturing the object 101 a plurality of times while changing the state of the object 101. The state is, for example, a position or an orientation.
[0027] Specifically, the information processing device 100 acquires a plurality of images 110 in which the object 101 is photographed from different directions. Specifically, for each of the acquired plurality of images 110, the information processing device 100 extracts an area 120 in which the object 101 is captured from the image 110, thereby acquiring the area 120.
[0028] (1-2) For example, the information processing device 100 applies the region 120 to a texture for each of the acquired regions 120 and generates three-dimensional object data 130 representing one side of the object 101 corresponding to the region 120. Specifically, the information processing device 100 generates three-dimensional object data 130 having no thickness for each of the acquired regions 120, by applying the region 120 to the texture representing one side of the object 101 corresponding to the region 120.
[0029] (1-3) The information processing device 100 generates training data, for example, by synthesizing a predetermined image 140 with the three-dimensional object data 130 based on each of the generated three-dimensional object data 130. The training data is capable of identifying an area 120 in which the object 101 is reflected. The training data is used when training a model by machine learning. The predetermined image 140 is a template of a sample image that can be input to the model. The predetermined image 140 is set in advance by a user, for example.
[0030] Specifically, the information processing device 100 synthesizes the three-dimensional object data 130 with the predetermined image 140 so that the texture to which the region 120 in which the target object 101 is reflected is applied remains on the predetermined image 140 for each of the three-dimensional object data 130. As a result, the information processing device 100 generates one or more new synthetic images 150 by synthesizing the three-dimensional object data 130 with the predetermined image 140. The new synthetic images 150 correspond to sample images that may be input to the model. More specifically, the information processing device 100 may generate a plurality of new synthetic images 150 by synthesizing the three-dimensional object data 130 with the predetermined image 140 at different positions for each of the three-dimensional object data 130.
[0031] Specifically, for each of the generated composite images 150, the information processing device 100 sets the region 120 of the composite image 150 into which the three-dimensional object data 130 is synthesized as the region 120 in the composite image 150 in which the object 101 is shown. Specifically, for each of the generated composite images 150, the information processing device 100 generates training data in which the composite image 150, the set region 120 in which the object 101 is shown in the composite image 150, and the correct answer as a result of recognizing the object 101 are associated with each other.
[0032] This allows the information processing device 100 to easily prepare a variety of training data. The information processing device 100 can reduce the workload and time required by an operator to prepare training data.
[0033] The information processing device 100 can generate a plurality of new composite images 150 by combining, for example, each captured image 110 with three-dimensional object data 130 generated based on the image 110, and can generate a plurality of training data. For example, even if the number of training data to be prepared increases, the information processing device 100 can prevent the number of captured images 110 from increasing, and can suppress an increase in the workload and working time imposed on an operator.
[0034] Specifically, the information processing device 100 can eliminate the need for an operator to capture images 110 in the number of training data to be prepared. Specifically, the information processing device 100 can enable an operator to capture images 110 in a number smaller than the number of training data to be prepared. The information processing device 100 can, for example, make it easier to increase the number of training data to be prepared.
[0035] The information processing device 100 can set, for example, the region 120 in the generated composite image 150 into which the three-dimensional object data 130 is composited as the region 120 in the composite image 150 in which the object 101 is shown. Therefore, the information processing device 100 can make it possible for the worker to avoid performing annotation work. The information processing device 100 can make it difficult for other objects different from the object 101 to be included in the region 120 in the set composite image 150 in which the object 101 is shown, and can make it easy to generate useful training data. The information processing device 100 can make it possible for the worker to avoid specifying the region 120 in the composite image 150 in which the object 101 is shown, and can suppress an increase in the workload and work time imposed on the worker.
[0036] The information processing device 100 can generate three-dimensional object data 130 based on, for example, an image 110 that is an actual image of an object 101. Specifically, the information processing device 100 can generate three-dimensional object data 130 even if the worker is not familiar with how to use three-dimensional modeling software, thereby reducing the workload and working time of the worker.
[0037] The information processing device 100 can apply, for example, a region 120 in which the object 101 is captured to a texture. The information processing device 100 can generate a fictitious composite image 150 by combining three-dimensional object data 130 that is considered to be similar to a sample image that is actually captured so as to capture the object 101 and that can be input to a model. The information processing device 100 can facilitate the generation of useful training data.
[0038] The information processing device 100 can generate training data without a three-dimensional scanner, for example, and can reduce the work cost required for generating the training data. The information processing device 100 can generate training data even if the target object 101 is, for example, an object having a glossy surface or an object having a transparent portion.
[0039] In this way, the information processing device 100 can easily prepare diverse and useful training data in order to train, by machine learning, a model capable of accurately recognizing an object shown in the input image 110. The information processing device 100 can easily train, by machine learning, a model capable of accurately recognizing an object shown in the input image 110.
[0040] Here, a case has been described in which the information processing device 100 extracts the area 120 in which the object 101 appears from each of the multiple images 110, thereby acquiring the area 120, but this is not limiting. For example, the information processing device 100 may acquire the area 120 in which the object 101 appears from each of the multiple images 110 by receiving it from another computer.
[0041] Here, the case where the information processing device 100 operates independently has been described, but the present invention is not limited to this. For example, the information processing device 100 may cooperate with another computer. For example, a plurality of computers may cooperate to realize the functions of the information processing device 100. Specifically, the functions of the information processing device 100 may be realized on a cloud.
[0042] (An example of an object recognition support system 200) Next, an example of an object recognition support system 200 to which the information processing device 100 shown in FIG. 1 is applied will be described with reference to FIG.
[0043] 2 is an explanatory diagram showing an example of an object recognition assistance system 200. In FIG. 2, the object recognition assistance system 200 includes an information processing device 100, an administrator-side device 201, and a user-side device 202.
[0044] In the object recognition assistance system 200, the information processing device 100 and the administrator side device 201 are connected via a wired or wireless network 210. The network 210 is, for example, a local area network (LAN), a wide area network (WAN), the Internet, etc. In the object recognition assistance system 200, the information processing device 100 and the user side device 202 are connected via the wired or wireless network 210.
[0045] 2, the information processing device 100 is a computer for providing an object recognition assistance service. The object recognition assistance service is a service that enables a user-side device 202 to use a model capable of accurately recognizing an object shown in an input image.
[0046] The information processing device 100 receives, for example, a predetermined image serving as a template for a sample image that can be input to a model from the administrator-side device 201. The predetermined image is, for example, an image that does not show an object. Specifically, the predetermined image is an image of a predetermined space that does not show an object. The object is an object that can be recognized by a model to be trained by machine learning.
[0047] The information processing device 100 receives, for example, a plurality of images of one or more objects, each of which is taken from a different direction, from the administrator-side device 201. For example, the information processing device 100 extracts an area in which the object appears from each of the received images, thereby acquiring the area.
[0048] For example, for each of the acquired regions, the information processing device 100 generates three-dimensional object data that represents one side of the object corresponding to the region, with the region applied as a texture. Specifically, for each of the acquired regions, the information processing device 100 generates three-dimensional object data that does not have thickness, with the region applied as a texture that represents one side of the object corresponding to the region.
[0049] For example, the information processing device 100 generates one or more new composite images by combining the three-dimensional object data with a predetermined image so that a texture applied to an area in which an object is reflected remains on the predetermined image for each three-dimensional object data. The new composite images correspond to sample images that can be input to the model.
[0050] For example, for each of the generated composite images, the information processing device 100 sets a region of the composite image into which the three-dimensional object data is synthesized as a region of the composite image in which the target object is shown. For example, for each of the generated composite images, the information processing device 100 generates training data in which the composite image, the region of the composite image in which the target object is shown, and the correct answer of the result of recognizing the target object are associated with each of the generated composite images.
[0051] The information processing device 100, for example, trains a model by machine learning based on the generated training data. The information processing device 100, for example, makes the model trained by machine learning available in the user side device 202. Specifically, the information processing device 100 receives an image to be input to the model from the user side device 202, and transmits to the user side device 202 a result of recognizing an object shown in the image, which is output by the model to which the image has been input. In this way, the information processing device 100 makes the model trained by machine learning available in the user side device 202. The information processing device 100 is, for example, a server or a PC.
[0052] The administrator-side device 201 is a computer used by a service administrator who operates or manages the object recognition assistance service. The administrator-side device 201 has, for example, a camera. The administrator-side device 201 generates a predetermined image by capturing a predetermined space in which no object is captured using the camera, and transmits the image to the information processing device 100.
[0053] For example, based on an operational input by the administrator, the administrator-side device 201 uses a camera to generate multiple images of one or more objects by photographing the objects from different directions. Specifically, the administrator uses the administrator-side device 201 to photograph the objects multiple times for each of the one or more objects placed in a specified space while changing the state of the object, such as the orientation or position. The administrator-side device 201 transmits the generated multiple images to the information processing device 100, for example. The administrator-side device 201 is, for example, a PC, a tablet terminal, or a smartphone.
[0054] The user-side device 202 is a computer used by a service user who uses the object recognition assistance service. The user-side device 202 accepts image input based on operation input from the service user. The user-side device 202 transmits the accepted image to the information processing device 100. The user-side device 202 receives the result of recognizing objects shown in the transmitted image from the information processing device 100. The user-side device 202 outputs the result of recognizing objects shown in the image so that the service user can refer to it. The user-side device 202 is, for example, a PC, a tablet terminal, or a smartphone.
[0055] Here, the case where the information processing device 100 trains the model by machine learning based on the training data has been described, but the present invention is not limited to this. For example, the information processing device 100 may transmit the training data to another computer having a function of training the model by machine learning. In this case, it is considered that the information processing device 100 receives the model from the other computer. There may also be a case where the information processing device 100 does not receive the model from the other computer, and the other computer makes the model available in the user side device 202.
[0056] Here, a case has been described in which the information processing device 100 receives an image to be input to a model from the user-side device 202, and transmits a result of recognizing an object shown in the image, which is output by the model to which the image has been input, to the user-side device 202, but this is not limiting. For example, there may be a case in which the information processing device 100 transmits a model trained by machine learning to the user-side device 202, thereby making the model trained by machine learning available in the user-side device 202.
[0057] Here, the case where the information processing device 100 is a device different from the administrator-side device 201 has been described, but is not limited to this. For example, the information processing device 100 may have a function as the administrator-side device 201 and may also operate as the administrator-side device 201. In this case, the object recognition assistance system 200 may not include the administrator-side device 201.
[0058] Here, the case where the information processing device 100 is a device different from the user-side device 202 has been described, but is not limited to this. For example, the information processing device 100 may have a function as the user-side device 202 and may also operate as the user-side device 202. In this case, the object recognition assistance system 200 may not include the user-side device 202.
[0059] (Application example of object recognition support system 200) The object recognition support system 200 can be applied to fields such as supporting the operations of a retail store, such as a supermarket, by recognizing products shown in an image taken of a customer's basket, into which the customer places the products they wish to purchase, using a camera attached to the basket.
[0060] In this case, the user device 202 may be, for example, a computer that captures an image of the inside of a customer basket using a customer camera attached to a customer basket provided in a store. The user device 202 may be, for example, a terminal device that is integrated with the customer camera attached to the customer basket.
[0061] On the other hand, for example, the manager side device 201 may be a computer that acquires images of the inside of a customer basket using a customer camera attached to the customer basket provided in the store. The manager side device 201 may be, for example, a terminal device that is integrated with the customer camera attached to the customer basket.
[0062] The manager-side device 201 generates a template predetermined image by, for example, taking an image of the inside of a customer's basket with no products present, at a predetermined angle of view relative to the inside of the customer's basket, using a customer's camera attached to the customer's basket under illumination light of a predetermined intensity in a store. The manager-side device 201 generates an image showing the products, by, for example, taking an image of the inside of a customer's basket with products placed in it, at a predetermined angle of view relative to the inside of the customer's basket, using a customer's camera attached to the customer's basket under illumination light of a predetermined intensity in a store. The manager-side device 201 transmits, for example, the generated image showing the products and the generated template predetermined image to the information processing device 100.
[0063] For example, the information processing device 100 generates three-dimensional object data representing one side of a product based on an image showing the product, synthesizes the data with a predetermined image to generate a composite image that can be input to a model, and generates training data including the generated composite image. For example, the information processing device 100 trains a model that recognizes the product shown in the input image by machine learning based on the generated training data.
[0064] The user side device 202, for example, uses a customer camera attached to the customer basket under lighting light of a specified intensity inside the store to generate an image of the inside of the customer basket with products placed in it, at a specified angle of view relative to the inside of the customer basket, and transmits the image to the information processing device 100.
[0065] The information processing device 100 receives, for example, an image of the inside of a customer basket into which products have been dropped. The information processing device 100 inputs, for example, the image of the inside of a customer basket into which products have been dropped, into a model trained by machine learning, and transmits the result of recognizing the products shown in the image to the user side device 202.
[0066] The user side device 202 receives from the information processing device 100 the results of recognizing the products shown in the image captured of the customer's basket into which the products have been placed. The user side device 202 generates a list of the products placed in the customer's basket based on the received results. This allows the user side device 202 to enable store clerks to manage the total purchase price, etc., without having to check the products placed in the customer's basket. Therefore, the object recognition support system 200 can reduce the workload on store clerks and support the operations of the store.
[0067] (Example of hardware configuration of information processing device 100) Next, an example of the hardware configuration of the information processing device 100 will be described with reference to FIG.
[0068] Fig. 3 is a block diagram showing an example of a hardware configuration of the information processing device 100. In Fig. 3, the information processing device 100 has a CPU (Central Processing Unit) 301, a memory 302, a network I / F (Interface) 303, a recording medium I / F 304, and a recording medium 305. In addition, each component is connected to each other via a bus 300.
[0069] Here, the CPU 301 is responsible for the overall control of the information processing device 100. The memory 302 has, for example, a read only memory (ROM), a random access memory (RAM), and a flash ROM. Specifically, for example, the flash ROM and the ROM store various programs, and the RAM is used as a work area for the CPU 301. The programs stored in the memory 302 are loaded into the CPU 301, causing the CPU 301 to execute the coded processes.
[0070] The network I / F 303 is connected to the network 210 through a communication line, and is connected to other computers via the network 210. The network I / F 303 manages an internal interface with the network 210, and controls input and output of data from other computers. The network I / F 303 is, for example, a modem or a LAN adapter.
[0071] The recording medium I / F 304 controls reading / writing data from / to the recording medium 305 under the control of the CPU 301. The recording medium I / F 304 is, for example, a disk drive, a solid state drive (SSD), a universal serial bus (USB) port, etc. The recording medium 305 is a non-volatile memory that stores data written under the control of the recording medium I / F 304. The recording medium 305 is, for example, a disk, a semiconductor memory, a USB memory, etc. The recording medium 305 may be detachable from the information processing device 100.
[0072] In addition to the above-mentioned components, the information processing device 100 may have, for example, a keyboard, a mouse, a display, a printer, a scanner, a microphone, a speaker, etc. Furthermore, the information processing device 100 may have a plurality of recording medium I / Fs 304 and recording media 305. Furthermore, the information processing device 100 may not have the recording medium I / Fs 304 and the recording media 305.
[0073] (Example of Hardware Configuration of Administrator Device 201) Next, an example of the hardware configuration of the administrator side device 201 will be described with reference to FIG.
[0074] Fig. 4 is a block diagram showing an example of the hardware configuration of the administrator-side device 201. In Fig. 4, the administrator-side device 201 has a CPU 401, a memory 402, a network I / F 403, a recording medium I / F 404, a recording medium 405, an input / output device 406, and a photographing device 407. In addition, each component is connected to each other via a bus 400.
[0075] Here, the CPU 401 is responsible for the overall control of the administrator side device 201. The memory 402 has, for example, a ROM, a RAM, and a flash ROM. Specifically, for example, the flash ROM and the ROM store various programs, and the RAM is used as a work area for the CPU 401. The programs stored in the memory 402 are loaded into the CPU 401, causing the CPU 401 to execute the coded processes.
[0076] The network I / F 403 is connected to the network 210 through a communication line, and is connected to other computers via the network 210. The network I / F 403 manages an internal interface with the network 210, and controls input and output of data from other computers. The network I / F 403 is, for example, a modem or a LAN adapter.
[0077] The recording medium I / F 404 controls reading / writing data from / to the recording medium 405 under the control of the CPU 401. The recording medium I / F 404 is, for example, a disk drive, an SSD, a USB port, etc. The recording medium 405 is a non-volatile memory that stores data written under the control of the recording medium I / F 404. The recording medium 405 is, for example, a disk, a semiconductor memory, a USB memory, etc. The recording medium 405 may be detachable from the administrator side device 201.
[0078] The input / output device 406 has a display that displays data such as a cursor, an icon, or a toolbox, as well as documents, images, and function information. The input / output device 406 is, for example, a touch panel. The input / output device 406 has a detection device that is provided on the display or on the periphery of the display and detects the user's touch position on the display. The detection device detects the touch position using, for example, a resistive film method, a capacitive method, an ultrasonic method, an optical method, or an electromagnetic induction method. The input / output device 406 inputs characters, numbers, various instructions, and the like according to the user's touch position.
[0079] The photographing device 407 has a plurality of image capturing elements, and generates an image by capturing a predetermined photographing range 409 in a predetermined photographing environment 408 using the plurality of image capturing elements. The predetermined photographing range 409 may be, for example, inside a basket for customers provided in a store. If an object is present in the predetermined photographing range 409, the photographing device 407 generates an image in which the object is captured. The photographing device 407 is, for example, a digital camera. The photographing device 407 may be, for example, movable.
[0080] The administrator-side device 201 may have, in addition to the above-mentioned components, for example, a keyboard, a mouse, a display, a printer, a scanner, a microphone, a speaker, etc. Also, the administrator-side device 201 may have a plurality of recording medium I / Fs 404 and recording media 405. Also, the administrator-side device 201 may not have the recording medium I / Fs 404 and recording media 405.
[0081] (Example of Hardware Configuration of User Device 202) A specific example of the hardware configuration of the user-side device 202 is similar to the example of the hardware configuration of the administrator-side device 201 shown in Fig. 4, and therefore a description thereof will be omitted. The imaging environment 408 in the administrator-side device 201 is preferably of the same type as the imaging environment 408 in the user-side device 202. The imaging range 409 in the administrator-side device 201 is preferably of the same type as the imaging range 409 in the user-side device 202, for example.
[0082] (Example of functional configuration of information processing device 100) Next, an example of a functional configuration of the information processing device 100 will be described with reference to FIG.
[0083] 5 is a block diagram showing an example of a functional configuration of the information processing device 100. The information processing device 100 includes a storage unit 500, an acquisition unit 501, an extraction unit 502, a generation unit 503, a synthesis unit 504, a learning unit 505, and an output unit 506.
[0084] The storage unit 500 is realized by, for example, a storage area such as the memory 302 or the recording medium 305 shown in Fig. 3. In the following, a case where the storage unit 500 is included in the information processing device 100 will be described, but this is not limiting. For example, the storage unit 500 may be included in a device different from the information processing device 100, and the stored contents of the storage unit 500 may be accessible from the information processing device 100.
[0085] The acquiring unit 501 to the output unit 506 function as an example of a control unit. Specifically, the acquiring unit 501 to the output unit 506 realize their functions by, for example, causing the CPU 301 to execute a program stored in a storage area such as the memory 302 or the recording medium 305 shown in Fig. 3, or by the network I / F 303. The processing results of each functional unit are stored in, for example, a storage area such as the memory 302 or the recording medium 305 shown in Fig. 3.
[0086] The storage unit 500 stores various information that is referred to or updated in the processing of each functional unit. The storage unit 500 stores, for example, a plurality of images of an object photographed from different directions. The object is, for example, an object to be recognized by a model trained by machine learning. The model has, for example, a function of recognizing an object reflected in an input image. The model is, for example, a deep neural network. The model is, for example, a convolutional neural network.
[0087] The multiple images include, for example, two or more images of an object photographed from different directions by placing an object in a predetermined space and photographing the predetermined space. The multiple images include, for example, two or more images of an object photographed from different directions by photographing a predetermined space while changing the position or orientation of the object placed in the predetermined space. The multiple images may include, for example, two or more images of each of the multiple objects photographed from different directions. The multiple images are acquired by, for example, the acquisition unit 501.
[0088] The storage unit 500 stores, for example, for each of a plurality of images, an area in the image in which an object is shown. The area is, for example, a rectangular area in the image that includes the part in which the object is shown. Specifically, the area may be an area after background removal processing is performed on the rectangular area in the image that includes the part in which the object is shown, in which the part other than the part in which the object is shown is replaced with a plain color. The area is acquired by, for example, the acquisition unit 501. The area may be acquired by, for example, the extraction unit 502.
[0089] The storage unit 500 stores a predetermined image. The predetermined image is, for example, an image of a predetermined space. The predetermined image is acquired by the acquisition unit 501, for example.
[0090] The storage unit 500 stores, for example, training data. The training data is data in which a sample image that can be input to the model, an area in the sample image in which an object is captured, and a correct answer as a result of recognizing the object captured in the sample image are associated with each other. The training data is generated, for example, by the synthesis unit 504.
[0091] The storage unit 500 stores, for example, a model. More specifically, the storage unit 500 stores parameters that form the model. The model is generated by, for example, a learning unit 505.
[0092] The acquisition unit 501 acquires various information used for processing by each functional unit. The acquisition unit 501 stores the acquired various information in the storage unit 500 or outputs it to each functional unit. The acquisition unit 501 may also output the various information stored in the storage unit 500 to each functional unit. The acquisition unit 501 acquires various information based on, for example, an operation input by a user. The acquisition unit 501 may receive various information from, for example, a device different from the information processing device 100.
[0093] The acquiring unit 501 acquires, for example, a plurality of images of an object photographed from different directions. Specifically, the acquiring unit 501 acquires the plurality of images by accepting input of the plurality of images based on an operation input by a user. Specifically, the acquiring unit 501 may acquire the plurality of images by receiving the plurality of images from another computer. The other computer is, for example, an operator-side device. Specifically, the acquiring unit 501 may acquire the plurality of images by generating the plurality of images via a camera included in the own device.
[0094] The acquiring unit 501 acquires, for example, an area in each of a plurality of images in which the object is photographed from different directions. Specifically, the acquiring unit 501 acquires the area by accepting an input of the area in each of the plurality of images in which the object is photographed, based on an operation input by a user. Specifically, the acquiring unit 501 may acquire the area by receiving the area in each of the plurality of images in which the object is photographed from another computer. The other computer is, for example, an operator-side device.
[0095] The acquiring unit 501 acquires, for example, a predetermined image. Specifically, the acquiring unit 501 acquires the predetermined image by accepting an input of the predetermined image based on an operation input by a user. Specifically, the acquiring unit 501 may acquire the predetermined image by receiving the predetermined image from another computer. The other computer is, for example, an operator-side device.
[0096] The acquisition unit 501 may receive a start trigger for starting processing of any of the functional units. The start trigger may be, for example, a predetermined operation input by a user. The start trigger may be, for example, reception of predetermined information from another computer. The start trigger may be, for example, output of predetermined information by any of the functional units.
[0097] For example, the acquisition unit 501 may receive the acquisition of a plurality of images as a start trigger for starting the processing of the extraction unit 502. The acquisition unit 501 may receive the acquisition of an area in which an object is shown for each of the plurality of images as a start trigger for starting the processing of the generation unit 503, the synthesis unit 504, and the learning unit 505.
[0098] Extraction unit 502 acquires an area in which an object is shown in each of the multiple images acquired by acquisition unit 501. Extraction unit 502 acquires an area in which an object is shown in each of the multiple images by extracting the area in which an object is shown in each of the multiple images. This enables extraction unit 502 to generate three-dimensional object data representing one side of the object.
[0099] The generating unit 503 generates three-dimensional object data representing one side of an object corresponding to each region acquired by the acquiring unit 501 or the extracting unit 502, with the region applied as a texture representing one side of the object corresponding to the region. For example, the generating unit 503 generates three-dimensional object data having no thickness, with the region applied as a texture representing one side of the object corresponding to the region, with the region acquired by the acquiring unit 501 or the extracting unit 502. In this way, the generating unit 503 can acquire three-dimensional object data that is a part for generating an image showing an object, which forms the training data, and can generate the training data.
[0100] The synthesis unit 504 synthesizes the three-dimensional object data generated by the generation unit 503 with a specified image acquired by the acquisition unit 501 based on each piece of three-dimensional object data, thereby generating training data that can distinguish the area in which the target object is reflected.
[0101] The synthesis unit 504 generates one or more new synthetic images by synthesizing the three-dimensional object data with a predetermined image so that a texture applied to an area where an object is reflected remains on the predetermined image, for example, for each three-dimensional object data. The synthetic images correspond to sample images that can be input to the model.
[0102] Specifically, the synthesis unit 504 may generate a plurality of new synthetic images by synthesizing each of the three-dimensional object data with a predetermined image at different positions, for each of the three-dimensional object data. This allows the synthesis unit 504 to obtain parts that form the training data.
[0103] The synthesis unit 504 may generate one or more new synthetic images by synthesizing a predetermined image with the three-dimensional object data based on the three-dimensional object data so as to satisfy each of a plurality of conditions. The condition indicates, for example, a range in which the three-dimensional object data is synthesized. The condition indicates, for example, a shooting environment. The shooting environment includes, for example, the direction of the illumination light or the intensity of the illumination light. The condition is, for example, set by a user in advance. This allows the synthesis unit 504 to generate a variety of synthetic images so as to generate a variety of training data.
[0104] The synthesis unit 504 may generate one or more new synthetic images by synthesizing a predetermined image with the three-dimensional object data based on each of the generated three-dimensional object data, for example, using a predetermined tool. The predetermined tool has a function of generating training data used when training a model by machine learning. This makes it easier for the synthesis unit 504 to generate a synthetic image.
[0105] For example, for each of the generated composite images, the synthesis unit 504 sets the area of the composite image into which the three-dimensional object data is synthesized as the area of the composite image in which the object is shown. For example, for each of the generated composite images, the synthesis unit 504 generates training data in which the composite image, the area of the set composite image in which the object is shown, and the correct answer of the result of recognizing the object are associated with each other. This allows the synthesis unit 504 to train the model by machine learning. The synthesis unit 504 can generate various training data, and can easily train a model capable of accurately recognizing an object shown in an input image by machine learning.
[0106] The learning unit 505 trains the model by machine learning based on the generated training data. This allows the learning unit 505 to make the model available. The learning unit 505 can train a model that can accurately recognize an object shown in an input image by machine learning based on various training data.
[0107] The output unit 506 outputs the processing result of at least one of the functional units. The output format is, for example, display on a display, printout on a printer, transmission to an external device via the network I / F 303, or storage in a storage area such as the memory 302 or the recording medium 305. In this way, the output unit 506 can notify the user of the processing result of at least one of the functional units, thereby improving the convenience of the information processing device 100.
[0108] The output unit 506 outputs, for example, the training data generated by the synthesis unit 504. Specifically, the output unit 506 displays the training data so that the user can refer to it. Specifically, the output unit 506 transmits the training data to another computer. The other computer is, for example, the administrator-side device 201 or the user-side device 202. In this way, the output unit 506 can make the model trainable by machine learning externally.
[0109] The output unit 506 outputs, for example, a model trained by the learning unit 505 through machine learning. Specifically, the output unit 506 displays the model so that the user can refer to it. Specifically, the output unit 506 transmits the model to another computer. The other computer is, for example, the administrator-side device 201 or the user-side device 202. In this way, the output unit 506 can make the model available externally.
[0110] Here, the case where the information processing device 100 includes the acquisition unit 501, the extraction unit 502, the generation unit 503, the synthesis unit 504, the learning unit 505, and the output unit 506 has been described, but is not limited to this. For example, the information processing device 100 may not include any of the functional units. Specifically, the information processing device 100 may not include the learning unit 505.
[0111] (Operation example of information processing device 100) Next, an operation example of the information processing device 100 will be described with reference to Fig. 6 to Fig. 16. Specifically, this operation example corresponds to a case where the information processing device 100 trains, by machine learning, a model that recognizes products present in a shopping basket that are captured in an input image of the inside of the shopping basket using a first camera. The first camera is, for example, a camera provided in the shopping basket.
[0112] First, an example in which the information processing device 100 generates three-dimensional object data 801 representing one side of an object will be described with reference to Figs. 6 to 8. The object is, for example, an object that can become a commodity. Specific examples of the object include bananas, green peppers, cabbages, cucumbers, eggplants, oranges, and potatoes.
[0113] 6 to 8 are explanatory diagrams showing an example of generating three-dimensional object data. In FIG. 6, the information processing device 100 acquires a site image 600. The site image 600 is, for example, an image obtained by placing an object in a shopping basket and then photographing the inside of the shopping basket using a second camera. The site image 600 is, for example, an image in which the object is shown. The site image 600 may be, for example, an image in which a body part of a person is shown in addition to the object. The body part is, for example, a hand.
[0114] The second camera is preferably of the same type as the first camera. The shooting environment in which the site image 600 is shot preferably has the same characteristics as the shooting environment in which the input image to be input to the model trained by machine learning is shot. The shooting environment is defined by, for example, the direction of the illumination light or the intensity of the illumination light.
[0115] The information processing device 100 uses image processing software 610 to recognize one or more objects captured in the on-site image 600. The one or more objects include, for example, a target object and a person's body part. For example, the information processing device 100 recognizes a banana, a person's left hand, and a person's right hand captured in the on-site image 600.
[0116] The information processing device 100 uses the image processing software 610 to generate, for each recognized object, a background-removed image in which all parts other than the recognized object are removed from the site image 600. For example, the information processing device 100 generates, for each recognized object, a background-removed image in which all parts other than the recognized object are removed from the site image 600 by making all parts other than the recognized object transparent in the site image 600.
[0117] The information processing device 100 specifically generates a background-removed image 621 by removing everything except the banana from the site image 600. The information processing device 100 specifically generates a background-removed image 622 by removing everything except the person's left hand from the site image 600. The information processing device 100 specifically generates a background-removed image 623 by removing everything except the person's right hand from the site image 600. Next, we move on to the description of FIG. 7.
[0118] 7, the information processing device 100 uses image editing software 700 to delete extra areas other than the rectangular area in which the object appears for each of the generated background-removed images, convert RGB(0,0,0) to RGB(3,3,3), and generate a corrected image. The image editing software 700 is, for example, GIMP (GNU Image Manipulation Program). For the sake of generating three-dimensional object data, the information processing device 100 converts RGB(0,0,0) to RGB(3,3,3) to prevent erroneous determination that the RGB(0,0,0) part is a part that does not form an object.
[0119] The information processing device 100 generates a corrected image 701 based on, for example, the background-removed image 621. The information processing device 100 generates a corrected image 702 based on, for example, the background-removed image 622. The information processing device 100 generates a corrected image 703 based on, for example, the background-removed image 623. Next, the description will proceed to FIG. 8.
[0120] 8, for each corrected image showing an object, the information processing device 100 generates three-dimensional object data having no thickness, which represents one side of the object shown in the corrected image, using three-dimensional modeling software 800. The three-dimensional modeling software 800 is, for example, 3D Builder.
[0121] For example, for each corrected image in which an object is reflected, the information processing device 100 generates three-dimensional object data having no thickness, which represents one side of the object reflected in the corrected image and applies the corrected image to a texture. At this time, the information processing device 100 may apply, for example, a part of the corrected image that matches the contour of the object, excluding the transparent part, to the texture of the three-dimensional object data.
[0122] Specifically, based on a corrected image 701 showing a banana, the information processing device 100 generates three-dimensional object data 801 by applying the corrected image 701 as a texture, the three-dimensional object data 801 representing one side of the banana shown in the corrected image 701 when observed from one direction.
[0123] The information processing device 100 may specifically generate a plurality of pieces of three-dimensional object data having no thickness, each of which represents a different side of a banana, as in Figures 6 to 8. The information processing device 100 may specifically generate a plurality of pieces of three-dimensional object data having no thickness, each of which represents a different side of an object other than a banana, as in Figures 6 to 8.
[0124] Next, an example in which the information processing device 100 generates training data will be described with reference to FIGS.
[0125] 9 to 11 are explanatory diagrams showing an example of generating training data. In Fig. 9, it is assumed that the information processing device 100 has already generated a plurality of pieces of three-dimensional object data 900 showing one side of an eggplant and having no thickness. It is assumed that the information processing device 100 has already generated, for example, three-dimensional object data 901 to 915.
[0126] The information processing device 100 has a template image 920 that is a template of a composite image that is a sample of an input image to be input to a model trained by machine learning. The template image 920 is, for example, an image of the inside of a shopping basket captured by a second camera without placing an object in the shopping basket. The shooting environment in which the template image 920 is captured preferably has the same properties as the shooting environment in which an input image to be input to a model trained by machine learning is captured. The shooting environment is defined by, for example, the direction of the illumination light or the intensity of the illumination light. Next, we move on to the description of FIG. 10.
[0127] 10, the information processing device 100 generates one or more composite images 1000 that are samples of input images to be input to a model trained by machine learning, by synthesizing at least any three-dimensional object data 900 with a template image 920. The information processing device 100 synthesizes at least any three-dimensional object data 900 with the template image 920 using, for example, image synthesis software. The image synthesis software is, for example, Unity Perception.
[0128] Specifically, the information processing device 100 sets the three-dimensional object data 900 in a scenario of Unity Perception. The scenario specifies how to generate the synthetic image 1000 using the three-dimensional object data 900.
[0129] The scenario includes a parameter indicating how many synthetic images 1000 to generate. The scenario includes a parameter indicating the arrangement conditions of the three-dimensional object data 900. The arrangement conditions are, for example, the range in which the three-dimensional object data 900 is arranged, or the minimum interval between different three-dimensional object data 900.
[0130] The information processing device 100 specifically executes a scenario of Unity Perception to generate one or more composite images 1000. In the example of Fig. 10, the information processing device 100 specifically executes a scenario of Unity Perception to generate composite images 1001 to 1020. Next, the description of Fig. 11 will be made.
[0131] 11, the information processing device 100 sets, for each composite image 1000, a region in which the three-dimensional object data 900 is composited as an annotation region 1100 in which an eggplant, which is a target object, is reflected. For example, the information processing device 100 sets annotation regions 1101-1120 for each composite image 1001-1020.
[0132] The information processing device 100 generates training data in which a composite image 1000, an annotation region 1100 corresponding to the composite image 1000, and a correct answer "eggplant" that is a result of recognizing an object shown in the annotation region 1100 are associated with each other. The information processing device 100 may similarly generate training data related to an object other than eggplant.
[0133] This allows the information processing device 100 to generate training data used when training a model by machine learning, and makes it easier to prepare a variety of training data. Therefore, the information processing device 100 can reduce the workload and work time imposed on an operator when preparing training data.
[0134] Next, an example in which the information processing device 100 trains a model by machine learning will be described with reference to FIG.
[0135] FIG. 12 is an explanatory diagram showing an example of training a model by machine learning. In FIG. 12, the information processing device 100 trains a model by machine learning based on the generated training data. For example, the information processing device 100 trains a convolutional neural network 1200 by machine learning based on the generated training data. The convolutional neural network 1200 has eight layers. This allows the information processing device 100 to train a model by machine learning that can accurately recognize an object shown in an input image based on the training data.
[0136] The information processing device 100 can apply, for example, an on-site image 600 obtained by photographing an object with the same type of camera as that for photographing an input image, in a photographing environment having the same characteristics as that for photographing an input image, to the texture of the three-dimensional object data 801. Therefore, the information processing device 100 can reproduce, for example, the way the object appears in the input image, in the way the object appears in the composite image 1000.
[0137] Furthermore, the information processing device 100 can set, for example, a region of the composite image 1000 into which the three-dimensional object data 900 is composited as the annotation region 1100 in which the target object is reflected. Therefore, the information processing device 100 can, for example, match the annotation region 1100 to the contour of the target object. For example, the information processing device 100 can make it difficult for an object other than the target object to be included in the annotation region 1100.
[0138] In this way, the information processing device 100 can generate a composite image 1000 having an annotation region 1100 that matches the contour of an object, for example, by combining three-dimensional object data 801 with an on-site image 600 applied to the texture. Therefore, the information processing device 100 can generate a composite image 1000 that is appropriate as a sample of an input image that is actually input to a model, for example, and can generate useful training data based on the composite image 1000. Furthermore, the information processing device 100 can, for example, eliminate the need for an operator to perform annotation work.
[0139] The information processing device 100 can train a model such as a convolutional neural network by machine learning, for example, based on useful training data. Specifically, when training a convolutional neural network by machine learning, the information processing device 100 can train, by machine learning, how an object appears in a composite image 1000 that reproduces how an object appears in an input image in the third layer of the convolutional neural network. More specifically, the information processing device 100 can extract external features of an object in the real world in the third layer of the convolutional neural network and train by machine learning. Therefore, the information processing device 100 can improve the accuracy of recognizing an object appearing in an input image, for example, in a model trained by machine learning.
[0140] Here, a method is considered in which a model is trained by machine learning based on a synthetic image that is created by scanning the actual object using a 3D scanner and synthesizing 3D object data representing the actual object. In this method, 3D object data is created with a different type of camera from the camera that captures the input image, and in a shooting environment having different characteristics from the shooting environment in which the input image is captured. For this reason, it is considered difficult to train a model that accurately recognizes an object shown in an input image using machine learning with this method.
[0141] In contrast, as described above, the information processing device 100 can easily train a model that accurately recognizes an object reflected in an input image by machine learning. The information processing device 100 can generate training data, for example, without a three-dimensional scanner, and can reduce the work cost required for generating the training data. The information processing device 100 can generate training data, for example, even if the target object 101 is an object having a glossy surface or an object having a transparent portion.
[0142] The information processing device 100 can generate a plurality of composite images 1000 by, for example, synthesizing three-dimensional object data 801 generated based on each captured site image 600. Therefore, even if the number of training data to be prepared increases, the information processing device 100 can make it difficult to increase the number of captured site images 600, thereby reducing the workload and work time imposed on the worker. The information processing device 100 can make it easy to increase the number of training data to be prepared, for example.
[0143] For example, the information processing device 100 can generate a plurality of composite images 1000 reflecting how an object appears from different directions based on three-dimensional object data 801 generated based on on-site images 600 in which the object is photographed from different directions. Therefore, the information processing device 100 can generate useful training data based on each of the plurality of composite images 1000 reflecting how the object appears from different directions.
[0144] The information processing device 100 can train a model such as a convolutional neural network by machine learning, for example, based on useful training data. Specifically, when training a convolutional neural network by machine learning, the information processing device 100 can train, by machine learning, how an object appears from different directions, reflected in each of the multiple composite images 1000, in the first layer of the convolutional neural network. More specifically, the information processing device 100 can train, by machine learning, shape features of an object from different directions in the real world in the first layer of the convolutional neural network. Therefore, the information processing device 100 can improve the accuracy of recognizing an object shown in an input image, for example, in a model trained by machine learning.
[0145] Next, an example of an effect achieved by the information processing device 100 will be described with reference to Figs. 13 to 17. First, specifically, an example of an effect based on an annotation region obtained by applying an on-site image 600 to a texture will be described with reference to Figs. 13 and 14.
[0146] 13 and 14 are explanatory diagrams showing an example of the effect based on the annotation region. In Fig. 13, a composite image 1301 in which the corrected image 701 is directly composited with the template image 920 is compared with a composite image 1311 in which the three-dimensional object data 801 is composited with the template image 920. In this case, the composite image 1301 and the composite image 1311 may appear to be the same. On the other hand, the annotation region in the composite image 1301 and the annotation region in the composite image 1311 tend to be different.
[0147] 13, a rectangular area into which the corrected image 701 is synthesized tends to be set as an annotation area. Therefore, the annotation area in the synthesized image 1301 tends to include an area showing an object as well as an area showing something other than the object.
[0148] On the other hand, specifically, in the composite image 1311 of Fig. 13, a region along the contour of the object, into which the three-dimensional object data 801 is composited, tends to be set as the annotation region. Therefore, the annotation region in the composite image 1311 is unlikely to include a portion showing anything other than the object. Next, we move on to the explanation of Fig. 14.
[0149] 14, a conventional model is compared with a model trained by the information processing device 100 through machine learning. The conventional model is a model trained through machine learning based on, for example, a composite image 1301 in which the corrected image 701 is directly composited with the template image 920. The model trained by the information processing device 100 through machine learning is a model trained through machine learning based on, for example, a composite image 1311 in which the three-dimensional object data 801 is composited with the template image 920.
[0150] In the conventional model, as shown in the heat map 1400, parts of the input image 1401 other than the part in which the object is reflected are detected as parts in which the object is reflected. Therefore, in the conventional model, the object is recognized based on parts other than the part in which the object is reflected, and therefore the object may be recognized erroneously. For example, in the conventional model, a banana reflected in the input image 1401 may be mistakenly recognized as an eggplant.
[0151] In contrast, in a model trained by the information processing device 100 through machine learning, as shown in the heat map 1410, it becomes difficult to detect a portion of the input image 1411 other than the portion in which the object is reflected as a portion in which the object is reflected. Therefore, in a model trained by the information processing device 100 through machine learning, there is a tendency not to refer to a portion other than the portion in which the object is reflected when recognizing the object, and it becomes easier to correctly recognize the object. In a model trained by the information processing device 100 through machine learning, for example, it becomes easier to correctly recognize a banana reflected in the input image 1411 as a banana.
[0152] In this way, the information processing device 100 can align the annotation region with the contour of the target object, and can make it difficult for other objects different from the target object to be included in the annotation region. Therefore, the information processing device 100 can improve the accuracy of recognizing objects reflected in an input image in a model trained by machine learning.
[0153] Next, specifically, an example of the operation time will be described with reference to FIG. 15 and FIG.
[0154] Fig. 15 and Fig. 16 are explanatory diagrams showing an example of the operation time. Table 1500 in Fig. 15 shows the operation time required for a conventional method in which a worker takes a plurality of images showing an object and performs an annotation operation for each of the taken images to prepare training data.
[0155] In the conventional method, for example, an operator prepares 10,000 training data by taking 10,000 images of each of 10 classes of objects. Specifically, the operator takes images of the object while changing the position of the object, while changing the shooting angle of the object, and while changing the shooting environment such as the direction of the illumination light or the intensity of the illumination light.
[0156] Here, it is assumed that the time required for a worker to capture one image is 5 seconds, and the time required for the worker to perform annotation work on one captured image is 3 minutes.
[0157] As shown in table 1500, in the conventional method, the time required for a worker to take 10,000 images is 50,000 seconds ≒ 13.9 hours. As shown in table 1500, in the conventional method, the time required for a worker to perform annotation work on each of the 10,000 images is 500 hours ≒ 20.8 days. Therefore, in the conventional method, the work time required for a worker to prepare training data is 21.4 days. Next, we move on to the explanation of FIG. 16.
[0158] Table 1600 in Fig. 16 shows the operation time required for the information processing device 100 to prepare 10,000 pieces of training data. Here, for example, it is assumed that an operator takes 20 images of 10 classes of objects, thereby taking 200 images. Specifically, the operator takes images of the objects while changing the position of the objects, while changing the shooting angle of the objects, and while changing the shooting environment such as the direction of the illumination light or the intensity of the illumination light.
[0159] Here, it is assumed that the time required for an operator to capture one image is 5 seconds, the time required for the information processing device 100 to generate one piece of three-dimensional object data from one image is 5 minutes, and the time required for the information processing device 100 to import the three-dimensional object data into the image synthesis software is 1 minute.
[0160] As shown in table 1600, the time required for an operator to take 200 images is 1,000 seconds ≈ 16.7 minutes. As shown in table 1600, the time required for the information processing device 100 to generate three-dimensional object data is 1,000 minutes ≈ 16.7 hours. As shown in table 1600, the time required for importing three-dimensional object data into a Unity Perception scenario is 200 minutes ≈ 3.3 hours. The scenario specifies that 10,000 composite images are to be generated. As shown in table 1600, the time required for generating 10,000 training data each including a composite image by executing the scenario is 10 minutes.
[0161] Therefore, the work time required for the information processing device 100 to prepare the training data is 20.4 hours. In this way, the information processing device 100 can prepare 10,000 pieces of training data at high speed compared to the conventional method, and can reduce the work burden and work time imposed on the worker. Specifically, the information processing device 100 can reduce the work time required for preparing the training data by 493.5 hours ≒ 20.5 days compared to the conventional method.
[0162] Next, an example of the accuracy with which the information processing device 100 recognizes an object shown in an input image will be described with reference to FIG.
[0163] Fig. 17 is an explanatory diagram showing an example of the accuracy of object recognition. Table 1700 in Fig. 17 shows the recognition rate for each of seven classes of products when multiple evaluation images showing the products are input as input images to a conventional model.
[0164] For example, as shown in table 1700, in the conventional model, the recognition rate for green peppers is 50%, which is the ratio of 5 evaluation images that correctly recognize green peppers out of 10 evaluation images that show green peppers. Also, as shown in table 1700, for example, in the conventional model, the recognition rate for all 7 classes of products is 82%.
[0165] On the other hand, table 1710 in FIG. 17 shows the recognition rate for a product when multiple evaluation images showing the product are input as input images for each of seven classes of products into a model trained by the information processing device 100 through machine learning.
[0166] For example, as shown in table 1710, in a model trained by the information processing device 100 through machine learning, the recognition rate for green peppers is the ratio of 10 evaluation images in which green peppers are correctly recognized to 10 evaluation images in which green peppers are shown, which is 100%. Also, for example, as shown in table 1710, in a model trained by the information processing device 100 through machine learning, the recognition rate for all of the seven classes of products is 97%. In this way, the information processing device 100 can train a model through machine learning that can accurately recognize an object shown in an input image that has been input.
[0167] (Overall processing procedure) Next, an example of an overall processing procedure executed by the information processing device 100 will be described with reference to Fig. 18. The overall processing is realized by, for example, the CPU 301, storage areas such as the memory 302 and the recording medium 305, and the network I / F 303 shown in Fig. 3.
[0168] Fig. 18 is a flowchart showing an example of an overall processing procedure. In Fig. 18, the information processing device 100 generates a 3D object representing one side of a target object by executing a generation process described later in Fig. 19 for each of a plurality of site images (step S1801).
[0169] Next, the information processing device 100 imports the three-dimensional object into Unity Perception together with the site image that is the source of the three-dimensional object (step S1802). Then, the information processing device 100 generates materials for the three-dimensional object using Unity Perception (step S1803).
[0170] Next, the information processing device 100 registers the three-dimensional object in a scenario of Unity Perception (step S1804). Then, the information processing device 100 executes the scenario of Unity Perception to generate a plurality of composite images (step S1805).
[0171] (Generation process procedure) Next, an example of a generation process procedure executed by the information processing device 100 will be described with reference to Fig. 19. The generation process is realized by, for example, the CPU 301, storage areas such as the memory 302 and the recording medium 305, and the network I / F 303 shown in Fig. 3.
[0172] Fig. 19 is a flowchart showing an example of a generation process procedure. In Fig. 19, the information processing device 100 acquires a site image showing an object (step S1901). Next, the information processing device 100 performs background deletion processing to make transparent a portion of the site image showing things other than the object (step S1902).
[0173] Then, the information processing device 100 performs an excess area removal process to remove excess areas other than the rectangular area in which the object is captured from the site image after the background removal process (step S1903).Then, the information processing device 100 performs objectification based on the site image after the excess area removal process to generate a 3D object representing one side of the object (step S1904).Then, the information processing device 100 ends the generation process.
[0174] As described above, the information processing device 100 can acquire an area in each of a plurality of images in which an object is photographed from different directions. The information processing device 100 can generate three-dimensional object data for each acquired area, which represents one side of the object corresponding to the area and in which the area is applied to a texture. The information processing device 100 can generate training data capable of identifying an area in which an object is photographed by synthesizing the three-dimensional object data with a predetermined image based on each generated three-dimensional object data. This allows the information processing device 100 to generate a variety of training data.
[0175] According to the information processing device 100, an image of a predetermined space can be adopted as the predetermined image. According to the information processing device 100, by taking an image of a predetermined space in which an object is arranged, two or more images of the object taken from different directions can be adopted as a plurality of images. This allows the information processing device 100 to generate training data that is useful when training a model by machine learning that can accurately recognize an object shown in an image taken of the predetermined space.
[0176] According to the information processing device 100, by photographing a predetermined space while changing the position or orientation of an object arranged in the predetermined space, two or more images of the object photographed from different directions can be used. According to the information processing device 100, for each of the multiple images, a region in which the object is shown can be extracted from the image, thereby acquiring the region. In this way, the information processing device 100 can acquire, by its own device, a region in which the object is shown from the image, for each of the multiple images. The information processing device 100 can be made to operate easily on its own.
[0177] According to the information processing device 100, for each of a plurality of conditions, training data can be generated by synthesizing the generated three-dimensional object data with a predetermined image so as to satisfy the corresponding condition, based on the generated three-dimensional object data. This makes it easier for the information processing device 100 to generate a variety of training data.
[0178] According to the information processing device 100, a tool having a function of generating training data used when training a model by machine learning is used to synthesize the three-dimensional object data with a predetermined image based on each of the generated three-dimensional object data. This allows the information processing device 100 to easily synthesize the three-dimensional object data with a predetermined image.
[0179] According to the information processing device 100, it is possible to train a model by machine learning based on the generated training data. As a result, the information processing device 100 can train a model capable of accurately recognizing an object shown in an input image by machine learning and make the model available.
[0180] The generating method described in this embodiment can be realized by executing a prepared program on a computer such as a PC or a workstation. The generating program described in this embodiment is recorded on a computer-readable recording medium, and is executed by being read from the recording medium by the computer. The recording medium may be a hard disk, a flexible disk, a CD (Compact Disc)-ROM, an MO (Magneto Optical disc), a DVD (Digital Versatile Disc), or the like. The generating program described in this embodiment may also be distributed via a network such as the Internet.
[0181] The following supplementary notes are further disclosed regarding the above-described embodiment.
[0182] (Appendix 1) For each of a plurality of images of an object taken from different directions, an area in which the object is captured is obtained from the image; generating, for each of the acquired regions, three-dimensional object data representing a surface of the object corresponding to the region by applying the region to a texture; Based on each of the generated three-dimensional object data, the three-dimensional object data is synthesized with a predetermined image to generate training data capable of distinguishing an area in which the object is shown, the training data being used when training a model that recognizes the object shown in an input image by machine learning. A generating program that causes a computer to execute a process.
[0183] (Note 2) The predetermined image is an image taken of a predetermined space, The generation program described in Appendix 1, characterized in that the multiple images are two or more images of the object taken from different directions by photographing the specified space in which the object is placed.
[0184] (Note 3) The plurality of images are two or more images of the object arranged in the predetermined space, each of which is photographed from a different direction by photographing the predetermined space while changing the position or orientation of the object, The acquiring process includes: The generation program according to claim 2, further comprising: acquiring the plurality of images; and extracting an area in which the object is captured from each of the plurality of acquired images, thereby acquiring the area.
[0185] (Additional Note 4) The process of generating the training data includes: The generation program described in Appendix 3, characterized in that for each of a plurality of conditions, the training data capable of distinguishing the area in which the target object is reflected is generated by synthesizing the generated three-dimensional object data with the specified image so as to satisfy the corresponding condition based on the generated three-dimensional object data.
[0186] (Appendix 5) A generation program as described in any one of Appendices 1 to 4, characterized in that a tool having a function of generating training data used when training the model by machine learning is used to generate training data capable of distinguishing an area in which the target object is reflected, by synthesizing the three-dimensional object data with a predetermined image based on each of the generated three-dimensional object data, and the training data used when training the model by machine learning is generated.
[0187] (Appendix 6) The model is trained by machine learning based on the generated training data. 5. The generating program according to any one of claims 1 to 4, which causes the computer to execute a process.
[0188] (Appendix 7) For each of a plurality of images of an object taken from different directions, an area in which the object is captured is obtained from the image; generating, for each of the acquired regions, three-dimensional object data representing a surface of the object corresponding to the region by applying the region to a texture; Based on each of the generated three-dimensional object data, the three-dimensional object data is synthesized with a predetermined image to generate training data capable of distinguishing an area in which the object is shown, the training data being used when training a model that recognizes the object shown in an input image by machine learning. A generating method characterized in that the processing is executed by a computer.
[0189] (Appendix 8) For each of a plurality of images of an object taken from different directions, an area in which the object is captured is obtained from the image; generating, for each of the acquired regions, three-dimensional object data representing a surface of the object corresponding to the region by applying the region to a texture; Based on each of the generated three-dimensional object data, the three-dimensional object data is synthesized with a predetermined image to generate training data capable of distinguishing an area in which the object is shown, the training data being used when training a model that recognizes the object shown in an input image by machine learning. An information processing device comprising a control unit. [Explanation of symbols]
[0190] 100 Information processing device 101 Object 110 images 120 areas 130,801,900~915 3D object data 140 Predefined images 150,1000~1020,1301,1311 Composite image 200 Object Recognition Assistance System 201 Administrator side device 202 User side device 210 Network 300,400 Bus 301,401 CPU 302,402 Memory 303,403 Network I / F 304,404 Recording media I / F 305,405 Recording media 406 I / O Devices 407 Imaging Equipment 408 Shooting Environment 409 Shooting range 500 storage section 501 Acquisition Department 502 Extraction part 503 Generation part 504 Synthesis section 505 Learning Department 506 Output section 600 site images 610 Image Processing Software 621~623 Background removal images 700 Image Editing Software 701~703 Corrected images 800 3D Modeling Software 920 Template Image 1100~1120 Annotation area 1200 Neural Networks 1400,1410 Heatmap 1401,1411 Input image 1500,1600,1700,1710 table
Claims
1. For each of a plurality of images of an object captured from different directions, an area in which the object is captured is obtained from the image; generating, for each of the acquired regions, three-dimensional object data representing a surface of the object corresponding to the region by applying the region to a texture; Based on each of the generated three-dimensional object data, the three-dimensional object data is synthesized with a predetermined image to generate training data capable of distinguishing an area in which the object is shown, the training data being used when training a model that recognizes the object shown in an input image by machine learning. A generating program that causes a computer to execute a process.
2. The predetermined image is an image captured of a predetermined space, The generation program according to claim 1, characterized in that the multiple images are two or more images of the object taken from different directions by photographing the specified space in which the object is placed.
3. The plurality of images are two or more images of the object arranged in the predetermined space, the images being captured from different directions by capturing the object in the predetermined space while changing a position or a direction of the object, The acquiring process includes: The generation program according to claim 2 , further comprising: acquiring the plurality of images; and extracting an area in which the object appears from each of the plurality of acquired images, thereby acquiring the area.
4. The process of generating the training data includes: The generation program according to claim 3, characterized in that, for each of a plurality of conditions, the training data capable of distinguishing the area in which the object is reflected is generated by synthesizing the generated three-dimensional object data with the specified image so as to satisfy the condition based on the generated three-dimensional object data.
5. The generation program according to any one of claims 1 to 4, characterized in that a tool having a function of generating training data used when training the model by machine learning is used to synthesize the three-dimensional object data with a predetermined image based on each of the generated three-dimensional object data, thereby generating training data capable of distinguishing an area in which the object is reflected, which is used when training the model by machine learning.
6. For each of a plurality of images of an object captured from different directions, an area in which the object is captured is obtained from the image; generating, for each of the acquired regions, three-dimensional object data representing a surface of the object corresponding to the region by applying the region to a texture; Based on each of the generated three-dimensional object data, the three-dimensional object data is synthesized with a predetermined image to generate training data capable of distinguishing an area in which the object is shown, the training data being used when training a model that recognizes the object shown in an input image by machine learning. A generating method characterized in that the processing is executed by a computer.
7. For each of a plurality of images of an object captured from different directions, an area in which the object is captured is obtained from the image; generating, for each of the acquired regions, three-dimensional object data representing a surface of the object corresponding to the region by applying the region to a texture; Based on each of the generated three-dimensional object data, the three-dimensional object data is synthesized with a predetermined image to generate training data capable of distinguishing an area in which the object is shown, the training data being used when training a model that recognizes the object shown in an input image by machine learning. An information processing device comprising a control unit.
Citation Information
Patent Citations
Learning data generation device and learning data generation method
WO2022123636A1
