Method, device, medium and equipment for evaluating the stress corrosion resistance of cutting fluid
By graying and edge sharpening the cutting fluid corrosion test images of aviation structural parts under stable stress and temperature, the corrosion area is identified, and the problem of low evaluation level in the existing technology is solved, and rapid and accurate results are achieved The corrosion performance evaluation improves the evaluation efficiency and accuracy.
Patent Information
- Application Number
- CN202411239045.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-09-05
AI Technical Summary
In the prior art, the level of corrosion resistance evaluation of cutting fluid for processing aviation structural parts is relatively low, the evaluation method has a long cycle and poor test sensitivity, and the corrosion area cannot be effectively identified, resulting in increased manufacturing costs and safety hazards.
By obtaining images of the sample parts that have undergone the corrosion test of the cutting fluid under the action of stable stress and stable temperature, performing grayscale processing and edge sharpening processing, identifying the distribution rules of the corrosion area, and achieving rapid and accurate corrosion performance evaluation.
It improves the accuracy and efficiency of the stress corrosion resistance performance evaluation of cutting fluid, reduces interference factors, achieves rapid and accurate evaluation of corrosion performance, and effectively improves the evaluation level.
Smart Images

Figure CN118762004B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of aviation manufacturing technology, and in particular to a method, device, medium and equipment for evaluating the stress corrosion resistance of a cutting fluid. Background Art
[0002] Aviation structural parts are gradually becoming larger, more precise, more complex and more integrated, and their machining time is much longer than other parts in the machining industry. They have thin walls and weak rigidity structures to achieve extreme weight reduction. Such structural parts have the characteristics of large stress and large deformation during machining. At present, the cooling and lubricating medium in the machining process of aviation structural parts is still mainly cutting fluid, and it cannot be completely replaced in the short term.
[0003] When aviation structural parts are immersed in cutting fluid for a long time under high stress / residual stress, surface corrosion problems are prone to occur. At the least, it will increase the manufacturing cost and manufacturing cycle of aviation structural parts, and at the worst, it will leave safety hazards or cause the aviation structural parts to be scrapped. Therefore, it is particularly important to evaluate the anti-corrosion performance of cutting fluids. However, the current evaluation method has a long cycle and poor test sensitivity, resulting in a low evaluation level. Summary of the invention
[0004] The main purpose of the present application is to provide a method, device, medium and equipment for evaluating the stress corrosion resistance of cutting fluid, aiming to solve the problem of low level of evaluation of the corrosion resistance of cutting fluid used for machining aviation structural parts in the prior art.
[0005] To achieve the above objectives, the technical solutions adopted in the embodiments of the present application are as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for evaluating the stress corrosion resistance of a cutting fluid, comprising the following steps:
[0007] Acquire a sample image; wherein the sample image is obtained based on photographing a sample workpiece, and the sample workpiece is subjected to a cutting fluid corrosion test under a stable stress and a stable temperature;
[0008] Grayscale the sample image to obtain a grayscale image;
[0009] Perform edge sharpening on the grayscale image to obtain the target grayscale image;
[0010] The corrosion performance evaluation is achieved according to the distribution law of the corrosion area on the target grayscale image.
[0011] In a possible implementation of the first aspect, graying the sample image to obtain a grayscale image includes:
[0012] Grayscale the sample image and process the grayscale value through gamma correction to obtain the grayscale matrix of the grayscale image;
[0013] Perform edge sharpening on the grayscale image to obtain the target grayscale image, including:
[0014] Perform edge sharpening on the grayscale matrix of the grayscale image to obtain the grayscale matrix of the target grayscale image.
[0015] In a possible implementation manner of the first aspect, performing edge sharpening processing on a grayscale matrix of a grayscale image to obtain a grayscale matrix of a target grayscale image includes:
[0016] The grayscale matrix of the grayscale image is subjected to grayscale boundary line adjustment and contrast adjustment to achieve edge sharpening processing, thereby obtaining the grayscale matrix of the target grayscale image.
[0017] In a possible implementation manner of the first aspect, the distribution pattern of the corrosion region includes: the area of the corrosion region, the size of the corrosion spots, and the number of the corrosion spots.
[0018] In a possible implementation of the first aspect, the corrosion performance evaluation is implemented according to the distribution law of the corrosion area on the target grayscale image, including:
[0019] The corrosion performance evaluation is achieved according to the ratio of the area of the corrosion region on the target grayscale image to the ratio threshold.
[0020] In a possible implementation of the first aspect, the corrosion performance evaluation is implemented according to the distribution law of the corrosion area on the target grayscale image, including:
[0021] Corrosion performance evaluation is achieved based on the size of the corrosion spot on the target grayscale image relative to the size threshold and / or the number of the corrosion spots on the target grayscale image relative to the number threshold.
[0022] In a possible implementation of the first aspect, before implementing the corrosion performance evaluation according to the distribution law of the corrosion area on the target grayscale image, the method further includes:
[0023] The grayscale interval is divided according to the grayscale threshold, and the area of the corrosion area is obtained according to the area of the region within the grayscale interval.
[0024] In a second aspect, an embodiment of the present application provides a cutting fluid stress corrosion resistance evaluation device, comprising:
[0025] An acquisition module, the acquisition module is used to acquire a sample image; wherein the sample image is acquired based on photographing a sample workpiece, and the sample workpiece is subjected to a cutting fluid corrosion test under a stable stress and a stable temperature;
[0026] Grayscale module: The grayscale module is used to grayscale the sample image to obtain a grayscale image;
[0027] A processing module, which is used to perform edge sharpening processing on the grayscale image to obtain a target grayscale image;
[0028] Evaluation module,The evaluation module is used to realize corrosion performance evaluation according to the distribution law of corrosion areas on the target grayscale image.
[0029] In a third aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program. When the computer program is loaded and executed by a processor, a method for evaluating the stress corrosion resistance of a cutting fluid as provided in any one of the first aspects above is implemented.
[0030] In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein:
[0031] The memory is used to store computer programs;
[0032] The processor is used to load and execute a computer program so that the electronic device executes the method for evaluating the stress corrosion resistance of a cutting fluid as provided in any one of the first aspects above.
[0033] Compared with the prior art, the beneficial effects of this application are:
[0034] The present application proposes a method, device, medium and equipment for evaluating the anti-stress corrosion performance of cutting fluid, the method comprising: obtaining a sample image; wherein the sample image is obtained based on the shooting of a sample workpiece, and the sample workpiece undergoes a cutting fluid corrosion test under a stable stress and a stable temperature; graying the sample image to obtain a grayscale image; performing edge sharpening on the grayscale image to obtain a target grayscale image; and realizing corrosion performance evaluation according to the distribution law of the corrosion area on the target grayscale image. The present application reduces interference factors in stress corrosion measurement by obtaining an image of a sample workpiece that has undergone a cutting fluid corrosion test under a stable stress and a stable temperature, and then quickly and accurately evaluates it through image processing. First, the image is grayed to identify different areas through different grayscale values, and then the contrast between the corrosion area and the surrounding area is improved through edge sharpening, thereby improving the accuracy of corrosion area identification. Finally, through the distribution law of the corrosion area on the image, a rapid and accurate evaluation of corrosion performance is realized, effectively improving the evaluation level. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A schematic diagram of the structure of an electronic device of a hardware operating environment involved in an embodiment of the present application;
[0036] Figure 2 A schematic diagram of a process for evaluating the stress corrosion resistance of a cutting fluid provided in an embodiment of the present application;
[0037] Figure 3A schematic diagram of the structure of the testing equipment in the method for evaluating the stress corrosion resistance of cutting fluid provided in an embodiment of the present application;
[0038] Figure 4 A linear schematic diagram of load application in the method for evaluating the stress corrosion resistance of cutting fluid provided in an embodiment of the present application;
[0039] Figure 5 A schematic diagram of edge sharpening processing in the method for evaluating the stress corrosion resistance of cutting fluid provided in an embodiment of the present application;
[0040] Figure 6 A schematic diagram of a process for evaluating the stress corrosion resistance of a cutting fluid provided in an embodiment of the present application in one embodiment;
[0041] Figure 7 A schematic diagram of corrosion of a sample workpiece under different stress states in the method for evaluating the stress corrosion resistance of a cutting fluid provided in an embodiment of the present application;
[0042] Figure 8 A schematic diagram of a module of a cutting fluid stress corrosion resistance evaluation device provided in an embodiment of the present application;
[0043] Markings in the figure: 101-processor, 102-communication bus, 103-network interface, 104-user interface, 105-memory, 1-cutting fluid, 2-sample workpiece, 3-liquid tank, 4-hydraulic pump, 5-piston pressure head, 6-first pressure sensor, 7-fixing pin, 8-second pressure sensor, 9-liquid pump, 10-temperature sensor, 11-heater, 12-magnet, 13-display screen, 14-liquid filling pump. DETAILED DESCRIPTION
[0044] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] The main solution of the embodiment of the present application is: obtaining a sample image; wherein the sample image is obtained based on the shooting of a sample workpiece, and the sample workpiece is subjected to a cutting fluid corrosion test under stable stress and stable temperature; graying the sample image to obtain a grayscale image; performing edge sharpening processing on the grayscale image to obtain a target grayscale image; and realizing corrosion performance evaluation according to the distribution pattern of corrosion areas on the target grayscale image.
[0046] Aviation structural parts are gradually developing towards large-scale, precision, complexity and integration, and their machining time is much longer than other parts in the machining industry. They have thin walls and weak rigidity structures to achieve extreme weight reduction. Such structural parts have the characteristics of large stress and large deformation during the machining process. At present, the cooling and lubrication medium in the machining process of aviation structural parts is still mainly cutting fluid, and it cannot be completely replaced in the short term. Aviation structural parts are prone to surface corrosion problems when they are immersed in cutting fluid for a long time under high stress / residual stress. At the least, it will increase the manufacturing cost and manufacturing cycle of aviation structural parts. At worst, it will leave safety hazards or cause the scrapping of aviation structural parts. Therefore, it is particularly important to evaluate the corrosion resistance of cutting fluid.
[0047] At present, there are few methods for evaluating the stress corrosion resistance of cutting fluids at home and abroad. The "Lubricant Application" in Boeing's process specification BAC5008 states: The stress corrosion resistance of cutting fluids is evaluated by soaking welding specimens under tensile stress for a long time. This method has high requirements for specimens, a long test cycle, and the test conditions are not strongly related to the machining conditions of aviation structural parts. Some domestic patents evaluate the stress corrosion resistance by simultaneously stretching the specimen and immersing it in the solution, such as:
[0048] Patent CN111504801A (a device and method for conducting stress corrosion experiments in a high-temperature liquid phase corrosion environment) evaluates the stress corrosion performance of metal materials through a device that combines a universal testing machine and a sealed liquid tank. The advantage of this method is that it can accurately control the size of the load and meet the requirements of stress corrosion testing, but the test cycle of a single sample is long and the test efficiency is low. Patent CN115235877A (corrosion state monitoring system and stress corrosion state evaluation method and device) analyzes the stress corrosion evolution process through stress corrosion signals, weld evolution images and dynamic stress data. This patent is biased towards data processing, and the corrosion state is measured by acoustic emission signals. It is not suitable for corrosion state evaluation of aviation structural parts. Patent CN107796710A (a method for detecting stress corrosion resistance) evaluates the stress corrosion resistance of the specimen by immersing the specimen under load in a corrosive medium. The test method of this patent is simple and easy, but the load control is not stable enough, the test cycle is long, and the test accuracy is low. In addition, the existing stress corrosion assessment method uses the appearance of obvious cracks as the main criterion. On the one hand, it requires long-term testing, and on the other hand, it does not conform to the actual corrosion conditions during the machining of aviation structural parts.
[0049] Therefore, in order to assist in the screening, use and maintenance of cutting fluids, the present application provides a solution by obtaining images of sample parts that have undergone cutting fluid corrosion tests under stable stress and stable temperature, thereby reducing interference factors in stress corrosion measurement, and then quickly and accurately evaluating through image processing. First, the image is grayed to be able to identify different areas through different grayscale values, and then edge sharpening is performed to increase the contrast between the corrosion area and the surrounding area, thereby improving the accuracy of identifying the corrosion area. Finally, through the distribution pattern of the corrosion area on the image, a rapid and accurate evaluation of the corrosion performance is achieved, thereby effectively improving the evaluation level.
[0050] See attached Figure 1 , attached Figure 1 This is a schematic diagram of the structure of an electronic device of the hardware operating environment involved in the embodiment of the present application. The electronic device may include: a processor 101, such as a central processing unit (CPU), a communication bus 102, a user interface 104, a network interface 103, and a memory 105. Among them, the communication bus 102 is used to realize the connection and communication between these components. The user interface 104 may include a display (Display), an input unit such as a keyboard (Keyboard), and the user interface 104 may also include a standard wired interface and a wireless interface. The network interface 103 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 105 may optionally be a storage device independent of the aforementioned processor 101. The memory 105 may be a high-speed random access memory (RAM) memory, or it may be a stable non-volatile memory (NVM), such as at least one disk storage. The processor 101 may be a general-purpose processor, including a central processing unit, a network processor, etc., or it may be a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component.
[0051] Those skilled in the art will appreciate that Figure 1 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0052] As attached Figure 1 As shown, the memory 105 as a storage medium may include an operating system, a network communication module, a user interface module, and a cutting fluid stress corrosion resistance performance evaluation device.
[0053] In the attached Figure 1In the electronic device shown, the network interface 103 is mainly used for data communication with the network server; the user interface 104 is mainly used for data interaction with the user; the processor 101 and the memory 105 in the present application can be set in the electronic device, and the electronic device calls the cutting fluid anti-stress corrosion performance evaluation device stored in the memory 105 through the processor 101, and executes the cutting fluid anti-stress corrosion performance evaluation method provided in the embodiment of the present application.
[0054] See attached Figure 2 Based on the hardware equipment of the aforementioned embodiment, the embodiment of the present application provides a method for evaluating the stress corrosion resistance of a cutting fluid, comprising the following steps:
[0055] S10: Acquire a sample image; wherein the sample image is obtained based on photographing a sample workpiece, and the sample workpiece undergoes a cutting fluid corrosion test under a stable stress and a stable temperature.
[0056] In the specific implementation process, the sample can be Figure 3 The test equipment shown in the figure is used to conduct cutting fluid corrosion test. After the test, the sample workpiece is photographed to obtain the sample image. The cutting fluid corrosion test is carried out under the condition that the sample is continuously subjected to stable stress and stable temperature, simulating the process of stress accelerating the cutting fluid corrosion of parts during machining. The cutting fluid is extracted to quickly cool the sample and terminate the corrosion test to reduce the influence of the cooling process on the corrosion results. During the entire corrosion test, the cutting fluid is in a closed box with high-pressure early warning and protection devices to reduce the influence of the effective components and water volatilization of the cutting fluid on the corrosion test caused by continuous heating.
[0057] Specifically, the test equipment includes cutting fluid 1, sample workpiece 2, fluid tank 3, hydraulic pump 4, piston head 5, first pressure sensor 6, fixing pin 7, second pressure sensor 8, liquid pump 9, temperature sensor 10, heater 11, magnet 12, display screen 13 and liquid pump 14. Cutting fluid 1 is the object to be tested, which may include metalworking fluids such as fully synthetic cutting fluid and emulsion; sample workpiece 2 is a test piece with a determined geometric size and a length of l, width b, thickness h, and the material is common aviation structural material, such as aluminum alloy, titanium alloy, steel, etc.; the liquid tank 3 is used to contain the cutting fluid 1 and bear the external load, and must include a transparent window such as glass to observe the state of the sample workpiece 2; the pressure of the hydraulic pump 4 is adjustable, and is used to extract hydraulic oil, control the up and down movement of the piston pressure head 5, and then adjust the pressure F exerted on the sample workpiece 2; the piston pressure head 5 is used to apply a uniform pressure F in the thickness direction of the sample workpiece 2; the first pressure sensor is used to measure the real-time pressure of the hydraulic oil; the fixing pin 7 is used to constrain the axial movement of the sample workpiece 2 and ensure that the sample workpiece 2 is fixed on the fixing pin 7 The second pressure sensor 8 is used to monitor the real-time pressure in the liquid tank 3 to prevent the cutting fluid vapor and water vapor from generating a large pressure during the heating process, thereby ensuring the safety of the entire test process; the liquid extraction pump 9 and the liquid addition pump 14 are used to extract and add the cutting fluid in the liquid tank 3; the temperature sensor 10 is used to measure the real-time temperature of the cutting fluid and feed it back to the heater 11 for temperature adjustment; the heater 11 is a commercial CNC, digitally displayed heater with a magnetic stirring function, and the temperature, time, and rotation speed of the magnet 12 can be displayed in real time on the display screen 13; the magnet 12 is used to stir the cutting fluid 1 to ensure temperature uniformity.
[0058] The two ends of the rectangular cross-section specimen 2 are fixed in a hinged form. The middle area of the specimen 2 is subjected to a load applied by the piston pressure head. The load is perpendicular to the length direction and thickness direction of the specimen and parallel to the width direction of the specimen. From the perspective of the stress state, the specimen 2 is a pure bending beam. The stress in the middle area of the specimen changes linearly in the thickness direction, from compressive stress to tensile stress. The tensile stress state area is further subdivided into multiple sub-areas corresponding to different stress means and corrosion conditions, as shown in the attached figure. Figure 7 shown.
[0059] S20: Gray-scale the sample image to obtain a grayscale image.
[0060] In the specific implementation process, grayscale, in the RGB model, if R=G=B, the color represents a grayscale color, where the value of R=G=B is called the grayscale value, that is, the values of the three channels of red, green and blue are equal. Therefore, each pixel of the grayscale image only needs one byte to store the grayscale value, and the grayscale range is 0-255. Specifically: grayscale the sample image to obtain a grayscale image, including:
[0061] The sample image is grayscaled, and the grayscale value is processed by gamma correction to obtain the grayscale matrix of the grayscale image.
[0062] The original RGB image is converted into a grayscale image, and the grayscale value is processed by gamma correction. The RGB value and power are not a simple linear relationship, but a power function relationship. The exponent of this function is called the gamma value, which is generally 2.2. This conversion process is called gamma correction. In order to take into account the smaller storage range (0~255) and the more balanced ratio of light and dark parts in the RGB grayscale value, gamma correction is required instead of directly corresponding to the power value. Therefore, the RGB value RGB color value cannot be simply added directly, but must be converted into physical light power by 2.2 before the next calculation can be performed.
[0063] RGB Figure 3 The values of the channels are R, G, B, and the grayscale values of the grayscale image , then the grayscale image can be represented by the grayscale matrix X:
[0064]
[0065] in, x mn Represents the gray matrix X m Row, No. n Grayscale value of the column.
[0066] S30: Perform edge sharpening processing on the grayscale image to obtain a target grayscale image.
[0067] In the specific implementation process, edge sharpening is an image processing method that can enhance the edge contrast of an image or video in an attempt to improve its sharpness (apparent clarity). By performing edge sharpening on the grayscale image, the contrast between the eroded area and the surrounding area is enhanced, thereby improving the accuracy of identifying the eroded area. Based on the above steps, the grayscale image is subjected to edge sharpening to obtain a target grayscale image, including:
[0068] Perform edge sharpening on the grayscale matrix of the grayscale image to obtain the grayscale matrix of the target grayscale image.
[0069] Specifically, the grayscale matrix of the grayscale image is subjected to edge sharpening processing to obtain the grayscale matrix of the target grayscale image, including:
[0070] The grayscale matrix of the grayscale image is subjected to grayscale boundary line adjustment and contrast adjustment to achieve edge sharpening processing, thereby obtaining the grayscale matrix of the target grayscale image.
[0071] In the specific implementation process, the grayscale matrix X is processed to obtain a new grayscale matrix Y:
[0072]
[0073] in, y mnRepresents the gray matrix Y m Row, No. n Gray value of the column;
[0074]
[0075] e is the base of natural logarithm, through the parameter Adjust the grayscale boundary, that is, when When , the gray value becomes smaller and the image becomes darker; when When , the gray value becomes larger, and the image changes. The contrast is adjusted by parameter k. When k is larger, the black-white contrast is more obvious. It is 1 / 2 of the original gray value average of the non-discoloration and corrosion areas of the sample. Figure 5 As shown in the figure, the result of edge sharpening is to retain the large corrosion spots A and the large darkened area C, increase the contrast between A and C, accurately identify the D area, and remove interference factors such as scratches B and tiny corrosion spots E.
[0076] S40: Corrosion performance evaluation is performed according to the distribution pattern of the corrosion area on the target grayscale image.
[0077] In the specific implementation process, the distribution law of the corrosion area includes: the area of the corrosion area, the size of the corrosion spots and the number of corrosion spots. According to the distribution law of the corrosion area, the corrosion situation is comprehensively evaluated, and the corrosion situation can be divided into severe corrosion, moderate corrosion, slight corrosion and no corrosion. Specifically: according to the distribution law of the corrosion area on the target grayscale image, the corrosion performance evaluation is realized, including:
[0078] The corrosion performance evaluation is achieved according to the size of the proportion of the area of the corrosion area on the target grayscale image relative to the proportion threshold. Also, the corrosion performance evaluation is achieved according to the size of the corrosion spot on the target grayscale image relative to the size threshold and / or the number of corrosion spots on the target grayscale image relative to the number threshold.
[0079] In the specific implementation process, we can first count the gray values in , and The area of the area is recorded as A1, A2 and A3, corresponding to the area of severe corrosion area, the area of slight corrosion area and the area of no corrosion area. The parameters a and b can be adjusted according to the actual application requirements. That is:
[0080] According to the distribution law of the corrosion area on the target grayscale image, before the corrosion performance evaluation is realized, the method further includes:
[0081] The grayscale interval is divided according to the grayscale threshold, and the area of the corrosion area is obtained according to the area of the region within the grayscale interval.
[0082] Statistical gray value The number N and diameter D of the spots, and the average diameter of the corrosion spots are calculated The corrosion level is determined according to the corrosion phenomenon description and corrosion level determination comparison table in Table 1-1 below.
[0083] Table 1-1 Corrosion phenomenon description and corrosion grade determination comparison table
[0084]
[0085] in, , , is the corrosion area ratio threshold, ; , , is the corrosion spot diameter threshold, also known as the size threshold, ; , , , is the corrosion spot number threshold, The value range is between 3-10. The relevant parameters can be set and adjusted according to actual application requirements.
[0086] In this embodiment, by obtaining images of sample parts that have undergone cutting fluid corrosion tests under stable stress and stable temperature, interference factors in stress corrosion measurement are reduced, and then image processing is used to quickly and accurately evaluate. First, the image is grayed to be able to identify different areas through different grayscale values, and then edge sharpening is used to increase the contrast between the corrosion area and the surrounding area, thereby improving the accuracy of corrosion area identification. Finally, through the distribution pattern of the corrosion area on the image, a rapid and accurate evaluation of the corrosion performance is achieved, effectively improving the evaluation level.
[0087] See attached Figure 6 , as attached Figure 6 The present application is further described below in the following embodiments:
[0088] First, the cutting fluid corrosion test under stable stress and stable temperature is carried out on the sample 2:
[0089] During the process of adding cutting fluid, a proper amount of cutting fluid is added to the liquid tank 3 through the liquid adding pump 14, and it is necessary to ensure that the liquid level is higher than the sample workpiece 2 by a certain distance to reduce the influence of oxygen in the air, volatilization of cutting fluid and other processes on the corrosion test; during the process of clamping the sample, it is necessary to ensure that the sample workpiece 2 can rotate freely in the radial direction of the fixed pin 7, and the nut is used to limit the sliding of the sample workpiece 2 in the axial direction of the fixed pin 7; during the process of clamping the sample, the sample needs to be sanded and immediately placed in the cutting fluid, replacing the cumbersome sample processing process in the traditional corrosion test, reducing the surface passivation, oxidation and other processes that affect the accuracy and objectivity of the corrosion test, and more realistically simulating the working conditions of the fresh surface and the cutting fluid in the machining process of aviation structural parts;
[0090] During the heating process, the heating rate of the heater 11 and the rotation speed of the magnet 12 need to be reasonably controlled to ensure that the temperature of the cutting fluid 1 rises evenly and steadily, and to avoid the situation where the temperature of the cutting fluid 1 exceeds the set temperature; during the heat preservation process, the temperature of the cutting fluid 1 is further uniformed and stabilized to provide environmental conditions for the interaction between the cutting fluid 1 and the sample workpiece 2; during the stress distribution calculation process, the pressure F applied to the sample workpiece 2 is calculated based on the data P of the first pressure sensor 6 and the cross-sectional area S of the piston pressure head 5, that is, , the stress distribution in the width direction of the sample 2 is calculated as , where y represents the distance from a point in the width direction of the middle area of the sample 2 to the neutral layer of the pure bending beam sample 2. The compressive stress reaches its maximum value when ,when The tensile stress reaches its maximum value when That is, the linear distribution range of tensile stress on sample 2 is 0 to The cutting fluid temperature is set, controlled and maintained by the magnetic stirring heater, which enables the testing and evaluation of the anti-stress corrosion performance of the cutting fluid at different temperatures, and more realistically simulates the effects of cutting heat and cutting fluid environment on stress corrosion during machining. The magnetic stirring heater can display parameters such as rotor speed, cutting fluid temperature, heating time, etc., and realize parameterization and digitization of the test process;
[0091] During the load setting process, the pressure required to be set by the hydraulic pump 4 is inversely calculated according to the preset tensile stress distribution range. The hydraulic pump pressurizes and applies the load as shown in the attached figure. Figure 4 As shown, first quickly load to 90%-95% of the set load, then slowly load to the set load, and cycle until it reaches the set value to avoid the load exceeding the set load P. The load size is controlled by hydraulic transmission to ensure the continuity and stability of the loading process. And by loading in sections, it is avoided that the load of the pure bending beam specimen exceeds the set load, and the load overshoot causes abnormal changes in the microstructure of the test piece, thereby reducing interference factors in the stress corrosion test.
[0092] During the process of maintaining the load by the hydraulic pump, the stress distribution of the sample piece 2 is continuously maintained, providing a basic guarantee for the corrosion test. During the corrosion test, under stable temperature and stress conditions, the cutting fluid 1 and the sample piece 2 continue to interact for a period of time (set as required). During the unloading process of the hydraulic pump, the reading of the first pressure sensor 6 is slowly reduced to zero by the hydraulic pump 4. During the pumping process, the cutting fluid 1 is quickly pumped away by the pumping pump 9 to quickly cool the sample piece 2. During the sampling process, the sample piece 2 is removed from the liquid tank 3, and the surface of the sample piece 2 is cleaned with a suitable cleaning agent. During the sample image collection process, the surface condition of the sample piece 2 is photographed and recorded by a high-power microscope to improve the ability and sensitivity of corrosion spot recognition. The stress corrosion resistance of the cutting fluid can be judged in the corrosion initiation stage, shortening the test cycle of a single corrosion test, and forming an RGB picture file, i.e., the sample image. Subsequently, the method provided in this application is used to evaluate the corrosion resistance after image processing.
[0093] See attached Figure 8 Based on the same inventive concept as in the above-mentioned embodiment, the embodiment of the present application further provides a cutting fluid stress corrosion resistance performance evaluation device, comprising:
[0094] An acquisition module, the acquisition module is used to acquire a sample image; wherein the sample image is acquired based on photographing a sample workpiece, and the sample workpiece is subjected to a cutting fluid corrosion test under a stable stress and a stable temperature;
[0095] Grayscale module: The grayscale module is used to grayscale the sample image to obtain a grayscale image;
[0096] A processing module, which is used to perform edge sharpening processing on the grayscale image to obtain a target grayscale image;
[0097] Evaluation module,The evaluation module is used to realize corrosion performance evaluation according to the distribution law of corrosion areas on the target grayscale image.
[0098] Those skilled in the art should understand that the division of the various modules in the embodiment is only a division of logical functions, and can be fully or partially integrated into one or more actual carriers in actual application, and these modules can be all implemented in the form of software called by the processing unit, or all implemented in the form of hardware, or implemented in the form of a combination of software and hardware. It should be noted that the modules in the cutting fluid anti-stress corrosion performance evaluation device in this embodiment correspond one to one to the steps in the cutting fluid anti-stress corrosion performance evaluation method in the aforementioned embodiment. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned cutting fluid anti-stress corrosion performance evaluation method, which will not be repeated here.
[0099] Based on the same inventive concept as in the aforementioned embodiments, an embodiment of the present application further provides a computer-readable storage medium storing a computer program. When the computer program is loaded and executed by a processor, a method for evaluating the stress corrosion resistance of a cutting fluid as provided in an embodiment of the present application is implemented.
[0100] Based on the same inventive concept as in the above-mentioned embodiment, an embodiment of the present application further provides an electronic device, including a processor and a memory, wherein:
[0101] The memory is used to store computer programs;
[0102] The processor is used to load and execute a computer program so that the electronic device executes the method for evaluating the stress corrosion resistance of a cutting fluid as provided in an embodiment of the present application.
[0103] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories. The computer may be various computing devices including intelligent terminals and servers.
[0104] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0105] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0106] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0107] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0108] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0109] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a multimedia terminal device (which can be a mobile phone, a computer, a television receiver, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0110] In summary, the present application provides a method, device, medium and equipment for evaluating the stress corrosion resistance of cutting fluid, the method comprising: obtaining a sample image; wherein the sample image is obtained based on the shooting of a sample workpiece, and the sample workpiece undergoes a cutting fluid corrosion test under stable stress and stable temperature; graying the sample image to obtain a grayscale image; performing edge sharpening on the grayscale image to obtain a target grayscale image; and realizing corrosion performance evaluation according to the distribution law of the corrosion area on the target grayscale image. The present application reduces interference factors in stress corrosion measurement by obtaining an image of a sample workpiece that has undergone a cutting fluid corrosion test under stable stress and stable temperature, and then quickly and accurately evaluates it through image processing. First, the image is grayed to identify different areas through different grayscale values, and then the contrast between the corrosion area and the surrounding area is improved through edge sharpening, thereby improving the accuracy of corrosion area identification. Finally, through the distribution law of the corrosion area on the image, a rapid and accurate evaluation of corrosion performance is realized, effectively improving the evaluation level.
[0111] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A method for evaluating the stress corrosion resistance of a cutting fluid, characterized in that: The following steps are involved: Acquire a sample image; wherein the sample image is obtained based on photographing a sample workpiece, and the sample workpiece has undergone a cutting fluid corrosion test under a stable stress and a stable temperature; Graying the sample image to obtain a grayscale image; Performing edge sharpening processing on the grayscale image to obtain a target grayscale image; Implementing corrosion performance evaluation according to the distribution law of the corrosion area on the target grayscale image; The step of graying the sample image to obtain a grayscale image comprises: Graying the sample image and processing the grayscale value by gamma correction to obtain a grayscale matrix of the grayscale image; The step of performing edge sharpening processing on the grayscale image to obtain a target grayscale image includes: Performing edge sharpening processing on the grayscale matrix of the grayscale image to obtain the grayscale matrix of the target grayscale image; The step of performing edge sharpening processing on the grayscale matrix of the grayscale image to obtain the grayscale matrix of the target grayscale image includes: The grayscale matrix of the grayscale image is subjected to grayscale boundary adjustment and contrast adjustment to achieve edge sharpening processing, thereby obtaining the grayscale matrix of the target grayscale image; wherein the grayscale matrix X is processed to obtain a new grayscale matrix Y: in, y mn Represents the gray matrix Y m Row, No. n Gray value of the column; e is the base of natural logarithm, through the parameter Adjust the grayscale boundary, that is, when When , the gray value becomes smaller and the image becomes darker; when When , the gray value becomes larger and the image becomes brighter; the contrast is adjusted by parameter k. When k is larger, the black-white contrast is more obvious. It is 1 / 2 of the average original grayscale value of the non-discoloration and corrosion areas of the sample.
2. The method for evaluating the anti-stress corrosion performance of cutting fluid according to claim 1, characterized in that: The distribution pattern of the corrosion area includes: the area of the corrosion area, the size of the corrosion spots and the number of the corrosion spots.
3. The method for evaluating the anti-stress corrosion performance of cutting fluid according to claim 2, characterized in that: The corrosion performance evaluation is realized according to the distribution law of the corrosion area on the target grayscale image, including: Corrosion performance evaluation is achieved according to the size of the proportion of the area of the corrosion region on the target grayscale image relative to the proportion threshold.
4. The method for evaluating the anti-stress corrosion performance of cutting fluid according to claim 2, characterized in that: The corrosion performance evaluation is realized according to the distribution law of the corrosion area on the target grayscale image, including: Corrosion performance evaluation is achieved based on the size of the corrosion spots on the target grayscale image relative to a size threshold and / or the number of the corrosion spots on the target grayscale image relative to a number threshold.
5. The method for evaluating the anti-stress corrosion performance of cutting fluid according to claim 2, characterized in that: Before implementing the corrosion performance evaluation according to the distribution law of the corrosion area on the target grayscale image, the method further includes: The grayscale interval is divided according to the grayscale threshold, and the area of the corrosion area is obtained according to the area of the region within the grayscale interval.
6. A cutting fluid stress corrosion resistance evaluation device, characterized in that: include: An acquisition module, the acquisition module is used to acquire a sample image; wherein the sample image is obtained based on photographing a sample workpiece, the sample workpiece undergoing a cutting fluid corrosion test under a stable stress and a stable temperature; A grayscale module, the grayscale module is used to grayscale the sample image to obtain a grayscale image; A processing module, the processing module is used to perform edge sharpening processing on the grayscale image to obtain a target grayscale image; An evaluation module, the evaluation module is used to implement corrosion performance evaluation according to the distribution law of corrosion areas on the target grayscale image; The step of graying the sample image to obtain a grayscale image comprises: Graying the sample image and processing the grayscale value by gamma correction to obtain a grayscale matrix of the grayscale image; The step of performing edge sharpening processing on the grayscale image to obtain a target grayscale image includes: Performing edge sharpening processing on the grayscale matrix of the grayscale image to obtain the grayscale matrix of the target grayscale image; The step of performing edge sharpening processing on the grayscale matrix of the grayscale image to obtain the grayscale matrix of the target grayscale image includes: The grayscale matrix of the grayscale image is subjected to grayscale boundary adjustment and contrast adjustment to achieve edge sharpening processing, thereby obtaining the grayscale matrix of the target grayscale image; wherein the grayscale matrix X is processed to obtain a new grayscale matrix Y: in, y mn Represents the gray matrix Y m Row, No. n Gray value of the column; e is the base of natural logarithm, through the parameter Adjust the grayscale boundary, that is, when When , the gray value becomes smaller and the image becomes darker; when When , the gray value becomes larger and the image becomes brighter; the contrast is adjusted by parameter k. When k is larger, the black-white contrast is more obvious. It is 1 / 2 of the average original grayscale value of the non-discoloration and corrosion areas of the sample.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is loaded and executed by the processor, the method for evaluating the stress corrosion resistance of a cutting fluid according to any one of claims 1 to 5 is implemented.
8. An electronic device, characterized in that: comprising a processor and a memory, wherein: The memory is used to store computer programs; The processor is used to load and execute the computer program so that the electronic device executes the method for evaluating the stress corrosion resistance of a cutting fluid according to any one of claims 1 to 5.
Citation Information
Patent Citations
Detection method of stress corrosion resistance
CN107796710A
Device and method for carrying out stress corrosion experiment in high-temperature liquid-phase corrosion environment
CN111504801A
Corrosion state monitoring system and stress corrosion state evaluation method and device
CN115235877A
Corrosion observation equipment for metal service period and use method
CN118443684A