Film layer evaluation method and device, storage medium and electronic equipment
By taking sample images from striped images through lenses with film attached to them, identifying blurred areas and obtaining feature parameters, the problem that the prior art cannot evaluate the performance of the film layer is solved, and accurate evaluation of the performance of the film layer and improving the quality of the lens is achieved.
Patent Information
- Application Number
- CN202411466734.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-21
- Publication Date
- 2025-03-18
AI Technical Summary
The prior art cannot effectively evaluate the degree of interference of the film layer on the striped image, resulting in the inability to evaluate the film layer performance and lens quality.
By acquiring the sample image taken by the striped image through the lens with the target film layer attached, the blurred region is identified, the characteristic parameters of the blurred region are obtained, and the performance of the film layer is evaluated based on these parameters.
Accurate evaluation of film layer performance is achieved, the accuracy of lens quality evaluation is improved, and the quality and yield of film layer is improved.
Smart Images

Figure CN119648613A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing technology, and in particular to a film layer evaluation method, device, storage medium and electronic device. Background Art
[0002] When the stripe image passes through a lens with a film layer attached, wave-like ripples will appear to varying degrees due to the interference of the film layer. If the film layer is unevenly attached to the lens, has poor thickness, and other factors, the film layer may seriously interfere with the imaging of the stripe image, thereby damaging the quality of the lens. However, there is currently no evaluation method to evaluate the degree of interference of the film layer on the stripe image, so it is impossible to evaluate the performance of the film layer and the quality of the lens accurately. Based on this, how to provide a new technical solution for evaluating the performance of the film layer is a technical problem that needs to be solved urgently. Summary of the invention
[0003] The embodiments of the present application provide a film layer evaluation method, device, storage medium and electronic device. The present application can provide a technical solution for evaluating film layer performance, thereby improving the accuracy of lens quality evaluation.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to a first aspect of an embodiment of the present application, a method for evaluating a film layer is provided, wherein a sample image is acquired, the sample image being obtained by photographing a stripe image through a target lens, the target lens having a target film layer attached thereto; a blurred area is identified from the sample image, the blurred area comprising at least one blurred band, the blurred band being an image area in the sample image having a clarity less than a preset clarity; characteristic parameters of the blurred area are acquired, the characteristic parameters being used to characterize the performance of the target film layer; and the performance of the target film layer is evaluated based on the characteristic parameters.
[0006] In some embodiments of the present application, based on the aforementioned scheme, identifying the blurred area from the sample image includes: traversing the sample image according to a set sliding step size according to a set rectangular window size, and determining the resolution score of the image within the rectangular window at each window position; generating an image to be identified based on all obtained resolution scores; and identifying the blurred area from the image to be identified.
[0007] In some embodiments of the present application, based on the aforementioned scheme, identifying the blurred area from the sample image includes: filtering the information in the sample image within a preset frequency range to obtain an image to be identified; and identifying the blurred area from the image to be identified.
[0008] In some embodiments of the present application, based on the aforementioned scheme, identifying the blurred area from the image to be identified includes: binarizing the image to be identified to obtain a binary image; denoising the binary image to obtain a target image; and identifying the blurred area from the target image.
[0009] In some embodiments of the present application, based on the aforementioned scheme, identifying the blurred area from the target image includes: identifying a black area from the target image, and using the black area as the blurred area, wherein the black area includes at least one black band, and the black band corresponds one-to-one to the blurred band.
[0010] In some embodiments of the present application, based on the aforementioned scheme, the obtaining of the characteristic parameters of the fuzzy area includes: drawing the minimum circumscribed rectangle of each black band in the black area; calculating the length and width of each minimum circumscribed rectangle; using the length and width of each minimum circumscribed rectangle as the characteristic parameters of the fuzzy area; and evaluating the performance of the target film layer based on the characteristic parameters, including: if the length of any minimum circumscribed rectangle is greater than a preset length, or the width of any circumscribed rectangle is greater than a preset width, then evaluating the target film layer as unqualified.
[0011] In some embodiments of the present application, based on the aforementioned scheme, obtaining the characteristic parameters of the fuzzy area includes: obtaining the number of fuzzy bands in the fuzzy area, and using the number as the characteristic parameter of the fuzzy area; based on the characteristic parameters, evaluating the performance of the target film layer, including: if the number is greater than a preset number, evaluating the target film layer as unqualified.
[0012] According to a second aspect of an embodiment of the present application, a device for evaluating a film layer is provided, the device comprising: a first acquisition unit, for acquiring a sample image, the sample image being obtained by photographing a stripe image through a target lens, the target lens having a target film layer attached thereto; an identification unit, for identifying a blurred area from the sample image, the blurred area comprising at least one blurred band, the blurred band being an image area in the sample image having a clarity less than a preset clarity; a second acquisition unit, for acquiring characteristic parameters of the blurred area, the characteristic parameters being used to characterize the performance of the target film layer; and an evaluation unit, for evaluating the performance of the target film layer based on the characteristic parameters.
[0013] According to a third aspect of an embodiment of the present application, a computer-readable storage medium is provided, characterized in that at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor to implement the operations performed by the method described in any one of the first aspects above.
[0014] According to a fourth aspect of an embodiment of the present application, an electronic device is provided, comprising one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the operations performed by the method described in any one of the first aspects above.
[0015] The technical solution of the present application first obtains a sample image obtained by shooting a stripe image through a target lens with a target film layer attached thereto; then identifies an image area whose clarity is less than a preset clarity from the sample image, i.e., a blurred area, wherein the blurred area includes at least one blurred band; then obtains characteristic parameters of the blurred area for characterizing the performance of the target film layer; and finally, based on the obtained characteristic parameters, evaluates the performance of the target film layer. It can be seen that the present application provides a technical solution for evaluating the performance of a film layer, which is simple and efficient, can achieve control of the quality of the film layer, improve the quality of the film layer, increase the yield of the film layer, and improve the accuracy of the evaluation of the lens quality.
[0016] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0018] Figure 1 A schematic diagram of a process for evaluating a film layer according to an embodiment of the present application is shown;
[0019] Figure 2 A schematic diagram showing a sample image according to an embodiment of the present application is shown;
[0020] Figure 3 A schematic diagram of an image to be recognized according to an embodiment of the present application is shown;
[0021] Figure 4 A schematic diagram of a binary image according to an embodiment of the present application is shown;
[0022] Figure 5 A schematic diagram of a target image according to an embodiment of the present application is shown;
[0023] Figure 6 A schematic diagram showing a method of obtaining characteristic parameters of the fuzzy area according to an embodiment of the present application is shown;
[0024] Figure 7 A block diagram showing a film layer evaluation device according to an embodiment of the present application is shown;
[0025] Figure 8 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0026] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0027] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0028] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0029] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0030] It should be noted that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the objects used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those shown or described.
[0032] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all the embodiments. Based on the embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0033] Some embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments may be combined with each other.
[0034] See also Figure 1 , shows a schematic flow chart of a method for evaluating a film layer according to an embodiment of the present application, which specifically includes steps 110 to 140.
[0035] Step 110 , obtaining a sample image, wherein the sample image is obtained by photographing the fringe image through a target lens, and a target film layer is attached to the target lens.
[0036] It should be noted that the striped image is composed of alternating straight stripes of two different colors, preferably alternating black and white straight stripes; the target lens can be applied to lenses, glasses, etc., and the present application does not limit this; the target film layer can be attached to the target lens by coating, attachment, etc., and the specific application does not limit this.
[0037] It should also be noted that when shooting the fringe image through the target lens, the target lens needs to be placed directly above the fringe image, and the shooting angle can be 90°, 45°, 0°, etc. between the light source and the lens. Alternatively, multiple images can be shot at different angles, and each image obtained by shooting is used as a sample image, so that multiple groups of evaluation results for the target film layer can be obtained by processing multiple sample images, thereby improving the accuracy of the evaluation of the target film layer.
[0038] Continue to see Figure 1 , step 120, identifying a blurred area from the sample image, wherein the blurred area includes at least one blurred band, and the blurred band is an image area in the sample image whose clarity is less than a preset clarity.
[0039] In order to make those skilled in the art better understand this embodiment, Figure 2 Provide explanation.
[0040] See also Figure 2 , shows a schematic diagram of a sample image according to an embodiment of the present application.
[0041] Figure 2 This is a sample image. It can be clearly seen that due to the interference of the film layer, multiple Figure 2 The wave-like ripples presented in area A are blur bands, and the clarity of the blur bands is less than the preset clarity.
[0042] from Figure 2 It can be clearly seen that there are multiple blur bands in the sample image. It can be understood that the image area composed of each blur band is the blur area. Of course, other image areas in the sample image except the blur area are image areas that are not disturbed by the film layer and can be defined as clear areas. The clear area is the image area in the sample image whose clarity is greater than or equal to the preset clarity.
[0043] In some implementations, in step 120 , a blurred area is identified from the sample image. There are two implementations as follows.
[0044] The first implementation manner may be performed according to the following steps 120A to 120C.
[0045] Step 120A, traverse the sample image according to the set size of the rectangular window and the set sliding step length, and determine the resolution score of the image in the rectangular window at each window position.
[0046] It should be noted that the size of the rectangular window can be set according to actual conditions, and the sliding step can be set to 1 pixel, two pixels, three pixels, etc., which is not limited in this application.
[0047] It should also be noted that the MTF algorithm, ie, Modulation Transfer Function (Modulation Transfer Function), can be used to calculate the resolution score of the image within the rectangular window.
[0048] Step 120B: Generate an image to be recognized based on all obtained resolution scores.
[0049] It can be understood that the resolution score can represent the ability to distinguish the details of the original object, that is, the resolution score corresponding to the image area in the sample image whose clarity is greater than or equal to the preset clarity will be greater than the image area whose clarity is less than the preset clarity, that is, the resolution score of the blurred area in the sample image will be lower than the resolution score of the clear area in the sample image.
[0050] It should be noted that, at each window position, the resolution score of the image in the corresponding rectangular window will be obtained, and all the obtained resolution scores are in the range of 0-1. The higher the resolution score, the higher the clarity of the corresponding image area. In some embodiments, the obtained resolution score can be converted into a grayscale value by multiplying it by 255 to generate the image to be recognized.
[0051] In order to make those skilled in the art better understand this embodiment, Figure 3 illustrate.
[0052] See also Figure 3 , shows a schematic diagram of an image to be recognized according to an embodiment of the present application.
[0053] Figure 3 Displayed as Figure 2 After the sample image in step 120A-120B is processed, the recognition image to be processed is obtained. It can be understood that because the resolution score corresponding to the blurred area is less than the resolution score corresponding to the clear area, after conversion to grayscale value, the grayscale value corresponding to the blurred area is lower than the grayscale value corresponding to the clear area. Figure 3 The image area with darker color in the image to be processed corresponds to the blurred area in the sample image.
[0054] It should be noted that Figure 3 In the B region, there is Figure 2 The image area corresponding to the blur band in area A in the sample image.
[0055] Step 120C: identifying the blurred area from the image to be identified.
[0056] In step 120 , a blurred area is identified from the sample image. There is another implementation method, which specifically includes the following steps 121 to 122 .
[0057] Step 121 : filtering the information in the sample image within a preset frequency range to obtain an image to be identified.
[0058] It should be noted that the information of the preset frequency range in the sample image is the information of the image area corresponding to the strong grayscale change in the sample image, and the information of the image area corresponding to the gentle grayscale change. It can be understood that the information of the preset frequency range is the information of the high-frequency part and the information of the low-frequency part in the sample image. In some embodiments, the sample image can be converted from the spatial domain to the frequency domain by Fourier transform, and then the high-frequency part and the low-frequency part in the frequency domain are filtered out to obtain the image to be identified. In some embodiments, the information of the preset frequency range in the sample image can also be filtered by wavelet transform processing to obtain the image to be identified. In the present application, the filtering method adopted can be designed according to the actual situation, and the present application is not limited here.
[0059] For example, if Fourier transform is used to filter the information of a preset frequency range in a sample image, and the sample image is obtained by photographing black and white stripes through a target lens, then the black stripes in the clear area of the sample image correspond to the high-frequency part of the information in the preset frequency range, and the white stripes in the clear area correspond to the low-frequency part of the information in the preset frequency range, that is, the information of the image area corresponding to the black and white stripes in the clear area of the sample image will be filtered, thereby obtaining an image to be recognized.
[0060] Step 122: identifying the blurred area from the image to be identified.
[0061] In some implementations, the identifying the blurred area from the image to be identified may be performed in accordance with steps 1221 to 1223 as follows.
[0062] Step 1221, binarize the image to be identified to obtain a binary image.
[0063] It can be understood that the binary image obtained after the binarization process only has grayscale values of 255 or 0. That is, the binary image presents an obvious visual effect of only black and white, which is more conducive to identifying the fuzzy area.
[0064] In order to make those skilled in the art better understand this embodiment, Figure 4 Provide explanation.
[0065] See also Figure 4, shows a schematic diagram of a binary image according to an embodiment of the present application.
[0066] like Figure 4 As shown, Figure 3 The binary image is obtained after the image to be identified is binarized. Figure 4 There is a Figure 2 The image area corresponding to the blur band in area A in the sample image.
[0067] from Figure 4 It can be clearly seen that the fuzzy area in the sample image has been clearly displayed, that is, the image area corresponding to the black area in the binary image.
[0068] Step 1222, denoising the binary image to obtain a target image.
[0069] In some implementations, an opening operation may be used to first erode the binary image, and then dilate the eroded result, thereby eliminating burrs, noise points, and smoothing boundaries in the binary image.
[0070] For details, see Figure 5 As shown, Figure 5 A schematic diagram of a target image according to an embodiment of the present application is shown.
[0071] from Figure 5 It can be seen that, Figure 5 In the D region, there is Figure 2 The image area corresponding to the blur band in area A in the sample image.
[0072] Step 1223, identifying the blurred area from the target image.
[0073] In some implementations, the identifying the blurred area from the target image may be performed according to the following step 12231.
[0074] Step 12231, identifying a black area from the target image, and using the black area as the fuzzy area, wherein the black area includes at least one black band, and the black band corresponds to the fuzzy band one by one.
[0075] Understandably, Figure 5 The black area shown in the figure is the blurred area in the sample image. Figure 5 The displayed image shows that Figure 5 The target image in shows multiple black bands, each of which corresponds to a blurred band existing in the black area of the sample image.
[0076] In this embodiment, the fuzzy area in the sample image can be identified through simple calculation processing, which is helpful to evaluate the performance of the target film layer, so as to improve the quality of the film layer and increase the yield of the film layer.
[0077] Continue to see Figure 1 , step 130, obtaining characteristic parameters of the fuzzy area, wherein the characteristic parameters are used to characterize the performance of the target film layer.
[0078] In some implementations, the following step 131 may be performed.
[0079] Step 131, draw the minimum bounding rectangle of each black band in the black area; calculate the length and width of each minimum bounding rectangle; and use the length and width of each minimum bounding rectangle as the characteristic parameters of the fuzzy area.
[0080] In order to make those skilled in the art better understand this embodiment, Figure 6 Provide explanation.
[0081] See also Figure 6 , showing a schematic diagram of obtaining characteristic parameters of the blurred area according to an embodiment of the present application.
[0082] By drawing the target image, at least one minimum bounding rectangle can be obtained. Figure 6 The black band 1 shown in the figure corresponds to a fuzzy band in the sample image. By drawing the minimum bounding rectangle for the black band 1, it is found that the length of the minimum bounding rectangle corresponding to the black band 1 is 648 pixels and the width is 80 pixels. Therefore, the length of the minimum bounding rectangle corresponding to the fuzzy band 1 is 648 pixels and the width is 80 pixels.
[0083] It can be understood that, through the technical solution of this embodiment, the length and width of the minimum circumscribed rectangle corresponding to each blur band in the sample image can be obtained, and these lengths and widths are used as characteristic parameters of the blur band.
[0084] It can be understood that if the length value of the minimum circumscribed rectangle corresponding to the fuzzy band is larger, or the width value is larger, it means that the target film layer has a greater degree of interference with the fringe image, and the target film layer can be evaluated based on this.
[0085] In some implementations, obtaining the characteristic parameters of the blurred area may also be performed according to the following step 130A.
[0086] Step 130A, obtaining the number of blur bands in the blur region, and using the number as a characteristic parameter of the blur region.
[0087] It can be understood that the number of blur bands in the blur area can be extracted from the sample image, or the image to be processed, or the binary image, or the target image in some embodiments of the present application.
[0088] It can also be understood that the number of blur bands in the blur region can reflect the uniformity of the target film layer attached to the target lens. The number of blur bands in the blur region can be used to measure the performance of the target film layer.
[0089] Continue to see Figure 1 , step 140, evaluating the performance of the target film layer based on the characteristic parameters.
[0090] In some embodiments, if the length of any minimum circumscribed rectangle is greater than a preset length, or the width of any circumscribed rectangle is greater than a preset width, the target film layer is evaluated as unqualified.
[0091] It can be understood that if only the length and width of each minimum circumscribed rectangle are used as the characteristic parameters of the fuzzy area, then the target film layer meets the requirements only when the length of each minimum circumscribed rectangle is less than or equal to the preset length and the width of each minimum circumscribed rectangle is less than or equal to the preset length.
[0092] In this embodiment, the preset length can be set to 800 pixels, 900 pixels, 1000 pixels, etc., and the preset width can be set to 90 pixels, 100 pixels, etc. Specifically, it can be designed according to actual needs, for example, it can be set according to customer contract requirements, and this application does not limit it here.
[0093] In some embodiments, if the number of fuzzy bands in the fuzzy region is greater than a preset number, the target film layer is evaluated as unqualified.
[0094] It can be understood that if only the number of fuzzy bands in the fuzzy region is used as the characteristic parameter of the fuzzy region, then the target film layer meets the requirements only when the number of fuzzy bands in the fuzzy region is less than or equal to a preset number.
[0095] In the present application, the characteristic parameters of the fuzzy area can be the length and width of each minimum circumscribed rectangle, or the number of fuzzy bands in the fuzzy area. In some embodiments, the length and width of each minimum circumscribed rectangle, and the number of fuzzy bands in the fuzzy area can be used as the characteristic parameters of the fuzzy area. Then, the evaluation of the target film layer can only be evaluated as qualified when the length of each minimum circumscribed rectangle is less than or equal to the preset length, the width of each minimum circumscribed rectangle is less than or equal to the preset width, and the number of fuzzy bands in the fuzzy area is less than or equal to the preset number.
[0096] In the technical solutions provided in some embodiments of the present application, a sample image is first obtained by photographing a stripe image through a target lens with a target film layer attached thereto; an image region whose clarity is less than a preset clarity, i.e., a blurred region, is then identified from the sample image, and the blurred region includes at least one blurred band; characteristic parameters of the blurred region used to characterize the performance of the target film layer are then obtained; and finally, the performance of the target film layer is evaluated based on the obtained characteristic parameters. It can be seen that the present application provides a technical solution for evaluating the performance of a film layer, which is simple and efficient, can achieve control of the quality of the film layer, improve the quality of the film layer, and improve the accuracy of the evaluation of the lens quality.
[0097] The following describes an apparatus embodiment of the present application, which can be used to perform the film evaluation method in the above-mentioned embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the embodiment of the film evaluation method in the above-mentioned embodiment of the present application.
[0098] Figure 7 A block diagram of a device for evaluating a film layer according to an embodiment of the present application is shown.
[0099] Reference Figure 7 As shown, a film layer evaluation device 700 according to an embodiment of the present application includes: a first acquisition unit 701 , an identification unit 702 , a second acquisition unit 703 , and an evaluation unit 704 .
[0100] Among them, the first acquisition unit 701 is used to acquire a sample image, which is obtained by photographing a stripe image through a target lens, and a target film layer is attached to the target lens; the identification unit 702 is used to identify a blurred area from the sample image, and the blurred area includes at least one blurred band, and the blurred band is an image area in the sample image whose clarity is less than a preset clarity; the second acquisition unit 703 is used to acquire characteristic parameters of the blurred area, and the characteristic parameters are used to characterize the performance of the target film layer; the evaluation unit 704 is used to evaluate the performance of the target film layer based on the characteristic parameters.
[0101] In some embodiments of the present application, based on the aforementioned scheme, the recognition unit 702 is also used to: traverse the sample image according to the set sliding step size according to the set size of the rectangular window, and determine the resolution score of the image in the rectangular window at each window position; generate the image to be recognized based on all the obtained resolution scores; and identify the blurred area from the image to be recognized.
[0102] In some embodiments of the present application, based on the above-mentioned scheme, the recognition unit 702 is further used to: filter the information in the sample image within a preset frequency range to obtain the image to be recognized; and recognize the blurred area from the image to be recognized.
[0103] In some embodiments of the present application, based on the aforementioned scheme, the recognition unit 702 is also used to: binarize the image to be recognized to obtain a binary image; denoise the binary image to obtain a target image; and identify the blurred area from the target image.
[0104] In some embodiments of the present application, based on the aforementioned scheme, the identification unit 702 is also used to: identify a black area from the target image, and use the black area as the blurred area, wherein the black area includes at least one black band, and the black band corresponds one-to-one to the blurred band.
[0105] In some embodiments of the present application, based on the aforementioned scheme, the second acquisition unit 703 is also used to: draw the minimum enclosing rectangle of each black band in the black area; calculate the length and width of each minimum enclosing rectangle; and use the length and width of each minimum enclosing rectangle as characteristic parameters of the blurred area.
[0106] In some embodiments of the present application, based on the above-mentioned solution, the second acquisition unit 703 is further used to: acquire the number of blur bands in the blur area, and use the number as a characteristic parameter of the blur area.
[0107] In some embodiments of the present application, based on the aforementioned scheme, the evaluation unit 704 is further used to: if the length of any minimum circumscribed rectangle is greater than a preset length, or the width of any circumscribed rectangle is greater than a preset width, then the target film layer is evaluated as unqualified.
[0108] In some embodiments of the present application, based on the above-mentioned solution, the evaluation unit 704 is further used to: if the number is greater than a preset number, evaluate the target film layer as unqualified.
[0109] Figure 8 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0110] It should be noted that Figure 8 The computer system 800 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0111] like Figure 8As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 802 or the program loaded from the storage part 808 to the random access memory (RAM) 803, such as executing the method described in the above embodiment. In RAM 803, various programs and data required for system operation are also stored. CPU 801, ROM 802 and RAM 803 are connected to each other through a bus 804. Input / output (I / O) interface 805 is also connected to bus 804.
[0112] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.
[0113] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 809, and / or installed from a removable medium 811. When the computer program is executed by a central processing unit (CPU) 801, various functions defined in the system of the present application are executed.
[0114] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0115] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0116] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0117] As another aspect, the present application also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the film layer evaluation method described in the above embodiment.
[0118] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the film layer evaluation method described in the above embodiment.
[0119] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0120] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0121] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary techniques in the art that are not disclosed in the present application. It should be understood that the present application is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for evaluating a film layer, characterized in that: The method comprises: Acquire a sample image, where the sample image is obtained by photographing the fringe image through a target lens, and a target film layer is attached to the target lens; Identifying a fuzzy area from the sample image, wherein the fuzzy area includes at least one fuzzy band, and the fuzzy band is an image area in the sample image whose clarity is less than a preset clarity; Acquiring characteristic parameters of the fuzzy area, wherein the characteristic parameters are used to characterize the performance of the target film layer; Based on the characteristic parameters, the performance of the target film layer is evaluated.
2. The method according to claim 1, characterized in that: The step of identifying a blurred area from the sample image comprises: According to the set size of the rectangular window, the sample image is traversed according to the set sliding step length, and the resolution score of the image in the rectangular window is determined at each window position; Generate an image to be recognized based on all obtained resolution scores; The blurred area is identified from the image to be identified.
3. The method according to claim 1, characterized in that The step of identifying a blurred area from the sample image comprises: Filtering the information in the sample image within a preset frequency range to obtain an image to be identified; The blurred area is identified from the image to be identified.
4. The method according to claim 2 or 3, characterized in that: The step of identifying the blurred area from the image to be identified includes: Binarizing the image to be identified to obtain a binary image; Performing denoising on the binary image to obtain a target image; The blurred area is identified from the target image.
5. The method according to claim 4, characterized in that The step of identifying the blurred area from the target image comprises: A black area is identified from the target image, and the black area is used as the fuzzy area, wherein the black area includes at least one black band, and the black band corresponds to the fuzzy band one by one.
6. The method according to claim 5, characterized in that The obtaining of the characteristic parameters of the fuzzy area includes: drawing the minimum bounding rectangle of each black band in the black area; calculating the length and width of each minimum bounding rectangle; and using the length and width of each minimum bounding rectangle as the characteristic parameters of the fuzzy area; The performance of the target film layer is evaluated based on the characteristic parameters, including: if the length of any minimum circumscribed rectangle is greater than a preset length, or the width of any circumscribed rectangle is greater than a preset width, then the target film layer is evaluated as unqualified.
7. The method according to claim 1, characterized in that The obtaining of the characteristic parameter of the fuzzy area includes: obtaining the number of fuzzy bands in the fuzzy area, and using the number as the characteristic parameter of the fuzzy area; The evaluating the performance of the target film layer based on the characteristic parameter includes: if the number is greater than a preset number, evaluating the target film layer as unqualified.
8. A film evaluation device, characterized in that: The device comprises: A first acquisition unit is used to acquire a sample image, wherein the sample image is obtained by photographing the fringe image through a target lens, and a target film layer is attached to the target lens; an identification unit, configured to identify a fuzzy area from the sample image, wherein the fuzzy area includes at least one fuzzy band, and the fuzzy band is an image area in the sample image whose clarity is less than a preset clarity; A second acquisition unit, used for acquiring characteristic parameters of the fuzzy area, wherein the characteristic parameters are used for characterizing the performance of the target film layer; An evaluation unit is used to evaluate the performance of the target film layer based on the characteristic parameters.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the operations performed by the method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: The method comprises one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the method according to any one of claims 1 to 7.