Information processing method, computer program and information processor
The method uses trained models for detecting top and side surfaces of stacked objects to efficiently calculate the approximate number of objects in images, addressing the inefficiencies of existing detection methods for electrical equipment.
Patent Information
- Application Number
- JP2023048400
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-10-04
Smart Images

Figure 2024137046000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing method, a computer program, and an information processing device. [Background technology]
[0002] A method for detecting information about electrical equipment such as power distribution equipment has been proposed (for example, Patent Document 1). Patent Document 1 discloses a method for acquiring information about the condition of the pole-mounted equipment by capturing images of a utility pole with one infrared camera and multiple visible light cameras, extracting an image area of an arm from the image captured by the visible light camera, and calculating a temperature gradient of the pole-mounted equipment from the image area of the arm in a thermal image captured by the infrared camera. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2002-366953 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, the detection method of Patent Document 1 does not take into consideration the detection of information regarding the number of a plurality of stacked objects to be determined.
[0005] The present invention has been made in consideration of the above circumstances, and provides an information processing method and the like that can efficiently derive an approximate number, etc., of a plurality of stacked objects to be determined. [Means for solving the problem]
[0006] In one aspect, the information processing method causes a computer to execute a process of acquiring an image including multiple stacked objects to be determined, inputting the acquired image into a first trained model that detects the top surfaces of the objects to be determined contained in the image when the image is input, outputting a detection result of the top surfaces of the objects to be determined, calculating the number of top surfaces based on the top surface detection result output by the first trained model, inputting the acquired image into a second trained model that detects the side surfaces of the objects to be determined contained in the image when the image is input, outputting a detection result of the side surfaces of the objects to be determined, deriving the number of side surfaces based on the side surface detection result output by the second trained model, and calculating the number of objects to be determined contained in the image based on the calculated number of top surfaces and number of side surface stages.
[0007] In one aspect, the computer program causes a computer to execute a process of acquiring an image including multiple stacked objects to be determined, inputting the acquired image into a first trained model that detects the top surfaces of the objects to be determined contained in the image when the image is input, outputting a detection result of the top surfaces of the objects to be determined, calculating the number of top surfaces based on the top surface detection result output by the first trained model, inputting the acquired image into a second trained model that detects the side surfaces of the objects to be determined contained in the image when the image is input, outputting a detection result of the side surfaces of the objects to be determined, deriving the number of side surface stages based on the side surface detection result output by the second trained model, and calculating the number of objects to be determined contained in the image based on the calculated number of top surfaces and number of side surface stages.
[0008] In one aspect, an information processing device includes an acquisition unit that acquires an image including multiple stacked objects to be determined, a top surface output unit that inputs the acquired image into a first trained model that detects the top surface of the object to be determined contained in the image when the image is input, and outputs a detection result of the top surface of the object to be determined, a calculation unit that calculates the number of top surfaces based on the top surface detection result output by the first trained model, a side surface output unit that inputs the acquired image into a second trained model that detects the side surfaces of the object to be determined contained in the image when the image is input, and outputs a detection result of the side surfaces of the object to be determined, a derivation unit that derives the number of side surface stages based on the side surface detection result output by the second trained model, and a number calculation unit that calculates the number of objects to be determined contained in the image based on the calculated number of top surfaces and the number of side surface stages. Effect of the Invention
[0009] It is possible to provide an information processing method etc. that efficiently derives an approximate number etc. of a plurality of stacked objects to be determined. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a schematic diagram for explaining an overview of a number calculation system according to a first embodiment. [Diagram 2] FIG. 2 is a block diagram showing a configuration of an information processing device (server device). [Diagram 3] FIG. 1 is an explanatory diagram regarding the generation process of a first learned model (top surface model). [Figure 4] FIG. 11 is an explanatory diagram regarding the generation process of a second trained model (aspect model). [Diagram 5] FIG. 11 is an explanatory diagram regarding the generation process of a third trained model (object group model). [Figure 6] 2 is a functional block diagram illustrating functional units included in a control unit of the information processing device. FIG. [Figure 7] 10 is a flowchart illustrating a processing procedure performed by a control unit of an information processing device. [Figure 8] 13 is an explanatory diagram illustrating an example of a display screen showing information regarding the number of objects to be determined; FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] (Embodiment 1) Hereinafter, the present invention will be described in detail with reference to the drawings showing the embodiments. FIG. 1 is a schematic diagram for explaining an overview of a number calculation system S according to the first embodiment. FIG. 2 is a block diagram showing the configuration of an information processing device 1 (server device). The number calculation system S is configured with an information processing device 1 as a main device, and the information processing device 1 acquires an image captured by a camera C mounted on a drone D having a communication function, for example. Alternatively, the information processing device 1 may acquire an image captured by a camera C mounted on a high place such as a steel tower, online, by wire or wirelessly. The image includes, for example, a rectangular container as a subject.
[0012] The information processing device 1 performs processing such as object detection on the acquired image using the first trained model 101, the second trained model 102, and the third trained model 103, thereby deriving (calculating) the approximate number (approximate number) of objects to be determined, such as containers, contained in the image. The information processing device 1 generates image data in which the approximate number (approximate number) of objects to be determined (containers, etc.) derived (calculated) based on the image acquired from the camera C is superimposed on the image, and outputs the generated image data to a terminal device T held by a storage manager or the like of the objects to be determined (containers, etc.).
[0013] The information processing device 1 is a computer capable of various information processing and transmitting and receiving information, such as a server device, a personal computer, etc. The server device includes not only a single server device, but also a cloud server device or a virtual server device configured with multiple computers. The information processing device 1 includes a control unit 11, a storage unit 12, and a communication unit 13. The control unit 11 has one or more arithmetic processing devices such as a CPU (Central Processing Unit), an MPU (Micro-Processing Unit), a GPU (Graphics Processing Unit), etc., and performs various information processing, control processing, etc. related to the information processing device 1 by reading and executing a program P (program product) stored in the storage unit 12.
[0014] The storage unit 12 includes a volatile storage area such as a static random access memory (SRAM), a dynamic random access memory (DRAM), or a flash memory, and a non-volatile storage area such as an EEPROM or a hard disk. The storage unit 12 stores in advance a program P (program product) and data to be referenced during processing. The program P stored in the storage unit 12 may be a program P read from a recording medium M readable by the information processing device 1. The program P may also be a program P downloaded from an external computer (not shown) connected to a communication network (not shown) and stored in the storage unit 12. The storage unit 12 stores entity files constituting the first trained model 101, the second trained model 102, and the third trained model 103. These entity files may be configured as parts of the program P.
[0015] The communication unit 13 is a communication interface for communicating with a drone D or a terminal device T2, etc., via the Internet, etc., either wired or wirelessly.
[0016] The camera C is, for example, a CMOS camera, and captures moving or still images. The camera C is mounted on, for example, a drone D having a communication function, and the images captured by the camera C are transmitted from the drone D to the information processing device 1. Alternatively, the camera C may be disposed on a steel tower or the like that overlooks a placement location (storage location) where a determination target object such as a container is placed, and the captured images may be transmitted from the camera C to the information processing device 1 by wire or wirelessly.
[0017] The terminal device T2 is, for example, a smartphone, a tablet PC, or a personal computer. The terminal device T2 includes a control unit, a storage unit, and a communication unit, similar to the information processing device 1, and is communicatively connected to the information processing device 1 via the communication unit. The terminal device T2 receives image data transmitted from the information processing device 1, and displays a display screen on a display unit such as a liquid crystal display, on which the number of containers (objects to be determined) and the like are superimposed, based on the image data.
[0018] 3 is an explanatory diagram of a generation process of the first trained model 101 (top surface model). The first trained model 101 is configured, for example, by a network (semantic segmentation model) for semantic segmentation using FPN (Feature Pyramid Network). Alternatively, the first trained model 101 may be configured by U-Net, Mask R-CNN, PSPNet, RCNN (Regions with Convolutional Neural Network), Fast RCNN, Faster RCNN, SSD (Single Shot Multibook Detector), YOLO (You Only Look Once), etc., and may be configured by a neural network (NN) that performs object detection, semantic segmentation, or instance segmentation.
[0019] Based on an input image, the first trained model 101 outputs a heat map showing higher values as the heat map approaches the center of the top surface of the container included in the image. The number of top plates can be derived by counting the number of vertices (points where the heat map value is equal to or greater than a predetermined value) of the multiple heat maps output by the first trained model 101. The heat map is output superimposed on the input image, or positioned at a point (coordinate in the image coordinate system) indicating the center of the top surface of the corresponding container in the input image. Therefore, the number of top surfaces (heat map vertices) included in a predetermined area in the image can be counted (measured). The predetermined area corresponds to an individual group of objects detected by the third trained model 103 described later.
[0020] When the first trained model 101 is configured as a semantic segmentation model that extracts image features, such as FPN, the input layer included in the first trained model 101 has a plurality of neurons that accept input of pixel values of an image, and passes the input pixel values to the intermediate layer. The intermediate layer has a plurality of neurons that extract image features of an image, and passes the extracted image features to the output layer. The output layer has one or a plurality of neurons that output region information including a heat map indicating the probability that it is the center of the top surface of the container (object to be extracted) and the position of the center of the top surface of the container, and outputs a heat map indicating the center of the top surface of the container (object to be extracted) and the position of the region of the center of the top surface of the container (region coordinates or pixel number, etc.) based on the image features output from the intermediate layer.
[0021] The neural network (first trained model 101) trained using the training data is expected to be used as a program module that is part of artificial intelligence software. The first trained model 101 is used in the information processing device 1 equipped with the control unit 11 (CPU, etc.) and the storage unit 12 as described above, and is executed in the information processing device 1 having such calculation processing capabilities to configure a neural network system. That is, the control unit 11 of the information processing device 1 performs calculations to extract features of the image input to the input layer according to instructions from the first trained model 101 stored in the storage unit 12, and outputs a heat map and the position of the area related to the center of the top surface of the container (object to be extracted) from the output layer.
[0022] The first trained model 101 can be generated by preparing training data in which an image (question data) including multiple objects to be determined, such as containers, is associated with a label (answer data) in which a heat map (a stepwise value such as 0 to 1) is assigned to the position (area) of the top surface of a container, which is an object to be extracted, and by machine learning an untrained neural network using the training data. The training data is stored, for example, in the storage unit 12 of the information processing device 1, and can be generated by aggregating images captured of a scene in which objects to be determined, such as containers, are stored in a stacked manner.
[0023] According to the first trained model 101 thus trained and configured, for example, by inputting an image captured from the sky using a camera C mounted on a drone D into the first trained model 101, a heat map corresponding to the center of the top surface of a container (object to be determined) included in the image can be obtained. The data set of question data and answer data included in the training data for learning the first trained model 101, etc., and the data set of input data and output data when the first trained model 101, etc. is used are synonymous, and if defined in either data set, it naturally applies to the other data set as well.
[0024] 4 is an explanatory diagram of a generation process of the second trained model 102 (side model). The second trained model 102 is configured by a network (object detection model) for object detection using a fully convolutional network (FCN) such as YOLO (You Only Look Once). Alternatively, the second trained model 102 may be configured by another network such as FasterRNN or RCNN (Regions with Convolutional Neural Network) like the first trained model 101, and may be configured by a neural network (NN) that performs object detection, semantic segmentation, or instance segmentation.
[0025] Based on an input image, the second trained model 102 outputs the type of side of the container included in the image (type of side according to the number of layers), the area in the input image, and the estimation accuracy (certainty / score). The side of the container to be detected is defined as a different object according to the number of layers of the side, i.e., the number of stacked containers. That is, the type of object detected by the second trained model 102 corresponds to the type of side according to the number of layers, that is, the objects to be detected include, for example, the side of a one-layer container, the side of a two-layer container, and the side of a three-layer container. Therefore, based on the type of detected object (type of side), the number of layers of the side, i.e., the number of stacked containers to be determined, can be derived.
[0026] When the second trained model 102 is configured as an object detection model that extracts image features, such as YOLO, the input layer included in the second trained model 102 has a plurality of neurons that accept input of pixel values of an image, and passes the input pixel values to the intermediate layer. The intermediate layer has a plurality of neurons that extract image features of an image, and passes the extracted image features to the output layer. The output layer has one or a plurality of neurons that output area information including the positions of the sides of the container (objects to be extracted), and outputs the type of side (type of side according to the number of stages), the position of the area (area coordinates or pixel number, etc.), and the estimation accuracy (confidence / score) based on the image features output from the intermediate layer. The second trained model 102 is also expected to be used as a program module that is part of artificial intelligence software, similar to the first trained model 101.
[0027] The second trained model 102 can be generated by preparing training data in which an image (question data) including a plurality of objects to be determined, such as containers, is associated with a label (answer data) indicating the position (area) and type of the side of the container, which is an object to be extracted, and by machine learning an untrained neural network using the training data. The side of the container, which is an object to be extracted, is defined as a different object according to the number of layers, that is, a separate annotation is set (given) for each side that has a different shape according to the number of stacked objects to be determined. The training data is stored, for example, in the storage unit 12 of the information processing device 1, and can be generated by aggregating images of a scene in which objects to be determined, such as containers, are stacked and stored. According to the second trained model 102 thus trained and configured, for example, by inputting an image captured from the sky using a camera C mounted on a drone D into the second trained model 102, the position (area coordinates in the image coordinate system) and type (type of side according to the number of layers) of the side of the container (object to be determined) included in the image can be obtained. The positions and types of these sides are indicated, for example, by bounding boxes superimposed on the screen, and the number of the bounding boxes can be counted to derive the number of sides included in a predetermined region. The predetermined region corresponds to an individual group of objects detected by a third trained model 103, which will be described later.
[0028] 5 is an explanatory diagram regarding the generation process of the third trained model 103 (object group model). The third trained model 103 is configured by a network for instance segmentation, such as MaskR-CNN (Mask Regions with Convolutional Neural Network). Alternatively, the third trained model 103 may be configured by another network like the first trained model 101 or the second trained model 102, and may be configured by a neural network (NN) that performs object detection, semantic segmentation, or instance segmentation.
[0029] Based on an input image, the third trained model 103 outputs the type of object group included in the image, the area in the input image, and the estimation accuracy (certainty / score). The object group in this embodiment is a collection of containers (objects to be determined) including the top and side surfaces that are the detection targets of the first trained model 101 and the second trained model 102, and indicates a container group in which these containers are arranged at approximately equal intervals vertically and horizontally and stacked in one or more layers. In this embodiment, the type of object (object) detected by the third trained model 103 may be only one type, that is, a container group. In this way, by using the third trained model 103, the area (area coordinates or pixel number, etc.) of the container group (object group) included in the image can be recognized, and the number of the areas can be counted, thereby deriving the number of container groups (object groups) included in the image.
[0030] When the third trained model 103 is configured with a neural network including a CNN (Convolutional Neural Network) that extracts image features, such as MaskR-CNN, the input layer included in the third trained model 103 has a plurality of neurons that accept input of pixel values of an image, and passes the input pixel values to the intermediate layer. The intermediate layer has a plurality of neurons that extract image features of the image, and passes the extracted image features to the output layer. The output layer has one or a plurality of neurons that output area information including the positions of container groups (objects to be extracted), and outputs the positions of areas (area coordinates or pixel numbers, etc.) indicating individual container groups and the estimated accuracy (confidence / score) based on the image features output from the intermediate layer. The second trained model 102 is also expected to be used as a program module that is part of artificial intelligence software, similar to the first trained model 101.
[0031] The third trained model 103 can be generated by preparing training data in which an image (question data) including a plurality of determination objects such as a container group is associated with a label (answer data) in which the area of the container group, which is an object to be extracted, is annotated, and by using the training data to perform machine learning of an untrained neural network. The training data is stored, for example, in the storage unit 12 of the information processing device 1, and can be generated by aggregating images of a scene in which determination objects such as containers are stacked and stored. According to the third trained model 103 trained and configured in this way, by inputting an image captured from the sky using, for example, a camera C mounted on a drone D to the second trained model 102, information regarding the area of the container group (object group) included in the image can be obtained. The detected container group (object group) is indicated by a filled-in area or bounding box superimposed on the image, and the number of container groups (object groups) included in the image can be derived by counting the number of the bounding boxes.
[0032] The first trained model 101, the second trained model 102, and the third trained model 103 are not limited to being generated by training an untrained model. These trained models (the first trained model 101, the second trained model 102, and the third trained model 103) may be generated by performing transfer learning, fine tuning, or the like, using training data based on a container, on a pre-trained model that has been pre-trained using another object different from the container to be determined.
[0033] When the same image is input to the first trained model 101, the second trained model 102, and the third trained model 103, the detection results by these first trained model 101, the second trained model 102, and the third trained model 103 have identity in the image coordinate system of the image. Therefore, for example, when the upper left corner of the image is taken as the origin, the XY coordinates of the first image (an image including the detection result of the top surface by the first trained model 101), the second image (an image including the detection result of the side surface by the second trained model 102), and the third image (an image including the detection result of a group of objects by the third trained model 103) and the areas determined based on the coordinates are the same, and the objects (subjects of the images) included in the areas are the same. As a result, for each area indicated by a group of containers (group of objects) detected by the third trained model 103, it is possible to identify the top surface (detection result of the first trained model 101) and the side surface (detection result of the second trained model 102) contained in the area based on the area coordinates or pixel numbers that define the area. The control unit 11 of the information processing device 1 can calculate the number (approximate number) of objects to be determined (containers) contained in the group of objects based on the number of top surfaces contained in the area of the group of containers (group of objects) and the number of stages (representative number of stages) indicated by the side surfaces.
[0034] 6 is a functional block diagram illustrating functional units included in the control unit 11 of the information processing device 1. The control unit 11 of the information processing device 1 functions as an acquisition unit 111, a number calculation unit 112, and an output unit 113 by executing a program stored in the storage unit 12. The control unit 11 of the information processing device 1 functions as the first trained model 101, the second trained model 102, and the third trained model 103 by reading entity files of the first trained model 101, the second trained model 102, and the third trained model 103 stored in the storage unit 12.
[0035] The acquisition unit 111 acquires an image captured by a camera C mounted on a drone D or a camera C attached at a high place. The image includes, as a subject, a plurality of containers to be determined, which are stacked. The containers (objects to be determined) are arranged at approximately equal intervals vertically and horizontally, and are stacked in one or more layers. A container group (object group) is formed by the containers (objects to be determined) thus arranged and stacked. The image (image captured by the camera C) includes one or more of such container groups (object groups). The acquisition unit 111 acquires an image transferred from a drone D having a wireless communication function, or acquires an image captured by a camera C attached at a high place such as a steel tower, online, by wire or wireless. Alternatively, the acquisition unit 111 may acquire an image offline via a medium such as a memory card in which an image captured by the camera C is stored. The acquisition unit 111 inputs the image captured by the camera C to each trained model (the first trained model 101, the second trained model 102, and the third trained model 103).
[0036] Based on an input image, the first trained model 101 (top surface model) outputs a heat map indicating the probability that the image is the center of the top surface of a determination target object such as a container (object to be extracted), and area information including the position of the center of the top surface of the container, etc. The values of the heat map are defined as stepwise values, for example, from 0 to 1, and are output so that the closer to the center of the top surface of the container, the higher the value (approaching 1), and the point with the highest value (center of the top surface) corresponds to the apex of the heat map.
[0037] The second trained model 102 (side view model) estimates the type of side view (type of side view corresponding to the number of stages) and area of the object to be judged, such as a container, contained in the input image based on the input image, and outputs the estimated type (type of side view corresponding to the number of stages) and area. The type of side view (type of side view corresponding to the number of stages) is displayed, for example, as an object ID predefined for the type, and the area is displayed, for example, as a bounding box.
[0038] The third trained model 103 (object group model) outputs, based on an input image, the type of container group (object group) contained in the image, the area in the input image, and the estimation accuracy (certainty / score). In this embodiment, the type of container group (object group) is defined (trained) as one. The area indicating the container group (object group) is indicated, for example, by a filled-in area or a bounding box superimposed on the image.
[0039] The number calculation unit 112 acquires output results (detection results of top surfaces, side surfaces, and container groups) from the first trained model 101, the second trained model 102, and the third trained model 103, and calculates the number (approximate number) of containers in each container group (group of objects) based on these acquired output results. The number calculation unit 112 calculates the number of container top surfaces included in the image by counting the vertices of the heat map output from the first trained model 101 (top surface model). The number calculation unit 112 calculates the number of each type of side surface corresponding to the number of layers of containers included in the image by counting the number of each type of side surface (type of side surface corresponding to the number of layers) output from the second trained model 102 (side surface model). The number calculation unit 112 identifies each of the coordinate values (coordinates of individual areas where objects are detected by instance segmentation) defined in the image coordinate system of each container group (object group) according to the area of each container group (object group) output from the third trained model 103 (object group model).
[0040] The same image is input to the first trained model 101, the second trained model 102, and the third trained model 103. In this case, the first trained model 101, the second trained model 102, and the third trained model 103 may perform object detection processing on the same image in parallel (parallel processing) by operating in a multi-CPU environment having multiple CPUs or cores, for example. With an image including multiple objects to be determined (containers) as input data as a reference, the image coordinate systems of an image (first image) including the detection result of a top surface (tabletop) by the first trained model 101, an image (second image) including the detection result of a side surface by the second trained model 102, and an image (third image) including the detection result of a group of objects by the third trained model 103 are consistent. Based on the first image, the second image, and the third image which thus have coordinate identity, the number calculation unit 112 identifies, for example, the top surfaces and side surfaces contained in an area formed by any one of the object groups, and calculates the number (approximate number) of objects to be determined (containers) contained in the object group based on the number of top surfaces contained in the area and the number of steps indicated by the sides.
[0041] The number calculation unit 112 may calculate a representative number of stages when deriving the number of stages indicated by the side of the determination object (container) in each of the individual container groups (object groups). In any container group (object group), the number of stages (number of stacks: number of determination objects stacked) of the objects (containers) may differ depending on the location where they are stacked. In this case, the second trained model 102 outputs the number of sides with different numbers of stages, such as the number of detected sides with one stage, the number of detected sides with two stages, and the number of detected sides with three stages, in the same object group, for example. In this case, the number calculation unit 112 may calculate a representative number of stages of the side in the container group (object group) based on a representative value calculated for the number of sides with different numbers of stages in the number of each type of multiple side surfaces included in the area of the individual container group (object group). The number calculation unit 112 may calculate the number of containers (objects to be determined) included in the area of the container group (object group) by multiplying the derived representative number of sides by the number of top surfaces included in the area of the container group (object group).
[0042] The representative value used in calculating the representative number of steps of the side surface includes, for example, an average value, a median value, or a mode value. When calculating using the mode value, the number calculation unit 112 derives the side surface with the most number of steps detected among the side surfaces with different numbers of steps as the representative number of steps. When calculating using the average value, the number calculation unit 112 multiplies the number of sides with each detected number of steps by the number of steps, adds up all the sides, and divides the total number of detected sides by the total number of sides to derive the representative number of steps of the side surface in the object group. For example, if the number of sides with one step detected is S1, the number of sides with two steps detected is S2, and the number of sides with three steps detected is S3, the average value is calculated by (1*S1+2*S2+3*S3) / (S1+S2+S3). The decimal point generated when dividing may be rounded off to an integer, for example. When calculating using the median, the number calculation unit 112 derives the number of sides with a number of steps that corresponds to the median for each number of sides with each step as the representative step number. The number calculation unit 112 calculates the number of containers (objects to be determined) for each container group (object group) based on the number of top surfaces in each container group (object group) and the representative step number in this way, and outputs (transfers) the number to the output unit 113.
[0043] The output unit 113 generates screen data in which the number of containers (objects to be determined) is superimposed on the display area of the container group (object group) by superimposing the number of containers (objects to be determined) for each container group (object group) from the number calculation unit 112 and information on the area of each container group (object group) on the image acquired from the acquisition unit 111. When superimposing the calculated number of containers (objects to be determined), the output unit 113 may use the third image output by the third trained model 103 (an image in which the detection results of the container group are filled in as areas).
[0044] The output unit 113 outputs the generated screen data to, for example, a display device such as a display, or a terminal device T such as a smartphone. The display device or terminal device T that acquires (receives) the screen data from the output unit 113 displays a display screen in which the number of containers is superimposed on the display area of the container group in accordance with the screen data.
[0045] The output unit 113 may further receive an operation from a terminal device T held by a storage manager of the object to be determined (container, etc.) in the generated screen data, and may modify or regenerate the screen data in response to the received operation. The operation received by the output unit 113 includes, for example, an operation related to adding a top surface (top board) to each of a group of containers (group of objects). When a top surface is not detected by the first trained model 101 in the display screen (screen data) displayed on the terminal device T, etc., the output unit 113 receives an operation (additional detection operation) related to adding (additional detection) the top surface that was not detected. The additional detection operation is performed by a storage manager of the object to be determined (container, etc.) on the display of the terminal device T, and may be a marking on the selected (added) top surface in response to an additional detection operation such as a mouse click on the top surface displayed on the display screen.
[0046] In response to the additional detection operation, the terminal device T transmits information about the additionally detected top surfaces to the output unit 113 (information processing device 1). The information about the additionally detected top surfaces includes, for example, the location (coordinates in the image coordinate system) of the additionally detected top surface, or the number of additionally detected top surfaces in each of the container groups (groups of objects). The output unit 113 receives (acquires) the information about the additionally detected top surfaces from the terminal device T, corrects the number of top surfaces in each of the container groups (groups of objects) based on the information, and recalculates the number (approximate number) of objects to be determined and regenerates (corrects) screen data in accordance with the correction result, and transmits the information to the terminal device T, etc.
[0047] The output unit 113 may perform processing related to the side surfaces as well as processing related to the addition (additional detection) of the top surface, and may correct the missed detection of the side surfaces by the second trained model 102 or the type of the detected side surfaces (type of side surfaces according to the number of steps). In this way, by accepting an operation related to additional detection of the top surface, etc., and correcting the result detected (estimated) by the first trained model 101, etc. according to the operation, the accuracy of the number (approximate number) of objects to be determined that is finally derived as a number calculation system can be improved. In this embodiment, it has been described that the output unit 113 (control unit 11) of the information processing device 1 recalculates the number (approximate number) of objects to be determined and regenerates screen data based on information related to the additionally detected top surface, etc., but this is not limited to this. The processing related to the recalculation of the number (approximate number) of objects to be determined and regenerates screen data may be performed by the control unit of the terminal device T (local processing by an application installed in the terminal device T).
[0048] 7 is a flowchart illustrating a processing procedure by the control unit 11 of the information processing device 1. The control unit 11 of the information processing device 1 acquires an image including a plurality of stacked objects to be determined (S101). The control unit 11 of the information processing device 1 acquires an image captured by the camera C and an image capture date and time associated with the image.
[0049] The control unit 11 of the information processing device 1 outputs the detection result of the top surface by inputting the acquired image to the first learned model 101 (top surface model) (S102). The control unit 11 of the information processing device 1 inputs the acquired image to the first learned model 101 (top surface model). The control unit 11 functioning as the first learned model 101 (top surface model) outputs, based on the input image, a heat map indicating the probability that the image is the center of the top surface of a determination target object such as a container (object to be extracted), and area information including the position of the center of the top surface of the container.
[0050] The control unit 11 of the information processing device 1 outputs the side detection result by inputting the acquired image to the second trained model 102 (side model) (S103). The control unit 11 of the information processing device 1 inputs the acquired image to the second trained model 102 (side model). The control unit 11 functioning as the second trained model 102 (side model) estimates the type of side (type of side according to the number of steps) and area of the object to be determined, such as a container, contained in the input image based on the input image, and outputs the estimated type (type of side according to the number of steps) and area.
[0051] The control unit 11 of the information processing device 1 inputs the acquired image to the third trained model 103 (object group model) to output the detection result of the object group (S104). The control unit 11 of the information processing device 1 inputs the acquired image to the third trained model 103 (object group model). The control unit 11 functioning as the third trained model 103 (object group model) outputs the area of the container group (object group) included in the input image based on the input image.
[0052] The control unit 11 of the information processing device 1 calculates the number of objects to be determined for each object group based on the detection results of the top surface, side surface, and object group (S105). The control unit 11 of the information processing device 1 identifies the top surface (detection result of the first trained model 101) and side surface (detection result of the second trained model 102) included in each region based on the region indicating the container group (object group) which is the detection result of the third trained model 103 (object group model). Since the images input to the first trained model 101, the second trained model 102, and the third trained model 103 are the same image, the images including the detection results of these trained models have identity on the image coordinate system. The control unit 11 of the information processing device 1 counts the number of top surfaces belonging to the same region in the region (region coordinates or pixel number, etc.) indicating the container group (object group) which is the detection result of the third trained model 103 (object group model). Furthermore, the control unit 11 of the information processing device 1 counts the number of each type of side surface (type of side surface according to the number of steps) in the side surfaces belonging to the same region.
[0053] The control unit 11 of the information processing device 1 derives a representative number of steps for the side surfaces in the group of objects based on a representative value calculated for each counted number of side surfaces with different numbers of steps for each type of side surface (type of side surface according to the number of steps). As described above, the representative value includes, for example, an average value, a median value, or a mode, and the control unit 11 of the information processing device 1 derives the representative value calculated by a calculation method according to each value (average value, median value, or mode) as the representative number of steps. The control unit 11 of the information processing device 1 multiplies the number of top surfaces in each container group (group of objects) by the derived representative number of steps to calculate the approximate number (approximate number) of containers included in each container group (group of objects).
[0054] The control unit 11 of the information processing device 1 outputs screen data on which information on the calculated number of objects to be determined for each object group is superimposed (S106). The control unit 11 of the information processing device 1 generates screen data by superimposing information on the number of containers (objects to be determined) for each container group (object group) on the image acquired from the camera C or the third image (an image in which the detection result of the container group is a filled-in area) output by the third trained model 103. The information on the number of containers (objects to be determined) may include the number of top surfaces counted and the derived representative number of stages in addition to the number of containers. Furthermore, the screen data may include a list showing information on the number in each container group (object group) detected by the third trained model 103 (the number of top surfaces, the representative number of stages, and the number of containers).
[0055] 8 is an explanatory diagram illustrating a display screen showing information related to the number of objects to be determined. The control unit 11 of the information processing device 1 generates screen data on which the calculated number of containers (objects to be determined) is superimposed, using the image acquired from the camera C and the detection results by each trained model (the first trained model 101, the second trained model 102, and the third trained model 103), and outputs the screen data to, for example, the terminal device T of the storage manager of the objects to be determined (containers, etc.). As a result, a display screen on which the number of containers (objects to be determined) is superimposed is displayed on a display unit such as a liquid crystal display provided in the terminal device T of the storage manager.
[0056] The display screen includes an image display area and a list display area. In the image display area, information regarding the number of containers (objects to be determined) in each container group (object group) is displayed superimposed based on an image captured by the camera C, i.e., an image including one or more container groups (object groups). The information regarding the number of containers (objects to be determined) includes, for example, the number of containers (objects to be determined) included in the corresponding (superimposed) container group (object group), the number of top surfaces, and the representative number of stages.
[0057] In the list display area, information on the number of items in each container group (object group) (the number of top surfaces, the number of representative tiers, and the number of containers) is displayed in list format. Items of the list displayed in the list display area include, for example, the object group, the number of top surfaces, the number of representative tiers, and the number (approximate number). The number of top surfaces displayed as an item of the list may be, for example, hyperlinked to a first image (an image including a detection result of the top surface by the first trained model 101) including a heat map output by the first trained model 101. The control unit 11 of the information processing device 1 may output the first image and display it on the terminal device T by accepting an operation on the hyperlinked number of top surfaces (item of the list). The representative tiers displayed as an item of the list may be, for example, hyperlinked to a second image (an image including a detection result of the side surface by the second trained model 102) output by the second trained model 102. The control unit 11 of the information processing device 1 may output a second image and display it on the terminal device T by accepting an operation on the representative level (list item) of the hyperlink.
[0058] The terminal device T may be configured to receive an operation for additional detection of a top surface in the image display area. When the first trained model 101 fails to detect a top surface in each of the container group (object group) displayed in the image display area, the control unit of the terminal device T receives the selection (addition) of the top surface that has been missed. The control unit of the terminal device T may, for example, apply a marking on the top surface that has been selected (added) by clicking with the mouse. The control unit of the terminal device T transmits information (coordinates in the image coordinate system) regarding the selected (added) top surface to the information processing device 1.
[0059] The control unit 11 of the information processing device 1 receives (acquires) information on the additionally detected top surfaces from the terminal device T, corrects the number of top surfaces in each of the container groups (groups of objects) based on the information, regenerates (corrects) screen data according to the correction result, and transmits it to the terminal device T, etc. This makes it possible to derive the number of containers (objects to be determined) that have been additionally detected by a storage manager, etc. of the objects to be determined (containers, etc.) and that have their top surfaces taken into account. The terminal device T and the information processing device 1 may also perform processing related to the side surfaces, similar to the processing related to the addition (additional detection) of top surfaces, and may correct any missed detection of side surfaces by the second trained model 102 or the type of side surface that has been detected (type of side surface according to the number of stages).
[0060] According to this embodiment, the information processing device 1 calculates the number of objects to be determined included in an image including a plurality of stacked objects to be determined (containers, etc.) by using a first trained model 101 that detects the top surface (top plate) of the object to be determined and a second trained model 102 that detects the side surface (shape of the stack) of the object to be determined. The number is not limited to the exact number of the objects to be determined, and may be calculated (derived) as an approximate number that is close to the number. In this embodiment, the state in which the objects to be determined (containers) are stacked also includes the case in which the container is in one layer. In this case, the number of layers is one. When the object to be determined is a transport container such as a container or a storage container for stored items, it is assumed that a plurality of containers collected according to the purpose are stacked vertically and horizontally on the site that is the loading location (storage location) and are stacked in multiple layers and loaded (stored). In this case, it is not necessary to grasp the exact number of containers loaded (stored), but it may be necessary to grasp the approximate number, i.e., the approximate number, for management purposes on the site that is the loading location. Even in such a case, by using the first trained model 101 and the second trained model 102, it is possible to efficiently calculate the approximate number (approximate number) of containers based on an image including objects to be determined, such as stacked containers, by multiplying the number of detected top surfaces (the number when viewed from above in a plane) by the number of detected side layers (the number of objects stacked to be determined).
[0061] According to this embodiment, the information processing device 1 uses the third trained model 103 that detects object groups included in an image to extract each of a plurality of object groups consisting of one or more determination objects from an image including these object groups. For example, when a plurality of determination objects such as containers are aligned vertically and horizontally and arranged so that the distance between adjacent containers is approximately equal, a container group (object group) is formed by the plurality of containers arranged at approximately equal intervals vertically and horizontally. At this time, it is assumed that the number of stacks (number of tiers on the side) of the containers differs in each container group (object group). In such a case, the information processing device 1 uses the third trained model 103 to extract each container group (object group) included in the image, and calculates the number (approximate number) of containers individually in each extracted container group (object group). The information processing device 1 calculates the number (approximate number) of determination objects such as containers included in the image by summing (adding up) the calculated individual numbers (approximate numbers) of containers. Therefore, even if an image contains a group of multiple containers (group of objects), the number (approximate number) of determination objects such as containers contained in the image can be efficiently calculated.
[0062] According to this embodiment, the images input to the first trained model 101, the second trained model 102, and the third trained model 103 are the same image. Therefore, for an image including multiple objects to be determined (containers), the image coordinate systems of an image (first image) including the detection result of the top surface (top board) by the first trained model 101, an image (second image) including the detection result of the side surface by the second trained model 102, and an image (second image) including the detection result of the object group by the third trained model 103 are consistent. Based on the first image, the second image, and the third image having the same coordinate system, the information processing device 1 can, for example, identify the top surface and the side surface included in an area of any object group, and calculate the number (approximate number) of objects to be determined (containers) included in the object group based on the number of top surfaces included in the area and the number of steps indicated by the side surface.
[0063] According to the present embodiment, the number of layers (layer count: number of objects to be determined) of objects (containers) stacked individually may differ in the same object group, and the second trained model 102 outputs the side surface corresponding to the number of layers of the objects (containers) stacked individually in the object group (container group) as the detection result (object detection result). In this case, the second trained model 102 outputs the number of sides with different numbers of layers, such as the number of sides detected with one layer, the number of sides detected with two layers, and the number of sides detected with three layers, in the same object group. The information processing device 1 derives the representative number of layers of the sides in the object group based on a representative value calculated from the number of sides with different numbers of layers detected (output) by the second trained model 102. The representative value includes, for example, the average value, the median, or the mode. The information processing device 1 can derive a representative number of layers using a relatively simple calculation method even if the number of layers of containers (number of objects to be determined) stacked individually in the same group of objects (container group) is different, and can efficiently calculate the approximate number (approximate number) of objects (containers) included in the group of objects (container group) while suppressing an increase in processing load.
[0064] According to this embodiment, the first trained model 101 is trained using a heat map that indicates a higher value closer to the center of the top surface, and the detection result of the top surface output by the first trained model 101 includes a heat map related to the top surface. For example, when the object to be determined is a container, the top surface (top plate) of the container to be detected by the first trained model 101 is rectangular or rhombus. When such rectangular top surfaces are arranged at equal intervals vertically and horizontally, the shape of the collection of the equally spaced top surfaces also resembles the shape of a single top surface. In this case, there is a concern that an object detection model generated by training using an image of the rectangular top surface may erroneously detect the shape of the collection of top surfaces as a single top surface. In response to this, the information processing device 1 generates (trains) the first trained model 101 so that each top surface included in the image can be identified using a heat map that indicates a higher value closer to the center of the top surface. The heat map takes a stepwise value, for example, from 0 to 1, and is data that has a mountain-like shape at the location to be detected, i.e., the center of the top surface of the container. In the information processing device 1, the heat map is trained in the first trained model 101, and the first trained model 101 outputs a heat map for each point of the input image. The information processing device 1 can derive the number of top surfaces by counting the number of points (centers of top surfaces) indicating vertices of the output heat map.
[0065] According to this embodiment, the information processing device 1 learns (generates) the second trained model 102 using annotations of the side surface, which has a different shape depending on the number of stacked objects to be determined. Therefore, when performing object detection using the second trained model 102, the object on the side surface of the container to be detected becomes a different object (separate object ID) depending on the number of layers of the side surface. Therefore, the detection target (object) of the second trained model 102 includes, for example, the side surface of a one-layer container, the side surface of a two-layer container, and the side surface of a three-layer container, that is, includes the side surface of a single container and a collection of the side surfaces of two or more stacked containers. By dividing the shape of the side surface according to the number of layers (layers) as the object to be detected in this way, it is possible to suppress the occurrence of false detection and efficiently identify the number of layers of the side surface (the number of stacked containers) depending on the type of the detected object, compared to, for example, a case where only the side surface of a single container is detected as the detection target and the number of detected sides is counted.
[0066] According to this embodiment, the information processing device 1 generates screen data in which the calculated number of objects to be determined is superimposed on a display area of the objects to be determined included in an image, and outputs the generated image data to, for example, a display device such as a display, or a terminal device T such as a smartphone. The display device or terminal device T that acquires (receives) the screen data from the information processing device 1 displays a screen in which the number of objects to be determined (containers) is superimposed on a display area of the objects to be determined (object group: container group) according to the screen data. This makes it possible to provide an image in which the number (approximate number) of objects to be determined (containers, etc.) is superimposed to the storage manager of the objects to be determined (containers, etc.).
[0067] In this embodiment, the object to be determined is described by exemplifying a rectangular box-shaped container, but is not limited thereto. The object to be determined may be, for example, a power transmission and distribution facility such as a power distribution ground device, a utility pole, or a pole-shaped transformer. In this case, each trained model (the first trained model 101, the second trained model 102, and the third trained model 103) is trained using training data corresponding to the shape of each of these power transmission and distribution facilities. By using each trained model (the first trained model 101, the second trained model 102, and the third trained model 103) trained according to the shape of each of the stored power transmission and distribution facilities stacked in this manner, for example, when aging power transmission and distribution facilities are collected and stored in a large amount in a specified storage location, the approximate number of the power transmission and distribution facilities can be efficiently derived.
[0068] The embodiments disclosed herein are illustrative in all respects and should not be considered as limiting. The scope of the present invention is defined by the claims, not by the above meaning, and is intended to include all modifications within the scope and meaning equivalent to the claims.
[0069] The claims may be combined with each other regardless of the form of reference. The claims may contain multiple dependent claims depending on multiple claims. Multiple dependent claims may be contained depending on multiple dependent claims. If multiple dependent claims are not contained depending on a multiple dependent claim, this does not limit the number of dependent claims depending on a multiple dependent claim. [Explanation of symbols]
[0070] S Counting System D. Drone C Camera T terminal device 1. Information processing device (server device) 11 Control section 111 Acquisition Department 112 Counting Unit 113 Output section 12 Storage section M Recording medium P Program 13. Communications Department 101 First trained model (top surface model) 102 Second trained model (side model) 103 Third trained model (object group model)
Claims
1. On the computer, Acquire an image including a plurality of stacked objects to be determined; inputting the acquired image into a first trained model that detects a top surface of an object to be determined contained in an image when the image is input, and outputting a detection result of the top surface of the object to be determined; Calculating the number of top surfaces based on the top surface detection result output by the first trained model; inputting the acquired image into a second trained model that detects the side of an object to be determined contained in an image when the image is input, and outputting a detection result of the side of the object to be determined; Deriving the number of stages of the aspect based on the aspect detection result output by the second trained model; The number of objects to be determined included in the image is calculated based on the calculated number of top surfaces and the number of steps of the side surfaces. An information processing method for executing a process.
2. the image includes a plurality of object groups each including one or more of the determination objects; inputting the acquired image into a third trained model that detects a group of objects contained in an image when the image is input, and outputting a detection result of the group of objects; Calculating the number of objects to be determined in each group of objects detected by the third trained model The information processing method according to claim 1 .
3. the detection result of the top surface, the detection result of the side surface, and the detection result of the group of objects include coordinate values defined in an image coordinate system in the image, Identifying the top surface and the side surface corresponding to each of the plurality of object groups based on the coordinate values of the top surface and the side surface and the coordinate values of the object group; Calculating the number of the objects to be determined that are included in the corresponding object group based on the identified top surface and side surface. The information processing method according to claim 2 .
4. When a plurality of side surfaces having different numbers of steps are identified in the same object group, a representative number of the side surfaces in the object group is derived based on a representative value calculated for each of the number of side surfaces having the different numbers of steps identified; The number of the objects to be determined in the group of objects is calculated based on the calculated number of the top surfaces and the calculated number of representative steps of the side surfaces. The information processing method according to claim 3.
5. The first learned model is learned using a heat map that indicates a higher value as it approaches the center of the top surface, The detection result of the top surface output by the first learned model includes a heat map regarding the top surface, The number of vertices of the heat map is calculated as the number of vertices of the top surface. The information processing method according to claim 1 .
6. The second trained model is trained using annotations of side surfaces that have different shapes depending on the number of stacks of the object to be determined, The side detection result output by the second trained model includes a shape corresponding to the number of stacks, The number of steps of the side surface is derived based on a shape corresponding to the number of stacks. The information processing method according to claim 1 .
7. The object to be determined is a rectangular box-shaped container. The information processing method according to claim 1 .
8. generating screen data in which the calculated number of objects to be determined is superimposed on a display area of the objects to be determined included in the image; Output the generated screen data The information processing method according to claim 1 .
9. On the computer, Acquire an image including a plurality of stacked objects to be determined; inputting the acquired image into a first trained model that detects a top surface of an object to be determined contained in an image when the image is input, and outputting a detection result of the top surface of the object to be determined; Calculating the number of top surfaces based on the top surface detection result output by the first trained model; inputting the acquired image into a second trained model that detects the side of an object to be determined contained in an image when the image is input, and outputting a detection result of the side of the object to be determined; Deriving the number of stages of the aspect based on the aspect detection result output by the second trained model; The number of objects to be determined included in the image is calculated based on the calculated number of top surfaces and the number of steps of the side surfaces. A program that executes a process.
10. An acquisition unit that acquires an image including a plurality of stacked objects to be determined; A top surface output unit inputs the acquired image into a first trained model that detects a top surface of an object to be determined contained in the image when the image is input, and outputs a detection result of the top surface of the object to be determined; A calculation unit that calculates the number of top surfaces based on the top surface detection result output by the first learned model; a side output unit that inputs the acquired image into a second trained model that detects a side surface of an object to be determined contained in the image when the image is input, and outputs a detection result of the side surface of the object to be determined; A derivation unit that derives a number of stages of a side face based on a result of the side face detection output by the second trained model; a number calculation unit that calculates the number of objects to be determined included in the image based on the calculated number of the top surface and the number of steps of the side surface. Information processing device.
Citation Information
Patent Citations
Counting device, learning machine manufacturing device, counting method, learning machine manufacturing method, and program
JP2020126313A
Detection reader, method for reading detection, and program
JP2021012613A
Control device, control method, and cargo handling system
JP2022049978A
Counting device, learning model generation device, inspection device, and program
JP2022128310A
Method, device and program for extracting image, and method, device and program for detecting abnormality of pole mounted equipment of distribution pole utilizing image extracting method
JP2002366953A
