CN114782438A - Object point cloud correction method and device, electronic equipment and storage medium - Google Patents

Object point cloud correction method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114782438A
CN114782438A CN202210698046.XA CN202210698046A CN114782438A CN 114782438 A CN114782438 A CN 114782438A CN 202210698046 A CN202210698046 A CN 202210698046A CN 114782438 A CN114782438 A CN 114782438A
Authority
CN
China
Prior art keywords
point cloud
coordinate
line
object point
clouds
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210698046.XA
Other languages
Chinese (zh)
Other versions
CN114782438B (en
Inventor
曾澄
胡亘谦
蔡恩祥
黄雪峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xinrun Fulian Digital Technology Co Ltd
Original Assignee
Shenzhen Xinrun Fulian Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xinrun Fulian Digital Technology Co Ltd filed Critical Shenzhen Xinrun Fulian Digital Technology Co Ltd
Priority to CN202210698046.XA priority Critical patent/CN114782438B/en
Publication of CN114782438A publication Critical patent/CN114782438A/en
Application granted granted Critical
Publication of CN114782438B publication Critical patent/CN114782438B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • G06T7/75Determining position or orientation of objects or cameras using feature-based methods involving models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10028Range image; Depth image; 3D point clouds
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30164Workpiece; Machine component
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30244Camera pose

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention discloses an object point cloud correction method and device, electronic equipment and a storage medium. The method comprises the steps of obtaining an object point cloud; determining the effective point cloud number and the effective point cloud set of each line in the object point cloud; when the number of the effective point clouds is larger than a preset threshold value, selecting a reference point cloud from the effective point cloud set; and correcting the row of object point clouds according to the effective point cloud set and the reference point cloud. By adopting the scheme provided by the invention, the deformation of the three-dimensional point cloud of the object in the vibration scene of the object can be corrected.

Description

Object point cloud correction method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of object detection technologies, and in particular, to an object point cloud correction method and apparatus, an electronic device, and a storage medium.
Background
Along with the progress of science and technology, more and more factory production has used machine vision to replace the manual work to carry out the detection of product flaw, if size and defect detection in panel, the steel sheet production process, machine vision has the characteristics stable, the accuracy is high and can uninterrupted duty twenty-four hours, has promoted the production efficiency of enterprise simultaneously and has avoided leaking the loss that the detection flaw piece caused.
However, the machine vision is usually accompanied with the transformation of the production line at present, the production line needs to be shut down during the transformation, the cost is high, if the transformation is not performed, the stability of the traditional production line is poor, for example, when the three-dimensional point cloud of a flat object is obtained through line laser, the collected point cloud is deformed to a certain degree because the product is in random up-and-down vibration caused by a conveyor belt, and the defect detection of the product is difficult.
Disclosure of Invention
At present, to under the object vibration scene, there is the technical problem of deformation in the object three-dimensional point cloud among the prior art, mainly adopt to reform transform producing the line, improve conveyer belt stability, fix leveling the object on the conveyer belt, reduce the mode of leveling the vibration of object and solve.
However, the above method has the following disadvantages: the production line needs to be transformed into huge economic cost, and production halt is needed during transformation, so that huge losses are brought to enterprises.
Based on this, in order to solve the technical problem that the three-dimensional point cloud of the object is deformed in the vibration scene of the object, embodiments of the present invention provide an object point cloud correction method, apparatus, electronic device and storage medium.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides an object point cloud correction method, which comprises the following steps:
acquiring an object point cloud;
determining the effective point cloud number and the effective point cloud set of each line in the object point cloud;
when the number of the effective point clouds is larger than a preset threshold value, selecting a reference point cloud from the effective point cloud set;
and correcting the row of object point clouds according to the effective point cloud set and the reference point cloud.
In the above solution, the correcting the row of object point clouds according to the effective point cloud set and the reference point cloud includes:
determining a first coordinate included angle of the effective point cloud set relative to the reference point cloud according to the effective point cloud set and the reference point cloud;
carrying out angle leveling on the Z coordinate axis on the row of object point clouds by utilizing the first coordinate included angle;
determining parameters of line laser equipment;
and according to the line laser equipment parameters and the reference point cloud, carrying out angle adjustment on the X coordinate axis on the line of object point cloud.
In the above scheme, determining a first coordinate included angle of the effective point cloud set relative to the reference point cloud according to the effective point cloud set and the reference point cloud includes:
calculating included angles between coordinate vectors and Y coordinate axes, wherein the coordinate vectors are formed by all point clouds in the effective point cloud set and the reference point clouds;
determining the average value of the included angles;
and taking the average value as the first coordinate included angle.
In the above solution, the leveling of the angle on the Z coordinate axis of the line of object point clouds by using the first coordinate included angle includes:
calculating a first distance between each point cloud in the row of object point clouds and the reference point cloud;
calculating the adjustment height of each point cloud in the row of object point clouds on a Z coordinate axis according to the first distance and the first coordinate included angle;
and subtracting the adjustment height of each point cloud in the row of object point clouds on the Z coordinate axis on the basis of the Z coordinate value of each point cloud in the row of object point clouds, and performing angle leveling on the Z coordinate axis on each point cloud in the row of object point clouds.
In the above solution, the calculating the adjustment height of each point cloud in the row of object point clouds on the Z coordinate axis according to the first distance and the first coordinate included angle includes:
according to the first distance and the first coordinate included angle, calculating the adjustment height of each point cloud in the line of object point clouds on the Z coordinate axis by using the following formula (1):
Figure 434342DEST_PATH_IMAGE001
formula (1)
Wherein the content of the first and second substances,
Figure 43178DEST_PATH_IMAGE002
indicating the adjusted height of each point cloud in the row of object point clouds on the Z coordinate axis,
Figure DEST_PATH_IMAGE003
representing a first distance between each point cloud in the row of object point clouds and the reference point cloud,
Figure 157283DEST_PATH_IMAGE004
representing a first coordinate angle.
In the above solution, according to the line laser device parameter and the reference point cloud, the angle adjustment on the X coordinate axis is performed on the line of object point clouds, which includes:
inputting the line laser equipment parameters and the reference point cloud coordinates into a preset first equation, and obtaining the adjustment height of the line of object point clouds on the X coordinate axis;
when the Z coordinate value of the reference point cloud is larger than 0, subtracting the adjustment height of the line of object point clouds on the X coordinate axis on the basis of the X coordinate value of each point cloud in the line of object point clouds, and adjusting the height of each point cloud in the line of object point clouds on the X coordinate axis; and when the Z coordinate value of the reference point cloud is less than or equal to 0, adding the adjustment height of the line of object point clouds on the X coordinate axis on the basis of the X coordinate value of each point cloud in the line of object point clouds, and performing adjustment height on the X coordinate axis on each point cloud in the line of object point clouds.
In the above scheme, the preset first equation is:
Figure DEST_PATH_IMAGE005
wherein, the first and the second end of the pipe are connected with each other,
Figure 105647DEST_PATH_IMAGE006
coordinate values on the Z coordinate axis of each point cloud in the row of object point clouds,
Figure DEST_PATH_IMAGE007
representing coordinate values of the reference point cloud on the Z coordinate axis,
Figure 73603DEST_PATH_IMAGE008
and
Figure DEST_PATH_IMAGE009
the line laser device parameters are shown as,
Figure 107418DEST_PATH_IMAGE010
indicating the adjusted height of the row of object point clouds on the X coordinate axis,
Figure DEST_PATH_IMAGE011
the column number of the object point cloud of the current row is represented,
Figure 819022DEST_PATH_IMAGE012
representing the total number of columns of the object point cloud.
The embodiment of the invention also provides an object point cloud correction device, which comprises:
the acquisition module is used for acquiring an object point cloud;
the determining module is used for determining the effective point cloud number and the effective point cloud set of each line in the object point cloud;
the selecting module is used for selecting a reference point cloud from the effective point cloud set when the number of the effective point clouds is larger than a preset threshold value;
and the correcting module is used for correcting the line of object point clouds according to the effective point cloud set and the reference point cloud.
An embodiment of the present invention further provides an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor; wherein, the first and the second end of the pipe are connected with each other,
the processor is adapted to perform the steps of any of the above methods when running the computer program.
The embodiment of the present invention further provides a storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the methods are implemented.
The embodiment of the invention provides an object point cloud correction method, device, electronic equipment and storage medium, and the object point cloud is obtained;
determining the effective point cloud number and the effective point cloud set of each line in the object point cloud; when the number of the effective point clouds is larger than a preset threshold value, selecting a reference point cloud from the effective point cloud set; and correcting the row of object point clouds according to the effective point cloud set and the reference point cloud. By adopting the scheme provided by the invention, the deformation of the three-dimensional point cloud of the object in the vibration scene of the object can be corrected.
Drawings
FIG. 1 is a schematic flow chart of an object point cloud correction method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a calibration process according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an object point cloud correction apparatus according to an embodiment of the present invention;
fig. 4 is an internal structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples.
The embodiment of the invention provides an object point cloud correction method, as shown in fig. 1, the method comprises the following steps:
step 101: acquiring an object point cloud;
step 102: determining the effective point cloud number and the effective point cloud set of each line in the object point cloud;
step 103: when the number of the effective point clouds is larger than a preset threshold value, selecting a reference point cloud from the effective point cloud set;
step 104: and correcting the row of object point clouds according to the effective point cloud set and the reference point cloud.
The embodiment provides a method for correcting a three-dimensional point cloud of a flat object in a vibration scene with strong robustness, which takes a camera aperture imaging model into consideration to correct the point cloud in the x direction, so that flat and correct three-dimensional information of the surface of the flat object can be acquired in the vibration scene for subsequent analysis and use, and a production line does not need to be modified.
In addition, it should be noted that the solution of this embodiment is to correct the three-dimensional point cloud of the object into a correct shape, and unlike the smooth point cloud, the smooth point cloud makes the point cloud look smooth, but does not necessarily restore the point cloud into a correct shape.
In an embodiment, the correcting the line of object point clouds according to the effective point cloud set and the reference point cloud includes:
determining a first coordinate included angle of the effective point cloud set relative to the reference point cloud according to the effective point cloud set and the reference point cloud;
angle leveling on a Z coordinate axis is carried out on the row of object point clouds by utilizing the first coordinate included angle;
determining parameters of line laser equipment;
and adjusting the angle of the line of object point clouds on the X coordinate axis according to the line laser equipment parameters and the reference point clouds.
In one embodiment, the determining a first coordinate angle of the effective point cloud set relative to the reference point cloud according to the effective point cloud set and the reference point cloud includes:
calculating included angles between coordinate vectors and Y coordinate axes, wherein the coordinate vectors are formed by all point clouds in the effective point cloud set and the reference point clouds;
determining the average value of the included angles;
and taking the average value as the first coordinate included angle.
In an embodiment, the leveling the object point cloud on the Z coordinate axis by using the first coordinate angle includes:
calculating a first distance between each point cloud in the row of object point clouds and the reference point cloud;
calculating the adjustment height of each point cloud in the row of object point clouds on the Z coordinate axis according to the first distance and the first coordinate included angle;
and subtracting the adjustment height of each point cloud in the line of object point clouds on the Z coordinate axis on the basis of the Z coordinate value of each point cloud in the line of object point clouds, and carrying out angle leveling on the Z coordinate axis on each point cloud in the line of object point clouds.
In an embodiment, the calculating an adjusted height of each point cloud in the row of object point clouds on the Z coordinate axis according to the first distance and the first coordinate angle includes:
according to the first distance and the first coordinate included angle, calculating the adjustment height of each point cloud in the line of object point clouds on the Z coordinate axis by using the following formula (1):
Figure DEST_PATH_IMAGE013
formula (1)
Wherein, the first and the second end of the pipe are connected with each other,
Figure 621893DEST_PATH_IMAGE014
indicating the adjusted height of each point cloud in the row of object point clouds on the Z coordinate axis,
Figure 760751DEST_PATH_IMAGE015
representing a first distance between each point cloud in the row of object point clouds and a reference point cloud,
Figure 344179DEST_PATH_IMAGE016
representing a first coordinate angle.
In an embodiment, the performing, according to the line laser device parameter and the reference point cloud, an angle adjustment on an X coordinate axis of the line of object point clouds includes:
inputting the line laser equipment parameters and the reference point cloud coordinates into a preset first equation, and acquiring the adjustment height of the line of object point clouds on an X coordinate axis;
when the Z coordinate value of the reference point cloud is larger than 0, subtracting the adjustment height of the line of object point clouds on the X coordinate axis on the basis of the X coordinate value of each point cloud in the line of object point clouds, and adjusting the height of each point cloud in the line of object point clouds on the X coordinate axis; and when the Z coordinate value of the reference point cloud is less than or equal to 0, adding the adjustment height of the line of object point clouds on the X coordinate axis on the basis of the X coordinate value of each point cloud in the line of object point clouds, and performing adjustment height on the X coordinate axis on each point cloud in the line of object point clouds.
In one embodiment, the preset first equation is:
Figure 531578DEST_PATH_IMAGE017
wherein the content of the first and second substances,
Figure 516851DEST_PATH_IMAGE018
coordinate values of each point cloud in the row of object point clouds on the Z coordinate axis,
Figure 826610DEST_PATH_IMAGE019
representing coordinate values of the reference point cloud on the Z coordinate axis,
Figure 897334DEST_PATH_IMAGE008
and
Figure 622844DEST_PATH_IMAGE020
the parameters of the line laser apparatus are shown,
Figure 462624DEST_PATH_IMAGE021
indicating the adjusted height of the row of object point clouds on the X coordinate axis,
Figure 943284DEST_PATH_IMAGE022
the number of columns representing the current row of object point clouds,
Figure 438988DEST_PATH_IMAGE023
representing the total number of columns of the object point cloud.
The object point cloud correction method provided by the embodiment of the invention obtains the object point cloud; determining the effective point cloud number and the effective point cloud set of each line in the object point cloud; when the number of the effective point clouds is larger than a preset threshold value, selecting a reference point cloud from the effective point cloud set; and correcting the line of object point clouds according to the effective point cloud set and the reference point cloud. By adopting the scheme provided by the invention, the deformation of the three-dimensional point cloud of the object in the vibration scene of the object can be corrected.
The present invention will be described in detail below with reference to application examples.
The application embodiment provides a method for correcting a three-dimensional point cloud of a flat object in a vibration scene with strong robustness, and the method considers a camera aperture imaging model to correct the point cloud in the x direction, so that flat and correct three-dimensional information of the surface of the flat object can be acquired in the vibration scene for subsequent analysis and use, and a production line does not need to be modified.
Specifically, the method comprises a calibration step part and a correction step part:
a calibration step part:
(1) as the internal reference of the line laser equipment cannot be given by the general equipment, but the method needs to be simply calibrated to obtain necessary information for subsequent calculation, referring to fig. 2, firstly, an object (such as a wood board) with edges and corners at the edge is taken, the edge of the object is placed at a position of about seventy percent in the line laser visual field, and the edge point of the current object is recorded as a position 1;
(2) acquiring a point cloud once by using a line laser to obtain a point cloud S1 (containing invalid point information, wherein the invalid point depth z value is-1000000000) at a position 1 and a corresponding camera image B1 thereof;
(3) transversely moving the object until the edge of the object is about to disappear and is in a line laser view, recording the edge position of the current object as a position 2, and acquiring a point cloud S2 and a camera image B2 corresponding to the point cloud S2, wherein the height of the position 1 is the same as that of the position 2 under the ideal condition;
(4) the main purpose of calibration is to obtain the distance d from the optical center of the line laser camera to the imaging plane, the half angle theta of the line laser view angle and the actual point distance dx on the imaging plane in fig. 1, and by respectively extracting the coordinates of the position 1 and the position 2 from the point cloud S1 and the point cloud S2, the height value of the position 1 is z, and the x-direction coordinate difference between the position 1 and the position 2 is delta x;
(5) the difference value Deltau of the horizontal coordinates of the edge in the camera vision field can be obtained through images B1 and B2 when the object is at different positions, and can be listed through the relation of similar triangles
Figure 296085DEST_PATH_IMAGE024
Because two unknowns d and dx are included, the two unknowns d and dx cannot be directly solved, so that the steps 1 to 4 are repeated to obtain another set of similar triangular relationships at other positions, and the two equations are combined to obtain d and dx.
And a correction step part:
(1) acquiring a point cloud S of a flat object by a line laser sensor, wherein the point cloud S is H rows and W columns, and H multiplied by W points (including invalid points);
(2) establishing an array V with a size of H for recording the effective point number of each line (usually, when the line laser device collects the point cloud, a small z coordinate far beyond the measuring range is given to the ineffective point, such as-100000000), and counting the effective total point number of the z coordinate in the H-th line point cloud for each line of point cloud of the point cloud S
Figure 990372DEST_PATH_IMAGE025
To make
Figure 641933DEST_PATH_IMAGE026
(3) Establishing an array P with the size of H for recording the coordinates of the effective points of each line, and if V [ H ] is the H-th line]Greater than the threshold of the number of the single row valid points
Figure 624933DEST_PATH_IMAGE028
(empirically set to be not less than 0.1 XW), then from S [ h ]][0]Starting at S [ h ]][W-1]Ending, sequentially arranging the row and column coordinates of the effective points
Figure 20142DEST_PATH_IMAGE029
Store in P [ h ]]In this way P [ h ]]The first element and the last element of (a) are the starting row and the ending row of the effective points of the h row, and represent the point clouds of the flat objects in the row of point clouds;
(4) go through each row of point clouds of S, e.g., for h row of point clouds, if it is V [ h ]]Greater than the line valid point threshold
Figure 568935DEST_PATH_IMAGE030
Then select the row point cloud valid point array P [ h ]]Medium number k =0.9 × V [ h ]](result rounded down) points
Figure 656977DEST_PATH_IMAGE031
As a reference point of the line, the corresponding three-dimensional coordinates are expressed as
Figure 858763DEST_PATH_IMAGE032
Is marked as
Figure 57663DEST_PATH_IMAGE033
Then from P [ h ]][0]Starting up to p [ h ]][k-1]End, for each point p [ h ] in it][i]Obtaining corresponding three-dimensional coordinates from S
Figure 460963DEST_PATH_IMAGE034
Calculating a vector
Figure 657589DEST_PATH_IMAGE035
Angle with the Y coordinate axis vector (0, 1, 0)
Figure 411918DEST_PATH_IMAGE036
All of the row
Figure 148930DEST_PATH_IMAGE036
The sum is divided by the number k-1 to obtain the angle of the line
Figure 672316DEST_PATH_IMAGE037
(5) Then through
Figure 39843DEST_PATH_IMAGE037
The h-th line of point cloud of the point cloud S is subjected to angle leveling by leveling every point Sh in the line of point cloud][w]I.e. the point of the h-th line of the point cloud S, the distance between the point and the reference point of the line is calculated
Figure 15889DEST_PATH_IMAGE038
Then pass through
Figure 556592DEST_PATH_IMAGE039
Calculating the height Deltaz in the z direction required to be adjusted for leveling the angle,
Figure 200063DEST_PATH_IMAGE040
finishing angle leveling;
(6) then, correcting the x coordinate of each point of the h-th line of point cloud based on the calibrated parameters by using an equation obtained by similar triangles
Figure 472912DEST_PATH_IMAGE041
If only the equation is unknown, the equation can be directly solved
Figure 201834DEST_PATH_IMAGE042
If the point cloud is larger than 0, the point cloud of the row needs to be elongated after being adjusted to the 0 plane, and then
Figure 280648DEST_PATH_IMAGE043
Otherwise, otherwise
Figure 778626DEST_PATH_IMAGE044
(7) For a single point cloud elongated in the step 6, the point cloud distance after elongation is too large to cause over sparseness, and the point density is improved by performing interpolation operation by taking the mean value of adjacent points;
(8) the z-direction height of each point in the final point cloud S
Figure 222377DEST_PATH_IMAGE045
Subtract the datum height of the row
Figure 438594DEST_PATH_IMAGE046
Namely, it is
Figure 321100DEST_PATH_IMAGE047
And finishing the leveling of the whole point cloud S of the leveling object.
The embodiment provides a method for correcting a three-dimensional point cloud of a flat object in a vibration scene with strong robustness, which fully considers a camera pinhole imaging model, solves the problem of point cloud deformation of line laser acquisition caused by random shaking of a conveyor belt, can obtain three-dimensional information of the surface of the flat object with high accuracy, and can be used for various analyses such as size detection, defect identification and the like.
In order to implement the method according to the embodiment of the present invention, an embodiment of the present invention further provides an object point cloud correction apparatus, as shown in fig. 3, the object point cloud correction apparatus 300 includes: an acquisition module 301, a determination module 302, a selection module 303 and a correction module 304; wherein the content of the first and second substances,
an obtaining module 301, configured to obtain an object point cloud;
a determining module 302, configured to determine an effective point cloud number and an effective point cloud set of each line in the object point cloud;
a selecting module 303, configured to select a reference point cloud from the effective point cloud set when the effective point cloud number is greater than a preset threshold;
and a correcting module 304, configured to correct the row of object point clouds according to the effective point cloud set and the reference point cloud.
In practical applications, the obtaining module 301, the determining module 302, the selecting module 303 and the correcting module 304 may be implemented by a processor in the object point cloud correcting apparatus.
It should be noted that: the apparatus provided in the foregoing embodiment is only illustrated by dividing the program modules, and in practical applications, the processing allocation may be completed by different program modules as needed, that is, the internal structure of the terminal is divided into different program modules, so as to complete all or part of the processing described above. In addition, the apparatus provided in the above embodiment and the method embodiment belong to the same concept, and the specific implementation process thereof is described in the method embodiment, which is not described herein again.
To implement the method of the embodiment of the present invention, the embodiment of the present invention further provides a computer program product, where the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the steps of the method described above.
Based on the hardware implementation of the program module, in order to implement the method according to the embodiment of the present invention, an electronic device (computer device) is further provided in the embodiment of the present invention. Specifically, in one embodiment, the computer device may be a terminal, and its internal structure diagram may be as shown in fig. 4. The computer apparatus includes a processor a01, a network interface a02, a display screen a04, an input device a05, and a memory (not shown in the figure) connected through a system bus. Wherein processor a01 of the computer device is used to provide computing and control capabilities. The memory of the computer device comprises an internal memory a03 and a non-volatile storage medium a 06. The nonvolatile storage medium a06 stores an operating system B01 and a computer program B02. The internal memory a03 provides an environment for the operation of the operating system B01 and the computer programs B02 in the non-volatile storage medium a 06. The network interface a02 of the computer apparatus is used for communication with an external terminal through a network connection. The computer program is executed by the processor a01 to implement the method of any of the above embodiments. The display screen a04 of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device a05 of the computer device may be a touch layer covered on the display screen, a button, a trackball or a touch pad arranged on a casing of the computer device, or an external keyboard, a touch pad or a mouse.
It will be appreciated by those skilled in the art that the configuration shown in fig. 4 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
The device provided by the embodiment of the present invention includes a processor, a memory, and a program stored in the memory and capable of running on the processor, and when the processor executes the program, the method according to any one of the embodiments is implemented.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media (transmyedia) such as modulated data signals and carrier waves.
It will be appreciated that the memory of embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The described memory for embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art to which the present application pertains. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. An object point cloud correction method, characterized in that the method comprises:
acquiring an object point cloud;
determining the effective point cloud number and the effective point cloud set of each line in the object point cloud;
when the number of the effective point clouds is larger than a preset threshold value, selecting a reference point cloud from the effective point cloud set;
and correcting the line of object point clouds according to the effective point cloud set and the reference point cloud.
2. The method of claim 1, wherein the correcting the line of object point clouds based on the set of valid point clouds and the reference point cloud comprises:
determining a first coordinate included angle of the effective point cloud set relative to the reference point cloud according to the effective point cloud set and the reference point cloud;
angle leveling on a Z coordinate axis is carried out on the row of object point clouds by utilizing the first coordinate included angle;
determining parameters of line laser equipment;
and according to the line laser equipment parameters and the reference point cloud, carrying out angle adjustment on the X coordinate axis on the line of object point cloud.
3. The method of claim 2, wherein determining a first coordinate angle of the effective point cloud set relative to the reference point cloud from the effective point cloud set and the reference point cloud comprises:
calculating included angles between coordinate vectors and Y coordinate axes, wherein the coordinate vectors are formed by all point clouds in the effective point cloud set and the reference point clouds;
determining the average value of the included angles;
and taking the average value as the first coordinate included angle.
4. The method of claim 2, wherein the leveling the object point cloud with the first coordinate angle in the Z-coordinate axis comprises:
calculating a first distance between each point cloud in the row of object point clouds and the reference point cloud;
calculating the adjustment height of each point cloud in the row of object point clouds on the Z coordinate axis according to the first distance and the first coordinate included angle;
and subtracting the adjustment height of each point cloud in the row of object point clouds on the Z coordinate axis on the basis of the Z coordinate value of each point cloud in the row of object point clouds, and performing angle leveling on the Z coordinate axis on each point cloud in the row of object point clouds.
5. The method of claim 4, wherein calculating the adjusted height of each point cloud in the row of object point clouds along the Z-coordinate axis according to the first distance and the first coordinate angle comprises:
according to the first distance and the first coordinate included angle, calculating the adjustment height of each point cloud in the line of object point clouds on the Z coordinate axis by using the following formula (1):
Figure 474863DEST_PATH_IMAGE001
formula (1)
Wherein the content of the first and second substances,
Figure 887389DEST_PATH_IMAGE002
indicating the adjusted height of each point cloud in the row of object point clouds on the Z coordinate axis,
Figure 915388DEST_PATH_IMAGE003
representing a first distance between each point cloud in the row of object point clouds and the reference point cloud,
Figure 34654DEST_PATH_IMAGE004
representing a first coordinate angle.
6. The method of claim 2, wherein said adjusting the angle of the line of object point clouds in the X coordinate axis according to the line laser apparatus parameters and the reference point clouds comprises:
inputting the line laser equipment parameters and the reference point cloud coordinates into a preset first equation, and obtaining the adjustment height of the line of object point clouds on the X coordinate axis;
when the Z coordinate value of the reference point cloud is larger than 0, subtracting the adjustment height of the line of object point clouds on an X coordinate axis on the basis of the X coordinate value of each point cloud in the line of object point clouds, and performing adjustment height on the X coordinate axis on each point cloud in the line of object point clouds; and when the Z coordinate value of the reference point cloud is less than or equal to 0, adding the adjustment height of the line of object point clouds on the X coordinate axis on the basis of the X coordinate value of each point cloud in the line of object point clouds, and performing adjustment height on the X coordinate axis on each point cloud in the line of object point clouds.
7. The method of claim 6, wherein the predetermined first equation is:
Figure 224327DEST_PATH_IMAGE005
wherein, the first and the second end of the pipe are connected with each other,
Figure 124150DEST_PATH_IMAGE006
representing the line of object pointsCoordinate values of each point cloud in the cloud on the Z coordinate axis,
Figure 362364DEST_PATH_IMAGE007
representing coordinate values of the reference point cloud on the Z coordinate axis,
Figure 664033DEST_PATH_IMAGE008
and
Figure 24607DEST_PATH_IMAGE009
the parameters of the line laser apparatus are shown,
Figure 411726DEST_PATH_IMAGE010
indicating the adjusted height of the row of object point clouds on the X coordinate axis,
Figure 984790DEST_PATH_IMAGE011
the column number of the object point cloud of the current row is represented,
Figure 875385DEST_PATH_IMAGE012
representing the total number of columns of the object point cloud.
8. An object point cloud correction apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring an object point cloud;
the determining module is used for determining the effective point cloud number and the effective point cloud set of each line in the object point cloud;
the selecting module is used for selecting a reference point cloud from the effective point cloud set when the number of the effective point clouds is larger than a preset threshold value;
and the correcting module is used for correcting the line of object point clouds according to the effective point cloud set and the reference point cloud.
9. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor; wherein, the first and the second end of the pipe are connected with each other,
the processor is adapted to perform the steps of the method of any one of claims 1 to 7 when running the computer program.
10. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the steps of the method according to any one of claims 1 to 7.
CN202210698046.XA 2022-06-20 2022-06-20 Object point cloud correction method and device, electronic equipment and storage medium Active CN114782438B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210698046.XA CN114782438B (en) 2022-06-20 2022-06-20 Object point cloud correction method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210698046.XA CN114782438B (en) 2022-06-20 2022-06-20 Object point cloud correction method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114782438A true CN114782438A (en) 2022-07-22
CN114782438B CN114782438B (en) 2022-09-16

Family

ID=82420314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210698046.XA Active CN114782438B (en) 2022-06-20 2022-06-20 Object point cloud correction method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114782438B (en)

Citations (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9530225B1 (en) * 2013-03-11 2016-12-27 Exelis, Inc. Point cloud data processing for scalable compression
GB201712922D0 (en) * 2017-08-11 2017-09-27 Canon Kk Method and corresponding device for generating a point cloud representing a 3D object
US20180081034A1 (en) * 2016-09-22 2018-03-22 Beijing Greenvalley Technology Co., Ltd. Method and device for constructing spatial index of massive point cloud data
WO2018072630A1 (en) * 2016-10-17 2018-04-26 杭州海康威视数字技术股份有限公司 Method and device for constructing 3d scene model
US20190025075A1 (en) * 2017-07-21 2019-01-24 Baidu Online Network Technology (Beijing) Co., Ltd Method and device for generating position information of target object
WO2019133922A1 (en) * 2017-12-29 2019-07-04 Flir Systems, Inc. Point cloud denoising systems and methods
CN110942515A (en) * 2019-11-26 2020-03-31 北京迈格威科技有限公司 Point cloud-based target object three-dimensional computer modeling method and target identification method
CN111062255A (en) * 2019-11-18 2020-04-24 苏州智加科技有限公司 Three-dimensional point cloud labeling method, device, equipment and storage medium
WO2020093950A1 (en) * 2018-11-06 2020-05-14 腾讯科技(深圳)有限公司 Three-dimensional object segmentation method and device and medium
CN111210429A (en) * 2020-04-17 2020-05-29 中联重科股份有限公司 Point cloud data partitioning method and device and obstacle detection method and device
CN111553946A (en) * 2020-04-17 2020-08-18 中联重科股份有限公司 Method and device for removing ground point cloud and obstacle detection method and device
CN111582054A (en) * 2020-04-17 2020-08-25 中联重科股份有限公司 Point cloud data processing method and device and obstacle detection method and device
JP2020140697A (en) * 2019-02-28 2020-09-03 ベイジン バイドゥ ネットコム サイエンス アンド テクノロジー カンパニー リミテッド Method and apparatus for determining rotation angle of construction machine plant
CN111699410A (en) * 2019-05-29 2020-09-22 深圳市大疆创新科技有限公司 Point cloud processing method, device and computer readable storage medium
WO2020206669A1 (en) * 2019-04-09 2020-10-15 北京大学深圳研究生院 Self-adaptive point cloud stripe division method
US20200388044A1 (en) * 2019-06-06 2020-12-10 Zhejiang University Plant point cloud acquisition, registration and optimization method based on tof camera
CN112365529A (en) * 2021-01-11 2021-02-12 南京邮电大学 Tunnel point cloud registration method and device based on gravity center deviation
WO2021082229A1 (en) * 2019-10-31 2021-05-06 深圳市商汤科技有限公司 Data processing method and related device
US20210225020A1 (en) * 2020-01-21 2021-07-22 Proprio, Inc. Methods and systems for augmenting depth data from a depth sensor, such as with data from a multiview camera system
CN113362363A (en) * 2021-06-18 2021-09-07 广东工业大学 Automatic image annotation method and device based on visual SLAM and storage medium
WO2021179988A1 (en) * 2020-03-09 2021-09-16 长沙智能驾驶研究院有限公司 Three-dimensional laser-based container truck anti-smashing detection method and apparatus, and computer device
WO2021244363A1 (en) * 2020-06-05 2021-12-09 Oppo广东移动通信有限公司 Point cloud compression method, encoder, decoder, and storage medium
CN113870358A (en) * 2021-09-17 2021-12-31 聚好看科技股份有限公司 Method and equipment for joint calibration of multiple 3D cameras
WO2022001326A1 (en) * 2020-06-30 2022-01-06 商汤集团有限公司 Data processing method and apparatus, device, storage medium and program
US20220050191A1 (en) * 2020-08-14 2022-02-17 Baidu Usa Llc Recalibration determination system for autonomous driving vehicles with multiple lidar sensors
WO2022062519A1 (en) * 2020-09-22 2022-03-31 上海钛米机器人股份有限公司 Ground detection method and apparatus, device, and storage medium
US20220130147A1 (en) * 2019-02-22 2022-04-28 Fogale Nanotech Method and device for monitoring the environment of a robot
CN114440922A (en) * 2020-10-30 2022-05-06 阿里巴巴集团控股有限公司 Method and device for evaluating laser calibration, related equipment and storage medium
WO2022099530A1 (en) * 2020-11-12 2022-05-19 深圳元戎启行科技有限公司 Motion segmentation method and apparatus for point cloud data, computer device and storage medium

Patent Citations (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9530225B1 (en) * 2013-03-11 2016-12-27 Exelis, Inc. Point cloud data processing for scalable compression
US20180081034A1 (en) * 2016-09-22 2018-03-22 Beijing Greenvalley Technology Co., Ltd. Method and device for constructing spatial index of massive point cloud data
WO2018072630A1 (en) * 2016-10-17 2018-04-26 杭州海康威视数字技术股份有限公司 Method and device for constructing 3d scene model
US20190025075A1 (en) * 2017-07-21 2019-01-24 Baidu Online Network Technology (Beijing) Co., Ltd Method and device for generating position information of target object
GB201712922D0 (en) * 2017-08-11 2017-09-27 Canon Kk Method and corresponding device for generating a point cloud representing a 3D object
WO2019133922A1 (en) * 2017-12-29 2019-07-04 Flir Systems, Inc. Point cloud denoising systems and methods
WO2020093950A1 (en) * 2018-11-06 2020-05-14 腾讯科技(深圳)有限公司 Three-dimensional object segmentation method and device and medium
US20220130147A1 (en) * 2019-02-22 2022-04-28 Fogale Nanotech Method and device for monitoring the environment of a robot
JP2020140697A (en) * 2019-02-28 2020-09-03 ベイジン バイドゥ ネットコム サイエンス アンド テクノロジー カンパニー リミテッド Method and apparatus for determining rotation angle of construction machine plant
WO2020206669A1 (en) * 2019-04-09 2020-10-15 北京大学深圳研究生院 Self-adaptive point cloud stripe division method
CN111699410A (en) * 2019-05-29 2020-09-22 深圳市大疆创新科技有限公司 Point cloud processing method, device and computer readable storage medium
US20200388044A1 (en) * 2019-06-06 2020-12-10 Zhejiang University Plant point cloud acquisition, registration and optimization method based on tof camera
WO2021082229A1 (en) * 2019-10-31 2021-05-06 深圳市商汤科技有限公司 Data processing method and related device
CN111062255A (en) * 2019-11-18 2020-04-24 苏州智加科技有限公司 Three-dimensional point cloud labeling method, device, equipment and storage medium
CN110942515A (en) * 2019-11-26 2020-03-31 北京迈格威科技有限公司 Point cloud-based target object three-dimensional computer modeling method and target identification method
US20210225020A1 (en) * 2020-01-21 2021-07-22 Proprio, Inc. Methods and systems for augmenting depth data from a depth sensor, such as with data from a multiview camera system
WO2021179988A1 (en) * 2020-03-09 2021-09-16 长沙智能驾驶研究院有限公司 Three-dimensional laser-based container truck anti-smashing detection method and apparatus, and computer device
CN111210429A (en) * 2020-04-17 2020-05-29 中联重科股份有限公司 Point cloud data partitioning method and device and obstacle detection method and device
CN111582054A (en) * 2020-04-17 2020-08-25 中联重科股份有限公司 Point cloud data processing method and device and obstacle detection method and device
CN111553946A (en) * 2020-04-17 2020-08-18 中联重科股份有限公司 Method and device for removing ground point cloud and obstacle detection method and device
WO2021244363A1 (en) * 2020-06-05 2021-12-09 Oppo广东移动通信有限公司 Point cloud compression method, encoder, decoder, and storage medium
WO2022001326A1 (en) * 2020-06-30 2022-01-06 商汤集团有限公司 Data processing method and apparatus, device, storage medium and program
US20220050191A1 (en) * 2020-08-14 2022-02-17 Baidu Usa Llc Recalibration determination system for autonomous driving vehicles with multiple lidar sensors
WO2022062519A1 (en) * 2020-09-22 2022-03-31 上海钛米机器人股份有限公司 Ground detection method and apparatus, device, and storage medium
CN114440922A (en) * 2020-10-30 2022-05-06 阿里巴巴集团控股有限公司 Method and device for evaluating laser calibration, related equipment and storage medium
WO2022099530A1 (en) * 2020-11-12 2022-05-19 深圳元戎启行科技有限公司 Motion segmentation method and apparatus for point cloud data, computer device and storage medium
CN112365529A (en) * 2021-01-11 2021-02-12 南京邮电大学 Tunnel point cloud registration method and device based on gravity center deviation
CN113362363A (en) * 2021-06-18 2021-09-07 广东工业大学 Automatic image annotation method and device based on visual SLAM and storage medium
CN113870358A (en) * 2021-09-17 2021-12-31 聚好看科技股份有限公司 Method and equipment for joint calibration of multiple 3D cameras

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
RUNE ØSTERGAARD PEDERSEN等: "Deriving individual tree competition indices from airborne laser scanning", 《FOREST ECOLOGY AND MANAGEMENT》 *
张梅等: "归一化互相关系数与迭代最近曲面片点云配准方法", 《计算机工程》 *

Also Published As

Publication number Publication date
CN114782438B (en) 2022-09-16

Similar Documents

Publication Publication Date Title
US11776217B2 (en) Method for planning three-dimensional scanning viewpoint, device for planning three-dimensional scanning viewpoint, and computer readable storage medium
US20100231711A1 (en) Method for registering model data for optical recognition processing and optical sensor
CN109657607A (en) A kind of human face target distance measuring method, device and storage medium based on recognition of face
CN109886956B (en) Method and device for detecting defect point aggregations
CN113470091B (en) Hub point cloud registration method and device, electronic equipment and storage medium
CN116433737A (en) Method and device for registering laser radar point cloud and image and intelligent terminal
TWI510761B (en) System and method for focusing multiple measurement points on a surface of an object
CN114782438B (en) Object point cloud correction method and device, electronic equipment and storage medium
CN113074634A (en) Rapid phase matching method, storage medium and three-dimensional measurement system
CN113379745B (en) Product defect identification method and device, electronic equipment and storage medium
CN114529652A (en) Point cloud compensation method, device, equipment, storage medium and computer program product
CN106251339A (en) Image processing method and device
CN112797917B (en) High-precision digital speckle interference phase quantitative measurement method
CN115423768A (en) Lens size measuring method and system, storage medium and intelligent terminal
CN111462321B (en) Point cloud map processing method, processing device, electronic device and vehicle
CN113421292A (en) Three-dimensional modeling detail enhancement method and device
CN114264660A (en) Transmission line tower surface defect detection method and device based on green laser imaging
CN115205129A (en) Depth camera based on structured light and method of use
CN112146834A (en) Method and device for measuring structural vibration displacement
CN111949925B (en) Image relative orientation method and device based on Rodriger matrix and maximum convex hull
CN117496499B (en) Method and system for identifying and compensating false depth edges in 3D structured light imaging
CN115994955B (en) Camera external parameter calibration method and device and vehicle
CN115775282B (en) Method, device and storage medium for correcting image distortion at high speed on line
CN117953038A (en) Irregular volume measurement method, system, equipment and storage medium based on depth camera
CN117953040A (en) Minimum rectangular package determining method, system, equipment and storage medium based on depth camera

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant