Automatic material counting system and automatic material counting method
By integrating two-dimensional and three-dimensional data acquisition and analytical models for bounding box extraction, the system accurately counts objects regardless of image fit, addressing manual labor and alignment limitations, and enhancing inventory management efficiency.
Patent Information
- Application Number
- PCT/JP2024/010544
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-23
- Filing Date
- 2024-03-18
- Publication Date
- 2024-09-26
AI Technical Summary
Existing automatic material counting systems face challenges in accurately estimating the position and number of objects, particularly when objects do not fit within a single image, requiring extensive manual re-collection and re-learning of data, and are limited by the method of photographing and object alignment.
The system combines two-dimensional image data and three-dimensional point cloud data acquisition to estimate object positions and counts, using analytical models for bounding box extraction and integration into a three-dimensional space, allowing for remote correction and improved accuracy.
This approach enables accurate counting of objects even if they do not fit in one image, reduces manual labor, and enhances system efficiency by allowing remote correction and data updating, improving the reliability and speed of material inventory management.
Smart Images

Figure JP2024010544_26092024_PF_FP
Abstract
Description
Automatic material counting system and automatic material counting method
[0001] The present invention relates to an automatic material counting device and an automatic material counting method.
[0002] In recent years, with the decline in the number of workers due to the declining birthrate and aging population, technologies have been proposed to count the number of various material objects to replace visual confirmation work such as checking stock quantities of materials. For example, the abstract of Patent Document 1 below states, "...a counting processing unit that, based on input image data, detects a bounding box for each material included in the image data, outputs for each bounding box whether or not it is a predetermined type of material, and counts the number of materials of each type..."
[0003] Japanese Patent Application Laid-Open No. 2021-26697
[0004] However, in the above-mentioned technology, there is a demand for more appropriately estimating the positions of objects to be recognized, such as materials, or the number of target objects. The present invention has been made in consideration of the above-mentioned circumstances, and an object of the present invention is to provide an automatic materials counting system and an automatic materials counting method that can appropriately estimate the object positions or the number of materials.
[0005] In order to solve the above problems, the automatic material counting system of the present invention comprises a data acquisition device that acquires image information of a plurality of materials and distance image information of the materials associated with the image information; an automatic object counting device that receives the image information and the distance image information from the data acquisition device via a network, extracts bounding boxes representing the materials from the image information and the distance image information using an analytical model, integrates the bounding boxes into three-dimensional space, and determines the position or number of the materials; and a data correction device that corrects the position or number of the materials determined by the automatic object counting device based on overall image data in which each frame of the image information is superimposed, and instructs the automatic object counting device.
[0006] According to the present invention, the positions or the number of objects to be recognized, such as materials, can be appropriately estimated.
[0007] FIG. 1 is a block diagram of an automatic material counting system according to an embodiment. FIG. 2 is a diagram illustrating an example of a two-dimensional frame image of materials. FIG. 3 is a block diagram of a computer. FIG. 4 is a flowchart of a data acquisition processing routine executed in a data acquisition device. FIG. 5 is a flowchart of a counting processing routine executed in an automatic object counting device. FIG. 6 is a diagram illustrating an example of a bounding box to be counted. FIG. 7 is a diagram illustrating an example of a display screen in a calculation result display unit. FIG. 8 is a sequence diagram illustrating another overall operation of the automatic material counting system. FIG. 9 is a diagram illustrating a method for updating the analytical model of the automatic material counting system.
[0008] [Overview of the Embodiments] Generally, automatic counting of objects using image analysis AI requires recollection and re-learning of data until the target accuracy is achieved, resulting in a significant amount of work. Furthermore, the aforementioned Patent Document 1 does not address the case where the counting target objects cannot be contained in a single image, limiting the photographing method and the target objects. Therefore, in the embodiments described below, two-dimensional image data and three-dimensional point cloud data are acquired synchronously (more preferably simultaneously), cross-referencing the counting results (bounding boxes) based on the two-dimensional image data with the three-dimensional point cloud information to appropriately count the number of counting target objects even when the counting target objects cannot be contained in a single image. Furthermore, the automatic material counting system of the embodiments allows automatic counting results to be corrected remotely.
[0009] 1 is a block diagram of an automatic material counting system 10 according to a first embodiment. The automatic material counting system 10 estimates the positions of and counts the quantities of recognition target objects 22 included in an object group 20, and includes a data acquisition device 1, an automatic object counting device 2, and a data correction device 3, all connected via a network NW. In the illustrated example, each recognition target object 22 is a cylindrical object (pipe) that is a scaffolding material at a construction site.
[0010] More specifically, in the embodiment, the automatic material counting system 10 uses cylindrical objects (pipes) that are scaffolding materials for a construction site leased from a leasing company as recognition target objects 22, and acquires two-dimensional image data and three-dimensional point cloud data of an object group 20 consisting of a plurality of recognition target objects 22 to be returned to the leasing company using a data acquisition device 1 that is a mobile terminal such as a smartphone. Then, an automatic object counting device 2 that is a network server counts the recognition target objects 22 by image analysis of the two-dimensional image data and three-dimensional point cloud data, and notifies the leasing company of the counting results of the recognition target objects 22. This facilitates management of returned materials.
[0011] The data acquisition device 1 includes a data acquisition unit 101, a data analysis unit 102, and a data transmission unit 104, and the data correction device 3 includes a calculation value display unit 106 and a calculation value correction unit 108. The automatic object counting device 2 includes a data receiving unit 201, an object counting unit 202, a count value correction unit 203, a count value transmission unit 204, a count result registration and notification unit 205, and a count result database 206.
[0012] The data acquisition unit 101 of the data acquisition device 1 includes a camera (not shown) that captures two-dimensional video data, a three-dimensional sensor (not shown) such as a LiDAR (Light Detection and Ranging) that acquires three-dimensional point cloud data, and an IMU (Inertial Measurement Unit) sensor. Thus, when a user operates the data acquisition unit 101 to scan an object group 20, the data acquisition unit 101 outputs two-dimensional video data DG (two-dimensional image data), three-dimensional point cloud data TQ, and IMU data DI that is the detection result of the IMU sensor.
[0013] The data analysis unit 102 outputs two-dimensional video data DG, three-dimensional point cloud data TP, shooting position data PS, and depth data DP based on the data supplied from the data acquisition unit 101. Here, the shooting position data PS is acquired based on IMU data DI or techniques such as Visual SLAM or LiDAR SLAM, and is data indicating the position of the data acquisition unit 101. The three-dimensional point cloud data TP is data resulting from performing point cloud accumulation processing (details of which will be described later) on the three-dimensional point cloud data TQ. Furthermore, the depth data DP is data obtained by converting the three-dimensional point cloud data TQ and TP, and is data indicating the distance from the position of the data acquisition unit 101 to each three-dimensional point.
[0014] The frame number of the two-dimensional video data DG is defined as n, the minimum value of the frame number n during the period in which the object group 20 is scanned is defined as "1," and the maximum value of the frame number n is defined as "n_max." The image of frame number n in the two-dimensional video data DG is called the two-dimensional frame image DG(n). The data analysis unit 102 also divides the three-dimensional point cloud data TQ, shooting position data PS, and depth data DP in synchronization with (more preferably, at the same timing as) the frame period of the two-dimensional video data DG. Hereinafter, the three-dimensional point cloud data TQ divided for each frame is referred to as the three-dimensional frame point cloud TQ(n) using the frame number n.
[0015] Here, the point cloud accumulation process executed by the data analysis unit 102 will be described. The three-dimensional frame point cloud TQ(n) in a certain frame number n includes multiple point coordinates, which are the three-dimensional position coordinates of points on the surface of the object group 20. Similarly, the three-dimensional frame point cloud TQ(n+1) in the next frame number n+1 also includes multiple point coordinates. Here, when the data acquisition unit 101 moves between the two frames, the position of the reference data acquisition unit 101 differs, and therefore, generally, the point coordinates included in the three-dimensional frame point cloud TQ(n) do not match any of the point coordinates included in the three-dimensional frame point cloud TQ(n+1).
[0016] Therefore, the data analysis unit 102 uses a technique called registration to align the absolute spatial positions of the point coordinates included in the three-dimensional frame point cloud TQ(n+1) so that they match the point coordinates of the three-dimensional frame point cloud TQ(n) as closely as possible (hereinafter referred to simply as "alignment"), and outputs the result as three-dimensional point cloud data TP. As a result, the point coordinates included in the three-dimensional frame point clouds TP(n) and TP(n+1) largely match. Furthermore, point coordinates included in only one of the three-dimensional frame point clouds TP(n) and TP(n+1) generally correspond to point coordinates in a blind spot in the other. This process is called point cloud accumulation processing. Note that in the example of FIG. 1, the data analysis unit 102 is included in the data acquisition device 1, but the data analysis unit 102 may also be included in the automatic object counting device 2.
[0017] The data transmission unit 104 transmits the two-dimensional video data DG, the three-dimensional point cloud data TP, the shooting position data PS, and the depth data DP to the data reception unit 201 of the automatic object counting device 2 via the network NW.
[0018] The data receiving unit 201 of the automatic object counting device 2 analyzes the data received from the data transmitting unit 104 using the subsequent object counting unit 202, but the received data may be temporarily stored in a storage unit (not shown) so that it can be analyzed at any time. This allows on-site photography work to continue without interrupting data reception, thereby improving on-site efficiency.
[0019] The object counting unit 202 includes a feature region recognition unit 222 (feature region recognition process), a three-dimensional shape recognition unit 224 (three-dimensional shape recognition process), an object position estimation unit 226 (object position estimation process), and an estimated count value calculation unit 228. The feature region recognition unit 222 performs image analysis on the two-dimensional frame image DG(n) of each frame, and estimates a bounding box BB (feature region, see FIG. 2 ) that represents the features of the recognition target object 22.
[0020] In the example shown in FIG. 1 , the recognition target object 22 is cylindrical, and therefore the image of its end face appears as a circle or an ellipse in the two-dimensional frame image DG(n). Therefore, the rectangular frame surrounding these circles or ellipses is called a bounding box BB (see FIG. 2 ). The kth bounding box (where k = 1, ..., k_max) in frame number n is represented as bounding box BB(n, k). Note that the number of bounding boxes k_max differs for each frame number n. The method for detecting the end face of the recognition target object 22 may be an object detection method using deep learning, or an object detection method using HoG features or the like.
[0021] These object detection methods of the feature region recognition unit 222 are preferably implemented as programs as analytical models so that detection accuracy can be improved by machine learning. Furthermore, the implemented analytical models may be machine-learned as needed, or may be supplied externally as update modules.
[0022] The three-dimensional shape recognition unit 224 recognizes the three-dimensional shape and dimensions of the recognition target objects 22 based on profile data indicating the shapes of the recognition target objects 22. The object position estimation unit 226 estimates the position and orientation of each recognition target object 22 based on the recognition results of the feature region recognition unit 222 and the three-dimensional shape recognition unit 224. The estimated count value calculation unit 228 calculates a provisional count value CNTP (details will be described later) which is a provisional value of the quantity of the recognition target objects 22 based on the estimation result of the object position estimation unit 226.
[0023] The automatic object counting device 2 has multiple profile data in the three-dimensional shape recognition unit 224 and multiple analytical models in the characteristic area recognition unit 222 depending on the type of object 22 to be recognized, and counts the objects and estimates their positions by switching between the analytical model and profile data according to specifications.
[0024] The count value correction unit 203 also includes a confidence factor calculation unit 232 and a correction unit 234. The confidence factor calculation unit 232 calculates a confidence factor PR that indicates the degree to which bounding boxes BB in multiple frames correspond to the same recognition target object 22. The correction unit 234 also corrects the provisional count value CNTP to obtain a more reliable count value CNT.
[0025] The count value transmission unit 204 outputs the count value CNT calculated by the count value correction unit 203 and the overall image data IGD generated by the count value correction unit 203 by superimposing the frames of the two-dimensional video data DG to the data acquisition device 1. The overall image data IGD will be described in detail later.
[0026] The counting result registration and notification unit 205 stores the count value CNT calculated by the count value correction unit 203 or the count value CNT corrected by the data correction device 3 in a counting result database 206. The counting result registration and notification unit 205 also notifies a preset system of the count value CNT of the recognition target object 22.
[0027] The calculated value display unit 106 of the data correction device 3 displays the overall image data IGD and the count value CNT, which will be described in detail later, notified by the count value transmission unit 204 of the automatic object counting device 2. The calculated value correction unit 108 notifies the automatic object counting device 2 of an instruction to correct the counter value CNT input by the user based on the display of the overall image data IGD, or to add a bounding box of the recognition target object 22 to be detected. This allows the user to issue a command to correct the count value CNT or to add the recognition target object 22 to be detected when the count value CNT differs from the number of recognition target objects 22 displayed as the overall image data IGD.
[0028] FIG. 2 is a diagram illustrating an example of a two-dimensional frame image DG(n). FIG. 2 shows two-dimensional frame images DG(na) and DG(nb) for frame numbers na and nb. These images include multiple object images 32, which are images of the target object 22. FIG. 2 also illustrates an example of a bounding box BB extracted from each image. However, the illustrated two-dimensional frame image DG(na) also includes an erroneously extracted bounding box 38, which is an image of an edge of the target object 22 that is not actually included. For example, if a ring-shaped foreign object is present around the object group 20 (see FIG. 1 ) and the target object 22 mistakenly recognizes the foreign object as an edge of the target object 22, the erroneously extracted bounding box 38 will appear.
[0029] The bounding boxes BB in these two-dimensional frame images DG(na) and DG(nb) include those for the same recognition target object 22. The count value corrector 203 refers to the three-dimensional point cloud data TP and integrates the bounding boxes BB for the same recognition target object 22 that appear in multiple frames, thereby counting the number of recognition target objects 22 included in the object group 20 (see FIG. 1). Details of this will be described later.
[0030] FIG. 3 is a block diagram of a computer 980. The data acquisition device 1 and the automatic object counting device 2 shown in FIG. 1 each include one or more computers 980 shown in FIG. 1. In FIG. 3, the computer 980 includes a CPU 981, a storage unit 982, a communication I / F (interface) 983, an input / output I / F 984, and a media I / F 985. Here, the storage unit 982 includes a RAM 982a, a ROM 982b, and an HDD 982c. The communication I / F 983 is connected to a communication circuit 986. The input / output I / F 984 is connected to an input / output device 987. The media I / F 985 reads and writes data from a recording medium 988.
[0031] The ROM 982b stores an IPL (Initial Program Loader) executed by the CPU, etc. The HDD 982c stores application programs, various data, etc. The CPU 981 executes application programs, etc. loaded from the HDD 982c to the RAM 982a, thereby realizing various functions. The internal structure of the data acquisition device 1 and the automatic object counting device 2 shown in FIG. 1 is shown as a block diagram of the functions realized by application programs, etc.
[0032] <Operation of First Embodiment> (Data Acquisition Process) Next, the operation of this embodiment will be described. Fig. 4 is a flowchart of a data acquisition process routine executed by the data acquisition device 1. When the process proceeds to step S201 in Fig. 4, the data acquisition unit 101 acquires IMU data DI. Next, when the process proceeds to step S202, the data analysis unit 102 acquires depth data DP based on the three-dimensional point cloud data TP.
[0033] Next, when the process proceeds to step S203, the data acquisition unit 101 acquires the two-dimensional video data DG. Next, when the process proceeds to step S204, the data analysis unit 102 acquires the shooting position data PS based on the IMU data DI, the three-dimensional point cloud data TP, and the two-dimensional video data DG. Next, when the process proceeds to step S205, the data analysis unit 102 performs point cloud accumulation processing on the three-dimensional point cloud data TQ and acquires the resulting three-dimensional point cloud data TP.
[0034] Next, when the process proceeds to step S206, the data analysis unit 102 performs encoding processing on the two-dimensional video data DG. Next, when the process proceeds to step S207, the data analysis unit 102 divides the three-dimensional point cloud data TP, the shooting position data PS, and the depth data DP into frame units in synchronization with the frame timing of the two-dimensional video data DG.
[0035] Next, when the process proceeds to step S208, the data analysis unit 102 determines whether the user has performed a predetermined termination operation. If the determination here is "No," the operations of steps S201 to S208 are repeated again. On the other hand, if the user has performed a predetermined termination operation, the determination is "Yes," and the process proceeds to step S209. Here, the data transmission unit 104 transmits the above-mentioned two-dimensional video data DG, three-dimensional point cloud data TP, shooting position data PS, and depth data DP to the automatic object counting device 2, and the process of this routine ends.
[0036] (Counting Process) Figure 5 is a flowchart of a counting process routine executed by the automatic object counting device 2. When the process proceeds to step S301 in Figure 5, the object counting unit 202 estimates a bounding box BB (see Figure 2) in each two-dimensional frame image DG(n) and obtains the number k_max of bounding boxes in each frame. Next, when the process proceeds to step S302, the object counting unit 202 determines whether or not there is a frame number that has not yet been selected (in the process of step S303, which will be described later) among all the frame numbers.
[0037] If the determination in step S302 is "Yes," the process proceeds to step S303, where the object counting unit 202 selects one frame number that has not yet been selected. The selected frame number will hereinafter be referred to as "frame number ns." Next, in step S304, the process determines whether or not there is a bounding box BB to which an identification number BID has not been assigned in the two-dimensional frame image DG(ns) corresponding to frame number ns.
[0038] The identification number BID is an identification number assigned in common to one or more bounding boxes BB(n, k) that are presumed to have been recognized as corresponding to the same recognition target object 22 (see FIG. 1). The identification number BID assigned to a bounding box BB(n, k) may be expressed as "identification number BID(n, k)." If the determination in step S304 is "Yes," the process proceeds to step S305, where the object counting unit 202 selects one bounding box BB in the two-dimensional frame image DG(ns) that has not yet been assigned an identification number BID. The selected bounding box BB will hereinafter be referred to as the selected bounding box BB(ns, ks) (where k = 1, ..., k_max).
[0039] Next, when the process proceeds to step S306, the object counting unit 202 searches for the maximum likelihood identification number BID_M. The details of this process will now be described. First, among the 3D frame point group TP(n) for frame number n, the point group corresponding to the bounding box BB(n,k) is referred to as the bounding box corresponding point group BP(n,k). That is, the bounding box corresponding point group BP(n,k) is a set of point coordinates that can be estimated to be point coordinates on the surface of the recognition target object 22 (see FIG. 1) associated with the bounding box BB(n,k) based on the shape (e.g., a cylinder) of the recognition target object 22 (see FIG. 1). The object position estimation unit 226 (see FIG. 1) recognizes the position and orientation of each recognition target object 22 by extracting the bounding box corresponding point group BP(n,k) corresponding to each bounding box BB(n,k). The point group corresponding to the selection bounding box BB(ns,ks) is referred to as the selection bounding box corresponding point group BP(ns,ks).
[0040] The object counting unit 202 calculates the overlap MUL(BID) between the bounding box corresponding point group BP(n,k) and the selected bounding box corresponding point group BP(ns,ks) for all bounding boxes BB(n,k) that have already been assigned an identification number BID. Here, the overlap MUL(BID) is the proportion of point coordinates belonging to the bounding box corresponding point group BP(n,k) of the identification number BID that match the point coordinates belonging to the selected bounding box corresponding point group BP(ns,ks). Then, the count value correction unit 203 searches for the largest overlap MUL(BID) among all the identification numbers BID. The identification number BID associated with the searched overlap MUL(BID) is called the most likely identification number BID_M.
[0041] Next, when the process proceeds to step S307, the object counting unit 202 determines whether the overlap MUL(BID_M) associated with the maximum likelihood identification number BID_M is equal to or greater than a predetermined threshold MULth. If the determination is "No" here, the process proceeds to step S308. A "No" determination in step S307 means that the selected bounding box corresponding point group BP(ns,ks) has few overlapping point coordinates with the bounding box corresponding point group BP(n,k) of another bounding box BB(n,k) to which an identification number BID has already been assigned.
[0042] In other words, the selected bounding box BB(ns,ks) is estimated to be a bounding box BB detected for a different object 22 (see FIG. 1) from the other bounding boxes BB(n,k) to which identification numbers BID have already been assigned. Therefore, in step S308, the object counting unit 202 generates a new identification number BID (referred to as a new identification number BID_n) and assigns it to the selected bounding box BB(ns,ks). The reliability PR(BID_n) of the new identification number BID_n is also set to "1."
[0043] On the other hand, if the determination in step S307 is "Yes," the process proceeds to step S309. In this case, the selected bounding box BB(ns, ks) is presumed to be a bounding box BB detected for the same recognition target object 22 as one or more other bounding boxes BB(n, k) to which the maximum likelihood identification number BID_M has already been assigned. Therefore, in step S309, the object counting unit 202 assigns the maximum likelihood identification number BID_M to the identification number BID(ns, ks) of the selected bounding box BB(ns, ks) and increases the confidence factor PR(BID_M) by "1."
[0044] The processes of steps S302 to S309 are repeated in the same manner, assigning identification numbers BID to all bounding boxes BB(n, k) detected in all frame numbers n, and calculating a confidence factor PR(BID) for each of these identification numbers BID. When the process then proceeds to step S302, a "No" determination is made and the process proceeds to step S310. Note that the total number of identification numbers BID already assigned at this point is a provisionally estimated number representing the number of objects 22 to be recognized (see FIG. 1). Therefore, the total number of identification numbers BID is referred to as the provisional count value CNTP. In other words, the estimated count value calculation unit 228 of the object counting unit 202 has the function of calculating the provisional count value CNTP by counting the total number of identification numbers BID.
[0045] Next, in step S310, the count value correction unit 203 calculates the hit value Q of all point coordinates. The details of this calculation are explained below. When the number of all point coordinates belonging to the 3D frame point cloud TP(n) in frame number n is defined as p_max, the point coordinates belonging to the 3D frame point cloud TP(n) are called point coordinates TTP(n,p) (where p = 1, ..., p_max). As described above, as a result of the point cloud accumulation process in step S205 (see FIG. 4), the point coordinates TTP(n,p) may have the same value in multiple frames. When point coordinates TTP(n,p) with the same value exist in one or multiple frames, the number of these frames is called the "hit value Q." Furthermore, the hit value of the point coordinates TTP(n,p) is called the hit value Q(n,p). In step S310, the count value correction unit 203 calculates the hit value Q(n,p) of all point coordinates TTP(n,p) in all frames.
[0046] Next, when the process proceeds to step S311, the count value correction unit 203 calculates an average hit value Qave(BID) corresponding to all identification numbers BID. The details of this process will be explained. First, for all identification numbers BID, the count value correction unit 203 lists the bounding box corresponding point groups BP(n, k) corresponding to the bounding boxes BB(n, k) assigned to each identification number BID. Next, the count value correction unit 203 extracts the hit values Q of the point coordinates belonging to the listed bounding box corresponding point groups BP(n, k). The average of all the extracted hit values Q becomes the average hit value Qave. The average hit value Qave for a certain identification number BID is called the average hit value Qave(BID).
[0047] Next, when the process proceeds to step S312, the correction unit 234 in the count value correction unit 203 initializes the count value CNT to 0. Next, when the process proceeds to step S312, the correction unit 234 determines whether or not the process of step S314 has been executed for all identification numbers BID.
[0048] If the determination here is "No," the process proceeds to step S314, where the correction unit 234 selects one unprocessed identification number BID and calculates its evaluation value EV(BID). Here, the evaluation value EV(BID) is a value calculated by "EV(BID) = PR(BID) x Qave(BID)." Next, when the process proceeds to step S315, the correction unit 234 determines whether the evaluation value EV(BID) is equal to or greater than a predetermined threshold value EVth.
[0049] If the determination here is "Yes," the process proceeds to step S316. In this case, the bounding box BB(n, k) assigned the identification number BID is a valid bounding box that actually corresponds to the recognition target object 22 (see FIG. 1), and the identification number BID becomes a valid identification number. Therefore, the correction unit 234 increments the count value CNT by "1." Then, the process returns to step S313.
[0050] On the other hand, if the determination in step S315 is "No," step S316 is skipped and the process returns to step S313. In this case, it is presumed that the bounding box BB(n, k) assigned the identification number BID does not actually correspond to the recognition target object 22 (see FIG. 1), but is the erroneously extracted bounding box 38 (see FIG. 2). In other words, the identification number BID becomes an invalid identification number. In this way, steps S314 to S316 are executed for all identification numbers BID, and if the process then returns to step S313, the determination here is "Yes," and the process proceeds to step S317.
[0051] In step S317, the count value transmission unit 204 transmits the count value CNT and the overall image data IGD to the data correction device 3. Here, the overall image data IGD is an image of an entire object group 20 (see FIG. 1) viewed from above, and is generated by the count value correction unit 203 by superimposing each frame of the two-dimensional video data DG. This completes the processing of this routine.
[0052] 6 shows an example of a bounding box BB that is the target of counting. In this figure, the erroneously extracted bounding box 38 shown in FIG. 2 is excluded from the counting because its evaluation value EV(BID) is less than the threshold EVth.
[0053] 7 is a diagram showing an example of a display screen in the calculated value display unit 106. The display screen 310 shown in the figure includes an entire image display section 312, a count value display section 314, and a cursor 316.
[0054] The overall image display section 312 overlaps the entire display screen 310 and displays the contents of the overall image data IGD supplied from the automatic object counting device 2. Here, on the display screen 310, an area corresponding to the bounding box corresponding point cloud BP(n, k) that corresponds to the valid identification number BID is highlighted. In Figure 6, the highlighted portion is displayed with a dot.
[0055] The count value display unit 314 displays the count value CNT. The cursor 316 is a rectangular frame image that is displayed on the display screen in response to user operation, and the user can freely adjust its position and size. In the illustrated example, a portion where a count loss is thought to have occurred is present in the area where the cursor 316 is displayed. In such a case, the user can position the cursor 316 at the portion where a count loss is thought to have occurred, as shown, and perform a predetermined operation to instruct the automatic object counting device 2 to re-execute the counting process.
[0056] When a command to re-execute the counting process is issued, the automatic object counting device 2 is notified of this, and the automatic object counting device 2 re-executes the above-mentioned counting process routine ( FIG. 5 ). However, when re-executing the counting process routine, the count value correction unit 203 sets the above-mentioned threshold value MULth or threshold value EVth to a lower value compared to when the routine was initially executed, so that a bounding box corresponding point group BP(n, k) corresponding to a valid identification number BID is generated in the portion where the cursor 316 is displayed.
[0057] 7 is an example of a display screen that is displayed on the calculated value display unit 106 after the automatic object counting device 2 re-executes the counting process routine. Similar to the display screen 310, the display screen 320 includes an entire image display unit 312 and a count value display unit 314.
[0058] However, the overall image display unit 312 displays the overall image data IGD based on the result of re-executing the counting process routine. In the illustrated example, the missing count on the display screen 310 has been resolved on the display screen 320. As a result, the contents of the count value display unit 314 on the display screen 320 have also been updated from those on the display screen 310.
[0059] 7 , when the entire image data IGD in which the recognition target object 22 has been correctly recognized is acquired, the user performs a predetermined registration operation. When the registration operation is performed, the counting result registration and notification unit 205 stores the count value CNT in the counting result database 206.
[0060] Effect of the Embodiment As described above, according to the embodiment, the automatic material counting system 10 includes a feature region recognition unit 222 that recognizes feature regions (BB) corresponding to the target objects 22 from two-dimensional image data (DG) obtained by photographing an object group 20 including a plurality of target objects 22, a three-dimensional shape recognition unit 224 that recognizes the three-dimensional shapes of the target objects 22, and an object position estimation unit 226 that estimates the position of each target object 22 based on the recognition results of the feature region recognition unit 222 and the three-dimensional shape recognition unit 224. In this way, the position of each target object 22 is estimated based on the recognition results of the feature region recognition unit 222 and the three-dimensional shape recognition unit 224, so that the position of the target objects 22 can be appropriately estimated. Furthermore, being able to appropriately estimate the position of the target objects 22 also has the effect of improving the accuracy when counting the target objects 22.
[0061] Furthermore, it is more preferable that the object position estimation unit 226 recognizes the position of each recognition target object 22 by extracting point coordinates corresponding to the characteristic region (BB) from the three-dimensional point cloud data TP including point coordinates on the surface of the object group 20. This makes it possible to associate the three-dimensional point cloud data TP with the characteristic region (BB), and to more appropriately estimate the position of the recognition target object 22.
[0062] Furthermore, since the two-dimensional image data (DG) is divided into multiple frames, it is more preferable to further include a data analysis unit 102 that divides the three-dimensional point cloud data TP in synchronization with the two-dimensional image data (DG), which makes it even easier to associate the three-dimensional point cloud data TP with the two-dimensional image data (DG).
[0063] Furthermore, it is even more preferable that the automatic material counting system 10 further comprises a confidence factor calculation unit 232 that calculates, for each feature region (BB), a confidence factor PR that indicates the degree to which the feature region (BB) recognized corresponding to a plurality of frames by the feature region recognition unit 222 corresponds to the same recognition target object 22. This makes it possible to obtain the confidence factor PR for each feature region (BB).
[0064] Furthermore, it is more preferable that the automatic material counting system 10 further comprises an estimated count value calculation unit 228 that calculates a provisional count value CNTP of the recognition target object 22 based on the characteristic region (BB) estimated by the characteristic region recognition unit 222 and the recognition result of the three-dimensional shape recognition unit 224, and a correction unit 234 that obtains a count value CNT that is a result of correcting the provisional count value CNTP based on the confidence factor PR. This makes it possible to appropriately count the quantity of the recognition target object 22.
[0065] Furthermore, it is more preferable that the automatic material counting system 10 further comprises a calculated value display unit 106 that displays an image of the recognition target object 22 corresponding to the count value CNT, and a calculated value correction unit 108 that commands the correction of the count value CNT based on a user operation. This allows the user to command the correction of the count value CNT when the count value CNT differs from the number of the recognition target objects 22.
[0066] Figure 8 is a sequence diagram illustrating another overall operation of the automatic material counting system 10 according to the embodiment. The automatic material counting system 10 in Figure 8 is composed of a data acquisition device 1 which is a mobile terminal such as a smartphone, an automatic object counting device 2 which is a network server, and a data correction device 3 which is a network terminal such as a PC. Note that although Figure 8 shows the case of only one data correction device 3, the system may be composed of multiple data correction devices 3.
[0067] In the automatic object counting device 2, first, the feature area recognition unit 222 (object counting unit 202) notifies the data acquisition device 1 of a list (at least one) of analytical models that have completed learning and can detect the recognition target object 22 that can be used (step S80).
[0068] The data acquisition device 1 displays a list of analytical models and selects an analytical model specified by the user that corresponds to the recognition target object 22 (step S81). At this time, the data acquisition device 1 preferably displays an image of the recognition target object 22 to be detected for each analytical model so that the user can easily specify the model. Furthermore, if there is no analytical model that corresponds to the recognition target object 22 to be detected, a message to that effect is displayed.
[0069] Next, the data acquisition device 1 acquires a 2D image and a range image of the object group 20 (step S82), and associates the 2D image with the range image (step S83). These steps S82 and S83 are the operations of the data acquisition unit 101 and the data analysis unit 102 of the data acquisition device 1, and have been explained in FIG. 4, so explanations thereof will be omitted here.
[0070] When the data acquisition device 1 finishes capturing the image of the object group 20, it transmits the model name of the analysis model specified by the user, the two-dimensional video data DG, the three-dimensional point cloud data TP, the shooting position data PS, and the depth data DP to the automatic object counting device 2 (step S84).
[0071] The automatic object counting device 2 (data receiving unit 201) stores the model name, two-dimensional video data DG, three-dimensional point cloud data TP, shooting position data PS, and depth data DP received from the data acquisition device 1 in a memory unit not shown, and determines whether the received model name is an analysis model supported by the feature area recognition unit 222 (step S85).
[0072] If an unsupported analytical model is specified (if step S85 is negative), the automatic object counting device 2 notifies the operator of the automatic object counting device 2 to prepare an analytical model (machine learning of the analytical model).
[0073] Then, the automatic object counting device 2 performs a learning process for the analytical model (step S86). Even while performing the learning process for the analytical model, the automatic object counting device 2 continues to receive the model name of the analytical model, the two-dimensional video data DG, the three-dimensional point cloud data TP, the shooting position data PS, and the depth data DP from the data acquisition device 1, and stores the received data in the storage unit.
[0074] When a supported analytical model is specified or when preparation of the analytical model is complete, the automatic object counting device 2 extracts bounding boxes from the 2D image using the analytical model and integrates the extracted bounding boxes of the 2D image into 3D space (step S87).The automatic object counting device 2 then detects and automatically counts valid bounding boxes (step S88).The processes of steps S87 and S88 are the processes of the object counting unit 202 and the count value correction unit 203 described in FIG. 5, and detailed description thereof will be omitted.
[0075] The automatic object counting device 2 transmits the calculated count value CNT and the overall image data IGD to at least one data correction device 3 (step S89). This allows the multiple data correction devices 3 to add or delete bounding boxes BB and correct the count value CNT in parallel.
[0076] The data correction device 3 (calculated value display unit 106) displays the entire image data IGD and the count value CNT so that the user can correct the count value CNT and add or delete a bounding box BB (step S810).
[0077] The data correction device 3 (calculated value correction unit 108) notifies the automatic object counting device 2 of an instruction to correct the counter value CNT input by the user based on the display of the overall image data IGD, or to add a bounding box of the recognition target object 22 to be detected (step S811).
[0078] In response to the notification in step S811, the automatic object counting device 2 (object count unit 202 and count value correction unit 203) modifies the threshold value EVth for determining valid bounding boxes or modifies the analytical model (additional learning) (step S812), redetects valid bounding boxes, and performs counting again (step S813).
[0079] The automatic object counting device 2 (counting result registration and notification unit 205) stores the count value (count value CNT) obtained in step S813 in the counting result database 206 as the detection result, and notifies the predetermined system (step S814).
[0080] The above describes an example in which a valid boundary box is re-detected in step S813, but the counter value CNT notified in step S811 may be stored in the counting result database 206 as the detection result and notified to a pre-set system (step S814).
[0081] In addition, the count value CNT and the overall image data IGD processed in step S813 may be sent to the data correction device 3 (step S89), and the processing of steps S812 and S813 may be repeated until there are no more addition / correction instructions in step S811.
[0082] The operation sequence of the automatic material counting system 10 explained in Figure 8 allows the confirmation and correction of detection results to be performed at multiple data correction terminals 3, eliminating the need for on-site confirmation and reducing the number of hours of work required in a harsh on-site environment. In addition, the confirmation and correction tasks can be shared among multiple people, improving work efficiency.
[0083] Furthermore, the automatic object counting device 2 notifies a pre-registered system of the detection results of the count value of the object to be recognized 22, so if the count value of the scaffolding materials is notified to a leasing company, the quantity of the scaffolding materials can be known in advance when they are returned, making it possible to prepare for acceptance and allocate personnel.
[0084] Furthermore, even if the pre-learning of the analysis model of the automatic object counting device 2 has not been completed, data acquisition (photography work) of the recognition target object 22 such as other scaffolding materials can be performed, thereby improving on-site efficiency. Also, since the operator of the automatic object counting device 2 is notified to prepare an analysis model (machine learning of the analysis model), a decrease in work efficiency can be prevented.
[0085] Next, a method for updating the analytical model of the automatic material counting system 10 according to the embodiment will be described with reference to Figure 9. The update method of the embodiment updates the analytical model when it shortens the manual correction time, so that unnecessary updates that do not provide any benefits can be eliminated and only effective updates can be selected.
[0086] FIG. 9 is a process flow diagram of the automatic object counting device 2, in which the analytical model currently in use is referred to as the first model, and the analytical model for which it is determined whether or not an update is possible is referred to as the second model.
[0087] The automatic object counting device 2 (data receiving unit 201) acquires analysis data (two-dimensional video data DG, three-dimensional point cloud data TP, shooting position data PS, and depth data DP) to be processed by the object counting unit 202 (step S91).
[0088] The automatic object counting device 2 performs parallel processing of steps S92 to S95, in which the analysis data acquired in step S91 is processed using a first model, and steps S96 to S99, in which the analysis data acquired in step S91 is processed using a second model.
[0089] First, a process (object detection process) for detecting a bounding box BB by the object counting unit 202 of the first model (step S93) is performed, and a process (object detection process) for detecting a bounding box BB by the object counting unit 202 of the second model (step S96) is performed.
[0090] Then, the bounding boxes detected in step S93 are integrated, and a first count value, which is the count value of the bounding boxes detected by the first model, and the position of the bounding boxes are estimated (step S94).Similarly, the bounding boxes detected in step S96 are integrated, and a second count value, which is the count value of the bounding boxes detected by the second model, and the position of the bounding boxes are estimated (step S97).
[0091] Furthermore, the bounding box integrated in step S93 is manually corrected (step S94), and a first correction time, which is the correction time, is calculated (step S94). Similarly, the bounding box integrated in step S97 is manually corrected (step S98), and a second correction time, which is the correction time, is calculated (step S99). The processes of steps S93 and S94 and the processes of steps S93 and S94 are the processes of the object counting unit 202 and the count value correcting unit 203 described in FIG. 5, and detailed description thereof will be omitted.
[0092] Here, the automatic object counting device 2 determines whether the correction time has been shortened by changing the analytical model. Specifically, it determines whether the second correction time calculated in step S99 is shorter than the first correction time calculated in step S95 (step S910).
[0093] If the correction time is shortened (Yes in S910), the analytical model of the object counting unit 202 is updated from the first model to the second model, and if the correction time is not shortened (No in S910), the processing ends without updating to the second model.
[0094] FIG. 9 shows a flow in which the automatic object counting device 2 processes steps S92 to S95 and steps S96 to S99 in parallel, but the automatic object counting device 2 may also process steps S92 to S95 and steps S96 to S99 sequentially.
[0095] [Modifications] The present invention is not limited to the above-described embodiment, and various modifications are possible. The above-described embodiment is an example for explaining the present invention in an easy-to-understand manner, and is not necessarily limited to an embodiment having all of the described configurations. Furthermore, other configurations may be added to the configurations of the above-described embodiment, and some of the configurations may be replaced with other configurations. Furthermore, the control lines and information lines shown in the figures are those considered necessary for explanation, and do not necessarily represent all control lines and information lines necessary in the product. In reality, it can be assumed that almost all configurations are interconnected. Possible modifications of the above-described embodiment include, for example, the following.
[0096] (1) In the above embodiment, a three-dimensional sensor (not shown) such as a LiDAR (Light Detection and Ranging) is provided in the data acquisition unit 101 to acquire the three-dimensional point cloud data TP. However, the method of acquiring the three-dimensional point cloud data TP is not limited to using a three-dimensional sensor. For example, the three-dimensional point cloud data TP may be calculated using a technique for acquiring three-dimensional point cloud data from multiple two-dimensional data, such as photogrammetry.
[0097] (2) In the above embodiment, the alignment between the three-dimensional frame point clouds TQ(n) is performed by registration, but the alignment may be performed by a method other than registration. For example, the alignment between the three-dimensional frame point clouds TQ(n) may be performed based on the IMU data DI.
[0098] (3) The hardware of the automatic material counting system 10 in the above embodiment can be realized by a general-purpose computer. Therefore, the flowcharts shown in FIGS. 4 and 5 and other programs for executing the various processes described above may be stored on a storage medium (a computer-readable storage medium on which a program is recorded) or distributed via a transmission line.
[0099] (4) In the above embodiment, the processes shown in FIGS. 4 and 5 and the other processes described above are described as software processes using a program. However, some or all of these processes may be replaced with hardware processes using an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array), etc.
[0100] (5) The various processes executed in the above embodiment may be executed by a server computer via a network (not shown), and the various data stored in the above embodiment may also be stored in the server computer.
[0101] REFERENCE SIGNS LIST 1 Data acquisition device 2 Automatic object counting device 3 Data correction device 10 Automatic material counting system 20 Group of objects 22 Object to be recognized 102 Data analysis unit 106 Calculation result display unit 108 Calculation result correction unit 222 Feature area recognition unit (feature area recognition process) 224 Three-dimensional shape recognition unit (three-dimensional shape recognition process) 226 Object position estimation unit (object position estimation process) 228 Estimated count value calculation unit 232 Certainty factor calculation unit 234 Correction unit BB Bounding box (feature area) DG Two-dimensional video data (two-dimensional image data) NW Network PR Certainty factor TP, TQ Three-dimensional point cloud data CNT Count value CNTP Provisional count value
Claims
1. An automatic material counting system comprising: a data acquisition device that acquires image information of a plurality of materials and distance image information of the materials associated with the image information; an automatic object counting device that receives the image information and the distance image information from the data acquisition device via a network, extracts bounding boxes indicating the materials from the image information and the distance image information using an analytical model, integrates the bounding boxes into a three-dimensional space, and determines the position or number of the materials; and a data correction device that corrects the position or number of the materials determined by the automatic object counting device based on overall image data obtained by overlaying each frame of the image information, and instructs the automatic object counting device.
2. An automatic material counting system as described in claim 1, wherein the automatic object counting device extracts a bounding box indicating the material from the image information and the distance image information using an analytical model different from the analytical model, integrates the bounding box into three-dimensional space, and determines the position or number of the material; obtains a correction time for the position or number obtained by the data correction device; and if the obtained correction time is shorter than the correction time for the original analytical model, updates the analytical model to the different analytical model.
3. An automatic material counting system as claimed in claim 1, characterized in that the automatic object counting device, when determining the location or number of the materials, notifies a pre-registered system of the number of counted materials.
4. An automatic material counting system as described in claim 1, wherein the automatic object counting device notifies the data acquisition device of a list of available analytical models, and if the model name received from the data acquisition device together with the image information and the distance image information differs from the listed analytical models, the automatic material counting system learns the analytical model with the model name received from the data acquisition device and then extracts a bounding box representing the material.
5. An automatic material counting system as described in claim 1, wherein the automatic object counting device notifies the data acquisition device of a list of available analytical models, and if the model name received from the data acquisition device together with the image information and the distance image information differs from the listed analytical model, temporarily stores the image information and the distance image information, and receives the image information and the distance image information of other materials.
6. An automatic material counting method comprising: a step in which a data acquisition device acquires image information of a plurality of materials and distance image information of the materials associated with the image information; a step in which an automatic object counting device receives the image information and the distance image information from the data acquisition device via a network; a step in which the automatic object counting device extracts bounding boxes indicating the materials from the image information and the distance image information using an analytical model, and integrates the bounding boxes into a three-dimensional space to determine the positions or number of the materials; and a step in which a data correction device corrects the positions or number of the materials determined by the automatic object counting device based on overall image data in which each frame of the image information is overlaid, and instructs the automatic object counting device to make the correction.
Citation Information
Patent Citations
Three-dimensional panoramic scene information processing method and device, and interaction method and device
CN110321048A
Multi-category building material video counting method and system, and counting device
CN115171011A
Scaffold material counting device and method, and scaffold material management system and method
JP2021026697A
Method and apparatus for object detection integrating 2d image recognition and 3D scene reconstruction
US20210019906A1
