Workpiece surface roughness measuring method and related device

By establishing a correlation model between brightness and roughness information after polarized light illumination, the problems of subjectivity, damage and high cost of surface roughness measurement in the existing technology are solved, and high precision, low cost and miniaturization are achieved. The measuring system is suitable for surface roughness measurement of various materials and colors.

CN118583091APending Publication Date: 2024-09-03QINGHAI TRAFFIC DETECTION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410744660.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Surface roughness measurement methods in the prior art have problems such as high subjectivity, low reliability, possible damage to the measured surface, high cost, and difficulty in miniaturization.

Method used

By establishing a correlation model between brightness and roughness information after polarized light illumination, and using polarization image acquisition and function model fitting, high-precision measurement of surface roughness is achieved, which avoids damage to the measured surface and has low Cost and miniaturization advantages.

Benefits of technology

It achieves non-contact high-precision surface roughness measurement, reduces human errors, is suitable for surfaces of various materials and colors, and is cost-effective and convenient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118583091A
    Figure CN118583091A
Patent Text Reader

Abstract

The invention discloses a workpiece surface roughness measurement method, a workpiece surface roughness measurement device, a measurement device and a computer readable storage medium, and the method comprises the steps: obtaining a polarization image of each roughness standard sample block through the measurement device, and calculating the average gray value of the polarization image of each roughness standard sample block; performing function model fitting processing based on each average gray value and the corresponding roughness to obtain a corresponding function model; performing surface polarization image acquisition processing on a to-be-measured target to obtain a corresponding to-be-measured polarization image, and calculating a corresponding to-be-measured average gray value; and performing roughness calculation on the average gray value based on the function model to obtain target roughness. By establishing a correlation model between brightness and roughness information after polarized light illumination, high-precision measurement of the surface roughness is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of measurement and metrology technology, and more specifically, relates to a workpiece surface roughness measurement method, a workpiece surface roughness measurement device, a measuring device and a computer-readable storage medium. Background Art

[0002] Surface roughness is an important parameter to measure the error of microscopic geometric shape of machined surface, which directly affects the performance indexes of mechanical parts such as fit, wear resistance, fatigue strength, contact stiffness, vibration and noise. In the design, production and use of mechanical products, accurate measurement of surface roughness plays a vital role in ensuring product quality and performance.

[0003] In the related art, the measurement of surface roughness mainly adopts three methods: touch method, probe method and optical method. The touch method relies on the experience of the operator and evaluates the surface roughness by manual touch. This method is highly subjective, unreliable, and may contaminate the measured surface during the measurement process. The probe method slides a diamond stylus along the measured surface and converts the up and down displacement of the stylus into a surface roughness value, but contact measurement may cause damage to the measured surface. The optical method displays the shape error of the measured surface through graphics such as interference fringes, and then uses equipment such as microscopes to enlarge the image for measurement. Although this method has high accuracy, it is expensive and the measurement system is difficult to miniaturize.

[0004] Therefore, how to improve the efficiency and accuracy of surface roughness measurement is a key issue that technicians in this field are concerned about. Summary of the invention

[0005] The purpose of this application is to provide a workpiece surface roughness measurement method, workpiece surface roughness measurement device, measurement device and computer readable storage medium, which utilizes the relationship between surface roughness and depolarization degree, and establishes a correlation model between brightness after polarized light illumination and roughness information to achieve high-precision measurement of surface roughness. It not only avoids damage to the measured surface, but also has the advantages of low cost, high precision, easy miniaturization, etc., and can effectively overcome the problems existing in the prior art.

[0006] In view of the above defects or improvement needs of the prior art, the present invention provides a method for measuring the surface roughness of a workpiece, comprising:

[0007] The measuring device obtains the polarization image of each roughness standard sample block, and calculates the average gray value of the polarization image of each roughness standard sample block;

[0008] Perform function model fitting processing based on each of the average grayscale values ​​and the corresponding roughness to obtain a corresponding function model;

[0009] Perform surface polarization image acquisition processing on the target to be measured, obtain the corresponding polarization image to be measured, and calculate the corresponding average gray value to be measured;

[0010] The roughness of the average gray value is calculated based on the function model to obtain the target roughness.

[0011] Optionally, before the measuring device acquires the polarization image of each roughness standard sample, the method further includes:

[0012] The platform is built based on polarizing film, polarizing filter and camera lens to obtain a polarization image acquisition platform;

[0013] Accordingly, the measuring device obtains polarization images of each roughness standard sample, including:

[0014] The measuring device in the polarization image acquisition platform acquires the polarization image of each roughness standard sample block.

[0015] Optionally, the measuring device in the polarization image acquisition platform acquires polarization images of each roughness standard sample block, including:

[0016] The measuring device places the roughness standard sample block in the polarization image acquisition platform;

[0017] The polarizer is automatically adjusted by a mechanical arm until depolarization occurs;

[0018] The corresponding polarization image is acquired through the camera lens.

[0019] Optionally, the average grayscale value of the polarization image of each roughness standard sample is calculated, including:

[0020] Obtaining the gray value of each pixel in the polarization image of the roughness standard sample;

[0021] An average value is calculated for all the gray values ​​to obtain the average gray value.

[0022] Optionally, performing function model fitting processing based on each of the average grayscale values ​​and the corresponding roughness to obtain a corresponding function model includes:

[0023] A least squares fitting process is performed based on each of the average grayscale values ​​and the corresponding roughness to obtain the corresponding function model.

[0024] Optionally, the camera lens is a CCD camera lens.

[0025] Optionally, also include:

[0026] The target roughness is displayed through a preset path.

[0027] The present application also provides a workpiece surface roughness measuring device, comprising:

[0028] A polarization data acquisition module is used to acquire polarization images of each roughness standard sample block and calculate the average grayscale value of the polarization image of each roughness standard sample block;

[0029] A function model fitting module, used for performing function model fitting processing based on each of the average grayscale values ​​and the corresponding roughness to obtain a corresponding function model;

[0030] The polarization image acquisition module to be measured is used to obtain the surface polarization image of the target to be measured, obtain the corresponding polarization image to be measured, and calculate the corresponding average gray value to be measured;

[0031] The target roughness calculation module is used to perform roughness calculation on the average gray value based on the function model to obtain the target roughness.

[0032] The present application also provides a measuring device, comprising:

[0033] Memory for storing computer programs;

[0034] A processor is used to implement the steps of the workpiece surface roughness measurement method as described above when executing the computer program.

[0035] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the workpiece surface roughness measurement method as described above are implemented.

[0036] The present application provides a method for measuring the surface roughness of a workpiece, comprising: a measuring device acquiring polarization images of each roughness standard sample block, and calculating the average grayscale value of the polarization image of each roughness standard sample block; performing function model fitting processing based on each of the average grayscale values ​​and the corresponding roughness to obtain a corresponding function model; performing surface polarization image acquisition processing on a target to be measured to obtain a corresponding polarization image to be measured, and calculating the corresponding average grayscale value to be measured; performing roughness calculation on the average grayscale value based on the function model to obtain the target roughness.

[0037] It has the following beneficial effects:

[0038] Non-contact measurement: This method uses non-contact measurement technology to avoid any physical damage to the surface of the measured part. It is especially suitable for sensitive materials or precision parts that are easily affected by contact measurement.

[0039] High precision: By establishing a correlation model between the brightness and roughness information after polarized light illumination, this method can achieve high-precision surface roughness measurement and meet the strict requirements for precision in the design, production and use of mechanical products.

[0040] Cost-effectiveness: Compared with the traditional touch method, probe method and optical method, the measuring method of the present invention has a lower cost because it does not require expensive equipment and complicated calibration process, making the measurement more cost-effective.

[0041] Miniaturized measurement system: Since this method does not require large optical equipment or microscopes, the measurement system can be miniaturized, easy to carry and use on site, and improves the convenience of measurement.

[0042] Reducing human errors: Through automated image acquisition and data analysis, the present invention effectively reduces the impact of human factors on measurement results and improves the objectivity and accuracy of measurement.

[0043] Strong adaptability: This method can effectively avoid the influence of high reflection and is suitable for surface roughness measurement of various materials and colors, which enhances the versatility and adaptability of the measurement method. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0045] Figure 1 A flow chart of a method for measuring the surface roughness of a workpiece provided in an embodiment of the present application;

[0046] Figure 2 A schematic diagram of the structure of a method for measuring the surface roughness of a workpiece provided in an embodiment of the present application;

[0047] Figure 3 A schematic diagram of a sample block for a workpiece surface roughness measurement method provided in an embodiment of the present application;

[0048] Figure 4 A function curve diagram of a workpiece surface roughness measurement method provided in an embodiment of the present application;

[0049] Figure 5 A result output diagram of a workpiece surface roughness measurement method provided in an embodiment of the present application;

[0050] Figure 6A schematic diagram of the structure of a workpiece surface roughness measuring device provided in an embodiment of the present application;

[0051] Figure 7 A schematic diagram of the structure of the measuring device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] The core of this application is to provide a workpiece surface roughness measurement method, workpiece surface roughness measurement device, measurement device and computer readable storage medium, which utilizes the relationship between surface roughness and depolarization degree, and establishes a correlation model between brightness after polarized light illumination and roughness information to achieve high-precision measurement of surface roughness. It not only avoids damage to the measured surface, but also has the advantages of low cost, high precision, easy miniaturization, etc., and can effectively overcome the problems existing in the prior art.

[0053] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0054] The workpiece surface roughness measurement method provided by the present application is described below through an embodiment.

[0055] Please refer to Figure 1 , Figure 1 A flow chart of a method for measuring the surface roughness of a workpiece provided in an embodiment of the present application.

[0056] In this embodiment, the method may include:

[0057] S101, the measuring device obtains the polarization image of each roughness standard sample block, and calculates the average gray value of the polarization image of each roughness standard sample block;

[0058] This step aims to obtain polarization images of each roughness standard sample. That is, to obtain polarization images of each roughness standard sample and calculate the average gray value of the polarization image of each roughness standard sample. The polarization image refers to the polarization image when depolarization occurs in the measuring device.

[0059] The average gray value refers to the average gray value of all pixels in the image.

[0060] Furthermore, before this step, the following steps may also be included:

[0061] A platform is built based on polarizing plates, polarizing filters and camera lenses to obtain a polarization image acquisition platform.

[0062] That is, a platform dedicated to polarization image shooting is built, in which the corresponding polarization image can be obtained manually or by mechanical arm operation.

[0063] Accordingly, the measuring device acquires the polarization image of each roughness standard sample block, which may include:

[0064] That is, the measuring device in the polarization image acquisition platform acquires the polarization image of each roughness standard sample block. The acquisition process requires the lens to be rotated, which can be manually rotated or automatically rotated by a mechanical arm.

[0065] Furthermore, the measuring device in the polarization image acquisition platform acquires the polarization image of each roughness standard sample block, which may include:

[0066] Step 1: The measuring device places the roughness standard sample block on the polarization image acquisition platform;

[0067] Step 2, automatically adjusting the polarizer by a mechanical arm until depolarization occurs;

[0068] Step 3: Obtain the corresponding polarization image through the camera lens.

[0069] It can be seen that this optional solution mainly explains how to obtain the corresponding polarization image. In this optional solution, the measuring device mainly places the roughness standard sample block on the polarization image acquisition platform; the polarizer is automatically adjusted by the mechanical arm until depolarization occurs; and the corresponding polarization image is obtained through the camera lens. In this optional solution, the lens is rotated by the mechanical arm, which can improve the efficiency of obtaining polarization images, avoid manual operation, and improve the accuracy of operation.

[0070] Furthermore, the process of calculating the average grayscale value of the polarization image of each roughness standard sample block in this step may include:

[0071] Step 1, obtaining the gray value of each pixel in the polarization image of the roughness standard sample;

[0072] Step 2: Calculate the average value of all gray values ​​to obtain the average gray value.

[0073] It can be seen that this optional solution mainly describes how to calculate the average grayscale value. In this optional solution, the grayscale value of each pixel in the polarization image of the roughness standard sample is obtained; the average value of all grayscale values ​​is calculated to obtain the average grayscale value.

[0074] S102, performing function model fitting processing based on each average gray value and the corresponding roughness to obtain a corresponding function model;

[0075] On the basis of S101, this step aims to perform function model fitting processing based on each average gray value and the corresponding roughness to obtain the corresponding function model.

[0076] It can be seen that this step does not limit which function model is used for fitting. In the specific implementation process, a suitable function model can be selected for fitting.

[0077] Furthermore, this step may include:

[0078] The least squares fitting process is performed based on each average gray value and the corresponding roughness to obtain the corresponding function model.

[0079] Among them, the least squares method is a mathematical optimization technique that finds the best function match for data by minimizing the sum of squares of errors. This method can easily obtain unknown data and minimize the sum of squares of errors between the obtained data and the actual data. The least squares method is most suitable for curve fitting and solving regression problems.

[0080] S103, performing surface polarization image acquisition processing on the target to be measured to obtain a corresponding polarization image to be measured, and calculating a corresponding average grayscale value to be measured;

[0081] On the basis of S102, this step aims to perform surface polarization image acquisition processing on the target to be measured, obtain the corresponding polarization image to be measured, and calculate the corresponding average grayscale value to be measured.

[0082] S104, performing roughness calculation on the average gray value based on the function model to obtain a target roughness.

[0083] On the basis of S103, this step aims to calculate the roughness of the average gray value based on the function model to obtain the target roughness.

[0084] Furthermore, the camera lens is a CCD camera lens.

[0085] Furthermore, it may also include:

[0086] The target roughness is displayed through a preset path.

[0087] The preset path may be a sound, a text message, or a display via a web page.

[0088] It can be seen that this embodiment has the following beneficial effects:

[0089] Non-contact measurement: This method uses non-contact measurement technology to avoid any physical damage to the surface of the measured part. It is especially suitable for sensitive materials or precision parts that are easily affected by contact measurement.

[0090] High precision: By establishing a correlation model between the brightness and roughness information after polarized light illumination, this method can achieve high-precision surface roughness measurement and meet the strict requirements for precision in the design, production and use of mechanical products.

[0091] Cost-effectiveness: Compared with the traditional touch method, probe method and optical method, the measuring method of the present invention has a lower cost because it does not require expensive equipment and complicated calibration process, making the measurement more cost-effective.

[0092] Miniaturized measurement system: Since this method does not require large optical equipment or microscopes, the measurement system can be miniaturized, easy to carry and use on site, and improves the convenience of measurement.

[0093] Reducing human errors: Through automated image acquisition and data analysis, the present invention effectively reduces the impact of human factors on measurement results and improves the objectivity and accuracy of measurement.

[0094] Strong adaptability: This method can effectively avoid the influence of high reflection and is suitable for surface roughness measurement of various materials and colors, which enhances the versatility and adaptability of the measurement method.

[0095] The following is a further description of a workpiece surface roughness measurement method provided by the present application through another specific embodiment.

[0096] Please refer to Figure 2 , Figure 2 A schematic diagram of the structure of a method for measuring the surface roughness of a workpiece provided in an embodiment of the present application.

[0097] Please refer to Figure 3 , Figure 3 A schematic diagram of a sample block of a workpiece surface roughness measurement method provided in an embodiment of the present application.

[0098] Please refer to Figure 4 , Figure 4 A function curve diagram of a workpiece surface roughness measurement method provided in an embodiment of the present application.

[0099] Please refer to Figure 5 , Figure 5 This is a result output diagram of a workpiece surface roughness measurement method provided in an embodiment of the present application.

[0100] This embodiment may include:

[0101] Step 1: Build a polarization image acquisition platform: Build a polarization image acquisition platform, such as Figure 2The platform includes an active polarized light illumination system and a CCD camera. The illumination system is equipped with a light source with adjustable brightness and an output surface covered with a polarizer to produce polarized light. The CCD camera lens is equipped with a polarizer as an analyzer to measure the degree of depolarization of the reflected light after the polarized light is incident on the surface to be tested.

[0102] Step 2, standard roughness sample preparation: Select a series of standard samples with different known surface roughness, such as Figure 3 As shown, these samples will be used to establish the correlation model between polarization images and surface roughness.

[0103] Step 3, polarization image acquisition: Place the standard roughness sample on the area to be measured, and adjust the height and angle of the light source to ensure that a clear and non-overexposed polarization image is obtained, while ensuring that these parameters remain unchanged in subsequent measurements.

[0104] Step 4, polarizer adjustment: Rotate the polarizer of the CCD camera lens until it reaches the depolarization position, that is, the angle with the lowest brightness of the surface to be measured, stop rotating, and obtain the polarization image of the standard sample.

[0105] Step 5, image processing: grayscale transformation is performed on the collected polarization image to obtain a grayscale image, and the average grayscale value of each image is calculated.

[0106] Step 6, model building: perform least squares fitting on the average gray value of each standard sample block and its corresponding known roughness value, such as Figure 4 As shown, a function model between the average brightness value (grayscale value) and the roughness (nominal roughness) is established.

[0107] Step 7, surface roughness measurement: For the workpiece or device to be measured, repeat steps 3 to 5 to obtain the average grayscale value of its surface polarization image. Then, substitute the average grayscale value into the function model established in step 6, as shown in Figure 5 As shown, the surface roughness value of the workpiece or equipment to be measured is calculated.

[0108] Step 8, result verification: Verify the accuracy and reliability of the method of the present invention by comparing with the surface roughness value obtained by the traditional measurement method.

[0109] It can be seen that this embodiment achieves high-precision measurement of surface roughness by establishing a correlation model between brightness and roughness information after polarized light illumination. It not only avoids damage to the measured surface, but also has the advantages of low cost, high precision, and easy miniaturization, which can effectively overcome the problems existing in the prior art.

[0110] The workpiece surface roughness measuring device provided in an embodiment of the present application is introduced below. The workpiece surface roughness measuring device and the workpiece surface roughness measuring method described below can be referenced to each other.

[0111] Please refer to Figure 6 , Figure 6 A schematic structural diagram of a workpiece surface roughness measuring device provided in an embodiment of the present application.

[0112] In this embodiment, the device may include:

[0113] The polarization data acquisition module 100 is used to acquire the polarization image of each roughness standard sample block and calculate the average gray value of the polarization image of each roughness standard sample block;

[0114] A function model fitting module 200 is used to perform function model fitting processing based on each average gray value and the corresponding roughness to obtain a corresponding function model;

[0115] The polarization image acquisition module 300 is used to acquire the surface polarization image of the target to be measured, obtain the corresponding polarization image to be measured, and calculate the corresponding average gray value to be measured;

[0116] The target roughness calculation module 400 is used to perform roughness calculation on the average gray value based on the function model to obtain the target roughness.

[0117] It can be seen that this embodiment achieves high-precision measurement of surface roughness by establishing a correlation model between brightness and roughness information after polarized light illumination. It not only avoids damage to the measured surface, but also has the advantages of low cost, high precision, and easy miniaturization, which can effectively overcome the problems existing in the prior art.

[0118] This application also provides measurement equipment, please refer to Figure 7 , Figure 7 This is a schematic diagram of the structure of a measuring device provided in an embodiment of the present application. The measuring device may include:

[0119] Memory for storing computer programs;

[0120] The processor is used to implement the steps of any of the above-mentioned methods for measuring the surface roughness of a workpiece when executing a computer program.

[0121] like Figure 7 , which is a schematic diagram of the composition structure of the measuring device, the measuring device may include: a processor 10, a memory 11, a communication interface 12 and a communication bus 13. The processor 10, the memory 11 and the communication interface 12 all communicate with each other through the communication bus 13.

[0122] In the embodiment of the present application, the processor 10 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic devices.

[0123] The processor 10 may call a program stored in the memory 11. Specifically, the processor 10 may execute operations in an embodiment of the abnormal IP identification method.

[0124] The memory 11 is used to store one or more programs, which may include program codes, and the program codes include computer operation instructions. In the embodiment of the present application, the memory 11 at least stores programs for implementing the following functions:

[0125] The measuring device obtains the polarization image of each roughness standard sample block, and calculates the average gray value of the polarization image of each roughness standard sample block;

[0126] Perform function model fitting processing based on each average gray value and the corresponding roughness to obtain the corresponding function model;

[0127] Perform surface polarization image acquisition processing on the target to be measured, obtain the corresponding polarization image to be measured, and calculate the corresponding average gray value to be measured;

[0128] The roughness is calculated based on the average gray value based on the function model to obtain the target roughness.

[0129] In a possible implementation, the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.

[0130] In addition, the memory 11 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device.

[0131] The communication interface 12 may be an interface of a communication module, and is used to connect to other devices or systems.

[0132] Of course, it should be noted that Figure 7 The structure shown does not constitute a limitation on the measuring device in the embodiment of the present application. In actual applications, the measuring device may include Figure 7 More or fewer components than shown, or combinations of certain components.

[0133] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods for measuring the surface roughness of a workpiece can be implemented.

[0134] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0135] For an introduction to the computer-readable storage medium provided in this application, please refer to the above method embodiment, and this application will not go into details here.

[0136] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0137] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0138] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0139] The above is a detailed introduction to a workpiece surface roughness measurement method, a workpiece surface roughness measurement device, a measuring device and a computer-readable storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A method for measuring the surface roughness of a workpiece, It is characterized in that include: The measuring device obtains the polarization image of each roughness standard sample block, and calculates the average gray value of the polarization image of each roughness standard sample block; Perform function model fitting processing based on each of the average grayscale values ​​and the corresponding roughness to obtain a corresponding function model; Perform surface polarization image acquisition processing on the target to be measured, obtain the corresponding polarization image to be measured, and calculate the corresponding average gray value to be measured; The roughness of the average gray value is calculated based on the function model to obtain the target roughness.

2. The method for measuring workpiece surface roughness according to claim 1, It is characterized in that Before the measuring device acquires the polarization image of each roughness standard sample, it also includes: The platform is built based on polarizing film, polarizing filter and camera lens to obtain a polarization image acquisition platform; Accordingly, the measuring device obtains polarization images of each roughness standard sample, including: The measuring device in the polarization image acquisition platform acquires the polarization image of each roughness standard sample block.

3. The method for measuring workpiece surface roughness according to claim 2, It is characterized in that The measuring device in the polarization image acquisition platform obtains the polarization image of each roughness standard sample, including: The measuring device places the roughness standard sample block in the polarization image acquisition platform; The polarizer is automatically adjusted by a mechanical arm until depolarization occurs; The corresponding polarization image is acquired through the camera lens.

4. The method for measuring workpiece surface roughness according to claim 3, It is characterized in that Calculate the average gray value of the polarization image of each roughness standard sample, including: Obtaining the gray value of each pixel in the polarization image of the roughness standard sample; An average value is calculated for all the gray values ​​to obtain the average gray value.

5. The method for measuring workpiece surface roughness according to claim 4, It is characterized in that Performing function model fitting processing based on each of the average grayscale values ​​and the corresponding roughness to obtain a corresponding function model includes: A least squares fitting process is performed based on each of the average grayscale values ​​and the corresponding roughness to obtain the corresponding function model.

6. The method for measuring workpiece surface roughness according to claim 5, It is characterized in that The camera lens is a CCD camera lens.

7. The method for measuring workpiece surface roughness according to claim 6, It is characterized in that Also includes: The target roughness is displayed through a preset path.

8. A workpiece surface roughness measuring device, It is characterized in that include: A polarization data acquisition module is used to acquire polarization images of each roughness standard sample block and calculate the average grayscale value of the polarization image of each roughness standard sample block; A function model fitting module, used for performing function model fitting processing based on each of the average grayscale values ​​and the corresponding roughness to obtain a corresponding function model; The polarization image acquisition module to be measured is used to obtain the surface polarization image of the target to be measured, obtain the corresponding polarization image to be measured, and calculate the corresponding average gray value to be measured; The target roughness calculation module is used to perform roughness calculation on the average gray value based on the function model to obtain the target roughness.

9. A measuring device, It is characterized in that include: Memory for storing computer programs; A processor is used to implement the steps of the workpiece surface roughness measurement method as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the workpiece surface roughness measurement method according to any one of claims 1 to 7 are implemented.