Automobile parts testing method and device
By obtaining and analyzing the surface parameters, positions and inspection data of automobile parts and conducting comprehensive analysis, the problem of low accuracy of traditional manual inspection is solved, more accurate inspection results are achieved, and the accuracy and reliability of automobile parts inspection are improved. sex.
Patent Information
- Application Number
- CN202410883759.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-07-03
AI Technical Summary
Traditional auto parts inspection methods rely on manual inspection and are easily affected by subjective factors, resulting in low detection accuracy.
By obtaining surface parameter data, position data and detection data of automobile parts, surface feature analysis and spatial position analysis are performed, and these data are combined for comprehensive analysis to improve detection accuracy.
It achieves more accurate and reliable auto parts inspection results, improves the accuracy of inspection, can detect problem parts in time, and ensures that parts meet design and manufacturing requirements.
Smart Images

Figure CN118408607B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automobile parts detection, and in particular to an automobile parts detection method and device. Background Art
[0002] Auto parts are the various components that make up the entire vehicle, including the engine, transmission, chassis system, body system, electrical system, etc. Each component has a specific function and role, and they work together to achieve the normal operation of the vehicle.
[0003] Automobile parts testing methods and devices are technologies and equipment used to test the quality, integrity and performance of automobile parts. They ensure that the parts meet the design and manufacturing requirements by conducting physical, chemical, mechanical and other tests and analyses on automobile parts, while improving the safety and reliability of the vehicle.
[0004] Traditional automotive parts inspection methods usually rely on manual inspection, which may be affected by subjective factors and prone to omissions and misjudgments, resulting in inaccurate inspection results and low inspection accuracy of automotive parts. Summary of the invention
[0005] The embodiments of the present application provide a method and device for detecting automobile parts, which can solve the problem of low detection accuracy of automobile parts.
[0006] In a first aspect, an embodiment of the present application provides a method for detecting automobile parts, comprising:
[0007] Acquire surface parameter data of the automobile part to be inspected; wherein the surface parameter data includes surface curvature information of the automobile part to be inspected;
[0008] Acquire the position data of the automobile parts to be detected; wherein the position data includes the coordinate system information of the automobile parts to be detected in the space where they are located;
[0009] Acquire detection data of the automobile parts to be detected; wherein the detection data includes data obtained after each surface of the automobile parts to be detected is detected by the detection module;
[0010] Performing surface feature analysis processing according to the surface parameter data and the detection data to obtain first processed data;
[0011] Performing spatial position analysis processing on the position data and the detection data to obtain second processed data;
[0012] Detection result data is obtained according to the first processed data and the second processed data.
[0013] The above technical solutions in the embodiments of the present application have at least the following technical effects:
[0014] The automobile parts detection method provided in the present application first obtains surface parameter data of the automobile parts to be detected including the surface curvature information of the automobile parts to be detected, obtains position data of the automobile parts to be detected including the coordinate system information of the automobile parts to be detected in the space, and obtains detection data including the data obtained after each surface of the automobile parts to be detected by the detection module; then performs surface feature analysis and processing on the surface parameter data and the detection data to obtain first processing data, so that subsequent processes can use the first processing data to perform quality assessment on the automobile parts to be detected. By performing surface feature analysis and processing on the surface parameter data and the detection data, different surface feature data, such as degree of wear, geometric shape, etc., can be obtained. Based on these feature data, the quality of automobile parts can be evaluated so as to promptly discover problematic parts during the production process. Performing spatial position analysis on the position data and the detection data to obtain the second processed data can provide accurate position information of the detected automobile parts; finally, the detection result data is obtained based on the first processed data and the second processed data. By combining the first processed data and the second processed data for comprehensive analysis, different surface feature data, such as the degree of wear and cracks, can be obtained. The location where the degree of wear and cracks appear can also be obtained, so as to better understand the condition of the parts, and then obtain more accurate and reliable detection results, so as to better judge whether the parts meet the requirements or have problems, which is conducive to improving the accuracy of automobile parts detection.
[0015] In a possible implementation of the first aspect, the acquiring surface parameter data of the automobile part to be inspected includes:
[0016] Acquire a regional surface image of the automobile parts to be inspected;
[0017] Performing image segmentation on the regional surface image to obtain n target regional surfaces in the regional surface;
[0018] Establishing a tangent surface tangent to each of the n target area surfaces;
[0019] The surface parameter data is obtained according to the tangent surface.
[0020] In a possible implementation of the first aspect, obtaining position data of the automobile component to be inspected includes:
[0021] According to the spatial position relationship between the detected automobile parts and the detection module, spatial coordinate system data is obtained; wherein the detection module is set as the origin, the horizontal direction where the detection module is located is the x-axis, the direction perpendicular to the x-axis is the y-axis, and the gravity direction is the z-axis;
[0022] According to the spatial coordinate system data corresponding to each of the n target area surfaces, n position data are obtained.
[0023] In a possible implementation of the first aspect, the acquiring the inspection data of the automobile parts to be inspected includes:
[0024] Acquire sound wave direction data; wherein the sound wave direction data includes the sound wave direction information emitted by the detection module to the n target area surfaces of the automotive parts to be detected;
[0025] The detection data is obtained according to the sound wave direction data; wherein the detection data includes the sound wave detection information received by the detection module from the n target area surfaces of the automobile parts to be detected.
[0026] In a possible implementation manner of the first aspect, performing surface feature analysis processing on the surface parameter data and the detection data to obtain first processed data includes:
[0027] According to the sound wave direction data, first relative tilt data of the emission direction of the sound wave corresponding to each target area surface relative to the tangent surface is acquired;
[0028] Performing mirror processing on the first relative tilt data to obtain second relative slope data; wherein the mirror processing is to exchange the corresponding positions of the spatial coordinate system data of the first relative tilt data in each target area surface with a mirror axis perpendicular to the tangent surface;
[0029] Acquire, according to the detection data, third relative slope data of the reflection direction of the sound wave corresponding to each target area surface relative to the tangent surface;
[0030] The second relative slope data and the third relative slope data are overlaid to obtain first processed data.
[0031] In a possible implementation manner of the first aspect, performing spatial position analysis processing on the position data and the detection data to obtain second processed data includes:
[0032] Acquire first time data according to the position data corresponding to each target area surface; wherein the first time data includes information reflecting the time taken for the tangent surface to receive the sound wave emitted by the detection module;
[0033] Acquire second time data according to the position data corresponding to each target area surface; wherein the second time data includes time information reflecting the time taken by the detection module to receive the sound wave reflected from the tangent surface;
[0034] The first time data and the second time data are compared in time series on the time axis to obtain the second processed data.
[0035] In a possible implementation manner of the first aspect, obtaining detection result data according to the first processed data and the second processed data includes:
[0036] According to the first processed data, a first characteristic target area among the n target area surfaces is obtained; wherein the first characteristic target area includes an area among the n target area surfaces where an image of the second relative slope data and an image of the third relative slope data do not overlap and do not completely correspond;
[0037] According to the second processed data, a second characteristic target area in the n target area surfaces is obtained; wherein the second characteristic target area includes an area in the n target area surfaces corresponding to the mismatch between the first time data and the second time data on the time axis;
[0038] The detection result data is obtained by performing feature extraction and analysis processing on the first feature target area and the second feature target area.
[0039] In a second aspect, an embodiment of the present application provides an automobile parts detection device, comprising:
[0040] A first acquisition module is used to acquire surface parameter data of the automobile part to be detected; wherein the surface parameter data includes surface curvature information reflecting the automobile part to be detected;
[0041] A second acquisition module is used to acquire position data of the automobile parts to be detected; wherein the position data includes coordinate system information reflecting the space where the automobile parts to be detected are located;
[0042] A detection module, used to obtain detection data of the automobile parts to be detected; wherein the detection data includes data reflecting each surface of the automobile parts to be detected obtained after being detected by the detection module;
[0043] A first processing module, used for analyzing and processing the surface parameter data and the detection data to obtain first processed data;
[0044] A second processing module, used for analyzing and processing the position data and the detection data to obtain second processed data;
[0045] A generating module is used to obtain detection result data according to the first processed data and the second processed data.
[0046] In a third aspect, an embodiment of the present application provides an automobile parts testing device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the methods described in the first aspect when executing the computer program.
[0047] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of the first aspects above is implemented.
[0048] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes any one of the methods described in the first aspect above.
[0049] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0051] Figure 1 It is a flow chart of an automobile parts detection method provided by an embodiment of the present application;
[0052] Figure 2 It is a schematic diagram of the implementation process of step S100 in the automobile parts detection method provided in one embodiment of the present application;
[0053] Figure 3 It is a schematic diagram of the implementation process of step S200 in the automobile parts detection method provided in one embodiment of the present application;
[0054] Figure 4 It is a schematic diagram of the implementation process of step S300 in the automobile parts detection method provided in one embodiment of the present application;
[0055] Figure 5It is a schematic diagram of the implementation process of step S400 in the automobile parts detection method provided in one embodiment of the present application;
[0056] Figure 6 It is a schematic diagram of the implementation process of step S500 in the automobile parts detection method provided in one embodiment of the present application;
[0057] Figure 7 It is a schematic diagram of the implementation process of step S600 in the automobile parts detection method provided in one embodiment of the present application;
[0058] Figure 8 is a structural schematic diagram of an automobile parts detection device provided in an embodiment of the present application;
[0059] Fig. 9 It is a structural schematic diagram of the automobile parts testing equipment provided in the embodiment of the present application. DETAILED DESCRIPTION
[0060] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0061] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0062] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0063] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0064] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0065] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0066] In the relevant technology, auto parts are the various components that make up the entire vehicle, including the engine, transmission, chassis system, body system, electrical system, etc. Each component has a specific function and role, and they work together to achieve the normal operation of the vehicle.
[0067] Automobile parts testing methods and devices are technologies and equipment used to test the quality, integrity and performance of automobile parts. They ensure that the parts meet the design and manufacturing requirements by conducting physical, chemical, mechanical and other tests and analyses on automobile parts, while improving the safety and reliability of the vehicle.
[0068] Traditional automotive parts inspection methods usually rely on manual inspection, which may be affected by subjective factors and prone to omissions and misjudgments, resulting in inaccurate inspection results and low inspection accuracy of automotive parts.
[0069] To solve the above problems, the embodiment of the present application provides an automobile parts detection method and device. In the method, firstly, surface parameter data including surface curvature information of the automobile parts to be detected is obtained, position data including coordinate system information of the automobile parts to be detected in the space to be detected is obtained, and detection data including data obtained after each surface of the automobile parts to be detected is obtained after detection by the detection module; then, surface feature analysis and processing is performed on the surface parameter data and the detection data to obtain first processing data, so that the first processing data can be used for subsequent processes to evaluate the quality of the automobile parts to be detected. By performing surface feature analysis and processing on the surface parameter data and the detection data, different surface feature data, such as wear degree, geometric shape, etc., can be obtained. Based on these feature data, the quality of automobile parts can be evaluated so as to find problematic parts in time during the production process. Performing spatial position analysis on the position data and the detection data to obtain the second processed data can provide accurate position information of the detected automobile parts; finally, the detection result data is obtained based on the first processed data and the second processed data. By combining the first processed data and the second processed data for comprehensive analysis, different surface feature data, such as the degree of wear and cracks, can be obtained. The location where the degree of wear and cracks appear can also be obtained, so as to better understand the condition of the parts, and then obtain more accurate and reliable detection results, so as to better judge whether the parts meet the requirements or have problems, which is conducive to improving the accuracy of automobile parts detection.
[0070] The automobile parts detection method provided in the embodiment of the present application can be applied to a terminal device. In this case, the terminal device is the executor of the automobile parts detection method provided in the embodiment of the present application. The embodiment of the present application does not impose any restrictions on the specific type of the terminal device.
[0071] For example, the terminal device can be automatic detection equipment, automatic processing equipment for automobile parts, augmented reality (AR) / virtual reality (VR) equipment, a laptop computer, an ultra-mobile personal computer (UMPC), a computer, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a computer or other mobile terminal.
[0072] In order to better understand the automobile parts detection method provided in the embodiment of the present application, the specific implementation process of the automobile parts detection method provided in the embodiment of the present application is exemplarily introduced below.
[0073] Figure 1A schematic flow chart of an automobile parts detection method provided in an embodiment of the present application is shown, and the automobile parts detection method comprises:
[0074] S100, obtaining surface parameter data of the automobile part to be inspected, wherein the surface parameter data includes surface curvature information of the automobile part to be inspected.
[0075] It can be understood that, for example, a 3D scanner can be used to scan automobile parts to obtain information such as their surface shape and curvature, or a coordinate measuring machine can be used to measure automobile parts to obtain coordinate data of each point and obtain surface parameter data through calculation, or image data of automobile parts can be obtained through devices such as cameras or scanners, and image measurement software can be used to extract surface parameter data.
[0076] With this setting, quality control and quality assessment can be performed by obtaining surface parameter information of automotive parts. Surface curvature is one of the important indicators for measuring the shape of parts, which can help determine whether the parts meet the design requirements and manufacturing standards and ensure product quality. Surface curvature information can be used to optimize the manufacturing process and process flow. By analyzing the surface curvature, problems and improvement points in the manufacturing process can be found, production efficiency and process reliability can be improved, defective product rate and production costs can be reduced, so as to improve the detection accuracy of automotive parts. Surface curvature information can be used for fault diagnosis and problem troubleshooting. If an automotive part has an abnormal surface curvature, it may mean that there are defects or material problems in the manufacturing process. Timely acquisition and analysis of surface curvature data can help quickly locate problems to improve the detection accuracy of automotive parts and product reliability and safety.
[0077] In one possible implementation, see Figure 2 , S100, obtaining surface parameter data of the automobile parts to be inspected, including
[0078] S110, obtaining a regional surface image of the automobile part to be inspected.
[0079] It can be understood that the detection module is first required to locate the automotive parts to be detected. After locating the automotive parts to be detected, it is necessary to divide the area according to the characteristics and shape of the automotive parts to be detected. This can be achieved by using image segmentation algorithms, such as threshold-based segmentation, edge-based segmentation, region-based segmentation, etc. After regional division, it is necessary to extract the image of the area corresponding to the desired detection part from the original image. This can be achieved through a cropping operation, that is, cropping and intercepting the image according to the position and size of the area to obtain a regional image of the part to be detected. After obtaining the regional image of the part to be detected, it is saved as a regional surface image of the part to be detected for subsequent analysis and processing.
[0080] With such a setting, obtaining the surface image of the area of the automobile parts to be inspected can reduce the interference of irrelevant information and retain only the useful information of the area to be inspected. This helps to improve the accuracy and precision of detection, reduce problems such as false detection and missed detection, and thus improve the detection accuracy of automobile parts. By obtaining the surface image of the area of the automobile parts to be inspected, the problem can be converted into defect detection in the area, thereby simplifying the entire processing flow. This helps to improve the efficiency and effect of automobile parts inspection. When the area to be inspected is small, obtaining the surface image of the area of the automobile parts to be inspected can reduce the amount of data to be processed, thereby reducing the computing cost.
[0081] After obtaining the surface image of the automotive parts area to be inspected, it can be processed and analyzed according to different inspection algorithms and methods. For example, deep learning algorithms, traditional machine learning algorithms, etc. can be used for defect detection to improve the accuracy and stability of the inspection results, thereby improving the inspection accuracy of automotive parts.
[0082] S120, performing image segmentation on the region surface image to obtain n target region surfaces in the region surface.
[0083] It can be understood that a suitable threshold can be determined to divide the regional surface image into a plurality of non-overlapping regions, and the pixels in each regional surface have similar texture or shape features, etc.
[0084] Such a setting, by segmenting the regional surface image, can help further target detection, tracking and classification tasks. After the regional surface image is segmented into multiple target regional surfaces, each target regional surface can be processed independently, reducing unnecessary calculations and processing time, improving the efficiency of regional surface image processing, and thus facilitating subsequent automotive parts detection. By segmenting the regional surface image, complex regional surfaces can be decomposed into simple target regional surfaces, which helps to analyze and understand the image content more deeply. This helps to extract the features of the target regional surface, calculate statistical information, etc., and provide a more accurate basis for subsequent regional surface image analysis and processing.
[0085] S130: establishing a tangent surface tangent to each of the n target area surfaces.
[0086] It can be understood that for each target area surface, geometric calculation can be performed through its boundary or target area surface contour information to find the plane equation tangent to it, and the area where the plane equation is located is the tangent surface.
[0087] In this way, establishing a tangent surface tangent to the target area surface can provide local shape information of the target area surface, help shape analysis and characterization, which helps to identify the convexity and concavity, curvature change and other characteristics of the target area surface, and provide an important basis for subsequent automobile parts detection shape analysis, classification and identification. Through the tangent surface tangent to the target area surface, the normal direction of each point on the target area surface can be calculated. By establishing a tangent surface tangent to the target area surface, object tracking and segmentation tasks can be assisted. The tangent surface can be used to extract the foreground and background information of the target area surface, help to achieve more accurate object segmentation and extraction, and is beneficial to the subsequent automobile parts detection process.
[0088] S140, obtaining surface parameter data according to the tangent surface.
[0089] It can be understood that for each point on the target area surface, the tangent surface is used for interpolation to obtain the surface parameter data at the point. For example, the normal direction and curvature information on the tangent surface can be used in combination with the coordinate position of the point on the target area surface to perform interpolation calculation to obtain the surface parameter data at the point.
[0090] With such a setting, the surface parameter data extracted from the tangent surface can be used for shape analysis and modeling, which helps to understand the geometric shape, curvature change and other characteristics of the target area surface, and then model, classify or identify the target, which is beneficial to the subsequent automotive parts inspection process. Using the surface parameter data extracted from the tangent surface, realistic visual effects can be added to the target area surface. For example, texture mapping, lighting calculation and other operations are performed based on the surface parameter data, so that the target area surface has more realism and details in rendering and image synthesis. The surface parameter data obtained from the tangent surface can estimate the normal direction of each point on the target area surface, which helps to extract the geometric information and precise positioning of the target area surface.
[0091] S200, obtaining position data of the automobile parts to be detected, wherein the position data includes coordinate system information of the automobile parts to be detected in the space where they are located.
[0092] It can be understood that, for example, computer vision technology can be used to capture images of auto parts using devices such as cameras or scanners. Through image processing and analysis, the characteristic points or contours of auto parts can be extracted, and then their position data can be calculated. Auto parts can also be scanned using laser scanners to generate point cloud data. Through the processing and analysis of point cloud data, the position information of auto parts can be obtained. Similar to laser scanning, a 3D scanner is used to scan auto parts to obtain their surface shape and geometric information. By processing and analyzing the scanned data, the coordinate data of auto parts in space can be obtained.
[0093] In this way, by obtaining the position data of automobile parts, it can be ensured that the measurement and positioning of the parts position are accurate and consistent, which helps to eliminate position errors and uncertainties and improve the reliability of measurement results. It is beneficial for subsequent processes to compare the differences between the position data of the parts to be detected and the design specifications or standard positions, and to determine whether the parts meet the requirements, so as to improve the detection accuracy of automobile parts. At the same time, in subsequent processes, more sophisticated production planning and scheduling can be carried out based on accurate position information to avoid conflicts in the position of parts, so as to improve resource utilization and help improve the detection accuracy of automobile parts. Position data can be used in fault diagnosis and maintenance processes. If the position of a component deviates from the expected range, it may mean that the component is not installed correctly or there are other problems. Based on the position data, the problem can be quickly located and corresponding repairs or adjustments can be made to improve the efficiency and accuracy of troubleshooting and improve the detection accuracy of automobile parts.
[0094] In one possible implementation, see Figure 3 , S200, obtaining the position data of the automobile parts to be inspected, including:
[0095] S210, obtaining spatial coordinate system data according to the spatial position relationship between the detected automobile parts and the detection module, wherein the detection module is set as the origin, the horizontal direction where the detection module is located is the x-axis, the direction perpendicular to the x-axis is the y-axis, and the gravity direction is the z-axis.
[0096] It is understandable that measuring tools (such as laser rangefinders or 3D measuring instruments) can be used to measure the spatial position relationship of automotive parts relative to the detection module. Based on the relative position information obtained by the measurement and the direction of the coordinate system, these relative position data can be converted into spatial coordinate system data. For example, the position coordinates of the parts on the x, y, and z axes can be determined according to the direction of the coordinate system to obtain specific data in the spatial coordinate system. After obtaining the spatial coordinate system data, the data needs to be verified and adjusted to ensure the accuracy and reliability of the data.
[0097] By setting up in this way, the consistency and standardization of the position data of automotive parts can be achieved by using the same coordinate system. This allows different measurement results to be compared and analyzed in the same coordinate system, reducing the complexity of data processing and facilitating the subsequent inspection process of the parts to be inspected. After the coordinate system is determined, vector operations and geometric calculations can be used to simplify the calculation of position and direction. For example, the relative position and angle information between objects can be obtained through operations such as vector cross multiplication and dot product, which makes it more convenient for the subsequent inspection process of the parts to be inspected.
[0098] S220, obtaining n position data according to the spatial coordinate system data corresponding to each of the n target area surfaces.
[0099] It can be understood that the spatial coordinate system data of each target area surface is determined, including the coordinate system type (such as Cartesian coordinate system, spherical coordinate system, etc.) and coordinate values (such as x, y, z coordinates). According to the spatial coordinate system data corresponding to each target area surface, coordinate transformation or conversion is performed to convert it into a unified coordinate system type for unified position calculation. The spatial coordinate system data of each target area surface is processed to calculate the position data corresponding to each target area surface, which can be the position data of the center of each target area surface. For example, multiple inflection points of the edge of the target area surface (for example, if the target area surface is a quadrilateral, the points at the four corners of the quadrilateral can be selected) can be selected as multiple key points. By calculating the center point on the target area surface with the same distance to the selected multiple key points, the center point is used as the center point of the target area surface, and its position data is used as the position data of the target area surface.
[0100] In this way, by obtaining the spatial coordinate system data of the target area surface and calculating the position data, it is possible to accurately locate these target area surfaces in space, which helps to achieve precise positioning, thereby making it more convenient for the subsequent inspection process of the parts to be inspected. The obtained position data can be used for further data analysis, such as analyzing the spatial distribution, positional relationship, motion trajectory, etc. of the target area surface, thereby providing support for the subsequent inspection process of the inspection parts.
[0101] S300, acquiring detection data of the automobile parts to be detected, wherein the detection data includes data obtained after each surface of the automobile parts to be detected is detected by the detection module.
[0102] It can be understood that a suitable detection method can be selected according to the characteristics of the parts to be tested and the detection requirements. For example, it can include visual detection, ultrasonic detection, X-ray detection, magnetic particle detection, etc. Prepare corresponding detection equipment and tools according to the selected detection method. For example, if visual detection is used, cameras, light sources and other equipment are required. If ultrasonic detection is used, ultrasonic sensors, probes and other equipment are required. The automotive parts to be tested are placed on the detection equipment. According to the selected detection method, different types of data can be collected, such as image data, sound wave data, X-ray data, etc. According to the purpose of the detection, the data can be filtered, denoised, registered, etc. to extract key feature information to obtain the measurement data of various parts of the parts.
[0103] With this setting, the various indicators and surface defects of parts can be accurately recorded through the test data, which helps to find problems in the manufacturing process and improve the accuracy of auto parts inspection. The test data can be used to trace the production history of each part, including production time, process parameters, test results and other information, which helps to track and analyze possible quality problems and further improve the accuracy of auto parts inspection. By analyzing the test data, various defects and abnormalities on the surface of parts can be found, which helps to quickly locate the fault point and thus improve the accuracy of auto parts inspection.
[0104] In one possible implementation, see Figure 4 , S300, obtaining the inspection data of the automobile parts to be inspected, including:
[0105] S310, obtaining sound wave direction data, wherein the sound wave direction data includes the sound wave direction information emitted by the detection module to n target area surfaces of the automobile parts to be detected.
[0106] It can be understood that first, the position of the detection module needs to be determined and used as a reference point for the direction of the sound wave emission. The location information of the detection module can be determined by positioning technology (such as GPS, inertial navigation, etc.) or other methods. The sound wave sensor is installed on the detection module, and the emission direction is adjusted so that it faces the n target area surfaces of the automotive parts to be detected. Then, the sound wave signal is emitted by the sound wave sensor. When the sound wave signal is reflected back by the target area surface and received by the sound wave sensor, the emission direction and receiving direction of the sound wave are recorded. Angle measuring instruments or other sensors can be used to measure these angle data, and they are recorded for subsequent detection, analysis and processing of automotive parts.
[0107] In this way, the sound wave direction data can help determine the reflective properties of different areas on the surface of automotive parts, which helps detect possible defects, cracks or other surface defects. The propagation and reflection of sound waves can be used to conduct comprehensive non-contact inspection of parts. Sound wave direction data can help determine the specific area on the automotive part where the problem occurs, which is beneficial for subsequent inspection of automotive parts. For example, specific parts that need to be repaired or replaced can be accurately determined. By monitoring the directional information of sound waves, potential problems can be discovered earlier and possible failures can be predicted, which helps to take preventive measures in advance and reduce losses caused by failures.
[0108] S320, obtaining detection data according to the sound wave direction data, wherein the detection data includes detection information of sound waves reflected by the detection module from n target area surfaces of the automobile parts to be detected.
[0109] It can be understood that before performing the acoustic wave detection, some detection parameters need to be set, such as the sensitivity of the acoustic wave sensor, the sampling frequency, and the detection time interval. These parameters will affect the detection results. According to the emission direction recorded in the acoustic wave direction data, the acoustic wave signal is emitted from the detection module. The sound wave will be reflected back by the target area surface of the automotive parts to be detected. The reflected acoustic wave signal is received by the acoustic wave sensor, and the sensor converts the received acoustic wave signal into an electrical signal and transmits it to the processing unit. The received acoustic wave signal is processed and analyzed to extract useful detection information. This may involve filtering, noise elimination, time domain or frequency domain analysis and other technologies. According to the specific application requirements, various signal processing methods can be used to extract the acoustic wave characteristics of the target area surface. By analyzing the acoustic wave echo data of each target area surface, relevant information of the automotive parts to be detected, such as defects, density, material, etc., can be obtained. According to the information obtained by the analysis, the corresponding detection data is generated, including information such as the surface state of the automotive parts, the problem area, and the acoustic wave echo intensity.
[0110] With this setting, by analyzing the reflected sound wave detection information, defects, cracks, deformations and other problems on the surface of automobile parts can be identified, which is beneficial to the subsequent detection of automobile parts. The detection data obtained through the sound wave direction data can provide multi-dimensional information, such as reflection intensity, echo time delay, spectrum characteristics, etc. This information can provide more comprehensive and accurate sound wave characteristics of the target area surface, which is conducive to more accurate detection and analysis of automobile parts, so as to improve the detection rate of automobile parts.
[0111] S400, performing surface feature analysis processing according to the surface parameter data and the detection data to obtain first processed data.
[0112] It can be understood that information related to the required features can be extracted based on the surface parameter data and the detection data. For example, indicators such as surface roughness, average height, number of defects, etc. can be calculated, or features such as shape and texture can be extracted using image processing technology. The extracted features are selected to screen out features that are meaningful for surface feature analysis. For example, statistical methods, machine learning algorithms, etc. can be used for feature selection to exclude redundant or irrelevant features. The selected features are analyzed to analyze the relationship between them and the surface features. For example, visualization tools, statistical methods, etc. can be used to understand the interaction and influence between features. The surface parameter data and the detection data are integrated with the feature data obtained by the analysis, and the relevant data can be merged or a data association model can be established for subsequent processing and analysis. According to the results of the feature analysis, the selected features and the original data are combined and processed to generate the first processed data. These data can be new indicators, signs or descriptions after processing and processing, which are used for further statistical analysis, model building and other applications.
[0113] With this arrangement, by performing surface feature analysis on the surface parameter data and the inspection data, the quality of parts can be more accurately evaluated, surface defects and bad features can be found and located, and the detection accuracy of automotive parts can be improved. The first processed data can reveal potential problems in the production process and provide a basis for the inspection of automotive parts. By analyzing the processed data, it is helpful to improve the detection accuracy of automotive parts. By monitoring and analyzing the surface feature data, preventive maintenance measures can be implemented, factors that may cause quality problems of automotive parts can be discovered and dealt with in a timely manner, reducing production line downtime and improving equipment utilization.
[0114] In one possible implementation, see Figure 5 S400, performing surface feature analysis and processing according to the surface parameter data and the detection data to obtain first processed data, including:
[0115] S410, acquiring first relative tilt data of the emission direction of the sound wave corresponding to each target area surface relative to the tangent surface according to the sound wave direction data.
[0116] It can be understood that, first, it is necessary to obtain the sound wave direction data of each target area surface. These data can be obtained by an acoustic wave sensor or other positioning device, and the direction in which the detection module emits sound waves to each target area surface is recorded. For each target area surface, it is necessary to determine the position and direction of its tangent surface. According to the sound wave direction data and the position of the tangent surface, the first relative inclination angle between the sound wave emission direction corresponding to each target area surface and the tangent surface can be calculated. For example, the direction vector of the sound wave is obtained according to the sound wave direction data, and the direction vector of the sound wave is V=(Vx, Vy, Vz). Then, the normal vector N=(A, B, C) of the tangent surface is calculated. Then, the angle between the sound wave direction vector and the normal vector of the tangent surface is calculated, and the following formula can be used for calculation: cosα=(V×N) / (|V|×|N|), where |V| and |N| represent the modulus of vectors V and N respectively, and α can be the first relative inclination data.
[0117] With such a configuration, by understanding the first relative tilt angle between the emission direction of the sound wave and the tangent plane, the direction of the position of the automobile parts can be determined more accurately. By analyzing the first relative tilt angle between the emission direction of the sound wave and the tangent plane, the shape, boundary and structure of the automobile parts can be inferred, thereby achieving the task of automobile parts detection. By analyzing the tilt data of the emission direction of the sound wave relative to the tangent plane, the problem area on the surface of the automobile parts can be located more accurately, which helps to identify more hidden defects or damage. The first relative tilt data can help predict the emission of the sound wave on the target area surface, including information such as angle and intensity, which helps to better improve the accuracy of automobile parts detection. The first relative tilt data can provide the shape and characteristics of a specific area on the surface of the automobile parts, which helps to identify possible defects or damage, thereby improving the accuracy of automobile parts detection.
[0118] S420, performing mirror processing on the first relative tilt data to obtain second relative slope data, wherein the mirror processing is to exchange the corresponding positions of the spatial coordinate system data of the first relative tilt data in each target area surface with a mirror axis perpendicular to the tangent surface.
[0119] It can be understood that the first relative tilt data corresponding to each target area surface is obtained, and these data include the position and relative tilt angle in the spatial coordinate system. The mirror axis perpendicular to the tangent plane is used as the mirror plane, and the mirror point of each position point on the mirror plane is calculated. Specifically, the mirror plane can be regarded as a mirror axis, whose normal vector is perpendicular to the tangent plane, and then the mirror point coordinates of each position point in the coordinate system are calculated. The second relative tilt angle is calculated based on the mirror point coordinates and the first relative tilt angle; for example, a point A (x1, y1, z1) in the first relative tilt data and a point B (x2, y2, z2) in the mirror axis, the coordinates of point A after mirroring about the mirror axis are A' (x1', y1', z1'), and the coordinates after mirroring can be obtained based on the relationship between point A and point B. Generally speaking, x1'=2×x2-x1, y1'=2×y2-y1, z1'=2×z2-z1; since the mirroring process only changes the position coordinates but does not change the relative tilt angle, the calculation formula of the first relative tilt angle can still be used to calculate the second relative tilt angle.
[0120] With this setting, more slope data at different angles and directions can be obtained through mirror processing, which helps to provide a more comprehensive data space and richer information, and helps to comprehensively analyze the shape and characteristics of the target area of automotive parts. The second relative slope data can further assist in the subsequent inspection process of automotive parts, and can more accurately identify possible defects, deformations or other problems, thereby helping to improve the accuracy of automotive parts inspection. The second relative slope data can be used to verify the accuracy of the original data, help eliminate matching errors caused by errors or local problems, and improve the reliability and accuracy of the data.
[0121] S430: Acquire third relative slope data of the reflection direction of the sound wave corresponding to each target area surface relative to the tangent surface according to the detection data.
[0122] It can be understood that, first, it is necessary to obtain the reflection direction data of the sound waves of each target area surface. These data can be obtained by an acoustic wave sensor or other positioning equipment to record the propagation direction of the sound waves reflected by each target area surface. For each target area surface, it is necessary to determine the position and direction of its tangent surface. According to the acoustic wave direction data and the position of the tangent surface, the third relative inclination angle between the acoustic wave reflection direction corresponding to each target area surface and the tangent surface can be calculated. For example, the reflection direction vector of the sound wave is obtained according to the acoustic wave reflection direction data, and the reflection direction vector of the sound wave is M=(Mx, My, Mz). Then, the normal vector N=(A, B, C) of the tangent surface is calculated. Then, the angle between the acoustic wave direction vector and the tangent surface normal vector is calculated, and the following formula can be used for calculation: cosα=(M×N)÷(|M|×|N|), where |M| and |N| represent the modulus of vectors M and N respectively, and α can be the first relative inclination data.
[0123] With this arrangement, by obtaining the third relative slope data of the sound wave reflection direction of each target area surface relative to the tangent surface, the angle information of the sound wave reflection can be determined more accurately. This can help us locate the position of automotive parts in space more accurately, and help to achieve subsequent automotive parts inspection tasks. By analyzing the third relative slope data of the sound wave reflection direction of each target area surface relative to the tangent surface, it can help to more accurately identify problems on the surface of automotive parts, such as defects, deformations, etc. The third relative tilt data can help predict the reflection of sound waves on the target area surface, including information such as angle and intensity, which helps to better improve the accuracy of automotive parts inspection. The third relative tilt data can provide the shape and characteristics of specific areas on the surface of automotive parts, which helps to identify possible defects or damage, thereby improving the accuracy of automotive parts inspection.
[0124] S440, overlaying the second relative slope data with the third relative slope data to obtain first processed data.
[0125] It can be understood that, first, ensure that the second relative slope data and the third relative slope data have the same spatial coordinate system and resolution so that they can be correctly aligned, and interpolation, scaling or translation and other processing can be performed as needed to ensure that the two are completely aligned in the same area. The second relative slope data and the third relative slope data are superimposed and overlaid to create a new composite image. According to different needs, the superimposed composite image can be presented in a visual way, such as using a heat map, contour map or other image processing technology for visual presentation. Finally, the superimposed composite image is used for data analysis, and the first processed data is obtained by observing and comparing the superposition effect of the second slope data and the third slope data.
[0126] With this arrangement, the second relative slope data and the third relative slope data can be comprehensively observed and compared in one view through the first processed data, which helps to better understand the surface characteristics of the target area of the automotive parts, which is beneficial to the subsequent automotive parts inspection process. By superimposing the two sets of data, the geometric characteristics and other important features of the target area of the automotive parts can be more clearly discovered and analyzed, so that problem areas such as defects, deformations, or other potential problems can be more accurately identified, thereby improving the accuracy of automotive parts inspection. Image superposition of the second relative slope data and the third relative slope data helps to integrate multiple data sources together to form a more comprehensive data set, providing more data information for analysis.
[0127] Optionally, the automobile parts detection method further includes:
[0128] S450, when the reflected sound wave detection information corresponding to a certain target area surface cannot be obtained from the detection data, the area in the detection data where the reflected sound wave detection information corresponding to the certain target area surface cannot be obtained is recorded as the first target area surface, and the direction of the sound wave emitted by the detection module to the first target area surface is adjusted to change the first relative tilt data corresponding to the first target area surface.
[0129] It can be understood that the target area surface where the reflected sound wave cannot be obtained can be marked or recorded in the detection data, including the position data, surface parameter data and other relevant information of the target area surface, and the emission direction of the sound wave of the detection module relative to the tangent surface corresponding to the first target area surface can be adjusted.
[0130] In this way, recording the area where the reflected sound wave cannot be obtained as the first target area helps to clarify the area that needs to be focused on and processed, and provides a clear target for subsequent data processing and analysis. By adjusting the first relative tilt data of the emission direction of the sound wave corresponding to the first target area surface relative to the tangent surface, the propagation path of the sound wave can be optimized to avoid the error caused by the propagation path of the wrong sound wave affecting the detection result (for example, changing the incident angle of the sound wave with the target area surface to avoid the sound wave being affected by reflection or refraction from certain protruding parts of the automobile parts during propagation, and reducing interference), further improving the detection accuracy of automobile parts.
[0131] S460, adjust the direction of the sound waves emitted by the detection module to the first target area surface and obtain the detection data again. When the sound wave detection information of the reflection of the sound waves corresponding to the first target area surface cannot be obtained from the detection data again, the first target area surface is confirmed to be a crack area and the crack area detection result data is obtained.
[0132] It can be understood that if the sound wave detection information of the reflection of the sound wave corresponding to the first target area surface cannot be obtained from the detection data again, it means that the reflected sound wave of the sound wave corresponding to the first target area surface cannot be obtained, which means that it is not because of the influence of certain protruding parts of the automobile parts on the reflection or refraction of the sound wave, but the sound wave emitted by the detection module will encounter more obstacles and diffractions after entering the crack in the direction of the sound wave emitted to the first target area surface after adjustment, so that the sound wave energy disappears. The crack area detection result data can be information data that the depth of the crack of the automobile part is much greater than the wavelength of the sound wave, and information data that the width of the crack of the automobile part is very narrow and less than half of the wavelength of the sound wave.
[0133] By setting up in this way, by obtaining the crack area detection result data, the location and depth of the crack can be determined more accurately, thereby improving the accuracy and reliability of the detection. It can also eliminate some false detections caused by non-quality factors, further improving the detection accuracy of automotive parts.
[0134] S500, performing spatial position analysis processing according to the position data and the detection data to obtain second processed data.
[0135] It can be understood that, first, the position data and the detection data are preprocessed, including data cleaning, denoising, coordinate system conversion, etc., to ensure the accuracy and consistency of the data for subsequent analysis and processing. Spatial feature information is extracted from the position data and the detection data, such as position coordinates, direction, speed, acceleration and other parameters. These features can help understand the position state of the automobile parts in space. The spatial relationship between the position data and the detection data is analyzed, and the spatial relative relationship between the automobile parts and the detection module is analyzed to identify the relative position, spatial distribution law, etc. of the automobile parts. According to the results of the spatial relationship between the position data and the detection data, the selected spatial features and the original data are combined and processed to generate the second processed data.
[0136] With such a configuration, by analyzing and processing the position data and the detection data, the original data can be converted into the second processed data with more practical application value. These data can provide an important data basis and analysis results for improving the detection accuracy of automobile parts. The second processed data can be used to more efficiently perform spatial analysis and application, avoiding the need for a lot of time and resources to process and analyze the original data, which helps to improve the detection accuracy of automobile parts. The second processed data can provide more accurate, comprehensive and intuitive spatial information, making the detection results of automobile parts more scientific and reasonable. The detection results of automobile parts are verified by the second processed data and the first processed data, achieving double confirmation, effectively reducing the possibility of misjudgment, and improving the detection rate of automobile parts.
[0137] In one possible implementation, see Figure 6 , S500, performing spatial position analysis processing according to the position data and the detection data to obtain second processed data, including:
[0138] S510, acquiring first time data according to the position data corresponding to each target area surface, wherein the first time data includes information reflecting the time taken for the tangent surface to receive the sound wave emitted by the detection module.
[0139] It can be understood that the position of the detection module, that is, the coordinates of the emission point, must be determined first. Using the position data of the target area surface, the distance from the target area surface to the detection module is calculated. This can be achieved through geometric calculations or distance formulas. The specific method depends on the scene and coordinate system. Based on the distance and the speed of sound (the speed of sound in air is generally about 343 meters per second), the time required for the sound wave to be emitted from the detection module to the tangent surface is calculated.
[0140] In this way, by obtaining the position data and first time data of each target area surface, it can help determine the position and spatial distribution of the target area of automobile parts. Obtaining the first time data helps to identify and distinguish different targets, because the time for the sound wave to reach different target areas will be different, and these data can be used for target identification.
[0141] S520, acquiring second time data according to the position data corresponding to each target area surface, wherein the second time data includes time information reflecting the time taken by the detection module to receive the sound wave reflected from the tangent surface.
[0142] It can be understood that the position of the detection module, that is, the coordinates of the receiving point, needs to be determined first. The total time required for the detection module to emit a sound wave and then reflect the sound wave through the tangent surface and be received by the detection module is obtained through the detection module. The time component of the obtained total time is then eliminated to obtain the second time data. For example, the total time can be divided by two to obtain the second time data.
[0143] With such a configuration, by acquiring the second time data corresponding to different target area surfaces, the positioning and distance measurement of the target area can be achieved. By analyzing the second time data, the reflection characteristics of the target area surface can be obtained. The reflection characteristics of different target surfaces may cause different reflection times of sound waves, thereby forming different second time data. By analyzing these data, it can be helpful to detect defects, cracks or other surface defects that may exist in automotive parts. According to the characteristics of the sound waves reflected by the target area surface, combined with the second time data, the target area can be identified and classified. Different target areas may produce different sound wave reflection patterns. By analyzing these patterns, the target area can be automatically identified and classified, and then a certain area of the automotive parts can be detected in a targeted manner, which is conducive to improving the detection accuracy of automotive parts.
[0144] S530, performing a time series comparison on the time axis on the first time data and the second time data to obtain second processed data.
[0145] It can be understood that, first, the first time data and the second time data are aligned on the time axis. Ensure that the time axes of the two data sets are consistent, such as sampling at the same time interval or aligning to a common target area. The first time data and the second time data are compared in time series, and correlation analysis, cross-correlation and other methods can be used to find the correlation and delay between the two time series. Through comparison, the time delay of the second time data relative to the first time data can be determined, and the second processed data can be extracted according to the time delay of the first time data and the second time data.
[0146] Such a setting can help identify defects or damage on the surface of automobile parts by combining the time delay of the second time data relative to the first time data, and the time information of the sound wave can indicate possible internal defects or deformations of the material. Comparing the two time series can also help find abnormal situations (such as when the second time data is greater than the first time data, that is, the sudden increase in the propagation time of the sound wave, it may be that there is a crack inside the automobile part, and the internal crack extends to the surface of the automobile part, so that the sound wave propagates in the crack of the automobile part and then reflects back, thereby causing a sudden increase in the propagation time of the sound wave. When the second time data is less than the first time data, that is, the sudden decrease in the propagation time of the sound wave, it may be that there is a bulge on the surface of the automobile part, which reduces the distance traveled by the detection module to emit the sound wave, thereby causing a sudden decrease in the propagation time of the sound wave), which helps to detect abnormal conditions and potential problems on the surface of automobile parts.
[0147] S600, obtaining detection result data according to the first processed data and the second processed data.
[0148] It can be understood that the first processed data and the second processed data are cleaned and preprocessed, including removing duplicate data, processing missing values, processing abnormal points, etc., to ensure data quality. The first processed data and the second processed data are integrated together, and the two parts of data are associated through common attributes such as spatial coordinates or timestamps. Based on the first processed data and the second processed data, feature extraction and analysis are performed, including motion trajectory, speed, acceleration, distance, angle, etc. Based on the features extracted from the first processed data and the second processed data, pattern recognition and classification are performed, similar features are classified into the same category, and abnormal situations are found therefrom. According to the results of pattern recognition and classification, test result data are generated. These results may include the type, quantity, location, state, motion path, etc. of automotive parts. The test result data is verified and optimized to ensure its accuracy and reliability, and can be compared and evaluated based on known samples or reference data to obtain more accurate and meaningful test result data.
[0149] With such arrangement, more comprehensive test result data can be obtained by comprehensively analyzing the first processed data and the second processed data. These data may include information in multiple aspects, such as the position, shape, size, motion state, etc. of automobile parts, providing more comprehensive test results. The test result data can provide an accurate reference and basis for the detection of automobile parts. Based on these data, the detection accuracy of automobile parts can be effectively improved. By analyzing the first processed data and the second processed data, real-time test result generation can be achieved, which is conducive to improving the detection rate of automobile parts.
[0150] In one possible implementation, see Figure 7S600, obtaining detection result data according to the first processed data and the second processed data, including:
[0151] S610, obtaining a first characteristic target region among n target region surfaces according to the first processed data, wherein the first characteristic target region includes a region among the n target region surfaces where the image of the second relative slope data does not overlap and the image of the third relative slope data does not completely correspond.
[0152] It can be understood that the second relative slope data image and the third relative slope data image are obtained from the first processed data. The second relative slope data image and the third relative slope data image of each target area surface are compared at the pixel level to find out the areas that do not overlap and do not completely correspond. Image processing algorithms, such as image segmentation, feature point extraction, etc., are used to identify and extract areas that do not overlap and do not completely correspond to each other. The identified first characteristic target area is marked and recorded, including the target area surface information to which it belongs. The extracted first characteristic target area is further analyzed, including its characteristics, structure and possible problems.
[0153] In this way, the first characteristic target area represents the difference or mismatch between the second relative slope data and the third relative slope data. By extracting these areas, we can detect potential anomalies or abnormal changes in auto parts, thereby effectively improving the detection accuracy of auto parts. The first characteristic target area represents the area where there are differences between the two images. These areas may contain some important feature information, such as surface defects, cracks or other irregular features, which helps to find potential problems in a targeted manner and avoid missed inspections of auto parts, thereby effectively improving the detection accuracy of auto parts.
[0154] S620, obtaining a second characteristic target region in the n target region planes according to the second processed data, wherein the second characteristic target region includes a region in the n target region planes corresponding to the mismatch between the first time data and the second time data on the time axis.
[0155] It is understood that the first time data and the second time data are ensured to have the same time axis and resolution. A time alignment method is used to find the corresponding area where the data does not match. To identify the area where the first time data and the second time data do not match the corresponding area on the time axis, an image processing algorithm, such as image segmentation, feature point extraction, etc., can be used to perform automatic area recognition. The identified second characteristic target area is recorded, including the information of the unmatched time data and the target area surface associated therewith.
[0156] In this way, the second characteristic target area represents the difference or mismatch between the first time data and the second time data. By extracting these areas, we can help detect potential anomalies or abnormal changes in automotive parts, thereby effectively improving the detection accuracy of automotive parts. The second characteristic target area represents the area where there is a difference between the two, and these areas may contain some important feature information. By extracting these features, we can better understand the characteristics and change laws of the target area surface, provide a more accurate basis for subsequent detection and analysis, and effectively improve the detection accuracy of automotive parts.
[0157] S630, performing feature extraction and analysis processing according to the first feature target area and the second feature target area to obtain detection result data.
[0158] It can be understood that first, the first feature target area is matched with the second feature target area to find the corresponding area on the time axis and the spatial coordinate system. This can be achieved through feature matching algorithms, image registration and other methods. Ensure the accuracy and reliability of the matching. For the matched area, feature extraction is performed. You can choose a suitable feature extraction method, such as texture features, shape features, etc., according to the specific tasks and needs. The purpose of feature extraction is to extract representative feature information from the image for subsequent analysis and processing. Analyze the extracted features, compare the differences and changes between the first feature target area and the second feature target area, and generate detection result data based on the results of the feature analysis. This may include a measure of the degree of difference, a description of the trend of change, the results of anomaly detection, etc.
[0159] With such a setting, through feature analysis, the problem and abnormal features of the target area can be better located, which is helpful for more targeted processing and resolution of the problem area. When the first feature target area is abnormal (the image of the second relative slope data does not overlap with the image of the third relative slope data and the number of areas in the n target area surfaces that are not completely covered exceeds 5-8), the target area surface corresponding to the first feature target area is matched with the second feature target area. If there is no second feature target in the target area surface, it means that there are special circumstances in the first feature target area (for example, hollow or solid auto parts, multi-layer structures, etc. may affect the propagation and reflection of sound waves). The first feature target area and the second feature target area are verified to achieve double confirmation, effectively reduce the possibility of misjudgment, and thus improve the accuracy of auto parts detection.
[0160] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0161] Corresponding to the automobile parts detection method described in the above embodiment, the embodiment of the present application further provides an automobile parts detection device, and each module of the device can implement each step of the automobile parts detection method. Figure 8 A structural block diagram of an automobile parts detection device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0162] Reference Figure 8 , the automobile parts testing device includes:
[0163] The first acquisition module is used to acquire the surface parameter data of the automobile parts to be detected, wherein the surface parameter data includes the surface curvature information reflecting the automobile parts to be detected.
[0164] The second acquisition module is used to acquire the position data of the automobile parts to be detected, wherein the position data includes the coordinate system information reflecting the space where the automobile parts to be detected are located.
[0165] The detection module is used to obtain detection data of the automobile parts to be detected. The detection data includes data reflecting each surface of the automobile parts to be detected after being detected by the detection module.
[0166] The first processing module is used to analyze and process the surface parameter data and the detection data to obtain first processed data.
[0167] The second processing module is used to analyze and process the position data and the detection data to obtain second processed data.
[0168] The generating module is used to obtain the detection result data according to the first processed data and the second processed data.
[0169] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0170] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above modules is used as an example for illustration. In practical applications, the above functions can be assigned to different modules as needed, that is, the internal structure of the device can be divided into different modules to complete all or part of the functions described above. The modules in the embodiment can be integrated into a processing unit, or each module can exist physically alone, or two or more modules can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0171] The present application also provides an automobile parts testing device, Fig. 9 This is a schematic diagram of the structure of an automobile parts testing device provided in one embodiment of the present application. Fig. 9 As shown, the automobile parts detection device 6 of this embodiment includes: at least one processor 60 ( Fig. 9 Only one is shown), at least one memory 61 ( Fig. 9 Only one is shown in the figure) and a computer program 62 stored in the at least one memory 61 and executable on the at least one processor 60. When the processor 60 executes the computer program 62, the automobile parts detection device 6 implements the steps in any of the above-mentioned automobile parts detection method embodiments, or the automobile parts detection device 6 implements the functions of the modules in the above-mentioned device embodiments.
[0172] Exemplarily, the computer program 62 may be divided into one or more modules, which are stored in the memory 61 and executed by the processor 60 to complete the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 62 in the automobile parts testing device 6.
[0173] The automobile parts detection device 6 can be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The automobile parts detection device can include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art can understand that Fig. 9 It is only an example of the automobile parts testing device 6 and does not constitute a limitation on the automobile parts testing device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, buses, etc.
[0174] The processor 60 may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0175] In some embodiments, the memory 61 may be an internal storage unit of the automobile parts testing device 6, such as a hard disk or memory of the automobile parts testing device 6. In other embodiments, the memory 61 may also be an external storage device of the automobile parts testing device 6, such as a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. equipped on the automobile parts testing device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the automobile parts testing device 6. The memory 61 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 61 may also be used to temporarily store data that has been output or is to be output.
[0176] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0177] An embodiment of the present application provides a computer program product. When the computer program product is executed on an electronic device, the electronic device implements the steps in any of the above method embodiments.
[0178] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0179] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0180] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0181] In the embodiments provided in the present application, it should be understood that the disclosed devices / equipment and methods can be implemented in other ways. For example, the device / equipment embodiments described above are merely schematic, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0182] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0183] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for detecting automobile parts, It is characterized in that The automobile parts detection method comprises: Acquire surface parameter data of the automobile part to be inspected; wherein the surface parameter data includes surface curvature information of the automobile part to be inspected; Acquire the position data of the automobile parts to be detected; wherein the position data includes the coordinate system information of the automobile parts to be detected in the space where they are located; Acquire detection data of the automobile parts to be detected; wherein the detection data includes data obtained after each surface of the automobile parts to be detected is detected by the detection module; Performing surface feature analysis processing according to the surface parameter data and the detection data to obtain first processed data; Performing spatial position analysis processing on the position data and the detection data to obtain second processed data; Obtaining detection result data according to the first processed data and the second processed data; Wherein, the step of obtaining the surface parameter data of the automobile parts to be inspected includes: Acquire a regional surface image of the automobile parts to be inspected; Performing image segmentation on the regional surface image to obtain n target regional surfaces in the regional surface; Establishing a tangent surface tangent to each of the n target area surfaces; According to the tangent surface, obtaining the surface parameter data; The step of obtaining the position data of the automobile parts to be detected includes: According to the spatial position relationship between the detected automobile parts and the detection module, spatial coordinate system data is obtained; wherein the detection module is set as the origin, the horizontal direction where the detection module is located is the x-axis, the direction perpendicular to the x-axis is the y-axis, and the gravity direction is the z-axis; Obtaining n pieces of position data according to the spatial coordinate system data corresponding to each of the n target area surfaces; The step of obtaining the detection data of the automobile parts to be detected includes: Acquire sound wave direction data; wherein the sound wave direction data includes the sound wave direction information emitted by the detection module to the n target area surfaces of the automotive parts to be detected; According to the sound wave direction data, the detection data is obtained; wherein the detection data includes the sound wave detection information received by the detection module from the n target area surfaces of the automotive parts to be detected; The performing surface feature analysis processing according to the surface parameter data and the detection data to obtain first processed data includes: According to the sound wave direction data, first relative tilt data of the emission direction of the sound wave corresponding to each target area surface relative to the tangent surface is acquired; Performing mirror processing on the first relative tilt data to obtain second relative slope data; wherein the mirror processing is to exchange the corresponding positions of the spatial coordinate system data of the first relative tilt data in each target area surface with a mirror axis perpendicular to the tangent surface; Acquire, according to the detection data, third relative slope data of the reflection direction of the sound wave corresponding to each target area surface relative to the tangent surface; Overlaying the second relative slope data with the third relative slope data to obtain first processed data; The performing spatial position analysis processing on the position data and the detection data to obtain second processed data includes: Acquire first time data according to the position data corresponding to each target area surface; wherein the first time data includes information reflecting the time taken for the tangent surface to receive the sound wave emitted by the detection module; Acquire second time data according to the position data corresponding to each target area surface; wherein the second time data includes time information reflecting the time taken by the detection module to receive the sound wave reflected from the tangent surface; Performing a time series comparison on the time axis on the first time data and the second time data to obtain the second processed data; The obtaining of detection result data according to the first processed data and the second processed data comprises: According to the first processed data, a first characteristic target area among the n target area surfaces is obtained; wherein the first characteristic target area includes an area among the n target area surfaces where an image of the second relative slope data and an image of the third relative slope data do not overlap and do not completely correspond; According to the second processed data, a second characteristic target area in the n target area surfaces is obtained; wherein the second characteristic target area includes an area in the n target area surfaces corresponding to the mismatch between the first time data and the second time data on the time axis; The detection result data is obtained by performing feature extraction and analysis processing on the first feature target area and the second feature target area.
2. An automobile parts detection device, It is characterized in that The automobile parts detection device is used to implement the automobile parts detection method according to claim 1, and the automobile parts detection device comprises: A first acquisition module is used to acquire surface parameter data of the automobile part to be detected; wherein the surface parameter data includes surface curvature information reflecting the automobile part to be detected; A second acquisition module is used to acquire position data of the automobile parts to be detected; wherein the position data includes coordinate system information reflecting the space where the automobile parts to be detected are located; A detection module, used to obtain detection data of the automobile parts to be detected; wherein the detection data includes data reflecting each surface of the automobile parts to be detected obtained after being detected by the detection module; A first processing module, used for analyzing and processing the surface parameter data and the detection data to obtain first processed data; A second processing module, used for analyzing and processing the position data and the detection data to obtain second processed data; A generating module, used for obtaining detection result data according to the first processed data and the second processed data; Wherein, the first acquisition module is further used for: Acquire a regional surface image of the automobile parts to be inspected; Performing image segmentation on the regional surface image to obtain n target regional surfaces in the regional surface; Establishing a tangent surface tangent to each of the n target area surfaces; According to the tangent surface, obtaining the surface parameter data; The second acquisition module is also used for: According to the spatial position relationship between the detected automobile parts and the detection module, spatial coordinate system data is obtained; wherein the detection module is set as the origin, the horizontal direction where the detection module is located is the x-axis, the direction perpendicular to the x-axis is the y-axis, and the gravity direction is the z-axis; Obtaining n pieces of position data according to the spatial coordinate system data corresponding to each of the n target area surfaces; The detection module is also used for: Acquire sound wave direction data; wherein the sound wave direction data includes the sound wave direction information emitted by the detection module to the n target area surfaces of the automotive parts to be detected; According to the sound wave direction data, the detection data is obtained; wherein the detection data includes the sound wave detection information received by the detection module from the n target area surfaces of the automotive parts to be detected; The first processing module is also used for: According to the sound wave direction data, first relative tilt data of the emission direction of the sound wave corresponding to each target area surface relative to the tangent surface is acquired; Performing mirror processing on the first relative tilt data to obtain second relative slope data; wherein the mirror processing is to exchange the corresponding positions of the spatial coordinate system data of the first relative tilt data in each target area surface with a mirror axis perpendicular to the tangent surface; Acquire, according to the detection data, third relative slope data of the reflection direction of the sound wave corresponding to each target area surface relative to the tangent surface; Overlaying the second relative slope data with the third relative slope data to obtain first processed data; The second processing module is also used for: Acquire first time data according to the position data corresponding to each target area surface; wherein the first time data includes information reflecting the time taken for the tangent surface to receive the sound wave emitted by the detection module; Acquire second time data according to the position data corresponding to each target area surface; wherein the second time data includes time information reflecting the time taken by the detection module to receive the sound wave reflected from the tangent surface; Performing a time series comparison on the time axis on the first time data and the second time data to obtain the second processed data; The generation module is also used for: According to the first processed data, a first characteristic target area among the n target area surfaces is obtained; wherein the first characteristic target area includes an area among the n target area surfaces where an image of the second relative slope data and an image of the third relative slope data do not overlap and do not completely correspond; According to the second processed data, a second characteristic target area in the n target area surfaces is obtained; wherein the second characteristic target area includes an area in the n target area surfaces corresponding to the mismatch between the first time data and the second time data on the time axis; The detection result data is obtained by performing feature extraction and analysis processing on the first feature target area and the second feature target area.
3. An automobile parts testing device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to claim 1 is implemented.
4. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the method according to claim 1 is implemented.
