CN115171328A - Firework identification method, device, equipment and medium based on video compression coding - Google Patents

Firework identification method, device, equipment and medium based on video compression coding Download PDF

Info

Publication number
CN115171328A
CN115171328A CN202210763585.7A CN202210763585A CN115171328A CN 115171328 A CN115171328 A CN 115171328A CN 202210763585 A CN202210763585 A CN 202210763585A CN 115171328 A CN115171328 A CN 115171328A
Authority
CN
China
Prior art keywords
image
matrix
difference
images
pixel value
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
CN202210763585.7A
Other languages
Chinese (zh)
Other versions
CN115171328B (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.)
State Grid Corp of China SGCC
State Grid Beijing Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Beijing Electric Power Co Ltd
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 State Grid Corp of China SGCC, State Grid Beijing Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202210763585.7A priority Critical patent/CN115171328B/en
Publication of CN115171328A publication Critical patent/CN115171328A/en
Application granted granted Critical
Publication of CN115171328B publication Critical patent/CN115171328B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B17/00Fire alarms; Alarms responsive to explosion
    • G08B17/12Actuation by presence of radiation or particles, e.g. of infrared radiation or of ions
    • G08B17/125Actuation by presence of radiation or particles, e.g. of infrared radiation or of ions by using a video camera to detect fire or smoke
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B7/00Signalling systems according to more than one of groups G08B3/00 - G08B6/00; Personal calling systems according to more than one of groups G08B3/00 - G08B6/00
    • G08B7/06Signalling systems according to more than one of groups G08B3/00 - G08B6/00; Personal calling systems according to more than one of groups G08B3/00 - G08B6/00 using electric transmission, e.g. involving audible and visible signalling through the use of sound and light sources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/625Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using discrete cosine transform [DCT]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Abstract

The invention discloses a firework identification method, a firework identification device, firework identification equipment and firework identification media based on video compression coding, wherein the firework identification method comprises the steps of obtaining two images at the same position from video monitoring resource data of a transformer substation at a first moment and a second moment, and respectively carrying out difference on the two images to obtain a pixel value difference matrix between the two images; respectively performing DCT conversion processing on the pixel value difference value matrixes between the two images, namely two DCT coefficient matrixes; quantizing the two DCT coefficient matrixes respectively to obtain two quantization matrixes; and performing difference on the two quantization matrixes, and judging that an abnormality occurs when the number of pixel blocks with the difference value exceeding a first set threshold exceeds a second set threshold. The invention only needs to obtain the pictures of video interval in the station for a certain time, and carries out conversion calculation on the image pictures for comparison. The algorithm is simple, and the rapid and efficient abnormity identification is realized.

Description

Smoke and fire identification method, device, equipment and medium based on video compression coding
Technical Field
The invention belongs to the technical field of image processing, and particularly relates to a firework identification method, device, equipment and medium based on video compression coding.
Background
The industrial video monitoring system installed in the transformer substation is mainly used for monitoring the running condition of equipment in the transformer substation, generally comprises a front-end monitoring system, a video control platform and the like, and mainly monitors image videos in the transformer substation, for example, the front-end system acquires required image video resource data through deployed video and data acquisition equipment such as a digital camera, a sensor and an NVR (noise, vibration and harshness), and transmits the data to the video control platform.
The existing industrial video monitoring system usually has a large number of cameras for monitoring, and when a power grid fails to operate, the monitoring system performs identification through a carried intelligent identification algorithm, for example, an artificial intelligence algorithm and the like. However, in the existing anomaly identification method, a large number of learning target samples are needed to form a set of sample library, and the result can be obtained only in the comparison process of the detection target in the samples, so that the algorithm is complex, and long-time training and learning are needed.
Disclosure of Invention
The invention aims to provide a firework identification method, a firework identification device, firework identification equipment and firework identification media based on video compression coding, and aims to solve the problems that a large number of learning target samples are needed, long-time training is needed, and an algorithm is complex in an abnormal identification method in the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
in a first aspect of the present invention, a method for identifying an anomaly based on video compression coding is provided, which includes the following steps:
acquiring two images at the same position from video monitoring resource data of a transformer substation at a first moment, wherein the two images are a first image and a second image respectively;
acquiring two images at the same position from video monitoring resource data of the transformer substation at a second moment, wherein the two images are respectively a third image and a fourth image;
making a difference between pixel blocks of the first image and the second image to obtain a pixel value difference value matrix between the first images;
making a difference between pixel blocks of the third image and the fourth image to obtain a pixel value difference value matrix between the second images;
performing DCT conversion processing on the first inter-image pixel value difference matrix and the second inter-image pixel value difference matrix respectively to obtain a first DCT coefficient matrix and a second DCT coefficient matrix;
quantizing the first DCT coefficient matrix and the second DCT coefficient matrix respectively to obtain a first quantization matrix and a second quantization matrix;
and performing difference on the first quantization matrix and the second quantization matrix, and judging that abnormality occurs when the number of pixel blocks with difference values exceeding a first set threshold exceeds a second set threshold.
As an alternative of the invention, the interval between the first and second moments is 5s.
As an alternative of the present invention, in the step of quantizing the first DCT coefficient matrix and the second DCT coefficient matrix respectively, the method of quantizing is:
dividing the first and second DCT coefficient matrices by a constant, respectively;
rounding the obtained value corresponding to the pixel point to get the whole.
As an alternative of the invention, the first, second, third and fourth images have a size of 1024 × 768.
As an alternative of the present invention, in the step of performing DCT conversion on the first inter-image pixel value difference matrix and the second inter-image pixel value difference matrix, DCT conversion is performed according to the following formula:
Figure BDA0003724792840000021
Figure BDA0003724792840000022
in the above formula, f (i, j) is a spatial domain two-dimensional vector element, i, j =0,1,2,3 \8230 \ 8230and N-1, f (u, v) is a transform coefficient array element, N is the total number of f (i, j), and c (u), c (v) are constants.
As an alternative of the present invention, after the step of determining that an abnormality occurs when the number of pixel blocks whose difference values exceed the first set threshold exceeds the second set threshold, the abnormality signal is sent to a background management center.
As an alternative of the invention, after the step of determining that an abnormality occurs when the number of pixel blocks with the difference value exceeding the first set threshold exceeds the second set threshold, an acousto-optic alarm is performed in the substation.
In a second aspect of the present invention, an anomaly recognition apparatus based on video compression coding is provided, including:
the first acquisition module is used for acquiring two images at the same position from video monitoring resource data of a transformer substation at a first moment, wherein the two images are a first image and a second image respectively;
the second acquisition module is used for acquiring two images at the same position from the video monitoring resource data of the transformer substation at a second moment, wherein the two images are respectively a third image and a fourth image;
the first difference module is used for making a difference between the pixel blocks of the first image and the second image to obtain a pixel value difference matrix between the first images;
the second difference module is used for making a difference between pixel blocks of the third image and the fourth image to obtain a pixel value difference matrix between the second images;
the first conversion module is used for respectively performing DCT conversion processing on the first inter-image pixel value difference matrix and the second inter-image pixel value difference matrix to obtain a first DCT coefficient matrix and a second DCT coefficient matrix;
the second conversion module is used for quantizing the first DCT coefficient matrix and the second DCT coefficient matrix respectively to obtain a first quantization matrix and a second quantization matrix;
and the third difference module is used for making a difference between the first quantization matrix and the second quantization matrix, and judging that an abnormality occurs when the number of the pixel blocks with the difference value exceeding the first set threshold exceeds the second set threshold.
In a third aspect of the present invention, an electronic device is provided, which includes a processor and a memory, wherein the processor is configured to execute a computer program stored in the memory to implement the above-mentioned video compression coding-based anomaly identification method.
In a fourth aspect of the present invention, a computer-readable storage medium is provided, which stores at least one instruction, and the at least one instruction when executed by a processor implements the above-mentioned video compression coding-based anomaly identification method.
The invention has the following beneficial effects:
the anomaly identification method provided by the invention comprises the steps of acquiring two images at the same position from video monitoring resource data of a transformer substation at a first moment, wherein the two images are respectively a first image and a second image; acquiring two images at the same position from video monitoring resource data of the transformer substation at a second moment, wherein the two images are respectively a third image and a fourth image; making a difference between pixel blocks of the first image and the second image to obtain a pixel value difference value matrix between the first images; performing difference on pixel blocks of the third image and the fourth image to obtain a pixel value difference value matrix between second images; performing DCT conversion processing on the first inter-image pixel value difference matrix and the second inter-image pixel value difference matrix respectively to obtain a first DCT coefficient matrix and a second DCT coefficient matrix; quantizing the first DCT coefficient matrix and the second DCT coefficient matrix respectively to obtain a first quantization matrix and a second quantization matrix; and performing difference on the first quantization matrix and the second quantization matrix, and judging that abnormality occurs when the number of pixel blocks with difference values exceeding a first set threshold exceeds a second set threshold. The invention only needs to acquire the pictures of the video interval in the station for a certain time, and carries out conversion calculation on the image pictures for comparison. The identification method obtains the abnormal type by analyzing and calculating the interval pictures, can identify various abnormal types such as personnel, smoke and fire, foreign matter entering and the like, has simple algorithm and realizes quick and efficient abnormal identification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a firework identification method based on video compression coding according to an embodiment of the present invention.
FIG. 2 is a schematic diagram of a matrix before and after DCT transformation according to an embodiment of the present invention. Wherein, (a) is an 8 x 8 image block, and (b) is a coefficient matrix after DCT conversion.
Fig. 3 is a schematic diagram of matrix quantization before and after the embodiment of the present invention. Fig. 3 (a) shows a DCT coefficient matrix before quantization, and fig. 3 (b) shows a DCT coefficient matrix after quantization.
Fig. 4 is a block diagram of an anomaly recognition apparatus based on video compression coding according to the present invention.
Fig. 5 is a block diagram of an electronic device according to the present invention.
Detailed Description
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The following detailed description is exemplary in nature and is intended to provide further details of the invention. Unless otherwise defined, all technical terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the invention.
Example 1
As shown in fig. 1, the present embodiment provides a firework identification method based on video compression coding, including the following steps:
s1, two images at the same position are obtained from video monitoring resource data of a transformer substation at a first moment and are respectively a first image and a second image. And acquiring two images of the same position from the video monitoring resource data of the transformer substation at the second moment, wherein the two images are respectively a third image and a fourth image.
Specifically, in step S1, a computer is used to extract the current intra-site industrial video picture, and two consecutive images, i.e., four images in total, are extracted at intervals of 5S.
As an example of the above-described steps, according to the actual situation, the size of the extracted image is 1024 × 768 size in the present embodiment.
S2, carrying out difference on pixel blocks of the first image and the second image to obtain a pixel value difference value matrix between the first images; and carrying out difference on pixel blocks of the third image and the fourth image to obtain a pixel value difference value matrix between the second images.
And S3, performing DCT conversion processing on the first inter-image pixel value difference matrix and the second inter-image pixel value difference matrix respectively to obtain a first DCT coefficient matrix and a second DCT coefficient matrix.
It should be noted that, in step S3, the purpose of performing DCT conversion on the first inter-image pixel value difference matrix and the second inter-image pixel value difference matrix is to transform the inter-image pixel value difference matrix to a frequency domain, so as to achieve redundancy removal and better energy aggregation of the change degree, and to aggregate more important information of the images together, thereby implementing operations in subsequent steps.
Specifically, in step S3, the DCT is performed on the first inter-image pixel value difference matrix and the second inter-image pixel value difference matrix according to the following formula:
Figure BDA0003724792840000051
Figure BDA0003724792840000052
in the above formula, f (i, j) is a spatial domain two-dimensional vector element, i, j =0,1,2,3 \8230 \ 8230and N-1, f (u, v) is a transform coefficient array element, N is the total number of f (i, j), and c (u), c (v) are constants.
As shown in fig. 2, fig. 2 (a) is an 8 × 8 selected image block, and it can be found that after DCT transformation, a large amount of energy is concentrated in the low-frequency coefficient portion at the upper left corner of the 8 × 8 image block, as shown in fig. 2 (b), little energy is concentrated in the high-frequency coefficient at the lower right corner, and the energy fluctuation distribution of the difference matrix is obtained.
S4, quantizing the first DCT coefficient matrix and the second DCT coefficient matrix respectively to obtain a first quantization matrix and a second quantization matrix;
specifically, in step S4, in the step of quantizing the first DCT coefficient matrix and the second DCT coefficient matrix, the quantization method is: dividing the first and second DCT coefficient matrices by a constant, respectively; rounding the obtained value corresponding to the pixel point to get the whole. The quantization process is actually dividing the transformed DCT coefficient by a constant and then rounding, and the result of the quantization is an integer multiple of the quantization or more zero values, thereby achieving the purpose of compression, as shown in fig. 3, where fig. 3 (a) is the DCT coefficient matrix before quantization and fig. 3 (b) is the DCT coefficient matrix after quantization.
And S5, making a difference between the first quantization matrix and the second quantization matrix, and judging that abnormality occurs when the number of pixel blocks with the difference value exceeding a first set threshold exceeds a second set threshold.
Specifically, in step S5, pixels corresponding to the first quantization matrix and the second quantization matrix are subtracted to obtain a difference value of each pixel, if the difference value of the pixels exceeds a first set threshold, the pixel is considered to be abnormal, and when the number of the pixels exceeding the first set threshold exceeds a second set threshold, it is determined that the monitoring position in the substation is abnormal.
As an example, in step S5, the first set threshold may be set to 10, and the second set threshold may be set to a ratio of the abnormal pixel to all the pixels, for example, the ratio may be set to 30%, 50%, or the like.
In other embodiments, after the step of determining that an abnormality occurs when the number of pixel blocks with the difference value exceeding the first set threshold exceeds the second set threshold, the abnormality signal is sent to a background management center, and meanwhile, an acousto-optic alarm is carried out in the substation.
The method is verified by tests, and the in-station video is detected in real time by the method, so that the safety in the transformer substation can be guaranteed to the maximum extent. During the test, by simulating the form of fire, the method can quickly and efficiently detect the result and give warning to workers
Example 2
As shown in fig. 4, in a second aspect of the present invention, there is provided an abnormality recognition apparatus based on video compression coding, including:
the first acquisition module is used for acquiring two images at the same position from video monitoring resource data of the transformer substation at a first moment, wherein the two images are respectively a first image and a second image.
And the second acquisition module is used for acquiring two images at the same position from the video monitoring resource data of the transformer substation at the second moment, wherein the two images are respectively a third image and a fourth image.
In the first acquisition module and the second acquisition module, the size of the acquired image is 1024 × 768.
And the first difference module is used for performing difference on the pixel blocks of the first image and the second image to obtain a pixel value difference matrix between the first images.
And the second difference module is used for making a difference between the pixel blocks of the third image and the fourth image to obtain a pixel value difference matrix between the second images.
And the first conversion module is used for respectively performing DCT conversion processing on the first inter-image pixel value difference matrix and the second inter-image pixel value difference matrix to obtain a first DCT coefficient matrix and a second DCT coefficient matrix.
In the first conversion module, the inter-image pixel value difference matrix and the inter-image pixel value difference matrix are subjected to DCT conversion according to the following formula:
Figure BDA0003724792840000061
Figure BDA0003724792840000062
in the above formula, f (i, j) is a spatial domain two-dimensional vector element, i, j =0,1,2,3 \8230, N-1, f (u, v) is a transform coefficient array element, N is the total number of f (i, j), and c (u), c (v) are constants.
And the second conversion module is used for quantizing the first DCT coefficient matrix and the second DCT coefficient matrix respectively to obtain a first quantization matrix and a second quantization matrix.
In the second conversion module, in the step of quantizing the first DCT coefficient matrix and the second DCT coefficient matrix respectively, the quantization method is: dividing the first and second DCT coefficient matrices by a constant, respectively; rounding the obtained value corresponding to the pixel point to get the whole.
And the third difference module is used for making a difference between the first quantization matrix and the second quantization matrix, and judging that an abnormality occurs when the number of the pixel blocks with the difference value exceeding the first set threshold exceeds the second set threshold.
Example 3
As shown in fig. 5, the present invention further provides an electronic device 100 implementing the firework identification method based on video compression coding according to embodiment 1; the electronic device 100 comprises a memory 101, at least one processor 102, a computer program 103 stored in the memory 101 and executable on the at least one processor 102, and at least one communication bus 104. The memory 101 may be used to store a computer program 103, and the processor 102 may implement the firework identification method steps of embodiment 1 based on video compression coding by running or executing the computer program stored in the memory 101 and calling the data stored in the memory 101. The memory 101 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data) created according to the use of the electronic apparatus 100, and the like. In addition, the memory 101 may include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other non-volatile solid state storage device.
The at least one Processor 102 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The processor 102 may be a microprocessor or the processor 102 may be any conventional processor or the like, and the processor 102 is the control center of the electronic device 100 and connects the various parts of the entire electronic device 100 using various interfaces and lines.
The memory 101 in the electronic device 100 stores a plurality of instructions to implement a video compression coding based smoke and fire identification method, and the processor 102 may execute the plurality of instructions to implement:
acquiring two images at the same position from video monitoring resource data of a transformer substation at a first moment, wherein the two images are a first image and a second image respectively;
acquiring two images of the same position from video monitoring resource data of the transformer substation at a second moment, wherein the two images are respectively a third image and a fourth image;
making a difference between pixel blocks of the first image and the second image to obtain a pixel value difference value matrix between the first images;
making a difference between pixel blocks of the third image and the fourth image to obtain a pixel value difference value matrix between the second images;
performing DCT conversion processing on the first inter-image pixel value difference matrix and the second inter-image pixel value difference matrix respectively to obtain a first DCT coefficient matrix and a second DCT coefficient matrix;
quantizing the first DCT coefficient matrix and the second DCT coefficient matrix respectively to obtain a first quantization matrix and a second quantization matrix;
and performing difference on the first quantization matrix and the second quantization matrix, and judging that abnormality occurs when the number of pixel blocks with difference values exceeding a first set threshold exceeds a second set threshold.
Example 4
The integrated modules/units of the electronic device 100 may be stored in a computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow in the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium and used by a processor to implement the steps of the above-described embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, and Read-Only Memory (ROM).
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: although the present invention has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.

Claims (10)

1. An abnormality identification method based on video compression coding is characterized by comprising the following steps:
acquiring two images at the same position from video monitoring resource data of a transformer substation at a first moment, wherein the two images are a first image and a second image respectively;
acquiring two images of the same position from video monitoring resource data of the transformer substation at a second moment, wherein the two images are respectively a third image and a fourth image;
making a difference between pixel blocks of the first image and the second image to obtain a pixel value difference value matrix between the first images;
making a difference between pixel blocks of the third image and the fourth image to obtain a pixel value difference value matrix between the second images;
performing DCT conversion processing on the first inter-image pixel value difference matrix and the second inter-image pixel value difference matrix respectively to obtain a first DCT coefficient matrix and a second DCT coefficient matrix;
quantizing the first DCT coefficient matrix and the second DCT coefficient matrix respectively to obtain a first quantization matrix and a second quantization matrix;
and performing difference on the first quantization matrix and the second quantization matrix, and judging that abnormality occurs when the number of pixel blocks with difference values exceeding a first set threshold exceeds a second set threshold.
2. The method of claim 1, wherein the interval between the first time and the second time is 5s.
3. The method of claim 1, wherein in the step of quantizing the first matrix of DCT coefficients and the second matrix of DCT coefficients, respectively, the quantization is performed by:
dividing the first and second DCT coefficient matrices by a constant, respectively;
rounding the obtained value corresponding to the pixel point to get the whole.
4. The video compression coding-based anomaly identification method according to claim 1, wherein the sizes of the first image, the second image, the third image and the fourth image are 1024 × 768.
5. The method of claim 1, wherein in the step of performing DCT transform on the first inter-image pixel value difference matrix and the second inter-image pixel value difference matrix, the DCT transform is performed according to the following formula:
Figure FDA0003724792830000011
Figure FDA0003724792830000012
in the above formula, f (i, j) is a spatial domain two-dimensional vector element, i, j =0,1,2,3 \8230 \ 8230and N-1, f (u, v) is a transform coefficient array element, N is the total number of f (i, j), and c (u), c (v) are constants.
6. The method according to claim 1, wherein after the step of determining that an abnormality occurs when the number of pixel blocks with a difference value exceeding a first set threshold exceeds a second set threshold, the abnormality signal is sent to a background management center.
7. The video compression coding-based abnormality identification method according to claim 1, wherein an acousto-optic alarm is performed in a substation after the step of determining that an abnormality occurs when the number of pixel blocks having a difference value exceeding a first set threshold exceeds a second set threshold.
8. An abnormality recognition apparatus based on video compression coding, comprising:
the first acquisition module is used for acquiring two images at the same position from video monitoring resource data of a transformer substation at a first moment, wherein the two images are a first image and a second image respectively;
the second acquisition module is used for acquiring two images at the same position from the video monitoring resource data of the transformer substation at a second moment, wherein the two images are respectively a third image and a fourth image;
the first difference module is used for making a difference between the pixel blocks of the first image and the second image to obtain a pixel value difference matrix between the first images;
the second difference module is used for making a difference between pixel blocks of the third image and the fourth image to obtain a pixel value difference matrix between the second images;
the first conversion module is used for respectively performing DCT conversion processing on the first inter-image pixel value difference matrix and the second inter-image pixel value difference matrix to obtain a first DCT coefficient matrix and a second DCT coefficient matrix;
the second conversion module is used for quantizing the first DCT coefficient matrix and the second DCT coefficient matrix respectively to obtain a first quantization matrix and a second quantization matrix;
and the third difference module is used for making a difference between the first quantization matrix and the second quantization matrix, and judging that an abnormality occurs when the number of the pixel blocks with the difference value exceeding the first set threshold exceeds the second set threshold.
9. An electronic device, comprising a processor and a memory, wherein the processor is configured to execute a computer program stored in the memory to implement the video compression coding-based anomaly identification method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing at least one instruction, which when executed by a processor implements the method for identifying an abnormality based on video compression coding according to any one of claims 1 to 7.
CN202210763585.7A 2022-06-30 2022-06-30 Smoke and fire identification method, device, equipment and medium based on video compression coding Active CN115171328B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210763585.7A CN115171328B (en) 2022-06-30 2022-06-30 Smoke and fire identification method, device, equipment and medium based on video compression coding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210763585.7A CN115171328B (en) 2022-06-30 2022-06-30 Smoke and fire identification method, device, equipment and medium based on video compression coding

Publications (2)

Publication Number Publication Date
CN115171328A true CN115171328A (en) 2022-10-11
CN115171328B CN115171328B (en) 2023-11-10

Family

ID=83489932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210763585.7A Active CN115171328B (en) 2022-06-30 2022-06-30 Smoke and fire identification method, device, equipment and medium based on video compression coding

Country Status (1)

Country Link
CN (1) CN115171328B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001061648A2 (en) * 2000-02-17 2001-08-23 British Telecommunications Public Limited Company Visual attention location system
JP2004040446A (en) * 2002-07-03 2004-02-05 Victor Co Of Japan Ltd Image-coding device
CN101778265A (en) * 2010-01-13 2010-07-14 上海交通大学 Exception event detection and double-stream coding-based video monitoring method
US20120314064A1 (en) * 2011-06-13 2012-12-13 Sony Corporation Abnormal behavior detecting apparatus and method thereof, and video monitoring system
JP2013210798A (en) * 2012-03-30 2013-10-10 Jx Nippon Oil & Energy Corp Abnormality detecting method and abnormality detecting device
CN104093021A (en) * 2014-07-15 2014-10-08 上海工程技术大学 Monitoring video compression method
CN108028942A (en) * 2015-06-04 2018-05-11 清华大学 Coding method, coding/decoding method and its device
CN108171214A (en) * 2018-01-23 2018-06-15 北京易智能科技有限公司 A kind of video monitoring abnormality recognition method and system based on deep learning
JP2018160722A (en) * 2017-03-22 2018-10-11 三菱電機株式会社 Video abnormal stop detection device, video recording device, and video abnormal stop detection method
CN111741186A (en) * 2020-06-11 2020-10-02 浙江大华技术股份有限公司 Video jitter detection method, device and system
CN113068040A (en) * 2021-06-02 2021-07-02 苏州浪潮智能科技有限公司 Image compression method and device, electronic equipment and readable storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001061648A2 (en) * 2000-02-17 2001-08-23 British Telecommunications Public Limited Company Visual attention location system
JP2004040446A (en) * 2002-07-03 2004-02-05 Victor Co Of Japan Ltd Image-coding device
CN101778265A (en) * 2010-01-13 2010-07-14 上海交通大学 Exception event detection and double-stream coding-based video monitoring method
US20120314064A1 (en) * 2011-06-13 2012-12-13 Sony Corporation Abnormal behavior detecting apparatus and method thereof, and video monitoring system
JP2013210798A (en) * 2012-03-30 2013-10-10 Jx Nippon Oil & Energy Corp Abnormality detecting method and abnormality detecting device
CN104093021A (en) * 2014-07-15 2014-10-08 上海工程技术大学 Monitoring video compression method
CN108028942A (en) * 2015-06-04 2018-05-11 清华大学 Coding method, coding/decoding method and its device
JP2018160722A (en) * 2017-03-22 2018-10-11 三菱電機株式会社 Video abnormal stop detection device, video recording device, and video abnormal stop detection method
CN108171214A (en) * 2018-01-23 2018-06-15 北京易智能科技有限公司 A kind of video monitoring abnormality recognition method and system based on deep learning
CN111741186A (en) * 2020-06-11 2020-10-02 浙江大华技术股份有限公司 Video jitter detection method, device and system
CN113068040A (en) * 2021-06-02 2021-07-02 苏州浪潮智能科技有限公司 Image compression method and device, electronic equipment and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杜金尧;周勃;李鹤;张雪岩;: "风力机叶片缺陷的红外热像图像增强", 无损检测, no. 07, pages 47 - 51 *
王帅鹏;赵凯;: "基于图像处理的人员异常行为监测设计", 现代电子技术, no. 06, pages 119 - 122 *

Also Published As

Publication number Publication date
CN115171328B (en) 2023-11-10

Similar Documents

Publication Publication Date Title
CN110650316A (en) Intelligent patrol and early warning processing method and device, electronic equipment and storage medium
CN111008961B (en) Transmission line equipment defect detection method and system, equipment and medium thereof
CN109544870B (en) Alarm judgment method for intelligent monitoring system and intelligent monitoring system
CN111814776B (en) Image processing method, device, server and storage medium
CN111654700A (en) Privacy mask processing method and device, electronic equipment and monitoring system
Zhang et al. No reference image quality assessment based on local binary pattern statistics
CN111045889A (en) Closed network equipment state monitoring system, method and device and readable storage medium
US11120308B2 (en) Vehicle damage detection method based on image analysis, electronic device and storage medium
CN111325773A (en) Method, device and equipment for detecting moving target and readable storage medium
CN113661497A (en) Matching method, matching device, electronic equipment and computer-readable storage medium
US20090310855A1 (en) Event detection method and video surveillance system using said method
KR101296318B1 (en) Apparatus and method for object tracking by adaptive block partitioning
CN110969640A (en) Video image segmentation method, terminal device and computer-readable storage medium
CN113205510A (en) Railway intrusion foreign matter detection method, device and terminal
CN115171328B (en) Smoke and fire identification method, device, equipment and medium based on video compression coding
CN112052823A (en) Target detection method and device
KR102177494B1 (en) method of identifying abnormal-motion objects in compressed video by use of trajectory and pattern of motion vectors
CN111369591A (en) Method, device and equipment for tracking moving object
CN107861990B (en) Video searching method and system and terminal equipment
CN116129316A (en) Image processing method, device, computer equipment and storage medium
CN116189037A (en) Flame detection identification method and device and terminal equipment
CN112422772B (en) Image acquisition method, image acquisition device, terminal device and readable storage medium
CN114363579A (en) Monitoring video sharing method and device and electronic equipment
CN111191593A (en) Image target detection method and device, storage medium and sewage pipeline detection device
CN102196259B (en) Moving object detection system and method suitable for compression domain

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