Electric energy meter fault detection method
Through the LCD screen detection solution configuration and function detection process, the accurate diagnosis of electric energy meter faults is achieved, which solves the problems of inaccuracy and low efficiency of fault detection in the existing technology, and improves the maintenance efficiency and reliability of electric energy meters.
Patent Information
- Application Number
- CN202410682105.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-05-29
AI Technical Summary
Existing energy meter fault detection methods cannot achieve accurate fault identification, especially the lack of real-time and accuracy in LCD character defect detection, resulting in low detection efficiency and high cost.
Using the LCD screen detection solution configuration process and function detection process, by obtaining the standard diagram of the electric energy meter in different fault states, identify and segment the LCD screen area, design the selection method of the target detection character area, upload the location information to the database, and combine multiple test channels Obtain the LCD screen test chart to detect character defects and achieve accurate fault diagnosis.
It improves the accuracy and efficiency of fault detection, reduces the time and cost of maintenance and troubleshooting, and enhances the reliability and maintenance efficiency of electric energy meters.
Smart Images

Figure CN118642033A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of machine vision and relates to a method for detecting faults of an electric energy meter. Background Art
[0002] Electricity meters have become one of the indispensable devices in the lives of every household. In order to facilitate use and maintenance, the electricity meter is equipped with an LCD screen to display the electricity amount, date and time, voltage, current, current rate and other data of the electricity meter in real time, and intuitively display the status of the electricity meter.
[0003] The main methods for fault detection of electric energy meters include visual inspection, condition monitoring-based inspection, infrared thermal imaging inspection, etc. For example, the visual inspection method is to check the appearance and display screen of the electric energy meter through a manual or automated visual inspection system. Manual inspection relies on the operator's experience and attention, while the automated visual inspection system uses cameras and image processing software to identify and classify faults. Although the display content of the electric energy meter is mostly dynamically changing, this type of inspection is difficult and the existing visual inspection method cannot accurately identify the fault. At the same time, in order to ensure the detection accuracy, the traditional neural network-based detection method designs a complex network structure, and the operation time is too long, which cannot meet the real-time requirements for the detection of character defects on the meter LCD screen, and has low practical value.
[0004] Based on the defects of the above method, the present invention proposes an electric energy meter fault detection method to achieve accurate fault identification. Summary of the invention
[0005] The purpose of the present invention is to address the deficiencies of the prior art and to propose a method for detecting faults in an electric energy meter.
[0006] In order to solve the above technical problems, the technical solution of the present invention is:
[0007] In a first aspect, the present invention provides an electric energy meter fault detection method, including a liquid crystal screen detection scheme configuration process and a function detection process;
[0008] The LCD screen detection scheme configuration process includes the following steps:
[0009] Step (S11): obtaining standard diagrams of electric energy meters in different fault states;
[0010] Step (S12): identifying and segmenting the LCD screen area and pre-processing;
[0011] S12.1 recognizes and segments the standard diagram of the electric energy meter to obtain a liquid crystal screen image;
[0012] S12.2 Preprocessing the LCD screen image to obtain a binary image;
[0013] Step (S13): recognizing and segmenting characters of the LCD standard image, and recording the position information of the segmented characters;
[0014] Step (S14): designing a method for selecting a target detection character area;
[0015] The method for selecting the target detection character area selects the target detection character area by clicking the mouse, and / or selects the target detection character area by dragging the mouse;
[0016] The method of selecting the target detection character area by clicking the mouse is to add a button on the character segmented in step (3) so as to obtain the relative position of the current character by clicking the button, thereby completing the function of selecting the corresponding character position;
[0017] The method of selecting the target detection character area by dragging the mouse is to click, move, and release the mouse on the LCD screen standard image obtained in step (2) to complete the dragging of the target detection character area; and at the same time, a button is added above the target detection character area for clicking to delete the corresponding character selection area;
[0018] Step (S15): uploading the target detection character area position information to the detection scheme configuration database;
[0019] Packing and uploading the multiple standard diagrams of electric meters in different fault states and the corresponding character detection area position information in step (S11) to the detection scheme configuration database for subsequent function detection;
[0020] The functional detection process comprises the following steps:
[0021] Step (S21): obtaining multiple standard diagrams of electric meters of required fault states from a detection scheme configuration database, and forming a list of target detection areas;
[0022] Step (S22): obtaining LCD screen test images with different time stamps through multiple test channels;
[0023] Step (S23): Each test channel performs LCD character defect detection of all fault states on the LCD test image with a timestamp of t to identify the functional fault location.
[0024] In a second aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method described.
[0025] In a third aspect, the present invention provides a computing device, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the described method is implemented.
[0026] The present invention has the following characteristics and beneficial effects:
[0027] The core of the invention is fault detection. Through precise character detection technology, the accurate location of the electric energy meter fault is achieved. The invention adopts an innovative dual-mode selection mechanism, allowing users to freely select the detection area on the LCD screen, whether it is a specific character or other area, and can respond flexibly. The key data such as the selected detection area and its location information will be uploaded to the database for detailed comparative analysis by the detection system, so as to achieve accurate diagnosis of the fault.
[0028] This method breaks through the limitations of traditional electricity meter LCD screen detection and overcomes the difficulty of being unable to select specific detection areas in a targeted manner. It not only improves the freedom and versatility of fault detection, but also significantly improves the detection efficiency. Users will find that the operation becomes simple and intuitive during use, greatly reducing the time and cost of maintenance and troubleshooting. The present invention provides an efficient and accurate solution for fault detection of electricity meter LCD screens. While reducing the detection cost, it ensures the real-time requirements of actual test scenarios, and has important practical application value for improving the reliability and maintenance efficiency of electricity meters. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0030] Figure 1 Flow chart of the method of the present invention.
[0031] Figure 2 Configure the function panel for the standard diagram of the energy meter with LCD screen.
[0032] Figure 3 To upload the LCD screen test image to the system's screen window in real time.
[0033] Figure 4 A method for selecting a target detection character area by clicking a button.
[0034] Figure 5 A method for selecting a target detection character area by dragging and selecting it with the mouse.
[0035] Figure 6 This is the fault detection result of this example.
[0036] Figure 7 It is the full-screen character content of the electricity meter LCD screen.
[0037] Figure 8 Description of LCD graphics and symbols. DETAILED DESCRIPTION
[0038] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0039] The embodiment of the present invention provides a method for detecting faults of an electric energy meter. Figure 1 As shown, it includes the LCD screen detection scheme configuration process and function detection process;
[0040] The LCD screen detection scheme configuration process includes the following steps:
[0041] Step (S11): Obtain the standard diagram TempImg of the electric energy meter in different fault states, such as Figure 2 ;
[0042] Step (S12): identifying and segmenting the LCD screen area and pre-processing;
[0043] S12.1 recognizes and segments the standard diagram of the electric energy meter to obtain a liquid crystal screen image;
[0044] S12.2 Preprocess the LCD screen image to obtain a binary image OLEDImg;
[0045] Step (S13): recognizing and segmenting characters of the LCD standard image, and recording the position information of the segmented characters;
[0046] Step (S14): designing a method for selecting a target detection character area;
[0047] The method for selecting the target detection character area selects the target detection character area by clicking the mouse, and / or selects the target detection character area by dragging the mouse;
[0048] The method of selecting the target detection character area by clicking the mouse is to add a button on the character segmented in step (S13) so as to obtain the relative position of the current character by clicking the button, thereby completing the function of selecting the corresponding character position;
[0049] The method of selecting the target detection character area by dragging the mouse is to click, move, and release the mouse on the LCD screen standard image obtained in step (S12) to complete the dragging of the target detection character area; and at the same time, a button is added above the target detection character area for clicking to delete the corresponding character selection area;
[0050] Step (S15): Upload the target detection character area position information to the detection scheme configuration database:
[0051] Packing and uploading the multiple standard diagrams of electric meters in different fault states and the corresponding character detection area position information in step (S11) to the detection scheme configuration database for subsequent function detection;
[0052] Specifically, step (S11) selects multiple standard images of electric energy meters in the required fault state from the current computer locally; or, takes a real-time photo of the electric energy meter through the network stream camera screen to obtain multiple standard images of electric energy meters in the required fault state. The image is an image TempImg of a complete electric energy meter without obstruction under sufficient light conditions.
[0053] The network stream camera mainly adopts an RTSP camera, and its picture is obtained by connecting to the RTSP network stream address.
[0054] Specifically, the identification and segmentation in step S12.1 includes initializing the standard diagram of the electric energy meter and identifying and segmenting the rectangular area of the LCD screen; the specific process is as follows:
[0055] Initialize the standard image of the electric energy meter: convert grayscale image, median filtering, adaptive threshold processing, expansion, erosion, edge detection, expansion, erosion.
[0056] The specific method for recognizing and segmenting the rectangular area of the LCD screen is:
[0057] The largest contour in the meter standard diagram is identified through the maximum contour detection and recognition algorithm, and this contour is the LCD screen contour.
[0058] By identifying the minimum circumscribed rectangle of the liquid crystal screen outline, the outline is transformed into a rectangle with a rotation angle.
[0059] By acquiring the rotation angle of the rectangle, the outline of the liquid crystal screen is tilt-corrected and converted into a vertical rectangular area, that is, the outline of the liquid crystal screen is converted into a vertical liquid crystal screen rectangular area.
[0060] The preprocessing in step S12.2 includes binarization and noise processing of the LCD screen image. The specific process is as follows:
[0061] Binarization: The tilt-corrected LCD screen image is binarized to obtain OLEDImg. The binarization process includes grayscale conversion, Gaussian blur, high-lift filtering, and adaptive threshold processing. Thus, a binary LCD screen image with noise removed is obtained.
[0062] Specifically, in step (S13), the binary image processed in step (S12) is projected by using the projection method to complete the row segmentation; the image after row segmentation is segmented by using the projection method to obtain the segmented characters. Character recognition and segmentation are performed on the binary LCD screen image OLEDImg, and the rectangular areas of these characters are saved in the SRect list. The specific processing process is as follows:
[0063] Horizontal projection: First, perform horizontal projection on the LCD screen image and save the result in the horizion_pos list. Based on the horizontal projection result, find the area that may contain text lines and save it in the h_peek_range list.
[0064] Split lines: Traverse each range in the h_peek_range list and split each line of text from the original image according to these ranges. Save each line of text in the lines_Set list.
[0065] Split characters: For each line of text in the lines_Set list, first perform vertical projection, and find the area that may contain characters based on the vertical projection results. Determine how to split the characters based on the specific logic of the line where the characters are located (such as line height and width conditions). Finally, handle possible special cases, such as merging small characters or splitting large characters.
[0066] Draw a character frame: Draw a rectangular frame of each recognized character on the LCD screen original image OLEDImg, and save all the rectangular frame position information in the TempCharRectList list. The position information includes the width, height, horizontal coordinate, and vertical coordinate of the rectangle.
[0067] Specifically, Figure 4 The method for implementing the step (S14) of selecting the target detection character area by clicking the mouse:
[0068] (1) Create a new transparent layer: Create a new transparent layer to cover the standard image on the LCD screen after the characters are segmented;
[0069] (2) Add buttons: add several buttons on the transparent layer. The positions of the buttons coincide with the positions of the segmented characters. The number of buttons is equal to the number of characters.
[0070] (3) Add a button mouse left-button click event: A button has two states, clicked and not clicked; change its properties by clicking the button; the meaning of clicking the button is to select the LCD screen character below the button;
[0071] (4) Add a button mouse right-click event: Click the right mouse button to provide a merge menu, which includes merging with the left character and merging with the right character. The function of merging characters is completed by clicking the left mouse button. It is used for characters with left and right structures. When the characters are divided into two independent sub-characters during character recognition, the two independent sub-characters can be merged into a complete character by merging;
[0072] (5) Modify the background color of a button: Click a button to modify its background color to distinguish the current clicked state of the button, thereby more intuitively displaying the selected state of the characters below the button.
[0073] The specific contents are as follows:
[0074] Iterate through each rectangle in TempCharRectList and create a button object for each character with the same size as its rectangular border.
[0075] Set the button's width and height properties, calculated based on the rectangle's size and the scale factor.
[0076] Set its background color property to transparent, and set the border color and thickness.
[0077] Set its position property. The current button position and size are calculated vertically based on the proportional factor between the image size and the image display area size.
[0078] Create a Tag property, which is used as a flag to indicate whether the button has been clicked (true means it has been clicked, false means it has not been clicked). Set its default Tag property to false, indicating that the current button has not been clicked.
[0079] Create a button click event as follows:
[0080] If the button has not been clicked before, its index is added to the CharMaskIndex list after clicking, and the corresponding OpenCvSharp.Rect object is added to the SelectedRectList. This means that the button and the image area it represents are now marked as "selected". And the background color and border of the button are changed to highlight its selected state.
[0081] If the button has been clicked before, the button index is removed from the CharMaskIndex list after clicking, and the corresponding rectangle object is removed from the SelectedRectList. This means that the selected state of the area is canceled. The background color and border of the button are changed to highlight its unselected state.
[0082] By clicking a button in the system interface, the position information of the character rectangular border corresponding to the current button is obtained, and the method design of selecting the character area by clicking the button is completed.
[0083] Specifically, Figure 5 The method for implementing the step (S14) of selecting the target detection character area by dragging the mouse is as follows:
[0084] (1) Create a new transparent layer: Create a new transparent layer to cover the LCD screen standard image after the characters are split.
[0085] (2) Customize mouse operations: By monitoring the mouse press, move, and release operations, and customizing the handlers for the above three events, the mouse selection information can be obtained;
[0086] (3) Real-time drawing of a rectangular selection box: With the position where the mouse is pressed as the starting vertex of the rectangle and the position where the mouse is finally released as the end point, a rectangular selection box with a background color is created in real time; the selected area is the selected character detection area;
[0087] (4) Add button: Add a button that overlaps with the rectangular pull-down box and set a click event handler for the button; click the button to delete the rectangular pull-down box, and click again to reappear the rectangular pull-down box.
[0088] The specific contents are as follows:
[0089] Initialization: Create a new transparent layer Canvas above the OLEDImg image so that the selection can be drawn on it.
[0090] Listen to mouse events: listen to the mouse press (MouseDown), mouse move (MouseMove), and mouse release (MouseUp) events on this layer.
[0091] Mouse press event processing: When the user presses the mouse on the layer, this position is recorded as the starting point of the selection.
[0092] Mouse move event handling: When the user drags the mouse, the size of the selection is dynamically updated. The size of the selection is calculated based on the difference between the current position of the mouse and the starting point. A rectangle is drawn on the layer in real time to represent the selection.
[0093] Mouse release event processing: When the user releases the mouse, the selection is finalized. This position is recorded as the end point of the selection. At this point, the position and size of the selection can be determined and recorded.
[0094] Storing the selected area information as a rectangular Rect object: Create a rectangular Rect type object to store the position and size information of the selected area. The rectangular Rect object includes four parameter attributes: the width, height, horizontal coordinate, and vertical coordinate of the character.
[0095] Initialize two point type variables: one for storing the starting point when the mouse is pressed and the other for storing the ending point when the mouse is released. Calculate the X, Y, Width, and Height of the selection based on the coordinates of the starting and ending points. Assign these values to the previously defined Rect object.
[0096] At this point, the location and size information of the selected area has been stored in the Rect object and can be used for subsequent image processing, data analysis or other operations.
[0097] The functional detection process comprises the following steps:
[0098] Step (S21): obtain multiple meter standard images OLEDImg of the required fault state from the detection scheme configuration database, and form a target detection area list SelectedRectList; the above information is stored in Json format, and accordingly, it needs to be deserialized into Json.
[0099] Step (S22): obtaining LCD screen test images with different time stamps through multiple test channels;
[0100] Step (S23): Each test channel performs LCD character defect detection of all fault states on the LCD test image with a timestamp of t to identify the functional fault location.
[0101] Specifically, the specific process of obtaining the LCD screen test pattern in step (S22) is as follows:
[0102] The network stream camera screen is used to take a real-time photo of the test meter to obtain the meter test image; the meter test image is identified, segmented, and preprocessed to obtain a binary image TestImg of the LCD screen.
[0103] Specifically, the specific process of step (S23) is as follows:
[0104] S23.1 Obtain target detection character standard image:
[0105] Traverse the character detection area information of the meter standard image in the target detection area list SelectedRectList, and intercept the image TempChar in the corresponding character detection area on the LCD screen standard image OLEDImg, which is the standard image of the target detection character;
[0106] S23.2 Get the target detection character test image:
[0107] According to the character detection area information of the meter standard image in the target detection area list SelectedRectList, dynamically search for the image TestChar in the character detection area on the LCD screen test image TestImg. The specific process is as follows:
[0108] By performing line segmentation on the test image TestImg, the height of each line of characters is obtained, and this height is the height of the target detection characters intercepted in this line.
[0109] By calculating the width ratio WidthRatio of the LCD standard image OLEDImg and the test image TestImg, the X coordinate of the character detection area stored in SelectedRectList is calculated according to the ratio to obtain the X coordinate of the intercepted corresponding target detection character.
[0110] By calculating the row vertical projection of the row corresponding to the target detection character, taking the obtained X coordinate of the target detection character as the starting point, a rectangular area corresponding to the target detection character is found based on the vertical projection result and the starting point.
[0111] The image TestChar in the character area obtained by dynamic search is the test image of the target detection character. Dynamic search avoids the position error of the target detection character caused by the difference in size between the standard image and the test image, improves the accuracy of character comparison, and reduces the error of fault detection.
[0112] S23.3 Character subtraction:
[0113] The absolute difference between the images TempChar and TestChar is calculated by the image subtraction algorithm, and the result is stored in the TransmitImg image;
[0114] S23.4 Determination of defects:
[0115] Calculate the proportion of black pixels in the TransmitImg image and set a judgment threshold T; if the proportion of black pixels is lower than T, it means that the test character TestChar has a defect, that is, it is considered that a fault has occurred here; otherwise, it means that the character has no defect, that is, it is considered that no fault has occurred here. Figure 6 This is the fault detection result of this example.
[0116] Figure 7 It is the full-screen character content of the electricity meter LCD screen. Figure 8 Description of LCD graphics and symbols.
[0117] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. For those skilled in the art, various changes, modifications, substitutions and variations of these embodiments including components are made without departing from the principles and spirit of the present invention, and still fall within the scope of protection of the present invention.
Claims
1. A method for detecting faults in an electric energy meter, characterized in that: Including LCD screen detection scheme configuration process and function detection process; The LCD screen detection scheme configuration process includes the following steps: Step (S11): obtaining standard diagrams of electric energy meters in different fault states; Step (S12): identifying and segmenting the LCD screen area and pre-processing; S12.1 recognizes and segments the standard diagram of the electric energy meter to obtain a liquid crystal screen image; S12.2 Preprocessing the LCD screen image to obtain a binary image; Step (S13): recognizing and segmenting characters of the LCD standard image, and recording the position information of the segmented characters; Step (S14): designing a method for selecting a target detection character area; The method for selecting the target detection character area selects the target detection character area by clicking the mouse, and / or selects the target detection character area by dragging the mouse; The method of selecting the target detection character area by clicking the mouse is to add a button on the character segmented in step (S13) so as to obtain the relative position of the current character by clicking the button, thereby completing the function of selecting the corresponding character position; The method of selecting the target detection character area by dragging the mouse is to click, move, and release the mouse on the LCD screen standard image obtained in step (S12) to complete the dragging of the target detection character area; and at the same time, a button is added above the target detection character area for clicking to delete the corresponding character selection area; Step (S15): uploading the target detection character area position information to the detection scheme configuration database; Packing and uploading the multiple standard diagrams of electric meters in different fault states and the corresponding character detection area position information in step (S11) to the detection scheme configuration database for subsequent function detection; The functional detection process comprises the following steps: Step (S21): obtaining multiple standard diagrams of electric meters of required fault states from a detection scheme configuration database, and forming a list of target detection areas; Step (S22): obtaining LCD screen test images with different time stamps through multiple test channels; Step (S23): Each test channel performs LCD character defect detection of all fault states on the LCD test image with a timestamp of t to identify the functional fault location.
2. The method according to claim 1, characterized in that: During the configuration of the LCD screen detection scheme, the identification and segmentation in step (S12) includes initialization of the electric energy meter standard diagram and LCD screen area identification and segmentation; the preprocessing includes tilt correction and noise processing of the LCD screen image.
3. The method according to claim 1, characterized in that: During the configuration of the LCD detection solution, the method for implementing the segmentation of the LCD rectangular area in step (S12) is specifically: The largest contour is identified by the maximum contour detection and recognition algorithm, and this contour is the contour of the LCD screen; By identifying the minimum circumscribed rectangle of the LCD screen outline, the outline is transformed into a rectangle with a rotation angle; by obtaining the rotation angle of the rectangle, the LCD screen outline is tilt-corrected to transform the LCD screen outline into a vertical LCD screen rectangular area.
4. The method according to claim 1, characterized in that: In the process of configuring the LCD screen detection scheme, the implementation method of selecting the target detection character area by clicking the mouse in step (S14) is as follows: (1) Create a new transparent layer: Create a new transparent layer to cover the standard image on the LCD screen after the characters are segmented; (2) Add buttons: add several buttons on the transparent layer. The positions of the buttons coincide with the positions of the segmented characters. The number of buttons is equal to the number of characters. (3) Add a button left-click event: A button has two states, clicked and not clicked; change its properties by clicking the button; the meaning of clicking the button is to select the LCD screen character below the button; (4) Add a button mouse right-click event: Click the right mouse button to provide a merge menu, which includes merging with the left character and merging with the right character. The function of merging characters is completed by clicking the left mouse button. It is used for characters with left and right structures. When the characters are divided into two independent sub-characters during character recognition, the two independent sub-characters can be merged into a complete character by merging; (5) Modify the background color of a button: Click a button to modify its background color to distinguish the current clicked state of the button, thereby more intuitively displaying the selected state of the characters below the button.
5. The method according to claim 4, characterized in that: During the configuration of the LCD screen detection scheme, the method for implementing the selection of the target detection character area by clicking the mouse in step (S14) can also set an additional button to perform a one-key operation on the selected target detection character area.
6. The method according to claim 1, characterized in that: During the configuration of the LCD screen detection scheme, the method for implementing the step (S14) of selecting the target detection character area by dragging the mouse is as follows: (1) Create a new transparent layer: Create a new transparent layer to cover the LCD screen standard image after the characters are split. (2) Customize mouse operations: By monitoring the mouse press, move, and release operations, and customizing the handlers for the above three events, the mouse selection information can be obtained; (3) Real-time drawing of a rectangular selection box: With the position where the mouse is pressed as the starting vertex of the rectangle and the position where the mouse is finally released as the end point, a rectangular selection box with a background color is created in real time; the selected area is the selected character detection area; (4) Add button: add a button that overlaps with the rectangular pull-down box and set a click event handler for the button; Click this button to delete the rectangular pull-down box, and click it again to reappear the rectangular pull-down box.
7. The method according to claim 1, characterized in that: In the defect detection process, the specific process of obtaining the LCD test image in step (S22) is as follows: The network streaming camera screen is used to take real-time photos of the test meter to obtain the meter test image; the meter test image is identified, segmented and preprocessed to obtain a binary image of the LCD screen.
8. The method according to claim 1, characterized in that: In the defect detection process, the specific process of step (S23) is as follows: S23.1 Obtain target detection character standard image: Traverse the character detection area information of the meter standard diagram in the target detection area list, and intercept the image TempChar in the corresponding character detection area on the LCD screen standard diagram, which is the standard diagram of the target detection character; S23.2 Get the target detection character test image: According to the character detection area information of the electric meter standard image in the target detection area list, dynamically search for the target detection character area on the LCD screen test image, and intercept the image TestChar in the character detection area, which is the standard image of the target detection character; S23.3 Character subtraction: The absolute difference between the images TempChar and TestChar is calculated by the image subtraction algorithm, and the result is stored in the TransmitImg image; S23.4 Determination of defects: Calculate the proportion of black pixels in the TransmitImg image and set a judgment threshold T; if the proportion of black pixels is lower than T, it means that the test character TestChar has a defect; otherwise, it means that the character does not have a defect.
9. A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method according to any one of claims 1 to 8.
10. A computing device, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Automatic outdoor electric energy meter fault detection method
CN105182274A
Automatic checking method for fault of outdoor electric energy meter
CN105242232A
Method for turning around detection of gas meter mechanical dial plate
CN106441519A
Visual computing-based intelligent detection method and apparatus for appearance and performance of electricity meter
CN108647677A
Virtual simulation practical training platform of air supply system
CN111179676A
