CN114234808B - Size measuring method and device for deformation area of rotary magnetic pulse crimping part - Google Patents

Size measuring method and device for deformation area of rotary magnetic pulse crimping part Download PDF

Info

Publication number
CN114234808B
CN114234808B CN202111554064.2A CN202111554064A CN114234808B CN 114234808 B CN114234808 B CN 114234808B CN 202111554064 A CN202111554064 A CN 202111554064A CN 114234808 B CN114234808 B CN 114234808B
Authority
CN
China
Prior art keywords
structured light
calibration
image
distortion
undistorted
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.)
Active
Application number
CN202111554064.2A
Other languages
Chinese (zh)
Other versions
CN114234808A (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.)
Hunan University
Original Assignee
Hunan University
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 Hunan University filed Critical Hunan University
Priority to CN202111554064.2A priority Critical patent/CN114234808B/en
Publication of CN114234808A publication Critical patent/CN114234808A/en
Application granted granted Critical
Publication of CN114234808B publication Critical patent/CN114234808B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/80Geometric correction
    • 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/10016Video; Image sequence

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention provides a method and a device for measuring the size of a deformation area of a rotary magnetic pulse compression joint part, wherein the method comprises the following steps: collecting a plurality of calibration plate images at different angles, calibrating by using a calibration tool to obtain a first internal reference matrix, a first external reference matrix and a distortion coefficient, and projecting a structured light straight line in the calibration plate images; carrying out distortion removal processing on the calibration board image according to the distortion coefficient to obtain a distortion-removed image; carrying out secondary calibration on the undistorted image, obtaining a calibration ray equation of any pixel point in the undistorted image passing through the center of the camera under a camera coordinate system, and obtaining a structured light plane equation; and acquiring a structured light video of the magnetic pulse crimping piece through a camera, and acquiring the actual three-dimensional size of the deformation area of each angle of the workpiece according to a structured light plane equation and a calibration ray equation by using each frame of structured light image in the structured light video. The invention can effectively improve the calibration precision and stability and can simply obtain the size of the deformation area of the shaft section with any angle.

Description

Size measuring method and device for deformation area of rotary magnetic pulse crimping part
Technical Field
The invention belongs to the technical field of magnetic pulse forming, and particularly relates to a method and a device for measuring the size of a deformation area of a rotary magnetic pulse compression joint part.
Background
The magnetic pulse compression joint is an advanced connection technology, is fast and green to produce, and does not damage the surface of a workpiece. And the magnetic pulse compression joint piece has higher connection strength.
Due to the unique appearance characteristics of the rotary magnetic pulse crimping piece, the existing convex or concave edge rotary appearance cannot be acquired by a camera to obtain a real appearance. This is because the camera can only observe at most the tangent portion of the line of sight to the rotating member, and cannot notice the blind area portion behind. How to quickly and accurately measure the size of the deformation area of the crimping piece is an urgent problem to be solved. The conventional measurement method is not suitable for a production line operating at a high speed. In addition, the real size of the gyration type magnetic pulse crimping piece multi-angle needs the mechanical collection multiple angle image, and this process is comparatively loaded down with trivial details complicacy.
Disclosure of Invention
The invention provides a method and a device for measuring the size of a deformation region of a rotary magnetic pulse crimping piece, which aim to solve the problem that the size of the deformation region of the crimping piece is difficult to measure quickly and accurately in the prior art.
In view of the above object, an embodiment of the present invention provides a method for measuring a size of a deformation region of a rotary magnetic pulse crimping member, including: collecting a plurality of calibration plate images at different angles, and calibrating the calibration plate images by using a calibration tool to obtain a first internal reference matrix, a first external reference matrix and a distortion coefficient, wherein a structured light straight line is projected in the calibration plate images; carrying out distortion removal processing on the calibration board image according to the distortion coefficient to obtain a distortion-removed image; carrying out secondary calibration on the undistorted image to obtain a calibration ray equation of any pixel point in the undistorted image passing through the center of the camera under a camera coordinate system and obtain a structured light plane equation; and acquiring a structured light video of the magnetic pulse crimping piece through a camera, and acquiring the actual three-dimensional size of the deformation area of each angle of the workpiece by using each frame of structured light image in the structured light video according to the structured light plane equation and the calibration ray equation.
Optionally, the performing distortion removal processing on the calibration board image according to the distortion coefficient to obtain a distortion-removed image includes: and carrying out distortion removal treatment on the calibration board image by applying a preset distortion removal program according to the distortion coefficient, and removing image distortion to obtain the distortion removal image.
Optionally, the performing secondary calibration on the undistorted image to obtain a calibration ray equation of any pixel point in the undistorted image passing through the center of the camera in the camera coordinate system, and obtaining a structured light plane equation includes: inputting the distortion-removed image into the calibration tool to perform secondary calibration to obtain a second internal reference matrix and a second external reference matrix; combining the second internal reference matrix and the second external reference matrix to obtain the calibrated ray equation of any pixel point in the undistorted image passing through the center of the camera under a camera coordinate system; and inputting the distortion-removed image into a structured light calibration program to obtain a structured light plane equation under a camera coordinate system.
Optionally, after the distortion-removed image is input to the calibration tool for secondary calibration to obtain a second internal reference matrix and a second external reference matrix, the method includes: combining the second internal reference matrix and the second external reference matrix, and calculating the average distance of the diagonal line of the calibration plate solved by using a coordinate transformation formula by applying a preset calibration precision program; and comparing the average distance with the actual distance of the diagonal line of the calibration plate to obtain calibration precision.
Optionally, after the inputting the distortion-removed image into the structured light calibration program to obtain the structured light plane equation, the method includes: simultaneously calculating the measurement distance calibrated by the structured light in the calibration plate image by the calibration ray equation and the structured light plane equation; and comparing the measuring distance with the structured light length measured in the calibration plate to obtain the measuring precision.
Optionally, the acquiring a structured light video of the magnetic pulse compression joint by the camera includes: and collecting a structured light video of the magnetic pulse compression joint member rotating around the shaft for at least one circle through a camera.
Optionally, the obtaining, by using each frame of structured light image in the structured light video, the actual three-dimensional size of the deformation region at each angle according to the structured light plane equation and the calibration ray equation includes: performing frame extraction from the structured light video by using a preset frame extraction program to obtain structured light images of a plurality of angles, wherein each angle comprises a plurality of structured light images; carrying out distortion removal processing on the plurality of structured light images at each angle according to the distortion coefficient; combining the structured light plane equation and the calibration ray equation to obtain coordinates of each point of a deformation area in each undistorted structured light image in a camera coordinate system; and calculating the actual three-dimensional size of the deformation region of each angle according to the coordinates of each point of the deformation region in the undistorted structured light image under a camera coordinate system.
Optionally, the calculating the actual three-dimensional size of the deformation region at each angle according to the coordinates of each point of the deformation region in the undistorted structured light image in the camera coordinate system includes: calculating the three-dimensional size of each deformation area according to the coordinates of each point of each deformation area in the deformed structured light image under a camera coordinate system after distortion removal; and averaging the three-dimensional sizes of the deformed regions in the plurality of undistorted structured light images at each angle to obtain the actual three-dimensional size of the deformed region at each angle.
Based on the same inventive concept, the embodiment of the invention also provides a size measuring device for the deformation region of the rotary magnetic pulse crimping piece, which comprises: the calibration device comprises a first calibration unit, a second calibration unit and a control unit, wherein the first calibration unit is used for collecting a plurality of calibration plate images at different angles, calibrating the calibration plate images by using a calibration tool, and acquiring a first internal reference matrix, a first external reference matrix and a distortion coefficient, wherein a structured light straight line is projected in the calibration plate images; the distortion removing unit is used for removing distortion of the calibration board image according to the distortion coefficient to obtain a distortion removed image; the second calibration unit is used for carrying out secondary calibration on the undistorted image, acquiring a calibration ray equation of any pixel point in the undistorted image passing through the center of the camera under a camera coordinate system, and acquiring a structured light plane equation; and the size measuring unit is used for acquiring a structured light video of the magnetic pulse compression joint through a camera, and acquiring the actual three-dimensional size of the deformation area of each angle of the workpiece by applying each frame of structured light image in the structured light video according to the structured light plane equation and the calibration ray equation.
Based on the same inventive concept, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the method described in any one of the above items.
The technical effect of the invention is that, as can be seen from the above, the size measurement method and device for the deformation region of the rotary magnetic pulse compression joint member provided by the embodiment of the invention acquire a plurality of calibration plate images at different angles, and calibrate the calibration plate images by using a calibration tool to acquire a first internal reference matrix, a first external reference matrix and a distortion coefficient, wherein a structured light straight line is projected in the calibration plate images; carrying out distortion removal processing on the calibration board image according to the distortion coefficient to obtain a distortion-removed image; carrying out secondary calibration on the undistorted image to obtain a calibration ray equation of any pixel point in the undistorted image passing through the center of the camera under a camera coordinate system and obtain a structured light plane equation; the method comprises the steps of collecting a structured light video of a magnetic pulse compression joint through a camera, and obtaining the actual three-dimensional size of a deformation area of each angle of a workpiece by using each frame of structured light image in the structured light video according to a structured light plane equation and a calibration ray equation, so that the calibration precision and stability can be effectively improved, and the deformation area size of any angle shaft section can be simply obtained.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for measuring the size of a deformation region of a rotary magnetic pulse crimping member according to an embodiment of the present invention;
FIG. 2 is a schematic illustration of a collected structured light image in an embodiment of the present invention;
FIG. 3 is a schematic structural view of a dimension measuring device for a deformation region of a rotary magnetic pulse crimping member according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an electronic device according to an embodiment of the invention.
Detailed Description
For the purpose of promoting a better understanding of the objects, aspects and advantages of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings.
It is to be noted that technical terms or scientific terms used in the embodiments of the present invention should have the ordinary meanings as understood by those having ordinary skill in the art to which the present disclosure belongs, unless otherwise defined. The use of "first," "second," and similar language in the embodiments of the present invention does not denote any order, quantity, or importance, but rather the terms "first," "second," and similar language are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
The embodiment of the invention also provides a size measuring method of the deformation area of the rotary magnetic pulse crimping piece. As shown in fig. 1, the method for measuring the size of the deformation region of the rotary magnetic pulse crimping member comprises the following steps:
step S11: the method comprises the steps of collecting a plurality of calibration plate images at different angles, calibrating the calibration plate images by using a calibration tool, and obtaining a first internal reference matrix, a first external reference matrix and a distortion coefficient, wherein a structured light straight line is projected in the calibration plate images.
In the embodiment of the invention, a plurality of chessboard pattern calibration plate images at different angles are collected, and the calibration plate images are input into a calibration tool for calibration to obtain a first internal reference matrix, a first external reference matrix and a distortion coefficient. And the calibration plate image is also projected with a structured light straight line to be used for structured light calibration. Preferably, the matlab calibration tool box is used for calibration in the embodiment of the present invention, but in other embodiments of the present invention, other calibration tools may also be used for calibrating the calibration plate image, which is not limited herein.
Step S12: and carrying out distortion removal processing on the calibration board image according to the distortion coefficient to obtain a distortion removed image.
In the embodiment of the present invention, optionally, a preset distortion removal program is applied to perform distortion removal processing on the calibration board image according to the distortion coefficient, so as to remove image distortion, thereby obtaining the distortion-removed image. The distortion-removed image is the calibration board image after distortion is removed according to the distortion coefficient. The distortion removal program may be a distortion removal program written by the user as needed, or an existing distortion removal program may be used, which is not limited herein. For example, a distortion removal program written using the user application OpenCV.
Step S13: and carrying out secondary calibration on the undistorted image, obtaining a calibration ray equation of any pixel point in the undistorted image passing through the center of the camera under a camera coordinate system, and obtaining a structured light plane equation.
In step S13, optionally, inputting the distortion-removed image into the calibration tool for secondary calibration to obtain a second internal reference matrix and a second external reference matrix; combining the second internal reference matrix and the second external reference matrix to obtain the calibrated ray equation of any pixel point in the undistorted image passing through the center of the camera under a camera coordinate system; and inputting the distortion-removed image into a structured light calibration program to obtain a structured light plane equation under a camera coordinate system.
And (3) inputting the distortion-removed image into the calibration tool in the step S11 for secondary calibration to obtain a second internal parameter matrix and a second external parameter matrix, wherein each distortion coefficient is smaller. In the embodiment of the invention, the calibration accuracy of the secondary calibration can be measured. Optionally, after a second internal reference matrix and a second external reference matrix are obtained, a preset calibration precision program is applied to calculate an average distance of a diagonal line of the calibration plate solved by using a coordinate transformation formula in combination with the second internal reference matrix and the second external reference matrix; and comparing the average distance with the actual distance of the diagonal line of the calibration plate to obtain the calibration precision. Specifically, the angular point coordinates of the calibration plate are read, the second internal reference matrix and the second external reference matrix are combined, a preset calibration precision program is applied, coordinates corresponding to the angular point coordinates of the calibration plate in a camera coordinate system are obtained by using a coordinate transformation formula, and then the average distance of diagonal lines in the camera coordinate system is calculated; and comparing the average distance with the actual distance of the diagonal line of the calibration plate to obtain the calibration precision. And when the calibration precision meets the preset requirement, continuing the next calibration. And combining the second internal reference matrix and the second external reference matrix to obtain a calibration ray equation of any pixel point in the undistorted image passing through the center of the camera under a camera coordinate system.
Meanwhile, the distortion-removed image is input into a preset structured light calibration program to obtain a structured light plane equation. After obtaining the structured light plane equation, the measurement accuracy of the embodiment of the present invention can be measured. Optionally, simultaneously calculating the measurement distance calibrated by the structured light in the calibration plate image by the calibration ray equation and the structured light plane equation; and comparing the measuring distance with the structured light length measured in the calibration plate to obtain the measuring precision.
Step S14: and acquiring a structured light video of the magnetic pulse crimping piece through a camera, and acquiring the actual three-dimensional size of the deformation area of each angle of the workpiece by using each frame of structured light image in the structured light video according to the structured light plane equation and the calibration ray equation.
In an embodiment of the present invention, optionally, a structured light video of at least one rotation of the magnetic pulse crimping piece around the shaft is captured by a camera. And then, frame extraction is carried out on each frame in the structured light video by applying a preset frame extraction program, each frame image in the structured light video is extracted, and structured light images of a plurality of angles are obtained, wherein each angle comprises a plurality of structured light images. And then, performing distortion removal processing on the plurality of structured light images at each angle according to the distortion coefficient, that is, performing distortion removal processing on each structured light image extracted from the structured light video according to the distortion removal coefficient obtained in step S11. And then, the structured light plane equation and the calibration ray equation are combined to obtain the coordinates of each point of the deformation area in each undistorted structured light image in a camera coordinate system. And finally, calculating the actual three-dimensional size of the deformation area of each angle according to the coordinates of each point of the deformation area in the undistorted structured light image under a camera coordinate system. In the embodiment of the present invention, specifically, the three-dimensional size of each deformed region may be calculated according to the coordinates of each point of the deformed region in each undistorted structured light image under the camera coordinate system; and averaging the three-dimensional sizes of the deformed regions in the plurality of undistorted structured light images at each angle to obtain the actual three-dimensional size of the deformed region at each angle, so that the overall deformed size of the deformed region can be obtained.
According to the embodiment of the invention, a large number of multi-angle appearance images are quickly obtained by a method of extracting each frame of image from the video file which collects the rotating motion of the magnetic pulse compression joint piece around the shaft, so that the method is quick and effective; by using the structured light vision to measure the rotary magnetic pulse compression joint member, the structured light plane equation and the calibration ray equation at the calibration position are obtained simultaneously, the problem that the measurement cannot be carried out due to the edge appearance of the rotary member is avoided, and the size of a deformation area of an axis section with any angle can be simply obtained; the calibration result is obtained by using the undistorted image to obtain a structured light plane equation and a secondary calibration image, and the result is stable and has high relative precision. Fig. 2 is a structured light image collected using structured light, where the bend is a deformation region. The average calibration precision obtained by applying the size measuring method of the deformation region of the rotary magnetic pulse compression joint member in the embodiment of the invention is 2.30%, wherein the lowest precision is 5.11%, and the highest precision is 0.35%; with the help of structured light calibration, the average measurement accuracy reaches 0.48%, wherein the lowest accuracy is 0.68% and the highest accuracy is 0.10%.
The method comprises the steps of acquiring a plurality of calibration plate images at different angles, and calibrating the calibration plate images by using a calibration tool to obtain a first internal reference matrix, a first external reference matrix and a distortion coefficient, wherein a structured light straight line is projected in the calibration plate images; carrying out distortion removal processing on the calibration board image according to the distortion coefficient to obtain a distortion-removed image; carrying out secondary calibration on the undistorted image to obtain a calibration ray equation of any pixel point in the undistorted image passing through the center of the camera under a camera coordinate system and obtain a structured light plane equation; the method comprises the steps of collecting a structured light video of the magnetic pulse crimping piece through a camera, obtaining the actual three-dimensional size of a deformation area of each angle of a workpiece by using each frame of structured light image in the structured light video according to a structured light plane equation and a calibration ray equation, effectively improving calibration precision and stability, and simply obtaining the size of the deformation area of any angle shaft section.
The foregoing description of specific embodiments of the present invention has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Based on the same invention concept, the embodiment of the invention provides a size measuring device for a deformation area of a rotary magnetic pulse crimping piece. As shown in fig. 3, the dimension measuring apparatus of the deformation region of the rotary type magnetic pulse crimping member comprises: the device comprises a first calibration unit, a distortion removal unit, a second calibration unit and a size measurement unit. Wherein the content of the first and second substances,
the device comprises a first calibration unit, a second calibration unit and a control unit, wherein the first calibration unit is used for collecting a plurality of calibration plate images at different angles, and calibrating the calibration plate images by using a calibration tool to obtain a first internal reference matrix, a first external reference matrix and a distortion coefficient, and a structured light straight line is projected in the calibration plate images;
the distortion removing unit is used for removing distortion of the calibration board image according to the distortion coefficient to obtain a distortion removed image;
the second calibration unit is used for carrying out secondary calibration on the undistorted image, acquiring a calibration ray equation of any pixel point in the undistorted image passing through the center of the camera under a camera coordinate system, and acquiring a structured light plane equation;
and the size measuring unit is used for acquiring a structured light video of the magnetic pulse compression joint through a camera, and acquiring the actual three-dimensional size of the deformation area of each angle of the workpiece by applying each frame of structured light image in the structured light video according to the structured light plane equation and the calibration ray equation.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, the functions of the modules may be implemented in the same or multiple software and/or hardware in implementing embodiments of the invention.
The apparatus of the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method according to any of the above embodiments is implemented.
Fig. 4 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the electronic device may include: a processor 401, a memory 402, an input/output interface 403, a communication interface 404, and a bus 405. Wherein the processor 401, the memory 402, the input/output interface 403 and the communication interface 404 are communicatively connected to each other within the device by a bus 405.
The processor 401 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solution provided by the embodiment of the present invention.
The Memory 402 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random access Memory), a static storage device, a dynamic storage device, or the like. The memory 402 may store an operating system and other application programs, and when the technical solution provided by the embodiment of the present invention is implemented by software or firmware, the relevant program codes are stored in the memory 402 and called to be executed by the processor 401.
The input/output interface 403 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 404 is used for connecting a communication module (not shown in the figure) to implement communication interaction between the present device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, bluetooth and the like).
The bus 405 includes a path that transfers information between the various components of the device, such as the processor 401, memory 402, input/output interface 403, and communication interface 404.
It should be noted that although the above-mentioned device only shows the processor 401, the memory 402, the input/output interface 403, the communication interface 404 and the bus 405, in a specific implementation, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement embodiments of the present invention, and need not include all of the components shown in the figures.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of the present disclosure, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity.
The present invention is intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalents, improvements, and the like that may be made without departing from the spirit or scope of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (9)

1. A method for measuring the size of a deformation area of a rotary magnetic pulse crimping member is characterized by comprising the following steps:
collecting a plurality of calibration plate images at different angles, and calibrating the calibration plate images by using a calibration tool to obtain a first internal reference matrix, a first external reference matrix and a distortion coefficient, wherein a structured light straight line is projected in the calibration plate images;
carrying out distortion removal processing on the calibration board image according to the distortion coefficient to obtain a distortion-removed image;
carrying out secondary calibration on the undistorted image to obtain a calibration ray equation of any pixel point in the undistorted image passing through the center of the camera under a camera coordinate system and obtain a structured light plane equation;
acquiring a structured light video of the magnetic pulse crimping piece through a camera, and acquiring the actual three-dimensional size of a deformation area of each angle of the workpiece according to the structured light plane equation and the calibration ray equation by using each frame of structured light image in the structured light video; the method comprises the steps that a preset frame extracting program is applied to frame extraction from the structured light video, structured light images of a plurality of angles are obtained, and each angle comprises a plurality of structured light images; carrying out distortion removal processing on the plurality of structured light images at each angle according to the distortion coefficient; combining the structured light plane equation and the calibration ray equation to obtain coordinates of each point of a deformation area in each undistorted structured light image in a camera coordinate system; and calculating the actual three-dimensional size of the deformation region of each angle according to the coordinates of each point of the deformation region in the undistorted structured light image under a camera coordinate system.
2. The method of claim 1, wherein said de-distorting said reticle image based on said distortion coefficient to obtain a de-distorted image, comprises:
and carrying out distortion removal processing on the calibration board image by applying a preset distortion removal program according to the distortion coefficient, and removing image distortion to obtain the distortion-removed image.
3. The method of claim 1, wherein said calibrating the undistorted image twice to obtain a calibrated ray equation of any pixel in the undistorted image passing through the center of the camera in the camera coordinate system and to obtain the structured light plane equation comprises:
inputting the distortion-removed image into the calibration tool for secondary calibration to obtain a second internal reference matrix and a second external reference matrix;
combining the second internal reference matrix and the second external reference matrix to obtain the calibrated ray equation of any pixel point in the undistorted image passing through the center of the camera under a camera coordinate system;
and inputting the distortion-removed image into a structured light calibration program to obtain a structured light plane equation under a camera coordinate system.
4. The method as claimed in claim 3, wherein said inputting said undistorted image into said calibration tool for a second calibration after obtaining a second internal reference matrix and a second external reference matrix comprises:
combining the second internal reference matrix and the second external reference matrix, and calculating the average distance of the diagonal line of the calibration plate solved by using a coordinate transformation formula by applying a preset calibration precision program;
and comparing the average distance with the actual distance of the diagonal line of the calibration plate to obtain calibration precision.
5. The method of claim 3, wherein said inputting said undistorted image into a structured light scaling routine to obtain a structured light plane equation comprises:
simultaneously calculating the measuring distance calibrated by the structured light in the calibration plate image by combining the calibration ray equation and the structured light plane equation;
and comparing the measuring distance with the structured light length measured in the calibration plate to obtain the measuring precision.
6. The method of claim 1, wherein said capturing a structured light video of the magnetic pulse crimp with a camera comprises:
and acquiring a structured light video of the magnetic pulse crimping piece rotating around the shaft for at least one circle by a camera.
7. The method of claim 1, wherein said calculating the actual three-dimensional size of the deformed region for each angle based on the coordinates of the points in the deformed region in each undistorted structured light image in the camera coordinate system comprises:
calculating the three-dimensional size of each deformation area according to the coordinates of each point of the deformation area in each undistorted structured light image under a camera coordinate system;
and averaging the three-dimensional sizes of the deformed regions in the plurality of undistorted structured light images at each angle to obtain the actual three-dimensional size of the deformed region at each angle.
8. A dimension measuring apparatus for a deformed region of a rotary magnetic pulse crimping member, characterized by comprising:
the calibration device comprises a first calibration unit, a second calibration unit and a control unit, wherein the first calibration unit is used for collecting a plurality of calibration plate images at different angles, calibrating the calibration plate images by using a calibration tool, and acquiring a first internal reference matrix, a first external reference matrix and a distortion coefficient, wherein a structured light straight line is projected in the calibration plate images;
the distortion removing unit is used for removing distortion of the calibration board image according to the distortion coefficient to obtain a distortion removed image;
the second calibration unit is used for carrying out secondary calibration on the undistorted image, acquiring a calibration ray equation of any pixel point in the undistorted image passing through the center of the camera under a camera coordinate system, and acquiring a structured light plane equation;
the size measuring unit is used for acquiring a structured light video of the magnetic pulse compression joint through a camera, and acquiring the actual three-dimensional size of a deformation area of each angle of the workpiece according to the structured light plane equation and the calibration ray equation by applying each frame of structured light image in the structured light video; the method comprises the steps that a preset frame extracting program is applied to frame extraction from the structured light video, structured light images of a plurality of angles are obtained, and each angle comprises a plurality of structured light images; carrying out distortion removal processing on the plurality of structured light images at each angle according to the distortion coefficient; combining the structured light plane equation and the calibration ray equation to obtain coordinates of each point of the deformation area in each undistorted structured light image under a camera coordinate system; and calculating the actual three-dimensional size of the deformation region of each angle according to the coordinates of each point of the deformation region in the undistorted structured light image under a camera coordinate system.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 7 when executing the program.
CN202111554064.2A 2021-12-17 2021-12-17 Size measuring method and device for deformation area of rotary magnetic pulse crimping part Active CN114234808B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111554064.2A CN114234808B (en) 2021-12-17 2021-12-17 Size measuring method and device for deformation area of rotary magnetic pulse crimping part

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111554064.2A CN114234808B (en) 2021-12-17 2021-12-17 Size measuring method and device for deformation area of rotary magnetic pulse crimping part

Publications (2)

Publication Number Publication Date
CN114234808A CN114234808A (en) 2022-03-25
CN114234808B true CN114234808B (en) 2022-10-28

Family

ID=80758323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111554064.2A Active CN114234808B (en) 2021-12-17 2021-12-17 Size measuring method and device for deformation area of rotary magnetic pulse crimping part

Country Status (1)

Country Link
CN (1) CN114234808B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105783726A (en) * 2016-04-29 2016-07-20 无锡科技职业学院 Curve-welding-seam three-dimensional reconstruction method based on line structure light vision detection
CN107220954A (en) * 2017-07-13 2017-09-29 深圳市魔眼科技有限公司 A kind of 3D scanning systems based on mobile terminal
CN109961482A (en) * 2017-12-22 2019-07-02 比亚迪股份有限公司 Camera calibration method, device and vehicle
CN110068270A (en) * 2019-04-18 2019-07-30 上海拓今智能科技有限公司 A kind of monocular vision box volume measurement method based on multi-line structured light image recognition
CN111397528A (en) * 2020-03-26 2020-07-10 北京航空航天大学 Portable train wheel regular section contour structure optical vision measurement system and method
CN111462172A (en) * 2020-02-24 2020-07-28 西安电子科技大学 Three-dimensional panoramic image self-adaptive generation method based on driving scene estimation
CN112296999A (en) * 2019-11-12 2021-02-02 太原科技大学 Irregular workpiece machining path generation method based on machine vision
WO2021185218A1 (en) * 2020-03-16 2021-09-23 左忠斌 Method for acquiring 3d coordinates and dimensions of object during movement
CN113686262A (en) * 2021-08-13 2021-11-23 桂林电子科技大学 Line structure optical scanner calibration method and device and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105783726A (en) * 2016-04-29 2016-07-20 无锡科技职业学院 Curve-welding-seam three-dimensional reconstruction method based on line structure light vision detection
CN107220954A (en) * 2017-07-13 2017-09-29 深圳市魔眼科技有限公司 A kind of 3D scanning systems based on mobile terminal
CN109961482A (en) * 2017-12-22 2019-07-02 比亚迪股份有限公司 Camera calibration method, device and vehicle
CN110068270A (en) * 2019-04-18 2019-07-30 上海拓今智能科技有限公司 A kind of monocular vision box volume measurement method based on multi-line structured light image recognition
CN112296999A (en) * 2019-11-12 2021-02-02 太原科技大学 Irregular workpiece machining path generation method based on machine vision
CN111462172A (en) * 2020-02-24 2020-07-28 西安电子科技大学 Three-dimensional panoramic image self-adaptive generation method based on driving scene estimation
WO2021185218A1 (en) * 2020-03-16 2021-09-23 左忠斌 Method for acquiring 3d coordinates and dimensions of object during movement
CN111397528A (en) * 2020-03-26 2020-07-10 北京航空航天大学 Portable train wheel regular section contour structure optical vision measurement system and method
CN113686262A (en) * 2021-08-13 2021-11-23 桂林电子科技大学 Line structure optical scanner calibration method and device and storage medium

Also Published As

Publication number Publication date
CN114234808A (en) 2022-03-25

Similar Documents

Publication Publication Date Title
US10650523B2 (en) Image segmentation method, image segmentation system and storage medium and apparatus including the same
TWI528028B (en) Inspection apparatus, method, and computer program product for machine vision inspection
EP3223144A1 (en) Method and device for capturing image and storage medium
JP2014025748A (en) Dimension measuring program, dimension measuring instrument, and dimension measuring method
CN110470320B (en) Calibration method of swinging scanning type line structured light measurement system and terminal equipment
CN112488910B (en) Point cloud optimization method, device and equipment
CN109272555B (en) External parameter obtaining and calibrating method for RGB-D camera
CN110035280B (en) Method and device for detecting module FOV by using checkerboard test table and readable storage medium
CN114549652A (en) Camera calibration method, device, equipment and computer readable medium
CN115641337B (en) Linear defect detection method, device, medium, equipment and system
CN111681186A (en) Image processing method and device, electronic equipment and readable storage medium
CN111625151A (en) Method and system for accurately identifying contact position in deformation projection based on touch method
US10516822B2 (en) Method and device for merging images of calibration devices
US9319666B1 (en) Detecting control points for camera calibration
CN114234808B (en) Size measuring method and device for deformation area of rotary magnetic pulse crimping part
CN111699513B (en) Calibration plate, internal parameter calibration method, machine vision system and storage device
WO2007125981A1 (en) Boundary position decision device, boundary position decision method, program for functioning computer as the device, and recording medium
CN107534202A (en) A kind of method and apparatus for measuring antenna attitude
JP6599698B2 (en) Image measuring apparatus and control program therefor
CN114037987A (en) Intelligent identification method, device, medium and equipment for scrap steel
CN112102415A (en) Depth camera external parameter calibration method, device and equipment based on calibration ball
WO2021075090A1 (en) Correction parameter calculation method, displacement amount calculation method, correction parameter calculation device, and displacement amount calculation device
CN112146589A (en) Three-dimensional morphology measurement system and method based on ZYNQ platform
CN111311671A (en) Workpiece measuring method and device, electronic equipment and storage medium
CN112197708A (en) Measuring method and device, electronic device and storage medium

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