Automatic material counting method and automatic material counting method
By integrating 2D and 3D data for object counting and enabling remote correction, the system addresses the challenges of accurate material counting, enhancing precision and efficiency.
Patent Information
- Application Number
- JP2023046977
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-10-04
- Estimated Expiration
- 2043-03-23
AI Technical Summary
Existing automatic material counting systems struggle to accurately estimate the position and number of objects, particularly when they do not fit within a single image, and require significant manual intervention for re-collection and re-learning.
The system integrates two-dimensional image data and three-dimensional point cloud data to synchronize counting results, using bounding boxes and correction mechanisms to enhance accuracy, and allows remote correction and management of counting results.
This approach enables precise estimation of object positions and numbers, improving counting accuracy and reducing the need for on-site manual intervention, facilitating efficient remote management and correction.
Smart Images

Figure 2024136027000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an automatic material counting device and an automatic material counting method. [Background technology]
[0002] In recent years, with the decline in the number of workers due to the declining birthrate and aging population, technology has been proposed to count the number of various material objects to replace visual confirmation work such as checking stock levels of materials. For example, the abstract of the following Patent Document 1 states, "...a counting processing unit that detects a bounding box for each material contained in the input image data based on the input image data, outputs whether each bounding box is a material of a predetermined type, and counts the number of materials of each type..." [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent Publication No. 2021-26697 Summary of the Invention [Problem to be solved by the invention]
[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 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 position or number of materials. [Means for solving the problem]
[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 indicating the materials from the image information and the distance image information using an analytical model, and integrates the bounding boxes into three-dimensional space to determine 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 overlaid, and instructs the automatic object counting device. Effect of the Invention
[0006] According to the present invention, the positions or the number of objects to be recognized, such as materials, can be appropriately estimated. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 is a block diagram of an automatic material counting system according to an embodiment. [Diagram 2] FIG. 13 is a diagram showing an example of a two-dimensional frame image of a material. [Diagram 3] FIG. 1 is a block diagram of a computer. [Figure 4] 4 is a flowchart of a data acquisition processing routine executed in the data acquisition device. [Diagram 5] 4 is a flowchart of a counting process routine executed in the automatic object counting device. [Figure 6] FIG. 13 is a diagram illustrating an example of a bounding box that is the target of counting. [Figure 7] FIG. 13 is a diagram showing an example of a display screen in a calculation result display unit. [Figure 8] FIG. 11 is a sequence diagram illustrating another overall operation of the automatic material counting system. [Figure 9] FIG. 13 is a diagram illustrating a method for updating an analysis model of the automatic material counting system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] [Outline of the embodiment] In general, automatic counting of objects using image analysis AI requires recollection and relearning of data until the target accuracy is achieved, which requires a large amount of man-hours. In addition, in the above-mentioned Patent Document 1, since no measures are taken for the case where the counting target objects do not fit in one image, the method of shooting and the target objects are limited. Therefore, in the embodiment described below, two-dimensional image data and three-dimensional point cloud data are acquired synchronously (more preferably simultaneously), and the counting result (boundary box) based on the two-dimensional image data and the three-dimensional point cloud information are cross-referenced, so that the number of counting target objects is appropriately counted even if the counting target objects do not fit in one image. In addition, in the automatic material counting system of the embodiment, the automatic counting result can be corrected from a remote location.
[0009] [First embodiment] Configuration of the First Embodiment FIG. 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 quantity 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 of which are 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 regards 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 by 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 the three-dimensional point cloud data, and notifies the leasing company of the counting result of the recognition target objects 22. This facilitates management of materials to be returned.
[0011] The data acquisition device 1 comprises a data acquisition unit 101, a data analysis unit 102, and a data transmission unit 104, and the data correction device 3 comprises a calculation value display unit 106 and a calculation value correction unit 108. The automatic object counting device 2 comprises 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. 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, Visual SLAM, LiDAR SLAM, or other techniques, and is data indicating the position of the data acquisition unit 101. The three-dimensional point cloud data TP is data resulting from a point cloud accumulation process (details of which will be described later) performed on the three-dimensional point cloud data TQ. 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 data video data DG is n, the minimum value of the frame number n during the period in which the object group 20 is scanned is "1", and the maximum value of the frame number n is "n_max". An image of frame number n of the two-dimensional video data DG is called a two-dimensional frame image DG(n). The data analysis unit 102 also divides the three-dimensional point cloud data TQ, the shooting position data PS, and the depth data DP in synchronization with (and more preferably at) the frame period of the two-dimensional video data DG. Hereinafter, the three-dimensional point cloud data TQ divided for each frame is called a 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 a plurality of 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 a plurality of point coordinates. Here, when the data acquisition unit 101 moves between both frames, the position of the reference data acquisition unit 101 differs, so that 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 point coordinates included in the three-dimensional frame point group TQ(n+1) to the absolute position in space so as to match the point coordinates of the three-dimensional frame point group TQ(n) as much as possible (hereinafter, simply referred to as "alignment"), and outputs the result as three-dimensional point group data TP. As a result, the point coordinates included in the three-dimensional frame point group TP(n) and the three-dimensional frame point group TP(n+1) mostly match. And, the point coordinates included in only one of the three-dimensional frame point groups TP(n) and TP(n+1) generally become the point coordinates of the part that is a blind spot in the other one. This processing is called point group accumulation processing. 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 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 be continued without interrupting data reception, improving on-site efficiency.
[0019] The object counting unit 202 includes a characteristic region recognition unit 222 (characteristic 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 characteristic region recognition unit 222 performs image analysis on the two-dimensional frame image DG(n) of each frame, and estimates a bounding box BB (characteristic region, see FIG. 2) that represents the characteristics of the recognition target object 22.
[0020] In the example shown in Fig. 1, since the recognition target object 22 is cylindrical, the image of the end surface of the recognition target object 22 is circular or elliptical in the two-dimensional frame image DG(n). Therefore, a rectangular frame surrounding the circular or elliptical shape is called a bounding box BB (see Fig. 2). The k-th bounding box (where k = 1, ..., k_max) in frame number n is represented as a 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 surface of the recognition target object 22 may be an object detection method using deep learning, or may be 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 programmatic analysis models so that the detection accuracy can be improved by machine learning. Furthermore, the programmatic analysis models may be capable of being machine-learned at any time, or may be supplied from the outside as update modules.
[0022] The three-dimensional shape recognition unit 224 recognizes the three-dimensional shape and dimensions of the recognition target object 22 based on profile data indicating the shape of the recognition target object 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 (described in detail later) that is a provisional value of the quantity of the recognition target object 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 as specified.
[0024] Moreover, the count value correction unit 203 includes a confidence factor calculation unit 232 and a correction unit 234. The confidence factor calculation unit 232 calculates a confidence factor PR indicating the degree to which the bounding boxes BB in a plurality of frames correspond to the same recognition target object 22. Moreover, the correction unit 234 corrects the provisional count value CNTP to obtain a more certain 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 count result registration and notification unit 205 stores the count value CNT determined by the count value correction unit 203 or the count value CNT corrected by the data correction device 3 in the count result database 206 . Moreover, the count result registration / notification unit 205 notifies the count value CNT of the recognition target object 22 to a preset system.
[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 calculation value correction unit 108 receives a correction instruction for the counter value CNT input by the user based on the display of the overall image data IGD, or adds a bounding box of the recognition target object 22 to be detected. to the automatic object counting device 2. In this way, if the count value CNT differs from the number of recognition target objects 22 displayed as the overall image data IGD, the user can issue a command to correct the count value CNT or to add recognition target objects 22 to be detected.
[0028] FIG. 2 is a diagram showing an example of a two-dimensional frame image DG(n). FIG. 2 shows two-dimensional frame images DG(na) and DG(nb) at certain frame numbers na and nb. These images include a plurality of object images 32 that are images of the recognition target object 22. FIG. 2 also shows 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 that is erroneously extracted as a bounding box even though it does not actually include an image of the end face of the recognition target object 22. For example, when a foreign object having a circular ring shape is present around the object group 20 (see FIG. 1) and the recognition target object 22 erroneously recognizes the foreign object as the end face of the recognition target object 22, the erroneously extracted bounding box 38 appears.
[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 correction unit 203 refers to the three-dimensional point group data TP and integrates the bounding boxes BB for the same recognition target object 22 appearing 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 a 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 to realize various functions. The inside of the data acquisition device 1 and the automatic object counting device 2 shown in FIG. 1 above shows the functions realized by application programs, etc. as blocks.
[0032] Operation of the First Embodiment (Data acquisition process) Next, the operation of this embodiment will be described. FIG. 4 is a flowchart of a data acquisition processing routine executed in the data acquisition device 1. 4, when the process proceeds to step S201, the data acquisition unit 101 acquires the 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 a point cloud accumulation process 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 of the two-dimensional video data DG. Next, when the process proceeds to step S207, the data analysis unit 102 divides the three-dimensional point group 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 judges whether or not the user has performed a predetermined ending operation. If the judgment here is "No", the operations of steps S201 to S208 are repeated again. On the other hand, if the user has performed a predetermined ending operation, the judgment 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 processing) FIG. 5 is a flowchart of a counting process routine executed in the automatic object counting device 2. 5, when the process proceeds to step S301, the object counting unit 202 estimates a bounding box BB (see FIG. 2) in each two-dimensional frame image DG(n) and acquires 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 described later) among all the frame numbers.
[0037] If the result of 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 is hereinafter referred to as "frame number ns." Next, when the process proceeds to step S304, it is determined 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 that is commonly assigned to one or more bounding boxes BB(n,k) that are presumed to be recognized 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 result of the determination in step S304 is "Yes", the process proceeds to step S305, where the object counting unit 202 selects one bounding box BB to which an identification number BID is not assigned in the two-dimensional frame image DG(ns). The selected bounding box BB is hereinafter referred to as a 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 contents of this process will now be described. First, the point group corresponding to the bounding box BB(n,k) among the three-dimensional frame point group TP(n) in frame number n is called 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 of the surface of the recognition target object 22 (see FIG. 1) related to the bounding box BB(n,k) based on the shape (e.g., 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). Also, the point group corresponding to the selection bounding box BB(ns,ks) is called 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) to which an identification number BID has already been assigned. Here, the overlap MUL(BID) is the ratio 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 maximum 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 most likely 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. If the determination is "No" in step S307, this 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 presumed to be a bounding box BB detected for a recognition target object 22 (see FIG. 1) different from 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). Also, the confidence level PR(BID_n) of the new identification number BID_n is set to "1."
[0043] On the other hand, if the result of 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] Thereafter, the processes of steps S302 to S309 are repeated in a similar manner, and identification numbers BID are assigned to all bounding boxes BB(n,k) detected in all frame numbers n, and confidence levels PR(BID) are calculated for each of these identification numbers BID. When the process then proceeds to step S302, it is determined that the result is "No," and the process proceeds to step S310. Note that the total number of identification numbers BID already assigned at this point in time is a number provisionally estimated as the quantity of objects 22 to be recognized (see FIG. 1). Therefore, the total number of identification numbers BID is called a provisional count value CNTP. In other words, the estimated count value calculation unit 228 of the object counting unit 202 has a 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 are described below. When the number of all point coordinates belonging to the three-dimensional frame point group TP(n) in frame number n is p_max, the point coordinates belonging to the three-dimensional frame point group TP(n) are called point coordinates TTP(n,p) (where p=1,...,p_max). As described above, as a result of the point group accumulation process in step S205 (see FIG. 4), the point coordinates TTP(n,p) may have the same value in multiple frames. When there are point coordinates TTP(n,p) with the same value in one or multiple frames, the number of these frames is called the "hit value Q". Also, 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 described. First, the count value correction unit 203 enumerates the bounding box corresponding point group BP(n,k) corresponding to the bounding box BB(n,k) to which each identification number BID is assigned for each identification number BID. Next, the count value correction unit 203 extracts the hit value Q of the point coordinates belonging to the enumerated bounding box corresponding point group BP(n,k). The average value 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 result 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 result is "Yes," the process proceeds to step S316. In this case, the bounding box BB(n,k) to which the identification number BID is assigned 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." After that, 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) to which the identification number BID is assigned 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 the identification numbers BID, and when the process returns to step S313 thereafter, 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 overlooking the entire object group 20 (see FIG. 1), and is generated by the count value correction unit 203 by superimposing each frame of the two-dimensional video data DG. This ends the processing of this routine.
[0052] FIG. 6 is a diagram showing an example of a bounding box BB that is the target of counting. In FIG. 6, the erroneously extracted bounding box 38 shown in FIG. 2 is excluded from the counting because the evaluation value EV(BID) is less than the threshold value EVth.
[0053] (Correction of counting results) FIG. 7 is a diagram showing an example of a display screen in the calculation value display unit 106. As shown in FIG. A 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 group BP(n,k) corresponding to the valid identification number BID is highlighted. In Fig. 6, the highlighted portion is displayed with dots.
[0055] The count value display unit 314 displays the count value CNT. The cursor 316 is a rectangular frame image displayed on the display screen in response to a user's operation, and the user can freely adjust the position and size of the cursor 316. In the illustrated example, a portion where a counting error is thought to have occurred occurs in the area where the cursor 316 is displayed. In such a case, the user can align the position of the cursor 316 to the portion where a counting error is thought to have occurred, as illustrated, 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 it 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 displayed on the calculation 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 whole image display section 312 displays the whole image data IGD based on the result of re-executing the counting process routine. In the illustrated example, the above-mentioned count omission on the display screen 310 is eliminated on the display screen 320. As a result, the contents of the count value display section 314 on the display screen 320 have also been updated from those on the display screen 310.
[0059] 7, when the whole image data IGD in which the recognition target object 22 is normally recognized is acquired, the user performs a predetermined registration operation. When the registration operation is performed, the counting result registration / notification unit 205 stores the count value CNT in the counting result database 206.
[0060] [Effects of the embodiment] As described above, according to the embodiment, the automatic material counting system 10 includes a feature area recognition unit 222 that recognizes a feature area (BB) corresponding to a recognition target object 22 from two-dimensional image data (DG) obtained by photographing an object group 20 including a plurality of recognition target objects 22, a three-dimensional shape recognition unit 224 that recognizes a three-dimensional shape of the recognition target object 22, and an object position estimation unit 226 that estimates the position of each recognition target object 22 based on the recognition results in the feature area recognition unit 222 and the three-dimensional shape recognition unit 224. In this way, since the position of each recognition target object 22 is estimated based on the recognition results in the feature area recognition unit 222 and the three-dimensional shape recognition unit 224, the position of the recognition target object 22 can be appropriately estimated. Furthermore, by being able to appropriately estimate the position of the recognition target object 22, an effect of improving the accuracy in counting the recognition target objects 22 is also achieved.
[0061] Moreover, it is more preferable that the object position estimation unit 226 recognizes the position of each target object 22 by extracting point coordinates corresponding to the characteristic region (BB) from the three-dimensional point cloud data TP including the point coordinates of 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 target object 22.
[0062] In addition, since the two-dimensional image data (DG) is divided into a plurality of 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). This makes it even easier to associate the three-dimensional point cloud data TP with the two-dimensional image data (DG).
[0063] Moreover, it is more preferable that the automatic material counting system 10 further includes a confidence factor calculation unit 232 that calculates, for each characteristic region (BB), a confidence factor PR indicating the degree to which the characteristic region (BB) recognized corresponding to a plurality of frames by the characteristic region recognition unit 222 corresponds to the same recognition target object 22. This makes it possible to obtain the confidence factor PR of each characteristic region (BB).
[0064] Moreover, 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 area (BB) estimated by the characteristic area recognition unit 222 and the recognition result in 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] Moreover, 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 issues a command to correct the count value CNT based on a user's operation. This allows the user to issue a command to correct the count value CNT when the count value CNT differs from the number of the recognition target objects 22.
[0066] Fig. 8 is a sequence diagram for explaining another overall operation of the automatic material counting system 10 of the embodiment. The automatic material counting system 10 in Fig. 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 Fig. 8 shows the case of the data correction device 3, but the system may be composed of multiple data correction devices 3.
[0067] In the automatic object counting device 2, first, the characteristic region 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 are capable of detecting the recognition target object 22 and are usable (step S80).
[0068] The data acquisition device 1 displays a list of analytical models and selects an analytical model designated by the user that corresponds to the recognition target object 22 (step S81). At this time, the data acquisition device 1 may display an image of the recognition target object 22 to be detected for each analytical model so that the user can easily specify it. Also, 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 operations of the data acquisition unit 101 and the data analysis unit 102 of the data acquisition device 1, and have been described in FIG. 4, so description thereof will be omitted here.
[0070] When the data acquisition device 1 finishes capturing images of the object group 20, it transmits the model name of the analytical 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] When an unsupported analytical model is specified (if step S85 is No), 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 of the analytical model, the automatic object counting device 2 continues to receive the model name of the analytical model, two-dimensional video data DG, three-dimensional point cloud data TP, shooting position data PS and depth data DP from the data acquisition device 1, and stores the received data in a memory unit.
[0074] When a supported analytical model is specified, or when preparation of the analytical model is completed, the automatic object counting device 2 extracts a bounding box from the 2D image using the analytical model, and integrates the bounding box of the extracted 2D image into 3D space (step S87). Then, the automatic object counting device 2 detects and automatically counts valid bounding boxes (step S88). The processing of steps S87 and S88 is the processing 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 determined 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 / 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 / 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 counting unit 202 and count value correction unit 203) modifies the threshold value EVth for determining a valid bounding box or modifies the analytical model (additional learning) (step S812), redetects the 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 a detection result, and also notifies a preset system (step S814).
[0080] Although an example of re-detecting a valid boundary box in step S813 has been described above, 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] Furthermore, the count value CNT and the entire image data IGD processed in step S813 may be transmitted to the data correction device 3 (step S89), and the processes 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 Fig. 8 allows the confirmation and correction of detection results to be performed by multiple data correction terminals 3, eliminating the need for confirmation time on-site and reducing the number of hours of labor required in harsh on-site conditions. In addition, the confirmation and correction work can be shared among multiple people, improving work efficiency.
[0083] In addition, since the automatic object counting device 2 notifies the detection results of the count value of the recognition target object 22 to a pre-registered system, if the count value of scaffolding materials is notified to a leasing company, the amount of scaffolding materials can be known in advance when they are returned, making it possible to prepare for reception and deploy personnel, etc.
[0084] Furthermore, even if advance learning of the analysis model of the automatic object counting device 2 has not been completed, data acquisition (photography) of recognition targets 22 such as other scaffolding materials can be performed, thereby improving on-site efficiency. In addition, the operator of the automatic object counting device 2 is notified to prepare an analytical model (machine learning of the analytical model), thereby preventing a decrease in work efficiency.
[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 Fig. 9. The update method according to the embodiment updates the analytical model when the manual correction time is reduced, 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 analysis model currently in use is referred to as the first model, and the analysis 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 group 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, in parallel, processing of steps S92 to S95, in which the analysis data acquired in step S91 is processed using a first model, and processing of 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 of a first model by the object counting unit 202 (step S93), and a process (object detection process) for detecting a bounding box BB of a second model by the object counting unit 202 (step S96) are performed.
[0090] Then, the bounding boxes detected in step S93 are integrated, and a first count value, which is a 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 a 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 processing in steps S93 and S94 and the processing in steps S93 and S94 are the processing in the object counting unit 202 and the count value correcting unit 203 described with reference to FIG. 5, and detailed description thereof will be omitted.
[0092] Here, the automatic object counting device 2 determines whether or not the correction time has been shortened by changing the analytical model. More specifically, it determines whether or not 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] [Variations] The present invention is not limited to the above-mentioned embodiment, and various modifications are possible. The above-mentioned embodiment is exemplified to explain the present invention in an easy-to-understand manner, and is not necessarily limited to those having all the configurations described. In addition, other configurations may be added to the configuration of the above-mentioned embodiment, and it is also possible to replace a part of the configuration with another configuration. In addition, the control lines and information lines shown in the figure show those that are considered necessary for explanation, and do not necessarily show all the control lines and information lines necessary on the product. In reality, it may be considered that almost all the configurations are connected to each other. Possible modifications of the above-mentioned embodiment are, for example, as follows.
[0096] (1) In the above embodiment, in order to acquire the three-dimensional point cloud data TP, a three-dimensional sensor (not shown) such as LiDAR (Light Detection and Ranging) is provided in the data acquisition unit 101. However, the method of acquiring the three-dimensional point cloud data TP is not limited to using a three-dimensional sensor, and the three-dimensional point cloud data TP may be calculated by 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 groups 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 groups TQ(n) may be performed based on the IMU data DI.
[0098] (3) Since the hardware of the automatic material counting system 10 in the above embodiment can be realized by a general-purpose computer, the flowcharts shown in Figures 4 and 5 and other programs for executing the various processes described above may be stored on a storage medium (a computer-readable recording 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 have been described as software-based processes using a program. However, some or all of the processes may be replaced with hardware-based 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-described embodiments may be executed by a server computer via a network (not shown), and the various data stored in the above-described embodiments may also be stored in the server computer. [Explanation of symbols]
[0101] 1 Data acquisition device 2. Automatic object counting device 3 Data correction device 10. Automatic material counting system 20 Object group 22 Recognition target object 102 Data Analysis Department 106 Calculation result display section 108 Calculation result correction section 222 Feature region recognition unit (feature region recognition process) 224 3D shape recognition section (3D shape recognition process) 226 Object position estimation unit (object position estimation process) 228 Estimated count value calculation unit 232 Confidence calculation part 234 Correction section BB Bounding box (feature area) DG 2D video data (2D image data) NW Network PR confidence level TP, TQ 3D point cloud data CNT Count value CNTP provisional count value
Claims
1. 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 a data acquisition device via a network, extracts a bounding box representing the material from the image information and the distance image information using an analytical model, integrates the bounding box into a three-dimensional space, and determines the position or number of the material; a data correcting device for correcting the positions or number of materials calculated by the automatic object counting device based on overall image data obtained by superimposing the frames of the image information, and instructing the automatic object counting device; An automatic material counting system comprising:
2. 2. The automatic material counting system according to claim 1, The automatic object counting device comprises: extracting a bounding box representing the material from the image information and the distance image information using an analytical model different from the analytical model, and integrating the bounding box into a three-dimensional space to determine a position or a number of the material; acquiring a correction time of the position or the number obtained by the data correction device; If the acquired correction time is shorter than the correction time for the original analytical model, the analytical model is updated to the different analytical model. An automatic material counting system comprising:
3. 2. The automatic material counting system according to claim 1, The automatic object counting device comprises: When the location or number of the materials is obtained, the number of the materials counted is notified to a pre-registered system. An automatic material counting system comprising:
4. 2. The automatic material counting system according to claim 1, The automatic object counting device comprises: notifying the data acquisition device of a list of the available analytical models; If the model name received from the data acquisition device together with the image information and the distance image information is different from the analysis model notified in the list, the analysis model with the model name received from the data acquisition device is trained, and then a bounding box indicating the material is extracted. An automatic material counting system comprising:
5. 2. The automatic material counting system according to claim 1, The automatic object counting device comprises: notifying the data acquisition device of a list of the available analytical models; If the model name received from the data acquisition device together with the image information and the distance image information is different from the analysis model notified in the list, the image information and the distance image information are temporarily stored, and the image information and the distance image information of other materials are received. An automatic material counting system comprising:
6. A data acquisition device acquires image information of a plurality of materials and distance image information of the materials associated with the image information; receiving the image information and the distance image information from the data acquisition device via a network by the automatic object counting device; an automatic object counting device extracting a bounding box representing the material from the image information and the distance image information using an analytical model, integrating the bounding box into a three-dimensional space, and determining a position or a number of the material; a data correcting device correcting the positions or the number of materials calculated by the automatic object counting device based on the overall image data obtained by superimposing the frames of the image information, and instructing the automatic object counting device to make the correction; A method for automatically counting materials, including:
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
