Method and system for intelligent detection and filming path planning of internal defects of large castings
By obtaining key points on the casting model and using genetic algorithms to plan the ray source path, a scientific and complete shooting path is generated, and the missed shooting and inefficiency problems of casting detection in the existing technology is solved, achieving efficient and full coverage casting detection.
Patent Information
- Application Number
- CN202411821104.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2044-12-11
AI Technical Summary
The existing casting detection technology for manually selected shooting areas and ray projection has problems such as missing shots, multiple shots and inefficiency, which cannot meet the needs of efficient non-destructive testing of complex structures inside large castings.
By obtaining corner points, blind holes and large wall thickness areas on the casting model as quality control points, the path of the ray source is planned using genetic algorithms to generate scientific and complete filming paths, ensuring that all areas are covered and multi-angle shooting is performed at key points.
It realizes all-round inspection of large castings, avoids missed shots and multiple shots, improves detection efficiency and effectiveness, and is suitable for castings of various shapes and sizes, especially castings of complex structures.
Smart Images

Figure CN119690145B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of casting product quality inspection, and more specifically, to a method and system for intelligent inspection and filming path planning for internal defects of large castings. Background Art
[0002] Light alloys such as titanium and aluminum have excellent properties such as low density, high specific strength, and strong corrosion resistance, and are widely used in aerospace, weaponry, and other fields. As the requirements for lightweight, integrated, and high-quality parts in advanced core defense equipment continue to increase, the volume of castings such as casings and cabins is becoming larger and their internal structures are becoming more complex, making internal quality control more difficult and prone to internal defects such as loose holes and inclusions, and the requirements for non-destructive testing are rising. X-ray testing is one of the most commonly used technologies in non-destructive testing of casting defects. However, the existing shooting technology, which selects the shooting area based on manual experience and controls the instrument to project rays, has problems such as missed shots, multiple shots, and low efficiency. It cannot adapt to the development trend of casting inspection and has become the main bottleneck restricting the urgent realization of intelligent, efficient, and high-quality mass production of high-end equipment. Summary of the Invention
[0003] In response to the defects of the existing technology, the purpose of this application is to provide a method and system for intelligent detection of internal defects of large castings and filming path planning, aiming to solve the problems of missed shots, multiple shots and inefficiency in the existing shooting technology of manually selecting the shooting area and performing ray projection.
[0004] To achieve the above objectives, the present application provides a method for intelligently detecting internal defects of large castings and filming path planning, comprising the following steps:
[0005] S1 obtains corner points, blind holes and thick wall areas on the casting model as quality control points;
[0006] S2 selects one of the quality control points as the starting point, and controls the ray source to traverse the surface of the casting model according to the preset spacing to search for supplementary path points between adjacent quality control points: if the spacing between adjacent quality control points meets the preset spacing, the next search is started with the next quality control point as the new starting point; if the spacing between adjacent quality control points does not meet the preset spacing, the supplementary path points are searched in sequence with the previous quality control point as the starting point, until the spacing between the supplementary path point found and the next quality control point meets the preset spacing, and the next search is performed with the next quality control point as the new starting point; the search steps are repeated until the ray mapping areas corresponding to all quality control points and supplementary path points can completely cover the side of the casting model, and the search is stopped to obtain a path point set consisting of quality control points and supplementary path points;
[0007] S3 plans the actual filming path using a genetic algorithm based on the set of path points.
[0008] Furthermore, in step S2, the preset spacing is expressed as:
[0009]
[0010] Where a≤1 is the overlap coefficient between adjacent ray mapping areas; x 相邻 Indicates the distance between adjacent filming points, d 板 represents the side length of the imaging plate; r represents the radius of the bottom surface of the enveloping cylinder, which is also the distance between the imaging plate and the central axis of the enveloping cylinder; x 源n Indicates the distance from the nth supplementary path point on the casting model to the central axis of the envelope cylinder. is the distance from the ray source to the central axis of the enveloping cylinder.
[0011] Furthermore, in step S2, adjacent supplementary path points must meet the following preset conditions:
[0012] x 源n+1 >x 源n
[0013] Among them, x 源n+1 Indicates the distance from the n+1th supplementary path point on the casting model to the central axis of the envelope cylinder;
[0014] When the preset conditions are met, the n+1th supplementary path point is used as the starting point for the next search; otherwise, the nth supplementary path point is used as the starting point, and the preset interval is reduced to search again until a new supplementary path point that meets the preset conditions is found, and then the next search is started with the new supplementary path point as the starting point.
[0015] Furthermore, when planning the actual filming path, at each quality control point, a ray is drawn along the normal vector direction of the current quality control point toward the casting model to determine whether the ray meets the thickness condition and the intersection condition. The thickness condition is that the thickness of the casting model penetrated by the ray is less than or equal to the maximum penetration distance of the actual flaw detection equipment; the intersection condition is that the number of intersections between the ray and the casting model is less than or equal to 3.
[0016] Furthermore, in step S3, if the ray does not meet the thickness condition and / or the intersection condition at the current quality control point, the ray source and the corresponding imaging plate need to be synchronously deflected by a preset angle for shooting, and the ray source and the imaging plate always maintain a straight-facing state;
[0017] The method for searching the preset angle is as follows: synchronously deflecting the ray source and the imaging plate, and making a new ray along the normal vector direction of the deflected imaging plate toward the current quality control point; if the new ray satisfies the thickness condition and the intersection condition, the current deflection angle is used as the preset angle; if the new ray does not satisfy the thickness condition and / or the intersection condition, re-deflecting to other angles until the new ray obtained after deflection satisfies the thickness condition and the intersection condition; preferably, the deflection direction is at least one.
[0018] Furthermore, in step S1, the corner points are obtained using a three-dimensional Harris response method.
[0019] Furthermore, in step S1, the large wall thickness area is an area located in the first 10% of the wall thickness on the casting model.
[0020] Furthermore, in step S1, the step of obtaining a blind hole includes: obtaining a boundary ring, dividing the boundary ring into multiple sub-grids, and determining all sub-grids with only one exit; obtaining the ratio of the surface area to the volume of each sub-grid with only one exit, and taking the sub-grid corresponding to the maximum ratio as a blind hole.
[0021] According to a second aspect of the present application, there is also provided a system for implementing the method for intelligently detecting internal defects of large castings and filming path planning as described in any one of the preceding items, comprising:
[0022] A model building module is used to build a virtual flaw detection device and a casting model, wherein the virtual flaw detection device includes a radiation source;
[0023] A supplementary path point acquisition module is used to control the ray source to start from any starting point at one end of the casting model and perform circular and vertical motion around the central axis of the casting model to collect supplementary path points, wherein: the supplementary path point is the center point of the ray mapping area formed on the casting model by the rays emitted by the ray source, and adjacent ray mapping areas intersect, and movement stops when all ray mapping areas can fully cover the side of the casting model; it is also used to obtain quality control points at corner points, blind holes, and areas with large wall thickness of the casting model;
[0024] An additional path point acquisition module, used to acquire quality control points at corner points, blind holes and areas with large wall thickness of the casting model;
[0025] The actual filming path output module is used to output the actual filming path based on the supplementary path points, corner points, blind holes and quality control points at large wall thickness.
[0026] According to a third aspect of the present application, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program. When the computer program runs on a processor, the processor executes any of the methods described above.
[0027] According to a fourth aspect of the present application, a computer program is further provided. When the computer program is run on a processor, the processor is caused to execute any of the methods described above.
[0028] In general, the above technical solutions conceived by this application have the following beneficial effects compared with the existing technologies:
[0029] (1) The present application provides a method for planning a filming path for intelligent detection of internal defects in large castings. By finding quality control points on the casting model and then traversing all supplementary path points between adjacent quality control points, the ray mapping area corresponding to all the quality control points and supplementary path points found can completely cover the side surface of the three-dimensional casting model, and a scientific and complete actual filming working path is generated based on the corresponding set of path points. This actual filming working path helps to achieve all-round detection of actual castings, effectively avoids the problems of missed shots and multiple shots in the actual filming process, and further effectively reduces the missed detection of casting defects due to missed shots.
[0030] (2) This application uses a genetic algorithm to generate a scientific, complete and complete shooting path based on the quality control points and the supplementary path points between adjacent quality control points. Compared with manual image analysis and detection and manual programming, it greatly improves the efficiency of the shooting planning link; and at each quality control point, a method for optimizing the shooting path of the quality control point is also proposed to enable shooting at multiple angles of up and down and pitch at a specific quality control point, optimize the shooting angle, improve the effectiveness of shooting and the efficiency of filming, and avoid invalid shooting.
[0031] (3) The filming path planning method and system provided in this application can be applied to non-destructive testing of castings of various shapes and sizes, especially for large castings with increasingly larger volumes and increasingly complex internal structures, which can further reduce the difficulty of controlling the internal quality of castings. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 This is a flow chart of a method for intelligent detection of internal defects of large castings and filming path planning provided in an embodiment of the present application;
[0033] Figure 2 Schematic diagram of a ray mapping area formed on a casting model by rays emitted by a ray source provided in an embodiment of the present application;
[0034] Figure 3Schematic diagram of the intersection of adjacent ray mapping areas formed on a casting model by rays emitted by a ray source provided in an embodiment of the present application;
[0035] Figure 4 This is a schematic diagram of the principle of planning a multi-angle shooting path for a quality control point provided by an embodiment of the present application;
[0036] Figure 5 Schematic diagram of the intersection of the ray and the casting model at the quality control point provided in the embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0038] The term "and / or" as used herein describes an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. The symbol " / " as used herein indicates that the related objects are in an "or" relationship, for example, A / B means either A or B.
[0039] The terms "first" and "second" in this specification and claims are used to distinguish different objects rather than to describe a specific order of objects. For example, "first response message" and "second response message" are used to distinguish different response messages rather than to describe a specific order of response messages.
[0040] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0041] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more, for example, multiple processing units means two or more processing units, etc.; multiple elements means two or more elements, etc.
[0042] Next, the technical solutions provided in the embodiments of this application are introduced.
[0043] This embodiment provides a method for intelligently detecting and filming internal defects of large castings. In this method, the flaw detection equipment includes a CNC programmable radiation source, an imaging plate, and a storage table. The radiation source and the imaging plate can move freely in at least the horizontal and vertical directions, and the radiation source can emit radiation at a certain pitch angle. The imaging plate can adjust its posture to receive radiation according to the radiation source. When the radiation is transmitting and receiving, the radiation source and the imaging plate maintain a center-to-center position. Figure 1 As shown, the method for intelligent filming path planning for internal defects of large castings includes the following steps:
[0044] S1 obtains corner points, blind holes and thick wall areas on the casting model as quality control points.
[0045] The definition of quality control points is the area where the quality of the casting body must be paid attention to. That is, quality control points should inevitably appear in the process of shooting path planning, and their shape should be determined as much as possible through multi-angle shooting. For areas where the quality needs to be checked, it is necessary to achieve full coverage of the mapping range, and calculate the range of the ray mapping area at its center point. If all the key quality areas fall within the range of the ray mapping area, the center point of the ray mapping area will be used as the quality control point and determined as a supplementary path point. If there are still areas not included, other quality control points (i.e. supplementary path points) will be found at the boundary of the ray mapping area until the corresponding ray mapping areas of all quality control points and supplementary path points completely cover the area.
[0046] In this embodiment, the 3D Harris response method is used to first extract corner points. The principle of corner point extraction is as follows: the Harris corner point detection method measures the degree of change of each point by calculating the autocorrelation matrix of the local area. Corner points are points with significant changes in the local area. These points have a large rate of change in the neighborhood in different directions. For 3D data, the Harris response can be expanded by calculating the covariance matrix of the 3D image gradient. The expanded matrix is as follows:
[0047]
[0048] Among them, M represents the matrix, I x , I y , I z are the gradients of the point in the x, y, and z directions respectively. The gradient is calculated by the Sobel convolution operator. The Harris calculation formula is as follows:
[0049] R=det(M)-k(trace(M)) 2 (2)
[0050] Wherein, R is the corner response function, k is a constant, usually between 0.04 and 0.06, and a threshold is set to select corner points. In this embodiment, 10% is selected as the threshold, and points above the threshold are selected and output as the corner points of the image, and the corner points are placed in the quality critical area.
[0051] Obtain the quality control points at the first 10% wall thickness of the casting model. Thick areas of the casting are prone to defects due to slow filling and other reasons, and an algorithm needs to be used to identify these areas. Since the normal vectors of the triangular facets are stored in the original STL format file, this embodiment uses the normal vector method to analyze the wall thickness of the entire casting model. Rays are extended from the three points of the triangular facet in the opposite direction of their normals, and the distance to the first triangular facet that the rays touch is recorded. The average value of the wall thickness of the three points is taken as the wall thickness of the entire triangular facet, and then a certain weight of the wall thickness of the three adjacent triangles is taken and combined with the triangle to obtain the wall thickness of the entire triangular facet. Similarly, this embodiment selects areas with larger wall thickness of the casting (usually the first 10%) for recording, and determines these areas as quality control points.
[0052] During the pouring process, air easily accumulates at the bottom and sidewalls of blind holes. This is especially true during the pouring process, where air cannot be expelled smoothly, forming bubbles that eventually solidify into pores. Furthermore, due to slow heat dissipation, shrinkage cavities and porosity are easily formed. Therefore, it is necessary to analyze and search for blind hole areas. In step S2, after collecting the supplementary path points and the quality control points in the aforementioned embodiment, the following steps are performed to obtain these blind holes:
[0053] (1) Obtain the boundary ring, divide the boundary ring into multiple sub-grids, and determine all sub-grids with only one exit.
[0054] (2) Obtain the ratio of the surface area to the volume of each sub-grid with only one exit, and use the sub-grid corresponding to the maximum ratio as a blind hole. In step S3, these blind holes, the quality control points at the large wall thickness, and the supplementary path points determined in step S2 are used as a set to output the actual filming path.
[0055] Specifically, the surface topology information of the casting model is read and the boundary ring on the model is identified. The boundary ring described in this embodiment is composed of the boundary edges in the model. When an edge on a triangular facet is shared by only one face (generally, an edge is shared by two faces), and several boundary edges are surrounded by a ring, the boundary ring is found. By means of a mesh segmentation method, the subgrid at the boundary ring is analyzed and a connectivity analysis is performed. If the subgrid has only one outlet, the subgrid may be a blind hole, and all subgrids with only one outlet are found. The ratio of the surface area to the volume of all subgrids with only one outlet is then calculated, and the subgrid corresponding to the maximum ratio is selected. The corresponding structure of the subgrid is considered to be a blind hole.
[0056] S2 selects a quality control point obtained in step S1 as the starting point, controls the ray source according to the preset spacing to traverse the surface of the casting model to search for supplementary path points between adjacent quality control points, and judges during the search process: if the spacing between adjacent quality control points meets the preset spacing, then the next search is started with the next quality control point as the new starting point; if the spacing between adjacent quality control points does not meet the preset spacing, then the supplementary path points are searched in sequence with the previous quality control point as the starting point, until the spacing between the supplementary path point found and the next quality control point meets the preset spacing, then the next search is performed with the next quality control point as the new starting point; repeat the above-mentioned search steps until the ray mapping areas corresponding to all quality control points and supplementary path points can completely cover the side of the casting model, stop the search, and obtain a path point set consisting of quality control points and supplementary path points between adjacent quality control points;
[0057] Specifically, the ray source can be controlled to start from any quality control point of the casting model and make circular and vertical movements around the central axis of the casting model to collect additional path points. Figure 2 As shown, the supplementary path point is the center point of the ray mapping area (rectangular box in the figure) formed by the rays emitted by the ray source on the casting model. The ray source is in an unfixed area away from the enveloping cylinder, and the imaging plate is located on the enveloping cylinder for receiving rays. Figure 3 As shown, adjacent ray mapping areas intersect, and the search movement is stopped when all ray mapping areas can completely cover the side surfaces of the casting model.
[0058] More specifically, in order to ensure that no areas are missed, it is necessary to ensure that all areas of the casting can be inspected by the flaw detection equipment. The radiation source of the casting flaw detection equipment is a small circular plane, and the rays emitted are Figure 2 As shown, the conical scattering penetrates the casting and is received by the rectangular plane imaging plate. In general, the geometric centers of the ray source and the imaging plate are in the normal direction of each other, that is, they are perpendicular to each other. The range of the final conical ray mapping area is the position of the imaging plate, that is, the effective range of the ray scattering. This kind of scattering has an edge effect, that is, the rays are dense in the center and sparse around. Therefore, it is necessary to ensure that the key area is within the effective range of ray scattering and as close to the center as possible. Most casting flaw detection equipment generally uses an imaging plate size of 430mm×430mm. Therefore, in a normally placed casting, the closer the envelope surface is to the casting, the shorter the distance to its supplementary path points, and the farther the envelope surface is from the casting, the greater the distance between adjacent supplementary path points.
[0059] The aforementioned preset spacing is limited to:
[0060]
[0061] Where a≤1 is the overlap coefficient between adjacent ray mapping areas; x 相邻 Indicates the distance between adjacent filming points, d 板 represents the side length of the imaging plate; r represents the radius of the bottom surface of the enveloping cylinder, which is also the distance between the imaging plate and the central axis of the enveloping cylinder; x 源n Indicates the distance from the nth supplementary path point on the casting model to the central axis of the envelope cylinder. is the distance from the ray source to the central axis of the enveloping cylinder.
[0062] Each adjacent supplementary path point found must meet the following preset conditions:
[0063] x 源n+1 >x 源n (4)
[0064] Among them, x 源n+1 Indicates the distance from the n+1th supplementary path point on the casting model to the central axis of the envelope cylinder;
[0065] If the preset condition is met, the n+1th supplementary path point is used as the starting point for the next search; otherwise, the nth supplementary path point is used as the starting point, and the preset distance is reduced to search again, such as by reducing the x in the preset distance formula. 源n , to reduce the calculated x 相邻 , until a new supplementary path point that meets the preset conditions is found, and then the next search begins with the new supplementary path point as the starting point.
[0066] S3 outputs the actual filming path based on the quality control points and supplementary path points found in steps S1 and S2.
[0067] Specifically, based on the set of path points, a genetic algorithm (GA) is used to generate the actual filming path. During the actual filming path generation process, the properties of each path point are checked. If the path point is a quality control point found in step S1, such as Figure 4 As shown, the wall thickness check and occlusion check are performed on the points on the original model of the quality control point, and each quality control point in the initial path is optimized according to the following steps:
[0068] Draw a ray along the normal vector direction of the current quality control point toward the casting model to determine whether the ray meets the thickness condition and intersection condition. The thickness condition is that the thickness of the casting model penetrated by the ray is less than or equal to the maximum penetration distance of the actual flaw detection equipment; the intersection condition is that the number of intersections between the ray and the casting model is less than or equal to 3.
[0069] If the ray along the normal vector direction of the current quality control point toward the casting model at the current quality control point does not meet the thickness condition and the intersection condition, or does not meet one of the thickness condition and the intersection condition, such as Figure 5 As shown in the figure, when there are four intersections, h1 is the wall thickness between intersections 1 and 2, and h2 is the wall thickness between intersections 3 and 4. The ray source and the corresponding imaging plate need to be synchronously deflected by a preset angle to capture the quality control point, and the ray source and imaging plate should always remain facing each other before and after rotation. The method for finding the preset angle is:
[0070] The ray source and the imaging plate are deflected synchronously. In this embodiment, the first deflection angle is A new ray is made toward the current quality control point along the normal vector direction of the deflected imaging plate. If the new ray meets the thickness condition and the intersection condition, the current deflection angle is used as the preset angle to be deflected during actual filming. If the new ray does not meet the thickness condition and the intersection condition, or the new ray does not meet any of the thickness condition and the intersection condition, the ray source and the imaging plate are synchronously deflected to other angles again, and it is determined whether the new ray obtained at this angle meets the thickness condition and the intersection condition. If so, the angle is used as the preset angle. If not, the deflection angle is readjusted until the new ray obtained at any deflection angle can meet both the thickness condition and the intersection condition at the same time and the search is stopped.
[0071] In a preferred embodiment, the deflection direction of the preset angle can be multiple, such as the ray source and the imaging plate can be deflected by preset angles from the left, right, pitch and elevation directions respectively to take multiple shots, or they can be deflected by preset angles in any other direction toward the casting to take shots.
[0072] The actual filming path generated by the genetic algorithm is stored in the computer in the form of point coordinates to establish a cylindrical coordinate system. The change of θ in the cylindrical coordinate is achieved by rotating the platform by controlling the rotation axis of the platform. The change of the z-axis is achieved by controlling the robotic arm to move the radiation source and imaging plate in the vertical direction. The deflection operation is completed by rotating the imaging plate. At the same time, the radiation source needs to cooperate with the movement of the imaging plate to keep it centered. CNC coordinate code is generated from this relationship and transmitted to the machine to control the machine movement.
[0073] In other preferred embodiments, a system for implementing the method for intelligent detection of internal defects of large castings and filming path planning as described in any of the above embodiments is also provided, comprising:
[0074] Quality control point acquisition module, used to obtain corner points, blind holes and thick wall areas on the casting model as quality control points;
[0075] A path point set acquisition module is used to select a quality control point as a starting point, control the ray source to traverse the surface of the casting model according to a preset spacing to search for supplementary path points between adjacent quality control points: if the spacing between adjacent quality control points meets the preset spacing, the next search is started with the next quality control point as the new starting point; if the spacing between adjacent quality control points does not meet the preset spacing, the supplementary path points are searched in sequence with the previous quality control point as the starting point, until the spacing between the supplementary path point found and the next quality control point meets the preset spacing, and the next search is performed with the next quality control point as the new starting point; the search is stopped until the ray mapping areas corresponding to all quality control points and supplementary path points can completely cover the side of the casting model, and a path point set consisting of quality control points and supplementary path points is obtained;
[0076] The actual filming path planning module is used to plan the actual filming path based on the set of path points.
[0077] It is understandable that the detailed functional implementation of each of the above units / modules can be found in the introduction of the aforementioned method embodiment, and will not be repeated here.
[0078] The above embodiment has the following advantages:
[0079] 1. A search method for all quality control points of castings (supplementary path points, corner points, blind holes, and quality control points at thick walls) is proposed, which automatically identifies areas of castings that are more prone to defects from multiple dimensions, greatly simplifying the workload of manual screening.
[0080] 2. A method for planning a detection path with no blind spots based on quality control points and flaw detection models is proposed. This method not only realizes the planning of non-destructive testing paths for castings with no blind spots, but also conducts multi-angle shooting and detection on quality control points, effectively preventing problems such as defects in defect-prone areas being easily obscured by the casting structure itself and a single defect assessment angle, and is conducive to subsequent archiving and investigation.
[0081] It should be understood that the above-mentioned device is used to execute the method in the above-mentioned embodiment. The implementation principle and technical effect of the corresponding program module in the device are similar to those described in the above-mentioned method. The working process of the device can refer to the corresponding process in the above-mentioned method and will not be repeated here.
[0082] Based on the method in the above embodiment, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method in the above embodiment.
[0083] Based on the method in the above embodiment, an embodiment of the present application provides a computer program product. When the computer program product runs on a processor, the processor executes the method in the above embodiment.
[0084] It is understood that the processor in the embodiments of the present application may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.
[0085] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.
[0086] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted via the computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)).
[0087] It will be understood that the various numerical numbers involved in the embodiments of the present application are merely distinctions for the convenience of description and are not intended to limit the scope of the embodiments of the present application.
[0088] It is easy for those skilled in the art to understand that the above is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A method for intelligent detection of internal defects of large castings and filming path planning, characterized in that: The following steps are involved: S1 obtains corner points, blind holes and thick wall areas on the casting model as quality control points; S2 selects one of the quality control points as the starting point, and controls the ray source to traverse the surface of the casting model according to the preset interval to search for supplementary path points between adjacent quality control points: If the distance between adjacent quality control points meets the preset distance, the next search is started with the next quality control point as the new starting point; If the distance between adjacent quality control points does not meet the preset distance, the previous quality control point is used as the starting point to search for supplementary path points in sequence until the distance between the found supplementary path point and the next quality control point meets the preset distance, and the next search is performed with the next quality control point as the new starting point; Repeating the search step until the ray mapping areas corresponding to all quality control points and supplementary path points can completely cover the side of the casting model, and then stopping the search to obtain a path point set consisting of quality control points and supplementary path points; The preset spacing is: Where a≤1 is the overlap coefficient between adjacent ray mapping areas; x 相邻 Indicates the distance between adjacent filming points, d 板 represents the side length of the imaging plate; r represents the radius of the bottom surface of the enveloping cylinder, which is also the distance between the imaging plate and the central axis of the enveloping cylinder; x 源n Indicates the distance from the nth supplementary path point on the casting model to the central axis of the envelope cylinder. 源 is the distance from the ray source to the central axis of the enveloping cylinder; S3 plans the actual filming path using a genetic algorithm based on the set of path points.
2. The method for intelligent detection and filming path planning of internal defects of large castings according to claim 1, characterized in that: In step S2, adjacent supplementary path points must meet the following preset conditions: Among them, x 源n+1 Indicates the distance from the n+1th supplementary path point on the casting model to the central axis of the envelope cylinder; When the preset conditions are met, the n+1th supplementary path point is used as the starting point for the next search; otherwise, the nth supplementary path point is used as the starting point, and the preset interval is reduced to search again until a new supplementary path point that meets the preset conditions is found, and then the next search is started with the new supplementary path point as the starting point.
3. The method for intelligent detection and filming path planning of internal defects of large castings according to claim 1, characterized in that: In step S3, when planning the actual filming path, at each quality control point, a ray is drawn along the normal vector direction of the current quality control point toward the casting model to determine whether the ray meets the thickness condition and the intersection condition. The thickness condition is that the thickness of the casting model penetrated by the ray is less than or equal to the maximum penetration distance of the actual flaw detection equipment; the intersection condition is that the number of intersections between the ray and the casting model is less than or equal to 3.
4. The method for intelligent detection and filming path planning of internal defects of large castings according to claim 3, characterized in that: In step S3, if the ray does not meet the thickness condition and / or the intersection condition at the current quality control point, the ray source and the corresponding imaging plate need to be synchronously deflected by a preset angle for shooting, and the ray source and imaging plate always remain in a straight-on state; the method for finding the preset angle is: Deflecting the ray source and the imaging plate synchronously, and making a new ray toward the current quality control point along the normal vector direction of the deflected imaging plate, and if the new ray meets the thickness condition and the intersection condition, using the current deflection angle as the preset angle; If the new ray does not meet the thickness condition and / or the intersection condition, the ray is deflected again at other angles until the new ray obtained after the deflection meets the thickness condition and the intersection condition, and the search is stopped.
5. The method for intelligent detection and filming path planning of internal defects of large castings according to claim 4, characterized in that: The ray source and the imaging plate have at least one deflection direction when they are deflected synchronously.
6. The method for intelligent detection and filming path planning of internal defects of large castings according to claim 1, characterized in that: In step S1, the corner points are obtained using a three-dimensional Harris response method; the large wall thickness area is an area located in the first 10% of the wall thickness on the casting model.
7. The method for intelligent detection and filming path planning of internal defects of large castings according to claim 1, characterized in that: In step S1, the step of obtaining a blind hole includes: A boundary ring is obtained, the boundary ring is divided into a plurality of subgrids, and all subgrids having only one outlet are determined; a ratio of the surface area to the volume of each subgrid having only one outlet is obtained, and a subgrid corresponding to the maximum ratio is used as a blind hole.
8. A system for implementing the method for intelligent detection of internal defects of large castings and filming path planning according to any one of claims 1 to 7, characterized in that: include: Quality control point acquisition module, used to obtain corner points, blind holes and thick wall areas on the casting model as quality control points; A path point set acquisition module is used to select one of the quality control points as a starting point, control the ray source to traverse the surface of the casting model according to a preset spacing, and search for supplementary path points between adjacent quality control points. If the spacing between adjacent quality control points meets the preset spacing, the next search is started with the next quality control point as a new starting point. If the distance between adjacent quality control points does not meet the preset distance, the supplementary path points are searched in sequence starting from the previous quality control point until the distance between the supplementary path point found and the next quality control point meets the preset distance, and the next search is performed with the next quality control point as the new starting point; the search is stopped until the ray mapping areas corresponding to all quality control points and supplementary path points can fully cover the side of the casting model, and a path point set consisting of quality control points and supplementary path points is obtained; The actual filming path planning module is used to plan the actual filming path based on the set of path points using a genetic algorithm.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed on a processor, the processor is caused to execute the method according to any one of claims 1 to 7.
10. A computer program, characterized in that When the computer program runs on a processor, the processor is caused to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method for realizing automatic inspection of high-speed rail box girder inspection robot
CN115562284A
Casting defect three-dimensional intelligent positioning method and system based on multi-angle flaw detection image
CN116485739A