Blue film detection method and system, computer equipment, storage medium and program product
By using coaxial light source and image analysis technology with polarizers in blue film detection, the problems of inaccurate and low efficiency of manual judgment are solved, and the accurate detection of the number of blue film layers is achieved, which improves the accuracy and efficiency of detection. .
Patent Information
- Application Number
- CN202411040919.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-22
- 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.
Use a coaxial light source with a polarizer to illuminate the surface of the explosion-proof valve to be tested, collect images through the camera, and perform feature extraction, reflective intensity analysis and reflective morphology analysis on the image, judge the number of blue film layers, reduce the impact of strong reflection, and improve detection accuracy.
The accuracy and efficiency of blue film detection are improved without manual observation, ensuring the image quality of the explosion-proof valve surface and improving the accuracy and efficiency of detection.
Smart Images

Figure CN119006390A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image detection technology, and in particular to a blue film detection method, system, computer equipment, storage medium and program product. Background Art
[0002] An explosion-proof valve is a safety device used to control and prevent explosions in pressure vessels or piping systems caused by excessive internal pressure. The blue film is a protective film covering the exterior of the explosion-proof valve. It effectively prevents scratches, collisions, and corrosion during transportation, storage, and installation, maintaining a smooth and intact surface. Whether the number of blue film layers complies with installation and transportation specifications directly affects the safety of the explosion-proof valve during transportation, storage, and installation, so it is necessary to inspect the number of blue film layers.
[0003] In the related art, the number of layers of the blue film is estimated by manually visually inspecting its appearance, or by observing it with a flashlight, fluorescent light, etc., or by cutting or peeling off a small part of the blue film without affecting the function of the explosion-proof valve.
[0004] However, the above solution relies on manual judgment and may damage the integrity of the blue film, which is not accurate enough and inefficient. 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 equipment, storage medium and program product to solve the problem that blue film detection relies on manual judgment, may damage the integrity of the blue film, is inaccurate and inefficient.
[0006] In a first aspect, the present invention provides a blue film detection method, which is performed by a data processing device of a blue film detection system; the blue film detection system also includes a fixed bracket, a camera, a lens, and a coaxial light source with adjustable brightness; the camera and coaxial light source are arranged on the fixed bracket, and the camera, lens, coaxial light source, and explosion-proof valve to be tested are sequentially located on a target straight line; the coaxial light source is provided with a polarizer; the method comprises:
[0007] Acquire an image of the explosion-proof valve surface; the image of the explosion-proof valve surface is collected by the camera when the coaxial light source illuminates the surface of the explosion-proof valve to be tested;
[0008] Extracting features from the explosion-proof valve surface image to obtain a surface feature image of the explosion-proof valve;
[0009] Performing reflection intensity analysis and reflection morphology analysis based on the surface characteristic image of the explosion-proof valve to obtain a reflection analysis result of the explosion-proof valve surface;
[0010] Based on the reflection analysis result of the explosion-proof valve surface, the number of blue film layers on the surface of the explosion-proof valve to be tested is determined, and the blue film detection result is obtained by comparing it with the target number of layers.
[0011] In an optional embodiment, extracting features from the explosion-proof valve surface image to obtain the explosion-proof valve surface feature image includes:
[0012] The surface image of the explosion-proof valve is subjected to reflective area detection and grayscale gradient analysis to obtain a surface feature image of the explosion-proof valve.
[0013] In an optional embodiment, the performing of reflection intensity analysis and reflection morphology analysis based on the characteristic image of the explosion-proof valve surface to obtain the reflection analysis result of the explosion-proof valve surface includes:
[0014] The reflection intensity analysis and reflection shape analysis are performed on each detected reflection area respectively, and the distribution relationship between each reflection area is analyzed to obtain the reflection analysis result of the explosion-proof valve surface.
[0015] In an optional embodiment, the method of determining 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 explosion-proof valve surface and comparing the number of blue film layers with the target number of layers to obtain the blue film detection result includes:
[0016] The reflection analysis results of the explosion-proof valve surface are compared with the preset threshold value. The number of blue film layers on the surface of the explosion-proof valve to be tested is determined based on the comparison result, and the blue film detection result is obtained by comparing it with the target number of layers.
[0017] In an optional embodiment, before extracting features from the explosion-proof valve surface image, the method further includes:
[0018] The surface image of the explosion-proof valve is subjected to grayscale processing, filtering processing and contrast enhancement processing.
[0019] In a second aspect, the present invention provides a blue film detection system, the system comprising:
[0020] Fixed bracket for setting up camera and coaxial light source;
[0021] A coaxial light source equipped with a polarizer to illuminate the surface of the explosion-proof valve to be tested;
[0022] The camera, the lens, the coaxial light source, and the explosion-proof valve to be tested are sequentially located on a target straight line; the camera is used to capture 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;
[0023] Data processing equipment, including:
[0024] An image acquisition module, used for acquiring an image of the surface of the explosion-proof valve;
[0025] A feature extraction module is used to extract features from the explosion-proof valve surface image to obtain a feature image of the explosion-proof valve surface;
[0026] An analysis module, configured to perform reflection intensity analysis and reflection morphology analysis based on the surface characteristic image of the explosion-proof valve to obtain a reflection analysis result of the explosion-proof valve surface;
[0027] 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 reflection analysis result of the explosion-proof valve surface, and compare it with the target number of layers to obtain a blue film detection result.
[0028] In an optional embodiment, the fixed bracket further includes a moving module for adjusting the heights of the camera and the coaxial light source respectively.
[0029] In a third aspect, the present invention provides a computer device comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the blue film detection method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0030] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the blue film detection method of the first aspect or any corresponding embodiment thereof.
[0031] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, which are used to enable a computer to execute the blue film detection method of the first aspect or any corresponding embodiment thereof.
[0032] The technical solution provided by the present invention can have the following beneficial effects:
[0033] The blue film detection method provided by the present invention utilizes the principle that light passing through different layers of blue film produces different reflection and refraction effects. By illuminating the surface of the explosion-proof valve under test with a coaxial light source equipped with a polarizer, the method effectively reduces the unclear imaging caused by strong reflections from the surface of the explosion-proof valve under test, thereby ensuring the quality of the valve surface image and improving the accuracy of subsequent blue film detection. Subsequently, the valve surface image is subjected to feature extraction, reflection intensity analysis, and reflection morphology analysis to determine the number of blue film layers on the surface of the explosion-proof valve under test. This eliminates the need for manual observation and judgment, resulting in high accuracy and efficiency in blue film detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0035] Figure 1 is a schematic flow chart of a blue film detection method according to an embodiment of the present invention;
[0036] Figure 2 is a schematic flow chart 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 Schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0039] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present invention.
[0040] An explosion-proof valve is a safety device used to control and prevent explosions in pressure vessels or piping systems caused by excessive internal pressure. The blue film is a protective film covering the exterior of the explosion-proof valve. It effectively prevents scratches, collisions, and corrosion during transportation, storage, and installation, maintaining a smooth and intact surface. Whether the number of blue film layers complies with installation and transportation specifications directly affects the safety of the explosion-proof valve during transportation, storage, and installation, so it is necessary to inspect the number of blue film layers.
[0041] Related techniques estimate the number of layers by visually inspecting the blue film's appearance, observing it with a flashlight or fluorescent light, or by cutting or peeling off a small portion of the film without affecting the valve's function. However, these methods rely on manual judgment and may damage the film's integrity, making them inaccurate and inefficient.
[0042] Therefore, an embodiment of the present invention provides a blue film detection method, in which a coaxial light source with a polarizer is used to illuminate the surface of the explosion-proof valve to be tested to obtain an image of the explosion-proof valve surface, and then the surface image of the explosion-proof valve is subjected to feature extraction, reflection intensity analysis, and reflection morphology analysis in sequence to determine the number of blue film layers, so as to achieve the effect of high accuracy and efficiency in realizing the blue film detection function.
[0043] According to an 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 a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0044] This embodiment provides a blue film detection method, which is performed by a data processing device in a blue film detection system. The blue film detection system also includes a fixed bracket, a camera, a lens, and a coaxial light source with adjustable brightness. The camera and coaxial light source are mounted on the fixed bracket, and the camera, lens, coaxial light source, and explosion-proof valve to be tested are positioned sequentially on a target straight line. The coaxial light source is equipped with a polarizer. The data processing device can be a laptop, desktop computer, industrial computer, etc. Figure 1 FIG. 1 is a flow chart of a blue film detection method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0045] Step S101: Acquire a surface image of the explosion-proof valve.
[0046] The explosion-proof valve surface image is collected by the camera when the coaxial light source illuminates the surface of the explosion-proof valve to be tested.
[0047] A coaxial light source is a light source system in which multiple light sources share the same axis or optical path. By sharing the same axis or optical path, precise alignment between the multiple light sources can be ensured, thereby improving the stability and repeatability of the system. Furthermore, the coaxial design can reduce the number of optical components in the optical system, reduce light loss and scattering in the optical path, simplify the layout of the optical system, reduce space usage, reduce mechanical complexity, improve optical performance, and facilitate the integration and maintenance of the entire system. A polarizer is an optical device that allows light to pass only in a specific direction while blocking light in other directions. By adjusting the orientation of the polarizer, the polarization direction of the passing light can be controlled. When the surface of the explosion-proof valve to be tested is illuminated by a coaxial light source, since the surface of the explosion-proof valve to be tested is made of metal, and the metal surface usually has a high reflectivity, especially for non-polarized light, the metal surface can reflect light in almost all directions. This strong reflection will cause the camera to have bright reflective spots or areas when imaging the surface of the explosion-proof valve to be tested, affecting the quality of the image of the explosion-proof valve surface. Therefore, by setting a polarizer in the coaxial light source, the polarization direction of the coaxial light source light can be adjusted, so that the light passing through the polarizer is greatly weakened or completely blocked in the polarization direction, thereby reducing the reflected light in the polarization direction, reducing interference, and improving the image quality of the explosion-proof valve surface.
[0048] When light passes from one medium (such as air) to another (such as a blue film), it undergoes both reflection and refraction. Reflection occurs when part of the light is reflected off the surface of the medium and returned to the air, while refraction occurs when the remaining light passes through the medium and changes direction. When light from a coaxial light source passes through the blue film on the surface of the explosion-proof valve to be tested, both reflection and refraction occur simultaneously. The fewer layers of blue film, the less light is reflected. As the number of layers of blue film on the explosion-proof valve to be tested increases, the reflected light increases, and the brightness of the image of the explosion-proof valve surface captured by the camera increases. The number of layers of blue film can be detected based on the brightness of the image of the explosion-proof valve surface.
[0049] Optionally, the coaxial light source is adjusted to high brightness, for example, 80% of the maximum brightness, to prevent overexposure while ensuring the amount of image information on the surface of the explosion-proof valve.
[0050] Step S102: extracting features from the explosion-proof valve surface image to obtain a surface feature image of the explosion-proof valve.
[0051] After obtaining the surface image of the explosion-proof valve, an algorithm with feature extraction function can be used to extract features from the surface image of the explosion-proof valve. For example, edge detection and brightness detection are performed on the surface image of the explosion-proof valve to extract the light intensity and edge features of the reflective area to obtain a surface feature image of the explosion-proof valve.
[0052] Step S103 : performing reflection intensity analysis and reflection morphology analysis based on the surface feature image of the explosion-proof valve to obtain a reflection analysis result of the explosion-proof valve surface.
[0053] Based on the brightness information and edge area information of the explosion-proof valve surface feature image obtained after feature extraction, reflection intensity analysis and reflection morphology analysis are performed. Reflection intensity analysis can be to analyze the reflection intensity characteristics of the extracted reflective area. For example, the stronger the reflection intensity, the more blue film layers there are, and how strong the reflection intensity corresponds to how many layers of blue film, etc., and give a probability value of how many layers of blue film there may be. Reflection morphology analysis can be to analyze the edge characteristics of the extracted reflective area. If multiple reflective areas are extracted, it can also be analyzed whether there is a correlation between the edges of the multiple reflective areas, and whether the increase in the number of blue film layers will lead to a more diverse distribution of reflective areas.
[0054] Step S104: based on the reflection analysis result of the explosion-proof valve surface, determine the number of blue film layers on the surface of the explosion-proof valve to be tested, and compare it with the target number of layers to obtain a blue film detection result.
[0055] The results of the reflection analysis on the explosion-proof valve surface can be evaluated and scored according to preset standards. For example, the probability value of the number of blue film layers in each reflective area, the edge characteristics of each reflective area and the edge characteristics between each reflective area are compared with the preset standards, and the number of blue film layers is comprehensively judged. Then, according to actual needs, it is judged whether the number of blue film layers on the surface of the explosion-proof valve to be tested meets the packaging and transportation standards. For example, if the actual number of blue film layers required is one, but the judgment result is two layers, it is judged as a double blue film, which does not meet the actual needs, and the blue film test result is unqualified.
[0056] The blue film detection method provided in this embodiment utilizes the principle that light passing through different layers of blue film produces different reflection and refraction effects. By illuminating the surface of the explosion-proof valve under test with a coaxial light source equipped with a polarizer, this method effectively reduces the image blur caused by strong reflections from the valve surface, ensuring the quality of the valve surface image and improving the accuracy of subsequent blue film detection. Subsequently, the valve surface image is subjected to feature extraction, reflection intensity analysis, and reflection morphology analysis to determine the number of blue film layers on the valve surface. This eliminates the need for manual observation and judgment, resulting in highly accurate and efficient blue film detection.
[0057] This embodiment provides a blue film detection method, which is performed by a data processing device in a blue film detection system. The blue film detection system also includes a fixed bracket, a camera, a lens, and a coaxial light source with adjustable brightness. The camera and coaxial light source are mounted on the fixed bracket, and the camera, lens, coaxial light source, and explosion-proof valve to be tested are positioned sequentially on a target straight line. The coaxial light source is equipped with a polarizer. The data processing device can be a laptop, desktop computer, industrial computer, etc. Figure 2 FIG. 1 is a flow chart of a blue film detection method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0058] Step S201: Acquire a surface image of the explosion-proof valve.
[0059] The explosion-proof valve surface image is collected by the camera when the coaxial light source illuminates the surface of the explosion-proof valve to be tested.
[0060] For details, please see Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0061] Step S202 : pre-processing the explosion-proof valve surface image to obtain a pre-processed explosion-proof valve surface image.
[0062] Optionally, the explosion-proof valve surface image is grayscaled, filtered, and contrast-enhanced. Grayscaling converts a color image into a grayscale image, simplifying subsequent processing steps. Filtering removes high-frequency noise and smoothes the image. Contrast enhancement enhances the contrast of the explosion-proof valve surface image to better distinguish reflective areas. Optionally, filtering can be performed using methods such as Gaussian filtering and median filtering, and contrast enhancement can be performed using methods such as histogram equalization and contrast stretching.
[0063] Step S203 , performing feature extraction on the pre-processed explosion-proof valve surface image to obtain an explosion-proof valve surface feature image.
[0064] Feature extraction aims to extract features from the preprocessed image that can help determine the reflectivity of the blue film. Optionally, reflective area detection and grayscale gradient analysis are performed on the explosion-proof valve surface image to produce a characteristic image of the explosion-proof valve surface. Reflective area detection can be performed through threshold processing or edge detection to identify possible reflective areas in the explosion-proof valve surface image. These reflective areas may indicate reflective properties of the blue film surface or the enhanced effect of light reflected by multiple layers of blue film. Grayscale gradient analysis can analyze grayscale gradient changes in the explosion-proof valve surface image to detect changes or layers in the blue film reflectivity.
[0065] Step S204 : performing reflection intensity analysis and reflection morphology analysis based on the surface feature image of the explosion-proof valve to obtain a reflection analysis result of the explosion-proof valve surface.
[0066] Reflection intensity and shape analysis are performed on each detected reflective area, and the distribution relationship between each reflective area is analyzed to obtain the reflection analysis results of the explosion-proof valve surface. Since there may be multiple reflective areas on the explosion-proof valve surface, the explosion-proof valve surface feature image may also contain multiple reflective areas. Reflection intensity analysis and reflection shape analysis can be performed on each reflective area separately. Reflection shape analysis can analyze the edge shape characteristics of the reflective area. Reflection morphology 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. Reflection intensity analysis can analyze the intensity value and intensity variation of the reflective area.
[0067] The results of the explosion-proof valve surface reflection analysis include the probability of the number of blue film layers, shape characteristics, and distribution characteristics of each reflective area in the explosion-proof valve surface image. Specifically, for each reflective area, the probability value corresponding to the number of blue film layers is included, whether the edge shape of each reflective area meets the characteristics of light reflection, and whether the distribution pattern between each reflective area meets the reflective characteristics of multiple layers of blue film. For example, the probability that the first reflective area contains three layers of blue film is 60%, the probability that it contains two layers of blue film is 40%, and the probability that the edge shape of the first reflective area meets the reflective characteristics is 65%. The probability that the distribution of each reflective area meets the reflective characteristics of three layers of blue film is 70%, and so on.
[0068] Optionally, a neural network model with feature extraction, reflection intensity analysis, and reflection morphology analysis capabilities is used to process the explosion-proof valve surface feature image to obtain the explosion-proof valve surface reflection analysis results. This neural network model has been pre-trained using sample images of blue film detection. The blue film detection sample images include images of various layers of blue film covering the surfaces of various explosion-proof valves. The neural network model trained with the blue film detection sample images can perform feature extraction, reflection intensity analysis, and reflection morphology analysis on the explosion-proof valve surface images to obtain the explosion-proof valve surface reflection analysis results.
[0069] Step S205 , based on the reflection analysis result of the explosion-proof valve surface, determine the number of blue film layers on the surface of the explosion-proof valve to be tested, and compare it with the target number of layers to obtain a blue film detection result.
[0070] Optionally, the results of the reflection analysis on the explosion-proof valve surface are compared with a preset threshold value, and the number of blue film layers on the surface of the explosion-proof valve to be tested is determined based on the comparison result, and compared with the target number of layers to obtain a blue film detection result. The preset threshold value and the rules for how to determine the number of blue film layers on the surface of the explosion-proof valve to be tested based on the comparison result can be set according to actual needs. They can be set separately for each reflective area, or according to the average value of each reflective area. They can also be set separately for the number of blue film layers, whether they meet the shape characteristics, and whether they meet the morphological distribution characteristics. For example, the preset threshold values are set to 60%, 65%, and 70% respectively. Then, when the average probability of the blue film in each reflective area being the target number of layers exceeds 60%, the average probability of each reflective area meeting the shape characteristics exceeds 65%, and the probability that the distribution of each reflective area meets the morphological distribution characteristics exceeds 70%, the blue film is determined to be the target number of layers.
[0071] The target number of layers is set according to actual needs. When the determination result of the number of blue film layers does not meet the target number of layers, the blue film detection result is unqualified. When it meets the target number of layers, the blue film detection result is qualified.
[0072] The blue film detection method provided in this embodiment utilizes the principle that light passing through different layers of blue film produces different reflection and refraction effects. By illuminating the surface of the explosion-proof valve under test with a coaxial light source equipped with a polarizer, this method effectively reduces the image blur caused by strong reflections from the valve surface, ensuring the quality of the valve surface image and improving the accuracy of subsequent blue film detection. Subsequently, the valve surface image is subjected to feature extraction, reflection intensity analysis, and reflection morphology analysis to determine the number of blue film layers on the valve surface. This eliminates the need for manual observation and judgment, resulting in highly accurate and efficient blue film detection.
[0073] As one or more specific application examples of the embodiments of the present invention, the optimal implementation scheme or the solution that the inventor most wants to embody is described below in combination with specific application scenarios.
[0074] In this embodiment, the target number of layers is set to 1, that is, the ideal number of blue film layers on the explosion-proof valve to be tested is 1, and the blue film detection result is unqualified when the blue film has other layers.
[0075] Specifically, in this embodiment, when a single layer of blue film covers the surface of the explosion-proof valve to be tested, the surface of the valve to be tested can be observed through the blue film. In other words, the collected surface image of the explosion-proof valve contains information about the surface 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, the surface of the explosion-proof valve to be tested is difficult to observe through the blue film. In this case, the collected surface image of the explosion-proof valve has a high reflection intensity. Therefore, the reflection intensity difference between when the target number of layers is 1 and when the target number of layers is greater than 1 is significant. This simplifies the blue film detection process, omitting the step of performing reflection morphology analysis based on the characteristic image of the explosion-proof valve surface. Instead, only reflection intensity analysis is performed, obtaining the intensity value and intensity variation of the reflective area as the reflection analysis result of the explosion-proof valve surface. Next, a preset threshold is set based on the difference in reflective 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 based on the comparison result is set such that if the intensity value of the reflective area does not exceed the preset threshold, the number of blue film layers is determined to be 1, and the blue film test result is qualified; if the intensity value exceeds the preset threshold, the number of blue film layers is determined to be greater than 1, and the blue film test result is unqualified. Based on the above settings, blue film detection can be performed to obtain the blue film detection result.
[0076] In this embodiment, a blue film detection system is also provided. The data processing equipment in the system is used to implement the above embodiments and preferred implementations. The details that have been described are not repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function.
[0077] This embodiment provides a blue film detection system. Figure 3 As shown, it includes a fixing bracket 1, a coaxial light source 2, a camera 3 and a data processing device ( Figure 3 (not shown). A fixed bracket 1 is used to mount a camera and a coaxial light source. Coaxial light source 2, equipped with a polarizer, illuminates the surface of the explosion-proof valve under test. A camera 3, lens 4, coaxial light source 2, and explosion-proof valve under test 5 are positioned sequentially on a target line. Lens 4 is mounted on camera 3. Camera 3 is used to capture images of the valve surface when coaxial light source 2 illuminates the valve surface.
[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 explosion-proof valve surface image to obtain a characteristic image of the explosion-proof valve surface. The analysis module is used to analyze the reflection intensity and reflection morphology based on the characteristic image of the explosion-proof valve surface to obtain a reflection analysis result of the explosion-proof valve surface. The judgment module is used to determine the number of blue film layers on the surface of the explosion-proof valve under test based on the reflection analysis result of the explosion-proof valve surface, and compare it with the target number of layers to obtain a blue film detection result.
[0079] In an optional embodiment, the feature extraction module is further used to perform reflective area detection and grayscale gradient analysis on the explosion-proof valve surface image to obtain a feature image of the explosion-proof valve surface. Figure 2 The embodiments will not be described in detail here.
[0080] In an optional embodiment, the analysis module is further used to analyze the reflection intensity and reflection shape of each detected reflection area, and analyze the distribution relationship between each reflection area to obtain the reflection analysis result of the explosion-proof valve surface. Figure 2 The embodiments will not be described in detail here.
[0081] In an optional embodiment, the judgment module is further used to compare the reflection analysis result of the explosion-proof valve surface with a preset threshold value, and determine the number of blue film layers on the surface of the explosion-proof valve to be tested based on the comparison result as the blue film detection result. Figure 2 The embodiments will not be described in detail here.
[0082] In an optional embodiment, the data processing device further includes a pre-processing module for performing grayscale processing, filtering processing and contrast enhancement processing on the explosion-proof valve surface image. Figure 2 The embodiments will not be described in detail here.
[0083] In an optional embodiment, the fixing bracket further includes a moving module 6 for respectively adjusting the height of the camera 3 and the coaxial light source 2. Optionally, the moving modules 6 are respectively provided for the camera 3 and the coaxial light source 2, so that the height adjustment is more flexible.
[0084] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0085] The data processing device in the blue film detection system in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0086] An embodiment of the present invention further provides a computer device having the data processing device in the above-mentioned blue film detection system.
[0087] See also Figure 4 , Figure 4 is a structural diagram of a computer device provided by an optional embodiment of the present invention, such as Figure 4As shown, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components utilize different buses to communicate with each other and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in the memory or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Equally, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.
[0088] The processor 10 may be a central processing unit, a network processor, or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.
[0089] The memory 20 stores instructions that can be executed by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0090] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created based on the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0091] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state drive; the memory 20 may also include a combination of the above types of memory.
[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 via a bus or other means. Figure 4 The bus connection is taken as an example.
[0093] The input device 30 can receive input digital or character information and generate key signal input related to user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a trackpad, a touch pad, an indicator stick, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 can include a display device, an auxiliary lighting device (e.g., an LED), and a tactile feedback device (e.g., a vibration motor). The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display, and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0094] The embodiment of the present invention also provides a computer-readable storage medium. The above-mentioned method according to the embodiment of the present invention can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network 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 storage 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-mentioned types of memory. 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 a computer, a processor or hardware, the method shown in the above embodiment is implemented.
[0095] A portion of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the form in which the computer program instruction exists in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc. Accordingly, the way in which the computer program instruction is executed by the computer includes, but is 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 may be any available computer-readable storage medium or communication medium that can be accessed by the computer.
[0096] Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention. Such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A blue film detection method, characterized in that: The process is executed by a data processing device of a blue film detection system; the blue film detection system further comprises 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; The coaxial light source is provided with a polarizer; the method comprises: Acquire a surface image of the explosion-proof valve; 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 tested; Extracting features from the explosion-proof valve surface image to obtain an explosion-proof valve surface feature image; Perform reflection intensity analysis and reflection morphology analysis based on the surface characteristic image of the explosion-proof valve to obtain the reflection analysis result of the explosion-proof valve surface; Based on the reflection analysis result of the explosion-proof valve surface, the number of blue film layers on the surface of the explosion-proof valve to be tested is determined, and compared with the target number of layers to obtain the blue film detection result.
2. The method according to claim 1, characterized in that: The step of extracting features from the explosion-proof valve surface image to obtain the explosion-proof valve surface feature image comprises: The surface image of the explosion-proof valve is subjected to reflective area detection and grayscale gradient analysis to obtain a surface feature image of the explosion-proof valve.
3. The method according to claim 2, characterized in that The reflection intensity analysis and reflection morphology analysis based on the surface feature image of the explosion-proof valve are performed to obtain the reflection analysis result of the explosion-proof valve surface, including: The reflection intensity analysis and reflection shape analysis are performed on each detected reflection area respectively, and the distribution relationship between each reflection area is analyzed to obtain the reflection analysis result of the explosion-proof valve surface.
4. The method according to claim 3, characterized in that The method of determining 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 explosion-proof valve surface and comparing the number of blue film layers with the target number of layers to obtain the blue film detection result includes: The reflection analysis result of the explosion-proof valve surface is compared with the preset threshold value, and the number of blue film layers on the surface of the explosion-proof valve to be tested is determined according to the comparison result, and the blue film detection result is obtained by comparing it with the target number of layers.
5. The method according to any one of claims 1 to 4, characterized in that: Before extracting features from the explosion-proof valve surface image, the method further includes: The surface image of the explosion-proof valve is subjected to grayscale processing, filtering processing and contrast enhancement processing.
6. A blue film detection system, characterized in that: The system comprises: Fixed bracket for setting up camera and coaxial light source; A coaxial light source, provided with a polarizer, is used to illuminate the surface of the explosion-proof valve to be tested; The camera, the lens, the coaxial light source and the explosion-proof valve to be tested are sequentially located on a target straight line; 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; Data processing equipment, including: An image acquisition module, used for acquiring an image of the surface of the explosion-proof valve; A feature extraction module is used to extract features from the explosion-proof valve surface image to obtain a feature image of the explosion-proof valve surface; An analysis module, used to perform reflection intensity analysis and reflection morphology analysis based on the surface feature image of the explosion-proof valve to obtain a reflection analysis result of the explosion-proof valve surface; 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 reflection analysis result of the explosion-proof valve surface, and compare it with the target number of layers to obtain the blue film detection result.
7. The system according to claim 6, characterized in that The fixed bracket also includes a moving module for adjusting the height of the camera and the coaxial light source respectively.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the blue film detection method according to any one of claims 1 to 5 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the blue film detection method according to any one of claims 1 to 5.
10. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to enable a computer to execute the blue film detection method according to any one of claims 1 to 5.
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
Method, device and equipment for detecting integrity of liquid film on surface of substrate and storage medium
CN118348025A
Semiconductor device
JP2020155578A
Cover plate assembly, battery cell, battery module, battery pack, and apparatus
US20220109212A1
