Method, device, electronic device and storage medium for determining the volume of an object

By acquiring and processing two consecutive frames of point cloud data, performing cleaning and projection comparison, and updating the volume, the problem of low object volume measurement accuracy is solved and high-precision object volume measurement is achieved, which is suitable for rapid sorting and precise distribution.

CN113947629BActive Publication Date: 2024-10-22G7 TECH (SHANGHAI) LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111221120.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-20
Publication Date
2024-10-22
Estimated Expiration
2041-10-20

AI Technical Summary

Technical Problem

Existing technology is difficult to achieve high accuracy in object volume measurement, especially in fast sorting and precise distribution scenarios. Traditional methods have problems with inaccurate measurements.

Method used

By obtaining two consecutive frames of point cloud data of the object to be detected, cleaning processing and projection comparison are performed, and the volume is updated using time series to determine the final volume of the object to be detected and improve measurement accuracy.

Benefits of technology

It effectively improves the accuracy of object volume measurement, is suitable for fast sorting and precise distribution scenarios, and improves the operational efficiency of the logistics industry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113947629B_ABST
    Figure CN113947629B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, electronic device and storage medium for determining the volume of an object, by respectively cleaning the sampling points in two consecutive frames of original point cloud data, determining two consecutive frames of target point cloud data of the object to be detected; based on the two frames of target point cloud data, determining the first total volume and the second total volume of the object to be detected; then based on the sampling points in the two frames of target point cloud data, determining the first projection point area and the second projection point area, and performing consistency comparison on the projection points in the two projection point areas; according to the consistency comparison result, using the first total volume to update the second total volume based on the time series, to obtain the final volume of the object to be detected. In this way, the present application can effectively solve the volume measurement of the same goods at different positions by including two consecutive frames of point cloud data of the object to be detected, and can improve the accuracy of object volume measurement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of volume measurement technology, and in particular to a method, device, electronic device and storage medium for determining the volume of an object. Background Art

[0002] In recent years, with the rapid development of economic globalization, a large amount of materials need to flow frequently between regions. In particular, the rise of e-commerce resulting from the information technology revolution has led to a rapid development of the logistics industry.

[0003] At present, the volume measurement of objects, represented by logistics goods, is increasingly used in factories, warehouses, etc. In order to achieve rapid sorting, assembly, and accurate delivery of objects, it is necessary to measure and record the volume of objects. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a method, device, electronic device and storage medium for determining the volume of an object. By including two consecutive frames of point cloud data of the object to be detected, two measured volumes of the object to be detected are determined, and then the final volume of the object to be detected is determined based on the two measured volumes, which can effectively improve the accuracy of object volume measurement.

[0005] The present application provides a method for determining the volume of an object, the method comprising:

[0006] Acquire two consecutive frames of original point cloud data of the object to be detected; the original point cloud data is point cloud data in a world coordinate system;

[0007] Each frame of original point cloud data is cleaned and processed respectively to obtain a first frame of target point cloud data and a second frame of target point cloud data of the object to be detected; the sampling time corresponding to the first frame of target point cloud data is earlier than the sampling time corresponding to the second frame of target point cloud data;

[0008] Determine a first total volume of the object to be detected based on the coordinates of the sampling points included in the first frame of target point cloud data, and determine a second total volume of the object to be detected based on the coordinates of the sampling points included in the second frame of target point cloud data;

[0009] The sampling points included in the two frames of target point cloud data are projected onto a predetermined projection plane respectively, and a first projection point area including the first projection point and a second projection point area including the second projection point are determined; the first projection point area and the second projection point area have the same size;

[0010] Perform consistency comparison using the first projection point included in the first projection point area and the second projection point included in the second projection point area to obtain a consistency comparison result;

[0011] According to the consistency comparison result, the second total volume is updated using the first total volume, and the updated second total volume is determined as the final volume of the object to be detected.

[0012] Optionally, before determining the updated second total volume as the final volume of the object to be detected, the determination method further includes:

[0013] Obtaining a first loss value corresponding to the first frame of target point cloud data and a second loss value corresponding to the second frame of target point cloud data;

[0014] determining whether the second loss value is greater than the first loss value;

[0015] When the answer is yes, determining the first total volume as the final volume of the object to be detected;

[0016] When the answer is no, the updated second total volume is determined as the final volume of the object to be detected.

[0017] Optionally, before acquiring two consecutive frames of original point cloud data of the object to be detected, the determination method further includes:

[0018] Obtaining tilt posture data of a point cloud acquisition device and two consecutive frames of initial point cloud data of the object to be detected acquired by the point cloud acquisition device; the initial point cloud data is point cloud data in a camera coordinate system;

[0019] According to the tilt posture data, coordinate transformation processing is performed on each frame of initial point cloud data to obtain two consecutive frames of original point cloud data of the object to be detected.

[0020] Optionally, the cleaning process is performed on each frame of original point cloud data to obtain a first frame of target point cloud data and a second frame of target point cloud data of the object to be detected, including:

[0021] For each frame of original point cloud data, a sampling space of a minimum volume including all sampling points is determined according to the coordinates of the sampling points included in the frame of original point cloud data;

[0022] Dividing the sampling space into a first preset number of sub-sampling spaces of the same size;

[0023] Count the number of sampling points included in each sub-sampling space;

[0024] Deleting all sampling points in the sub-sampling space including a number of sampling points less than a preset threshold;

[0025] The original point cloud data of the frame after the deletion operation is determined as the target point cloud data of the frame of the object to be detected.

[0026] Optionally, determining a first total volume of the object to be detected based on the coordinates of the sampling points included in the first frame of target point cloud data, and determining a second total volume of the object to be detected based on the coordinates of the sampling points included in the second frame of target point cloud data, comprises:

[0027] Based on the first frame of target point cloud data and the second frame of target point cloud data, determining a first point cloud space including all sampling points in the first frame of target point cloud data and a second point cloud space including all sampling points in the second frame of target point cloud data; the first point cloud space and the second point cloud space are cubes with the same size;

[0028] For any point cloud space in the first point cloud space and the second point cloud space, dividing the point cloud space into a second preset number of sub-point cloud spaces of the same size;

[0029] For any sub-point cloud space, based on the coordinates of the sampling points included in the sub-point cloud space, determine the sub-volume of the object to be detected;

[0030] All sub-volumes determined to belong to the same point cloud space are added together, and the added volume is determined as the total volume of the object to be detected; the total volume is the first total volume or the second total volume.

[0031] Optionally, performing consistency comparison using the first projection point included in the first projection point area and the second projection point included in the second projection point area to obtain a consistency comparison result includes:

[0032] For any projection point area in the first projection point area and the second projection point area, dividing the projection point area into a second preset number of sub-projection point areas of the same size;

[0033] The projection points in the sub-projection point areas at the same position in the first projection point area and the second projection point area are compared for consistency to obtain multiple consistency comparison results.

[0034] Optionally, the updating the second total volume using the first total volume according to the consistency comparison result, and determining the updated second total volume as the final volume of the object to be detected includes:

[0035] When any consistency comparison result indicates that the projection points included in the two sub-projection point regions are consistent, determining a sub-volume in the first total volume corresponding to the sub-projection point region in the first projection point region and determining a sub-volume in the second total volume corresponding to the sub-projection point region in the second projection point region;

[0036] The subvolume in the first total volume is used to update the corresponding subvolume in the second total volume, and the updated second total volume is determined as the final volume of the object to be detected.

[0037] Optionally, after determining the final volume of the object to be detected, the determination method further includes:

[0038] Obtaining point cloud data of the outlines of multiple objects to be detected after being superimposed;

[0039] Cutting the point cloud data from bottom to top according to a predetermined cutting interval to obtain multiple groups of horizontal point cloud slices;

[0040] For each horizontal point cloud slice, vertically project the points included in the horizontal point cloud slice onto the lower surface of the horizontal point cloud slice to determine a plurality of projection points;

[0041] Based on the multiple projection points, the area of ​​the minimum inscribed triangle is calculated by the rotating compass method, and the area of ​​the triangle is determined as the bottom area of ​​the horizontal point cloud slice;

[0042] Determine the volume of each horizontal point cloud slice based on the bottom area of ​​each horizontal point cloud slice and a predetermined cutting interval;

[0043] The volumes of all horizontal point cloud slices are added together, and the total volume determined after the addition is determined as the volume of the multiple objects to be detected after superposition.

[0044] The embodiment of the present application further provides a device for determining the volume of an object, the device comprising:

[0045] An acquisition module is used to acquire two consecutive frames of original point cloud data of the object to be detected; the original point cloud data is point cloud data in a world coordinate system;

[0046] A cleaning module is used to clean each frame of original point cloud data to obtain a first frame of target point cloud data and a second frame of target point cloud data of the object to be detected; the sampling time corresponding to the first frame of target point cloud data is earlier than the sampling time corresponding to the second frame of target point cloud data;

[0047] A first volume determination module, configured to determine a first total volume of the object to be detected based on the coordinates of the sampling points included in the first frame of target point cloud data, and to determine a second total volume of the object to be detected based on the coordinates of the sampling points included in the second frame of target point cloud data;

[0048] A projection point region determination module is used to project the sampling points included in the two frames of target point cloud data onto a predetermined projection plane, respectively, to determine a first projection point region including the first projection point and a second projection point region including the second projection point; the first projection point region and the second projection point region have the same size;

[0049] A consistency comparison module, used to perform consistency comparison using the first projection point included in the first projection point area and the second projection point included in the second projection point area to obtain a consistency comparison result;

[0050] An updating module is used to update the second total volume using the first total volume according to the consistency comparison result, and determine the updated second total volume as the final volume of the object to be detected.

[0051] Optionally, the determining device further includes a loss value determining module, and the loss value determining module is used to:

[0052] Obtaining a first loss value corresponding to the first frame of target point cloud data and a second loss value corresponding to the second frame of target point cloud data;

[0053] determining whether the second loss value is greater than the first loss value;

[0054] When the answer is yes, determining the first total volume as the final volume of the object to be detected;

[0055] When the answer is no, the updated second total volume is determined as the final volume of the object to be detected.

[0056] Optionally, the determining device further includes a coordinate transformation module, and the coordinate transformation module is used to:

[0057] Obtaining tilt posture data of a point cloud acquisition device and two consecutive frames of initial point cloud data of the object to be detected acquired by the point cloud acquisition device; the initial point cloud data is point cloud data in a camera coordinate system;

[0058] According to the tilt posture data, coordinate transformation processing is performed on each frame of initial point cloud data to obtain two consecutive frames of original point cloud data of the object to be detected.

[0059] Optionally, when the cleaning module is used to clean each frame of original point cloud data to obtain a first frame of target point cloud data and a second frame of target point cloud data of the object to be detected, the cleaning module is used to:

[0060] For each frame of original point cloud data, a sampling space of a minimum volume including all sampling points is determined according to the coordinates of the sampling points included in the frame of original point cloud data;

[0061] Dividing the sampling space into a first preset number of sub-sampling spaces of the same size;

[0062] Count the number of sampling points included in each sub-sampling space;

[0063] Deleting all sampling points in the sub-sampling space including a number of sampling points less than a preset threshold;

[0064] The original point cloud data of the frame after the deletion operation is determined as the target point cloud data of the frame of the object to be detected.

[0065] Optionally, when the first volume determination module is used to determine the first total volume of the object to be detected based on the coordinates of the sampling points included in the first frame of target point cloud data, and to determine the second total volume of the object to be detected based on the coordinates of the sampling points included in the second frame of target point cloud data, the first volume determination module is used to:

[0066] Based on the first frame of target point cloud data and the second frame of target point cloud data, determining a first point cloud space including all sampling points in the first frame of target point cloud data and a second point cloud space including all sampling points in the second frame of target point cloud data; the first point cloud space and the second point cloud space are cubes with the same size;

[0067] For any point cloud space in the first point cloud space and the second point cloud space, dividing the point cloud space into a second preset number of sub-point cloud spaces of the same size;

[0068] For any sub-point cloud space, based on the coordinates of the sampling points included in the sub-point cloud space, determine the sub-volume of the object to be detected;

[0069] All sub-volumes determined to belong to the same point cloud space are added together, and the added volume is determined as the total volume of the object to be detected; the total volume is the first total volume or the second total volume.

[0070] Optionally, when the consistency comparison module is used to perform consistency comparison using the first projection point included in the first projection point area and the second projection point included in the second projection point area to obtain a consistency comparison result, the consistency comparison module is used to:

[0071] For any projection point area in the first projection point area and the second projection point area, dividing the projection point area into a second preset number of sub-projection point areas of the same size;

[0072] The projection points in the sub-projection point areas at the same position in the first projection point area and the second projection point area are compared for consistency to obtain multiple consistency comparison results.

[0073] Optionally, when the updating module is used to update the second total volume using the first total volume according to the consistency comparison result, and determine the updated second total volume as the final volume of the object to be detected, the updating module is used to:

[0074] When any consistency comparison result indicates that the projection points included in the two sub-projection point regions are consistent, determining a sub-volume in the first total volume corresponding to the sub-projection point region in the first projection point region and determining a sub-volume in the second total volume corresponding to the sub-projection point region in the second projection point region;

[0075] The subvolume in the first total volume is used to update the corresponding subvolume in the second total volume, and the updated second total volume is determined as the final volume of the object to be detected.

[0076] Optionally, the determining device further includes a second volume determining module, wherein the second volume determining module is configured to:

[0077] Obtaining point cloud data of the outlines of multiple objects to be detected after being superimposed;

[0078] Cutting the point cloud data from bottom to top according to a predetermined cutting interval to obtain multiple groups of horizontal point cloud slices;

[0079] For each horizontal point cloud slice, vertically project the points included in the horizontal point cloud slice onto the lower surface of the horizontal point cloud slice to determine a plurality of projection points;

[0080] Based on the multiple projection points, the area of ​​the minimum inscribed triangle is calculated by the rotating compass method, and the area of ​​the triangle is determined as the bottom area of ​​the horizontal point cloud slice;

[0081] Determine the volume of each horizontal point cloud slice based on the bottom area of ​​each horizontal point cloud slice and a predetermined cutting interval;

[0082] The volumes of all horizontal point cloud slices are added together, and the total volume determined after the addition is determined as the volume of the multiple objects to be detected after superposition.

[0083] An embodiment of the present application also provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the determination method as described above are performed.

[0084] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the determination method described above are executed.

[0085] In this way, the present application first obtains the original point cloud data in the world coordinate system by respectively performing coordinate conversion on two consecutive frames of initial point cloud data; then determines the target point cloud data of the object to be detected through cleaning processing; then, determines the volume of the object to be detected twice according to the two consecutive frames of target point cloud data of the object to be detected; finally, utilizing the data inheritance characteristics of the consecutive frames, the second volume is updated using the first volume based on the time series to obtain the true volume of the object to be detected, thereby effectively improving the accuracy of calculating the volume of the object to be detected.

[0086] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0087] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0088] Figure 1 A flow chart of a method for determining the volume of an object provided in an embodiment of the present application;

[0089] Figure 2 Schematic diagram of the segmentation of the sampling space;

[0090] Figure 3 Schematic diagram of the segmentation of point cloud space;

[0091] Figure 4 A schematic diagram of a projection point area in an embodiment of the present application;

[0092] Figure 5 One of the structural schematic diagrams of a device for determining the volume of an object provided in an embodiment of the present application;

[0093] Figure 6 A second structural schematic diagram of a device for determining the volume of an object provided in an embodiment of the present application;

[0094] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0095] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.

[0096] In recent years, with the rapid development of economic globalization, a large amount of materials need to flow frequently between regions. In particular, the rise of e-commerce resulting from the information technology revolution has led to a rapid development of the logistics industry.

[0097] At present, the volume measurement of objects, represented by logistics goods, is increasingly used in factories, warehouses, etc. In order to achieve rapid sorting, assembly, and accurate delivery of objects, it is necessary to measure and record the volume of objects.

[0098] Based on this, an embodiment of the present application provides a method for determining the volume of an object. By including two consecutive frames of point cloud data of the object to be detected, two measured volumes of the object to be detected are determined, and then the final volume of the object to be detected is determined based on the two measured volumes, which can effectively improve the accuracy of object volume measurement.

[0099] See also Figure 1 , Figure 1 This is a flow chart of a method for determining the volume of an object provided in an embodiment of the present application. Figure 1 As shown in , a method for determining the volume of an object provided in an embodiment of the present application includes:

[0100] S101, obtaining two consecutive frames of original point cloud data of the object to be detected; the original point cloud data is point cloud data in a world coordinate system.

[0101] Optionally, before obtaining two consecutive frames of original point cloud data of the object to be detected, the determination method also includes: obtaining the tilt posture data of the point cloud acquisition device and two consecutive frames of initial point cloud data of the object to be detected acquired by the point cloud acquisition device; the initial point cloud data is the point cloud data in the camera coordinate system; according to the tilt posture data, performing coordinate transformation processing on each frame of the initial point cloud data to obtain two consecutive frames of original point cloud data of the object to be detected.

[0102] In this step, first, the tilt posture data of the point cloud acquisition device deviating from the preset reference plane is obtained, and the tilt posture data includes: the size value of the point cloud acquisition device, the angle between the coordinate axis of the camera coordinate system corresponding to the point cloud acquisition device and the preset reference plane, and other data; then, according to the tilt posture data and the coordinate axis conversion formula, the coordinate transformation processing is performed on each frame of the initial point cloud data, so as to obtain the original point cloud data in two consecutive frames of the world coordinate system.

[0103] Here, the coordinate value of each sampling point in the initial point cloud data can be transformed by the following formula:

[0104]

[0105] Then rotate θ around the y-axis:

[0106]

[0107] Then rotate β around the x-axis:

[0108]

[0109] Where x, y, z are the initial coordinate values ​​of the sampling point in the initial point cloud data in the camera coordinate system, h is the height value of the point cloud acquisition device, θ is the angle between the point cloud acquisition device and the horizontal plane of the ground, β is the angle between the point cloud acquisition device and the vertical plane of the ground, and x″ ′ ,y″ ′ , z″ ′ It is the original coordinate value of the sampling point in the original point cloud data in the world coordinate system after the coordinate transformation is completed.

[0110] S102, cleaning each frame of original point cloud data respectively to obtain a first frame of target point cloud data and a second frame of target point cloud data of the object to be detected; the sampling time corresponding to the first frame of target point cloud data is earlier than the sampling time corresponding to the second frame of target point cloud data.

[0111] Optionally, the cleaning process is performed on each frame of original point cloud data to obtain a first frame of target point cloud data and a second frame of target point cloud data of the object to be detected, including: for each frame of original point cloud data, according to the coordinates of the sampling points included in the frame of original point cloud data, determining a sampling space of the minimum volume including all sampling points; dividing the sampling space into a first preset number of sub-sampling spaces of the same size; counting the number of sampling points included in each sub-sampling space; deleting all sampling points in the sub-sampling space including a number of sampling points less than a preset threshold; and determining the frame of original point cloud data after the deletion operation as the frame of target point cloud data of the object to be detected.

[0112] Although the original point cloud data includes the real point cloud data of the object to be detected (i.e., the target point cloud data), there is also some interference information (interference sampling points). Therefore, in order to more accurately calculate the volume of the object to be detected, it is necessary to clean the interference sampling points in each frame of the original point cloud data to determine the target point cloud data of the object to be detected. The specific screening process includes:

[0113] First, for each frame of raw point cloud data, a sampling space of the minimum volume including all sampling points in the frame of raw point cloud data is determined according to the coordinate values ​​of the sampling points included in the frame of raw point cloud data. The determined sampling space can be a cube, and one sampling space can be determined for each frame of raw point cloud data.

[0114] Secondly, for the sampling space corresponding to each frame of original point cloud data, the sampling space is divided into a preset number of sub-sampling spaces of the same size. Here, the preset number can be adaptively selected and set according to the determined volume size of the sampling space, or can be specified in advance by an expert.

[0115] For examples, see Figure 2 , Figure 2 is a schematic diagram of the segmentation of the sampling space. Figure 2 As shown in , the sampling space is divided into 160 sub-sampling spaces of the same size. It should be noted that, in actual situations, the sampling space can be divided into a larger number of sub-sampling spaces.

[0116] Next, the number of sampling points included in each sub-sampling space is determined, and all sampling points in the sub-sampling space whose number of sampling points is less than a preset threshold are deleted. Here, it is considered that the sampling points in the sub-sampling space whose number of sampling points does not meet the standard are all interference sampling points of the object to be detected, and need to be cleaned.

[0117] Finally, for each frame of original point cloud data, the original point cloud data of the frame after the deletion operation is determined as the target point cloud data of the frame of the object to be detected. In this way, the first frame of original point cloud data after the deletion operation is determined as the first frame of target point cloud data of the object to be detected, and the second frame of original point cloud data after the deletion operation is determined as the second frame of target point cloud data of the object to be detected.

[0118] In addition, it should be noted that the acquisition time of the first frame of raw point cloud data is earlier than the acquisition time of the second frame of raw point cloud data, so that the sampling time corresponding to the first frame of target point cloud data is earlier than the sampling time corresponding to the second frame of target point cloud data. Here, the point cloud acquisition device used to acquire the first frame of raw point cloud data and the second frame of raw point cloud data is the same and the position is fixed. The difference is that the distance and position of the object to be detected from the point cloud acquisition device change, thereby obtaining two frames of raw point cloud data.

[0119] S103: determining a first total volume of the object to be detected based on the coordinates of the sampling points included in the first frame of target point cloud data, and determining a second total volume of the object to be detected based on the coordinates of the sampling points included in the second frame of target point cloud data.

[0120] Optionally, the determining the first total volume of the object to be detected based on the coordinates of the sampling points included in the first frame target point cloud data, and the determining the second total volume of the object to be detected based on the coordinates of the sampling points included in the second frame target point cloud data, include: determining a first point cloud space including all sampling points in the first frame target point cloud data and a second point cloud space including all sampling points in the second frame target point cloud data based on the first frame target point cloud data and the second frame target point cloud data; the first point cloud space and the second point cloud space are cubes with the same size; for any point cloud space in the first point cloud space and the second point cloud space, dividing the point cloud space into a second preset number of sub-point cloud spaces of the same size; for any sub-point cloud space, determining the sub-volume of the object to be detected based on the coordinates of the sampling points included in the sub-point cloud space; adding all sub-volumes determined to belong to the same point cloud space, and determining the added volume as the total volume of the object to be detected; the total volume is the first total volume or the second total volume.

[0121] In this step, after determining two consecutive frames of target point cloud data of the object to be detected, the total volume of the object to be detected can be measured once through one frame of target point cloud data, so that the total volume of the object to be detected can be measured twice, which are respectively recorded as the first total volume and the second total volume of the object to be detected. Here, the specific implementation steps of determining the total volume of the object to be detected based on the target point cloud data include the following:

[0122] First, for each frame of target point cloud data, determine the candidate point cloud space with the minimum volume that contains all the sampling points in the target point cloud data of the frame, so that two candidate point cloud spaces can be determined. When the volumes of the two determined candidate point cloud spaces are different, select the candidate point cloud space with the largest volume as the target point cloud space. In this way, based on the first frame of target point cloud data, determine the first point cloud space that includes all the sampling points in the first frame of target point cloud data, and based on the second frame of target point cloud data, determine the second point cloud space that includes all the sampling points in the second frame of target point cloud data; here, the first point cloud space and the second point cloud space are cubes of the same size, and the volumes of the first point cloud space and the second point cloud space are the same as the volume of the target point cloud space.

[0123] Then, for any point cloud space in the two determined point cloud spaces, the point cloud space is divided into a preset number of sub-point cloud spaces of the same size. The number of sub-point cloud spaces divided from the two point cloud spaces is the same, and the size is also the same.

[0124] Here, when the point cloud space is determined, the volume of the point cloud space is also determined, so that the volume of each sub-point cloud space and the area of ​​each face of the sub-point cloud space can be determined based on the number of sub-point cloud spaces divided. Here, when the point cloud space is divided, the height of the sub-point cloud space divided is the same as the height of the point cloud space.

[0125] For examples, see Figure 3 , Figure 3 is a schematic diagram of the segmentation of the point cloud space. Figure 3 As shown in , the determined point cloud space is divided into 160 sub-point cloud spaces of the same size. It should be noted that in actual situations, it can also be divided into more sub-point cloud spaces.

[0126] Then, for any sub-point cloud space, the coordinates of the sampling points included in the sub-point cloud space and the target sampling point farthest from the bottom surface of the point cloud space are determined. For any sub-point cloud space containing sampling points, the volume determined by multiplying the bottom surface area of ​​the sub-point cloud space by the vertical distance of the target sampling point from the bottom surface of the sub-point cloud space is used as the sub-volume of the object to be detected. In this way, based on multiple sub-point cloud spaces containing sampling points, multiple sub-volumes of the object to be detected can be determined.

[0127] Finally, all sub-volumes belonging to the first point cloud space are added together to determine a first total volume of the object to be detected, and all sub-volumes belonging to the second point cloud space are added together to determine a second total volume of the object to be detected.

[0128] S104. Project the sampling points included in the two frames of target point cloud data onto predetermined projection planes respectively, and determine a first projection point area including the first projection point and a second projection point area including the second projection point; the first projection point area and the second projection point area have the same size.

[0129] In this step, for each frame of target point cloud data, the sampling points are projected respectively, and vertical projection is performed on the projection plane in the same direction to determine the first projection point area corresponding to the first frame of target point cloud data and the second projection point area corresponding to the second frame of target point cloud data. Here, in order to ensure the subsequent volume update calculation, the first projection point area and the second projection area are determined to be the same size.

[0130] It should be noted that when the target point cloud data of the object to be detected is the point cloud data of the right side, front and top surface of the object to be detected, the determined projection plane is the bottom surface of the object to be detected. When performing projection processing, for the first frame of target point cloud data, all sampling points included in the frame of target point cloud data are vertically projected to the bottom surface, the projection point corresponding to each sampling point is determined, and the first projection area containing all projection points is determined. The projection processing of the second frame of target point cloud data is the same as that of the first frame of target point cloud data, which will not be repeated here.

[0131] In addition, it should be noted that the area of ​​the projection point region is the same as the area of ​​the upper surface (or bottom surface) of the point cloud space.

[0132] S105: Perform consistency comparison using the first projection point included in the first projection point area and the second projection point included in the second projection point area to obtain a consistency comparison result.

[0133] Optionally, the use of the first projection point included in the first projection point area and the second projection point included in the second projection point area for consistency comparison to obtain a consistency comparison result includes: for any projection point area in the first projection point area and the second projection point area, dividing the projection point area into a second preset number of sub-projection point areas of the same size; performing consistency comparison on the projection points in the sub-projection point areas at the same position in the first projection point area and the second projection point area to obtain multiple consistency comparison results.

[0134] In this step, after determining the first projection point area and the second projection point area, it is necessary to perform consistency comparison on the projection points contained in the two projection point areas to obtain consistency comparison results, which can provide a basis for subsequent volume update processing.

[0135] In order to better illustrate the process of comparing the consistency of projection points in two projection point areas in this application, an example is given by way of illustration. Figure 4 , Figure 4 Schematic diagram of the projection point area in the embodiment of the present application, such as Figure 4 As shown in , both cubes contain sampling points of the object to be detected (not shown in the figure), and the two cubes also represent the point cloud space in step S103. For the sampling points in any cube, the sampling points in the cube are projected to the bottom surface to obtain Figure 4 The two projection point areas shown in , the two projection point areas have the same size, for any projection point area, the projection point area is divided into a preset number of sub-projection point areas of the same size, such as Figure 4 As shown in , each small grid represents a sub-projection point area. Then, the first projection point area and the second projection point area at the same position ( Figure 4 The projection points in the sub-projection point area (not shown in the figure) with the same number in the image are compared for consistency to obtain multiple consistency comparison results.

[0136] Here, the consistency comparison can only compare whether the number of projection points is consistent, or can also compare whether the number of projection points and the positions of projection points are consistent. Each sub-projection area corresponds to a consistency comparison result, so that multiple consistency comparison results can be obtained.

[0137] It should also be noted that the number of sub-projection areas divided by the projection point area is determined by the number of sub-point cloud spaces divided by the point cloud space (the two numbers are the same). Figure 3 As shown in , the point cloud space is divided into 160 sub-point cloud spaces, corresponding to Figure 4 As shown, the projection area is also divided into 160 sub-projection areas, and the size of the upper surface of each sub-point cloud space is the same as the size of the sub-projection area.

[0138] S106. According to the consistency comparison result, use the first total volume to update the second total volume, and determine the updated second total volume as the final volume of the object to be detected.

[0139] Optionally, according to the consistency comparison result, the volume of the second total volume is updated using the first total volume, and the updated second total volume is determined as the final volume of the object to be detected, including: when any consistency comparison result indicates that the projection points included in two sub-projection point areas are consistent, determining the sub-volume in the first total volume corresponding to the sub-projection point area in the first projection point area and determining the sub-volume in the second total volume corresponding to the sub-projection point area in the second projection point area; using the sub-volume in the first total volume to update the corresponding sub-volume in the second total volume, and determining the updated second total volume as the final volume of the object to be detected.

[0140] For a better explanation of the volume update process in this application, please continue to refer to Figure 4As shown. As shown in the figure, if the projection point corresponding to 1 in the first projection area and the second projection area has not changed, then determine the sub-volume of the object to be detected in the sub-point cloud space (the small cube at the right top corner position) in the first point cloud space (the first row, the first picture) corresponding to 1 in the first projection area (the first row, the second picture), that is, the sub-volume in the first total volume; and determine the sub-volume of the object to be detected in the sub-point cloud space (the small cube at the right top corner position) in the second point cloud space (the second row, the first picture) corresponding to 1 in the second projection area (the second row, the second picture), that is, the sub-volume in the second total volume. Finally, use the first sub-volume to update the corresponding second sub-volume in the second total volume, and determine the updated second total volume as the final volume of the object to be detected.

[0141] It should be noted that if the projection points in the multiple sub-projection areas in the first projection area and the second projection area are consistent, the sub-volume corresponding to each sub-projection area is calculated and updated, and finally the updated volume is determined as the final volume of the object to be detected.

[0142] Optionally, before determining the updated second total volume as the final volume of the object to be detected, the determination method also includes: obtaining a first loss value corresponding to the first frame target point cloud data and a second loss value corresponding to the second frame target point cloud data; determining whether the second loss value is greater than the first loss value; when yes, determining the first total volume as the final volume of the object to be detected; when no, determining the updated second total volume as the final volume of the object to be detected.

[0143] Optionally, after determining the final volume of the object to be detected, the determination method also includes: obtaining point cloud data of the outlines of multiple objects to be detected after superposition; cutting the point cloud data from bottom to top according to a predetermined cutting interval to obtain multiple groups of horizontal point cloud slices; for each horizontal point cloud slice, vertically projecting the points included in the horizontal point cloud slice to the lower surface of the horizontal point cloud slice to determine multiple projection points; based on the multiple projection points, calculating the area of ​​the minimum inscribed triangle by the rotating compass method, and determining the area of ​​the triangle as the bottom area of ​​the horizontal point cloud slice; determining the volume of each horizontal point cloud slice based on the bottom area of ​​each horizontal point cloud slice and the predetermined cutting interval; adding the volumes of all horizontal point cloud slices, and determining the total volume determined after the addition as the volume of the multiple objects to be detected after superposition.

[0144] In this step, the volume of the irregular shape formed by the superposition of multiple objects to be detected is calculated. The volume calculation here is based on the idea of ​​integration. The specific calculation process is as follows:

[0145] First, point cloud data of the outlines of multiple objects to be detected after being superimposed are obtained. Here, the height of the superimposed objects can also be determined based on the point cloud data.

[0146] Then, the point cloud data is cut from bottom to top according to a predetermined cutting interval to obtain multiple groups of horizontal point cloud slices. Here, the predetermined cutting interval can be selected based on the height of the superimposed object determined by the point cloud data, and the thickness of each point cloud slice is the same.

[0147] Then, for each point cloud slice, the sampling points included in the point cloud slice are vertically projected to the lower surface of the horizontal point cloud slice to determine multiple projection points, and the circle with the minimum area containing all the projection points in the horizontal point cloud slice is determined, and the area of ​​the minimum inscribed triangle of the circle is determined, and the area of ​​the triangle is determined as the bottom area of ​​the horizontal point cloud slice.

[0148] Finally, according to the volume calculation formula of the triangular pyramid, the volume of each point cloud slice is calculated, and the volumes of all point cloud slices are added together to obtain the superimposed volume of multiple objects to be detected, thereby realizing the calculation of the volume of irregular objects.

[0149] Here, the volume of the triangular pyramid is calculated by multiplying the bottom area of ​​the point cloud slice by the predetermined cutting interval and then dividing by 1 / 3.

[0150] In this way, the present application first converts the coordinates of two consecutive frames of initial point cloud data to obtain the original point cloud data in the world coordinate system; then, through cleaning processing, the target point cloud data of the object to be detected is determined; then, according to the two frames of target point cloud data corresponding to the object to be detected, the volume of the object to be detected is determined twice; finally, using the data inheritance characteristics of the consecutive frames, the first volume is used to update the second volume based on the time series to obtain the real volume of the object to be detected. This can effectively improve the accuracy of calculating the volume of the object to be detected.

[0151] See also Figure 5 , Figure 6 , Figure 5 This is one of the structural schematic diagrams of a device for determining the volume of an object provided in an embodiment of the present application. Figure 6 This is a second structural diagram of a device for determining the volume of an object provided in an embodiment of the present application. Figure 5 As shown in , the determining device 500 includes:

[0152] An acquisition module 510 is used to acquire two consecutive frames of original point cloud data of the object to be detected; the original point cloud data is point cloud data in a world coordinate system;

[0153] A cleaning module 520 is used to clean each frame of original point cloud data to obtain a first frame of target point cloud data and a second frame of target point cloud data of the object to be detected; the sampling time corresponding to the first frame of target point cloud data is earlier than the sampling time corresponding to the second frame of target point cloud data;

[0154] A first volume determination module 530, configured to determine a first total volume of the object to be detected based on the coordinates of the sampling points included in the first frame of target point cloud data, and to determine a second total volume of the object to be detected based on the coordinates of the sampling points included in the second frame of target point cloud data;

[0155] The projection point region determination module 540 is used to project the sampling points included in the two frames of target point cloud data onto a predetermined projection plane, and determine a first projection point region including the first projection point and a second projection point region including the second projection point; the first projection point region and the second projection point region have the same size;

[0156] A consistency comparison module 550 is used to perform consistency comparison using the first projection point included in the first projection point area and the second projection point included in the second projection point area to obtain a consistency comparison result;

[0157] The updating module 560 is configured to update the second total volume using the first total volume according to the consistency comparison result, and determine the updated second total volume as the final volume of the object to be detected.

[0158] Optional, such as Figure 6 As shown, the determining device 500 further includes a loss value determining module 570, and the loss value determining module 570 is used to:

[0159] Obtaining a first loss value corresponding to the first frame of target point cloud data and a second loss value corresponding to the second frame of target point cloud data;

[0160] determining whether the second loss value is greater than the first loss value;

[0161] When the answer is yes, determining the first total volume as the final volume of the object to be detected;

[0162] When the answer is no, the updated second total volume is determined as the final volume of the object to be detected.

[0163] Optionally, the determining device 500 further includes a coordinate transformation module 580, and the coordinate transformation module 580 is used to:

[0164] Obtaining tilt posture data of a point cloud acquisition device and two consecutive frames of initial point cloud data of the object to be detected acquired by the point cloud acquisition device; the initial point cloud data is point cloud data in a camera coordinate system;

[0165] According to the tilt posture data, coordinate transformation processing is performed on each frame of initial point cloud data to obtain two consecutive frames of original point cloud data of the object to be detected.

[0166] Optionally, when the cleaning module 520 is used to clean each frame of original point cloud data to obtain a first frame of target point cloud data and a second frame of target point cloud data of the object to be detected, the cleaning module 520 is used to:

[0167] For each frame of original point cloud data, a sampling space of a minimum volume including all sampling points is determined according to the coordinates of the sampling points included in the frame of original point cloud data;

[0168] Dividing the sampling space into a first preset number of sub-sampling spaces of the same size;

[0169] Count the number of sampling points included in each sub-sampling space;

[0170] Deleting all sampling points in the sub-sampling space including a number of sampling points less than a preset threshold;

[0171] The original point cloud data of the frame after the deletion operation is determined as the target point cloud data of the frame of the object to be detected.

[0172] Optionally, when the first volume determination module 530 is used to determine the first total volume of the object to be detected based on the coordinates of the sampling points included in the first frame of target point cloud data, and to determine the second total volume of the object to be detected based on the coordinates of the sampling points included in the second frame of target point cloud data, the first volume determination module 530 is used to:

[0173] Based on the first frame of target point cloud data and the second frame of target point cloud data, determining a first point cloud space including all sampling points in the first frame of target point cloud data and a second point cloud space including all sampling points in the second frame of target point cloud data; the first point cloud space and the second point cloud space are cubes with the same size;

[0174] For any point cloud space in the first point cloud space and the second point cloud space, dividing the point cloud space into a second preset number of sub-point cloud spaces of the same size;

[0175] For any sub-point cloud space, based on the coordinates of the sampling points included in the sub-point cloud space, determine the sub-volume of the object to be detected;

[0176] All sub-volumes determined to belong to the same point cloud space are added together, and the added volume is determined as the total volume of the object to be detected; the total volume is the first total volume or the second total volume.

[0177] Optionally, when the consistency comparison module 550 is used to perform consistency comparison using the first projection point included in the first projection point area and the second projection point included in the second projection point area to obtain a consistency comparison result, the consistency comparison module 550 is used to:

[0178] For any projection point area in the first projection point area and the second projection point area, dividing the projection point area into a second preset number of sub-projection point areas of the same size;

[0179] The projection points in the sub-projection point areas at the same position in the first projection point area and the second projection point area are compared for consistency to obtain multiple consistency comparison results.

[0180] Optionally, when the updating module 560 is used to update the second total volume using the first total volume according to the consistency comparison result, and determine the updated second total volume as the final volume of the object to be detected, the updating module 560 is used to:

[0181] When any consistency comparison result indicates that the projection points included in the two sub-projection point regions are consistent, determining a sub-volume in the first total volume corresponding to the sub-projection point region in the first projection point region and determining a sub-volume in the second total volume corresponding to the sub-projection point region in the second projection point region;

[0182] The subvolume in the first total volume is used to update the corresponding subvolume in the second total volume, and the updated second total volume is determined as the final volume of the object to be detected.

[0183] Optionally, the determining device 500 further includes a second volume determining module 590, and the second volume determining module 590 is configured to:

[0184] Obtaining point cloud data of the outlines of multiple objects to be detected after being superimposed;

[0185] Cutting the point cloud data from bottom to top according to a predetermined cutting interval to obtain multiple groups of horizontal point cloud slices;

[0186] For each horizontal point cloud slice, vertically project the points included in the horizontal point cloud slice onto the lower surface of the horizontal point cloud slice to determine a plurality of projection points;

[0187] Based on the multiple projection points, the area of ​​the minimum inscribed triangle is calculated by the rotating compass method, and the area of ​​the triangle is determined as the bottom area of ​​the horizontal point cloud slice;

[0188] Determine the volume of each horizontal point cloud slice based on the bottom area of ​​each horizontal point cloud slice and a predetermined cutting interval;

[0189] The volumes of all horizontal point cloud slices are added together, and the total volume determined after the addition is determined as the volume of the multiple objects to be detected after superposition.

[0190] See also Figure 7 , Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown in , the electronic device 700 includes a processor 710 , a memory 720 and a bus 730 .

[0191] The memory 720 stores machine-readable instructions executable by the processor 710. When the electronic device 700 is running, the processor 710 communicates with the memory 720 via the bus 730. When the machine-readable instructions are executed by the processor 710, the above-mentioned Figures 1 to 4 The specific implementation of the steps in the method embodiment shown can be found in the method embodiment, and will not be repeated here.

[0192] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figures 1 to 4 The specific implementation of the steps in the method embodiment shown can be found in the method embodiment, and will not be repeated here.

[0193] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0194] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0195] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0196] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0197] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0198] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for determining the volume of an object, It is characterized in that The determination method comprises: Acquire two consecutive frames of original point cloud data of the object to be detected; the original point cloud data is point cloud data in a world coordinate system; Each frame of original point cloud data is cleaned and processed respectively to obtain a first frame of target point cloud data and a second frame of target point cloud data of the object to be detected; the sampling time corresponding to the first frame of target point cloud data is earlier than the sampling time corresponding to the second frame of target point cloud data; Determine a first total volume of the object to be detected based on the coordinates of the sampling points included in the first frame of target point cloud data, and determine a second total volume of the object to be detected based on the coordinates of the sampling points included in the second frame of target point cloud data; The sampling points included in the two frames of target point cloud data are projected onto a predetermined projection plane respectively, and a first projection point area including the first projection point and a second projection point area including the second projection point are determined; the first projection point area and the second projection point area have the same size; Perform consistency comparison using the first projection point included in the first projection point area and the second projection point included in the second projection point area to obtain a consistency comparison result; According to the consistency comparison result, using the first total volume to update the second total volume, and determining the updated second total volume as the final volume of the object to be detected; The method of updating the second total volume using the first total volume according to the consistency comparison result, and determining the updated second total volume as the final volume of the object to be detected includes: When any consistency comparison result indicates that the projection points included in the two sub-projection point regions are consistent, determining a sub-volume in the first total volume corresponding to the sub-projection point region in the first projection point region and determining a sub-volume in the second total volume corresponding to the sub-projection point region in the second projection point region; The subvolume in the first total volume is used to update the corresponding subvolume in the second total volume, and the updated second total volume is determined as the final volume of the object to be detected.

2. The determination method according to claim 1, It is characterized in that Before determining the updated second total volume as the final volume of the object to be detected, the determination method further includes: Obtaining a first loss value corresponding to the first frame of target point cloud data and a second loss value corresponding to the second frame of target point cloud data; determining whether the second loss value is greater than the first loss value; When the answer is yes, determining the first total volume as the final volume of the object to be detected; When the answer is no, the updated second total volume is determined as the final volume of the object to be detected.

3. The determination method according to claim 1, It is characterized in that Before acquiring two consecutive frames of original point cloud data of the object to be detected, the determination method further includes: Obtaining tilt posture data of a point cloud acquisition device and two consecutive frames of initial point cloud data of the object to be detected acquired by the point cloud acquisition device; the initial point cloud data is point cloud data in a camera coordinate system; According to the tilt posture data, coordinate transformation processing is performed on each frame of initial point cloud data to obtain two consecutive frames of original point cloud data of the object to be detected.

4. The determination method according to claim 1, It is characterized in that The cleaning process is performed on each frame of original point cloud data to obtain the first frame of target point cloud data and the second frame of target point cloud data of the object to be detected, including: For each frame of original point cloud data, a sampling space of a minimum volume including all sampling points is determined according to the coordinates of the sampling points included in the frame of original point cloud data; Dividing the sampling space into a first preset number of sub-sampling spaces of the same size; Count the number of sampling points included in each sub-sampling space; Deleting all sampling points in the sub-sampling space including a number of sampling points less than a preset threshold; The original point cloud data of the frame after the deletion operation is determined as the target point cloud data of the frame of the object to be detected.

5. The determination method according to claim 1, It is characterized in that The determining of a first total volume of the object to be detected based on the coordinates of the sampling points included in the first frame of target point cloud data, and determining a second total volume of the object to be detected based on the coordinates of the sampling points included in the second frame of target point cloud data, comprises: Based on the first frame of target point cloud data and the second frame of target point cloud data, determining a first point cloud space including all sampling points in the first frame of target point cloud data and a second point cloud space including all sampling points in the second frame of target point cloud data; the first point cloud space and the second point cloud space are cubes with the same size; For any point cloud space in the first point cloud space and the second point cloud space, dividing the point cloud space into a second preset number of sub-point cloud spaces of the same size; For any sub-point cloud space, based on the coordinates of the sampling points included in the sub-point cloud space, determine the sub-volume of the object to be detected; All sub-volumes determined to belong to the same point cloud space are added together, and the added volume is determined as the total volume of the object to be detected; the total volume is the first total volume or the second total volume.

6. The determination method according to claim 5, It is characterized in that The using the first projection point included in the first projection point area and the second projection point included in the second projection point area to perform consistency comparison to obtain a consistency comparison result includes: For any projection point area in the first projection point area and the second projection point area, dividing the projection point area into a second preset number of sub-projection point areas of the same size; The projection points in the sub-projection point areas at the same position in the first projection point area and the second projection point area are compared for consistency to obtain multiple consistency comparison results.

7. The determination method according to claim 1, It is characterized in that After determining the final volume of the object to be detected, the determination method further includes: Obtaining point cloud data of the outlines of multiple objects to be detected after being superimposed; Cutting the point cloud data from bottom to top according to a predetermined cutting interval to obtain multiple groups of horizontal point cloud slices; For each horizontal point cloud slice, vertically project the points included in the horizontal point cloud slice onto the lower surface of the horizontal point cloud slice to determine a plurality of projection points; Based on the multiple projection points, the area of ​​the minimum inscribed triangle is calculated by the rotating compass method, and the area of ​​the triangle is determined as the bottom area of ​​the horizontal point cloud slice; Determine the volume of each horizontal point cloud slice based on the bottom area of ​​each horizontal point cloud slice and a predetermined cutting interval; The volumes of all horizontal point cloud slices are added together, and the total volume determined after the addition is determined as the volume of the multiple objects to be detected after superposition.

8. A device for determining the volume of an object, It is characterized in that The determining device comprises: An acquisition module is used to acquire two consecutive frames of original point cloud data of the object to be detected; the original point cloud data is point cloud data in a world coordinate system; A cleaning module is used to clean each frame of original point cloud data to obtain a first frame of target point cloud data and a second frame of target point cloud data of the object to be detected; the sampling time corresponding to the first frame of target point cloud data is earlier than the sampling time corresponding to the second frame of target point cloud data; A first volume determination module, configured to determine a first total volume of the object to be detected based on the coordinates of the sampling points included in the first frame of target point cloud data, and to determine a second total volume of the object to be detected based on the coordinates of the sampling points included in the second frame of target point cloud data; A projection point region determination module is used to project the sampling points included in the two frames of target point cloud data onto a predetermined projection plane, respectively, to determine a first projection point region including the first projection point and a second projection point region including the second projection point; the first projection point region and the second projection point region have the same size; A consistency comparison module, used to perform consistency comparison using the first projection point included in the first projection point area and the second projection point included in the second projection point area to obtain a consistency comparison result; an updating module, configured to update the second total volume using the first total volume according to the consistency comparison result, and determine the updated second total volume as the final volume of the object to be detected; When the updating module is used to update the second total volume using the first total volume according to the consistency comparison result, and determine the updated second total volume as the final volume of the object to be detected, the updating module is used to: When any consistency comparison result indicates that the projection points included in the two sub-projection point regions are consistent, determining a sub-volume in the first total volume corresponding to the sub-projection point region in the first projection point region and determining a sub-volume in the second total volume corresponding to the sub-projection point region in the second projection point region; The subvolume in the first total volume is used to update the corresponding subvolume in the second total volume, and the updated second total volume is determined as the final volume of the object to be detected.

9. An electronic device, It is characterized in that include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to perform the steps of the determination method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the determination method according to any one of claims 1 to 7 are executed.

Citation Information

Patent Citations

  • Method and device for obtaining volumes of target objects, terminal equipment and storage medium

    CN108416804A

  • Point cloud amount square algorithm based on irregular object

    CN110853092A

  • Three-dimensional object segmentation method and device and medium

    WO2020093950A1

  • Method for detecting package, apparatus, computing device, logistics system and storage medium

    WO2021136509A1