Aluminum alloy die casting crack detection method and system
By automatically identifying cracks in aluminum alloy die-cast parts through image detection and spraying technology, and combining this with flame to eliminate air bubbles, the problem of low quality inspection efficiency caused by visual fatigue has been solved, achieving a highly efficient and accurate quality inspection process.
Patent Information
- Application Number
- CN202611173918.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-04
- Publication Date
- 2026-11-03
AI Technical Summary
In existing technologies, visual inspection requires staff to stare at aluminum alloy die-cast parts for extended periods, leading to visual fatigue and low inspection efficiency.
By employing image detection technology and spraying methods, colored oil is sprayed and image comparison is performed after acquiring images and temperature information of the finished product. Cracks are automatically identified, and flame is used to eliminate air bubbles, thereby improving the efficiency and reliability of quality inspection.
It has enabled automated quality inspection of aluminum alloy die castings, reduced visual fatigue of workers, improved the accuracy and efficiency of quality inspection, and reduced the impact of air bubbles on the inspection.
Smart Images

Figure CN123029026A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of metal parts inspection, and in particular to a method and system for detecting die-casting cracks in aluminum alloy die-casting parts. Background Technology
[0002] Aluminum alloy die casting is a type of pressure-casting part, which is formed by loading molten aluminum alloy into a precision mold under high pressure.
[0003] Currently, in the process of manufacturing aluminum alloy castings, a die-casting machine with molds is used. Liquid aluminum alloy is poured into the die-casting machine for pressing. After the parts are cast and cooled, the finished products are obtained. At this time, the workers conduct quality inspection of the finished products with the naked eye.
[0004] Regarding the aforementioned technologies, when workers inspect castings with the naked eye, they often stare at them for extended periods, which can easily lead to visual fatigue. This forces them to take frequent breaks and reorganize, slowing down the quality inspection process and resulting in low efficiency. There is still room for improvement in this regard. Summary of the Invention
[0005] To improve the quality inspection efficiency of die casting cracks in aluminum alloy die castings, this invention provides a method and system for detecting die casting cracks in aluminum alloy die castings.
[0006] In a first aspect, the present invention provides a method for detecting die-casting cracks in aluminum alloy die-casting parts, employing the following technical solution: A method for detecting die-casting cracks in aluminum alloy die-casting parts includes: After the finished product processing is completed, obtain the image detection information, surface temperature information and finished product model of the finished product; The reference temperature range is determined based on the finished product model. When the surface temperature information reaches the reference temperature range, the spraying position on the finished product surface is collected, and the influencing position is matched based on the spraying position and the finished product model. According to the spraying position, product model and affected position, colored oil is uniformly sprayed onto the surface of the finished product using a preset spraying method, and the image position of the finished product surface and the image detection information corresponding to the image position are obtained. The image reference information is determined based on the finished product model and image position. If the image detection information is consistent with the image reference information, the detection is passed. If the image detection information is inconsistent with the image reference information, the position is selected in the image detection information and the color detection information of the selected position is obtained. The color reference information is determined based on the finished product model. If the color detection information falls into the color system corresponding to the color reference information, it is defined as a crack and a prompt is given; if the color detection information does not fall into the color system corresponding to the color reference information, the detection passes.
[0007] By adopting the above technical solution, spraying is only performed after the surface temperature of the finished product reaches the reference temperature. This ensures that the timing of the colored oil spraying is matched with the finished product temperature, guaranteeing that the colored oil can adhere to the finished product surface under optimal penetration conditions. Based on the spraying location, the influencing locations are identified, clarifying the main inspection areas and surrounding areas potentially affected by the spraying, providing guidance for precise spraying operations. Uniformly spraying the colored oil onto the finished product surface allows it to fully penetrate into potential cracks. Furthermore, by transforming physical cracks into visual color difference features through imaging, automatic identification of crack defects is achieved, reducing visual fatigue for workers, improving the accuracy and consistency of quality inspection, and thus enhancing the overall efficiency and reliability of aluminum alloy die casting quality inspection.
[0008] Optional spraying methods include: Based on the finished product model, determine the preheating temperature range and oil quantity reference information of the non-colored oil, and obtain the oil quantity detection information and oil temperature detection information of the non-colored oil. If the fuel level detection information is lower than the fuel level reference information, a refueling prompt will be issued; if the fuel level detection information is not lower than the fuel level reference information, the fuel temperature detection information will be compared with the preheating temperature range information. If the oil temperature detection information does not fall within the preheating temperature range, the temperature is controlled according to the difference between the preheating temperature range and the oil temperature detection information to ensure that it falls within the preheating temperature range. If the oil temperature detection information falls within the preheating temperature range, a spraying path is generated according to the finished product model, and the spraying position and the affected position are determined according to the spraying path using a preset angle control method. The first amount of oil sprayed at the spraying position and the second amount of oil sprayed at the affected position are determined based on the spraying position and the affected position on the spraying path, wherein the first amount of oil sprayed is greater than the second amount of oil sprayed. The first amount of oil is sprayed along the spraying path at the spraying position, and the second amount of oil is sprayed at the affected position.
[0009] By adopting the above technical solution, before the spraying operation starts, the oil quantity and temperature information of the colored oil are obtained to ensure sufficient consumable reserves and the ability to be heated to the target state. Timely replenishment is ensured to avoid spraying interruptions and prevent ineffective heating due to insufficient oil, ensuring the colored oil is always in an ideal state during spraying. This provides the physical conditions for subsequent uniform spraying and effective penetration. The spraying position and affected area are determined using an angle control method based on the spraying path, ensuring a high degree of matching between the spray trajectory and the geometric characteristics of the finished product. This also distinguishes between areas requiring focused coverage and transitional areas only slightly affected. Spraying is performed along the spraying path with a first spray volume at the spraying position and a second spray volume at the affected area, achieving precise spraying operations with zoned and variable flow rates. This ensures the sensitivity of crack detection while reducing the probability of ineffective diffusion of colored oil into non-target areas, saving detection consumables and reducing the burden of subsequent cleaning.
[0010] Optional angle control methods include: Based on image detection information and finished product model, determine the sprayed surface information and the affected surface information, and mark the affected area from the affected surface information according to the sprayed surface information to obtain the affected area; The height information of the affected area is matched with the product model, and the spraying angle range is calculated based on the affected area and height information. Spraying is performed sequentially within the spraying angle range to obtain the spray coverage on the sprayed surface information and the influence coverage on the affected surface information; Select spraying angles that are greater than the preset baseline coverage from the spraying coverage and define them as target spraying angles. Select the spraying angle that has the greatest impact on coverage from the target spraying angles and define it as the execution spraying angle. The spraying position and the affected area are determined based on the spraying angle.
[0011] By adopting the above technical solution, the spraying efficiency is improved by marking the affected area and spraying the affected area with the second spray volume; and by obtaining different spraying angles based on the height information of the affected area, the spraying efficiency is further improved.
[0012] Alternatively, the spraying method may also include: Obtain the target image information of the current detection surface, and obtain the bounding box based on the target image information; Select the preset crack features from the target image information and define them as crack bounding boxes; If the edge frame coincides with the crack frame, calculate the edge crack angle of the crack feature in the crack frame, calculate the finished product correction angle based on the edge crack angle, and then spray colored oil after rotating the finished product with the finished product correction angle. If the edge frame and the crack frame do not coincide, rotate the finished product at the preset placement angle and then spray it with colored oil.
[0013] By adopting the above technical solution, when cracks appear on the edge of the finished product, the correction angle of the finished product is calculated and the finished product is rotated accordingly, so that the finished product has an inclined angle relative to the edge crack during spraying, so that the colored oil will not drip along the edge crack when spraying the edge, thus improving the accuracy of detection.
[0014] Optional methods for eliminating bubbles include: Obtain the target image information of the current detection surface, and obtain the bounding box based on the target image information; After the spraying operation is completed, determine the horizontal and vertical edge lengths based on the edge frame; If both the horizontal edge length and the vertical edge length fall within the preset flame reference length, then the shorter length is defined as the defoaming path length and the defoaming path is determined, and the longer length is defined as the flame length. If only one of the horizontal edge length and the vertical edge length falls into the preset flame reference length, then the length that falls into the reference length is defined as the flame length, and the length that does not fall into the reference length is defined as the defoaming path length and the defoaming path is determined. The flame diameter is matched based on the flame length, and the correction distance is determined based on the flame diameter and the preset flame distance is corrected accordingly. Control the flame to spray according to the flame length, and control the flame distance to raise it above the finished product and move it along the defoaming path to complete the bubble elimination.
[0015] By adopting the above technical solution, the flame is precisely controlled by comparing the length of the edge frame, which improves the flame utilization rate, provides comprehensive flame spraying to the surface of the finished product, eliminates all bubbles on the surface, removes the influence of bubbles on crack detection, and improves detection efficiency.
[0016] Optional, including: If neither the horizontal edge length nor the vertical edge length falls within the preset flame reference length, then the longer length is defined as the defoaming path, and the shorter length is subtracted by twice the flame reference length to obtain the flame length correction length. The flame diameter is matched based on the flame reference length, and the correction distance is determined based on the flame diameter and the preset flame distance is corrected accordingly. The flame correction diameter is matched based on the flame length correction length, and the flame correction distance is determined based on the flame correction diameter; The intersection of the edge frame and the endpoint of the flame reference length is defined as the defoaming intersection point after moving along the defoaming path. The defoaming starting point is determined based on the defoaming intersection point and the flame diameter. The defoaming height is determined based on the flame diameter. The defoaming correction path is determined based on the defoaming path, the defoaming starting point, and the flame diameter. The flame is controlled to move along the defoaming path along the surface of the finished product at a flame reference length, and the flame is controlled to be raised above the finished product at a flame distance to complete the elimination of bubbles on both sides; The flame is controlled to spray at a preset vertical angle at the defoaming starting point at a defoaming height, and moves along the defoaming correction path to complete the bubble elimination.
[0017] By adopting the above technical solution, the flame can be precisely controlled to defoam on the surface of the finished product and independently defoam in other areas by comparing the length of the edge frame. This improves the flame utilization rate, reduces the area without repeated defoaming, and improves the bubble elimination efficiency.
[0018] Optional methods for eliminating bubbles include: Based on the preset bubble features, bubbles are selected from the image detection information and defined as bubble boxes. The center point of the bubble box is calculated and defined as the bubble midpoint. Connect the midpoints of each bubble in the image detection information to obtain connecting lines, calculate the length of each connecting line and define it as the connecting line length, and filter out the minimum value from the connecting line lengths to determine the flame jet line; The flame diameter is matched based on the flame length, and the correction distance is determined based on the flame diameter and the preset flame distance is corrected accordingly. Determine the flame length based on the flame jet line, and determine the flame direction based on the connecting line; The flame is raised according to the direction of the flame and sprayed with the length of the flame to eliminate bubbles.
[0019] By adopting the above technical solution, bubbles are selected by processing bubble features, and the distance between bubbles is determined by the midpoint of the bubbles. The nearest adjacent bubbles are matched, and the flame is controlled to accurately eliminate bubbles, thereby improving defoaming efficiency and flame utilization.
[0020] Optional methods for balancing colored oils include: Obtain the flame direction and determine the flame tilt direction based on the flame direction; The airflow impact intensity is determined based on the flame length, and the tilt angle is determined by matching the airflow impact intensity with the flame tilt direction. The placement angle is adjusted according to the tilt angle to ensure that the flame length direction is parallel to the sprayed surface of the finished product, and then flame spraying is performed. The angle of the finished product is adjusted according to the tilt angle to ensure that the length direction of the flame is parallel to the sprayed surface of the finished product, and then flame spraying is performed.
[0021] By adopting the above technical solution, the tilt angle is determined by matching the airflow impact intensity with the flame tilt direction, and the finished product is corrected according to the tilt angle to keep the flame and the finished product parallel to each other, thereby reducing the impact of flame impact on the flow of colored oil and improving the efficiency and accuracy of image detection.
[0022] Optional methods to reduce oil film reflectivity include: Obtain the flame position, determine the flame influence range and flame brightness based on the flame length and flame diameter, determine the supplementary brightness of the light source based on the flame brightness, determine the supplementary lighting angle range based on the flame influence range and flame position, and determine the light source path based on the defoaming path or flame direction; The light source moves along the path of the light source to supplement brightness within the supplementary lighting angle range.
[0023] By adopting the above technical solution, the supplementary brightness of the light source is determined by the flame brightness, and the supplementary lighting angle range is determined by the flame influence range and flame position. The light source is precisely controlled to supplement the light at the required position, reducing the reflectivity of colored oil and improving the efficiency and accuracy of image detection.
[0024] Secondly, this application provides a system for detecting die-casting cracks in aluminum alloy die-casting parts, which adopts the following technical solution: A system for detecting die-casting cracks in aluminum alloy die-casting parts, comprising: The acquisition module is used to acquire the image detection information, surface temperature information, product model, image position on the surface of the finished product, and image detection information corresponding to the image position of the finished product. A memory for storing a program for detecting die-casting cracks in aluminum alloy die-castings as described in any of the preceding claims; The processor and memory can load and execute programs to implement a method for detecting die-casting cracks in aluminum alloy die-casting parts.
[0025] By adopting the above technical solution, information is acquired through the acquisition module, stored in the memory, and compared by the processor, thereby realizing the automatic identification of crack defects and improving the efficiency and reliability of finished product quality inspection.
[0026] In summary, this application includes at least one of the following beneficial technical effects: Different spraying angles are applied to different areas, and the second spray volume is used to spray the affected areas to ensure that the colored oil is evenly sprayed on the surface of the finished product and to increase the spraying speed, thereby improving the quality inspection efficiency. Using flames to eliminate bubbles formed on the surface of the finished product during the spraying process reduces the impact of bubbles on crack detection and improves the reliability of quality inspection. By using the flame light generated during the defoaming process in conjunction with auxiliary light sources, the light intensity can be precisely controlled to reduce the reflection on the surface of the colored oil film and reduce the impact of reflection on quality inspection. Attached Figure Description
[0027] Figure 1 This is a flowchart of a method for detecting die-casting cracks in aluminum alloy die-casting parts according to an embodiment of the present invention; Figure 2 This is a schematic diagram of a spraying method according to an embodiment of the present invention; Figure 3 This is a schematic diagram of a bubble elimination method according to an embodiment of the present invention; Figure 4 This is a schematic diagram of another bubble elimination method according to an embodiment of the present invention.
[0028] The parts referred to by the numbers in the above attached diagrams are as follows: 1. Finished product; 2. Spray gun; 3. Spraying position; 4. Affected area; 5. Fire gun; 6. Defoaming path; 7. Defoaming starting point; 8. Defoaming intersection; 9. Connecting line; 10. Bubble midpoint; 11. Bubble frame. Detailed Implementation
[0029] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments.
[0030] This application discloses a method and system for detecting die-casting cracks in aluminum alloy die-casting parts.
[0031] Reference Figure 1 A method for detecting die-casting cracks in aluminum alloy die-casting parts includes the following steps: Step 101: After the finished product 1 is processed, obtain the image detection information, surface temperature information and finished product model of the finished product 1.
[0032] Image detection information refers to digital image files that can be processed by a computer and are captured by a camera on the surface of the finished product. Surface temperature information refers to the real-time temperature value of the finished product surface measured by an infrared thermometer. The finished product model number is a unique identifier obtained by the camera through appearance recognition.
[0033] After finished product 1 is processed, the camera will take a picture of finished product 1 to obtain image detection information and finished product model, and obtain the surface temperature of finished product through infrared temperature measurement equipment.
[0034] Step 102: Determine the reference temperature range based on the finished product model. When the surface temperature information reaches the reference temperature range, collect the spraying position 3 on the surface of the finished product, and match the influencing position based on the spraying position 3 and the finished product model.
[0035] The reference temperature range is the optimal temperature range for initiating spraying for the finished product model. This range was determined through multiple temperature measurement experiments on product 1 and stored in the database for easy retrieval. Spraying position 3 is the target area on the finished product surface that needs to be completely covered with colored oil to detect cracks. The affected area is the surrounding area of the finished product surface immediately adjacent to spraying position 3, obtained based on the finished product model.
[0036] Based on the product model of finished product 1, the system retrieves the reference temperature range corresponding to that model from the database. When the surface temperature of finished product 1 falls within the reference temperature range, the system uses a camera to capture the angle at which the spray gun 2 is placed. The system then calculates the spraying position 3 on the surface of the finished product based on the incident angle of the spray gun 2, and infers the reflection angle in the surrounding area 4 of the finished product surface adjacent to the spraying position 3.
[0037] Step 103: Based on the spraying position 3, the product model, and the affected position, uniformly spray colored oil onto the surface of the finished product using a preset spraying method, and obtain the image position of the finished product surface and the image detection information corresponding to the image position.
[0038] Colored oil refers to a type of palm oil with a metallic sheen used for penetrant testing. Image position refers to the location information of the currently sprayed surface on finished product 1. For example, finished product 1 is a cube with six faces: A, B, C, D, E, and F. The currently sprayed surface is face A, facing directly upwards. The image position refers to the location information of face A. The image detection information corresponding to the image position refers to the overhead photograph taken by the camera at that position.
[0039] Since the colored oil is always sprayed from directly above, the spraying direction is always downward, and the point sprayed is spray position 3. Based on the finished product model, it is first determined whether there are adjacent surfaces. If there are adjacent surfaces, the oil will reflect off spray position 3 and splash onto the affected area of the adjacent surface. If, based on the finished product model, there are no adjacent surfaces, the affected area does not need to be considered. The spraying method includes correcting the placement angle of the finished product according to the edge cracks, and then spraying different amounts of oil at spray position 3 and the affected area at different spraying angles, as further disclosed in steps 201-404. After spraying is completed, an image of the finished product surface and the corresponding image detection information are obtained by taking a picture with a camera.
[0040] Step 104: Determine the image reference information based on the finished product model and image position. If the image detection information is consistent with the image reference information, the detection is passed; if the image detection information is inconsistent with the image reference information, select the position in the image detection information and obtain the color detection information of the selected position.
[0041] The image reference information is a standard image data template for the surface to be inspected in an ideal state without cracks for product 1 corresponding to the finished product model.
[0042] The system takes a picture of the top surface of the flawless standard finished product 1 using a camera to obtain a comprehensive image and determine the image reference information, which is then stored in the database. The system matches the corresponding image reference information from the database based on the finished product model and image location. When the image detection information matches the image reference information, it indicates that the image difference between the two is within the allowable range, meaning there are no cracks and the inspection is passed.
[0043] Color detection information refers to obtaining color images by taking pictures with a camera and converting the color images into grayscale images by a computer, so as to obtain grayscale values to evaluate the depth of the color of colored oil.
[0044] The system matches the corresponding image reference information from the database based on the product model and image location. If the image detection information and the image reference information differ in at least one image parameter, the difference area is selected in the photo and the difference is identified as the crack.
[0045] Step 105: Determine the color reference information based on the finished product model. If the color detection information falls within the color system corresponding to the color reference information, it is defined as a crack and a warning is issued. If the color detection information does not fall within the color system corresponding to the color reference information, the detection passes.
[0046] Color reference information refers to the color range of colored oils for a specific product model. A color range is used to determine whether two colors are the same, differing only in shade.
[0047] Based on the finished product model, the surface color of the finished product is determined. Staff then manually set the color of the colored oil used to establish color reference information, facilitating the identification of the colored oil color on the finished product surface and recording the results in the database. The color reference information for the colored oil corresponding to finished product 1 is determined based on the finished product model. If the color detection information falls within the color system corresponding to the color reference information, it indicates that the area selected in the photo frame where the colored oil has deepened is a crack, and a warning is issued.
[0048] If the color detection information does not fall within the color system corresponding to the color reference information, it means that the selected area does not meet the color parameter range defined by the color reference information, indicating that there is no crack in the area and it may be other foreign objects.
[0049] The spraying method includes the following steps: Step 201: Determine the preheating temperature range and oil quantity reference information of the colored oil based on the finished product model, and obtain the oil quantity detection information and oil temperature detection information of the colored oil.
[0050] The preheating temperature range information refers to the temperature range to which the colored oil should be heated to ensure it reaches its optimal working viscosity during spraying. This temperature range is obtained through multiple spraying experiments at different oil temperatures and stored in a database. The oil level reference information refers to the minimum liquid level threshold of the colored oil in the oil tank connected to the spray gun 2 that ensures continuous and stable spraying operations. The oil level detection information refers to the detection of the current oil level in the spray gun 2 by a liquid level sensor installed in the oil tank and the output of a specific value. The oil temperature detection information refers to the detection of the oil temperature in the spray gun 2 by a temperature sensor installed in the oil tank and the output of a specific value.
[0051] The system matches the preheating temperature range and oil quantity reference information of the oil from the database according to the finished product model. It reads and outputs the oil temperature detection information through the temperature sensor built into the oil tank connected to the fuel injector 2, and reads and outputs the oil quantity detection information through the liquid level sensor set in the oil tank.
[0052] Step 202: If the fuel level detection information is lower than the fuel level reference information, a refueling prompt will be issued; if the fuel level detection information is not lower than the fuel level reference information, the fuel temperature detection information will be compared with the preheating temperature range information.
[0053] If the oil level reading is lower than the baseline reading, it means that the remaining oil in the tank is lower than the required level. A refueling prompt will be issued, indicating that refueling must be done before this spraying operation. The staff should refuel to the baseline reading or above to ensure the stability of the spraying operation.
[0054] If the oil level detection information is not lower than the oil level reference information, it means that no refueling is needed this time. The oil temperature detection information is read and output by the temperature sensor built into the oil tank, and the current oil temperature is compared with the preheating temperature range to ensure that the colored oil reaches the optimal working viscosity during spraying.
[0055] Step 203: If the oil temperature detection information does not fall within the preheating temperature range, the temperature is controlled based on the difference between the preheating temperature range and the oil temperature detection information to ensure it falls within the preheating temperature range. If the oil temperature detection information falls within the preheating temperature range, a spraying path is generated based on the finished product model, and the spraying position 3 and the affected position are determined based on the spraying path using a preset angle control method.
[0056] The spraying path is preset by staff according to the finished product model. The spraying path refers to the continuous movement trajectory of the nozzle in space when the spray gun 2 performs the spraying operation. The preset angle control method refers to selecting the optimal spraying angle with the greatest impact on coverage from the target spraying angles through quantitative experiments, and inputting the optimal spraying angles for different spraying positions 3 into the system to establish a database.
[0057] If the oil temperature reading does not fall within the preheating temperature range, it indicates that the oil in the tank connected to the fuel injector 2 needs to be heated or cooled. A heating element is installed around the outside of the tank; when the colored oil temperature is low, the heating element is activated to heat it. A cooling element is installed at the bottom of the tank; when the temperature is high, the cooling element is activated to cool it down.
[0058] If the oil temperature detection information falls within the preheating temperature range, it indicates that the oil temperature meets the standard. The system matches the corresponding spraying path according to the finished product model, and selects the optimal spraying angle based on the spraying path. The spraying angle determines the spraying position 3 and the influencing position on the finished product surface.
[0059] Step 204: Determine the first amount of oil sprayed at the spraying position 3 and the second amount of oil sprayed at the affected position based on the spraying position 3 and the affected position on the spraying path. The first amount of oil sprayed is greater than the second amount of oil sprayed.
[0060] Spraying position 3 refers to the target surface area that needs to be directly sprayed with colored oil according to the first spray amount, determined based on the surface structure of the finished product. The affected area refers to the finished product surface area adjacent to spraying position 3 that needs to be sprayed with the second spray amount. The first spray amount refers to the spray amount for spraying position 3, determined by the finished product model. The second spray amount refers to the spray amount for the affected area. The affected area is the area splashed during spraying, therefore the second spray amount is less than the first spray amount.
[0061] The system uses a camera to capture the angle at which the spray gun 2 is positioned, and calculates the reflection angle based on the incident angle of the spray gun 2; that is, the reflection angle is equal to the incident angle. The system sprays colored oil onto the finished surface at spray position 3, and then infers the reflection angle's influence area 4 on the finished surface immediately adjacent to spray position 3 based on the incident angle. A first spray volume is used at spray position 3. When the spraying surface changes to the surface where the influence area is located, a second spray volume, which is less than the first spray volume, is used at the influence area.
[0062] Step 205: Spray at spray position 3 with the first amount of oil along the spraying path, and spray at the affected position with the second amount of oil.
[0063] After retrieving the spraying path information and the amount of oil sprayed, the system sends a command to the spray gun 2, controlling the spray gun 2 to move according to the spraying path, and spraying at the spraying position 3 with the first amount of oil sprayed, and spraying at the affected position with the second amount of oil sprayed.
[0064] Reference Figure 2 The method for controlling the spraying angle during the spraying process on the finished product surface includes the following steps: Step 301: Determine the sprayed surface information and the affected surface information based on the image detection information and the finished product model. Mark the affected surface information according to the sprayed surface information to obtain the affected area 4.
[0065] The spraying surface information refers to the surface of finished product 1 facing upwards that needs to be sprayed. The affected surface information refers to the surface that will be affected by the splashing of colored oil when the spraying surface is coated. The affected area 4 refers to the small area that will be affected by the spraying when the spraying surface is coated.
[0066] The images captured by the overhead camera define all upward-facing surfaces of finished product 1 as spraying surface information. The current spraying surface information is selected from all upward-facing surfaces in a preset order until all upward-facing surfaces are selected. The correspondence between spraying surface information and affected surface information within the same finished product model is pre-set by staff. Based on the finished product model and the current spraying surface information, it can be determined whether there is corresponding spraying surface information. A laser is used to simulate the trajectory of colored oil during spraying. The laser reflects from the spraying surface information to the affected surface information; the reflected area is the affected area 4. The matching relationship between the affected surface information and its corresponding affected area 4 is entered into the system. The corresponding affected area 4 is obtained based on the affected surface information and marked on the image.
[0067] Step 302: Match the height information of the affected area 4 with the finished product model, and calculate the spraying angle range based on the affected area 4 and the height information.
[0068] The height information of the affected area 4 refers to the vertical distance of the affected area 4 relative to the sprayed surface. The spraying angle range refers to all spray angles that can be reflected into the affected area 4.
[0069] The height of the affected area 4 is obtained by measuring the height of the affected area 4 perpendicular to the sprayed surface. It is known that the spraying force of the oil spray gun 2 is fixed, and the incident angle during spraying is consistent with the reflection angle of the oil splashed onto the affected area 4. The spraying angle range is calculated according to the law of reflection and stored in the computer.
[0070] Step 303: Spray sequentially within the spraying angle range to obtain the spray coverage on the sprayed surface information and the influence coverage on the affected surface information.
[0071] Paint coverage refers to the ratio of the area covered by colored paint on the painted surface to the target area of the painted surface. Impact coverage refers to the ratio of the area covered by reflected colored paint on the affected surface to the target area of the affected surface.
[0072] Through multiple spraying experiments, the experiment was conducted with different spraying angles within the spraying angle range to obtain the corresponding colored oil coverage of different sprayed surfaces and the influence coverage of colored oil on the affected surfaces.
[0073] Step 304: Select spraying angles that are greater than the preset baseline coverage from the spraying coverage and define them as target spraying angles. Select the spraying angle that has the greatest impact on coverage from the target spraying angles and define it as the execution spraying angle.
[0074] The baseline coverage rate refers to a preset minimum spray coverage threshold (e.g., 95%). Only spray angles with a coverage rate greater than this value are considered valid angles, i.e., target spray angles. The execution spray angle refers to the spray angle selected from the target spray angles according to its impact on coverage for the actual spraying operation.
[0075] The system filters out the spraying angle that has the greatest impact on coverage and defines it as the spraying angle to be executed.
[0076] Step 305: Determine the spraying position 3 and the affected position based on the spraying angle.
[0077] The spraying position 3 on the finished surface is obtained by determining the spraying angle to be executed as required. The reflection angle corresponding to the spraying angle is obtained by using the law of reflection, thereby determining the position affected by the colored oil splash.
[0078] Following step 103, the spraying method further includes the following steps: Step 401: Obtain the target image information of the current detection surface, and obtain the bounding box based on the target image information.
[0079] Target image information refers to the image data obtained by pre-taking the surface of the finished product to be inspected before the spraying operation begins. The edge frame refers to the outline of the finished product in the photo where the color differs from the background color.
[0080] The camera takes a picture of the current inspection surface, and the outline of the finished product color that differs from the background color is selected on the picture to obtain the edge frame.
[0081] Step 402: Select the preset crack features from the target image information and define them as crack bounding boxes.
[0082] Crack features refer to crack samples pre-set in the system by staff for easy comparison and retrieval. Crack outlines refer to the graphic area identified and selected using pre-set crack features.
[0083] All types of crack features are entered into the database and uploaded to the system to create a crack database. The system uses the crack database to determine whether there are crack features in the photo. If there are, the crack is selected in the photo and called a crack frame.
[0084] Step 403: If the edge frame coincides with the crack frame, calculate the edge crack angle of the crack feature in the crack frame, calculate the finished product correction angle based on the edge crack angle, and then spray colored oil on finished product 1 after rotating it with the finished product correction angle.
[0085] The edge crack angle refers to the tilt angle of the edge crack, which is obtained by connecting the center point of the selected finished coating surface with the line 9 of the shortest distance from the crack to that center point. The finished product correction angle refers to the angle of tilt towards the opposite side image generated by rotating the edge crack frame 180° with the center point of the finished coating surface as a reference.
[0086] If the edge frame coincides with the crack frame, it indicates the presence of a crack at the edge, and the area is selected on the photograph. The system calculates the edge crack angle based on the angle obtained from the photograph using the line 9 connecting the center point of the selected finished product's painted surface and the shortest distance from the crack to that center point. The edge crack frame is then rotated horizontally by 180° with the center point of the finished product's painted surface as a reference to generate an image on the opposite side. Finished product 1 is tilted directly below this image on the opposite side at a preset angle, and then colored oil is sprayed on it. The preset angle is set by the operator.
[0087] Step 404: If the edge frame does not coincide with the crack frame, rotate the finished product 1 at the preset placement angle and then spray it with colored oil.
[0088] The placement angle refers to the optimal standard posture angle adopted by the system by default when there is no crack frame coinciding with the edge frame on the detection surface, so that the entire detection surface is uniformly sprayed. In this embodiment, it is placed horizontally at 0 degrees.
[0089] If the edge frame and the crack frame do not coincide, it means there is no crack at the edge. Then adjust the finished product 1 to a horizontal position and start the spraying operation.
[0090] In step 103, between the application of colored oil and the acquisition of the image position of the finished surface, a bubble removal method is further included, which includes the following steps: Step 501: Obtain the target image information of the current detection surface, and obtain the bounding box based on the target image information.
[0091] Target image information refers to the image data obtained by pre-taking the surface of the finished product to be inspected before the spraying operation begins. The edge frame refers to the outline of the finished product in the photo where the color differs from the background color.
[0092] The camera takes a picture of the current inspection surface, and the outline of the finished product color that differs from the background color is selected on the photo to obtain the edge frame.
[0093] Step 502: After the spraying operation is completed, determine the horizontal edge length and vertical edge length according to the edge frame.
[0094] The horizontal edge length refers to the length of the current detection surface bounding box in the horizontal X-axis direction. The vertical edge length is the length of the current detection surface bounding box in the vertical Y-axis direction, which is perpendicular to the horizontal X-axis direction.
[0095] Before the spraying operation, a fixed solid point is marked on the workbench and defined as the origin. This solid point is preset by the staff. After the spraying operation is completed, a photo is taken. Based on the origin, an image coordinate system is established with the horizontal axis of the photo as the X-axis and the vertical axis as the Y-axis. The edge frame is placed on this image coordinate system. Based on the projection length of the edge frame on the X-axis and Y-axis of the image coordinate system, the horizontal and vertical edge lengths of the edge frame can be calculated using trigonometric functions.
[0096] Step 503: If both the horizontal edge length and the vertical edge length fall within the preset flame reference length, then the shorter length is defined as the defoaming path length and the defoaming path 6 is determined, and the longer length is defined as the flame length.
[0097] The flame reference length refers to the longest effective flame length that the lighter 5 can form in its working state, which is preset by the operator. The shortest length refers to the shorter of the transverse and longitudinal edge lengths. The defoaming path length refers to the path length along which the lighter 5 moves on the finished product surface. The defoaming path 6 refers to the trajectory of the lighter 5 moving along the edge above the finished product surface. The longest length refers to the longer of the transverse and longitudinal edge lengths. The flame length refers to the actual length of the flame sprayed by the lighter 5 during its current operation.
[0098] By comparing the numerical values of the edge length and the flame reference length, if both the horizontal and / or vertical edge lengths fall within the preset flame reference length, it indicates that the edge frame size is small and can be covered by the flame length. In this case, either length can be used as the flame length, and the shorter one is used as the path for flame movement, while the other is used as the reference for the flame length.
[0099] Step 504: If only one of the horizontal edge length and the vertical edge length falls into the preset flame reference length, then the length that falls into the flame reference length is defined as the flame length, and the length that does not fall into the flame reference length is defined as the defoaming path length and the defoaming path 6 is determined.
[0100] By comparing the numerical values of the edge length and the flame reference length, if only one of the horizontal edge length and the vertical edge length falls into the preset flame reference length, it indicates that the edge frame is relatively narrow and long. The length that falls into the reference length is defined as the flame length. In subsequent defoaming operations, this length is used as a reference to adjust and move the flame length so that it can just cover the area that needs to be defoamed.
[0101] Step 505: Match the flame diameter according to the flame length, determine the correction distance according to the flame diameter, and correct the preset flame distance.
[0102] The flame diameter is the diameter of the cylindrical flame jet that matches the flame length. There is a corresponding relationship between flame length and diameter. The flame is emitted by the lighter; the longer the flame, the smaller the flame diameter, and vice versa. This correspondence between flame length and flame diameter is recorded in the flame database. The correction distance refers to the height of the flame relative to the finished product surface, raised from a preset flame distance to maintain a fixed safe distance. The correction distance is equal to the sum of the flame radius and the preset flame distance. The preset flame distance refers to the default safe and optimal working distance between the flame and the finished product surface.
[0103] The correspondence between flame length and flame diameter was determined through multiple measurement experiments, and a database upload system was established. The system matches the flame length with the corresponding flame diameter from the flame database, determines the correction distance based on the flame diameter and the preset flame distance, and raises the flame to maintain a safe distance between the flame and the finished product surface.
[0104] Step 506: Control the flame to spray with the flame length, control the flame distance to raise it above the finished product 1 and move it along the defoaming path 6 to complete the bubble elimination.
[0105] Control the lighter 5 to raise it above the finished product 1 with the flame length and flame distance, keep the flame parallel to the surface of the finished product and spray along the defoaming path to complete the bubble elimination.
[0106] Reference Figure 3 It also includes the following steps: Step 601: If neither the horizontal edge length nor the vertical edge length falls within the preset flame reference length, then define the longer length as defoaming path 6, and subtract twice the flame reference length from the shorter length to obtain the flame length correction length.
[0107] The flame length correction length refers to the length of the middle defoaming area obtained by subtracting twice the flame reference length from the shorter side length of the current detection surface. The flame length correction length is equal to the length of the shorter side minus twice the flame reference length.
[0108] By comparing the numerical values of the edge length and the flame reference length, if neither the horizontal edge length nor the vertical edge length falls within the preset flame reference length, it indicates that the edge frame size is too large. The longer edge length is determined as defoaming path 6, and the shorter edge length is reduced by twice the flame reference length to obtain the flame length correction length.
[0109] Step 602: Match the flame diameter according to the flame reference length, determine the correction distance according to the flame diameter, and correct the preset flame distance.
[0110] The flame reference length is the length of a cylindrical flame bundle that matches the flame diameter. There is a corresponding relationship between the flame reference length and the diameter. The flame is ejected by a lighter. The longer the flame length, the smaller the flame diameter, and the shorter the flame length, the larger the flame diameter. The correspondence between the flame length and the flame diameter is recorded in the flame database.
[0111] The corresponding flame diameter is matched according to the flame reference length. The correction distance is determined according to the flame diameter and the preset flame distance. The flame is raised by the correction distance so that the flame always maintains a safe distance from the surface of the finished product.
[0112] Step 603: Match the flame correction diameter according to the flame length correction length, and determine the flame correction distance according to the flame correction diameter.
[0113] The flame correction diameter refers to the effective flame diameter used to treat the intermediate defoaming area, which is matched with the flame length correction length. The flame correction distance refers to the correction working distance between the tip of the flame and the finished sprayed surface, and the flame correction distance is the corresponding flame length matched with the flame correction diameter.
[0114] The flame length is the length of the cylindrical flame jet that matches the flame diameter. There is a corresponding relationship between flame length and diameter. The flame is ejected from the lighter; the longer the flame length, the smaller the flame diameter, and vice versa. This correspondence between flame length and flame diameter is entered into the flame database. The flame correction diameter is matched based on the flame length correction, and the corresponding flame length is obtained by matching the flame correction diameter. Since the flame is sprayed perpendicularly to the finished product surface in the central defoaming area, the flame length is the distance the lighter needs to be raised from the finished product surface; the flame length is the flame correction distance. In the central defoaming area, the lighter is raised to maintain a preset flame distance between the tip of the lighter and the finished product surface.
[0115] Step 604: After moving the edge frame and the endpoint of the flame reference length along the defoaming path 6, the intersection point is defined as the defoaming intersection point 8. The defoaming starting point 7 is determined based on the defoaming intersection point 8 and the flame diameter. The defoaming height is determined based on the flame diameter. The defoaming correction path is determined based on the defoaming path 6, the defoaming starting point 7, and the flame diameter.
[0116] The defoaming intersection point 8 refers to the intersection of the edge frame outline and a circle with a radius equal to the flame reference length. It is determined based on the flame moving along the defoaming path 6 from the edge frame endpoint by the flame length. The defoaming starting point 7 refers to the position where the flame begins to spray. The defoaming starting point 7 is calculated based on the defoaming intersection point 8 and half the flame diameter to ensure that the outer edge of the flame begins to act precisely from the intersection point. The defoaming height refers to the vertical distance between the flame nozzle and the sprayed surface when performing defoaming in the middle area. The defoaming correction path refers to the precise trajectory that the flame needs to move to complete the defoaming of the remaining area. This path is generated based on the defoaming path 6, the defoaming starting point 7, and the flame diameter, ensuring that there is neither omission nor excessive overlap.
[0117] After the lighter 5 moves along the defoaming path 6 as marked in the photo, the intersection of the endpoint of its flame reference length with the edge frame is defined as the defoaming intersection point 8. Moving half the flame diameter from the defoaming intersection point 8 towards the center area on the edge frame yields the defoaming starting point 7. The flame diameter corresponding to the flame reference length is obtained through database matching, and the flame is vertically raised to the finished product surface at a preset flame distance. The defoaming path 6 moves parallel to the edge frame towards the center area and intersects with the defoaming starting point 7 to obtain the defoaming correction path.
[0118] Step 605: Control the flame to move along the defoaming path 6 along the flame reference length on the surface of the finished product, and control the flame to be raised above the finished product 1 by the flame distance, so as to complete the elimination of bubbles on both sides.
[0119] The process of defoaming on both sides involves controlling the lighter 5 to spray flames, raising the flame distance above the finished product 1, keeping the flame parallel to the surface of the finished product, and moving it along the defoaming path 6 with the flame reference length to complete the elimination of bubbles on both sides.
[0120] Step 606: Control the flame to spray at a preset vertical angle at the defoaming starting point 7 at the defoaming height, and move along the defoaming correction path to complete the bubble elimination.
[0121] When defoaming in the middle area, the flame moves vertically to the surface of the finished product at the defoaming height, starting from the defoaming starting point 7 and moving along the defoaming correction path to complete the elimination of bubbles.
[0122] Reference Figure 4 In step 103, a bubble elimination method is also included, which includes the following steps: Step 701: Select the bubble from the image detection information according to the preset bubble features and define it as bubble box 11. Calculate the center point of bubble box 11 and define it as bubble midpoint 10.
[0123] A bubble refers to a gas-enclosed area formed inside or on the surface of an oil film after the application of colored oil. These bubbles can cause uneven oil film thickness or obscure image features related to cracks. Predefined bubble features refer to the shape, color, brightness, edge, texture, or reflective characteristics used to identify bubbles in an image. The bubble frame 11 refers to the image bounding box surrounding a single bubble or a cluster of bubbles. The bubble midpoint 10 refers to the geometric center of the bubble frame 11. The system filters bubble features from the database, marks them in the image, calculates the geometric center of the bubbles, and defines the geometric center as the bubble midpoint 10.
[0124] Step 702: Connect the midpoints 10 of each bubble in the image detection information to obtain the connecting line 9. Calculate the length of each connecting line 9 and define it as the connecting line length. Select the minimum value from the connecting line lengths and determine it as the flame jet line.
[0125] Connector 9 refers to the straight line segment from the midpoint of one bubble to the midpoint of another bubble (10). The length of the connector is the distance between the midpoints of the two bubbles. The flame jet line is determined by selecting the shortest distance from each connector 9 to determine the length and direction of the flame jet.
[0126] Connect the center points of each bubble on the photo, calculate the length of the connecting line 9 and output the specific value. Filter out the smallest value from these values and determine the connecting line 9 corresponding to this smallest value as the flame jet line.
[0127] Step 703: Match the flame diameter according to the flame length, determine the correction distance according to the flame diameter, and correct the preset flame distance.
[0128] The correction distance is a value determined based on the flame diameter and used to adjust the distance between the flame and the surface of the finished product. The correction distance is equal to half the flame diameter.
[0129] The system matches the flame diameter based on the flame length using a flame database, determines the correction distance based on the flame diameter and a preset flame distance, and raises the flame to ensure that the flame always maintains a safe distance from the surface of the finished product.
[0130] Step 704: Determine the flame length based on the flame jet line, and determine the flame direction based on the connecting line 9.
[0131] Flame orientation refers to the direction of the flame projection on the finished coating surface or the direction of the flame's action relative to the bubble connection line 9.
[0132] The required flame length value is generated based on the value of the flame jet line, and the flame direction is determined based on the connecting line 9. The flame direction can start from either end of the connecting line 9.
[0133] Step 705: Raise the flame according to the flame direction and spray it with the flame length to complete the bubble elimination.
[0134] The flame is still sprayed parallel to the surface of the finished product. The length of the flame is the shortest line connecting the two bubbles, and the spray point is any one of the center points of the bubbles.
[0135] In step 506, a method for balancing the colored oil is also included, which includes the following steps: Step 801: Obtain the flame direction and determine the flame tilt direction based on the flame direction.
[0136] Flame direction refers to the ideal axial direction of the flame as it exits the nozzle. Flame tilt direction refers to the opposite direction of the flame direction.
[0137] The direction of the flame relative to the surface of the finished product is determined by taking pictures of the flame and the finished product 1 from the side using a camera, and then the tilt angle between the flame and the surface of the finished product is calculated.
[0138] Step 802: Determine the airflow impact intensity based on the flame length, and match the airflow impact intensity with the flame tilt direction to determine the tilt angle.
[0139] Airflow impact intensity refers to the magnitude of the impact force of the airflow generated by the long flame jet on the oil film surface, and it is positively correlated with the flame length. The tilt angle refers to the attitude compensation angle applied to finished product 1 to balance the colored oil and ensure that the oil film on the finished product surface remains uniform under the combined action of gravity and the flame airflow. This angle prevents the colored oil from flowing away from the finished product surface due to flame impact, thus achieving balance.
[0140] Different flame lengths correspond to different flame airflow impact intensities. This angle is preset by the staff to match the flame length with the corresponding flame airflow impact intensity. The colored oil will flow due to gravity and flame impact; therefore, the impact intensity on the colored oil at that flame length is calculated based on the airflow impact intensity. Different airflow impact intensities and different flame tilt directions correspond to different tilt angles, which are also preset by the staff. The tilt angle is determined by matching the airflow impact intensity with the flame tilt direction. This ensures that the colored oil does not run off the finished product surface due to flame impact, achieving a balance.
[0141] Step 803: Adjust the placement angle according to the tilt angle to ensure that the flame length direction is parallel to the sprayed surface of finished product 1, and then perform flame spraying.
[0142] The finished product 1 was originally placed at a preset angle, i.e., horizontally. To balance the colored oil, the preset placement angle needs to be adjusted according to the tilt angle during flame spraying, so that the length direction of the flame remains relatively parallel to the sprayed surface of the finished product 1. After adjusting the placement angle by tilting, flame spraying is performed to ensure that the colored oil on the surface of the finished product is not washed away due to the impact of the flame, thus achieving balance.
[0143] Step 804: Adjust the finished product angle according to the tilt angle to ensure that the flame length direction is parallel to the sprayed surface of finished product 1, and then perform flame spraying.
[0144] The finished product 1 has cracks on the edges. Based on the preset placement angle, the finished product 1 is rotated by the finished product correction angle. Before flame spraying, the placement angle needs to be corrected again by tilting to ensure that the oil film on the surface of the finished product can remain uniform under the combined action of gravity and flame airflow.
[0145] Step 103 also includes a method for reducing oil film reflectivity, which includes the following steps: Step 901: Obtain the flame position, determine the flame influence range and flame brightness based on the flame length and flame diameter, determine the supplementary brightness of the light source based on the flame brightness, and determine the supplementary lighting angle range based on the flame influence range and flame position.
[0146] The flame position is the location of the flame marked in the photograph. The flame influence range refers to the spatial range within which the light emitted by the flame has a detectable impact on the surface of the finished product. Flame brightness refers to the intensity and luminance of the flame light. Supplemental light source brightness refers to the brightness provided by the supplemental light source to achieve a preset imaging range for the target image; this can be determined based on the difference between the flame brightness and the target image brightness. The supplemental lighting angle range refers to the range of incident light sources that, based on the flame position, flame influence range, camera position, and the normal to the sprayed surface, can reduce high-brightness reflections while meeting image acquisition requirements.
[0147] Before the spraying operation, a fixed physical point is marked on the workbench and defined as the origin. This physical point is preset by the operator. After the spraying operation is completed, a photo is taken. Based on the origin, an image coordinate system is established with the horizontal axis as the X-axis and the vertical axis as the Y-axis. The flame position is obtained on the established image coordinate system. The flame and finished product 1 are photographed from above using a camera to obtain the flame position. Different flame lengths and diameters correspond to different flame influence ranges and flame brightnesses, which are preset by the operator. The photo must meet the preset light source brightness. The preset light source brightness minus the flame brightness is the supplementary light source brightness. The computer determines the incident angle range of the light source based on the flame position, flame influence range, and the finished product surface.
[0148] Step 902: Determine the light source path based on defoaming path 6 or flame direction.
[0149] The light source path refers to the trajectory of the supplementary light source relative to the finished product during the supplementary lighting process. It coincides with the defoaming path 6 and maintains a preset fixed distance, which is set in advance by the staff.
[0150] The light source path is determined based on the defoaming path 6 or the flame direction. The light source path is consistent with the defoaming path 6 and maintains a fixed distance, and is perpendicular to the flame direction and maintains a fixed distance.
[0151] Step 903: Move the light source along the light source path to supplement the brightness within the supplementary lighting angle range.
[0152] Control the light source to adjust its brightness within the supplementary lighting angle range, move along the light source path, and complete the task.
[0153] Based on the same inventive concept, this invention provides a system for detecting die-casting cracks in aluminum alloy die-casting parts.
[0154] A system for detecting die-casting cracks in aluminum alloy die-casting parts, comprising: The acquisition module is used to acquire the image detection information, surface temperature information, product model, image position on the surface of the product, and image detection information corresponding to the image position of the finished product 1. The memory stores a computer program that can be loaded by a processor and executed to detect die-casting cracks in aluminum alloy die-cast parts. The processor loads and executes programs from memory.
[0155] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0156] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.
Claims
1. A method for detecting die-casting cracks in aluminum alloy die-casting parts, characterized in that, include: After the finished product (1) is processed, obtain the image detection information, surface temperature information and finished product model of the finished product (1); The reference temperature range is determined according to the finished product model. When the surface temperature information reaches the reference temperature range, the spraying position (3) on the finished product surface is collected, and the influencing position is matched based on the spraying position (3) and the finished product model. According to the spraying position (3), the product model and the affected position, the colored oil is uniformly sprayed onto the surface of the finished product using a preset spraying method, and the image position of the finished product surface and the image detection information corresponding to the image position are obtained. The image reference information is determined based on the finished product model and image position. If the image detection information is consistent with the image reference information, the detection is passed. If the image detection information is inconsistent with the image reference information, the position is selected in the image detection information and the color detection information of the selected position is obtained. The color reference information is determined based on the finished product model. If the color detection information falls into the color system corresponding to the color reference information, it is defined as a crack and a prompt is given; if the color detection information does not fall into the color system corresponding to the color reference information, the detection passes.
2. The method for detecting die-casting cracks in aluminum alloy die-casting parts according to claim 1, characterized in that, Spraying methods include: Based on the finished product model, determine the preheating temperature range and oil quantity reference information of the non-colored oil, and obtain the oil quantity detection information and oil temperature detection information of the non-colored oil. If the fuel level detection information is lower than the fuel level reference information, a refueling prompt will be issued; if the fuel level detection information is not lower than the fuel level reference information, the fuel temperature detection information will be compared with the preheating temperature range information. If the oil temperature detection information does not fall within the preheating temperature range information, the temperature is controlled according to the difference between the preheating temperature range information and the oil temperature detection information to ensure that it falls within the preheating temperature range information; if the oil temperature detection information falls within the preheating temperature range information, a spraying path is generated according to the finished product model, and the spraying position (3) and the affected position are determined according to the preset angle control method based on the spraying path. The first amount of oil sprayed at the spraying position (3) and the second amount of oil sprayed at the affected position are determined based on the spraying position (3) and the affected position, respectively. The first amount of oil sprayed is greater than the second amount of oil sprayed. Spraying is performed along the spraying path at the spraying position (3) with the first amount of oil sprayed, and at the affected position with the second amount of oil sprayed.
3. The method for detecting die-casting cracks in aluminum alloy die-casting parts according to claim 2, characterized in that, Angle control methods include: Based on image detection information and finished product model, determine the sprayed surface information and the affected surface information, and mark the affected area from the affected surface information according to the sprayed surface information to obtain the affected area (4). Based on the affected area (4) and the finished product model, the height information of the affected area (4) is matched, and the spraying angle range is calculated based on the affected area (4) and the height information. Spraying is performed sequentially within the spraying angle range to obtain the spray coverage on the sprayed surface information and the influence coverage on the affected surface information; Select spraying angles that are greater than the preset baseline coverage from the spraying coverage and define them as target spraying angles. Select the spraying angle that has the greatest impact on coverage from the target spraying angles and define it as the execution spraying angle. The spraying position (3) and the affected position are determined based on the spraying angle.
4. The method for detecting die-casting cracks in aluminum alloy die-casting parts according to claim 1, characterized in that, Spraying methods also include: Obtain the target image information of the current detection surface, and obtain the bounding box based on the target image information; Select the preset crack features from the target image information and define them as crack bounding boxes; If the edge frame coincides with the crack frame, calculate the edge crack angle of the crack feature in the crack frame, calculate the finished product correction angle based on the edge crack angle, and then spray colored oil after rotating the finished product (1) with the finished product correction angle. If the edge frame does not coincide with the crack frame, rotate the finished product (1) at the preset placement angle and then spray it with colored oil.
5. The method for detecting die-casting cracks in aluminum alloy die-casting parts according to claim 4, characterized in that, Between the application of colored oil and the acquisition of an image of the finished surface, a bubble removal method is also included. This bubble removal method includes: Obtain the target image information of the current detection surface, and obtain the bounding box based on the target image information; After the spraying operation is completed, determine the horizontal and vertical edge lengths based on the edge frame; If both the horizontal edge length and the vertical edge length fall within the preset flame reference length, then the shorter length is defined as the defoaming path length and the defoaming path is determined (6), and the longer length is defined as the flame length. If only one of the horizontal edge length and the vertical edge length falls into the preset flame reference length, then the length that falls into the flame reference length is defined as the flame length, and the length that does not fall into the flame reference length is defined as the defoaming path length and the defoaming path is determined (6). The flame diameter is matched based on the flame length, and the correction distance is determined based on the flame diameter and the preset flame distance is corrected accordingly. The flame is controlled to spray at the length of the flame, and the flame is controlled to be raised above the finished product (1) at the distance of the flame and moved along the defoaming path (6) to complete the bubble elimination.
6. The method for detecting die-casting cracks in aluminum alloy die-casting parts according to claim 5, characterized in that, include: If neither the horizontal edge length nor the vertical edge length falls within the preset flame reference length, then the longer length is defined as the defoaming path (6), and the shorter length is subtracted by twice the flame reference length to obtain the flame length correction length. The flame diameter is matched based on the flame reference length, and the correction distance is determined based on the flame diameter and the preset flame distance is corrected accordingly. The flame correction diameter is matched based on the flame length correction length, and the flame correction distance is determined based on the flame correction diameter; The intersection of the edge frame and the endpoint of the flame reference length is defined as the defoaming intersection (8) after moving along the defoaming path (6). The defoaming starting point (7) is determined according to the defoaming intersection (8) and the flame diameter. The defoaming height is determined according to the flame diameter. The defoaming correction path is determined according to the defoaming path (6), the defoaming starting point (7) and the flame diameter. The flames are controlled to move along the defoaming path (6) on both sides of the finished product (1) with the flame reference length, and the flames are controlled to be raised above the finished product (1) with the flame distance to complete the elimination of bubbles on both sides; The flame is controlled to spray at a preset vertical angle at the defoaming starting point (7) at the defoaming height, and moves along the defoaming correction path to complete the bubble elimination.
7. The method for detecting die-casting cracks in aluminum alloy die-casting parts according to claim 1, characterized in that, Between the application of colored oil and the acquisition of an image of the finished surface, a bubble removal method is also included. This bubble removal method includes: Based on the preset bubble features, the bubble is selected from the image detection information and defined as a bubble box (11). The center point of the bubble box (11) is calculated and defined as the bubble midpoint (10). Connect the midpoints (10) of each bubble on the image detection information to obtain the connecting line (9), calculate the length of each connecting line (9) and define it as the connecting line length, filter the minimum value from the connecting line length and determine it as the flame jet line; The flame diameter is matched based on the flame length, and the correction distance is determined based on the flame diameter and the preset flame distance is corrected accordingly. The flame length is determined by the flame jet line, and the flame direction is determined by the connecting line (9); The flame is raised according to the direction of the flame and sprayed with the length of the flame to eliminate bubbles.
8. The method for detecting die-casting cracks in aluminum alloy die-casting parts according to claim 5, characterized in that, When controlling the flame to spray along its length, the method also includes balancing the colored oil, which includes: Obtain the flame direction and determine the flame tilt direction based on the flame direction; The airflow impact intensity is determined based on the flame length, and the tilt angle is determined by matching the airflow impact intensity with the flame tilt direction. The placement angle is adjusted according to the tilt angle to ensure that the flame length direction is parallel to the sprayed surface of the finished product (1), and flame spraying is performed. The angle of the finished product is adjusted according to the tilt angle to ensure that the flame length direction is parallel to the sprayed surface of the finished product (1) and flame spraying is performed.
9. A method for detecting die-casting cracks in aluminum alloy die-casting parts according to claim 5 or 7, characterized in that, After spraying colored oil onto the surface of the finished product and before acquiring the image position of the finished product surface and the image detection information corresponding to the image position, the method for reducing oil film reflectivity is further included. The method for reducing oil film reflectivity includes: Obtain the flame position, determine the flame influence range and flame brightness based on the flame length and flame diameter, determine the supplementary brightness of the light source based on the flame brightness, determine the supplementary lighting angle range based on the flame influence range and flame position; determine the light source path based on the defoaming path (6) or flame orientation; The light source moves along the path of the light source to supplement brightness within the supplementary lighting angle range.
10. A system for detecting die-casting cracks in aluminum alloy die-casting parts, characterized in that, include: The acquisition module is used to acquire the image detection information, surface temperature information, product model, image position on the surface of the finished product, and image detection information corresponding to the image position of the finished product (1). A memory for storing a program for detecting die-casting cracks in aluminum alloy die-casting parts as described in any one of claims 1 to 9; The processor and memory can load and execute programs to implement a method for detecting die-casting cracks in aluminum alloy die-casting parts.
