CN114820674A - Arc contour extraction method, device, computer equipment and storage medium - Google Patents

Arc contour extraction method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN114820674A
CN114820674A CN202210534470.0A CN202210534470A CN114820674A CN 114820674 A CN114820674 A CN 114820674A CN 202210534470 A CN202210534470 A CN 202210534470A CN 114820674 A CN114820674 A CN 114820674A
Authority
CN
China
Prior art keywords
image
arc
discharge area
gray
area image
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.)
Granted
Application number
CN202210534470.0A
Other languages
Chinese (zh)
Other versions
CN114820674B (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.)
Guangzhou Bureau of Extra High Voltage Power Transmission Co
Original Assignee
Guangzhou Bureau of Extra High Voltage Power Transmission Co
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 Guangzhou Bureau of Extra High Voltage Power Transmission Co filed Critical Guangzhou Bureau of Extra High Voltage Power Transmission Co
Priority to CN202210534470.0A priority Critical patent/CN114820674B/en
Publication of CN114820674A publication Critical patent/CN114820674A/en
Application granted granted Critical
Publication of CN114820674B publication Critical patent/CN114820674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/73Deblurring; Sharpening
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/92Dynamic range modification of images or parts thereof based on global image properties
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/94Dynamic range modification of images or parts thereof based on local image properties, e.g. for local contrast enhancement
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/181Segmentation; Edge detection involving edge growing; involving edge linking
    • 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/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20172Image enhancement details
    • G06T2207/20192Edge enhancement; Edge preservation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)

Abstract

The application relates to an arc contour extraction method, an arc contour extraction device, computer equipment and a storage medium. The method comprises the following steps: acquiring an arc image of an arc generated in insulating oil of electrical equipment; determining a first discharge area image of the arc from the arc image; carrying out gray stretching on the first discharge area image to obtain a second discharge area image; and obtaining the arc profile of the arc according to the second discharge area image. By adopting the method, the definition of the extracted arc contour can be improved.

Description

Arc contour extraction method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of arc contour extraction technologies, and in particular, to an arc contour extraction method, an arc contour extraction apparatus, a computer device, and a storage medium.
Background
At present, electrical equipment generally adopts an oil-paper composite insulation mode to perform insulation operation, wherein the quality of oil has great influence on the oil-paper insulation performance, in practical engineering application, a certain amount of gas inevitably exists in the oil, the gas can generate partial discharge in the oil, the discharge energy of an electric arc generated by the partial discharge can cause irreversible severe damage to the electrical equipment insulation performance, and the profile characteristic of the electric arc and the discharge energy of the electric arc have an inseparable relationship, so that the profile characteristic of the electric arc is urgently needed to be researched.
In the traditional technology, an arc contour extraction method is to obtain an arc image, perform mean filtering on the arc image, and extract the arc contour by using the filtered image. However, there is a problem that the extracted arc profile is low in definition at present.
Disclosure of Invention
In view of the above, it is desirable to provide an arc contour extraction method, an apparatus, a computer device, and a storage medium capable of improving the sharpness of an extracted arc contour.
In a first aspect, the present application provides an arc profile extraction method. The method comprises the following steps:
acquiring an arc image of an arc generated in insulating oil of electrical equipment;
determining a first discharge area image of the arc from the arc image;
performing gray level stretching on the first discharge area image to obtain a second discharge area image;
and obtaining the arc profile of the arc according to the second discharge area image.
In one embodiment, the determining a first discharge area image of the arc from the arc image comprises:
performing Gaussian filtering processing on the arc image to obtain a filtered arc image;
carrying out image enhancement processing on the filtered arc image by utilizing an edge enhancement algorithm to obtain an enhanced arc image;
carrying out gray level processing on the arc image subjected to the enhancement processing to obtain a gray level image;
and determining the first discharge area image according to the gray level image.
In one embodiment, the determining the first discharge area image according to the gray scale image includes:
establishing a three-dimensional curved surface gray distribution map according to the gray image;
obtaining a gray equivalent distribution map according to the three-dimensional curved surface gray distribution map;
and determining the first discharge area image according to the gray equivalent distribution map.
In one embodiment, the obtaining an arc profile of the arc according to the second discharge area image includes:
carrying out binarization processing on the second discharge area image to obtain a binarization image;
and obtaining the arc contour according to the binary image.
In one embodiment, the binarizing processing the second discharge area image to obtain a binarized image includes:
marking the gray value of the pixel point in the second discharge area image within the range of the preset gray value interval as a first preset value, and marking the gray value of the pixel point in the second discharge area image not within the range of the preset gray value interval as a second preset value so as to carry out binarization processing on the second discharge area image to obtain the binarization image.
In one embodiment, the obtaining the arc contour according to the binarized image includes:
and judging whether pixel points in the binary image meet a preset arc contour point condition or not by utilizing an eight-neighborhood tracking algorithm, if so, marking the pixel points meeting the preset arc contour point condition as arc contour points, and obtaining the arc contour according to the arc contour points.
In a second aspect, the present application also provides an arc profile extraction apparatus. The device comprises:
the image acquisition module is used for acquiring an arc image of an arc generated in insulating oil of the power equipment;
a first discharge region determination module for determining a first discharge region image of the arc from the arc image;
the second discharge area determining module is used for performing gray level stretching on the first discharge area image to obtain a second discharge area image;
and the contour acquisition module is used for obtaining the arc contour of the arc according to the second discharge area image.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of any of the above methods when the processor executes the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of any of the methods described above.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs any of the method steps described above.
According to the arc contour extraction method, the arc contour extraction device, the computer equipment and the storage medium, the arc image of the arc generated in the insulating oil of the power equipment is obtained, the first discharge area image is determined according to the arc image, the gray level stretching is carried out on the first discharge area image so as to obtain the second discharge area image, and the arc contour is obtained according to the second discharge area image. Because the arc contour is directly extracted after the mean value filtering processing is carried out on the images by obtaining the arc images in the traditional technology, the first discharge area image is firstly determined in the embodiment, the discharge area is further defined, and then the gray level stretching is carried out on the first discharge area image, so that the discharge area is clearer, the definition of the extracted arc contour is further improved, and the problem that the definition of the arc contour extracted in the traditional method is lower is solved.
Drawings
Fig. 1 is a schematic flow chart of an arc profile extraction method provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a discharge device provided in an embodiment of the present application;
FIG. 3 is a schematic view of a scene for acquiring an arc image according to an embodiment of the present disclosure;
FIG. 4 is a schematic illustration of an initial arc image provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a gray scale stretch transform function provided in an embodiment of the present application;
fig. 6 is a schematic flowchart of a first discharge area image determining method provided in an embodiment of the present application;
FIG. 7 is a schematic diagram of a Gaussian kernel function provided in an embodiment of the present application;
FIG. 8 is a schematic flow chart of an arc image preprocessing algorithm provided in an embodiment of the present application;
FIG. 9 is a schematic illustration of a pre-processed arc image provided in an embodiment of the present application;
fig. 10 is a schematic flowchart of another first discharge area image determination method provided in the embodiment of the present application;
fig. 11 is a schematic diagram of a three-dimensional curved surface gray scale distribution diagram provided in an embodiment of the present application;
FIG. 12 is a schematic illustration of a gray scale iso-distribution graph provided in an embodiment of the present application;
FIG. 13 is a schematic flow chart of a method of arc profiling provided in an embodiment of the present application;
FIG. 14 is a schematic diagram of an eight neighborhood tracking algorithm provided in an embodiment of the present application;
fig. 15 is a block diagram of an arc profile extraction apparatus provided in an embodiment of the present application;
fig. 16 is an internal structural diagram of a computer device in the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Before introducing the present application, the following is first introduced with respect to the prior art: in the prior art, after an arc image in insulating oil of power equipment is shot, a mean value filtering is adopted to filter the arc image to obtain a filtered arc image, a Canny improvement operator and an expansion corrosion processing method are adopted to process the filtered arc image to obtain a processed arc image, so that the arc edge on the processed arc image is continuous, the processed arc image is filled into a clear binary image by using a seed filling algorithm, an arc area is extracted by using the binary image, and an arc profile is obtained according to the arc area. However, when an arc image is shot in insulating oil of electric power equipment, impurity interference may exist in the insulating oil, the surrounding environment of the electric power equipment may be complex, and more interference pixel points are generated in the shot arc image; in the prior art, a Canny improvement operator and an expansion corrosion treatment method are adopted to process an arc image after filtering treatment, and a seed filling algorithm is utilized to fill the processed arc image, so that an arc area is extracted.
In the present embodiment, an arc contour extraction method is provided, and the present embodiment is exemplified by applying the method to a computer device, it is to be understood that the method may also be applied to a server, and may also be applied to a system including a computer device and a server, and is implemented by interaction between the computer device and the server.
Fig. 1 is a schematic flow chart of an arc contour extraction method provided in an embodiment of the present application, which is applied to a computer device or a server, and in an embodiment, as shown in fig. 1, includes the following steps:
s101, acquiring an arc image of an arc generated in insulating oil of the power equipment.
In this embodiment, the electrical equipment includes, but is not limited to, a transformer, a cable, and electrical equipment using oil-paper insulation, in order to simulate a scene of an arc generated in insulating oil of the electrical equipment, in this embodiment, a discharging device is provided, fig. 2 is a schematic structural diagram of a discharging device provided in an embodiment of the present invention, in fig. 2, a needle electrode and a plate electrode are immersed in insulating oil by placing the needle electrode and the plate electrode in a transparent oil tank, an insulating paper is placed on the plate electrode, a scene of an arc generated in the insulating oil of the electrical equipment simulated by using needle electrode discharge is obtained, and obtaining an arc image of an arc generated in the insulating oil of the electrical equipment is to obtain an arc image of the discharging device, specifically, a schematic view of a scene of obtaining an arc image provided in an embodiment of the present invention is shown in fig. 3, it can be seen that a lamp is placed at an angle of 45 degrees above the left of the discharging device to perform supplementary lighting in fig. 3, shooting is performed by using a CCD high-speed camera 45 degrees above the right of the discharge device, where L (x, y) is an incident brightness component, M (x, y) is a reflected brightness component, and I (x, y) is a brightness component received by the CCD high-speed camera, so as to obtain an arc image, where the arc image at this time is an initial arc image, and fig. 4 is a schematic diagram of an initial arc image provided in this embodiment.
S102, determining a first discharge area image of the arc according to the arc image.
And S103, performing gray stretching on the first discharge area image to obtain a second discharge area image.
In this embodiment, the gray stretching transformation function is used to stretch the gray of the first discharge area image to obtain the second discharge area image
Figure BDA0003647228620000061
Wherein f is the gray function of the first discharge area image, g is the gray function of the second discharge area image, M f Is the maximum value of gray scale, M, in the image of the first discharge region g As the maximum value of the gray scale of the second discharge region image, (a, c) and (b, d) are coordinates of the gray scale turning point in the first discharge region image.
In order to better show the gray stretching process, a schematic diagram of a gray stretching transformation function is provided in the embodiment of the present application, as shown in fig. 5, where f (x, y) is a gray function of the first discharge area image, and g (x, y) is a gray function of the second discharge area image in fig. 5.
And S104, obtaining the arc contour of the arc according to the second discharge area image.
According to the arc contour extraction method, the arc image of the arc generated in the insulating oil of the power equipment is obtained, the first discharge area image is determined according to the arc image, the gray level stretching is carried out on the first discharge area image so as to obtain the second discharge area image, and the arc contour is obtained according to the second discharge area image. Because the arc contour is directly extracted after the mean value filtering processing is carried out on the images by obtaining the arc images in the traditional technology, the first discharge area image is firstly determined in the embodiment, the discharge area is further defined, and then the gray level stretching is carried out on the first discharge area image, so that the discharge area is clearer, the definition of the extracted arc contour is further improved, and the problem that the definition of the arc contour extracted in the traditional method is lower is solved.
Fig. 6 is a flowchart illustrating a first discharge area image determining method provided in an embodiment of the present application, and referring to fig. 6, the present embodiment relates to an implementation of how to determine the first discharge area image. On the basis of the above embodiment, the above S102 includes the following steps:
s601, performing Gaussian filtering processing on the arc image to obtain a filtered arc image.
In this embodiment, the arc image is subjected to a gaussian filtering process by using a gaussian kernel function to obtain a filtered arc image, where the gaussian kernel function is
Figure BDA0003647228620000062
Where K (x, y) is a Gaussian kernel function and σ is the standard deviation.
In order to better display the gaussian kernel function, a schematic diagram of the gaussian kernel function is provided in the embodiment of the present application, as shown in fig. 7, the size of the value of the standard deviation σ may affect the size of the peak value of the gaussian kernel function, thereby affecting the image filtering effect, when the value of the standard deviation σ is too small, the image is prone to color cast, and when the value of the standard deviation σ is too large, the edge characteristic of the image is relatively poor, and an obvious halo phenomenon is prone to occur.
And S602, carrying out image enhancement processing on the filtered arc image by utilizing an edge enhancement algorithm to obtain an enhanced arc image.
In this embodiment, steps S601 and S602 are both processes for preprocessing the arc image, and the formula of the principle for preprocessing the arc image by using the multi-scale retina enhancement algorithm with color recovery is as follows:
Figure BDA0003647228620000071
wherein i represents R, G, B any one of three optical channels, M i (x, y) is the pixel value of the reflection image at the (x, y) point in the ith optical channel, N is the total number of scales, i.e. the number of values of standard deviation, j is the specific scale in a certain count, i.e. the value of the several standard deviations, I i (x, y) is the pixel value of the arc image at the ith optical channel (x, y) point, K j (x, y) is a Gaussian kernel function under the jth scale, ω j represents the weight corresponding to the jth scale, C i (x, y) represents the color correction factor for the ith channel to adjust the color scale for the 3 optical channels, α represents the controlled non-linear intensity as a constant and β is the gain constant.
In order to better show the process of preprocessing the arc image, the embodiment provides a schematic flow diagram of an arc image preprocessing algorithm, as shown in fig. 8, as can be seen from fig. 8, although the arc image shot by the CCD high-speed camera uses gray, white, and black as color tones, the arc image still belongs to a true color image in nature, and the optical imaging channel of the true color image is composed of R, G, B three channels, therefore, RGB three-channel component extraction is performed on the arc image, that is, image signals are separated according to R, G, B three channels, the optical signal image of each channel is respectively subjected to filtering and gaussian kernel function convolution processing, and is given with each weight value, and is subjected to color correction by using a color correction factor and then is superposed again to obtain a preprocessed arc image, that is, an enhanced arc image, fig. 9 is a schematic diagram of a preprocessed arc image provided in the embodiment of the present application, compared with the graph 4, the interference pixel points in the arc image after the filtering and enhancing processing are obviously filtered, so that a large amount of interference is reduced for the subsequent extraction of the arc contour, and the extracted arc contour is ensured to have no breakpoint and to be clear.
And S603, performing gray scale processing on the arc image after the enhancement processing to obtain a gray scale image.
In this embodiment, the arc image after the enhancement processing is a true color image, the R, G, B three optical components thereof cannot reflect the overall morphological characteristics of the image, and the measurement standard of all pixel values in the image layer can be unified only by converting into a gray scale image, so that the arc image after the enhancement processing needs to be subjected to gray scale processing to obtain a gray scale image.
The gray value of the gray image corresponds to the brightness of the object, the value range is [0,255], the gray value is increased from 0 to 255, and the brightness of the object is increased from weak to strong.
S604, determining a first discharge area image according to the gray level image.
Fig. 10 is a flowchart illustrating another first discharge area image determining method provided in an embodiment of the present application, and referring to fig. 10, the present embodiment relates to another implementation of how to determine the first discharge area image. On the basis of the above embodiment, the above S604 includes the following steps:
s1001, establishing a three-dimensional curved surface gray distribution diagram according to the gray image.
In this embodiment, a three-dimensional coordinate system is established with the lower left corner of the grayscale image as the origin of coordinates, the pixel length distance as the X axis, the pixel width distance as the Y axis, and the grayscale value of the pixel point as the Z axis, so as to obtain a three-dimensional curved surface grayscale distribution map, which is provided in this embodiment and shown in fig. 11.
And S1002, obtaining a gray equivalent distribution map according to the three-dimensional curved surface gray distribution map.
In this embodiment, a three-dimensional image of the three-dimensional curved surface gray level distribution map is converted into a two-dimensional image, that is, a gray level equivalent distribution map, and in this embodiment, a schematic diagram of the gray level equivalent distribution map is provided, as shown in fig. 12, and the two-dimensional image of the gray level equivalent distribution map is used to facilitate observation and determination of the first discharge region image.
And S1003, determining a first discharge area image according to the gray-scale equivalent distribution map.
In this embodiment, the pixel points with the gray-scale value in the interval [150,250] are determined as the first discharge area image.
Fig. 13 is a schematic flowchart of an arc profile determining method provided in an embodiment of the present application, and referring to fig. 13, the present embodiment relates to an implementation of how to determine an arc profile. On the basis of the above embodiment, the above S104 includes the following steps:
and S1301, performing binarization processing on the second discharge area image to obtain a binarization image.
And S1302, obtaining an arc contour according to the binary image.
On the basis of the above embodiment, the above S1301 includes the following steps:
and marking the gray value of the pixel point in the second discharge area image within the range of the preset gray value interval as a first preset value, and marking the gray value of the pixel point in the second discharge area image not within the range of the preset gray value interval as a second preset value so as to carry out binarization processing on the second discharge area image to obtain a binarized image.
In this embodiment, the gray scale value of the pixel point located in the [150, 200 ] interval in the second discharge area image is marked as 0, the gray scale value of the pixel point located in the [200, 250] interval in the second discharge area image is marked as 255, and the binarization processing on the second discharge area image can increase the image contrast and reduce the interference when the arc contour is extracted.
On the basis of the above embodiment, the above S1302 includes the following steps:
and judging whether pixel points in the binary image meet a preset arc contour point condition or not by using an eight-neighborhood tracking algorithm, if so, marking the pixel points meeting the preset arc contour point condition as arc contour points, and obtaining an arc contour according to the arc contour points.
In this embodiment, each pixel point in the binary image is assigned in a row-column coordinate form, all pixel points are traversed by using an eight-neighborhood tracking algorithm, whether the pixel points meet a preset arc contour point condition is judged, if the pixel points meet the preset arc contour point condition, the pixel points are marked as arc contour points, the binary image is traversed for multiple times in a circulating manner, and when the pixel points meeting the condition, namely the arc contour points, are in a closed-state shape, the arc contour is finally obtained, so that the accuracy of the extracted arc contour can be ensured, and the arc contour cannot be interfered by the size of an arc area or the irregularity of the arc shape.
Specifically, how to obtain the arc contour is described by the following examples in combination with a schematic diagram of an eight-neighborhood tracking algorithm, fig. 14 is a schematic diagram of an eight-neighborhood tracking algorithm provided in this embodiment, a binarized image is shown on the right side of fig. 14, 9 pixels are provided, traversal is started from the first pixel P (i-1, j +1) on the upper left, the gray value of the pixel P (i-1, j +1) is 255, and therefore, it is further determined whether there is a pixel with a gray value of 0 on the upper, lower, left, right, and left neighborhoods of the pixel P (i-1, j +1), and there is a pixel with a gray value of 0 on the right neighborhood of the pixel P (i-1, j +1), so that the pixel P (i-1, j +1) is marked as an arc contour point, and the next pixel P (i, j +1) is continuously traversed, the pixel P (i, j +1) is 0, then continuously traversing the next pixel point P (i +1, j +1), the gray value of the pixel point P (i +1, j +1) is still 0, then continuously traversing the next pixel point P (i-1, j), the gray value of the pixel point P (i-1, j) is 255, therefore, further judging whether pixel points with gray values of 0 exist in the upper, lower, left and right neighborhoods of the pixel point P (i-1, j), the pixel points with gray values of 0 do not exist in the upper, lower, left and right neighborhoods of the pixel point P (i-1, j), and therefore continuously traversing the next pixel point P (i, j), so that 9 pixel points are traversed, and the pixel points P (i-1, j +1), the pixel points P (i, j) and the pixel points P (i +1, j-1) marked as arc contour points can be obtained, the ideal edge, i.e., the arc profile, shown on the left side of FIG. 14 can be obtained by using the pixel P (i-1, j +1), the pixel P (i, j), and the pixel P (i +1, j-1).
Referring to fig. 15, fig. 15 is a block diagram of an arc profile extraction apparatus provided in an embodiment of the present application, where the apparatus 1500 includes: an image acquisition module 1501, a first discharge region determination module 1502, a second discharge region determination module 1503, and a contour acquisition module 1504, wherein:
an image acquisition module 1501 for acquiring an arc image of an arc generated in insulating oil of an electric power apparatus;
a first discharge region determination module 1502 for determining a first discharge region image of the arc from the arc image;
a second discharge region determining module 1503, configured to perform gray level stretching on the first discharge region image to obtain a second discharge region image;
a profile acquisition module 1504 for deriving an arc profile of the arc from the second discharge area image.
The arc contour extraction device provided in this embodiment acquires, by using the image acquisition module, an arc image of an arc generated in insulating oil of an electrical device, determines, by using the first discharge area determination module, a first discharge area image of the arc according to the arc image, performs gray scale stretching on the first discharge area image by using the second discharge area determination module to obtain a second discharge area image, and acquires, by using the contour acquisition module, an arc contour of the arc according to the second discharge area image. Because the arc contour is directly extracted after the mean value filtering processing is carried out on the image by acquiring the arc image in the traditional technology, the first discharge area image is firstly determined in the embodiment, the discharge area is further defined, and then the gray level stretching is carried out on the first discharge area image, so that the discharge area is clearer, the definition of the extracted arc contour is further improved, and the problem that the definition of the arc contour extracted in the traditional method is lower is solved.
Optionally, the first discharge area determination module 1502 includes:
the image filtering unit is used for carrying out Gaussian filtering processing on the arc image to obtain a filtered arc image;
the image enhancement unit is used for carrying out image enhancement processing on the filtered arc image by utilizing an edge enhancement algorithm to obtain an enhanced arc image;
the gray processing unit is used for carrying out gray processing on the arc image after the enhancement processing to obtain a gray image;
an area determination unit for determining a first discharge area image from the gray image.
Optionally, the area determining unit includes:
the three-dimensional graph establishing subunit is used for establishing a three-dimensional curved surface gray distribution graph according to the gray image;
the equivalent map establishing subunit is used for obtaining a gray equivalent distribution map according to the three-dimensional curved surface gray distribution map;
and the area determining subunit is used for determining a first discharge area image according to the gray equivalent distribution map.
Optionally, the contour obtaining module 1504 includes:
a binarization processing unit, configured to perform binarization processing on the second discharge region image to obtain a binarized image;
and the contour acquisition unit is used for obtaining the arc contour according to the binary image.
Optionally, the binary processing unit includes:
and the binary processing subunit is used for marking the gray value of the pixel point in the second discharge area image within the range of the preset gray value interval as a first preset value, and marking the gray value of the pixel point in the second discharge area image not within the range of the preset gray value interval as a second preset value so as to carry out binarization processing on the second discharge area image to obtain a binarized image.
Optionally, the contour acquiring unit includes:
and the contour acquisition subunit is used for judging whether pixel points in the binary image meet the preset arc contour point condition or not by utilizing an eight-neighborhood tracking algorithm, marking the pixel points meeting the preset arc contour point condition as arc contour points if the pixel points meet the preset arc contour point condition, and obtaining the arc contour according to the arc contour points.
The respective modules in the arc profile extraction apparatus described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 16 is an internal structural diagram of a computer device in the embodiment of the present application, and in the embodiment, a computer device is provided, and an internal structural diagram of the computer device may be as shown in fig. 16. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement an arc contour extraction method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 16 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the arc profile extraction method provided by the above embodiments when executing the computer program:
acquiring an arc image of an arc generated in insulating oil of electrical equipment;
determining a first discharge area image of the arc from the arc image;
carrying out gray level stretching on the first discharge area image to obtain a second discharge area image;
an arc profile of the arc is derived from the second discharge region image.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
performing Gaussian filtering processing on the arc image to obtain a filtered arc image;
carrying out image enhancement processing on the filtered arc image by utilizing an edge enhancement algorithm to obtain an enhanced arc image;
carrying out gray level processing on the arc image after the enhancement processing to obtain a gray level image;
a first discharge area image is determined from the gray scale image.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
establishing a three-dimensional curved surface gray distribution map according to the gray image;
obtaining a gray equivalent distribution map according to the three-dimensional curved surface gray distribution map;
and determining a first discharge area image according to the gray-scale equivalent distribution map.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
carrying out binarization processing on the second discharge area image to obtain a binarization image;
and obtaining the arc contour according to the binary image.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and marking the gray value of the pixel point in the range of the preset gray value interval in the second discharge area image as a first preset value, and marking the gray value of the pixel point which is not in the range of the preset gray value interval in the second discharge area image as a second preset value so as to carry out binarization processing on the second discharge area image to obtain a binarized image.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and judging whether pixel points in the binary image meet a preset arc contour point condition or not by using an eight-neighborhood tracking algorithm, if so, marking the pixel points meeting the preset arc contour point condition as arc contour points, and obtaining an arc contour according to the arc contour points. The implementation principle and technical effect of the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the steps of the arc profile extraction method provided by the above embodiments:
acquiring an arc image of an arc generated in insulating oil of electrical equipment;
determining a first discharge area image of the arc from the arc image;
carrying out gray level stretching on the first discharge area image to obtain a second discharge area image;
an arc profile of the arc is derived from the second discharge region image.
In one embodiment, the computer program when executed by the processor further performs the steps of:
performing Gaussian filtering processing on the arc image to obtain a filtered arc image;
carrying out image enhancement processing on the filtered arc image by utilizing an edge enhancement algorithm to obtain an enhanced arc image;
carrying out gray level processing on the arc image after the enhancement processing to obtain a gray level image;
a first discharge area image is determined from the gray scale image.
In one embodiment, the computer program when executed by the processor further performs the steps of:
establishing a three-dimensional curved surface gray distribution map according to the gray image;
obtaining a gray equivalent distribution map according to the three-dimensional curved surface gray distribution map;
and determining a first discharge area image according to the gray-scale equivalent distribution map.
In one embodiment, the computer program when executed by the processor further performs the steps of:
carrying out binarization processing on the second discharge area image to obtain a binarization image;
and obtaining the arc contour according to the binary image.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and marking the gray value of the pixel point in the second discharge area image within the range of the preset gray value interval as a first preset value, and marking the gray value of the pixel point in the second discharge area image not within the range of the preset gray value interval as a second preset value so as to carry out binarization processing on the second discharge area image to obtain a binarized image.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and judging whether pixel points in the binary image meet a preset arc contour point condition or not by using an eight-neighborhood tracking algorithm, if so, marking the pixel points meeting the preset arc contour point condition as arc contour points, and obtaining an arc contour according to the arc contour points. The implementation principle and technical effect of the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the arc profile extraction method provided by the above embodiments:
acquiring an arc image of an arc generated in insulating oil of electrical equipment;
determining a first discharge area image of the arc from the arc image;
carrying out gray stretching on the first discharge area image to obtain a second discharge area image;
an arc profile of the arc is derived from the second discharge region image.
In one embodiment, the computer program when executed by the processor further performs the steps of:
performing Gaussian filtering processing on the arc image to obtain a filtered arc image;
carrying out image enhancement processing on the filtered arc image by utilizing an edge enhancement algorithm to obtain an enhanced arc image;
carrying out gray processing on the arc image subjected to the enhancement processing to obtain a gray image;
a first discharge area image is determined from the gray scale image.
In one embodiment, the computer program when executed by the processor further performs the steps of:
establishing a three-dimensional curved surface gray distribution map according to the gray image;
obtaining a gray equivalent distribution map according to the three-dimensional curved surface gray distribution map;
and determining a first discharge area image according to the gray-scale equivalent distribution map.
In one embodiment, the computer program when executed by the processor further performs the steps of:
carrying out binarization processing on the second discharge area image to obtain a binarization image;
and obtaining the arc contour according to the binary image.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and marking the gray value of the pixel point in the second discharge area image within the range of the preset gray value interval as a first preset value, and marking the gray value of the pixel point in the second discharge area image not within the range of the preset gray value interval as a second preset value so as to carry out binarization processing on the second discharge area image to obtain a binarized image.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and judging whether pixel points in the binary image meet a preset arc contour point condition or not by using an eight-neighborhood tracking algorithm, if so, marking the pixel points meeting the preset arc contour point condition as arc contour points, and obtaining an arc contour according to the arc contour points. The implementation principle and technical effect of the above embodiment are similar to those of the above method embodiment, and are not described herein again.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A method of arc profile extraction, the method comprising:
acquiring an arc image of an arc generated in insulating oil of electrical equipment;
determining a first discharge area image of the arc from the arc image;
carrying out gray stretching on the first discharge area image to obtain a second discharge area image;
and obtaining the arc profile of the arc according to the second discharge area image.
2. The method of claim 1, wherein said determining a first discharge area image of said arc from said arc image comprises:
performing Gaussian filtering processing on the arc image to obtain a filtered arc image;
carrying out image enhancement processing on the filtered arc image by utilizing an edge enhancement algorithm to obtain an enhanced arc image;
carrying out gray level processing on the arc image subjected to the enhancement processing to obtain a gray level image;
and determining the first discharge area image according to the gray level image.
3. The method of claim 2, wherein said determining the first discharge region image from the grayscale image comprises:
establishing a three-dimensional curved surface gray distribution map according to the gray image;
obtaining a gray equivalent distribution map according to the three-dimensional curved surface gray distribution map;
and determining the first discharge area image according to the gray equivalent distribution map.
4. The method of any of claims 1 to 3, wherein said deriving an arc profile of said arc from said second discharge region image comprises:
carrying out binarization processing on the second discharge area image to obtain a binarization image;
and obtaining the arc contour according to the binary image.
5. The method according to claim 4, wherein the binarizing the second discharge region image to obtain a binarized image comprises:
marking the gray value of the pixel point in the second discharge area image within the range of the preset gray value interval as a first preset value, and marking the gray value of the pixel point in the second discharge area image not within the range of the preset gray value interval as a second preset value so as to carry out binarization processing on the second discharge area image to obtain the binarization image.
6. The method of claim 5, wherein said deriving the arc profile from the binarized image comprises:
and judging whether pixel points in the binary image meet a preset arc contour point condition or not by utilizing an eight-neighborhood tracking algorithm, if so, marking the pixel points meeting the preset arc contour point condition as arc contour points, and obtaining the arc contour according to the arc contour points.
7. An arc profile extraction apparatus, characterized in that the apparatus comprises:
the image acquisition module is used for acquiring an arc image of an arc generated in insulating oil of the power equipment;
a first discharge region determination module for determining a first discharge region image of the arc from the arc image;
the second discharge area determining module is used for performing gray level stretching on the first discharge area image to obtain a second discharge area image;
and the contour acquisition module is used for obtaining the arc contour of the arc according to the second discharge area image.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 6 when executed by a processor.
CN202210534470.0A 2022-05-17 2022-05-17 Arc profile extraction method, device, computer equipment and storage medium Active CN114820674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210534470.0A CN114820674B (en) 2022-05-17 2022-05-17 Arc profile extraction method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210534470.0A CN114820674B (en) 2022-05-17 2022-05-17 Arc profile extraction method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114820674A true CN114820674A (en) 2022-07-29
CN114820674B CN114820674B (en) 2024-04-05

Family

ID=82515077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210534470.0A Active CN114820674B (en) 2022-05-17 2022-05-17 Arc profile extraction method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114820674B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115375022A (en) * 2022-08-18 2022-11-22 中国南方电网有限责任公司超高压输电公司广州局 Electrode pulse current data processing method and device and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108320280A (en) * 2018-01-16 2018-07-24 南京理工大学 The crater image method for detecting abnormality of view-based access control model clarity and contours extract
CN109472271A (en) * 2018-11-01 2019-03-15 凌云光技术集团有限责任公司 Printed circuit board image contour extraction method and device
CN111398748A (en) * 2020-03-12 2020-07-10 山西耀源电力工程有限公司 Impulse arc image edge detection method and device
CN111696107A (en) * 2020-08-05 2020-09-22 南京知谱光电科技有限公司 Molten pool contour image extraction method for realizing closed connected domain
CN112381824A (en) * 2021-01-13 2021-02-19 北京智拓视界科技有限责任公司 Method for extracting geometric features of image and related product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108320280A (en) * 2018-01-16 2018-07-24 南京理工大学 The crater image method for detecting abnormality of view-based access control model clarity and contours extract
CN109472271A (en) * 2018-11-01 2019-03-15 凌云光技术集团有限责任公司 Printed circuit board image contour extraction method and device
CN111398748A (en) * 2020-03-12 2020-07-10 山西耀源电力工程有限公司 Impulse arc image edge detection method and device
CN111696107A (en) * 2020-08-05 2020-09-22 南京知谱光电科技有限公司 Molten pool contour image extraction method for realizing closed connected domain
CN112381824A (en) * 2021-01-13 2021-02-19 北京智拓视界科技有限责任公司 Method for extracting geometric features of image and related product

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115375022A (en) * 2022-08-18 2022-11-22 中国南方电网有限责任公司超高压输电公司广州局 Electrode pulse current data processing method and device and computer equipment
CN115375022B (en) * 2022-08-18 2024-04-05 中国南方电网有限责任公司超高压输电公司广州局 Electrode pulse current data processing method and device and computer equipment

Also Published As

Publication number Publication date
CN114820674B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
Shi et al. Normalised gamma transformation‐based contrast‐limited adaptive histogram equalisation with colour correction for sand–dust image enhancement
Cao et al. Contrast enhancement of brightness-distorted images by improved adaptive gamma correction
Wang et al. Biologically inspired image enhancement based on Retinex
Huang et al. Thresholding technique with adaptive window selection for uneven lighting image
CN109903224B (en) Image scaling method and device, computer equipment and storage medium
WO2020125062A1 (en) Image fusion method and related device
CN116580028B (en) Object surface defect detection method, device, equipment and storage medium
CN114596290A (en) Defect detection method, defect detection device, storage medium, and program product
CN111951172A (en) Image optimization method, device, equipment and storage medium
CN115880288B (en) Detection method, system and computer equipment for electronic element welding
CN114463637A (en) Winter wheat remote sensing identification analysis method and system based on deep learning
CN114820674B (en) Arc profile extraction method, device, computer equipment and storage medium
CN108230269B (en) Grid removing method, device and equipment based on depth residual error network and storage medium
CN114241358A (en) Equipment state display method, device and equipment based on digital twin transformer substation
Shi et al. A joint deep neural networks-based method for single nighttime rainy image enhancement
CN115439454A (en) Blister medicine quality detection method and device, computer equipment, medium and product
CN113052923B (en) Tone mapping method, tone mapping apparatus, electronic device, and storage medium
KR101635309B1 (en) Apparatus and method of textrue filtering using patch shift
CN115937395A (en) Electrical equipment model rendering method and device, computer equipment and storage medium
CN116798041A (en) Image recognition method and device and electronic equipment
Zhou et al. Image illumination adaptive correction algorithm based on a combined model of bottom-hat and improved gamma transformation
CN115082345A (en) Image shadow removing method and device, computer equipment and storage medium
Xiang et al. An improved exemplar-based image inpainting algorithm
Zhou et al. An improved algorithm using weighted guided coefficient and union self‐adaptive image enhancement for single image haze removal
Kang et al. An adaptive fusion panoramic image mosaic algorithm based on circular LBP feature and HSV color system

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