Blue film detection method, system, computer device, storage medium and program product
The method uses a polarized light source to analyze blue membrane layers on pressure relief valves, ensuring accurate and efficient detection without damaging the membrane.
Patent Information
- Application Number
- CN202411040919.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2044-07-31
AI Technical Summary
In the prior art, blue film detection relies on manual judgment, and there are problems such as inaccurate and low efficiency, and may destroy the integrity of blue film.
A coaxial light source with a polarizer is used to irradiate the surface of the explosion-proof valve. After obtaining the image, the number of blue film layers is automatically judged through feature extraction, reflection intensity analysis and reflection form analysis.
It improves the accuracy and efficiency of blue film detection, reduces manual intervention, and avoids the damage of blue film.
Smart Images

Figure CN119006390B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image detection, and particularly to a blue film detection method, system, computer device, storage medium and program product. Background Art
[0002] An explosion-proof valve is a safety device used to control and prevent the explosion of a pressure vessel or pipeline system when the internal pressure is too high. A blue film is a protective film covering the outer surface of the explosion-proof valve, which can effectively prevent the surface of the explosion-proof valve from being scratched, collided or corroded during transportation, storage and installation, and keep the surface of the valve body smooth and intact. Whether the number of layers of the blue film meets the installation and transportation specifications directly affects the safety of the explosion-proof valve during transportation, storage and installation. Therefore, it is necessary to detect the number of layers of the blue film.
[0003] In the related art, the number of layers of the blue film is estimated by visually inspecting the appearance of the blue film manually, or by observing and estimating the number of layers with the aid of a flashlight, fluorescent lamp, etc., or by cutting or peeling off a small part of the blue film without affecting the function of the explosion-proof valve to obtain the number of layers.
[0004] However, the above solutions rely on manual judgment, and may also damage the integrity of the blue film, which is not accurate enough and has low efficiency. Summary of the Invention
[0005] In view of this, the purpose of the present invention is to provide a blue film detection method, system, computer device, storage medium and program product to solve the problems of relying on manual judgment during blue film detection, which may also damage the integrity of the blue film, being not accurate enough and having low efficiency.
[0006] In a first aspect, the present invention provides a blue film detection method, which is executed by a data processing device of a blue film detection system; the blue film detection system further includes a fixed bracket, a camera, a lens and a coaxial light source with adjustable brightness; the camera and the coaxial light source are arranged on the fixed bracket, and the camera, the lens, the coaxial light source and the explosion-proof valve to be measured are located on a target straight line in sequence; a polarizer is arranged in the coaxial light source; the method includes:
[0007] Obtain an image of the surface of the explosion-proof valve; the image of the surface of the explosion-proof valve is collected by the camera when the coaxial light source illuminates the surface of the explosion-proof valve to be measured;
[0008] Extract features from the image of the surface of the explosion-proof valve to obtain a surface feature image of the explosion-proof valve;
[0009] Based on the surface feature image of the explosion-proof valve, perform specular intensity analysis and specular morphology analysis to obtain a specular analysis result of the surface of the explosion-proof valve;
[0010] Based on the analysis result of the reflection on the surface of the explosion-proof valve, determine the number of blue film layers on the surface of the explosion-proof valve to be measured, and compare it with the target number of layers to obtain the blue film detection result.
[0011] In an alternative embodiment, the extracting features from the surface image of the explosion-proof valve to obtain the surface feature image of the explosion-proof valve includes:
[0012] Detect the reflection area and analyze the gray gradient of the surface image of the explosion-proof valve to obtain the surface feature image of the explosion-proof valve.
[0013] In an alternative embodiment, the analyzing the reflection intensity and reflection morphology based on the surface feature image of the explosion-proof valve to obtain the reflection analysis result of the explosion-proof valve surface includes:
[0014] Respectively perform reflection intensity analysis and reflection shape analysis on each detected reflection area, and analyze the distribution relationship between the reflection areas to obtain the reflection analysis result of the explosion-proof valve surface.
[0015] In an alternative embodiment, the judging the number of blue film layers on the surface of the explosion-proof valve to be measured based on the reflection analysis result of the explosion-proof valve surface, and comparing it with the target number of layers to obtain the blue film detection result includes:
[0016] Compare the reflection analysis result of the explosion-proof valve surface with a preset threshold, judge the number of blue film layers on the surface of the explosion-proof valve to be measured according to the comparison result, and compare it with the target number of layers to obtain the blue film detection result.
[0017] In an alternative embodiment, before extracting features from the surface image of the explosion-proof valve, the method further includes:
[0018] Perform gray-scale processing, filtering processing, and contrast enhancement processing on the surface image of the explosion-proof valve.
[0019] In a second aspect, the present invention provides a blue film detection system, which includes:
[0020] A fixed bracket for setting a camera and a coaxial light source;
[0021] The coaxial light source is provided with a polarizer and is used to illuminate the surface of the explosion-proof valve to be measured;
[0022] The camera, the lens, the coaxial light source, and the explosion-proof valve to be measured are sequentially located on a target straight line; the camera is used to collect the surface image of the explosion-proof valve when the coaxial light source illuminates the surface of the explosion-proof valve to be measured;
[0023] The data processing device includes:
[0024] An image acquisition module for acquiring the surface image of the explosion-proof valve;
[0025] A feature extraction module for extracting features from the surface image of the explosion-proof valve to obtain a surface feature image of the explosion-proof valve;
[0026] An analysis module for performing specular intensity analysis and specular morphology analysis based on the surface feature image of the explosion-proof valve to obtain a specular analysis result of the explosion-proof valve surface;
[0027] A judgment module for judging the number of blue film layers on the surface of the explosion-proof valve to be tested based on the specular analysis result of the explosion-proof valve surface and comparing it with the target number to obtain a blue film detection result.
[0028] In an optional implementation manner, the fixed bracket further includes a moving module for respectively adjusting the heights of the camera and the coaxial light source.
[0029] In a third aspect, the present invention provides a computer device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to execute the blue film detection method according to the first aspect or any corresponding implementation manner thereof.
[0030] In a fourth aspect, the present invention provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to cause a computer to execute the blue film detection method according to the first aspect or any corresponding implementation manner thereof.
[0031] In a fifth aspect, the present invention provides a computer program product, including computer instructions, and the computer instructions are used to cause a computer to execute the blue film detection method according to the first aspect or any corresponding implementation manner thereof.
[0032] The technical solution provided by the present invention may include the following beneficial effects:
[0033] The blue film detection method provided by the present invention utilizes the principle that light passing through blue films of different layers will produce different reflection and refraction effects. By illuminating the surface of the explosion-proof valve to be tested with a coaxial light source provided with a polarizer, it effectively reduces the unclear imaging caused by strong reflection on the surface of the explosion-proof valve to be tested, ensures the quality of the surface image of the explosion-proof valve, and improves the accuracy of subsequent blue film detection. Then, features of the surface image of the explosion-proof valve are extracted, specular intensity analysis and specular morphology analysis are performed in sequence to judge the number of blue film layers on the surface of the explosion-proof valve to be tested, without manual observation and judgment, and the accuracy and efficiency of blue film detection are good. Description of the Drawings
[0034] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0035] Figure 1 is a schematic flowchart of a blue film detection method according to an embodiment of the present invention;
[0036] Figure 2 is a schematic flowchart of another blue film detection method according to an embodiment of the present invention;
[0037] Figure 3 is a schematic structural diagram of a blue film detection system according to an embodiment of the present invention;
[0038] Figure 4 is a schematic hardware structure diagram of a computer device according to an embodiment of the present invention. Specific Embodiments
[0039] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.
[0040] An explosion-proof valve is a safety device used to control and prevent the explosion of a pressure vessel or pipeline system when the internal pressure is too high. A blue film is a protective film that covers the outer surface of the explosion-proof valve and can effectively prevent the surface of the explosion-proof valve from being scratched, collided, or corroded during transportation, storage, and installation, maintaining the smoothness and integrity of the valve body surface. Whether the number of layers of the blue film meets the installation and transportation specifications directly affects the safety of the explosion-proof valve during transportation, storage, and installation. Therefore, it is necessary to detect the number of layers of the blue film.
[0041] In the related art, the number of layers of the blue film is estimated by visually inspecting the appearance of the blue film manually, or by observing and estimating the number of layers in combination with a flashlight, fluorescent lamp, etc., or by cutting or peeling off a small part of the blue film without affecting the function of the explosion-proof valve to obtain the number of layers. However, the above solutions rely on manual judgment and may also damage the integrity of the blue film, being inaccurate and inefficient.
[0042] Therefore, the embodiment of the present invention provides a blue film detection method. By irradiating the surface of the explosion-proof valve to be measured with a coaxial light source with a polarizer, an image of the surface of the explosion-proof valve is obtained. Then, feature extraction, reflection intensity analysis, and reflection form analysis are sequentially performed on the image of the surface of the explosion-proof valve to determine the number of blue film layers, so as to achieve the effect of good accuracy and high efficiency when realizing the blue film detection function.
[0043] According to the embodiment of the present invention, an embodiment of a blue film detection method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0044] In this embodiment, a blue film detection method is provided, which is executed by the data processing device of the blue film detection system. The blue film detection system further includes a fixed bracket, a camera, a lens, and a coaxial light source with adjustable brightness. The camera and the coaxial light source are arranged on the fixed bracket, and the camera, the lens, the coaxial light source, and the explosion-proof valve to be measured are sequentially located on a target straight line. A polarizer is provided in the coaxial light source. The data processing device can be a laptop computer, a desktop computer, an industrial control computer, etc. Figure 1 is a flowchart of the blue film detection method according to the embodiment of the present invention, as Figure 1 shown, the process includes the following steps:
[0045] Step S101, obtain an image of the surface of the explosion-proof valve.
[0046] The image of the surface of the explosion-proof valve is collected by the camera when the coaxial light source illuminates the surface of the explosion-proof valve to be measured.
[0047] A coaxial light source refers to a light source system where multiple light sources share the same axis or the same optical path. By sharing the same axis or optical path, precise alignment between multiple light sources can be ensured, thereby improving the stability and repeatability of the system. Moreover, the coaxial design can reduce the number of optical elements in the optical system, lower the light loss and scattering in the optical path, simplify the layout of the optical system, reduce space occupancy, lower the mechanical structure complexity, improve the optical performance, and facilitate the integration and maintenance of the overall system. A polarizer is an optical device that allows only light rays in a specific direction to pass through while blocking light rays in other directions. By adjusting the direction of the polarizer, the polarization direction of the transmitted light can be controlled. When irradiating the surface of the explosion-proof valve to be measured with a coaxial light source, since the surface of the explosion-proof valve to be measured is made of metal, and metal surfaces usually have a high reflectivity, especially for unpolarized light, the metal surface can almost reflect light rays in all directions. This strong reflection will cause bright reflection points or areas to appear when the camera images the surface of the explosion-proof valve to be measured, affecting the quality of the explosion-proof valve surface image. Therefore, by setting a polarizer in the coaxial light source, the polarization direction of the coaxial light source rays can be adjusted, so that the light rays passing through the polarizer are significantly weakened or completely blocked in the polarization direction, thereby reducing the reflected light rays in the polarization direction, reducing interference, and improving the quality of the explosion-proof valve surface image.
[0048] When light rays enter from one medium (such as air) into another medium (such as a blue film), reflection and refraction will occur. Reflection means that part of the light rays are reflected back into the air at the surface of the medium, while refraction is that the remaining light rays pass through the medium and change direction. When the light rays of the coaxial light source pass through the blue film on the surface of the explosion-proof valve to be measured, both reflection and refraction will occur simultaneously. The fewer the number of layers of the blue film, the less light is reflected. As the number of blue films on the surface of the explosion-proof valve to be measured increases, the reflected light will increase, and the brightness of the explosion-proof valve surface picture captured by the camera will increase. Thus, the number of blue film layers can be detected based on the brightness of the explosion-proof valve surface picture.
[0049] Optionally, adjust the coaxial light source to a high brightness, such as 80% of the maximum brightness, to prevent overexposure while ensuring the amount of image information on the explosion-proof valve surface.
[0050] Step S102: Extract features from the explosion-proof valve surface image to obtain the explosion-proof valve surface feature image.
[0051] After obtaining the explosion-proof valve surface picture, an algorithm with feature extraction capabilities can be used to extract features from the explosion-proof valve surface picture. Exemplarily, perform edge detection, brightness detection, etc. on the explosion-proof valve surface picture, extract the light intensity and edge features of the reflective area, and obtain the explosion-proof valve surface feature image.
[0052] Step S103: Based on the surface feature image of the explosion-proof valve, perform specular intensity analysis and specular morphology analysis to obtain the surface specular analysis result of the explosion-proof valve.
[0053] Based on the brightness information, edge region information, etc. of the surface feature image of the explosion-proof valve obtained after feature extraction, perform specular intensity analysis and specular morphology analysis. The specular intensity analysis can be to analyze the specular intensity characteristics of the extracted specular regions. For example, the stronger the specular intensity, the more layers of blue film there are, and what probability value of the specular intensity corresponds to how many layers of blue film, etc., and give the probability value of how many layers the blue film may have. The specular morphology analysis can be to analyze the edge characteristics of the extracted specular regions. If multiple specular regions are extracted, it can also be analyzed whether there is an association between the edges of the multiple specular regions, and whether the increase in the number of blue film layers will lead to a more diverse distribution of specular regions, etc.
[0054] Step S104: Based on the surface specular analysis result of the explosion-proof valve, judge the number of blue film layers on the surface of the explosion-proof valve to be measured, and compare it with the target number of layers to obtain the blue film detection result.
[0055] The surface specular analysis result of the explosion-proof valve can be evaluated and scored according to a preset standard. For example, for the probability value of the number of blue film layers in each specular region, the edge characteristics of each specular region and between each specular region, compare with the preset standard, comprehensively judge to obtain the number of blue film layers, and then judge whether the number of blue film layers on the surface of the explosion-proof valve to be measured meets the packaging and transportation standards, etc. according to actual needs. For example, if the actual required number of blue film layers is one layer, and the judgment result is two layers, it is determined that there is a double-layer blue film, which does not meet the actual needs, and the blue film detection result is unqualified.
[0056] The blue film detection method provided in this embodiment utilizes the principle that light passing through blue films with different numbers of layers will produce different reflection and refraction effects. By illuminating the surface of the explosion-proof valve to be measured with a coaxial light source provided with a polarizer, it effectively reduces the imaging blur caused by strong reflection on the surface of the explosion-proof valve to be measured, ensures the quality of the surface image of the explosion-proof valve, and improves the accuracy of subsequent blue film detection. Then, sequentially perform feature extraction, specular intensity analysis, and specular morphology analysis on the surface image of the explosion-proof valve to judge the number of blue film layers on the surface of the explosion-proof valve to be measured, without manual observation and judgment, and has good accuracy and high efficiency in blue film detection.
[0057] In this embodiment, a blue film detection method is provided, which is executed by the data processing device of the blue film detection system. The blue film detection system further includes a fixed bracket, a camera, a lens, and a coaxial light source with adjustable brightness. The camera and the coaxial light source are arranged on the fixed bracket, and the camera, the lens, the coaxial light source, and the explosion-proof valve to be measured are sequentially located on a target straight line. A polarizer is provided in the coaxial light source. The data processing device can be a laptop computer, a desktop computer, an industrial control computer, etc. Figure 2 It is a flowchart of the blue film detection method according to an embodiment of the present invention, asFigure 2 As shown in Figure 2 , the process includes the following steps:
[0058] Step S201: Obtain the surface image of the explosion-proof valve.
[0059] The surface image of the explosion-proof valve is collected by the camera when the coaxial light source illuminates the surface of the explosion-proof valve to be measured.
[0060] For details, please refer to Figure 1 Step S101 of the embodiment shown, which will not be elaborated here.
[0061] Step S202: Preprocess the surface image of the explosion-proof valve to obtain the preprocessed surface image of the explosion-proof valve.
[0062] Optionally, perform grayscale processing, filtering processing, and contrast enhancement processing on the surface image of the explosion-proof valve. Grayscale processing can convert a color image into a grayscale image, simplifying subsequent processing steps. Filtering processing can remove high-frequency noise and smooth the image. Contrast enhancement processing can enhance the contrast of the surface image of the explosion-proof valve to better distinguish the reflective area. Optionally, perform filtering processing through Gaussian filtering, median filtering, etc., and perform contrast enhancement processing through histogram equalization, contrast stretching, etc.
[0063] Step S203: Extract features from the preprocessed surface image of the explosion-proof valve to obtain the surface feature image of the explosion-proof valve.
[0064] Feature extraction aims to extract features from the preprocessed image that are helpful for judging the blue film reflection situation. Optionally, perform reflective area detection and gray-scale gradient analysis on the surface image of the explosion-proof valve to obtain the surface feature image of the explosion-proof valve. Reflective area detection can be performed through threshold processing or edge detection to identify possible reflective areas in the surface image of the explosion-proof valve. These reflective areas may indicate the reflection of the blue film surface and the enhanced effect of the reflected light of multiple blue films. Gray-scale gradient analysis can analyze the gray-scale gradient change of the surface image of the explosion-proof valve to detect the change or level of blue film reflection.
[0065] Step S204: Based on the surface feature image of the explosion-proof valve, perform reflective intensity analysis and reflective form analysis to obtain the reflective analysis result of the explosion-proof valve surface.
[0066] For each detected reflective area, perform reflective intensity analysis and reflective shape analysis, and analyze the distribution relationship between each reflective area to obtain the reflective analysis result of the explosion-proof valve surface. Since there may be multiple reflective areas on the explosion-proof valve surface, the characteristic image of the explosion-proof valve surface may contain multiple reflective areas. Therefore, reflective intensity analysis and reflective shape analysis can be performed on each reflective area respectively. Reflective shape analysis can analyze the edge shape characteristics of the reflective area. Reflective form analysis includes both reflective shape analysis of the edge shape of a single reflective area and analysis of the distribution relationship between different reflective areas. Reflective intensity analysis can analyze the intensity value and intensity change of the reflective area.
[0067] The reflective analysis result of the explosion-proof valve surface includes the probability of the number of blue film layers, shape characteristics, and distribution characteristics of each reflective area in the explosion-proof valve surface picture. Specifically, for each reflective area, it includes the probability values corresponding to each layer number of the blue film layers, whether the edge shape of each reflective area conforms to the characteristics of light reflection, and whether the distribution form between each reflective area conforms to the characteristics of multi-layer blue film reflection. For example, the probability of the first reflective area containing 3 layers of blue film is 60%, the probability of containing 2 layers of blue film is 40%, and the probability of the edge shape of the first reflective area conforming to the reflection characteristics is 65%. The probability that the distribution of each reflective area conforms to the reflective characteristics of 3 layers of blue film is 70%, and so on.
[0068] Optionally, use a neural network model with feature extraction, reflective intensity analysis, and reflective form analysis functions to process the characteristic image of the explosion-proof valve surface to obtain the reflective analysis result of the explosion-proof valve surface. This neural network model has been pre-trained with blue film detection sample images. The blue film detection sample images contain pictures of blue films with various layer numbers covering various explosion-proof valve surfaces. The neural network model trained with blue film detection sample images can perform feature extraction, reflective intensity analysis, and reflective form analysis on the explosion-proof valve surface picture to obtain the reflective analysis result of the explosion-proof valve surface.
[0069] Step S205: Based on the reflective analysis result of the explosion-proof valve surface, judge the number of blue film layers on the surface of the explosion-proof valve to be measured, and compare it with the target layer number to obtain the blue film detection result.
[0070] Optionally, compare the surface reflection analysis result of the explosion-proof valve with a preset threshold, and judge the number of blue film layers on the surface of the explosion-proof valve to be measured according to the comparison result, and compare with the target number of layers to obtain the blue film detection result. The preset threshold and the rules for judging the number of blue film layers on the surface of the explosion-proof valve to be measured according to the comparison result can be set according to actual needs. They can be set separately for each reflective area, or can be set according to the average value of each reflective area. They can also be set separately for the number of blue film layers, whether they conform to the shape characteristics, whether they conform to the morphological distribution, etc. For example, if the preset thresholds are set to 60%, 65%, and 70% respectively, then when the average probability that the blue film in each reflective area is the target number of layers exceeds 60%, the average probability that each reflective area conforms to the shape characteristics exceeds 65%, and the probability that the distribution of each reflective area conforms to the morphological distribution characteristics exceeds 70%, it is determined that the blue film is the target number of layers.
[0071] The target number of layers is set according to actual needs. When the judgment result of the number of blue film layers does not conform to the target number of layers, the blue film detection result is unqualified; when it conforms, the blue film detection result is qualified.
[0072] The blue film detection method provided in this embodiment utilizes the principle that light passing through blue films with different numbers of layers will produce different reflection and refraction effects. By illuminating the surface of the explosion-proof valve to be measured with a coaxial light source equipped with a polarizer, it effectively reduces the unclear imaging caused by strong reflection on the surface of the explosion-proof valve to be measured, ensures the quality of the image on the surface of the explosion-proof valve, and improves the accuracy of subsequent blue film detection. Then, feature extraction, reflection intensity analysis, and reflection morphology analysis are successively performed on the image of the surface of the explosion-proof valve to judge the number of blue film layers on the surface of the explosion-proof valve to be measured, without manual observation and judgment, and the accuracy and efficiency of blue film detection are good.
[0073] As one or more specific application embodiments of the present invention, the optimal implementation scheme or the scheme that the inventor most wants to embody will be described below in combination with specific application scenarios.
[0074] In this embodiment, the target number of layers is set to 1. That is to say, the ideal number of blue film layers on the explosion-proof valve to be measured is 1, and the blue film detection result is unqualified when the number of blue film layers is other than 1.
[0075] Specifically, in this embodiment, when a single layer of blue film covers the surface of the explosion-proof valve to be tested, the situation on the surface of the explosion-proof valve to be tested can be observed through the blue film. That is, the image of the explosion-proof valve surface collected at this time contains the surface information of the explosion-proof valve to be tested, and the reflection intensity is low. When two or more layers of blue film cover the surface of the explosion-proof valve to be tested, it is difficult to observe the situation on the surface of the explosion-proof valve to be tested through the blue film. At this time, the reflection intensity of the image of the explosion-proof valve surface collected is high. Therefore, the difference in reflection intensity between the target number of layers being 1 and the target number of layers being greater than 1 is significant. Thus, the steps of blue film detection can be simplified, omitting the step of performing reflection morphology analysis based on the characteristic image of the explosion-proof valve surface, and only performing reflection intensity analysis to obtain the intensity value and intensity change of the reflection area as the analysis result of the explosion-proof valve surface reflection. Next, the preset threshold is set based on the difference in reflection intensity between the target number of layers being 1 and the target number of layers being greater than 1. The rule for determining the number of blue film layers on the surface of the explosion-proof valve to be tested according to the comparison result is set as follows: if the intensity value of the reflection area does not exceed the preset threshold, it is determined that the number of blue film layers is 1 and the blue film detection result is qualified; if it exceeds the preset threshold, it is determined that the number of blue film layers is greater than 1 and the blue film detection result is unqualified. Then, the blue film detection can be performed according to the above settings to obtain the blue film detection result.
[0076] In this embodiment, a blue film detection system is also provided. The data processing device in this system is used to implement the above-mentioned embodiments and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that can achieve a predetermined function.
[0077] This embodiment provides a blue film detection system, as Figure 3 shown, including a fixed bracket 1, a coaxial light source 2, a camera 3, and a data processing device ( Figure 3 not shown in the figure). The fixed bracket 1 is used to set the camera and the coaxial light source. The coaxial light source 2 is provided with a polarizer and is used to illuminate the surface of the explosion-proof valve to be tested. The camera 3, the lens 4, the coaxial light source 2, and the explosion-proof valve 5 to be tested are sequentially located on a target straight line. The lens 4 is installed on the camera 3, and the camera 3 is used to collect an image of the explosion-proof valve surface when the coaxial light source 2 illuminates the surface of the explosion-proof valve 5 to be tested.
[0078] The data processing device includes an image acquisition module, a feature extraction module, an analysis module, and a judgment module. The image acquisition module is used to acquire an image of the explosion-proof valve surface. The feature extraction module is used to extract features from the image of the explosion-proof valve surface to obtain a characteristic image of the explosion-proof valve surface. The analysis module is used to perform reflection intensity analysis and reflection morphology analysis based on the characteristic image of the explosion-proof valve surface to obtain an analysis result of the explosion-proof valve surface reflection. The judgment module is used to judge the number of blue film layers on the surface of the explosion-proof valve to be tested based on the analysis result of the explosion-proof valve surface reflection, and compare it with the target number of layers to obtain a blue film detection result.
[0079] In an alternative embodiment, the feature extraction module is further configured to detect the reflective area and analyze the gray gradient of the surface image of the explosion-proof valve, so as to obtain the surface feature image of the explosion-proof valve. For details, please refer to Figure 2 the embodiments, which will not be elaborated here.
[0080] In an alternative embodiment, the analysis module is further configured to analyze the reflection intensity and reflection shape of each detected reflective area respectively, and analyze the distribution relationship between the reflective areas, so as to obtain the surface reflection analysis result of the explosion-proof valve. For details, please refer to Figure 2 the embodiments, which will not be elaborated here.
[0081] In an alternative embodiment, the judgment module is further configured to compare the surface reflection analysis result of the explosion-proof valve with a preset threshold, and judge the number of blue film layers on the surface of the explosion-proof valve to be tested according to the comparison result, as the blue film detection result. For details, please refer to Figure 2 the embodiments, which will not be elaborated here.
[0082] In an alternative embodiment, the data processing device further includes a preprocessing module, which is configured to perform graying processing, filtering processing and contrast enhancement processing on the surface image of the explosion-proof valve. For details, please refer to Figure 2 the embodiments, which will not be elaborated here.
[0083] In an alternative embodiment, the fixed bracket further includes a moving module 6, which is configured to adjust the heights of the camera 3 and the coaxial light source 2 respectively. Optionally, a moving module 6 is provided for the camera 3 and the coaxial light source 2 respectively, so that the height adjustment is more flexible.
[0084] The further function descriptions of the above-mentioned modules and units are the same as those in the corresponding embodiments above, and will not be elaborated here.
[0085] The data processing device in the blue film detection system in this embodiment is presented in the form of functional units. Here, the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and a memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0086] The embodiment of the present invention further provides a computer device, which has the data processing device in the above-mentioned blue film detection system.
[0087] Please refer to Figure 4 , Figure 4 which is a schematic structural diagram of a computer device provided by an alternative embodiment of the present invention. As Figure 4As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including a high-speed interface and a low-speed interface. Each component communicates with each other using different buses and can be installed on a common motherboard or in other ways as needed. The processor can process instructions executed within the computer device, including instructions stored in the memory or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some alternative embodiments, if needed, multiple processors and / or multiple buses can be used together with multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (such as an array of servers, a set of blade servers, or a multi-processor system). Figure 4 In [the figure], one processor 10 is taken as an example.
[0088] The processor 10 can be a central processing unit, a network processor, or a combination thereof. Among them, the processor 10 can further include a hardware chip. The above hardware chip can be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The above programmable logic device can be a complex programmable logic device, a field programmable gate array, a generic array logic, or any combination thereof.
[0089] Among them, the memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiments.
[0090] The memory 20 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the computer device, etc. In addition, the memory 20 can include a high-speed random access memory and can also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some alternative embodiments, the memory 20 can optionally include a memory remotely set relative to the processor 10, and these remote memories can be connected to the computer device through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0091] The memory 20 can include a volatile memory, such as a random access memory; the memory can also include a non-volatile memory, such as a flash memory, a hard disk, or a solid-state drive; the memory 20 can also include a combination of the above types of memories.
[0092] The computer device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30, and the output device 40 may be connected by a bus or other means. Figure 4 Take the connection by bus as an example.
[0093] The input device 30 can receive input digital or character information, and generate key signal inputs related to the user settings and function controls of the computer device, such as a touch screen, a keypad, a mouse, a trackpad, a touchpad, a pointing stick, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED), and a haptic feedback device (e.g., a vibration motor), etc. The above display device includes, but is not limited to, a liquid crystal display, a light-emitting diode, a display, and a plasma display. In some alternative embodiments, the display device may be a touch screen.
[0094] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or be implemented as computer code that can be recorded on a storage medium, or be implemented by downloading through a network and originally stored in a remote storage medium or a non-transitory machine-readable storage medium and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid-state drive, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by the computer, the processor, or the hardware, the method shown in the above embodiments is implemented.
[0095] A part of the present invention can be applied as a computer program product, such as computer program instructions. When executed by a computer, through the operation of the computer, the methods and / or technical solutions according to the present invention can be called or provided. Those skilled in the art should be able to understand that the forms of existence of computer program instructions in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.
[0096] While embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations fall within the scope defined by the appended claims.
Claims
1. A method for detecting a blue film, characterized in that, Executed by the data processing device of the blue film detection system; the blue film detection system further includes a fixed bracket, a camera, a lens, and a coaxial light source with adjustable brightness; the camera and the coaxial light source are arranged on the fixed bracket, and the camera, the lens, the coaxial light source, and the explosion-proof valve to be tested are sequentially located on a target straight line; A polarizer is provided in the coaxial light source; the method includes: Obtaining an image of the surface of the explosion-proof valve; the image of the surface of the explosion-proof valve is collected by the camera when the coaxial light source illuminates the surface of the explosion-proof valve to be tested; Performing feature extraction on the image of the surface of the explosion-proof valve to obtain a feature image of the surface of the explosion-proof valve; Performing reflection intensity analysis and reflection morphology analysis based on the feature image of the surface of the explosion-proof valve to obtain a reflection analysis result of the surface of the explosion-proof valve; wherein, the reflection analysis result of the surface of the explosion-proof valve includes the probability of the number of blue film layers in each reflection area in the image of the surface of the explosion-proof valve; Based on the reflection analysis result of the surface of the explosion-proof valve, judging the number of blue film layers on the surface of the explosion-proof valve to be tested, and comparing with the target number to obtain a blue film detection result; The step of judging the number of blue film layers on the surface of the explosion-proof valve to be tested based on the reflection analysis result of the surface of the explosion-proof valve and comparing with the target number to obtain a blue film detection result includes: Comparing the reflection analysis result of the surface of the explosion-proof valve with a preset threshold, and judging the number of blue film layers on the surface of the explosion-proof valve to be tested according to the comparison result, and comparing with the target number to obtain a blue film detection result.
2. The method according to claim 1, wherein The step of performing feature extraction on the image of the surface of the explosion-proof valve to obtain a feature image of the surface of the explosion-proof valve includes: Performing reflection area detection and gray-level gradient analysis on the image of the surface of the explosion-proof valve to obtain a feature image of the surface of the explosion-proof valve.
3. The method according to claim 2, wherein The step of performing reflection intensity analysis and reflection morphology analysis based on the feature image of the surface of the explosion-proof valve to obtain a reflection analysis result of the surface of the explosion-proof valve includes: Performing reflection intensity analysis and reflection shape analysis on each detected reflection area respectively, and analyzing the distribution relationship between the reflection areas to obtain a reflection analysis result of the surface of the explosion-proof valve.
4. The method according to any one of claims 1 to 3, characterized in that, Before performing feature extraction on the image of the surface of the explosion-proof valve, the method further includes: Performing grayscale processing, filtering processing, and contrast enhancement processing on the image of the surface of the explosion-proof valve.
5. A blue film detection system, characterized in that, The system includes: A fixed bracket for arranging the camera and the coaxial light source; A coaxial light source provided with a polarizer for illuminating the surface of the explosion-proof valve to be tested; A camera, which is sequentially located on a target straight line with the lens, the coaxial light source, and the explosion-proof valve to be tested; the camera is used to collect an image of the surface of the explosion-proof valve when the coaxial light source illuminates the surface of the explosion-proof valve to be tested; A data processing device, including: An image acquisition module for acquiring an image of the surface of the explosion-proof valve; A feature extraction module for performing feature extraction on the image of the surface of the explosion-proof valve to obtain a feature image of the surface of the explosion-proof valve; An analysis module for performing reflection intensity analysis and reflection morphology analysis based on the feature image of the surface of the explosion-proof valve to obtain a reflection analysis result of the surface of the explosion-proof valve; wherein, the reflection analysis result of the surface of the explosion-proof valve includes the probability of the number of blue film layers in each reflection area in the image of the surface of the explosion-proof valve; A judgment module for judging the number of blue film layers on the surface of the explosion-proof valve to be tested based on the reflection analysis result of the surface of the explosion-proof valve, and comparing with the target number to obtain a blue film detection result; The judgment module is further used for: Compare the surface reflection analysis result of the explosion-proof valve with a preset threshold value, and judge the number of blue film layers on the surface of the explosion-proof valve to be measured according to the comparison result, and obtain the blue film detection result by comparing with the target number of layers.
6. The system according to claim 5, wherein The fixed bracket further includes a moving module for respectively adjusting the heights of the camera and the coaxial light source.
7. A computer device, characterized in that, Comprising: A memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to execute the blue film detection method according to any one of claims 1 to 4.
8. A computer-readable storage medium, characterized in that, Computer instructions are stored on the computer-readable storage medium, and the computer instructions are used to cause a computer to execute the blue film detection method according to any one of claims 1 to 4.
9. A computer program product, characterized in that, Comprising computer instructions, the computer instructions are used to cause a computer to execute the blue film detection method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Detection system and detection method of battery cell explosion-proof valve
CN117723491A
Explosion-proof valve defect detection method and system
CN118294459A