Surface defect detection device and method for inner wall of artillery barrel

Through the combination of magnetic levitation device and laser projection method, non-contact measurement of defects on the inner wall of the artillery body tube is realized, solving the problems of low measurement accuracy and damage in the prior art, and improving detection efficiency and accuracy.

CN120403334APending Publication Date: 2025-08-01XIAN TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510652106.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

The existing method of detecting defects on the inner wall of the artillery body tube is prone to damage the inner wall of the artillery body tube and has low measurement accuracy.

Method used

The magnetic levitation device and laser projection method are used to levitate the optical probe of the cannon body tube without contact, and the surface defect detection is carried out in combination with the laser projection method to obtain detection images and analyze defects.

Benefits of technology

Non-contact measurement of defects on the inner wall of the artillery body tube is realized, avoiding damage to the inner wall of the artillery body tube, and improving measurement accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120403334A_ABST
    Figure CN120403334A_ABST
Patent Text Reader

Abstract

The invention discloses a surface defect detection device and method for the inner wall of an artillery barrel, and relates to the technical field of non-contact measurement, the device comprises a guide rail, a magnetic suspension device arranged on the guide rail, an optical measuring head, and computer equipment in communication connection with the magnetic suspension device and the optical measuring head; the computer equipment is used for controlling the magnetic suspension device to move along the guide rail, determining a target voltage, and controlling the magnetic force of the magnetic suspension device based on the target voltage so as to control the magnetic suspension device to suspend the optical measuring head to pass through the interior of the barrel of the to-be-measured artillery in a non-contact manner; the optical measuring head is used for performing surface defect detection on the inner wall of the barrel of the to-be-detected artillery based on a laser projection method to obtain a detection image; and the computer equipment is also used for acquiring the detection image and determining a surface defect detection result of the inner wall of the barrel of the to-be-detected artillery based on the detection image. According to the technical scheme, non-contact measurement of artillery barrel inner wall surface defects is achieved, and the measurement precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of non-contact measurement, and more particularly to a surface defect detection device and method for the inner wall of a gun barrel. Background Art

[0002] Artillery is an important weapon in the military field and also reflects a country's military strength. For artillery, its accuracy and service life are important indicators. The higher the accuracy and the longer the service life, the more significantly it can enhance a country's military strength. At the same time, the increase in service life can also effectively reduce manufacturing costs.

[0003] The surface defects on the inner wall of the gun barrel have an important impact on the accuracy and service life of the artillery. Therefore, the detection of surface defects on the inner wall of the gun barrel is particularly important. In related technologies, a tensioning crawling feeding mechanism is mainly used for the detection of surface defects on the inner wall of the gun barrel, but it is a contact measurement, with complex operations, easy to cause damage to the inner wall of the gun barrel, and having the defect of low measurement accuracy. Summary of the Invention

[0004] The embodiments of the present invention provide a surface defect detection device and method for the inner wall of a gun barrel, which are used to solve the problems that the existing surface defect detection method for the inner wall of a gun barrel is easy to cause damage to the inner wall of the gun barrel and has low measurement accuracy, and to realize non-contact measurement of surface defects on the inner wall of the gun barrel and improve the measurement accuracy.

[0005] The embodiments of the present invention provide a surface defect detection device for the inner wall of a gun barrel, including a guide rail, a magnetic levitation device, an optical probe, and a computer device; the magnetic levitation device is arranged on the guide rail, and the optical probe is lifted by the magnetic levitation device; the computer device is respectively communicatively connected with the magnetic levitation device and the optical probe;

[0006] The computer device is used to control the magnetic levitation device to move along the guide rail, determine the target voltage, and control the magnetic force of the magnetic levitation device based on the target voltage, so as to control the magnetic levitation device to suspend the optical probe and pass through the inside of the gun barrel of the artillery to be measured without contact;

[0007] The optical probe is used to perform surface defect detection on the inner wall of the gun barrel of the artillery to be measured based on the laser projection method to obtain a detection image;

[0008] The computer device is further used to acquire the detection image and determine the surface defect detection result of the inner wall of the gun barrel of the artillery to be measured based on the detection image.

[0009] Optionally, the surface defect detection device for the inner wall of the gun barrel further includes a bracket and a laser sensor communicatively connected to the computer device. The bracket is fixed at the opposite end of the magnetic levitation device on the guide rail, and the bracket is used to support the laser sensor;

[0010] The laser sensor is used to detect the position of the laser emitted by the first laser emitter of the optical probe passing through the gun barrel of the gun to be tested, generate a varying voltage according to the change amount of the position, and send the varying voltage to the computer device;

[0011] The computer device is specifically configured to determine the target voltage based on the varying voltage, and control the magnetic force of the magnetic levitation device based on the target voltage, so as to control the magnetic levitation device to levitate the optical probe and pass through the inside of the gun barrel of the gun to be tested without contact along a direction parallel to the guide rail.

[0012] Optionally, the computer device is specifically configured to, when the varying voltage is greater than the voltage change threshold, determine the offset direction and offset distance of the optical probe based on the varying voltage, and determine the target voltage based on the offset direction and the offset distance.

[0013] Optionally, the magnetic levitation device includes four groups of energized copper coils.

[0014] Optionally, the optical probe includes a second laser emitter, a reflection prism, a receiving prism, and an image acquisition device;

[0015] The laser emitted by the second laser emitter forms an annular laser after being expanded by the reflection prism to cover a cross-section of the inner wall of the gun barrel of the gun to be tested;

[0016] The receiving prism is used to image the light on the inner wall of the gun barrel of the gun to be tested;

[0017] The image acquisition device is used to acquire the image formed by the receiving prism to obtain the detection image.

[0018] This application provides a method for detecting surface defects on the inner wall of a gun barrel, which is applied to a computer device in the surface defect detection device for the inner wall of a gun barrel as described in any one of the above; the method for detecting surface defects on the inner wall of a gun barrel includes:

[0019] Control the magnetic levitation device to move along the guide rail;

[0020] During the process of the magnetic levitation device moving along the guide rail, determine the target voltage, and control the magnetic force of the magnetic levitation device based on the target voltage, so as to control the magnetic levitation device to levitate the optical probe and pass through the inside of the gun barrel of the gun to be tested without contact;

[0021] Obtain a detection image obtained by the optical probe for surface defect detection of the inner wall of the gun barrel of the gun to be measured based on the laser projection method;

[0022] Determine the surface defect detection result of the inner wall of the gun barrel of the gun to be measured based on the detection image.

[0023] Optionally, during the process of the magnetic levitation device moving along the guide rail, determine a target voltage, and control the magnetic force of the magnetic levitation device based on the target voltage, so as to control the magnetic levitation device to levitate the optical probe and pass through the inside of the gun barrel of the gun to be measured without contact, including:

[0024] During the process of the magnetic levitation device moving along the guide rail, obtain a changing voltage generated by a laser sensor; the laser sensor is used to detect the position of the laser emitted by the first laser emitter of the optical probe passing through the gun barrel of the gun to be measured, and generate the changing voltage according to the change amount of the position;

[0025] Determine the target voltage based on the changing voltage, and control the magnetic force of the magnetic levitation device based on the target voltage, so as to control the magnetic levitation device to levitate the optical probe and pass through the inside of the gun barrel of the gun to be measured without contact along a direction parallel to the guide rail.

[0026] Optionally, the determining the target voltage based on the changing voltage includes:

[0027] When the changing voltage is greater than a voltage change threshold, determine the offset direction and offset distance of the optical probe based on the changing voltage;

[0028] Determine the target voltage based on the offset direction and the offset distance.

[0029] An embodiment of the present invention provides a computer device, the computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the method for surface defect detection of the inner wall of the gun barrel as described in any one of the above.

[0030] An embodiment of the present invention provides a computer-readable storage medium, storing a computer program, and when the computer program is executed by a processor, the processor executes the method for surface defect detection of the inner wall of the gun barrel as described in any one of the above.

[0031] The surface defect detection device and method for the inner wall of a gun barrel provided by an embodiment of the present invention utilize a magnetic levitation device arranged on a guide rail to levitate an optical probe head. During the process of controlling the magnetic levitation device to move along the guide rail, a target voltage is determined, and based on the target voltage, the magnetic force of the magnetic levitation device is controlled to control the magnetic levitation device to levitate the optical probe head and pass through the inside of the gun barrel to be measured without contact. During this process, the optical probe head can perform surface defect detection on the inner wall of the gun barrel to be measured based on the laser projection method to obtain a detection image. After that, the surface defect detection result of the inner wall of the gun barrel to be measured can be determined based on the detection image. In this way, non-contact measurement of the surface defects of the inner wall of the gun barrel is realized, damage to the inner wall of the gun barrel is avoided, and the measurement accuracy is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0033] Figure 1 It is a schematic structural diagram of a surface defect detection device for the inner wall of a gun barrel provided by an embodiment of the present invention;

[0034] Figure 2 It is a schematic structural diagram of the optical probe head provided by an embodiment of the present invention;

[0035] Figure 3 It is one of the schematic flowcharts of a surface defect detection method for the inner wall of a gun barrel provided by an embodiment of the present invention;

[0036] Figure 4 It is the second schematic flowchart of a surface defect detection method for the inner wall of a gun barrel provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0037] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0038] In the related art, for the surface defect detection of the inner wall of a gun barrel, a tensioning crawling feed mechanism is mainly used, but it is a contact measurement method, with complex operation, low measurement accuracy and measurement efficiency, and it is easy to cause damage to the inner wall of the gun barrel.

[0039] Based on this, the embodiments of the present invention provide a solution for non-contact measurement of surface defects on the inner wall of a gun barrel by using a magnetic levitation device and a laser projection method, which improves the measurement efficiency and accuracy, is easy to operate, and also avoids damage to the inner wall of the gun barrel.

[0040] Figure 1 The structure diagram of a surface defect detection device for the inner wall of a gun barrel provided by the embodiments of the present invention is shown. Referring to Figure 1 As shown, the surface defect detection device for the inner wall of the gun barrel may include a guide rail 110, a magnetic levitation device 120, an optical probe 130, and a computer device 140. Among them, the magnetic levitation device 120 is arranged on the guide rail 110 and can move along the guide rail 110; the optical probe 130 is placed on the magnetic levitation device 120. When the magnetic levitation device 120 is powered on, the magnetic force generated by the magnetic levitation device 120 can lift the optical probe 130, and the optical probe 130 can move along with the movement of the magnetic levitation device 120 along the guide rail 110; the computer device 140 is communicatively connected to the magnetic levitation device 120 and the optical probe 130 respectively.

[0041] Specifically, the computer device 140 is used to control the magnetic levitation device 120 to move along the guide rail 110, determine the target voltage, and control the magnetic force of the magnetic levitation device based on the target voltage, so as to control the magnetic levitation device to lift the optical probe 130 and pass through the inside of the gun barrel of the gun 10 to be measured without contact. Among them, the gun 10 to be measured can be suspended above the guide rail 110 or supported above the guide rail 110 by a gun bracket, and the central axis of the gun 10 to be measured is parallel to the guide rail 110.

[0042] The optical probe 130 is used to perform surface defect detection on the inner wall of the gun barrel of the gun 10 to be measured based on the laser projection method to obtain a detection image.

[0043] The computer device 140 is further used to acquire the detection image and determine the surface defect detection result of the inner wall of the gun barrel of the gun 10 to be measured based on the detection image.

[0044] In an exemplary embodiment, the magnetic levitation device 120 may include four groups of energized copper coils, that is, a magnetic levitation device 120 constructed by four groups of precision energized copper coils can be used to lift the optical probe 130. The magnetic levitation device 120 has a strong magnetic force and can lift the optical probe 130 non-contact, realizing high precision and friction-free interference in the measurement process.

[0045] In an exemplary embodiment, Figure 2 The structure diagram of the optical probe provided by the embodiments of the present invention is shown. Referring to Figure 2As shown, the optical probe 130 may include a second laser emitter 21, a reflection prism 22, a receiving prism 23, and an image acquisition device 24. The second laser emitter 21, the reflection prism 22, the receiving prism 23, and the image acquisition device 24 form a detection optical path in the optical window 20 that can implement the laser projection method.

[0046] Among them, the laser emitted by the second laser emitter 21 forms an annular laser after being beam-expanded by the reflection prism 22 to cover a cross-section of the inner wall of the gun barrel 10 to be measured; the receiving prism 23 is used to image the light on the inner wall of the gun barrel 10 to be measured; the image acquisition device 24 is used to acquire the image of the receiving prism 23 to obtain a detection image.

[0047] Exemplarily, the reflection prism 22 may be an expanding cone mirror, and the image acquisition device 24 may be a Charge Coupled Device (CCD) camera.

[0048] The surface defect detection device for the inner wall of the gun barrel provided by the embodiment of the present invention uses a magnetic levitation device arranged on the guide rail to levitate the optical probe. During the process of controlling the magnetic levitation device to move along the guide rail, a target voltage is determined, and based on the target voltage, the magnetic force of the magnetic levitation device is controlled to control the magnetic levitation device to levitate the optical probe and pass through the inside of the gun barrel to be measured without contact; during this process, the optical probe can perform surface defect detection on the inner wall of the gun barrel to be measured based on the laser projection method to obtain a detection image; then, the surface defect detection result of the inner wall of the gun barrel to be measured can be determined based on the detection image. In this way, non-contact measurement of the surface defects of the inner wall of the gun barrel is realized, damage to the inner wall of the gun barrel is avoided, and the measurement accuracy is improved.

[0049] Refer to Figure 1 As shown, in one embodiment, the surface defect detection device for the inner wall of the gun barrel may further include a bracket 150 and a laser sensor 160 communicatively connected to a computer device 140. The bracket 150 is fixed at the opposite end of the magnetic levitation device 120 on the guide rail 110, and the bracket 150 is used to support the laser sensor 16%.

[0050] Among them, the laser sensor 160 is used to detect the position of the laser emitted by the first laser emitter of the optical probe 130 that passes through the gun barrel 10 to be measured, generate a varying voltage according to the change amount of the position, and send the varying voltage to the computer device 140; among them, the first laser emitter is arranged at the front end of the optical probe 130.

[0051] The computer device 140 is specifically configured to determine a target voltage based on the varying voltage and control the magnetic force of the magnetic levitation device 120 based on the target voltage, so as to control the magnetic levitation device 120 to levitate the optical probe 130 and pass through the barrel interior of the artillery piece 10 to be measured without contact along a direction parallel to the guide rail 110.

[0052] Specifically, the laser sensor 160 can generate a varying voltage according to the change amount of the current position of the laser relative to the position at the previous moment. Alternatively, the laser sensor 160 can generate a varying voltage according to the change amount of the position of the laser relative to a reference position.

[0053] Exemplarily, the centers of the optical probe 130, the artillery piece 10 to be measured, and the laser sensor 160 can be preset to be on the same horizontal line, that is, the center connection line is parallel to the guide rail 110. Then, the first laser emitter of the optical probe 130 is controlled to emit a laser passing through the barrel of the artillery piece 10 to be measured, and the position where the laser is projected on the laser receiving surface of the laser sensor 160 is determined as the reference position. Alternatively, when the optical probe 130 can pass through the barrel interior of the artillery piece 10 to be measured without contact, the position of the laser emitted by the first laser emitter in the initial stable state can be determined as the reference position.

[0054] When the laser is projected on the reference position of the laser sensor 160, the laser sensor 160 can generate a reference voltage. When the laser deviates from the reference position, the voltage generated by the laser sensor 160 changes relative to the reference voltage, and the magnitude of this voltage change can characterize the position change of the optical probe 130.

[0055] It can be understood that the optical probe 130 can pass through the barrel interior of the artillery piece 10 to be measured without contact within a certain range. When the optical probe 130 passes through the barrel interior of the artillery piece 10 to be measured without contact within this range, the laser emitted by the first laser emitter of the optical probe 130 will generate a projection range on the laser receiving surface of the laser sensor 160, and this projection range can be used to determine whether the optical probe 130 passes through the barrel interior of the artillery piece 10 to be measured without contact. Correspondingly, this projection range corresponds to a voltage change threshold of the laser sensor 160. If the change amount of the voltage generated by the laser sensor 160 relative to the reference voltage is within this voltage change threshold range, it indicates that the optical probe 130 can pass through the barrel interior of the artillery piece 10 to be measured without contact.

[0056] Based on this, in one embodiment, the voltage change threshold can be determined in advance through experiments. Correspondingly, the computer device 140 is specifically configured to, when the varying voltage of the laser sensor 160 is greater than the voltage change threshold, determine the offset direction and offset distance of the optical probe 130 based on the varying voltage, and determine the target voltage based on the offset direction and offset distance.

[0057] Specifically, the voltage change threshold corresponding to the upward offset of the optical probe 130 along the direction perpendicular to the guide rail 110 inside the barrel of the artillery piece 10 to be measured can be defined as the first voltage change threshold, and the voltage change threshold corresponding to the downward offset of the optical probe 130 along the direction perpendicular to the guide rail 110 inside the barrel of the artillery piece 10 to be measured can be defined as the second voltage change threshold. When the changing voltage of the laser sensor 160 is greater than the first voltage change threshold, it indicates that the optical probe 130 is upwardly offset when passing through the inside of the barrel of the artillery piece 10 to be measured, and may touch the upper wall inside the barrel. At this time, the offset direction can be determined to be upward, and the offset distance can be determined according to the magnitude of the changing voltage. Then, the magnetic force of the magnetic levitation device 120 for lifting the optical probe 130 can be determined according to the offset direction and the offset distance, and then the target voltage of the magnetic levitation device 120 can be determined according to this magnetic force. When the changing voltage of the laser sensor 160 is greater than the second voltage change threshold, it indicates that the optical probe 130 is downwardly offset when passing through the inside of the barrel of the artillery piece 10 to be measured, and may touch the lower wall inside the barrel. At this time, the offset direction can be determined to be downward, and the offset distance can be determined according to the magnitude of the changing voltage. Then, the magnetic force of the magnetic levitation device 120 for lifting the optical probe 130 can be determined according to the offset direction and the offset distance, and then the target voltage of the magnetic levitation device 120 can be determined according to this magnetic force.

[0058] Among them, the relationship between the magnetic force F of the magnetic levitation device 120 and the target voltage U(t) can be expressed by the following formula (1):

[0059]

[0060] Among them, μ0 is the air magnetic permeability, n is the number of turns of the electromagnetic coil of the magnetic levitation device, A is the cross-sectional area of the iron core, U(t) is the target voltage injected into the electromagnet of the magnetic levitation device, R is the resistance of the electromagnetic coil, and g(t) is the air gap between the electromagnet and the optical probe 130.

[0061] The surface defect detection device for the inner wall of a gun barrel provided by an embodiment of the present invention is provided with a laser sensor at the end of the gun barrel to be measured. The laser sensor is used to detect the position of the laser emitted by the first laser emitter and passing through the gun barrel to be measured. A varying voltage is generated according to the change amount of this position, and the varying voltage is sent to a computer device. The computer device determines a target voltage based on the varying voltage, and controls the magnetic force of the magnetic levitation device based on the target voltage to control the magnetic levitation device to levitate the optical probe and pass through the inside of the gun barrel to be measured without contact along a direction parallel to the guide rail. In this way, the laser sensor at the end of the gun barrel to be measured, which serves as a centering device, receives the laser emitted from the front end of the optical probe, monitors the position of the optical probe in real time and precisely adjusts it, ensuring that the optical probe always maintains a straight line throughout the measurement process, thus greatly improving the accuracy and stability of the measurement. It not only improves the accuracy of the measurement data, but also significantly improves the detection efficiency and reliability.

[0062] Based on the same inventive concept, an embodiment of the present invention also provides a method for detecting surface defects on the inner wall of a gun barrel, which can be applied to the computer device 140 in the above-mentioned surface defect detection device for the inner wall of a gun barrel. Figure 3 One of the flow schematic diagrams of a method for detecting surface defects on the inner wall of a gun barrel provided by an embodiment of the present invention is shown. Referring to Figure 3 as shown, the method may include the following steps 310 to 340.

[0063] Step 310: Control the magnetic levitation device to move along the guide rail.

[0064] The computer device 140 can control the magnetic levitation device 120 to move along the guide rail 110 by controlling pulleys or conveyor belts on the guide rail 110, etc.

[0065] Step 320: During the process of the magnetic levitation device moving along the guide rail, determine the target voltage, and control the magnetic force of the magnetic levitation device based on the target voltage to control the magnetic levitation device to levitate the optical probe and pass through the inside of the gun barrel to be measured without contact.

[0066] In one embodiment, the target voltage may be a voltage determined in advance through experiments for controlling the magnetic force of the magnetic levitation device. For example, in each experiment, the magnetic levitation device 120 can be controlled to suspend the optical probe 130 and pass through the interior of the barrel of the experimental artillery without contact, and the voltage for controlling the magnetic force of the magnetic levitation device 120 in that experiment can be recorded. Through multiple experiments, multiple voltages can be obtained, and the average value of these voltages can be determined as the target voltage. When detecting surface defects on the inner wall of the barrel of the artillery to be measured, the computer device 140 can directly obtain this target voltage. Alternatively, these voltages obtained from the experiments can be saved in a voltage information table, and the computer device 140 can randomly or according to priority obtain a voltage from the voltage information as the target voltage.

[0067] In one embodiment, step 320 can be implemented through the following steps: During the process of the magnetic levitation device 120 moving along the guide rail 110, obtain the varying voltage generated by the laser sensor 160, where the laser sensor 160 is used to detect the position of the laser emitted by the first laser emitter of the optical probe 130 passing through the barrel of the artillery 10 to be measured, and generate a varying voltage according to the change amount of this position; Determine the target voltage based on the varying voltage, and control the magnetic force of the magnetic levitation device based on the target voltage to control the magnetic levitation device 120 to suspend the optical probe 130 and pass through the interior of the barrel of the artillery 10 to be measured without contact along a direction parallel to the guide rail 110.

[0068] Exemplarily, determining the target voltage based on the varying voltage may include: when the varying voltage is greater than the voltage change threshold, determine the offset direction and offset distance of the optical probe based on the varying voltage; Determine the target voltage based on the offset direction and offset distance.

[0069] Specifically, the voltage change threshold corresponding to the upward offset of the optical probe 130 along the direction perpendicular to the guide rail 110 inside the barrel of the artillery piece 10 to be measured can be defined as the first voltage change threshold, and the voltage change threshold corresponding to the downward offset of the optical probe 130 along the direction perpendicular to the guide rail 110 inside the barrel of the artillery piece 10 to be measured can be defined as the second voltage change threshold. When the changing voltage of the laser sensor 160 is greater than the first voltage change threshold, it indicates that the optical probe 130 is upwardly offset when passing through the inside of the barrel of the artillery piece 10 to be measured and may touch the upper wall inside the barrel. At this time, the offset direction can be determined to be upward, and the offset distance can be determined according to the magnitude of the changing voltage. Then, the magnetic force for the magnetic levitation device 120 to lift the optical probe 130 can be determined based on the offset direction and the offset distance, and then the target voltage of the magnetic levitation device 120 can be determined according to this magnetic force. When the changing voltage of the laser sensor 160 is greater than the second voltage change threshold, it indicates that the optical probe 130 is downwardly offset when passing through the inside of the barrel of the artillery piece 10 to be measured and may touch the lower wall inside the barrel. At this time, the offset direction can be determined to be downward, and the offset distance can be determined according to the magnitude of the changing voltage. Then, the magnetic force for the magnetic levitation device 120 to lift the optical probe 130 can be determined based on the offset direction and the offset distance, and then the target voltage of the magnetic levitation device 120 can be determined according to this magnetic force.

[0070] Step 330: Obtain the detection image obtained by the optical probe for surface defect detection of the inner wall of the barrel of the artillery piece to be measured based on the laser projection method.

[0071] During the process of the optical probe 130 passing through the inside of the barrel of the artillery piece to be measured, surface defect detection of the inner wall of the barrel of the artillery piece to be measured can be performed based on the laser projection method to obtain a detection image. The computer device 140 can obtain this detection image.

[0072] Step 340: Determine the surface defect detection result of the inner wall of the barrel of the artillery piece to be measured based on the detection image.

[0073] After the computer device 140 obtains the detection image, the detection image can be analyzed. For example, a neural network detection model can be pre-trained, and this neural network detection model can be used to analyze the detection image to obtain the surface defect detection result of the inner wall of the barrel of the artillery piece to be measured.

[0074] The surface defect detection method for the inner wall of a gun barrel provided by an embodiment of the present invention uses a magnetic levitation device arranged on a guide rail to levitate an optical probe. During the process of the computer device controlling the magnetic levitation device to move along the guide rail, a target voltage is determined, and based on the target voltage, the magnetic force of the magnetic levitation device is controlled to control the magnetic levitation device to levitate the optical probe and pass through the inside of the gun barrel to be measured without contact. During this process, the optical probe can perform surface defect detection on the inner wall of the gun barrel to be measured based on the laser projection method to obtain a detection image. The computer device acquires the detection image and analyzes the detection image to obtain the surface defect detection result of the inner wall of the gun barrel to be measured. In this way, non-contact measurement of the surface defects of the inner wall of the gun barrel is realized, damage to the inner wall of the gun barrel is avoided, and the measurement accuracy is improved.

[0075] Based on Figure 1 the device and Figure 3 the method of the corresponding embodiment, Figure 4 Fig. 2 shows a second schematic flowchart of a surface defect detection method for the inner wall of a gun barrel provided by an embodiment of the present invention. Referring to Figure 4 as shown, the method may include the following steps 401 to 409.

[0076] Step 401: Control the voltage injected into the magnetic levitation device to make the optical probe levitate above the magnetic levitation device.

[0077] Step 402: Determine whether to calibrate the surface defect detection device for the inner wall of the gun barrel.

[0078] After the optical probe 130 levitates above the magnetic levitation device 120, a high-precision laser beam can be emitted from the first laser emitter at the front end to the laser sensor 160 at the opposite end. The computer device 140 can determine whether the surface defect detection device for the inner wall of the gun barrel is stable according to the position of the laser received by the laser sensor 160. If it is not stable, for example, the change amplitude of the laser position is large or the laser sensor 160 cannot receive the laser, step 403 is executed; otherwise, measurement starts and step 404 is executed.

[0079] Step 403: Calibrate the surface defect detection device for the inner wall of the gun barrel.

[0080] The computer device 140 can adjust the voltage for controlling the magnetic force of the magnetic levitation device 120 according to the change of the laser on the laser sensor 160, so as to adjust the levitation height of the optical probe 130, and make the position change of the laser emitted by the first laser emitter at the front end of the optical probe 130 onto the laser sensor 160 stable within a preset change range, such as within a preset range near the center line position. At this time, it is determined that the surface defect detection device of the inner wall of the gun barrel is in a stable state, and the calibration of the surface defect detection device of the inner wall of the gun barrel is completed. After the calibration is completed, step 404 is executed. Among them, the center line position is the position where the laser emitted by the first laser emitter hits the laser sensor 160 when the centers of the optical probe 130, the gun 10 to be measured, and the laser sensor 160 are on the same straight line.

[0081] Step 404: Control the magnetic levitation device to move forward along the guide rail, driving the optical probe forward.

[0082] Step 405: When the optical probe floats through the inner tube of the gun to be measured, perform surface defect detection on the inner wall of the gun to be measured based on the laser projection method.

[0083] Step 406: During the surface defect detection process, determine whether the optical probe remains on the same horizontal straight line according to the change amount of the position of the laser received by the laser sensor.

[0084] During the surface defect detection process, the laser sensor 160 can detect in real time the position of the laser emitted by the first laser emitter of the optical probe 130 passing through the inner tube of the gun 10 to be measured, generate a changing voltage according to the change amount of this position, and send the changing voltage to the computer device 140. The computer device 140 determines whether the optical probe 130 remains on the same horizontal straight line according to this changing voltage. For example, if the changing voltage is greater than the preset voltage change threshold, it is determined that the optical probe 130 does not remain on the same horizontal straight line, and step 407 is executed; otherwise, step 408 is executed.

[0085] Step 407: Calibrate the levitation height of the optical probe.

[0086] The computer device 140 can change the target voltage injected into the magnetic levitation device 120 in real time according to the changing voltage, so that the optical probe remains on the same horizontal straight line, and the calibration of the levitation height of the optical probe is realized. After that, continue to execute step 406.

[0087] Step 408: Continue to perform surface defect detection on the inner wall of the gun to be measured to obtain a detection image.

[0088] Step 409: Determine the surface defect detection result of the inner wall of the gun to be measured according to the detection image.

[0089] The surface defect detection method for the inner wall of a gun barrel provided by an embodiment of the present invention suspends an optical probe head by using a magnetic levitation device arranged on a guide rail. During the process of the computer device controlling the magnetic levitation device to move along the guide rail, a target voltage is determined, and based on the target voltage, the magnetic force of the magnetic levitation device is controlled to control the magnetic levitation device to suspend the optical probe head and pass through the inside of the gun barrel to be measured without contact. During this process, the optical probe head can perform surface defect detection on the inner wall of the gun barrel to be measured based on the laser projection method, obtain a detection image, and the computer device acquires this detection image and analyzes it to obtain the surface defect detection result of the inner wall of the gun barrel to be measured. In this way, non-contact measurement of the surface defects of the inner wall of the gun barrel is realized, damage to the inner wall of the gun barrel is avoided, and the measurement accuracy and detection efficiency are improved. In addition, according to the change amount of the position of the laser received by the laser sensor, it is determined whether the optical probe head remains on the same horizontal straight line, and the suspension height of the optical probe head is adjusted in real time by using the change voltage brought by the change in the laser position, so that the optical probe head can be kept stable on the same horizontal straight line, further improving the detection accuracy.

[0090] The solution of the embodiment of the present invention uses the laser projection method to perform surface defect detection on the inner wall of the gun barrel to be measured, which can make the measurement accuracy reach 0.06 mm, more accurately construct the defect characteristics, and provide convenience for the production and maintenance of the gun barrel.

[0091] Another embodiment of the present invention also provides a computer device, which includes: a processor and a memory; the memory is used to store computer program code, and the computer program code includes computer instructions; when the processor executes the computer instructions, the computer device executes each step of the surface defect detection method for the inner wall of the gun barrel in the method flow shown in the above method embodiment.

[0092] Another embodiment of the present invention also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions run on a computer device, the computer device executes each step of the surface defect detection method for the inner wall of the gun barrel in the method flow shown in the above method embodiment.

[0093] Although the preferred embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications once they know the basic creative concept. Therefore, the appended claims are intended to be construed as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.

[0094] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.

Claims

1. A surface defect detection device for the inner wall of an artillery barrel, characterized in that It includes a guide rail, a magnetic levitation device, an optical probe, and a computer device; the magnetic levitation device is arranged on the guide rail, and the optical probe is lifted by the magnetic levitation device; the computer device is communicatively connected to the magnetic levitation device and the optical probe respectively; The computer device is used to control the magnetic levitation device to move along the guide rail, determine a target voltage, and control the magnetic force of the magnetic levitation device based on the target voltage, so as to control the magnetic levitation device to suspend the optical probe and pass through the inside of the gun barrel of the artillery to be measured without contact; The optical probe is used to perform surface defect detection on the inner wall of the gun barrel of the artillery to be measured based on the laser projection method to obtain a detection image; The computer device is further used to acquire the detection image and determine the surface defect detection result of the inner wall of the gun barrel of the artillery to be measured based on the detection image.

2. The surface defect detection device for the inner wall of the gun barrel according to claim 1, characterized in that, It further includes a bracket and a laser sensor communicatively connected to the computer device. The bracket is fixed at the opposite end of the magnetic levitation device on the guide rail, and the bracket is used to support the laser sensor; The laser sensor is used to detect the position of the laser emitted by the first laser emitter of the optical probe passing through the gun barrel of the artillery to be measured, generate a varying voltage according to the change amount of the position, and send the varying voltage to the computer device; The computer device is specifically used to determine the target voltage based on the varying voltage, and control the magnetic force of the magnetic levitation device based on the target voltage, so as to control the magnetic levitation device to suspend the optical probe and pass through the inside of the gun barrel of the artillery to be measured without contact along the direction parallel to the guide rail.

3. The surface defect detection device for the inner wall of the gun barrel according to claim 2, characterized in that, The computer device is specifically used to, when the varying voltage is greater than the voltage change threshold, determine the offset direction and offset distance of the optical probe based on the varying voltage, and determine the target voltage based on the offset direction and the offset distance.

4. The surface defect detection device for the inner wall of the gun barrel according to any one of claims 1 to 3, characterized in that, The magnetic levitation device includes four groups of energized copper coils.

5. The surface defect detection device for the inner wall of the gun barrel according to any one of claims 1 to 3, characterized in that The optical probe includes a second laser emitter, a reflection prism, a receiving prism, and an image acquisition device; The laser emitted by the second laser emitter forms an annular laser covering a cross section of the inner wall of the gun barrel of the artillery to be measured after being expanded by the reflection prism; The receiving prism is used to image the light on the inner wall of the gun barrel of the artillery to be measured; The image acquisition device is used to acquire the image of the receiving prism to obtain the detection image.

6. A method for detecting surface defects on the inner wall of a gun barrel, characterized in that, A computer device applied to the surface defect detection device for the inner wall of the gun barrel of the artillery according to any one of claims 1 to 5; the surface defect detection method for the inner wall of the gun barrel of the artillery includes: Controlling the magnetic levitation device to move along the guide rail; During the process of the magnetic levitation device moving along the guide rail, determining a target voltage, and controlling the magnetic force of the magnetic levitation device based on the target voltage, so as to control the magnetic levitation device to suspend the optical probe and pass through the inside of the gun barrel of the artillery to be measured without contact; Acquiring the detection image obtained by the optical probe performing surface defect detection on the inner wall of the gun barrel of the artillery to be measured based on the laser projection method; Determining the surface defect detection result of the inner wall of the gun barrel of the artillery to be measured based on the detection image.

7. The surface defect detection method for the inner wall of the gun barrel according to claim 6, characterized in that During the process of the maglev device moving along the guide rail, determine a target voltage, and control the magnetic force of the maglev device based on the target voltage, so as to control the maglev device to suspend the optical probe and pass through the interior of the gun barrel of the artillery piece to be measured without contact, including: During the process of the maglev device moving along the guide rail, obtain the changing voltage generated by the laser sensor; the laser sensor is used to detect the position of the laser emitted by the first laser emitter of the optical probe passing through the gun barrel of the artillery piece to be measured, and generate the changing voltage according to the change amount of the position; Determine the target voltage based on the changing voltage, and control the magnetic force of the maglev device based on the target voltage, so as to control the maglev device to suspend the optical probe and pass through the interior of the gun barrel of the artillery piece to be measured without contact along a direction parallel to the guide rail.

8. The surface defect detection method for the inner wall of the gun barrel according to claim 7, characterized in that, The determining the target voltage based on the changing voltage includes: When the changing voltage is greater than the voltage change threshold, determine the offset direction and offset distance of the optical probe based on the changing voltage; Determine the target voltage based on the offset direction and the offset distance.

9. A computer device, characterized in that, The computer device includes a memory and a processor. When the computer program stored in the memory is executed by the processor, the processor executes the method for detecting surface defects on the inner wall of the gun barrel of the artillery piece according to any one of claims 6 to 8.

10. A computer-readable storage medium, characterized in that, Stored with a computer program, when the computer program is executed by the processor, the processor executes the method for detecting surface defects on the inner wall of the gun barrel of the artillery piece according to any one of claims 6 to 8.