CN113096120A - Method and system for identifying on-off state of protection pressing plate - Google Patents

Method and system for identifying on-off state of protection pressing plate Download PDF

Info

Publication number
CN113096120A
CN113096120A CN202110485769.7A CN202110485769A CN113096120A CN 113096120 A CN113096120 A CN 113096120A CN 202110485769 A CN202110485769 A CN 202110485769A CN 113096120 A CN113096120 A CN 113096120A
Authority
CN
China
Prior art keywords
pressing plate
protective
area
image
binarized 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.)
Pending
Application number
CN202110485769.7A
Other languages
Chinese (zh)
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.)
Suirui Technology Group Co Ltd
Original Assignee
Suirui Technology Group 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 Suirui Technology Group Co Ltd filed Critical Suirui Technology Group Co Ltd
Priority to CN202110485769.7A priority Critical patent/CN113096120A/en
Publication of CN113096120A publication Critical patent/CN113096120A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • 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/10016Video; Image sequence
    • 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/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30164Workpiece; Machine component

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a method and a system for identifying the on-off state of a protective pressing plate, wherein the method comprises the following steps: marking a main body area of the protective pressing plate and an area where a movable block of the protective pressing plate is located in the template image; detecting an image of a current protective pressing plate, and marking a main body area of the protective pressing plate and an area where a movable block of the protective pressing plate is located in the image of the current protective pressing plate according to a template matching algorithm; processing the marked image of the current protective pressing plate to obtain a binary image; determining the pixel proportion of a pixel value of 1 in a main body area of the protective pressing plate in the binarized image; and if the pixel ratio of the pixel value of 1 in the main body area of the protection pressing plate is smaller than a first preset threshold, judging that the current switching state of the protection pressing plate is abnormal. The invention can automatically identify the states of the protection pressing plate under various forms and shooting conditions, and greatly improves the universality and robustness of identification.

Description

Method and system for identifying on-off state of protection pressing plate
Technical Field
The invention relates to the technical field of machine vision and image recognition, in particular to a method and a system for recognizing the on-off state of a protective pressing plate.
Background
In the power system, the safe operation of the relay protection system is one of the most important safety guarantees, and the protection pressing plate is an important guarantee means for ensuring the safe operation of the relay protection system, so that great convenience is provided for the overhaul and the operation of the power system. At present, the on-off state of a protection pressing plate is manually operated and is completely checked by the responsibility and the actual technical level of operators, in the actual operation, the phenomenon that the protection system cannot operate correctly is caused sometimes because the pressing plate is not operated correctly, for the problem, the detection of the on-off state of the pressing plate is added into some existing intelligent monitoring systems, a camera is used for obtaining real-time images or videos of the protection pressing plate, the key information of the pressing plate is extracted by an algorithm, and the on-off state of the pressing plate is automatically identified.
The inventor finds that the existing intelligent identification method for the state of the protective pressing plate mainly comprises two categories in the process of realizing the invention. One is to determine the state of the protective platen by using edge profile information or image gray histogram statistical information. However, the acquisition of the edge profile information is greatly influenced by the quality of the shot image, and the image gray level histogram is greatly influenced by noise, peripheral equipment and the like, so that the method is difficult to realize higher resolution, and when the form of the protective pressing plate changes, the algorithm needs to be changed. The other type is that a machine learning method is used for training machine learning models for protective pressing plates in different states, and the trained models are used for identifying and judging the pressing plate on-off states.
The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.
Disclosure of Invention
The invention aims to provide a method and a system for identifying the on-off state of a protective pressing plate, which can automatically identify the states of the protective pressing plate under various forms and shooting conditions, and greatly improve the universality and the robustness of identification.
In order to achieve the above object, the present invention provides a method for identifying the on/off state of a protective pressing plate, comprising: acquiring a template image of a protective pressing plate, and marking a main body area of the protective pressing plate and an area where a movable block of the protective pressing plate is located in the template image; detecting an image of a current protective pressing plate, and marking a main body area of the protective pressing plate and an area where a movable block of the protective pressing plate is located in the image of the current protective pressing plate according to a template matching algorithm; processing the marked image of the current protective pressing plate to obtain a binary image; determining the pixel proportion of a pixel value of 1 in a main body area of the protective pressing plate in the binarized image; and if the pixel ratio of the pixel value of 1 in the main body area of the protection pressing plate is smaller than a first preset threshold, judging that the current switching state of the protection pressing plate is abnormal.
In an embodiment of the present invention, the method for identifying the on/off state of the protective pressing plate further includes: if the pixel proportion of the pixel value 1 in the main area of the protective pressing plate is not less than the first preset threshold, determining the ratio of the number of pixels of the pixel value 1 in the area where the movable block of the protective pressing plate is located in the binarized image to the number of pixels of the pixel value 1 in the main area of the protective pressing plate in the binarized image; if the ratio is smaller than a second preset threshold value, judging that the protection pressing plate is in a switching state at present, and otherwise, judging that the protection pressing plate is in a withdrawing state at present.
In one embodiment of the present invention, processing the labeled image of the current protective platen to obtain a binarized image includes: converting RGB space images of a main area of the protection pressing plate and an area where a movable block of the protection pressing plate is located, which are marked in the image of the current protection pressing plate, into HSV space images, and extracting color space components of the HSV space images; denoising the HSV space image, converting the denoised HSV space image into a binary image based on the color space component of the HSV space image, and performing morphological processing on the binary image.
In one embodiment of the present invention, determining a pixel proportion of a pixel value of 1 in a main area of the protective pressure plate in the binarized image includes: and determining the pixel proportion of which the pixel value is 1 in the main body area of the protective pressing plate in the binarized image according to the first formula.
Wherein the first formula is:
Figure BDA0003050168500000031
wherein P1 is the pixel fraction; x represents a column in which a pixel is located in a main body region of the protective pressure plate in the binarized image; y represents a row in which pixels are located in a main body region of the protective platen in the binarized image; f (x, y) is a pixel value of a pixel of a main body region of the protective platen in the binarized image; m1The number of pixels in the horizontal direction of the main body area of the protective pressing plate in the binarized image is set; n is a radical of1And the number of pixels in the vertical direction of a main area of the protective pressing plate in the binarized image is determined, wherein the main area is a rectangular area.
In an embodiment of the present invention, determining a ratio between the number of pixels having a pixel value of 1 in an area where a movable block of the protective platen is located in the binarized image and the number of pixels having a pixel value of 1 in a main area of the protective platen in the binarized image includes: and determining the ratio of the number of pixels with the pixel value of 1 in the area where the movable block of the protective pressing plate is located in the binarized image to the number of pixels with the pixel value of 1 in the main body area of the protective pressing plate in the binarized image according to a second formula.
Wherein the second formula is
Figure BDA0003050168500000032
Wherein P2 is the ratio; s is the movement of the protective pressing plate in the binarized imageThe column in which the pixel is located in the region in which the block is located; t is a row where pixels are located in an area where a movable block of the protective pressing plate is located in the binarized image; g (s, t) is the pixel value of the pixel of the region where the movable block of the protective pressing plate is located in the binarized image; m2The number of pixels in the horizontal direction of an area where a movable block of the protective pressing plate is located in the binarized image is set; n is a radical of2And the number of pixels in the vertical direction of an area where a movable block of the protective pressing plate is located in the binarized image is the number of pixels in the vertical direction, wherein the area where the movable block is located is a rectangular area.
Based on the same inventive concept, in an embodiment, a system for identifying the on/off state of a protective pressing plate is further provided, which includes: the system comprises a template image annotation module, a current image annotation module, an image processing module, a pixel proportion determining module and a first judging module. The template image marking module is used for acquiring a template image of the protective pressing plate and marking a main body area of the protective pressing plate and an area where a movable block of the protective pressing plate is located in the template image. And the current image marking module is coupled with the template image marking module and is used for detecting the image of the current protective pressing plate and marking the main area of the protective pressing plate and the area where the movable block of the protective pressing plate is located in the image of the current protective pressing plate according to a template matching algorithm. And the image processing module is coupled with the current image labeling module and is used for processing the labeled image of the current protective pressing plate so as to obtain a binarized image. The pixel ratio determining module is coupled with the image processing module and is used for determining the pixel ratio of the pixel value of 1 in the main body area of the protective pressing plate in the binarized image. The first judging module is coupled with the pixel proportion determining module and used for judging that the current switching state of the protection pressing plate is abnormal if the pixel proportion of which the pixel value is 1 in the main body area of the protection pressing plate is smaller than a first preset threshold value.
In an embodiment of the present invention, the system for recognizing the protection pressing plate on/off state further includes: a ratio determining module and a second judging module. The ratio determining module is coupled to the first determining module, and configured to determine, if the pixel proportion of the pixel value 1 in the main area of the protective pressing plate is not less than the first preset threshold, a ratio between the number of pixels of the pixel value 1 in the area where the movable block of the protective pressing plate is located in the binarized image and the number of pixels of the pixel value 1 in the main area of the protective pressing plate in the binarized image. And the second judging module is coupled with the ratio determining module and used for judging that the current throwing and withdrawing state of the protection pressing plate is the throwing state if the ratio is smaller than a second preset threshold value, and otherwise, judging that the current throwing and withdrawing state of the protection pressing plate is the withdrawing state.
In an embodiment of the present invention, the pixel ratio determining module is configured to determine a pixel ratio of a pixel value of 1 in a main body area of the protective pressing plate in the binarized image according to a first equation.
Wherein the first formula is:
Figure BDA0003050168500000041
wherein P1 is the pixel fraction; x represents a column in which a pixel is located in a main body region of the protective pressure plate in the binarized image; y represents a row in which pixels are located in a main body region of the protective platen in the binarized image; f (x, y) is a pixel value of a pixel of a main body region of the protective platen in the binarized image; m1The number of pixels in the horizontal direction of the main body area of the protective pressing plate in the binarized image is set; n is a radical of1And the number of pixels in the vertical direction of a main area of the protective pressing plate in the binarized image is determined, wherein the main area is a rectangular area.
In an embodiment of the present invention, the ratio determining module is configured to determine, according to a second equation, a ratio between the number of pixels having a pixel value of 1 in an area where a movable block of the protective pressing plate in the binarized image is located and the number of pixels having a pixel value of 1 in a main area of the protective pressing plate in the binarized image.
Wherein the second formula is
Figure BDA0003050168500000051
Wherein P2 is the ratio; s is a column where pixels are located in an area where the movable block of the protective pressing plate is located in the binarized image; t is a row where pixels are located in an area where a movable block of the protective pressing plate is located in the binarized image; g (s, t) is the pixel value of the pixel of the region where the movable block of the protective pressing plate is located in the binarized image; m2The number of pixels in the horizontal direction of an area where a movable block of the protective pressing plate is located in the binarized image is set; n is a radical of2And the number of pixels in the vertical direction of an area where a movable block of the protective pressing plate is located in the binarized image is the number of pixels in the vertical direction, wherein the area where the movable block is located is a rectangular area.
Based on the same inventive concept, an embodiment also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of identifying the protection pressure plate on/off state according to any one of the above embodiments.
Compared with the prior art, the method and the system for identifying the on-off state of the protective pressing plate can quickly judge the on-off state of the protective pressing plate under various forms and shooting conditions, and greatly improve the universality and the robustness of identification.
Drawings
FIG. 1 is a block diagram of steps of a method for identifying a run-in and run-out condition of a protective platen according to an embodiment of the present invention;
FIG. 2 is a block diagram of steps of a method for identifying the run-in and run-out status of a protective platen according to an embodiment of the present invention;
FIG. 3 is a binarized image according to an embodiment of the present invention;
FIG. 4 is a block diagram of a system for identifying the run-in and run-out status of a protective platen, according to one embodiment of the present invention;
fig. 5 is a block diagram of a system for identifying the run-in and run-out status of a protective platen according to an embodiment of the present invention.
Detailed Description
The following detailed description of the present invention is provided in conjunction with the accompanying drawings, but it should be understood that the scope of the present invention is not limited to the specific embodiments.
Throughout the specification and claims, unless explicitly stated otherwise, the word "comprise", or variations such as "comprises" or "comprising", will be understood to imply the inclusion of a stated element or component but not the exclusion of any other element or component.
Fig. 1 is a block diagram of steps of a method for recognizing a protection pressing plate in/out state according to an embodiment of the present invention, the method including: step S1 to step S5.
In step S1, a template image of the protective platen is acquired, and the main body area of the protective platen and the area where the movable block of the protective platen is located are marked in the template image.
In step S2, an image of the current protective platen is detected, and a main area of the protective platen and an area where a movable block of the protective platen is located are marked in the image of the current protective platen according to a template matching algorithm.
In step S3, the labeled image of the current protective platen is processed to obtain a binarized image. The pixel value of the binarized image is not 0, i.e., 1.
In step S4, a pixel proportion of a pixel value of 1 in the main body area of the protective pressure plate in the binarized image is determined.
In step S5, if the pixel ratio of the pixel value 1 in the main area of the protective pressure plate is smaller than the first preset threshold, it is determined that the current retraction state of the protective pressure plate is abnormal. The first preset threshold is an empirical value, a plurality of typical template images can be found, the pixel proportion of a main area pixel value of 1 on each template image is respectively obtained, and the average value of all the proportion values is used as the first preset threshold.
Therefore, aiming at the problem that the existing intelligent identification method for the state of the protection pressing plate is poor in universality and robustness, the method for identifying the on-off state of the protection pressing plate can quickly judge whether the on-off state of the protection pressing plate is abnormal or not under various forms and shooting conditions, and the universality and robustness of identification are greatly improved.
Preferably, in order to obtain an accurate binarized image, processing the labeled image of the current protective platen to obtain a binarized image comprises: converting RGB space images of a main area of the protection pressing plate and an area where a movable block of the protection pressing plate is located, which are marked in the image of the current protection pressing plate, into HSV space images, and extracting color space components of the HSV space images; denoising the HSV space image, converting the denoised HSV space image into a binary image based on the color space component of the HSV space image, and performing morphological processing on the binary image. The color space components include, but are not limited to, chroma H, saturation S, and luminance V. The binarization method includes, but is not limited to, fixed threshold binarization, adaptive threshold binarization, OTSU Dajin binarization, and the like. The morphological operations include operations such as open and close operations.
Further, as shown in fig. 2, step S5 of the method for identifying the protection pressing plate moving-in and moving-out state according to one embodiment further includes: if the pixel proportion of the pixel value 1 in the main area of the protection pressing plate is not less than the first preset threshold, determining the ratio between the number of pixels of the pixel value 1 in the area where the movable block of the protection pressing plate is located in the binarized image and the number of pixels of the pixel value 1 in the main area of the protection pressing plate in the binarized image.
In step S6, if the ratio is smaller than a second preset threshold, the method for identifying the on/off state of the protection pressing plate determines that the protection pressing plate is currently in the on state, otherwise, the method determines that the protection pressing plate is currently in the off state. The second preset threshold is an empirical value, a plurality of typical template images can be found, the ratio of the number of pixels with a pixel value of 1 in the region where the movable block is located on each template image to the number of pixels with a pixel value of 1 in the main body region of the protection pressing plate in the binarized image is respectively obtained, and the average value of each ratio value is obtained to serve as the first preset threshold. Therefore, the method for identifying the on-off state of the protection pressing plate can quickly judge whether the on-off state of the protection pressing plate is abnormal or not under various forms and shooting conditions and the specific on-off state of the current protection pressing plate, and greatly improves the universality and the robustness of identification.
Optionally, in an embodiment, both the main body area and the active block area of the protective pressing plate are labeled with rectangles, and fig. 3 is a binarized image obtained by using the rectangular labeled area according to an embodiment. Wherein, R1 is a main body label area, and R2 is a protection block label area. In this embodiment, the determining the pixel proportion of the pixel value 1 in the main area of the protective pressure plate in the binarized image includes: and determining the pixel proportion of which the pixel value is 1 in the main body area of the protective pressing plate in the binarized image according to the first formula.
Wherein the first formula is:
Figure BDA0003050168500000081
wherein P1 is the pixel fraction; x represents a column in the binarized image in which pixels are located in the main body region R1 of the protective platen; y represents the row of pixels in the main body region R1 of the protective platen in the binarized image; f (x, y) is a pixel value of a pixel of the main body region R1 of the protective platen in the binarized image; m1The number of horizontal-direction pixels of the main body region R1 of the protective platen in the binarized image; n is a radical of1The number of vertical-direction pixels of a main area R1 of the protective platen in the binarized image, wherein the main area is a rectangular area.
In addition, in the present embodiment, the determining of the ratio between the number of pixels having a pixel value of 1 in the area where the movable block of the protective pressure plate is located in the binarized image and the number of pixels having a pixel value of 1 in the main area of the protective pressure plate in the binarized image includes: and determining the ratio of the number of pixels with the pixel value of 1 in the area where the movable block of the protective pressing plate is located in the binarized image to the number of pixels with the pixel value of 1 in the main body area of the protective pressing plate in the binarized image according to a second formula.
Wherein the second formula is
Figure BDA0003050168500000091
Wherein P2 is the ratio; s is a column in which pixels are located in a region R2 in which the movable block of the protective pressing plate is located in the binarized image; t is a row where pixels are located in a region R2 where the movable block of the protective platen is located in the binarized image; g (s, t) is a pixel value of a pixel in a region R2 where a movable block of the protective platen is located in the binarized image; m2The number of pixels in the horizontal direction of a region R2 where a movable block of the protective pressing plate is located in the binarized image is set; n is a radical of2Is the number of vertical-direction pixels of the area in the binarized image where the movable block R2 of the protective platen is located.
Based on the same inventive concept, in an embodiment, there is also provided a system for identifying the on/off state of a protective pressure plate, as shown in fig. 4, the system includes: the image processing system comprises a template image labeling module 10, a current image labeling module 11, an image processing module 12, a pixel proportion determining module 13 and a first judging module 14.
The template image labeling module 10 is configured to obtain a template image of the protective pressing plate, and label a main area of the protective pressing plate and an area where a movable block of the protective pressing plate is located in the template image.
The current image labeling module 11 is coupled to the template image labeling module 10, and is configured to detect an image of a current protective pressing plate, and mark a main area of the protective pressing plate and an area where a movable block of the protective pressing plate is located in the image of the current protective pressing plate according to a template matching algorithm.
The image processing module 12 is coupled to the current image labeling module 11, and is configured to process the labeled image of the current protective pressing plate to obtain a binarized image.
The pixel ratio determining module 13 is coupled to the image processing module 12, and is configured to determine a pixel ratio of a pixel value 1 in a main area of the protective pressing plate in the binarized image.
The first determining module 14 is coupled to the pixel proportion determining module 13, and configured to determine that the current on/off state of the protection pressing plate is abnormal if the pixel proportion of the pixel value 1 in the main area of the protection pressing plate is smaller than a first preset threshold.
Therefore, aiming at the problem that the existing intelligent protection pressing plate state identification method is poor in universality and robustness, the system for identifying the on-off state of the protection pressing plate can quickly judge whether the on-off state of the protection pressing plate is abnormal or not under various forms and shooting conditions, and the universality and robustness of identification are greatly improved.
Preferably, in order to obtain an accurate binary image, the image processing module 12 is specifically configured to convert RGB space images of a main area of the protection pressing plate and an area where a movable block of the protection pressing plate, which are marked in the image of the current protection pressing plate, into HSV space images, and extract color space components of the HSV space images; and denoising the HSV space image, converting the denoised HSV space image into a binary image based on the color space component of the HSV space image, and performing morphological processing on the binary image.
Preferably, as shown in fig. 5, the system for identifying the protection pressing plate in/out state of an embodiment further includes: a ratio determination module 15 and a second judgment module 16.
The ratio determining module 15 is coupled to the first determining module 14, and configured to determine, if the pixel proportion of the pixel value 1 in the main area of the protective pressing plate is not less than the first preset threshold, a ratio between the number of pixels of the pixel value 1 in the area where the movable block of the protective pressing plate is located in the binarized image and the number of pixels of the pixel value 1 in the main area of the protective pressing plate in the binarized image.
The second determining module 16 is coupled to the ratio determining module 15, and configured to determine that the current on/off state of the protection pressing plate is the on state if the ratio is smaller than a second preset threshold, and otherwise determine that the current on/off state of the protection pressing plate is the off state. Therefore, the method for identifying the on-off state of the protection pressing plate can quickly judge whether the on-off state of the protection pressing plate is abnormal under various forms and shooting conditions, can also judge the specific on-off state of the current protection pressing plate, and greatly improves the universality and robustness of identification.
Optionally, in an embodiment, the main area of the protective pressing plate and the active block area are both marked with rectangles, and the pixel proportion determining module 13 is specifically configured to determine, according to the first formula, a pixel proportion of a pixel value 1 in the main area of the protective pressing plate in the binarized image.
Wherein the first formula is:
Figure BDA0003050168500000111
wherein P1 is the pixel fraction; x represents a column in which a pixel is located in a main body region of the protective pressure plate in the binarized image; y represents a row in which pixels are located in a main body region of the protective platen in the binarized image; f (x, y) is a pixel value of a pixel of a main body region of the protective platen in the binarized image; m1The number of pixels in the horizontal direction of the main body area of the protective pressing plate in the binarized image is set; n is a radical of1And the number of pixels in the vertical direction of a main area of the protective pressing plate in the binarized image is determined, wherein the main area is a rectangular area.
The ratio determining module 15 is specifically configured to determine, according to a second equation, a ratio between the number of pixels having a pixel value of 1 in an area where the movable block of the protective pressing plate is located in the binarized image and the number of pixels having a pixel value of 1 in the main area of the protective pressing plate in the binarized image.
Wherein the second formula is
Figure BDA0003050168500000112
Wherein P2 isThe ratio; s is a column where pixels are located in an area where the movable block of the protective pressing plate is located in the binarized image; t is a row where pixels are located in an area where a movable block of the protective pressing plate is located in the binarized image; g (s, t) is the pixel value of the pixel of the region where the movable block of the protective pressing plate is located in the binarized image; m2The number of pixels in the horizontal direction of an area where a movable block of the protective pressing plate is located in the binarized image is set; n is a radical of2And the number of pixels in the vertical direction of an area where a movable block of the protective pressing plate is located in the binarized image is the number of pixels in the vertical direction, wherein the area where the movable block is located is a rectangular area.
Based on the same inventive concept, an embodiment also provides a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of identifying the protection platen on-off state as described in any one of the above embodiments.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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.
The foregoing descriptions of specific exemplary embodiments of the present invention have been presented for purposes of illustration and description. It is not intended to limit the invention to the precise form disclosed, and obviously many modifications and variations are possible in light of the above teaching. The exemplary embodiments were chosen and described in order to explain certain principles of the invention and its practical application to enable one skilled in the art to make and use various exemplary embodiments of the invention and various alternatives and modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims and their equivalents.

Claims (10)

1. A method for identifying the on-off state of a protective pressing plate is characterized by comprising the following steps:
acquiring a template image of a protective pressing plate, and marking a main body area of the protective pressing plate and an area where a movable block of the protective pressing plate is located in the template image;
detecting an image of a current protective pressing plate, and marking a main body area of the protective pressing plate and an area where a movable block of the protective pressing plate is located in the image of the current protective pressing plate according to a template matching algorithm;
processing the marked image of the current protective pressing plate to obtain a binary image;
determining the pixel proportion of a pixel value of 1 in a main body area of the protective pressing plate in the binarized image;
and if the pixel ratio of the pixel value of 1 in the main body area of the protection pressing plate is smaller than a first preset threshold, judging that the current switching state of the protection pressing plate is abnormal.
2. The method for identifying the protection platen on/off state according to claim 1, further comprising:
if the pixel proportion of the pixel value 1 in the main area of the protective pressing plate is not less than the first preset threshold, determining the ratio of the number of pixels of the pixel value 1 in the area where the movable block of the protective pressing plate is located in the binarized image to the number of pixels of the pixel value 1 in the main area of the protective pressing plate in the binarized image;
if the ratio is smaller than a second preset threshold value, judging that the protection pressing plate is in a switching state at present, and otherwise, judging that the protection pressing plate is in a withdrawing state at present.
3. The method for identifying the on-off state of the protective platen as recited in claim 1, wherein processing the labeled image of the current protective platen to obtain a binarized image comprises:
converting RGB space images of a main area of the protection pressing plate and an area where a movable block of the protection pressing plate is located, which are marked in the image of the current protection pressing plate, into HSV space images, and extracting color space components of the HSV space images;
denoising the HSV space image, converting the denoised HSV space image into a binary image based on the color space component of the HSV space image, and performing morphological processing on the binary image.
4. The method of identifying a state of depression of a protective platen according to claim 1 or 2, wherein determining a pixel proportion of a pixel value of 1 in a subject region of the protective platen in the binarized image comprises:
determining a pixel proportion of a pixel value of 1 in a main body area of the protective pressing plate in the binarized image according to a first formula,
wherein the first formula is:
Figure FDA0003050168490000021
wherein P1 is the pixel fraction; x represents a column in which a pixel is located in a main body region of the protective pressure plate in the binarized image; y represents a row in which pixels are located in a main body region of the protective platen in the binarized image; f (x, y) is a pixel value of a pixel of a main body region of the protective platen in the binarized image; m1The number of pixels in the horizontal direction of the main body area of the protective pressing plate in the binarized image is set; n is a radical of1And the number of pixels in the vertical direction of a main area of the protective pressing plate in the binarized image is determined, wherein the main area is a rectangular area.
5. The method of identifying a protection platen plunge and retreat state according to claim 4, wherein determining a ratio between the number of pixels having a pixel value of 1 in an area where a movable block of the protection platen in the binarized image is located and the number of pixels having a pixel value of 1 in a main area of the protection platen in the binarized image comprises:
determining a ratio of the number of pixels having a pixel value of 1 in an area where a movable block of the protective pressing plate is located in the binarized image to the number of pixels having a pixel value of 1 in a main area of the protective pressing plate in the binarized image according to a second equation,
wherein the second formula is
Figure FDA0003050168490000022
Wherein P2 is the ratio; s is a column where pixels are located in an area where the movable block of the protective pressing plate is located in the binarized image; t is a row where pixels are located in an area where a movable block of the protective pressing plate is located in the binarized image; g (s, t) is the pixel value of the pixel of the region where the movable block of the protective pressing plate is located in the binarized image; m2The number of pixels in the horizontal direction of an area where a movable block of the protective pressing plate is located in the binarized image is set; n is a radical of2And the number of pixels in the vertical direction of an area where a movable block of the protective pressing plate is located in the binarized image is the number of pixels in the vertical direction, wherein the area where the movable block is located is a rectangular area.
6. The utility model provides a system for discernment protection clamp plate is thrown and is moved back state which characterized in that includes:
the template image marking module is used for acquiring a template image of the protective pressing plate and marking a main body area of the protective pressing plate and an area where a movable block of the protective pressing plate is located in the template image;
the current image marking module is coupled with the template image marking module and is used for detecting the image of the current protective pressing plate and marking the main area of the protective pressing plate and the area where the movable block of the protective pressing plate is located in the image of the current protective pressing plate according to a template matching algorithm;
the image processing module is coupled with the current image labeling module and is used for processing the labeled image of the current protective pressing plate so as to obtain a binarized image;
a pixel ratio determining module, coupled to the image processing module, for determining a pixel ratio of a pixel value of 1 in a main area of the protective pressing plate in the binarized image;
and the first judgment module is coupled with the pixel proportion determination module and used for judging that the current switching state of the protection pressing plate is abnormal if the pixel proportion of which the pixel value is 1 in the main body area of the protection pressing plate is smaller than a first preset threshold value.
7. The system for identifying the protection platen entry and exit state according to claim 6, wherein the system for identifying the protection platen entry and exit state further comprises:
a ratio determining module, coupled to the first determining module, configured to determine, if a pixel proportion of a pixel value 1 in a main area of the protective pressing plate is not less than the first preset threshold, a ratio between the number of pixels of a pixel value 1 in an area where a movable block of the protective pressing plate is located in the binarized image and the number of pixels of a pixel value 1 in the main area of the protective pressing plate in the binarized image;
and the second judging module is coupled with the ratio determining module and used for judging that the current switching state of the protection pressing plate is a switching state if the ratio is smaller than a second preset threshold value, and otherwise, judging that the current switching state of the protection pressing plate is a switching state.
8. The system for identifying the thrown state of the protective platen as claimed in claim 6 or 7, wherein the pixel proportion determining module is configured to determine a pixel proportion of a pixel value of 1 in a subject region of the protective platen in the binarized image according to a first formula,
wherein the first formula is:
Figure FDA0003050168490000041
wherein P1 is the pixel fraction; x represents a column in which a pixel is located in a main body region of the protective pressure plate in the binarized image; y represents a row in which pixels are located in a main body region of the protective platen in the binarized image; f (x, y) is a pixel value of a pixel of a main body region of the protective platen in the binarized image; m1The number of pixels in the horizontal direction of the main body area of the protective pressing plate in the binarized image is set; n is a radical of1For the sag of the main body area of the protective pressure plate in the binarized imageThe number of pixels in the vertical direction, wherein the main area is a rectangular area.
9. The system for identifying the thrown state of the protective platen as claimed in claim 8, wherein the ratio determining module is configured to determine a ratio between the number of pixels having a pixel value of 1 in an area where a movable block of the protective platen is located in the binarized image and the number of pixels having a pixel value of 1 in a main area of the protective platen in the binarized image according to a second equation,
wherein the second formula is
Figure FDA0003050168490000042
Wherein P2 is the ratio; s is a column where pixels are located in an area where the movable block of the protective pressing plate is located in the binarized image; t is a row where pixels are located in an area where a movable block of the protective pressing plate is located in the binarized image; g (s, t) is the pixel value of the pixel of the region where the movable block of the protective pressing plate is located in the binarized image; m2The number of pixels in the horizontal direction of an area where a movable block of the protective pressing plate is located in the binarized image is set; n is a radical of2And the number of pixels in the vertical direction of an area where a movable block of the protective pressing plate is located in the binarized image is the number of pixels in the vertical direction, wherein the area where the movable block is located is a rectangular area.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of identifying a protective platen plunge state according to any of claims 1-5.
CN202110485769.7A 2021-04-30 2021-04-30 Method and system for identifying on-off state of protection pressing plate Pending CN113096120A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110485769.7A CN113096120A (en) 2021-04-30 2021-04-30 Method and system for identifying on-off state of protection pressing plate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110485769.7A CN113096120A (en) 2021-04-30 2021-04-30 Method and system for identifying on-off state of protection pressing plate

Publications (1)

Publication Number Publication Date
CN113096120A true CN113096120A (en) 2021-07-09

Family

ID=76681169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110485769.7A Pending CN113096120A (en) 2021-04-30 2021-04-30 Method and system for identifying on-off state of protection pressing plate

Country Status (1)

Country Link
CN (1) CN113096120A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113610091A (en) * 2021-07-30 2021-11-05 随锐科技集团股份有限公司 Intelligent identification method and device for air switch state and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1845606A (en) * 2006-05-15 2006-10-11 华北电力大学(北京) Automatic image recognizing and monitoring method for power high voltage circuit breaker switch state
CN107680093A (en) * 2017-10-12 2018-02-09 广东电网有限责任公司电力科学研究院 The discrimination method and device of state are moved back in a kind of throwing of the interconnection system switch of protection pressing plate
CN108805038A (en) * 2018-05-23 2018-11-13 三峡大学 A kind of transformer substation protection pressure plate state identification method
CN111191721A (en) * 2019-12-30 2020-05-22 国网浙江省电力有限公司宁波供电公司 Protection pressing plate state identification method based on AI technology
CN111738142A (en) * 2020-06-19 2020-10-02 福建省海峡智汇科技有限公司 Method and system for judging air switch state
CN111915544A (en) * 2020-07-03 2020-11-10 三峡大学 Image fusion-based method for identifying running state of protection pressing plate
CN112418226A (en) * 2020-10-23 2021-02-26 济南信通达电气科技有限公司 Method and device for identifying opening and closing states of fisheyes

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1845606A (en) * 2006-05-15 2006-10-11 华北电力大学(北京) Automatic image recognizing and monitoring method for power high voltage circuit breaker switch state
CN107680093A (en) * 2017-10-12 2018-02-09 广东电网有限责任公司电力科学研究院 The discrimination method and device of state are moved back in a kind of throwing of the interconnection system switch of protection pressing plate
CN108805038A (en) * 2018-05-23 2018-11-13 三峡大学 A kind of transformer substation protection pressure plate state identification method
CN111191721A (en) * 2019-12-30 2020-05-22 国网浙江省电力有限公司宁波供电公司 Protection pressing plate state identification method based on AI technology
CN111738142A (en) * 2020-06-19 2020-10-02 福建省海峡智汇科技有限公司 Method and system for judging air switch state
CN111915544A (en) * 2020-07-03 2020-11-10 三峡大学 Image fusion-based method for identifying running state of protection pressing plate
CN112418226A (en) * 2020-10-23 2021-02-26 济南信通达电气科技有限公司 Method and device for identifying opening and closing states of fisheyes

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113610091A (en) * 2021-07-30 2021-11-05 随锐科技集团股份有限公司 Intelligent identification method and device for air switch state and storage medium

Similar Documents

Publication Publication Date Title
CN107729899B (en) License plate number recognition method and device
CN104063722B (en) A kind of detection of fusion HOG human body targets and the safety cap recognition methods of SVM classifier
Babu et al. Vehicle number plate detection and recognition using bounding box method
Wang et al. Robust license plate recognition based on dynamic projection warping
KR101182173B1 (en) Method and system for recognizing vehicle plate
CN101887518B (en) Human detecting device and method
CN111191573A (en) Driver fatigue detection method based on blink rule recognition
CN110309806B (en) Gesture recognition system and method based on video image processing
KR20150137752A (en) Character recognition method and apparatus thereof
US20080304699A1 (en) Face feature point detection apparatus and method of the same
CN106097368A (en) A kind of recognition methods in veneer crack
KR101737430B1 (en) A method of detecting objects in the image with moving background
KR101613703B1 (en) detection of vehicle video and license plate region extraction method
CN111754525B (en) Industrial character detection flow based on inaccurate segmentation
CN113096120A (en) Method and system for identifying on-off state of protection pressing plate
KR101523765B1 (en) Enhanced Method for Detecting Iris from Smartphone Images in Real-Time
CN104504384B (en) Automobile logo identification method and its identifying system
US20150262382A1 (en) Image processing apparatus and image processing method
Chowdhury et al. Extracting and segmenting container name from container images
CN106339709A (en) Real-time image extraction method
Kumar et al. License plate tracking using gradient based segmentation
CN111935480A (en) Detection method for image acquisition device and related device
CN112488031A (en) Safety helmet detection method based on color segmentation
Zhao et al. Comparative analysis of several vehicle detection methods in urban traffic scenes
CN111462053A (en) Image morphology processing method and 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