An information collection method and device during replacement of an electric meter, a terminal and a storage medium

CN116739823BActive Publication Date: 2026-10-09GUANGDONG POWER GRID CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310713754.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-15
Publication Date
2026-10-09
Estimated Expiration
2043-06-15

AI Technical Summary

Technical Problem

[0006]本发明提供了一种更换电表时的信息采集方法、装置、终端及存储介质,以解决如何提高更换电表的效率的问题

Benefits of technology

[0031] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116739823B_ABST
    Figure CN116739823B_ABST
Patent Text Reader

Abstract

The application discloses a kind of information acquisition method, device, terminal and storage medium when replacing electric meter, the method includes: for the area of electric meter to be replaced establishes file interaction path;New electric meter asset number list to be installed, to be installed seal asset number list and electric meter batch installation and removal import template are stored to list list sub path;Respectively, old electric meter gathers old electric meter asset number, new electric meter gathers new electric meter asset number and seal tool gathers seal asset number;Archive image data is collected and written into archive photo sub path;Old electric meter gathers meter code information;Old electric meter asset number, new electric meter asset number, seal asset number and meter code information element information are written into meter replacement list;According to meter replacement list and electric meter batch installation and removal import template, generate electric meter batch installation and removal list and seal list;Electric meter batch installation and removal list and seal list are verified respectively. Improve the efficiency of entire batch meter replacement workflow.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of power grids, and in particular to a method, device, terminal, and storage medium for collecting information when replacing electricity meters. Background Technology

[0002] As electricity meters are used over time, they will experience mechanical wear or aging of electronic components. Therefore, it is better to periodically evaluate the condition of the meter to ensure fair measurement.

[0003] Due to the large number of electricity users, the metering automation system, by default, only saves the meter code for each user at midnight every day, which is the frozen code.

[0004] Faced with a large workload of replacing meters in batches, if the matching and entry of the old and new meters are completed in the power business system (such as the marketing system) first, and then the installation and dismantling work is carried out on site based on the installation and dismantling work order, then after finding the old meter to be replaced, it is necessary to find the previously matched new meter from a large number of new meters with the same parameters for installation and dismantling, which is a lot of work.

[0005] In addition, since the metering automation system only saves the daily freezing code, the installation and dismantling staff also need to record the meter code at the time of installation and dismantling on site, and then enter the old meter code information into the marketing system based on the paper or photo records later. The whole process is cumbersome and inefficient. Summary of the Invention

[0006] This invention provides a method, device, terminal, and storage medium for collecting information during electricity meter replacement, in order to solve the problem of how to improve the efficiency of electricity meter replacement.

[0007] According to one aspect of the present invention, a method for collecting information during the replacement of an electricity meter is provided, applied to a mobile terminal, the method comprising:

[0008] A file interaction path is established for the transformer area where the electricity meter is to be replaced. The file interaction path includes a list sub-path, a collected information sub-path, and an archived photo sub-path.

[0009] Store the list of new electricity meter asset numbers to be installed, the list of sealed assets to be installed, and the batch installation and removal template of electricity meters in the sub-path of the list list;

[0010] If the storage is successful, the old meter asset number will be collected for the old meter, the new meter asset number will be collected for the new meter, and the sealing tool asset number will be collected for the sealing tool, based on the list of new meter asset numbers to be installed, the list of sealing asset numbers to be installed, and the meter batch installation and removal import template.

[0011] Collect archived image data and write the archived image data into the archived photo subpath. The archived image data includes the old meter asset number, the new meter asset number, the seal asset number, and the meter code information of the old meter.

[0012] Collect meter readings from the old electricity meters;

[0013] The old meter asset number, the new meter asset number, the sealed asset number, and the meter code information are combined to form element information, and the element information is written into the meter replacement list;

[0014] If the electricity meter is replaced in the transformer area, a batch meter installation / removal list and a sealing list will be generated in the information collection sub-path based on the meter replacement list and the batch meter installation / removal import template.

[0015] The batch installation and removal list of the electricity meters and the sealing list are verified based on the archived image data.

[0016] According to another aspect of the present invention, an information collection device for replacing an electricity meter is provided, applied to a mobile terminal, the device comprising:

[0017] The file interaction path creation module is used to establish a file interaction path for the transformer area where the electricity meter is to be replaced. The file interaction path includes a list sub-path, a collected information sub-path, and an archived photo sub-path.

[0018] The list list sub-path storage module is used to store the list of new electricity meter asset numbers to be installed, the list of sealed asset numbers to be installed, and the batch installation and removal template of electricity meters into the list list sub-path.

[0019] The asset number collection module is used to collect the old meter asset number, the new meter asset number, and the sealing tool asset number respectively, based on the list of new electricity meter asset numbers to be installed, the list of sealing asset numbers to be installed, and the electricity meter batch installation and removal import template, if the storage is successful.

[0020] The archived photo sub-path storage module is used to collect archived image data and write the archived image data into the archived photo sub-path. The archived image data includes the old meter asset number, the new meter asset number, the seal asset number, and the meter code information of the old meter.

[0021] The meter code information recognition module is used to collect meter code information from the old electricity meter.

[0022] The meter replacement list generation module is used to combine the old meter asset number, the new meter asset number, the sealed asset number, and the meter code information into element information, and write the element information into the meter replacement list;

[0023] The disassembly and sealing list generation module is used to generate a batch meter disassembly and sealing list in the information collection sub-path based on the meter replacement list and the batch meter disassembly and sealing import template if the meter replacement is completed in the transformer area.

[0024] The list verification module is used to verify the batch installation and removal list of the electricity meter and the sealing list based on the archived image data.

[0025] According to another aspect of the present invention, a mobile terminal is provided, the mobile terminal comprising:

[0026] At least one processor; and

[0027] A memory communicatively connected to the at least one processor; wherein,

[0028] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the information collection method for replacing electricity meters as described in any embodiment of the present invention.

[0029] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program, the computer program being configured to cause a processor to execute and implement the information collection method for replacing an electricity meter as described in any embodiment of the present invention.

[0030] In this embodiment, a file interaction path is established for the transformer substation where the meters to be replaced are located. This path includes a list subpath, a data collection subpath, and an archived photo subpath. The list of asset numbers for new meters to be installed, the list of asset numbers for sealing to be installed, and the batch meter installation / removal import template are stored in the list subpath. If storage is successful, the old meter asset numbers are collected from the old meters, the new meter asset numbers from the new meters, and the sealing tool asset numbers from the sealing tools, based on the list of asset numbers for new meters to be installed, the list of asset numbers for sealing to be installed, and the batch meter installation / removal import template. Archived image data is also collected and... The archived image data is written to the archived photo subpath. This archived image data includes the old meter asset number, new meter asset number, seal asset number, and the old meter's serial number. The old meter's serial number is then collected. The old meter asset number, new meter asset number, seal asset number, and serial number are combined to form element information, which is then written into the meter replacement list. If the meter replacement is completed within a transformer substation, a batch meter installation / removal list and a sealing list are generated in the information collection subpath based on the meter replacement list and the batch meter installation / removal import template. The batch meter installation / removal list and sealing list are then verified based on the archived image data. This embodiment automates the recording and organization of meter replacement information according to the business requirements of meter replacement, saving time on subsequent maintenance of the meter replacement information ledger while minimizing on-site work complexity, thereby improving the efficiency of the entire batch meter replacement workflow.

[0031] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0032] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0033] Figure 1 This is a flowchart of an information collection method for replacing an electricity meter according to Embodiment 1 of the present invention;

[0034] Figure 2 This is an example diagram of an identification table code information provided according to Embodiment 1 of the present invention;

[0035] Figure 3 This is a schematic diagram of the structure of an information collection device for replacing an electricity meter according to Embodiment 2 of the present invention;

[0036] Figure 4This is a schematic diagram of the structure of a mobile terminal provided in Embodiment 3 of the present invention. Detailed Implementation

[0037] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0038] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0039] Example 1

[0040] Figure 1 This is a flowchart illustrating an information collection method for replacing electricity meters according to Embodiment 1 of the present invention. This embodiment is applicable to situations where meter replacement information is collected in real time and a ledger is automatically generated during batch meter replacement. This method can be executed by an information collection device for meter replacement, which can be implemented in hardware and / or software. This information collection device can be configured in a mobile terminal, such as a mobile phone, tablet computer, etc. Figure 1 As shown, the method includes:

[0041] Step 101: Establish a file exchange path for the transformer substation where the meter to be replaced is located.

[0042] In this embodiment, a file interaction path can be established in the mobile terminal for the transformer area where the electricity meter to be replaced. The file interaction path is named after the transformer area. Operations such as adding, deleting, and modifying are performed directly with the internal storage of the mobile terminal's file management system, which facilitates physical transmission between the mobile terminal and the office computer via a data cable.

[0043] After creating a new file interaction path on the mobile terminal, the file management system automatically creates three sub-paths under that area path. These include a list sub-path, a data collection sub-path, and an archived photo sub-path. This path management method facilitates the location of lists, template files, and photos.

[0044] Step 102: Import the list of new electricity meter asset numbers to be installed, the list of sealed asset numbers to be installed, and the batch installation and removal of electricity meters into the template and store them in the list list sub-path.

[0045] In this embodiment, three files (such as Excel spreadsheet files) can be imported into the list list sub-path (folder) under the file interaction path via physical transmission: a list of asset numbers to be installed for new electricity meters, a list of asset numbers to be sealed, and a batch installation and removal template for electricity meters generated by the power business system (such as the marketing system).

[0046] The list of new electricity meter asset numbers to be installed and the list of sealed assets to be installed are obtained during the electricity meter requisition process, while the electricity meter batch installation and removal import template is generated during the installation and removal plan formulation process in the power business system (such as the marketing system).

[0047] When the system detects that the list of new electricity meter asset numbers to be installed, the list of assets to be sealed, and the electricity meter batch installation and removal import template are complete, the system will proceed to the installation and removal site information collection stage. Otherwise, the system will prompt the user to import the list of new electricity meter asset numbers to be installed, the list of assets to be sealed, and the electricity meter batch installation and removal import template.

[0048] Furthermore, the filenames can be used to detect whether the list of asset numbers to be installed for new meters, the list of asset numbers to be sealed, and the batch installation / removal template for meters are stored in a subpath of the list list. Since users may not name these lists correctly, an option is provided to rename them. Staff can browse the contents of these lists and select the appropriate name to complete the renaming, eliminating the need for manual input and improving naming efficiency.

[0049] Step 103: If the storage is successful, then based on the list of asset numbers of new electricity meters to be installed, the list of asset numbers of seals to be installed, and the batch installation and removal import template for electricity meters, collect the old electricity meter asset numbers, collect the new electricity meter asset numbers, and collect the seal asset numbers for the sealing tools.

[0050] In this embodiment, the data from the list of asset numbers of new electricity meters to be installed, the list of asset numbers of seals to be installed, and the data from the batch installation and removal template of electricity meters can be used as a reference to collect the asset numbers of old electricity meters, the asset numbers of new electricity meters, and the asset numbers of seals for sealing tools.

[0051] In practice, both old and new electricity meters are affixed with graphic codes such as Code128 barcodes and DataMatrix QR codes to the main body of the device when they leave the factory. The content of the graphic code is the asset number of the electricity meter.

[0052] This embodiment can use a camera to scan graphic codes to scan the asset number of an old electricity meter, the asset number of a new electricity meter, and the asset number of a sealing tool.

[0053] By using either serial or parallel methods, the system searches for old meter asset numbers in the batch meter installation / removal import template, searches for new meter asset numbers in the list of new meter asset numbers to be installed, and searches for sealed asset numbers in the list of sealed asset numbers to be installed.

[0054] Taking serial as an example, the system searches for the old meter asset number in the batch meter installation and removal import template. Regardless of whether the old meter asset number is found in the batch meter installation and removal import template, it searches for the new meter asset number in the list of new meter asset numbers to be installed. Regardless of whether the new meter asset number is found in the list of new meter asset numbers to be installed, it searches for the sealed asset number in the list of sealed asset numbers to be installed.

[0055] If the old meter asset number is found in the batch installation and removal import template, the old meter asset number is confirmed to be valid, and the old meter asset number is cached in the mobile terminal.

[0056] If the old meter asset number is not found in the batch installation and removal import template for electricity meters multiple times, an error label (such as err) will be added to the old meter asset number. The error label is used to indicate an error and wait for later verification.

[0057] During the repeated search for old meter asset numbers in the batch installation and removal import template, staff can be prompted to re-collect the old meter asset numbers. For multiple old meter asset numbers collected, the last collected old meter asset number shall prevail.

[0058] If a new meter asset number is found in the list of new meter asset numbers to be installed, the new meter asset number is confirmed to be valid and is cached in the mobile terminal.

[0059] If a new meter asset number is not found in the list of new meter asset numbers to be installed multiple times, the new meter asset number will be marked with an error label (e.g., err). During repeated searches for the new meter asset number in the list of new meter asset numbers, staff can be prompted to re-collect the new meter asset number. For multiple new meter asset numbers collected, the last collected new meter asset number shall prevail.

[0060] If a sealed asset number is found in the list of assets to be sealed, the sealed asset number is confirmed to be valid and is cached on the mobile device.

[0061] If the sealed asset number is not found in the list of assets to be sealed multiple times, the sealed asset number will be marked with an error label (e.g., err). During the repeated search for the sealed asset number in the list of assets to be sealed, staff can be prompted to re-collect the sealed asset number. For multiple sealed asset numbers collected, the last collected sealed asset number shall prevail.

[0062] Step 104: Collect archived image data and write the archived image data to the archived photo subpath.

[0063] In this embodiment, the staff arranges four key elements of information—the old meter asset number, the new meter asset number, the sealed asset number, and the old meter code—within the same viewfinder and collects and archives the image data for later verification and validation. That is, the archived image data contains the old meter asset number, the new meter asset number, the sealed asset number, and the old meter code information.

[0064] The collected and archived image data is named according to a specified format, for example, in the format of "Old Electricity Meter Asset Number + New Electricity Meter Asset Number", and the archived image data is written to the archived photo subpath.

[0065] Step 105: Collect meter reading information from the old electricity meter.

[0066] In this embodiment, meter code information can be collected through manual input, automatic semantic recognition, or other methods. The meter code information is the record information of the electricity user's historical electricity consumption.

[0067] In one embodiment of the present invention, step 105 may include the following steps:

[0068] Step 1051: Collect meter code image data from the meter code display area of ​​the old electricity meter.

[0069] Old electricity meters have a meter reading display area, which can be a display screen such as an LCD screen, used to display meter reading information.

[0070] like Figure 2The image data shown in the first row indicates that the mobile terminal can drive the camera to face the meter display area of ​​the old electricity meter, thereby collecting meter code image data.

[0071] In the specific implementation, a camera is used to collect image data of the old electricity meter. The meter reading image data has a viewfinder with a rectangular or other shape. The viewfinder is used to guide the staff to include the meter reading display area of ​​the old electricity meter. The staff can move, rotate, and perform other operations on the mobile terminal according to the position of the viewfinder so that the meter reading display area of ​​the old electricity meter fills the viewfinder.

[0072] The data of the viewfinder is extracted from the code image data and used as the code image data, thereby improving the accuracy of code recognition.

[0073] Step 1052: Convert the table code image data into binary candidate image data.

[0074] In this embodiment, a series of operations such as preprocessing, binarization, and post-processing can be performed on the coded image data to convert the table code image data into binarized candidate image data.

[0075] In the specific implementation, the table code image data is converted to grayscale, thus converting it into grayscale image data.

[0076] like Figure 2 The image data in the second row shown is subjected to adaptive thresholding based on the neighborhood mean of a large window with a width of 90-150 pixels. The colors are then inverted to form binary candidate image data with white characters and a black background, thus converting grayscale image data into binary candidate image data.

[0077] The contour detection algorithm in the OpenCV library is used to query contour data in the candidate image data. The contour data is set to the same color as the background (such as black). At this time, the white dots and the background are basically uniform in color (such as black).

[0078] If you have finished setting the color of the outline data, then as follows Figure 2 The image data in the third row shown is subjected to erosion and dilation operations in sequence on the candidate image data to further remove tiny noise points.

[0079] Step 1053: Extract the outline of the table code information from the candidate image data to obtain the target image data.

[0080] Since some old electricity meters may still have "active", "current" or other markings on the coding display area, the on-site staff may capture these markings in the viewfinder when collecting meter code information. These markings will affect the accuracy of identifying meter code information. Therefore, the outline of the meter code information is extracted from the candidate image data, and the candidate image data is cropped again to obtain the target image data.

[0081] In specific implementations, such as Figure 2 The image data in the fourth row shown can be used to calculate the sum of the pixel values ​​of the candidate image data by row and column respectively, and then divide the sum by the upper limit of gray level (i.e., 255) to obtain two vectors with the same length and width as the candidate image data.

[0082] Two curves are generated based on the element values ​​of the two vectors, respectively, to represent the positions of the pixels. Multiple peaks exist on the curves.

[0083] Remove peak values ​​outside the median interval from the curve. The median interval is the interval containing the median value M of each peak value in the curve (e.g., [0.7M, 2.5M]).

[0084] If some peak values ​​are filtered out, then as follows Figure 2 The image data in the fifth row shown is generated by creating multiple straight lines based on multiple peaks closest to each edge to connect the table code information. That is, the table code information (i.e., numbers) in the candidate image data is connected.

[0085] The position of the straight line in the candidate image data is determined by the positions of the two peaks closest to the edge after the pixel curve obtained by summing the rows, and the other straight line is placed in the middle of these two straight lines; the length of the straight line in the candidate image data is determined by the distance between the positions of the two peaks closest to the edge after the pixel curve obtained by summing the columns.

[0086] like Figure 2 The image data in the sixth row shown uses the contour detection algorithm in the OpenCV library to generate the bounding rectangle from the connected table information in the candidate image data.

[0087] The data located within the largest bounding rectangle in the candidate image data is cropped and used as the target image data.

[0088] Step 1054: Perform optical character recognition on the target image data to obtain a string.

[0089] In this embodiment, neural networks such as LSTM (Long Short-Term Memory) can be used to perform OCR (optical character recognition) on the target image data, thereby recognizing the string.

[0090] For neural networks, the image data after binarization of the image data that actually records the code information can be used as the training set. The entire training set contains only ten digits "0" to "9", a decimal point, "k", "W" and "h", a total of 14 characters. The sample content is simple, which can effectively improve the accuracy of recognition.

[0091] Step 1055: Filter out characters representing electricity consumption units from the string to obtain meter code information.

[0092] The string recognized by OCR may contain characters representing the unit of electricity consumption, i.e., "khW". In this case, the position of "k" in the string can be detected.

[0093] If the identified string does not contain the character "k", it means that the old meter may not have the character "kWh" representing the unit of electricity consumption. Alternatively, if the character "kWh" representing the unit of electricity consumption has been filtered out by preprocessing, the entire string can be directly converted into the corresponding floating-point number to obtain the meter code information.

[0094] If the identified string contains the character "k", it means that the old meter contains the character "kWh" which represents the unit of electricity consumption. In this case, filter out the character "k" and the characters after the character "k", extract the characters before the character "k", and convert the characters before the character "k" into floating-point numbers to obtain the meter code information.

[0095] In another embodiment of the present invention, step 105 may further include the following steps:

[0096] Step 1056: In the batch installation and removal import template for electricity meters, query the freeze code corresponding to the old electricity meter asset number.

[0097] In this embodiment, the corresponding freezing code can be queried in the batch installation and removal import template of the old electricity meter based on the old electricity meter asset number. Generally, the freezing code is a specific time record in a time period (such as a day), and the data is not continuous. Therefore, there may be some differences between the meter code information and the freezing code.

[0098] Furthermore, the difference between the table code information and the frozen code is obtained by subtracting the frozen code from the table code information.

[0099] Step 1057: If the difference between the table code information and the frozen code is within the first verification range, then the table code information is determined to be valid.

[0100] In this embodiment, a first verification range can be set, wherein one endpoint of the first verification range has a value of 0 and the other endpoint has a value greater than 0, such as [0, 500] etc.

[0101] If the difference between the table code information and the freeze code is within the first verification range, then the table code information is determined to be valid and can be cached.

[0102] Step 1058: If the difference between the table code information and the frozen code is within the second verification range, then mark both the table code information and the frozen code with an error label.

[0103] In this embodiment, a second verification range can be set, wherein the values ​​in the second verification range are negative and tend to 0. The so-called tendency to 0 means that the values ​​in the second verification range are close to 0, but not equal to 0, such as [-0.09, -0.01] etc.

[0104] If the difference between the meter reading and the frozen code is within the second verification range, it indicates an abnormal result. In this case, staff can be prompted to re-collect the meter reading of the old meter. If the difference between the meter reading and the frozen code is within the second verification range multiple times in a row, it indicates that the old meter's display accuracy is causing the abnormal result. Both the meter reading and the frozen code should be marked with an error label (e.g., err).

[0105] Step 1059: If the difference between the table code information and the frozen code is outside the first verification range and the second verification range, then mark the table code information with an error label.

[0106] If the difference between the meter code information and the frozen code is in an interval other than the first verification range (e.g., [0, 500]) and the second verification range (e.g., [-0.09, -0.01]), such as (500, +∞) and (-∞, -0.09), it indicates an abnormal result. In this case, the staff can be prompted to re-collect the meter code information of the old meter. If the difference between the meter code information and the frozen code is in an interval other than the first verification range (e.g., [0, 500]) and the second verification range (e.g., [-0.09, -0.01]) for several consecutive times, the meter code information (based on the last meter code information) should be marked with an error label (e.g., err).

[0107] Step 106: Combine the old meter asset number, the new meter asset number, the seal asset number, and the meter code information into the element information, and write the element information into the meter replacement list.

[0108] In this embodiment, the old meter asset number, the new meter asset number, the sealed asset number, and the meter code information of the old meter are concatenated into a four-tuple of element information according to a preset structural format, and the element information is written into the meter replacement list.

[0109] If the element information is not collected completely, that is, if the process is interrupted during the collection, the incomplete information will not be recorded in the replacement list.

[0110] When staff exit the program and resume work, the original content in the form change list will not be cleared when collecting feature information later; instead, new feature information will continue to be entered.

[0111] Step 107: If the meter replacement is completed in the transformer area, then in the information collection sub-path, generate the meter batch installation / removal list and sealing list based on the meter replacement list and the meter batch installation / removal import template.

[0112] Due to the complex and diverse working conditions in the transformer substation area, and the possibility that the meters may be installed at excessively high positions, making photography difficult, the accuracy of meter readings may be affected by the angle of the photograph taken during the process of identifying meter readings using methods such as OCR. Therefore, in this embodiment, steps 103-106 can be performed separately.

[0113] Generally, the electricity meter has a built-in battery. After the old electricity meter is removed, the display screen can still be maintained for a period of time. The operation is flexible and has a high degree of freedom in taking pictures of the removed electricity meter. Therefore, the staff can adjust the order of steps 103-106 according to the on-site working conditions to obtain a higher recognition accuracy.

[0114] Repeat steps 103-106 until the staff has replaced all the meters in the entire transformer area. After that, in the information collection sub-path, generate a batch meter installation / removal list and a sealing list based on the information in the meter replacement list and the batch meter installation / removal import template.

[0115] Among them, the batch installation and removal list of electricity meters is used to record the metadata (i.e., main information) during the process of installing and removing electricity meters, and the sealing list is used to record the metadata (i.e., main information) during the process of sealing electricity meters.

[0116] In the specific implementation, the batch installation and removal template for electricity meters is copied to the information collection sub-path to obtain a copy of the batch installation and removal template for electricity meters.

[0117] In the information collection sub-path, fill the old meter asset number, new meter asset number, and sealed asset number from the meter replacement list into the copy of the meter batch installation and removal import template.

[0118] If a data item in the meter replacement list is marked with an error label (such as err), then the error label (such as err) will be deleted in the batch meter installation and removal import template, and the data item will be highlighted. The highlighting is used to prompt verification.

[0119] Create a sealing template in the information collection sub-path, and fill the new meter asset number and sealing asset number in the meter replacement list into the sealing template.

[0120] If a data item in the table replacement list is marked with an error label (such as err), then the error label (such as err) will be removed from the seal template, and the data item will be highlighted.

[0121] Step 108: Verify the batch installation / removal list and sealing list of the electricity meters based on the archived image data.

[0122] In this embodiment, the batch meter installation / removal list and sealing list generated in the information collection sub-path, as well as the archived image data under the archived photo sub-path, are transmitted to the office computer via a data cable. The archived image data serves as a reference for checking the batch meter installation / removal list and sealing list. Staff can check and correct the highlighted data items based on the archived image data. At this time, if a modification operation triggered by a staff member for a certain data item in the batch meter installation / removal list or sealing list is received, the corresponding data item can be modified based on the modification operation.

[0123] Once the verification and correction are completed, the batch installation and removal list and sealing list of electricity meters will be uploaded to the power business system (such as the marketing system). After the entire batch installation and removal work order is archived, the work of replacing electricity meters in the distribution area will be completed.

[0124] In this embodiment, a file interaction path is established for the transformer substation where the meters to be replaced are located. This path includes a list subpath, a data collection subpath, and an archived photo subpath. The list of asset numbers for new meters to be installed, the list of asset numbers for sealing to be installed, and the batch meter installation / removal import template are stored in the list subpath. If storage is successful, the old meter asset numbers are collected from the old meters, the new meter asset numbers from the new meters, and the sealing tool asset numbers from the sealing tools, based on the list of asset numbers for new meters to be installed, the list of asset numbers for sealing to be installed, and the batch meter installation / removal import template. Archived image data is also collected and... The archived image data is written to the archived photo subpath. This archived image data includes the old meter asset number, new meter asset number, seal asset number, and the old meter's serial number. The old meter's serial number is then collected. The old meter asset number, new meter asset number, seal asset number, and serial number are combined to form element information, which is then written into the meter replacement list. If the meter replacement is completed within a transformer substation, a batch meter installation / removal list and a sealing list are generated in the information collection subpath based on the meter replacement list and the batch meter installation / removal import template. The batch meter installation / removal list and sealing list are then verified based on the archived image data. This embodiment automates the recording and organization of meter replacement information according to the business requirements of meter replacement, saving time on subsequent maintenance of the meter replacement information ledger while minimizing on-site work complexity, thereby improving the efficiency of the entire batch meter replacement workflow.

[0125] Example 2

[0126] Figure 3 This is a schematic diagram of an information collection device for replacing an electricity meter, provided in Embodiment 2 of the present invention. Figure 3 As shown, the device is applied to a mobile terminal and includes:

[0127] The file interaction path creation module 301 is used to create a file interaction path for the transformer area where the electricity meter is to be replaced. The file interaction path includes a list sub-path, a collected information sub-path, and an archived photo sub-path.

[0128] The list list sub-path storage module 302 is used to store the list of new electricity meter asset numbers to be installed, the list of sealed asset numbers to be installed, and the batch installation and removal template of electricity meters into the list list sub-path.

[0129] The asset number collection module 303 is used to collect the old meter asset number, the new meter asset number, and the sealing tool asset number respectively according to the list of new electricity meter asset numbers to be installed, the list of sealing asset numbers to be installed, and the electricity meter batch installation and removal import template, if the storage is successful.

[0130] The archived photo sub-path storage module 304 is used to collect archived image data and write the archived image data into the archived photo sub-path. The archived image data includes the old meter asset number, the new meter asset number, the seal asset number, and the meter code information of the old meter.

[0131] Meter code information recognition module 305 is used to collect meter code information of the old electricity meter;

[0132] The meter replacement list generation module 306 is used to combine the old meter asset number, the new meter asset number, the seal asset number, and the meter code information into element information, and write the element information into the meter replacement list;

[0133] The disassembly and sealing list generation module 307 is used to generate a batch meter disassembly and sealing list in the information collection sub-path based on the meter replacement list and the batch meter disassembly and sealing import template if the meter replacement is completed in the transformer area.

[0134] The list verification module 308 is used to verify the batch installation and removal list of the electricity meter and the sealing list respectively based on the archived image data.

[0135] In one embodiment of the present invention, the asset number acquisition module 303 includes:

[0136] The camera scanning module is used to call the camera to scan the asset number of the old electricity meter, the asset number of the new electricity meter, and the asset number of the sealing tool.

[0137] The asset number search module is used to search for the old electricity meter asset number in the electricity meter batch installation and removal import template, the new electricity meter asset number in the list of new electricity meter asset numbers to be installed, and the sealed asset number in the list of sealed asset numbers to be installed.

[0138] The old electricity meter asset number validity determination module is used to determine that the old electricity meter asset number is valid if the old electricity meter asset number is found in the batch installation and removal import template.

[0139] The old electricity meter asset number error determination module is used to add an error label to the old electricity meter asset number if the old electricity meter asset number is not found in the batch installation and removal import template.

[0140] The new electricity meter asset number validity determination module is used to determine that the new electricity meter asset number is valid if the new electricity meter asset number is found in the list of new electricity meter asset numbers to be installed.

[0141] The new electricity meter asset number error determination module is used to mark the new electricity meter asset number with an error label if the new electricity meter asset number is not found in the list of new electricity meter asset numbers to be installed.

[0142] The Seal Asset Number Validity Determination Module is used to determine that the Seal Asset Number is valid if the Seal Asset Number is found in the list of Seal Asset Numbers to be installed.

[0143] The Seal Asset Number Error Determination Module is used to mark the Seal Asset Number with an error label if the Seal Asset Number is not found in the list of Seal Asset Numbers to be installed.

[0144] In one embodiment of the present invention, the table code information recognition module 305 includes:

[0145] The meter code image data acquisition module is used to acquire meter code image data from the meter code display area of ​​the old electricity meter;

[0146] The candidate image data conversion module is used to convert the table code image data into binary candidate image data;

[0147] The target image data cropping module is used to crop the outline of the table code information from the candidate image data to obtain the target image data.

[0148] The string recognition module is used to perform optical character recognition in the target image data to obtain a string;

[0149] The electricity consumption unit filtering module is used to filter out characters representing electricity consumption units from the string to obtain table code information.

[0150] In one embodiment of the present invention, the table code image data acquisition module includes:

[0151] The meter image data acquisition module is used to call the camera to acquire meter image data of the old meter. The meter code image data has a viewfinder, which is used to indicate the meter code display area that accommodates the old meter.

[0152] The table code image data cropping module is used to crop the viewfinder data from the table code image data as the table code image data.

[0153] In one embodiment of the present invention, the candidate image data conversion module includes:

[0154] A grayscale image data conversion module is used to convert the table code image data into grayscale image data;

[0155] An image binarization module is used to convert the grayscale image data into candidate image data for binarization;

[0156] A contour data query module is used to query contour data in the candidate image data;

[0157] The color setting module is used to set the outline data to the same color as the background.

[0158] The post-processing module is used to sequentially perform erosion and dilation operations on the candidate image data.

[0159] In one embodiment of the present invention, the target image data interception module includes:

[0160] The vector generation module is used to calculate the sum of the pixel values ​​of the candidate image data by row and column respectively, and divide the sum by the upper limit of the gray level to obtain a vector with the same length and width as the candidate image data.

[0161] A curve generation module is used to generate curves about the positions of the pixels according to the vectors.

[0162] A peak value filtering module is used to filter out peak values ​​located outside the median interval in the curve, wherein the median interval is an interval containing the median value of each peak value in the curve.

[0163] The table code information connectivity module is used to generate multiple straight lines based on multiple peak values ​​closest to each edge, so as to connect the table code information if filtering is completed.

[0164] The circumscribed rectangle generation module is used to generate a circumscribed rectangle from the connected table code information in the candidate image data;

[0165] The circumscribed rectangle cropping module is used to crop data located within the circumscribed rectangle from the candidate image data, and use it as the target image data.

[0166] In one embodiment of the present invention, the table code information recognition module 305 further includes:

[0167] The freeze code query module is used to query the freeze code corresponding to the old electricity meter asset number in the batch installation and removal import template of the electricity meter.

[0168] The table code information validity determination module is used to determine that the table code information is valid if the difference between the table code information and the frozen code is within a first verification range, wherein one endpoint of the first verification range is 0 and the other endpoint is greater than 0.

[0169] The frozen code error determination module is used to determine that the frozen code is valid and mark the frozen code with an error label if the difference between the table code information and the frozen code is within a second verification range, wherein the value in the second verification range is negative and tends to 0;

[0170] The table code information error determination module is used to mark the table code information with an error label if the difference between the table code information and the frozen code is outside the first verification range and the second verification range.

[0171] In one embodiment of the present invention, the disassembly and sealing list generation module 307 includes:

[0172] The electricity meter batch installation and removal import template copying module is used to copy the electricity meter batch installation and removal import template to the information collection sub-path;

[0173] The electricity meter batch installation and removal import template filling module is used to fill the old electricity meter asset number, the new electricity meter asset number and the sealed asset number in the meter replacement information into the electricity meter batch installation and removal import template in the information collection sub-path.

[0174] The error handling module for the batch meter installation and removal import template is used to delete the error label and highlight the data item if a data item in the meter replacement information is marked with an error label in the batch meter installation and removal import template.

[0175] The seal template creation module is used to create seal templates in the information collection sub-path.

[0176] The seal template filling module is used to fill the new meter asset number and the seal asset number in the meter replacement information into the seal template;

[0177] The seal template error handling module is used to delete the error label in the seal template and highlight the data item if a data item in the table information is marked with an error label.

[0178] The information collection device for replacing electricity meters provided in this embodiment of the invention can execute the information collection method for replacing electricity meters provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the information collection method for replacing electricity meters.

[0179] Example 3

[0180] Figure 4 A schematic diagram of the structure of a mobile terminal 10 that can be used to implement an embodiment of the present invention is shown. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the invention described and / or claimed herein.

[0181] like Figure 4 As shown, the mobile terminal 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer programs stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the mobile terminal 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0182] Multiple components in the mobile terminal 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, optical disk, etc.; and a communication unit 19, such as a network card, modem, wireless transceiver, etc. The communication unit 19 allows the mobile terminal 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0183] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the information collection method when replacing an electricity meter.

[0184] In some embodiments, the information collection method during meter replacement can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the mobile terminal 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the information collection method during meter replacement described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the information collection method during meter replacement by any other suitable means (e.g., by means of firmware).

[0185] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0186] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0187] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0188] To provide interaction with a user, the systems and techniques described herein can be implemented on a mobile terminal having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the mobile terminal. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0189] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0190] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0191] Example 4

[0192] This invention also provides a computer program product, which includes a computer program that, when executed by a processor, implements the information collection method for replacing electricity meters as provided in any embodiment of this invention.

[0193] In implementing the computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0194] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0195] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for collecting information when replacing an electricity meter, characterized in that, Applied to a mobile terminal, the method includes: A file interaction path is established for the transformer area where the electricity meter is to be replaced. The file interaction path includes a list sub-path, a collected information sub-path, and an archived photo sub-path. Store the list of new electricity meter asset numbers to be installed, the list of sealed assets to be installed, and the batch installation and removal template of electricity meters in the sub-path of the list list; If the storage is successful, the old meter asset number will be collected for the old meter, the new meter asset number will be collected for the new meter, and the sealing tool asset number will be collected for the sealing tool, based on the list of new meter asset numbers to be installed, the list of sealing asset numbers to be installed, and the meter batch installation and removal import template. Collect archived image data and write the archived image data into the archived photo subpath. The archived image data includes the old meter asset number, the new meter asset number, the seal asset number, and the meter code information of the old meter. Collect meter readings from the old electricity meters; The old meter asset number, the new meter asset number, the sealed asset number, and the meter code information are combined to form element information, and the element information is written into the meter replacement list; If the electricity meter is replaced in the transformer area, a batch meter installation / removal list and a sealing list will be generated in the information collection sub-path based on the meter replacement list and the batch meter installation / removal import template. The batch installation and removal list of the electricity meters and the sealing list are verified based on the archived image data respectively; The step of collecting meter code information from the old electricity meter includes: Collect meter code image data from the meter code display area of ​​the old electricity meter; The table code image data is converted into binary candidate image data; The outline of the table code information is extracted from the candidate image data to obtain the target image data; Optical character recognition is performed on the target image data to obtain a string; Filter out characters representing electricity consumption units from the string to obtain meter code information; The step of converting the table code image data into binary candidate image data includes: Convert the table code image data into grayscale image data; The grayscale image data is converted into binary candidate image data; Query contour data from the candidate image data; Set the outline data to the same color as the background; If the color of the contour data is set, then erosion and dilation operations are performed sequentially on the candidate image data. The step of extracting the outline of the table code information from the candidate image data to obtain the target image data includes: The sum of the pixels in the candidate image data is calculated for each row and column, and the sum is divided by the upper limit of the gray level to obtain a vector with the same length and width as the candidate image data. Generate curves about the positions of the pixels according to the vectors respectively; The peak values ​​located outside the median interval are filtered out from the curve, where the median interval is the interval containing the median value of each peak value in the curve. If filtering is completed, multiple straight lines are generated based on the multiple peak values ​​closest to each edge to connect the code information. Generate an outer rectangle for the connected table code information in the candidate image data; The data located within the bounding rectangle is cropped from the candidate image data to obtain the target image data.

2. The method according to claim 1, characterized in that, The process of collecting old meter asset numbers, new meter asset numbers, and sealing tool asset numbers based on the list of new meter asset numbers to be installed, the list of sealing asset numbers to be installed, and the meter batch installation / removal import template includes: The camera was used to scan the asset number of the old electricity meter, the asset number of the new electricity meter, and the asset number of the sealing tool. Search for the old electricity meter asset number in the batch installation and removal import template, search for the new electricity meter asset number in the list of new electricity meter asset numbers to be installed, and search for the seal asset number in the list of seal asset numbers to be installed. If the old meter asset number is found in the batch installation and removal import template, then the old meter asset number is determined to be valid. If the old meter asset number is not found in the batch installation and removal import template, an error label is added to the old meter asset number. If the new electricity meter asset number is found in the list of new electricity meter asset numbers to be installed, then the new electricity meter asset number is determined to be valid. If the new meter asset number is not found in the list of new meter asset numbers to be installed, then the new meter asset number is marked with an error label. If the sealed asset number is found in the list of asset numbers to be sealed, then the sealed asset number is determined to be valid. If the sealed asset number is not found in the list of asset numbers to be sealed, then the sealed asset number is marked with an error label.

3. The method according to claim 1, characterized in that, The process of collecting meter code information from the old electricity meter also includes: In the batch installation and removal import template for electricity meters, query the freeze code corresponding to the asset number of the old electricity meter. If the difference between the table code information and the frozen code is within the first verification range, then the table code information is determined to be valid, where one endpoint of the first verification range is 0 and the other endpoint is greater than 0. If the difference between the table code information and the frozen code is within the second verification range, then both the table code information and the frozen code are marked with an error label, and the values ​​in the second verification range are negative and tend to be 0; If the difference between the table code information and the frozen code is outside the first verification range and the second verification range, then the table code information is marked with an error label.

4. The method according to any one of claims 1-3, characterized in that, The process of generating a batch meter installation / removal list and a sealing list in the information collection sub-path based on the meter replacement list and the batch meter installation / removal import template includes: Copy the batch installation and removal template for electricity meters to the information collection sub-path; In the information collection sub-path, the old meter asset number, the new meter asset number, and the sealed asset number from the meter replacement list are filled into the meter batch installation and removal import template; If a data item in the meter replacement list is marked with an error label, the error label is deleted from the meter batch installation and removal import template, and the data item is highlighted. Create a seal template in the information collection sub-path; Fill the new meter asset number and the sealed asset number in the meter replacement list into the seal template; If a data item in the replacement list is marked with an error label, the error label is deleted from the seal template and the data item is highlighted.

5. An information collection device for replacing an electricity meter, characterized in that, The device, applied to a mobile terminal, includes: The file interaction path creation module is used to establish a file interaction path for the transformer area where the electricity meter is to be replaced. The file interaction path includes a list sub-path, a collected information sub-path, and an archived photo sub-path. The list list sub-path storage module is used to store the list of new electricity meter asset numbers to be installed, the list of sealed asset numbers to be installed, and the batch installation and removal template of electricity meters into the list list sub-path. The asset number collection module is used to collect the old meter asset number, the new meter asset number, and the sealing tool asset number respectively, based on the list of new electricity meter asset numbers to be installed, the list of sealing asset numbers to be installed, and the electricity meter batch installation and removal import template, if the storage is successful. The archived photo sub-path storage module is used to collect archived image data and write the archived image data into the archived photo sub-path. The archived image data includes the old meter asset number, the new meter asset number, the seal asset number, and the meter code information of the old meter. The meter code information recognition module is used to collect meter code information from the old electricity meter. The meter replacement list generation module is used to combine the old meter asset number, the new meter asset number, the sealed asset number, and the meter code information into element information, and write the element information into the meter replacement list; The disassembly and sealing list generation module is used to generate a batch meter disassembly and sealing list in the information collection sub-path based on the meter replacement list and the batch meter disassembly and sealing import template if the meter replacement is completed in the transformer area. The list verification module is used to verify the batch installation and removal list of the electricity meter and the sealing list based on the archived image data. The table code information recognition module includes: The meter code image data acquisition module is used to acquire meter code image data from the meter code display area of ​​the old electricity meter; The candidate image data conversion module is used to convert the table code image data into binary candidate image data; The target image data cropping module is used to crop the outline of the table code information from the candidate image data to obtain the target image data. The string recognition module is used to perform optical character recognition in the target image data to obtain a string; The electricity consumption unit filtering module is used to filter out characters representing electricity consumption units from the string to obtain table code information; The candidate image data conversion module includes: A grayscale image data conversion module is used to convert the table code image data into grayscale image data; An image binarization module is used to convert the grayscale image data into candidate image data for binarization; A contour data query module is used to query contour data in the candidate image data; The color setting module is used to set the outline data to the same color as the background. The post-processing module is used to sequentially perform erosion and dilation operations on the candidate image data; The target image data extraction module includes: The vector generation module is used to calculate the sum of the pixel values ​​of the candidate image data by row and column respectively, and divide the sum by the upper limit of the gray level to obtain a vector with the same length and width as the candidate image data. A curve generation module is used to generate curves about the positions of the pixels according to the vectors. A peak value filtering module is used to filter out peak values ​​located outside the median interval in the curve, wherein the median interval is an interval containing the median value of each peak value in the curve. The table code information connectivity module is used to generate multiple straight lines based on multiple peak values ​​closest to each edge, so as to connect the table code information if filtering is completed. The circumscribed rectangle generation module is used to generate a circumscribed rectangle from the connected table code information in the candidate image data; The circumscribed rectangle cropping module is used to crop data located within the circumscribed rectangle from the candidate image data, and use it as the target image data.

6. A mobile terminal, characterized in that, The mobile terminal includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the information collection method for replacing the electricity meter as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the information collection method for replacing an electricity meter as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Meter replacement method, meter replacement device, mobile terminal and storage medium

    CN113095520A

  • One-button electric energy meter assembling, disassembling and replacing method

    CN113298269A