CN111209876B - Oil leakage defect detection method and system - Google Patents

Oil leakage defect detection method and system Download PDF

Info

Publication number
CN111209876B
CN111209876B CN202010027479.3A CN202010027479A CN111209876B CN 111209876 B CN111209876 B CN 111209876B CN 202010027479 A CN202010027479 A CN 202010027479A CN 111209876 B CN111209876 B CN 111209876B
Authority
CN
China
Prior art keywords
oil leakage
area
image
module
fluorescence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010027479.3A
Other languages
Chinese (zh)
Other versions
CN111209876A (en
Inventor
吴涛
陈贤碧
李昌洪
李超平
徐媛媛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangxi Xinkang Technology Co ltd
Original Assignee
Shantou University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shantou University filed Critical Shantou University
Priority to CN202010027479.3A priority Critical patent/CN111209876B/en
Publication of CN111209876A publication Critical patent/CN111209876A/en
Application granted granted Critical
Publication of CN111209876B publication Critical patent/CN111209876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/10Terrestrial scenes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M3/00Investigating fluid-tightness of structures
    • G01M3/02Investigating fluid-tightness of structures by using fluid or vacuum
    • G01M3/04Investigating fluid-tightness of structures by using fluid or vacuum by detecting the presence of fluid at the leakage point
    • G01M3/20Investigating fluid-tightness of structures by using fluid or vacuum by detecting the presence of fluid at the leakage point using special tracer materials, e.g. dye, fluorescent material, radioactive material
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10064Fluorescence image

Abstract

The invention provides a method and a system for detecting oil leakage defects, wherein the system comprises the following steps: the device comprises an ultraviolet light source module, a visible light imaging module, a parameter setting module, a display module, an alarm module and an image analysis module; the method comprises the following steps: s1: fixing the relative positions of an ultraviolet light source module and a visible light imaging module, wherein the irradiation direction of the ultraviolet light source module is relatively parallel to the shooting direction of the visible light imaging module, and after the ultraviolet light source module irradiates the area to be detected, the visible light imaging module collects high-definition image data of the area to be detected and transmits the high-definition image data to an image analysis module; s2: the image analysis module receives the high-definition image data, and an oil leakage defect detection and identification result is obtained through image analysis processing; s3: and transmitting the image and the character information of the oil leakage defect detection identification result to a display module for displaying, and transmitting the detection identification result signal to an alarm module for alarming. The invention enhances the anti-interference capability of the environment and avoids the influence of personal experience on the detection result.

Description

Oil leakage defect detection method and system
Technical Field
The invention relates to the technical field of oil leakage detection and identification, in particular to a method and a system for detecting oil leakage defects.
Background
At present, most of methods for detecting oil leakage adopt manual inspection, and require certain experience, and are distinguished by manual visual inspection and nasal smell. The manual inspection effect is greatly influenced by work experience, and a large amount of time is required to be occupied, so that the efficiency is low. In recent years, in the fields of petroleum exploration and development, monitoring of the content of oil pollutants in soil, monitoring of aircraft hydraulic oil leakage and sea surface oil spill and the like, a fluorescence detection technology is widely applied, a large number of research results are obtained, and the effectiveness of a petroleum fluorescence detection method is verified. But the method has the problems of lack of anti-interference capability to the environment and higher requirement on image acquisition equipment.
Chinese patent CN108844689A proposes a transformer oil leakage detection method. This patent utilizes the fluorescence characteristic of transformer oil composition, combines the transformer substation to patrol, to different oily formula equipment, carries out the rough search of large tracts of land at first, observes whether there is blue fluorescence phenomenon, carries out the accurate positioning to the region of oil blue fluorescence again to according to the depth and the scope of blue fluorescence, can judge the serious degree of seepage oil position and seepage. The method needs manual inspection, and requires certain experience of inspection personnel to interfere with other fluorescent substances to determine the oil leakage condition. The detection result is influenced by subjective consciousness and experience of the individual.
Chinese patent CN110455463A provides a transformer substation equipment oil stain detection system and method. The patent utilizes the characteristic that oil stains can generate fluorescence under the irradiation of ultraviolet laser, and determines a fluorescence area in a picture shot by an ultraviolet fluorescence camera as an oil stain area. The method needs to ensure that other fluorescent interferents can not exist in the environment, otherwise, false alarm can occur, and the anti-interference capability to the environment is lacked.
Chinese patent CN110174220a proposes a system and a method for detecting oil leakage of an on-load tap-changer of a transformer. According to the method, ultraviolet light is sent to the transformer on-load tap-changer to be detected, then fluorescence radiated after the transformer on-load tap-changer to be detected receives the ultraviolet light is received and processed, the fluorescence is converted into digital signals through a photoelectric signal sensor, and finally the received digital signals are analyzed through a data analysis device to obtain the oil leakage condition of the transformer on-load tap-changer to be detected. The method needs to filter fluorescence into monochromatic light through a monochromatic light filter, and then converts the monochromatic light into digital signals for analysis, and has higher requirements on image acquisition equipment.
At present, the following defects mainly exist in oil leakage defect detection and identification:
(1) The detection result is influenced by subjective consciousness and experience of the individual; other fluorescent substances generally appear in a patrol inspection place, when ultraviolet light is irradiated, the fluorescent substances of the non-oil liquid also emit fluorescence, certain interference is caused to oil leakage condition judgment, and a patrol worker needs to have certain experience to judge and eliminate the fluorescent substances of the non-oil liquid, so that the oil leakage condition is determined. The process and the detection result are influenced by subjective consciousness and experience of individuals, so that the detection result lacks stability.
(2) The anti-interference capability to the environment is lacked, the fluorescent area in the picture shot by the ultraviolet fluorescent camera is determined as the oil stain area, but the false alarm condition can occur when other non-oil fluorescent materials appear in the complex environment.
(3) The requirement on image acquisition equipment is high. New equipment needs to be designed or existing equipment needs to be modified, such as a monochromatic light filter is added, image acquisition is carried out, and then fluorescent substance detection and analysis are carried out to realize oil leakage condition detection.
Disclosure of Invention
The invention mainly aims to provide an oil leakage defect detection method, which can enhance the anti-interference capability of the environment, avoid the influence of personal subjective consciousness, experience and the like on the detection result and reduce the requirements on image acquisition equipment.
It is a further object of the present invention to provide an oil leakage defect detection and identification system.
In order to solve the technical problems, the technical scheme of the invention is as follows:
an oil leakage defect detection method comprises the following steps:
s1: fixing the relative positions of an ultraviolet light source module and a visible light imaging module, wherein the irradiation direction of the ultraviolet light source module and the shooting direction of the visible light imaging module both face to a region to be detected, the irradiation direction of the ultraviolet light source module and the shooting direction of the visible light imaging module are relatively parallel, a certain deflection angle is allowed to exist in the relative parallel directions, and the deflection angle ranges from 0 degree to 10 degrees in order to ensure the ultraviolet irradiation effect and the high-definition image acquisition effect, wherein the parameters of the visible light imaging module are set by using a parameter setting module, and after the ultraviolet light source module irradiates the region to be detected, the visible light imaging module acquires the high-definition image data of the region to be detected and transmits the high-definition image data to an image analysis module;
s2: the image analysis module receives the high-definition image data, and an oil leakage defect detection and identification result is obtained through image analysis processing;
s3: and transmitting the oil leakage defect detection and identification result to a display module for displaying, transmitting an oil leakage defect detection and identification result signal to an alarm module for alarming, and setting parameters of the display module and the alarm module by using a parameter setting module.
Preferably, the visible light imaging module is a high definition camera.
Preferably, in the step S1, the oil liquid at the oil leakage position in the region to be detected emits fluorescence due to a fluorescence effect under the irradiation of the ultraviolet light source, and the visible light imaging module acquires a high-definition fluorescence image.
Preferably, the image analysis processing step of the image analysis module in step S2 is specifically:
s21: extracting a fluorescence area as a suspected oil leakage area by utilizing the color and brightness characteristics of fluorescence of oil liquid in the high-definition fluorescence image through channel conversion and threshold processing, wherein if the fluorescence area does not exist, the oil leakage defect is judged to be absent, the shot high-definition fluorescence image is output, and an oil leakage signal is sent out; if there is a fluorescence region, the process proceeds to step S22;
s22: analyzing the area characteristics of a suspected oil leakage area, wherein fluorescent substances with small area interference detection, such as plastic fine scraps, residual oil stains and the like, exist in the area to be detected, the area to be detected is represented as a small-area fluorescent area under the ultraviolet irradiation, the small-area fluorescent area is removed by using area screening, and the influence of the fluorescent substances with small area interference detection is removed;
s23: performing shape characteristic analysis of the area, including eccentricity and rectangularity analysis, on the suspected oil leakage area judged by the area characteristic; if the oil leakage-like area is definitely in accordance with the shape characteristic analysis, judging that no oil leakage exists, outputting a shot high-definition fluorescence image, and sending an oil leakage-free signal; if the suspected oil leakage area conforms to the shape characteristic analysis, the oil leakage judgment and identification of the suspected oil leakage area are continuously carried out, and the step S24 is carried out;
s24: converting an original high-definition fluorescent multi-channel image into a single-channel gray image;
s25: performing regional gray level feature analysis, including gray level mean analysis, on the suspected oil leakage region judged and screened through the area feature and the shape feature in a single-channel gray level image; judging a suspected oil leakage area through gray scale characteristics, wherein the gray scale mean value is the gray scale mean value of a gray scale value set of a corresponding gray scale image at the suspected oil leakage area and reflects the brightness degree of the area, the oil leakage area is generally brighter, and the gray scale mean value is larger;
s26: integrating the judgment and identification results of the area characteristic, the shape characteristic and the gray characteristic to determine the oil leakage condition of the area to be detected; after the characteristic analysis and judgment of each suspected oil leakage area, if the oil leakage area exists, judging that the oil leakage defect exists, outputting a processing image for marking the oil leakage area, and sending an oil leakage alarm signal; if the oil leakage area does not exist, judging that no oil leakage defect exists, outputting a shot high-definition fluorescence image, and sending an oil leakage-free signal.
Preferably, the step S21 of extracting the fluorescence region specifically includes the following steps:
s211: the method comprises the steps of preprocessing an input high-definition fluorescence image, wherein the preprocessing comprises denoising and exponential transformation, in order to remove noise and keep image edge detail information as much as possible, denoising is carried out by using self-adaptive median filtering, and in order to further highlight a fluorescence area in the high-definition image, the contrast of a high-gray-value area is enhanced by using exponential transformation;
s212: the high-definition fluorescence image is an RGB three-channel image, and is decomposed into an R channel image, a G channel image and a B channel image;
s213: converting the R channel image, the G channel image and the B channel image to obtain an H (tone) channel image and a V (brightness) channel image in the HSV color model;
s214: obtaining an area 1 by carrying out threshold processing on an H (tone) channel image, wherein the area 1 is an area extracted according to the fluorescent color characteristics, and the identification of the oil fluorescent color is realized on the H (tone) channel image by carrying out threshold processing on the oil fluorescent color by utilizing the color characteristics of oil fluorescent light, so that the extraction of the area with the fluorescent color is realized; obtaining an area 2 by threshold processing on the V (brightness) channel image, wherein the area 2 is an area extracted according to the fluorescence brightness characteristic, and the oil fluorescence brightness is identified by the threshold processing on the V (brightness) channel image by utilizing the brightness characteristic of oil fluorescence, so that the extraction of the area with the fluorescence brightness is realized;
s215: and performing intersection operation on the region 1 and the region 2 to obtain an intersection region, which is the extracted fluorescence region.
Preferably, the conversion relationship for converting the R channel, G channel, and B channel images into the H (hue) channel image and the V (lightness) channel image in step S213 is:
R'=R/255
G'=G/255
B'=B/255
C max=max(R',G',B')
C min=mim(R',G',B')
Δ=C max-C min
Figure BDA0002362987960000041
V=C max
in the formula, R, G, B is an R channel image, a G channel image and a B channel image, R ', G ' and B ' are images of the R channel image, the G channel image and the B channel image after normalization processing, H is an H (hue) channel image in an HSV color model, and V is a V (brightness) channel image in the HSV color model.
Preferably, the shape feature analysis in step S23 includes eccentricity analysis, where the eccentricity can reflect the stretching degree of the region, and is specifically expressed as calculating the inertia spindle ratio, and the calculation formula is as follows:
Figure BDA0002362987960000051
/>
Figure BDA0002362987960000052
Figure BDA0002362987960000053
in the above formula, R is the region point set, n is the number of point sets, x is the abscissa of the point set, y is the ordinate of the point set, S is the region area,
Figure BDA0002362987960000054
is an average vector, mu ij The central moment of each step and the eccentricity calculation result are obtained, plastic products which play a role in fixing, such as nylon ribbons and the like, exist in the area to be detected, the plastic products are thin and long, and the eccentricity is generally large.
Preferably, the shape feature analysis in step S23 includes a squareness analysis, where the squareness represents how similar an object is to a rectangle, and the calculation formula is as follows:
Figure BDA0002362987960000055
in the above formula, A S Is the area of the region, A R For the minimum rectangular area surrounding the area, the rectangular label paper-pasted interference fluorescent substance is always present in the area to be detected, the squareness is generally close to 1, and the rectangular interference fluorescent substance can be removed by calculating the squareness.
Preferably, the conversion relationship of the original high-definition fluorescent multi-channel image into the single-channel gray-scale image in step S24 is:
Gray(i,j)=0.299*R(i,j)+0.578*G(i,j)+0.114*B(i,j)
in the formula, (i, j) is pixel coordinates, and R, G, B is an R channel image, a G channel image and a B channel image respectively.
Preferably, the step S26 of determining the oil leakage condition of the area to be measured specifically includes:
if the suspected oil leakage areas all meet the area characteristics, the shape characteristics and the gray level characteristics, judging that oil leakage occurs in the suspected oil leakage areas; and if the suspected steam leakage area does not meet one or more of the area characteristic, the shape characteristic and the gray characteristic, excluding the suspected oil leakage area from oil leakage.
A system applying the oil leakage defect detection method comprises the following steps:
the system comprises an image acquisition subsystem and an information interaction subsystem;
the image acquisition subsystem comprises an ultraviolet light source module and a visible light imaging module;
the information interaction subsystem comprises a parameter setting module, a display module, an alarm module and an image analysis module;
the ultraviolet light source module emits ultraviolet light to irradiate the area to be detected;
the visible light imaging module collects a high-definition visible light image of a region to be detected and transmits high-definition image data to the image analysis module;
the parameter setting module is used for setting parameters of the visible light imaging module, setting result display and setting alarm information by a user;
the display module displays an oil leakage defect detection recognition result image and prompts related information;
the alarm module sends an alarm prompt to the outside according to the oil leakage defect detection and identification result;
the image analysis module receives high-definition image data, and transmits the image character information and the alarm signal of the obtained oil leakage defect detection identification result to the display module and the alarm module respectively through image analysis processing.
According to the number of monitoring points and the complexity of the environment, the inspection robot, the fixed holder and the handheld device can be used as an image acquisition system carrying platform as required.
Compared with the prior art, the technical scheme of the invention has the beneficial effects that:
according to the method, ultraviolet light irradiation is carried out on a to-be-detected area, oil at an oil leakage point is visually displayed in a blue or purple fluorescence form, a high-definition camera is used for shooting an image of the area, hardware such as a monochromatic light filter is not needed to be added, requirements on image acquisition equipment are further increased, a digital image processing method is used for judging the area, the shape and the gray characteristic of the suspected oil leakage area, the influence of fluorescent substances of other non-oil liquids on a detection result is eliminated, the influence of personal subjective consciousness, experience and the like on the detection result is avoided, the influence of the fluorescent substances of other non-oil liquids on the detection result is eliminated, and meanwhile, the correctness and the stability of the detection result are guaranteed.
Drawings
FIG. 1 is a schematic flow chart of the method of the present invention.
Fig. 2 is a schematic flow chart of image analysis processing steps of the image analysis module.
FIG. 3 is a schematic flow chart of extracting fluorescence regions.
FIG. 4 is a schematic diagram of the system of the present invention.
Detailed Description
The drawings are for illustrative purposes only and are not to be construed as limiting the patent;
for the purpose of better illustrating the embodiments, certain features of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product;
it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
The technical solution of the present invention is further described below with reference to the accompanying drawings and examples.
Example 1
The embodiment provides a method for detecting an oil leakage defect, which specifically includes the following steps, as shown in fig. 1:
s1: fixing the relative positions of an ultraviolet light source module and a visible light imaging module, wherein the irradiation direction of the ultraviolet light source and the shooting direction of a high-definition camera face to a region to be detected, and the directions of the ultraviolet light source and the shooting direction of the high-definition camera are relatively parallel, the parameters of the visible light imaging module are set by using a parameter setting module, and after the ultraviolet light source module irradiates the region to be detected, the visible light imaging module collects high-definition image data of the region to be detected and transmits the high-definition image data to an image analysis module;
s2: the image analysis module receives the high-definition image data, and an oil leakage defect detection and identification result is obtained through image analysis processing;
s3: and transmitting the image and the character information of the oil leakage defect detection identification result to a display module for displaying, transmitting an oil leakage defect detection identification result signal to an alarm module for alarming, and setting the parameters of the display module and the alarm module by using a parameter setting module.
Further, the relative parallelism in S1 allows a certain deflection angle, and the deflection angle range is preferably less than 10 ° to ensure the ultraviolet irradiation effect and the high-definition image capturing effect.
Furthermore, oil at the oil leakage position can emit fluorescence due to the fluorescence effect under the irradiation of ultraviolet laser, and the visible light imaging module acquires a high-definition fluorescence image.
As shown in fig. 2, the image analysis process S2 of the image analysis module specifically includes:
s21: and (3) extracting a fluorescence area as a suspected oil leakage area by channel transformation and threshold processing by using a high-definition fluorescence image and utilizing the color and brightness characteristics of oil fluorescence. If no fluorescence area exists, judging that no oil leakage defect exists, outputting a shot high-definition fluorescence image, and sending an oil leakage signal; and if the fluorescence area exists, oil leakage judgment and identification are continued.
As shown in fig. 3, extracting the fluorescence region specifically includes:
s211: preprocessing an input high-definition fluorescence image, which specifically comprises the following steps: denoising and exponential transformation. In order to remove noise and simultaneously keep image edge detail information as much as possible, carrying out denoising treatment by using self-adaptive median filtering; to further highlight the fluorescence regions in the high definition image, the contrast of the high gray value regions is enhanced using an exponential transformation.
S212: and decomposing the high-definition fluorescent RGB three-channel image into an R channel image, a G channel image and a B channel image.
S213: and obtaining an H (hue) channel image and a V (brightness) channel image in the HSV color model by using the R channel, the G channel and the B channel image conversion.
Further, the conversion relationship for converting the R channel image, the G channel image, and the B channel image into the H (hue) channel image and the V (lightness) channel image is:
R'=R/255
G'=G/255
B'=B/255
C max=max(R',G',B')
C min=min(R',G',B')
Δ=C max-C min
Figure BDA0002362987960000081
V=C max
in the formula, R, G, B is an R channel image, a G channel image and a B channel image, R ', G ' and B ' are images of the R channel image, the G channel image and the B channel image after normalization processing, H is an H (hue) channel image in an HSV color model, and V is a V (brightness) channel image in the HSV color model.
S214: obtaining an area 1 by carrying out threshold processing on an H (tone) channel image; the region 2 is acquired by thresholding on the V (brightness) channel image.
Further, by utilizing the color characteristics of oil fluorescence, the identification of the oil fluorescence color is realized through threshold processing on an H (tone) channel image, so that the extraction of the area with the fluorescence color is realized, the removable limit value is 170 degrees, and the upper limit value is 225 degrees.
Further, by utilizing the brightness characteristic of oil fluorescence, the oil fluorescence brightness is identified through threshold processing on a V (brightness) channel image, so that the extraction of the area with the fluorescence brightness is realized, and the removable limit value is 0.8 and the upper limit value is 0.98.
S215: and performing intersection operation on the region 1 and the region 2 to obtain an intersection region, which is the extracted fluorescence region.
S22: and analyzing the area characteristics of the suspected oil leakage area. Fluorescent substances which have small areas and interfere detection, such as plastic fine scraps, residual oil stains and the like, often exist in the detection area, and the fluorescent areas with small areas and the areas smaller than 1 square centimeter are actually represented under the ultraviolet irradiation. And removing small-area areas by using area screening to remove the influence of the fluorescent substance interfering the detection of the small areas.
S23: performing shape characteristic analysis of the area, including eccentricity and rectangularity analysis, on the suspected oil leakage area judged by the area characteristic; if the oil leakage-like area is definitely in accordance with the shape characteristic analysis, judging that no oil leakage exists, outputting a shot high-definition fluorescence image, and sending an oil leakage-free signal; and if the suspected oil leakage area conforms to the shape characteristic analysis, the oil leakage judgment and identification of the suspected oil leakage area are continuously carried out, and the step S24 is carried out.
Further, the eccentricity may reflect the degree of stretching of the region. Specifically, the inertia main shaft ratio is calculated by the following formula:
Figure BDA0002362987960000091
Figure BDA0002362987960000092
Figure BDA0002362987960000093
wherein R is a region point set, n is the number of the point set, x is the abscissa of the point set, y is the ordinate of the point set, S is the region area,
Figure BDA0002362987960000094
is an average vector, mu ij The central moments of the respective orders, e, are the eccentricity calculation results. The detection area often has the plastic products of nylon ribbon etc. play the fixed action, all shows thin and long characteristic, and the eccentricity is generally greater than 7, and the regional eccentricity of oil leak is generally less than 4.
Further, the rectangle degree represents the similarity between an object and a rectangle, and represents the filling degree of the object to the external rectangle, and the calculation formula is as follows:
Figure BDA0002362987960000095
in the formula, A S Is the area of a region, A R Is the smallest rectangular area surrounding the region. Examination ofRectangular label pasting paper interference fluorescent substances often exist in the detection area, the rectangularity is generally larger than 0.9, and the rectangularity of an oil leakage area is generally smaller than 0.6.
S24: and converting the originally input high-definition fluorescent multi-channel image into a single-channel gray image.
Further, the conversion relationship of converting the high-definition image into the gray image is as follows:
Gray(i,j)=0.299*R(i,j)+0.578*G(i,j)+0.114*B(i,j)
in the formula, (i, j) is pixel coordinates, and R, G, B are an R channel image, a G channel image, and a B channel image, respectively.
S25: carrying out area gray scale characteristic including gray scale mean value analysis on the suspected oil leakage area judged and screened by the area and shape characteristic in a gray scale image; and judging the suspected oil leakage area through the gray characteristic.
Further, the gray average value is a gray average value of a gray value set of a gray map corresponding to the suspected oil leakage region, and reflects the brightness degree of the region, and the gray average value of the oil leakage region can be reduced by a limit value of 150 and an upper limit value of 255.
S26: and (4) integrating the judgment and identification results of the area characteristic, the shape characteristic and the gray characteristic to determine the oil leakage condition of the area to be detected. If the suspected oil leakage areas all meet the area characteristics, the shape characteristics and the gray level characteristics, judging that oil leakage occurs in the suspected oil leakage areas; and if the suspected steam leakage area does not meet one or more of the area characteristic, the shape characteristic and the gray characteristic, excluding the suspected oil leakage area from oil leakage. After the characteristic analysis and judgment of each suspected oil leakage area, if the oil leakage area exists, judging that the oil leakage defect exists, outputting a processing image for marking the oil leakage area, and sending an oil leakage alarm signal; if the oil leakage area does not exist, judging that no oil leakage defect exists, outputting a shot high-definition fluorescence image, and sending an oil leakage-free signal.
Example 2
The embodiment provides an oil leakage defect detection and identification system, as shown in fig. 4, which comprises an image acquisition subsystem and an information interaction subsystem;
the image acquisition subsystem comprises an ultraviolet light source module and a visible light imaging module;
the information interaction subsystem comprises a parameter setting module, a display module, an alarm module and an image analysis module;
the ultraviolet light source module emits ultraviolet light to irradiate the area to be detected;
the visible light imaging module collects a high-definition visible light image of a region to be detected and transmits high-definition image data to the image analysis module;
the parameter setting module is used for setting parameters of the visible light imaging module, displaying results and setting alarm information by a user;
the display module displays an oil leakage defect detection recognition result image and prompts related information;
the alarm module sends an alarm prompt to the outside according to the oil leakage defect detection and identification result;
the image analysis module receives high-definition image data, and transmits the image character information and the alarm signal of the obtained oil leakage defect detection identification result to the display module and the alarm module respectively through image analysis processing.
The same or similar reference numerals correspond to the same or similar parts;
the terms describing positional relationships in the drawings are for illustrative purposes only and are not to be construed as limiting the patent;
it should be understood that the above-described embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the claims of the present invention.

Claims (8)

1. An oil leakage defect detection method is characterized by comprising the following steps:
s1: fixing the relative positions of an ultraviolet light source module and a visible light imaging module, wherein the irradiation direction of the ultraviolet light source module and the shooting direction of the visible light imaging module face to a region to be detected, and the irradiation direction and the shooting direction of the visible light imaging module are relatively parallel, the parameters of the visible light imaging module are set by using a parameter setting module, and after the ultraviolet light source module irradiates the region to be detected, the visible light imaging module collects high-definition image data of the region to be detected and transmits the high-definition image data to an image analysis module;
s2: the image analysis module receives the high-definition image data, and an oil leakage defect detection and identification result is obtained through image analysis processing;
s3: transmitting the oil leakage defect detection identification result to a display module for displaying, transmitting an oil leakage defect detection identification result signal to an alarm module for alarming, and setting parameters of the display module and the alarm module by using a parameter setting module;
the image analysis processing step of the image analysis module in the step S2 specifically includes:
s21: extracting a fluorescence area as a suspected oil leakage area by utilizing the color and brightness characteristics of oil liquid fluorescence in the high-definition fluorescence image through channel conversion and threshold processing, wherein if the fluorescence area does not exist, the defect of no oil leakage is judged, the shot high-definition fluorescence image is output, and an oil leakage-free signal is sent out; if there is a fluorescence region, the process proceeds to step S22;
s22: analyzing the area characteristics of the suspected oil leakage area, and screening and removing a small-area fluorescence area interfering detection by using the area;
s23: performing shape characteristic analysis of the area, including eccentricity and rectangularity analysis, on the suspected oil leakage area judged by the area characteristic; if the oil leakage-like area is definitely in accordance with the shape characteristic analysis, judging that no oil leakage exists, outputting a shot high-definition fluorescence image, and sending an oil leakage-free signal; if the suspected oil leakage area conforms to the shape characteristic analysis, the oil leakage judgment and identification of the suspected oil leakage area are continuously carried out, and the step S24 is carried out;
s24: converting an original high-definition fluorescent multi-channel image into a single-channel gray image;
s25: performing regional gray level feature analysis, including gray level mean analysis, on the suspected oil leakage region judged and screened through the area feature and the shape feature in a single-channel gray level image; judging a suspected oil leakage area through the gray characteristic;
s26: integrating the judgment and identification results of the area characteristic, the shape characteristic and the gray characteristic to determine the oil leakage condition of the area to be detected; after the characteristic analysis and judgment of each suspected oil leakage area, if the oil leakage area exists, judging that the oil leakage defect exists, outputting a processing image for marking the oil leakage area, and sending an oil leakage alarm signal; if no oil leakage area exists, judging that no oil leakage defect exists, outputting a shot high-definition fluorescence image, and sending an oil leakage-free signal;
the shape feature analysis in step S23 includes eccentricity analysis, specifically expressed as calculating an inertia spindle ratio, and the calculation formula is as follows:
Figure FDA0003997925550000021
Figure FDA0003997925550000022
Figure FDA0003997925550000023
in the above formula, R is the region point set, n is the number of point sets, x is the abscissa of the point set, y is the ordinate of the point set, S is the region area,
Figure FDA0003997925550000024
is an average vector, mu ij The central moment of each order, e is the eccentricity calculation result.
2. The oil leakage defect detection method according to claim 1, wherein in step S1, the oil in the oil leakage position in the region to be detected emits fluorescence due to fluorescence effect under irradiation of the ultraviolet light source, and the visible light imaging module acquires a high-definition fluorescence image.
3. The oil leakage defect detection method according to claim 1, wherein the step of extracting the fluorescence region in step S21 specifically comprises the steps of:
s211: preprocessing an input high-definition fluorescence image, wherein the preprocessing comprises denoising and exponential transformation;
s212: the high-definition fluorescence image is an RGB three-channel image, and is decomposed into an R channel image, a G channel image and a B channel image;
s213: converting the R channel image, the G channel image and the B channel image to obtain an H (tone) channel image and a V (brightness) channel image in the HSV color model;
s214: obtaining an area 1 by threshold processing on an H (tone) channel image, wherein the area 1 is an area extracted according to fluorescence color characteristics, and obtaining an area 2 by threshold processing on a V (brightness) channel image, wherein the area 2 is an area extracted according to fluorescence brightness characteristics;
s215: and performing intersection operation on the region 1 and the region 2 to obtain an intersection region, which is the extracted fluorescence region.
4. The oil leakage defect detection method according to claim 3, wherein the conversion relationship of converting the R channel, G channel, and B channel images into the H channel image and the V channel image in step S213 is:
R′=R/255
G′=G/255
B′=B/255
C max=max(R′,G′,B′)
C min=min(R′,G′,B′)
Δ=C max-C min
Figure FDA0003997925550000031
V=Cmax
in the formula, R, G, B is an R channel image, a G channel image and a B channel image, R ', G ' and B ' are images of the R channel image, the G channel image and the B channel image after normalization processing, H is an H (hue) channel image in an HSV color model, and V is a V (brightness) channel image in the HSV color model.
5. The oil leak defect detection method according to claim 4, wherein the shape feature analysis in step S23 includes rectangularity analysis, the rectangularity represents a degree of similarity of an object to a rectangle, and a calculation formula is as follows:
Figure FDA0003997925550000032
in the above formula, A S Is the area of a region, A R Is the smallest rectangular area surrounding the region.
6. The oil leakage defect detection method according to claim 5, wherein the conversion relationship of converting the original high-definition fluorescent multi-channel image into the single-channel gray image in step S24 is as follows:
Gray(i,j)=0.299*R(i,j)+0.578*G(i,j)+0.114*B(i,j)
in the formula, (i, j) is pixel coordinates, and R, G, B are an R channel image, a G channel image, and a B channel image, respectively.
7. The oil leakage defect detection method according to claim 6, wherein the step S26 of determining the oil leakage condition of the region to be detected specifically comprises:
if the suspected oil leakage areas all meet the area characteristics, the shape characteristics and the gray level characteristics, judging that oil leakage occurs in the suspected oil leakage areas; and if the suspected steam leakage area does not meet one or more of the area characteristic, the shape characteristic and the gray characteristic, excluding the suspected oil leakage area from oil leakage.
8. A system for applying the oil leakage defect detection method according to any one of claims 1 to 7, comprising:
the ultraviolet light source module emits ultraviolet light to irradiate the area to be detected;
the visible light imaging module is used for collecting a high-definition visible light image of the area to be detected and transmitting high-definition image data to the image analysis module;
the parameter setting module is used for setting parameters of the visible light imaging module, displaying results and setting alarm information by a user;
the display module is used for displaying an oil leakage defect detection identification result image and prompting related information;
the alarm module is used for sending an alarm prompt to the outside according to the oil leakage defect detection and identification result;
and the image analysis module receives high-definition image data and transmits the image character information and the alarm signal of the obtained oil leakage defect detection and identification result to the display module and the alarm module respectively through image analysis processing.
CN202010027479.3A 2020-01-10 2020-01-10 Oil leakage defect detection method and system Active CN111209876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010027479.3A CN111209876B (en) 2020-01-10 2020-01-10 Oil leakage defect detection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010027479.3A CN111209876B (en) 2020-01-10 2020-01-10 Oil leakage defect detection method and system

Publications (2)

Publication Number Publication Date
CN111209876A CN111209876A (en) 2020-05-29
CN111209876B true CN111209876B (en) 2023-04-07

Family

ID=70788828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010027479.3A Active CN111209876B (en) 2020-01-10 2020-01-10 Oil leakage defect detection method and system

Country Status (1)

Country Link
CN (1) CN111209876B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111832500B (en) * 2020-07-20 2022-08-30 北京航空航天大学 Liquid fuel jet atomization evaluation method and device and computing equipment
CN112036463A (en) * 2020-08-26 2020-12-04 国家电网有限公司 Power equipment defect detection and identification method based on deep learning
CN112284619B (en) * 2020-11-06 2022-10-14 重庆大唐国际彭水水电开发有限公司 Oil leakage real-time monitoring device and detection method
CN112489021A (en) * 2020-12-01 2021-03-12 江苏科技大学 Visual inspection method for surface defects of large-capacity plastic barrel
CN113055642A (en) * 2021-02-03 2021-06-29 天津东泉石油技术开发有限公司 Oil spilling monitoring device with high sensitivity for ocean platform
CN112964437A (en) * 2021-03-11 2021-06-15 华能东莞燃机热电有限责任公司 Oil microleakage recognition method
CN113052823A (en) * 2021-03-26 2021-06-29 东莞市科研世智能科技有限公司 Oil level and oil color detection method and device, electronic equipment and storage medium
CN113514193B (en) * 2021-07-13 2022-12-02 江铃汽车股份有限公司 Automobile collision fuel leakage detection method based on image recognition
CN113670524B (en) * 2021-07-13 2023-12-19 江铃汽车股份有限公司 Detection method and detection system for automobile collision fuel leakage
CN114062224A (en) * 2021-11-19 2022-02-18 广东电网有限责任公司广州供电局 Oil leakage oil detection system and method for oil-immersed power equipment
CN114264661A (en) * 2021-12-06 2022-04-01 浙江大学台州研究院 Definition self-adaptive coiled material detection method, device and system
CN114627316B (en) * 2022-03-21 2022-11-25 江苏新之阳新能源科技有限公司 Hydraulic system oil leakage detection method based on artificial intelligence
CN115100451B (en) * 2022-08-29 2023-11-28 启东万惠机械制造有限公司 Data expansion method for monitoring oil leakage of hydraulic pump

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770644A (en) * 2010-01-19 2010-07-07 浙江林学院 Forest-fire remote video monitoring firework identification method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201711412D0 (en) * 2016-12-30 2017-08-30 Maxu Tech Inc Early entry

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770644A (en) * 2010-01-19 2010-07-07 浙江林学院 Forest-fire remote video monitoring firework identification method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于数据融合的输油管道漏油检测系统的设计;马骏驰 等;《大庆师范学院学报》;20130630;第1-2页 *

Also Published As

Publication number Publication date
CN111209876A (en) 2020-05-29

Similar Documents

Publication Publication Date Title
CN111209876B (en) Oil leakage defect detection method and system
CN110414334B (en) Intelligent water quality identification method based on unmanned aerial vehicle inspection
CN103442209B (en) Video monitoring method of electric transmission line
EP3767586A1 (en) Colony contrast gathering
CN109598224A (en) Recommend white blood cell detection method in the Sections of Bone Marrow of convolutional neural networks based on region
CN110210448B (en) Intelligent face skin aging degree identification and evaluation method
CN106529429A (en) Image recognition-based facial skin analysis system
EP2572205A1 (en) Methods and systems for identifying well wall boundaries of microplates
CN103900972B (en) Multi-feature fusion-based meat freshness hyperspectral image visual detection
CN109738137B (en) Real-time earth-rock dam leakage monitoring and rapid diagnosis method based on image contrast
US11884959B2 (en) Methods and systems for automated assessment of antibiotic sensitivity
CN108764134A (en) A kind of automatic positioning of polymorphic type instrument and recognition methods suitable for crusing robot
CN109241867B (en) Method and device for recognizing digital rock core image by adopting artificial intelligence algorithm
CN115205223B (en) Visual inspection method and device for transparent object, computer equipment and medium
CN101561932A (en) Method and device for detecting real-time movement target under dynamic and complicated background
CN115330802B (en) Method for extracting debonding defect of X-ray image of carbon fiber composite gas cylinder
CN111583185A (en) Ki67 cell nucleus counting method and system based on pathological immunohistochemistry
CN111077150A (en) Intelligent excrement analysis method based on computer vision and neural network
CN111199194A (en) Automobile intelligent cabin instrument testing method based on machine vision and deep learning
Guarneri et al. 3D remote colorimetry and watershed segmentation techniques for fresco and artwork decay monitoring and preservation
JP2021064115A (en) Cell image analysis method and cell analysis device
CN114719749A (en) Metal surface crack detection and real size measurement method and system based on machine vision
CN112862744A (en) Intelligent detection method for internal defects of capacitor based on ultrasonic image
CN117115171B (en) Slight bright point defect detection method applied to subway LCD display screen
CN108563997A (en) It is a kind of establish Face datection model, recognition of face method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231029

Address after: Building B, 3-1B, Phase II, Diejin Industrial Zone, Jinping District, Shantou, Guangdong, 515000

Patentee after: SHANTOU A-PLUX OPTOELECTRONIC TECHNOLOGY CO.,LTD.

Address before: 515063 No. 243, University Road, Shantou, Guangdong

Patentee before: SHANTOU University

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240118

Address after: Building 3, 6th Floor, Financial Center, Dongshan Street Office, Nankang District, Ganzhou City, Jiangxi Province, 341000

Patentee after: Jiangxi Xinkang Technology Co.,Ltd.

Address before: Building B, 3-1B, Phase II, Diejin Industrial Zone, Jinping District, Shantou, Guangdong, 515000

Patentee before: SHANTOU A-PLUX OPTOELECTRONIC TECHNOLOGY CO.,LTD.

TR01 Transfer of patent right