Object recognition device and object recognition method
By synchronously capturing two-dimensional and three-dimensional data and aligning bounding boxes across multiple angles, the system addresses the limitations of existing object recognition systems, enabling accurate object position estimation and counting.
Patent Information
- Application Number
- JP2023040925
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-15
- Publication Date
- 2024-09-30
- Estimated Expiration
- 2043-03-15
AI Technical Summary
Existing object recognition systems struggle to accurately estimate the position and number of objects, particularly when they 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.
The system utilizes a data acquisition device that synchronously captures two-dimensional image data and three-dimensional point cloud data, employing IMU sensors to ensure proper imaging conditions, and integrates bounding box detection across multiple angles and dimensions to accurately count objects using image analysis and 3D information.
This approach allows for precise estimation of object positions and counts, improving accuracy by aligning and correcting bounding boxes through confidence measures, even when objects span multiple frames, thus enhancing the reliability of object recognition.
Smart Images

Figure 2024130947000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an object recognition device and an object recognition method. [Background technology]
[0002] In recent years, with the declining birthrate and aging population, the number of workers is decreasing, and technologies for counting the number of various objects have been proposed to replace visual confirmation work such as checking inventory levels. 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 for each bounding box whether it 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 object recognition device and an object recognition 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 object recognition device of the present invention comprises a data acquisition device that acquires two-dimensional image data of an object group including a plurality of recognition targets photographed from a plurality of directions and a distance image of the object group, and an automatic object counting device that calculates a bounding box indicating the position at which the recognition target is detected in each of the plurality of directions based on the two-dimensional image data, integrates the bounding boxes in the plurality of directions based on three-dimensional information of the object group calculated from the distance image of the object group, and determines the position or number of the recognition targets using the integrated bounding box. 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] 1 is a block diagram of an object recognition system according to a first embodiment. [Diagram 2] FIG. 2 is a diagram showing an example of a two-dimensional frame image. [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. [Figure 5A] 13A and 13B are diagrams showing a warning display when the user's shooting speed is fast. [Figure 5B] 13A and 13B are diagrams illustrating a warning display for performing initial settings such as calibration of the range image sensor. [Figure 6] 4 is a flowchart of a counting process routine executed in the object recognition device. [Figure 7] FIG. 13 is a diagram illustrating an example of a bounding box that is the target of counting. [Figure 8] FIG. 13 is a diagram showing an example of a display screen in a calculation value display unit. [Figure 9] 11A and 11B are diagrams illustrating the relationship between the overall image data and the displayed images of the object groups at each angle of view. [Figure 10A] FIG. 13 is a diagram showing a specific example of a display of the data acquisition device. [Figure 10B] FIG. 13 shows a state in which an undetected bounding box BB has been manually added by a user. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] [Overview 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 shooting method and the target objects are limited. Therefore, in the embodiment described below, by acquiring two-dimensional image data and three-dimensional point cloud data synchronously (more preferably simultaneously), the counting result (boundary box) based on the two-dimensional image data and the three-dimensional point cloud information are cross-referenced, and the number of counting target objects is appropriately counted even if the counting target objects do not fit in one image.
[0009] [First embodiment] Configuration of the First Embodiment FIG. 1 is a block diagram of an object recognition device 10 according to a first embodiment. The object recognition device 10 estimates the positions or counts the number of recognition target objects 22 included in an object group 20, and includes a data acquisition device 1 and an automatic object counting device 2. 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, the object recognition device 10 of the embodiment 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 counts the recognition target objects 22 by image analysis of the two-dimensional image data and the three-dimensional point cloud data. This facilitates management of materials to be returned.
[0011] The data acquisition device 1 includes a data acquisition unit 101, a data analysis unit 102, a data transmission unit 104, a count value display unit 106, and a count value correction unit 108. The automatic object counting device 2 includes a data receiving unit 201, an object counting unit 202, a calculated value correction unit 203, a count value transmission unit 204, a count result registration unit 205, and a count result database 206.
[0012] The data acquisition unit 101 includes a camera (not shown) for capturing two-dimensional video data, a distance image sensor such as LiDAR (Light Detection and Ranging) or a three-dimensional sensor (not shown) for acquiring 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 (distance image information), and IMU data DI, which is the detection result of the IMU sensor.
[0013] More specifically, the IMU sensor is a sensor unit that integrates physical information sensors such as an acceleration sensor, a rotational angular acceleration sensor, a gyro sensor, a magnetic field sensor, an air pressure sensor, and a temperature sensor into one package. In the data acquisition device 1, the data acquisition unit 101, which will be described in detail in FIG. 4, determines whether the moving speed, shooting distance, and shooting angle of the data acquisition device 1 detected by the IMU sensor are within the allowable range when acquiring two-dimensional video data and three-dimensional point cloud data. This suppresses the acquisition of abnormal two-dimensional video data and three-dimensional point cloud data, and prevents a decrease in analysis accuracy.
[0014] The alert display unit 109 displays an alert or an assistance message to the data acquisition device 1 to improve the shooting conditions when the moving speed, shooting distance, or shooting angle of the data acquisition device 1 detected by the IMU sensor is not within an acceptable range.
[0015] 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.
[0016] 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.
[0017] 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).
[0018] 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.
[0019] 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, and the data reception unit 201 receives these data.
[0020] 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) representing the characteristics of the recognition target object 22. Specifically, an area including the shape (circle or ellipse) of the edge of the recognized recognition target object 22 is set as the bounding box BB.
[0021] 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.
[0022] Furthermore, the object counting unit 202 (feature region recognition unit 222) compares the actual size of the bounding box defined by the depth data DP (3D depth distance) received by the data receiving unit 201 with the actual size of the end face of the recognition target object 22, and if it is not within a predetermined range, it is determined to be a false detection, and the detected bounding box BB is removed. In other words, the size of the bounding box BB corresponds to the actual size of the end face of the recognition target object 22, and when compared with the size defined by the 3D depth distance, any that are too large or too small are removed as false detections.
[0023] The three-dimensional shape recognition unit 224 recognizes the three-dimensional shape and dimensions of the recognition target object 22 based on the profile data indicating the shape of the recognition target object 22 . The object position estimation section 226 estimates the position and orientation of each recognition target object 22 based on the recognition results of the feature region recognition section 222 and the three-dimensional shape recognition section 224 . The estimated count value calculation section 228 calculates a provisional count value CNTP (details of which will be described later) that is a provisional value of the quantity of the recognition target objects 22 based on the estimation result in the object position estimation section 226 .
[0024] Moreover, the calculation 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] 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.
[0026] Although details will be described later, the erroneously extracted bounding box 38 is excluded in the three-dimensional shape recognition unit 224 because the evaluation value EV(BID) is less than the threshold value EVth. As described above, the feature region recognition unit 222 compares the bounding box BB with the size defined by the 3D depth distance and removes those that are too large or too small (outside the specified range) as false positives, thereby preventing the appearance of an erroneously extracted bounding box 38.
[0027] 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 calculation value correcting 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.
[0028] 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.
[0029] 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.
[0030] 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.
[0031] First, in step S210, the data acquisition unit 101 prompts the user to keep the data acquisition device 1 still for a predetermined time (about 3 seconds) by the alert display unit 109 in order to perform initial settings such as calibration of a distance image sensor such as LiDAR. For example, as shown in FIG. 5B, "Please keep still" is displayed on the screen of the data acquisition device 1. Details will be described later.
[0032] 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, in step S211, the data acquisition unit 101 calculates at least one of the moving speed, shooting distance, and shooting angle of the data acquisition device 1 based on the IMU data DI acquired in step S201 and the depth data DP (three-dimensional point cloud data) acquired in step S202, and determines whether the calculated value is within the allowable range. If it is within the allowable range (Yes in S211), proceed to step S203, and if it is outside the allowable range (No in S211), proceed to step S212.
[0034] In step S212, the alert display unit 109 displays an alert or assist display to warn the user to perform measurements under appropriate shooting conditions, as will be described in detail in Fig. 5A, and the process returns to step S201. This allows the object group 20 to be measured under appropriate shooting conditions, improving the detection accuracy of the bounding box BB and reducing the need for correction processing of the counting values, which will be described later.
[0035] 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.
[0036] 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.
[0037] 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.
[0038] 5A and 5B are diagrams showing examples of the display screen of the data acquisition device 1 while the data acquisition device 1 is measuring the object group 20 by the alert display unit 109, and show an alert display that warns the user to perform appropriate measurements. The details will be described below. Note that the reference numeral 51 on the display screen indicates the shooting time, the reference numeral 52 indicates the distance from the camera to the + mark on the screen, and the reference numeral 53 indicates the shooting angle.
[0039] 5A shows a warning display when the user's shooting speed (movement speed of the shooting position) is fast, and the alert display unit 109 (see FIG. 1) displays a message "Please shoot slowly" and a warning mark on the display screen. This allows the user to recognize that the shooting speed is fast, and allows the user to adjust the shooting conditions appropriately. If the shooting distance is not within the allowable range, a message such as "Please move closer to the material" or "Please move away from the material" is displayed.
[0040] Figure 5B shows a warning display for performing initial settings such as calibration of a distance image sensor such as LiDAR, and the alert display unit 109 displays "Please stay still" on the display screen to prompt the user to keep the data acquisition device 1 still for a specified period of time (approximately 3 seconds). (Counting processing) FIG. 6 is a flowchart of a counting process routine executed in the automatic object counting device 2. When the process proceeds to step S301 in FIG. 6, the object counting unit 202 estimates a bounding box BB (see FIG. 2) in each two-dimensional frame image DG(n) and obtains the number k_max of bounding boxes in each frame.
[0041] The object counting unit 202 (feature region recognition unit 222) compares the estimated bounding box BB with a size defined by the 3D depth distance, and removes those that are too large or too small as false detections.
[0042] 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.
[0043] 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.
[0044] 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).
[0045] 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).
[0046] 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 calculation value correction unit 203 searches for the maximum overlap MUL(BID) among all the identification numbers BID. The identification number BID related to the searched overlap MUL(BID) is called the most likely identification number BID_M.
[0047] 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.
[0048] 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."
[0049] 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."
[0050] 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.
[0051] Next, in step S310, the calculation value correcting 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 calculation value correcting unit 203 calculates the hit value Q(n,p) of all point coordinates TTP(n,p) in all frames.
[0052] Next, when the process proceeds to step S311, the calculation value correction unit 203 calculates the average hit value Qave(BID) corresponding to all the identification numbers BID. The contents of this process will be explained. First, the calculation 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 of the identification numbers BID. Next, the calculation 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).
[0053] Next, when the process proceeds to step S312, the correction unit 234 in the calculation 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.
[0054] 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.
[0055] 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.
[0056] 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.
[0057] In step S317, the count value transmission unit 204 outputs the count value CNT and the overall image data IGD to the data acquisition device 1. Here, the overall image data IGD is an image overlooking the entire object group 20 (see FIG. 1), and is generated by the calculation value correction unit 203 by superimposing each frame of the two-dimensional video data DG. This ends the processing of this routine.
[0058] FIG. 7 is a diagram showing an example of a bounding box BB that is the target of counting. In FIG. 7, 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.
[0059] (Correction of counting results) FIG. 8 is a diagram showing an example of a display screen in the count 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 .
[0060] 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. 7, the highlighted portion is displayed with dots.
[0061] 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.
[0062] 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. 6). However, when re-executing the counting process routine, the calculation 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.
[0063] 8 is an example of a display screen displayed on the count 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.
[0064] 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.
[0065] 8, 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 unit 205 stores the count value CNT in the counting result database 206.
[0066] Next, details of the display contents of the display screen 320 will be described with reference to Fig. 9, Fig. 10A, and Fig. 10B. Fig. 9 is an image overlooking the whole of the object group 20 (see Fig. 1), and Fig. 10A and Fig. 10B are diagrams showing a specific display example of the data acquisition device 1.
[0067] 8, the calculation value correction unit 203 performs an integrated analysis of the bounding boxes BB of each frame extracted from the multiple 2D frame images DG(ns) using the 3D point cloud data TP (LiDAR point cloud information), maps the bounding boxes BB on a 2D screen, generates a representative image (entire image data IGD) overlooking the entire object group 20, and displays it on the count value display unit 106. At this time, the calculation value correction unit 203 deletes any erroneously detected bounding boxes BB.
[0068] The count value correction unit 108 enables the user to manually add an undetected bounding box BB (thick rectangular frame) on the representative image, and commands the automatic object counting device 2 to re-execute the counting process.
[0069] The count value display unit 106 further reflects the correction made to the representative screen (addition of the bounding box BB) in a 2D screen (frame) at a different angle and scrolls and displays it for each frame. In other words, the display surface of the bounding box of the representative screen is rotated to another angle, the detection position is displayed again, and the information of the added bounding box is taken over and displayed.
[0070] The count value display unit 106 may also be configured to take over another angle as a representative screen and allow manual addition of a bounding box BB. This allows a member that is difficult to see on one screen to be confirmed at another angle where it is easier to see, and the bounding box can be added or corrected.
[0071] Fig. 10A is a diagram showing a specific display example of the data acquisition device 1, and Fig. 10B shows a state in which the user manually adds an undetected bounding box BB (thick rectangular frame). Reference numeral 54 denotes the manually added bounding box BB. Reference numeral 55 denotes a scroll button, which, when tapped by the user, displays an angle (frame) different from the representative screen.
[0072] [Effects of the embodiment] As described above, according to the embodiment, the object recognition device (10) includes a feature region recognition unit 222 that recognizes a feature region (BB) corresponding to a recognition target object 22 from two-dimensional image data (DG) obtained by capturing 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 region 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 region 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.
[0073] 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.
[0074] 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).
[0075] Moreover, it is more preferable that the object recognition device (10) further includes a confidence factor calculation unit 232 that calculates, for each feature region (BB), a confidence factor PR indicating the degree to which the feature region (BB) recognized by the feature region recognition unit 222 corresponding to a plurality of frames corresponds to the same recognition target object 22. This makes it possible to obtain the confidence factor PR of each feature region (BB).
[0076] Moreover, it is more preferable that the object recognition device (10) further includes an estimated count value calculation unit 228 that calculates a provisional count value CNTP of the recognition target object 22 based on the feature region (BB) estimated by the feature region 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 objects 22.
[0077] Moreover, it is more preferable that the object recognition device (10) further comprises a count value display unit 106 that displays an image of the recognition target object 22 corresponding to the count value CNT, and a count 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.
[0078] [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.
[0079] (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.
[0080] (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.
[0081] (3) Since the hardware of the object recognition device 10 in the above embodiment can be realized by a general-purpose computer, the flowcharts shown in Figures 4 and 6 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.
[0082] (4) In the above embodiment, the processes shown in FIGS. 4 and 6 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.
[0083] (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]
[0084] 10 Object recognition device 20 Object group 22 Recognition target object 102 Data Analysis Department 106 Count value display section 108 Quantity Correction Unit 109 Alert display 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) PR confidence level TP, TQ 3D point cloud data CNT Count value CNTP provisional count value
Claims
1. a data acquisition device for acquiring two-dimensional image data obtained by photographing an object group including a plurality of recognition targets from a plurality of directions and a range image of the object group; an automatic object counting device that calculates a bounding box in each of a plurality of directions indicating a position where an object to be recognized is detected based on the two-dimensional image data, integrates the bounding boxes in the plurality of directions based on three-dimensional information of the object group calculated from a range image of the object group, and calculates the position or number of the object to be recognized using the integrated bounding box; An object recognition device comprising:
2. The object recognition device according to claim 1 , The automatic object counting device compares the bounding box with the size of the object to be recognized, which is defined by the depth distance, and determines that any bounding box outside a predetermined range is a false positive and removes it.
1. An object recognition device comprising:
3. The object recognition device according to claim 1 , The data acquisition device calculates at least one of a moving speed, a shooting distance, and a shooting angle when acquiring two-dimensional image data and a range image of the object group, judges whether the calculated value is within an allowable range, and displays an alert if it is outside the allowable range.
1. An object recognition device comprising:
4. The object recognition device according to claim 1 , The data acquisition device displays a message requesting the user to remain still for a predetermined period of time, and then acquires two-dimensional image data and range images of the object group.
1. An object recognition device comprising:
5. The object recognition device according to claim 1 , The automatic object counting device integrates the bounding boxes in multiple directions into a two-dimensional representative image; The data acquisition device allows a user to manually add an undetected bounding box on the representative screen, and displays the manually added bounding box on each of the two-dimensional image data in a plurality of directions.
1. An object recognition device comprising:
6. An object recognition method for detecting the positions or number of a plurality of recognition targets by photographing an object group including the plurality of recognition targets from a plurality of directions, comprising: Acquire two-dimensional image data of an object group including a plurality of recognition targets photographed from a plurality of directions and a range image of the object group; determining a bounding box indicating a position where the object to be recognized is detected based on the two-dimensional image data in each of a plurality of directions; integrating bounding boxes in multiple directions based on three-dimensional information of the object group obtained from the range image of the object group; The position or number of the object to be recognized is obtained based on the integrated bounding box.
13. An object recognition method comprising:
7. The object recognition method according to claim 6, further comprising: The bounding box is compared with the size of the object to be recognized, which is defined by the depth distance, and any bounding box outside a predetermined range is determined to be a false positive and is removed.
13. An object recognition method comprising:
Citation Information
Patent Citations
Long object quantity measurement apparatus, long object quantity measurement method, and computer program
JP2014219842A
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
Systems and methods for a real-time intelligent inspection assistant
US20210019910A1
Cited By
Overhead wire fitting abnormality detection device and overhead wire fitting abnormality detection method
JP7885894B1
Overhead wire fitting abnormality detection device and overhead wire fitting abnormality detection method
WO2026168389A1
