Object size measurement method and device based on point cloud, equipment and storage medium
Through point cloud-based object size measurement methods, point cloud data and image processing technology are used to accurately measure object size, solving the problem of inaccurate dimension measurement in freight and improving the accuracy and reliability of measurement.
Patent Information
- Application Number
- CN202411165662.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-11-15
AI Technical Summary
In the prior art, inaccurate measurement of cargo size leads to large errors in freight costs, and the inability to accurately measure object size is a pain point in the freight field.
Using the point cloud-based object size measurement method, the coordinate data of the target image area is determined by obtaining point cloud data and target image, and the point cloud data is segmented based on the preset segmentation model to obtain the target point cloud and calculate the target object. size information.
It improves the accuracy of object size measurement, reduces the dependence of manual prediction, and enhances the reliability of measurement results.
Smart Images

Figure CN118967773A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of point cloud processing, and in particular to a method, device, equipment and storage medium for measuring object size based on point cloud. Background Art
[0002] In the freight field, cargo size measurement is a pain point. Users need to fill in the cargo size in the freight order, and the freight platform calculates the freight cost based on information such as cargo size and freight distance.
[0003] In the prior art, users can only estimate the size of goods and then fill in the estimated size of goods in the freight order. However, the estimated size of goods is often inaccurate, which results in a large error in the freight cost.
[0004] Therefore, how to accurately measure the size of an object is a technical problem to be solved in this field. Summary of the invention
[0005] The main purpose of the present invention is to provide a method, device, computer equipment and storage medium for measuring object size based on point cloud, aiming to solve the technical problem of not being able to accurately measure the size of an object.
[0006] To achieve the above object, the present invention provides a method for measuring object size based on point cloud, the method comprising: Acquire point cloud data obtained by scanning a target object, and obtain a target image obtained by photographing the target object; Determine coordinate data corresponding to a target image area in the target image; the target image area is at least a partial image area in the target image; Based on the preset segmentation model and the coordinate data, performing point cloud segmentation processing on the point cloud data to obtain a target point cloud; The size information corresponding to the target object is determined based on the target point cloud.
[0007] Optionally, determining coordinate data corresponding to a target image area in the target image includes: In response to a target input, determining a target image area in the target image, wherein the target image area is a rectangular area; Obtaining coordinates of four vertices of the target image area in the target image; The coordinates of the four vertices of the target image area in the target image are determined as the coordinate data.
[0008] Optionally, the target input includes a first input, and in response to the target input, determining a target image area in the target image includes: In response to the first input, generating a rectangular selection box; The area covered by the rectangular selection frame in the target image is determined as the target image area.
[0009] Optionally, the target input includes a first input and a second input, and in response to the target input, determining a target image area in the target image includes: In response to the first input, generating a rectangular selection box; In response to the second input, adjusting the rectangular selection box; The area covered by the adjusted rectangular selection frame in the target image is determined as the target image area.
[0010] Optionally, determining coordinate data corresponding to a target image area in the target image includes: Obtaining the number of point clouds included in the point cloud data; When the number of point clouds is greater than or equal to a preset value, coordinate data corresponding to a target image area in the target image is determined; and the preset value is greater than 4.
[0011] Optionally, the target point cloud includes a plurality of points, and determining size information corresponding to the target object based on the target point cloud includes: Calculating the distance between each point in the target point cloud and the center point of the target point cloud; Filter out points in the target point cloud whose distance from the center point is greater than a preset distance to obtain a filtered target point cloud; The size information corresponding to the target object is determined based on the filtered target point cloud.
[0012] Optionally, the size information includes length information, width information, height information and volume information, and determining the size information corresponding to the target object based on the target point cloud includes: Generate a bounding box based on the target point cloud; Obtain length information, width information, height information, and volume information corresponding to the bounding box.
[0013] In addition, to achieve the above-mentioned purpose, the present invention also provides an object size measurement device based on point cloud, which is characterized by comprising: An acquisition module, used to acquire point cloud data obtained by scanning a target object, and to acquire a target image obtained by photographing the target object; A first determining module is used to determine coordinate data corresponding to a target image area in the target image; the target image area is at least a partial image area in the target image; A segmentation module, used to perform point cloud segmentation processing on the point cloud data based on a preset segmentation model and the coordinate data to obtain a target point cloud; The second determination module is used to determine the size information corresponding to the target object based on the target point cloud.
[0014] Object size measurement Object size measurement In order to solve the above technical problems, the embodiment of the present application also provides a computer device, which adopts the following technical solution: The computer device includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of any one of the point cloud-based object size measurement methods proposed in the embodiments of the present application are implemented.
[0015] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of any one of the point cloud-based object size measurement methods proposed in the embodiments of the present application are implemented.
[0016] Compared with the prior art, the embodiments of the present application have the following beneficial effects: The embodiment of the present invention provides a method, device, equipment and storage medium for measuring the size of an object based on a point cloud, the method comprising: acquiring point cloud data obtained by scanning a target object, and a target image obtained by photographing the target object; determining coordinate data corresponding to a target image area in the target image; the target image area is at least a portion of the image area in the target image; based on a preset segmentation model and coordinate data, performing point cloud segmentation processing on the point cloud data to obtain a target point cloud; and determining the size information corresponding to the target object based on the target point cloud. In the embodiment of the present invention, the size information corresponding to the target object can be determined based on the point cloud data obtained by scanning the target object, and the target image obtained by photographing the target object, without the need for manual estimation of the size information of the object, thereby improving the accuracy of measuring the size information of the object. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 is an exemplary system architecture diagram to which the present application may be applied; Figure 2is a flow chart of a method for measuring object size based on point cloud provided by an embodiment of the present invention; Figure 3 is an application flow chart of the object size measurement method based on point cloud provided by an embodiment of the present invention; Figure 4 is a schematic structural diagram of an embodiment of a point cloud-based object size measurement device according to the present application; Figure 5 This is a basic structural block diagram of the computer device in this embodiment. DETAILED DESCRIPTION
[0019] The point cloud-based object size measurement method provided by the embodiment of the present invention is applied to the point cloud-based object size measurement device. Unless otherwise defined, all technical and scientific terms used in this document have the same meaning as those generally understood by technicians in the technical field of this application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned drawings and any variations thereof are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0020] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0022] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0023] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social online platform software, etc.
[0024] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV), laptop computers, desktop computers, etc.
[0025] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0026] It should be noted that the point cloud-based object size measurement method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the point cloud-based object size measurement device is generally set in the server / terminal device.
[0027] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0028] Please refer to Figure 2 , shows a flow chart of an embodiment of the object size measurement method based on point cloud proposed in the present application. The embodiment of the present application can acquire and process relevant data based on artificial intelligence technology.
[0029] The object size measurement method based on point cloud provided by the embodiment of the present invention comprises the following steps: S210, acquiring point cloud data obtained by scanning a target object, and a target image obtained by photographing the target object.
[0030] In this step, in a freight scene, the target object may be an object to be transported. The object size measurement method based on point cloud provided in an embodiment of the present invention may be applied to electronic devices. In a freight scene, the object to be transported may be scanned to obtain point cloud data, and the target object may be photographed to obtain a target image.
[0031] This step does not limit the point cloud generation technology for scanning the target object to obtain point cloud data.
[0032] Optionally, the above point cloud data can be saved as key-value data, where key is a coordinate identifier and value is a 3D coordinate.
[0033] S220, determining coordinate data corresponding to a target image area in the target image.
[0034] The target image area is at least a partial image area in the target image.
[0035] In this step, an optional manner is to receive user input, determine the target image area in response to the user input, and then determine the coordinate data corresponding to the target image area.
[0036] It should be noted that the above coordinate data is 2D coordinate data.
[0037] S230, performing point cloud segmentation processing on the point cloud data based on a preset segmentation model and the coordinate data to obtain a target point cloud.
[0038] A segmentation model is pre-set, and optionally, the segmentation model is a SAM model. The SAM model can perform zero-shot generalization on unfamiliar objects and images without additional training, thereby "cutting out" any object in any image.
[0039] In this step, the point cloud data and coordinate data are used as the input of the SAM model, and the point cloud data is segmented to obtain the target point cloud.
[0040] In this step, other types of segmentation models may also be used, such as the TODAM model and the Matrix model, which are not specifically introduced in this embodiment.
[0041] S240: Determine size information corresponding to the target object based on the target point cloud.
[0042] In this step, after the target point cloud is obtained, the size information corresponding to the target object can be determined based on the target point cloud. For specific implementation methods, please refer to the subsequent embodiments.
[0043] In an embodiment of the present invention, based on the point cloud data obtained by scanning the target object and the target image obtained by photographing the target object, the size information corresponding to the target object can be determined, without the need for manual estimation of the size information of the object, thereby improving the accuracy of measuring the size information of the object.
[0044] Optionally, determining coordinate data corresponding to a target image area in the target image includes: In response to a target input, determining a target image area in the target image, wherein the target image area is a rectangular area; Obtaining coordinates of four vertices of the target image area in the target image; The coordinates of the four vertices of the target image area in the target image are determined as the coordinate data.
[0045] In an optional application scenario, the point cloud-based object size measurement method provided by an embodiment of the present invention can be applied to an electronic device, and the above-mentioned target input is the input of the user to the electronic device.
[0046] In this embodiment, a target input of a user is received, and in response to the target input, a target image region in the target image is determined, wherein the target image region is a rectangular region. In the above application scenario, the target image region is the region where the target object is located in the target image.
[0047] Then, the coordinates of the four vertices of the target image area in the target image are obtained, and the coordinates of the four vertices in the target image are determined as coordinate data.
[0048] In this embodiment, based on the target input, the area where the target object is located in the target image is determined, so that the point cloud data can be segmented in the subsequent steps through the target input, which is fast and efficient and meets the personalized needs of users.
[0049] Optionally, the target input includes a first input, and in response to the target input, determining a target image area in the target image includes: In response to the first input, generating a rectangular selection box; The area covered by the rectangular selection frame in the target image is determined as the target image area.
[0050] In this embodiment, the target input includes a first input.
[0051] In this embodiment, in an optional application scenario, the user performs a first input on the electronic device, and in response to the first input, a rectangular selection box is generated, and the area covered by the rectangular selection box in the target image is determined as the target image area.
[0052] Optionally, the target input includes a first input and a second input, and in response to the target input, determining a target image area in the target image includes: In response to the first input, generating a rectangular selection box; In response to the second input, adjusting the rectangular selection box; The area covered by the adjusted rectangular selection frame in the target image is determined as the target image area.
[0053] In this embodiment, the target input includes a first input and a second input.
[0054] In this embodiment, in an optional application scenario, a user performs a first input on the electronic device, and in response to the first input, a rectangular selection box is generated, wherein the rectangular selection box is a draggable and retractable selection box. The user performs a second input on the rectangular selection box, and in response to the second input, the rectangular selection box is adjusted. Optionally, at least one adjustment may be performed on the rectangular selection box based on the second input: 1. Adjust the position of the rectangular selection box.
[0055] 2. Adjust the size of the rectangular selection box.
[0056] Based on the second input, an adjusted rectangular selection frame is obtained, and an area covered by the adjusted rectangular selection frame in the target image is determined as the target image area.
[0057] In this embodiment, a rectangular selection box is generated based on the first input, and the rectangular selection box is edited based on the second input. The area where the target object is located in the target image is determined by the rectangular selection box, thereby meeting the user's demand for a customized rectangular selection box.
[0058] Optionally, determining coordinate data corresponding to a target image area in the target image includes: Obtaining the number of point clouds included in the point cloud data; When the number of point clouds is greater than or equal to a preset value, coordinate data corresponding to a target image area in the target image is determined; and the preset value is greater than 4.
[0059] In this embodiment, a preset value is pre-set, and the preset value is a customizable value. Optionally, the preset value is greater than 4.
[0060] It should be noted that, when the point cloud data does not include enough point clouds, a rectangular selection box cannot be generated.
[0061] In order to solve the above technical problems, in this embodiment, the number of point clouds included in the point cloud data is obtained; when the number of point clouds is greater than or equal to a preset value, it means that the number of point clouds included in the point cloud data meets the requirements for generating a rectangular selection box, and then the subsequent steps are executed: determine the coordinate data corresponding to the target image area in the target image.
[0062] Optionally, the target point cloud includes a plurality of points, and determining size information corresponding to the target object based on the target point cloud includes: Calculating the distance between each point in the target point cloud and the center point of the target point cloud; Filter out points in the target point cloud whose distance from the center point is greater than a preset distance to obtain a filtered target point cloud; The size information corresponding to the target object is determined based on the filtered target point cloud.
[0063] In this embodiment, a preset distance is preset, and the preset distance is a value that can be custom set.
[0064] Point cloud data may contain discrete points. If the discrete points are not removed, the final measurement results may be affected.
[0065] In order to solve the above technical problems, in this embodiment, the connectivity check is performed on the target point cloud, and the specific implementation method is as follows: The distance between each point in the target point cloud and the center point of the target point cloud is calculated; points in the target point cloud whose distance from the center point is greater than a preset distance are filtered out to obtain a filtered target point cloud.
[0066] In this embodiment, point cloud filtering is achieved by performing connectivity check on the target point cloud and removing discrete points that are too far from the center point.
[0067] Optionally, the size information includes length information, width information, height information and volume information, and determining the size information corresponding to the target object based on the target point cloud includes: Generate a bounding box based on the target point cloud; Obtain length information, width information, height information, and volume information corresponding to the bounding box.
[0068] In this embodiment, after obtaining the target point cloud, the target point cloud can be fitted to obtain a bounding box, and the length information, width information, height information and volume information corresponding to the bounding box can be obtained, so as to achieve the size measurement of the target object.
[0069] To understand the technical solution for generating bounding boxes, see Figure 3 ,exist Figure 3 In the application process shown, the user turns on the camera to shoot the target object, generates a 3D point cloud, and saves the point cloud data; generates an optional box (rectangular selection box) based on the user's input, adjusts the size of the optional box based on the user's input, and records the 2D coordinates of the four vertices of the optional box.
[0070] The above 3D point cloud and 2D coordinates are input into the SAM algorithm to implement point cloud segmentation and obtain the target point cloud; the target point cloud is filtered; and based on the point cloud data included in the filtered target point cloud, it is determined whether a rectangular selection box can be generated. If a rectangular selection box can be generated, the target point cloud is determined based on the rectangular selection box, and a bounding box is generated based on the target point cloud.
[0071] The length information, width information, height information and volume information corresponding to the bounding box are further obtained to achieve the size measurement of the target object.
[0072] Further references Figure 4 , as a response to the above Figure 2 In order to realize the method shown in the figure, the present application provides an embodiment of an object size measurement device 400 based on a point cloud, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0073] An embodiment of the present invention provides a point cloud-based object size measurement device 400, and the point cloud-based object size measurement device 400 includes: An acquisition module 410 is used to acquire point cloud data obtained by scanning a target object, and to acquire a target image obtained by photographing the target object; A first determination module 420 is used to determine coordinate data corresponding to a target image area in the target image; the target image area is at least a partial image area in the target image; The segmentation module 430 is used to perform point cloud segmentation processing on the point cloud data based on a preset segmentation model and the coordinate data to obtain a target point cloud; The second determination module 440 is configured to determine size information corresponding to the target object based on the target point cloud.
[0074] Optionally, the first determining module 420 is specifically configured to: In response to a target input, determining a target image area in the target image, wherein the target image area is a rectangular area; Obtaining coordinates of four vertices of the target image area in the target image; The coordinates of the four vertices of the target image area in the target image are determined as the coordinate data.
[0075] Optionally, the target input includes a first input, and the first determination module 420 is further specifically configured to: In response to the first input, generating a rectangular selection box; The area covered by the rectangular selection frame in the target image is determined as the target image area.
[0076] Optionally, the target input includes a first input and a second input, and the first determining module 420 is further specifically configured to: In response to the first input, generating a rectangular selection box; In response to the second input, adjusting the rectangular selection box; The area covered by the adjusted rectangular selection frame in the target image is determined as the target image area.
[0077] Optionally, the first determining module 420 is further specifically configured to: Obtaining the number of point clouds included in the point cloud data; When the number of point clouds is greater than or equal to a preset value, coordinate data corresponding to a target image area in the target image is determined; and the preset value is greater than 4.
[0078] Optionally, the second determining module 440 is specifically configured to: Calculating the distance between each point in the target point cloud and the center point of the target point cloud; Filter out points in the target point cloud whose distance from the center point is greater than a preset distance to obtain a filtered target point cloud; The size information corresponding to the target object is determined based on the filtered target point cloud.
[0079] Optionally, the size information includes length information, width information, height information and volume information, and the second determining module 440 is further specifically configured to: Generate a bounding box based on the target point cloud; Obtain length information, width information, height information, and volume information corresponding to the bounding box.
[0080] To solve the above technical problems, the present application also provides a computer device. Figure 5 , Figure 5 This is a basic structural block diagram of the computer device in this embodiment. The computer device 5 includes a memory 51, a processor 52, and a network interface 53 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 5 with components 51-53, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0081] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0082] The memory 51 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 51 can be an internal storage unit of the computer device 5, such as a hard disk or memory of the computer device 5. In other embodiments, the memory 51 can also be an external storage device of the computer device 5, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the computer device 5. Of course, the memory 51 can also include both the internal storage unit of the computer device 5 and its external storage device. In this embodiment, the memory 51 is generally used to store the operating system and various application software installed on the computer device 5, such as the program code of the object size measurement method based on point cloud, etc. In addition, the memory 51 can also be used to temporarily store various types of data that have been output or are to be output.
[0083] The processor 52 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 52 is generally used to control the overall operation of the computer device 5. In this embodiment, the processor 52 is used to run the program code stored in the memory 51 or process data, such as running the program code of the point cloud-based object size measurement method.
[0084] The network interface 53 may include a wireless network interface or a wired network interface. The network interface 53 is generally used to establish a communication connection between the computer device 5 and other electronic devices.
[0085] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores the point cloud-based object size measurement program, and the point cloud-based object size measurement program can be executed by at least one processor so that the at least one processor performs the steps of the point cloud-based object size measurement method as described above.
[0086] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware online platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0087] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0088] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A method for measuring object size based on point cloud, characterized in that: include: Acquire point cloud data obtained by scanning a target object, and obtain a target image obtained by photographing the target object; Determine coordinate data corresponding to a target image area in the target image; the target image area is at least a partial image area in the target image; Based on the preset segmentation model and the coordinate data, performing point cloud segmentation processing on the point cloud data to obtain a target point cloud; The size information corresponding to the target object is determined based on the target point cloud.
2. The method according to claim 1, characterized in that The determining of coordinate data corresponding to the target image area in the target image includes: In response to a target input, determining a target image area in the target image, wherein the target image area is a rectangular area; Obtaining coordinates of four vertices of the target image area in the target image; The coordinates of the four vertices of the target image area in the target image are determined as the coordinate data.
3. The method according to claim 2, characterized in that The target input includes a first input, and in response to the target input, determining a target image area in the target image includes: In response to the first input, generating a rectangular selection box; The area covered by the rectangular selection frame in the target image is determined as the target image area.
4. The method according to claim 2, characterized in that: The target input includes a first input and a second input, and in response to the target input, determining a target image area in the target image includes: In response to the first input, generating a rectangular selection box; In response to the second input, adjusting the rectangular selection box; The area covered by the adjusted rectangular selection frame in the target image is determined as the target image area.
5. The method according to claim 1, characterized in that The determining of coordinate data corresponding to the target image area in the target image includes: Obtaining the number of point clouds included in the point cloud data; When the number of point clouds is greater than or equal to a preset value, coordinate data corresponding to a target image area in the target image is determined; and the preset value is greater than 4.
6. The method according to claim 1, characterized in that The target point cloud includes a plurality of points, and determining the size information corresponding to the target object based on the target point cloud includes: Calculating the distance between each point in the target point cloud and the center point of the target point cloud; Filter out points in the target point cloud whose distance from the center point is greater than a preset distance to obtain a filtered target point cloud; The size information corresponding to the target object is determined based on the filtered target point cloud.
7. The method according to any one of claims 1 to 6, characterized in that The size information includes length information, width information, height information and volume information. The determining the size information corresponding to the target object based on the target point cloud includes: Generate a bounding box based on the target point cloud; Obtain length information, width information, height information, and volume information corresponding to the bounding box.
8. An object size measuring device based on point cloud, characterized in that: include: An acquisition module, used to acquire point cloud data obtained by scanning a target object, and to acquire a target image obtained by photographing the target object; A first determining module is used to determine coordinate data corresponding to a target image area in the target image; the target image area is at least a partial image area in the target image; A segmentation module, used to perform point cloud segmentation processing on the point cloud data based on a preset segmentation model and the coordinate data to obtain a target point cloud; The second determination module is used to determine the size information corresponding to the target object based on the target point cloud.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the object size measurement method based on point cloud as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, 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 point cloud-based object size measurement method according to any one of claims 1 to 7 are implemented.
