CN112749699A - 5G network communication method and system for water meter - Google Patents

5G network communication method and system for water meter Download PDF

Info

Publication number
CN112749699A
CN112749699A CN202011612926.8A CN202011612926A CN112749699A CN 112749699 A CN112749699 A CN 112749699A CN 202011612926 A CN202011612926 A CN 202011612926A CN 112749699 A CN112749699 A CN 112749699A
Authority
CN
China
Prior art keywords
image
network
water meter
interest
region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011612926.8A
Other languages
Chinese (zh)
Inventor
许洁莹
余凯敏
蔡胜
黄铮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanchuan Wisdom Technology Co Ltd
Original Assignee
Sanchuan Wisdom Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanchuan Wisdom Technology Co Ltd filed Critical Sanchuan Wisdom Technology Co Ltd
Priority to CN202011612926.8A priority Critical patent/CN112749699A/en
Publication of CN112749699A publication Critical patent/CN112749699A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • G06F18/2411Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on the proximity to a decision surface, e.g. support vector machines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/02Recognising information on displays, dials, clocks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Multimedia (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a 5G network communication method and a system of a water meter, comprising at least one cell center node and a plurality of equipment detection nodes; starting an image acquisition module to acquire an original image of the water meter according to a preset period through the equipment detection node, and sending original image information to the cell center node through the short-range communication channel; the cell central node processes the original image information, obtains the reading information of the water meter through a pre-trained digital classification model, and detects the node through a return device; the equipment detection node starts the 5G network module and judges whether the 5G network is successfully accessed, and if the 5G network is successfully accessed for four times, the resident frequency point is erased and the network is accessed again; judging the continuous online times, and reselecting the cell when the continuous online times reach ten times; and the equipment detection node uploads the reading information through the 5G network. The 5G network system can greatly reduce the workload and the construction amount of intelligently modifying the instruments in the old community, and can be stably managed for a long time.

Description

5G network communication method and system for water meter
Technical Field
The invention relates to the field of instrument intellectualization, in particular to a 5G network communication method and system of a water meter.
Background
In our daily lives, there is a need to use various types of living resources, including: water, electricity, gas, etc., which are delivered to the end user by various resource suppliers in a certain way, the user must pay for the used resources according to the used resource amount, and therefore, the metering of the used resources of the end user is the basis and precondition for implementing the payment, and the metering of the used resources is completed by various resource "meters".
In the process of implementing the invention, the inventor finds that due to the rapid development of society, a so-called non-intelligent meter without a remote data automatic sending/reading function is adopted in many early residential districts, and in order to regularly obtain the reading on the meter, manual reading is required according to a certain period, so that the workload is large, and the error rate is high. However, because the meters in the old cell are often used for many years, the workload of disassembly and replacement is large, and the replaced intelligent meters generally need matched basic equipment to ensure the working stability thereof, so that the intelligent modification difficulty of the meters in the old cell is large, and in order to bring the meters into an automatic system framework for centralized management, the inventor proposes to perform non-intrusive expansion on the meters, namely, the meters can upload the meter readings to a central service system according to a preset period or requirement through external expansion.
Disclosure of Invention
The embodiment of the invention aims to provide a 5G network communication method and a system of a water meter, which can greatly reduce the workload and the construction amount of intelligently modifying instruments in old cells and can ensure that the modified instruments can be stably accessed into a 5G network system for management for a long time.
In order to achieve the above object, an embodiment of the present invention provides a 5G network communication method for a water meter, which is applicable to a 5G network system including at least one cell center node and a plurality of device detection nodes; the method comprises the following steps:
the equipment detection node starts an image acquisition module according to a preset period so as to acquire an original image of the water meter, sends original image information to the cell center node through a short-range communication channel, and closes the image acquisition module;
the cell center node responds to the original image information to start an image processing module, processes the original image information to obtain reading information of the water meter through a pre-trained digital classification model, and returns the reading information to the equipment detection node through the short-range communication channel;
the equipment detection node starts a 5G network module according to the preset period, judges whether the 5G network is successfully accessed, and if the 5G network is successfully accessed for four times, erases the resident frequency point and re-accesses the network; judging the continuous online times, and when the continuous online times reach ten times, reselecting the cell; the 5G network module is provided with a dual-card mode, is compatible with a plurality of BANDs and simultaneously supports a 5G network of telecommunication, movement and communication; in each preset period, starting the 5G network module after the image acquisition module is closed;
the equipment detection node uploads the reading information to a server through the 5G network, and closes the 5G network module;
in a dual-card mode of the 5G network module, automatic switching of the SIM card is realized through an AW6332 chip, and manual switching of the SIM card is realized through a dial switch;
wherein, the processing the original image information to obtain the reading information of the water meter through a pre-trained digital classification model comprises:
carrying out digital recognition in the image through the pre-trained digital classification model to obtain original reading information;
acquiring water meter parameters and historical reading records of corresponding water meters;
according to the original reading information, the water meter parameters and the historical reading record, judging the correctness of the original reading information;
and taking the original reading information judged by the correctness as the reading information.
As an improvement of the above scheme, the determining the correctness of the original reading information according to the original reading information, the water meter parameter and the historical reading record includes:
judging the reading range according to the original reading information and the water meter parameter, and judging whether the original reading data exceeds the reading range of the water meter parameter;
performing reading change judgment according to the original reading information and the historical reading record, and judging whether a change value of the original reading data compared with the historical reading record exceeds a preset threshold range;
and if the reading range is judged not to exceed the reading range and the reading change is judged not to exceed the preset threshold range, judging that the original reading information passes the correctness judgment.
As an improvement of the above solution, the pre-training of the digital classification model includes:
s010, obtaining training set samples, and training the training set samples to obtain T SVM digital classifiers;
s020, combining the T SVM digital classifiers to obtain an original classification function h (x) which satisfies the relation:
Figure BDA0002875317950000031
Figure BDA0002875317950000032
Figure BDA0002875317950000033
Figure BDA0002875317950000034
wherein x is the input image data; y ist(x) Representing the results obtained by the t-th said SVM digital classifier; a istRepresenting predictive training weights for the tth of said SVM digital classifiers; e.g. of the typetIs the sum of the distribution weights; dt(i) Initializing the distribution weight to 1/m; m is the number of groups of the training set samples; w is an(x) Result matrix of 10 × K, yn(xj) The matrix is 1 x K, wherein j is more than or equal to 1 x K, and n represents a number corresponding to the prediction result;
s030, respectively calculating T result matrixes w under the condition that the value of n is 0-9n(x) Obtaining 10 average values under the condition that the value of n is 0-9; combining the 10 average values into a matrix according to a digital sequence to obtain an average value matrix;
s040, according to the mean value matrix, the digital classification model h is obtained*(x),h*(x) Satisfies the following conditions:
Figure BDA0002875317950000041
wherein c1-c9 are 9 average values obtained by carrying out one-time average value calculation on two adjacent numbers in the average value matrix.
As an improvement of the above solution, when the 5G network module receives 5G network signals of a plurality of cells, and the 5G network signal strength of one cell in the plurality of cells exceeds twice the 5G network signal strength of any other cell, the cell with the largest 5G network signal strength in the plurality of cells is locked.
As an improvement of the above scheme, the water meter is a digital type device; the cell center node processes the original image information to obtain reading information of the water meter, and the method comprises the following steps:
performing ROI processing on the original image information to intercept an image of a region of interest;
thinning the image of the region of interest to obtain a character skeleton;
and performing character recognition on the character skeleton to acquire the reading information of the water meter through a pre-trained digital classification model.
As an improvement of the above scheme, the thinning processing includes contour acquisition, character segmentation and character skeleton extraction; the step of refining the image of the region of interest to obtain a character skeleton includes:
converting the image of the region of interest from an RGB image into a gray image to obtain a gray image of the region of interest;
carrying out binarization processing on the gray level image of the region of interest to obtain a binarized image of the region of interest;
performing horizontal scanning and vertical scanning on the binarized image of the region of interest, and segmenting the binarized image of the region of interest into a plurality of independent character graphs;
and thinning the character graph to obtain a character skeleton.
As an improvement of the scheme, the water meter is pointer-type equipment; the cell center node processes the original image information to obtain reading information of the water meter, and the method comprises the following steps:
performing ROI processing on the original image to intercept an image of a region of interest;
obtaining a straight line from the image of the region of interest, and constructing a position template of the water meter;
and carrying out position identification on the position template so as to obtain the reading information of the water meter through a pre-trained digital classification model.
As an improvement of the above scheme, the refining process includes pointer contour extraction and scale contour extraction; the step of obtaining a straight line from the image of the region of interest and constructing a position template of the water meter comprises the following steps:
converting the image of the region of interest from an RGB image into a gray image to obtain a gray image of the region of interest;
carrying out binarization processing on the gray level image of the region of interest to obtain a binarized image of the region of interest;
thinning the binarization image of the region of interest, and obtaining a scale pointer skeleton from the binarization image of the region of interest;
and acquiring a straight line from the scale pointer framework to construct a position template of the pointer type equipment.
As an improvement of the above scheme, the device detection node further includes a remote debugging mode; the server sends a remote AT instruction, the 5G network module receives the remote AT instruction and sends a replied instruction to the server so as to realize remote debugging of the equipment detection node;
the equipment detection node also comprises a field debugging mode; and sending an AT transparent transmission mode starting instruction to the equipment detection node through the debugging equipment, and receiving debugging information sent to the 5G network module from the outside by the equipment detection node through a near-end serial port or an infrared receiver.
The embodiment of the invention also provides a 5G network system of the water meter of the old residential district, which comprises at least one district center node and a plurality of equipment detection nodes, so that the 5G network communication method of the water meter can be realized through the cooperation of the at least one district center node and the plurality of equipment detection nodes.
Compared with the prior art, the 5G network communication method and the system of the water meter disclosed by the invention comprise at least one cell center node and a plurality of equipment detection nodes, wherein the equipment detection nodes start an image acquisition module according to a preset period so as to acquire an original image of the water meter, send original image information to the cell center node through a short-range communication channel and close the image acquisition module; the cell center node responds to the original image information to start an image processing module, processes the original image information to obtain reading information of the water meter, and returns the reading information to the equipment detection node through the short-range communication channel; the equipment detection node starts a 5G network module according to the preset period, judges whether the 5G network is successfully accessed, and if the 5G network is successfully accessed for four times, erases the resident frequency point and re-accesses the network; judging the continuous online times, and when the continuous online times reach ten times, reselecting the cell; in each preset period, starting the 5G network module after the image acquisition module is closed; and the equipment detection node uploads the reading information to a server through the 5G network, and closes the 5G network module. Data of meters such as a water meter and the like are acquired through the equipment detection node, so that non-invasive modification of the meters is realized, and huge workload caused by meter replacement is avoided; and the cell center node provides operation support for image processing, so that the energy consumption level of equipment detection nodes arranged at each instrument is reduced, the equipment detection nodes are communicated with the cell center node through short-range communication channels to transmit image information with larger data volume, the increase of energy consumption caused by image transmission of long-range communication transmission is avoided, the energy consumption level of the equipment detection nodes is further reduced, and the long-term operation of the equipment detection nodes is ensured. Meanwhile, the infrastructure improvement of the residential community only needs to increase at least one community center node providing short-range communication support and a simple image processing function, so that the cost and construction amount brought by infrastructure improvement are greatly reduced, the 5G network module of the equipment detection node is used for network access detection and cell reselection, the influence caused by the problem of poor signals in old communities is reduced, and the running stability of the equipment detection node is improved.
Drawings
Fig. 1 is a schematic structural diagram of a 5G network system of a water meter of an old residential district in embodiment 1 of the present invention;
fig. 2 is a schematic flow chart of a 5G network communication method of the 5G network system shown in fig. 1;
fig. 3 is a detailed flowchart of step S120 of the 5G network communication method shown in fig. 2;
fig. 4 is a detailed flowchart of step S123 of the 5G network communication method shown in fig. 3;
FIG. 5 is a schematic diagram of a preferred flow chart of step S120 in embodiment 1 of the present invention;
FIG. 6 is a detailed flowchart of step S120-2 in FIG. 5;
FIG. 7 is a schematic view of another preferred flowchart of step S120 in embodiment 1 of the present invention;
fig. 8 is a detailed flowchart of step S120-2' in fig. 7.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, embodiment 1 of the present invention provides a 5G network system of water meters in old residential districts. The 5G network system 10 includes at least one cell center node 11 and a plurality of device detection nodes 12.
In this embodiment, the 5G network is an NB-IOT, and the reading is image information, and in other embodiments, the 5G network may also be any wireless network.
Referring to fig. 2, a 5G network communication method of a water meter, which is applicable to the 5G network system 10, includes steps S110 to S140; preferably, step S150 may also be included.
S100, the equipment detection node 12 starts an image acquisition module 12a according to a preset period to acquire an original image of the water meter, sends original image information to the cell center node 11 through a short-range communication channel, and closes the image acquisition module 12 a.
Wherein the device detection node 12 may further include a short-range communication module 12b configured to communicate via the short-range communication channel.
Turning off the image acquisition module 12a when the image acquisition module 12a is not required to operate, thereby reducing the energy consumption level of the device detection node 12.
S120, the cell center node 11 responds to the original image information to start an image processing module 11a, processes the original image information to obtain reading information of the water meter through a pre-trained digital classification model, and returns the reading information to the equipment detection node 12 through the short-range communication channel.
Specifically, the cell center node 11 may further include a WiFi signal transmitting module 11 b; the short-range communication channel is specifically a WiFi communication channel.
Specifically, referring to fig. 3, step S120 may include steps S121 to S124.
And S121, carrying out digital identification in the image through the pre-trained digital classification model to obtain original reading information.
And S122, acquiring water meter parameters and historical reading records of the corresponding water meters.
And S123, judging the correctness of the original reading information according to the original reading information, the water meter parameters and the historical reading record.
Further, referring to fig. 4, the process of determining the correctness in step S123 may specifically include steps S123a to S123 c.
S123a, judging the reading range according to the original reading information and the water meter parameters, and judging whether the original reading data exceeds the reading range of the water meter parameters.
S123b, performing reading change judgment according to the original reading information and the historical reading record, and judging whether the change value of the original reading data compared with the historical reading record exceeds a preset threshold range.
And S123c, if the reading range is judged not to exceed the reading range and the reading change is judged not to exceed the preset threshold range, judging that the original reading information passes the correctness judgment.
And S124, taking the original reading information judged by the correctness as the reading information.
Preferably, the pre-training of the digital classification model may include steps S010 to S040.
S010, obtaining training set samples, and training the training set samples to obtain T SVM digital classifiers;
s020, combining the T SVM digital classifiers to obtain an original classification function h (x) which satisfies the relation:
Figure BDA0002875317950000091
Figure BDA0002875317950000092
Figure BDA0002875317950000093
Figure BDA0002875317950000094
wherein x is the input image data; y ist(x) Representing the results obtained by the t-th said SVM digital classifier; a istRepresenting predictive training weights for the tth of said SVM digital classifiers; e.g. of the typetIs the sum of the distribution weights; dt(i) Initializing the distribution weight to 1/m; m is the number of groups of the training set samples; w is an(x) Result matrix of 10 × K, yn(xj) The matrix is 1 x K, wherein j is more than or equal to 1 x K, and n represents a number corresponding to the prediction result;
s030, respectively calculating T result matrixes w under the condition that the value of n is 0-9n(x) Obtaining 10 average values under the condition that the value of n is 0-9; combining the 10 average values into a matrix according to a digital sequence to obtain an average value matrix;
s040, according to the mean value matrix, the digital classification model h is obtained*(x),h*(x) Satisfies the following conditions:
Figure BDA0002875317950000101
wherein c1-c9 are 9 average values obtained by carrying out one-time average value calculation on two adjacent numbers in the average value matrix.
S130, the equipment detection node starts the 5G network module 12c according to the preset period, judges whether the 5G network is successfully accessed, and if the 5G network is successfully accessed for four times, erases the resident frequency point and re-accesses the network; judging the continuous online times, and when the continuous online times reach ten times, reselecting the cell; the 5G network module is provided with a dual-card mode, is compatible with a plurality of BANDs and simultaneously supports a 5G network of telecommunication, movement and communication; in each preset period, the 5G network module 12c is started after the image acquisition module is turned off.
Specifically, when the 5G network module 12c accesses the base station, a plurality of frequency points may exist in the current 5G network, and in some cases, when the 5G network signal of the resident frequency point is poor, the 5G network module 12c may need to switch to a new 5G network frequency point for network access, and when the network access operation is processed, it is determined that the resident frequency point is erased before network access if it is determined that the default consecutive four times of network access failures occur, and then network access is performed again.
Specifically, when the 5G network module 12c is accessed to the base station, a plurality of frequency points may exist in the current 5G network, and a cell reselection operation may be performed once after the default is continuously on-line for 10 times, so that a change in 5G network signals in the current network environment is avoided, it is ensured that the device detection node 12 is accessed according to the optimal frequency point when accessing the network, and the stability of being connected to the 5G network in an old cell is improved.
Specifically, in a dual-card mode of the 5G network module, automatic switching of the SIM card is realized by an AW6332 chip, and manual switching of the SIM card is realized by a dial switch.
S140, the equipment detection node uploads the reading information to a server through the 5G network, and the 5G network module 12c is closed.
And when the 5G network module 12c is not needed to work, the 5G network module 12c is closed, so that the energy consumption level of the equipment detection node 12 is reduced.
S150, when the 5G network module receives the 5G network signals of the multiple cells and the 5G network signal strength of one cell in the multiple cells exceeds twice the 5G network signal strength of any other cell, locking the cell with the highest 5G network signal strength in the multiple cells.
Furthermore, the device detection node 12 may also include a remote commissioning mode; the server sends a remote AT instruction, the 5G network module 12c receives the remote AT instruction and sends a replied instruction to the server so as to realize remote debugging of the equipment detection node 12;
the device detection node 12 further comprises a field debugging mode; an AT transparent transmission mode starting instruction is sent to the equipment detection node 12 through debugging equipment, and the equipment detection node 12 receives debugging information sent to the 5G network module 12c from the outside through a near-end serial port or an infrared receiver.
The 5G network communication method and the system for the water meter, disclosed by the embodiment 1 of the invention, comprise at least one cell center node and a plurality of equipment detection nodes, wherein the equipment detection nodes start an image acquisition module according to a preset period so as to acquire an original image of the water meter, send original image information to the cell center node through a short-range communication channel and close the image acquisition module; the cell center node responds to the original image information to start an image processing module, processes the original image information to obtain reading information of the water meter, and returns the reading information to the equipment detection node through the short-range communication channel; the equipment detection node starts a 5G network module according to the preset period, judges whether the 5G network is successfully accessed, and if the 5G network is successfully accessed for four times, erases the resident frequency point and re-accesses the network; judging the continuous online times, and when the continuous online times reach ten times, reselecting the cell; in each preset period, starting the 5G network module after the image acquisition module is closed; and the equipment detection node uploads the reading information to a server through the 5G network, and closes the 5G network module. Data of meters such as a water meter and the like are acquired through the equipment detection node, so that non-invasive modification of the meters is realized, and huge workload caused by meter replacement is avoided; and the cell center node provides operation support for image processing, so that the energy consumption level of equipment detection nodes arranged at each instrument is reduced, the equipment detection nodes are communicated with the cell center node through short-range communication channels to transmit image information with larger data volume, the increase of energy consumption caused by image transmission of long-range communication transmission is avoided, the energy consumption level of the equipment detection nodes is further reduced, and the long-term operation of the equipment detection nodes is ensured. Meanwhile, the infrastructure improvement of the residential community only needs to increase at least one community center node providing short-range communication support and a simple image processing function, so that the cost and construction amount brought by infrastructure improvement are greatly reduced, the 5G network module of the equipment detection node is used for network access detection and cell reselection, the influence caused by the problem of poor signals in old communities is reduced, and the running stability of the equipment detection node is improved.
Referring to fig. 5, which is a preferred implementation of step S120 in embodiment 1 of the present invention, in the preferred implementation, step S120-1 to step S120-3 may be specifically included before step 121 of step S120.
S120-1, performing ROI processing on the original image, presetting interested region data corresponding to the digital type equipment, extracting the interested region of the original image through an ROI algorithm after the original image is acquired, obtaining an image of the interested region, and filtering image information of other regions. Preferably, the color model used by the original image collected in this embodiment is RGB, and in other embodiments, the color may be HSV or HSI, which does not affect the beneficial effects obtained by the present invention.
S120-2, performing thinning processing on the image of the region of interest, specifically, referring to FIG. 6, the step S120-2 includes steps S120-2a to S120-2 d.
S120-2a, converting the image of the region of interest from an RGB image into a gray image, wherein a specific conversion algorithm adopts a calculation formula:
Gray=R*0.299+G*0.587+B*0.114
and calculating the Gray value of the current position through the RGB value of the pixel point at the current position, and converting to obtain the Gray image of the region of interest.
And S120-2b, setting a binarization threshold value according to the actual gray level image information, and carrying out binarization operation on the gray level image of the region of interest to enable the number and the background of the gray level image of the region of interest to respectively present black and white, so as to obtain a binarization image of the region of interest. Specifically, a gray level average value method is adopted to carry out binarization processing on the gray level image of the region of interest. In this embodiment, the number is black and the background is white, but in other embodiments, the number may be white and the background may be black, which does not affect the beneficial effects of the present invention.
S120-2c, scanning and analyzing the binarized image of the region of interest through horizontal scanning jumping points and vertical scanning connectivity, obtaining boundary information of each character graph, positioning the boundary of each character graph, and segmenting the binarized image of the region of interest into independent character graphs; in other embodiments, the boundary detection operators such as Sobel operators and Reberts operators can also be used for obtaining the character pattern so as to obtain a single character pattern, and the beneficial effects obtained by the method are not influenced.
And S120-2d, thinning the binarization image of the region of interest to obtain a character skeleton. Specifically, using an iterative algorithm to successively delete the pixel edges of the individual character pattern until the skeleton part in the center of the remaining image of the individual character pattern is reached to obtain a character skeleton; in other embodiments, a non-iterative algorithm, such as an algorithm based on distance transformation, may also be used without affecting the beneficial effects achieved by the present invention.
In other embodiments, the gray level image of the region of interest can be directly thinned to obtain a character skeleton, and the beneficial effects of the invention are not affected.
And S120-3, performing character recognition on the character skeleton to acquire reading information of the digital type equipment through a pre-trained digital classification model. Specifically, character recognition is carried out on the character skeleton by adopting a pattern recognition algorithm, and the digital meaning represented by the character skeleton is analyzed to obtain reading information displayed by the digital type equipment; in other embodiments, other recognition algorithms, such as a support vector machine recognition algorithm or a neural network recognition algorithm, may also be used without affecting the beneficial effects of the present invention.
According to the 5G network communication method of the water meter, provided by the embodiment of the invention, on the basis of the beneficial effects of the embodiment 1, the acquired digital type equipment image is subjected to ROI processing, the image of the region of interest is intercepted, then the image of the region of interest is subjected to segmentation and refinement processing to obtain a refined character graph, then the character graph is analyzed, the digital meaning represented by the character graph is identified, the reading information of the digital type equipment is obtained, the detection and identification process of the digital type equipment is completed, the intelligent reading of the digital type equipment is realized, and the reading is sent to the equipment detection node for uploading.
Referring to fig. 7, fig. 7 is another preferred implementation of step S120 in embodiment 1 of the present invention, and in the present preferred implementation, before step 121 of step S120, step S120-1 'to step S120-3' may be specifically included.
S120-1', performing ROI processing on the original image, presetting region-of-interest data corresponding to the pointer type equipment, after the original image is acquired, extracting the region-of-interest of the original image through an ROI algorithm to obtain an image of the region-of-interest, and filtering image information of other regions. Preferably, the color model used by the original image collected in this embodiment is RGB, and in other embodiments, the color may be HSV or HSI, which does not affect the beneficial effects obtained by the present invention.
S120-2 ', thinning the image of the region of interest, specifically, referring to FIG. 8, the step S122' includes steps S120-2 'a to S120-2'd.
S120-2' a, converting the image of the region of interest from an RGB image into a gray image, wherein a specific conversion algorithm adopts a calculation formula:
Gray=R*0.299+G*0.587+B*0.114
and calculating the Gray value of the current position through the RGB value of the pixel point at the current position, and converting to obtain the Gray image of the region of interest.
S120-2' b, setting a binarization threshold value according to actual gray level image information, and carrying out binarization operation on the gray level image of the region of interest to enable a scale pointer and a background of the gray level image of the region of interest to respectively present black and white, so as to obtain a binarization image of the region of interest. Specifically, a gray level average value method is adopted to carry out binarization processing on the gray level image of the region of interest. In this embodiment, the scale and the pointer are black, and the background is white, but in other embodiments, the scale and the pointer may be white, and the background is black, which does not affect the beneficial effects obtained by the present invention.
And S120-2' c, thinning the binarization image of the region of interest to obtain a scale pointer skeleton. Specifically, using an iterative algorithm to successively delete the pixel edges of the scale graph and the pointer graph until a scale pointer skeleton in the center of the graph is left in the scale graph and the pointer graph; in other embodiments, a non-iterative algorithm, such as an algorithm based on distance transformation, may also be used without affecting the beneficial effects achieved by the present invention.
And S120-2'd, obtaining a straight line from the scale pointer framework, and constructing a position template of pointer type equipment. Specifically, Hough transformation is adopted to obtain the scales of the pointer type equipment and the linear graphs of the pointer from the scale pointer framework, and a position template of the pointer type equipment is constructed according to the obtained positions of the scales and the linear graphs of the pointer.
In other embodiments, the gray level image of the region of interest may be directly thinned to obtain the scale pointer skeleton, without affecting the beneficial effects obtained by the present invention.
S120-3', carrying out position identification on the position template so as to obtain the reading information of the pointer type equipment through a pre-trained digital classification model. Specifically, the position template is compared with a preset built-in template, specific position information of a pointer in the position template is obtained, and reading information of the pointer type equipment is read from the specific position information of the pointer.
The 5G network communication method of the water meter provided by the embodiment of the invention has the beneficial effects that on the basis of obtaining the beneficial effects of the embodiment 1, the image of the interested area in the original image is intercepted, the color scheme of the image of the interested area is converted, then the straight line is obtained from the image of the interested area, the position template of the pointer type equipment is constructed, the reading currently displayed by the pointer type equipment is analyzed from the position template, and finally the reading is sent to the equipment detection node for uploading, so that the intelligent reading and intelligent data summarization of the non-intelligent pointer meter is realized under the condition of not carrying out internal modification on the non-intelligent pointer meter.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (10)

1. The 5G network communication method of the water meter is characterized by being applicable to a 5G network system comprising at least one cell center node and a plurality of equipment detection nodes; the method comprises the following steps:
the equipment detection node starts an image acquisition module according to a preset period so as to acquire an original image of the water meter, sends original image information to the cell center node through a short-range communication channel, and closes the image acquisition module;
the cell center node responds to the original image information to start an image processing module, processes the original image information to obtain reading information of the water meter through a pre-trained digital classification model, and returns the reading information to the equipment detection node through the short-range communication channel;
the equipment detection node starts a 5G network module according to the preset period, judges whether the 5G network is successfully accessed, and if the 5G network is successfully accessed for four times, erases the resident frequency point and re-accesses the network; judging the continuous online times, and when the continuous online times reach ten times, reselecting the cell; the 5G network module is provided with a dual-card mode, is compatible with a plurality of BANDs and simultaneously supports a 5G network of telecommunication, movement and communication; in each preset period, starting the 5G network module after the image acquisition module is closed;
the equipment detection node uploads the reading information to a server through the 5G network, and closes the 5G network module;
in a dual-card mode of the 5G network module, automatic switching of the SIM card is realized through an AW6332 chip, and manual switching of the SIM card is realized through a dial switch;
wherein, the processing the original image information to obtain the reading information of the water meter through a pre-trained digital classification model comprises:
carrying out digital recognition in the image through the pre-trained digital classification model to obtain original reading information;
acquiring water meter parameters and historical reading records of corresponding water meters;
according to the original reading information, the water meter parameters and the historical reading record, judging the correctness of the original reading information;
and taking the original reading information judged by the correctness as the reading information.
2. The 5G network communication method of claim 1, wherein the determining the correctness of the raw reading information according to the raw reading information, the water meter parameters and the historical reading records comprises:
judging the reading range according to the original reading information and the water meter parameter, and judging whether the original reading data exceeds the reading range of the water meter parameter;
performing reading change judgment according to the original reading information and the historical reading record, and judging whether a change value of the original reading data compared with the historical reading record exceeds a preset threshold range;
and if the reading range is judged not to exceed the reading range and the reading change is judged not to exceed the preset threshold range, judging that the original reading information passes the correctness judgment.
3. The 5G network communication method of claim 1, wherein the pre-training of the digital classification model comprises:
s010, obtaining training set samples, and training the training set samples to obtain T SVM digital classifiers;
s020, combining the T SVM digital classifiers to obtain an original classification function h (x) which satisfies the relation:
Figure FDA0002875317940000021
Figure FDA0002875317940000022
Figure FDA0002875317940000031
Figure FDA0002875317940000032
wherein x is the input image data; y ist(x) Representing the results obtained by the t-th said SVM digital classifier; a istRepresenting predictive training weights for the tth of said SVM digital classifiers; e.g. of the typetIs the sum of the distribution weights; dt(i) Initializing the distribution weight to 1/m; m is the number of groups of the training set samples; w is an(x) Result matrix of 10 × K, yn(xj) The matrix is 1 x K, wherein j is more than or equal to 1 x K, and n represents a number corresponding to the prediction result;
s030, respectively calculating T result matrixes w under the condition that the value of n is 0-9n(x) Obtaining 10 average values under the condition that the value of n is 0-9; combining the 10 average values into a matrix according to a digital sequence to obtain an average value matrix;
s040, according to the mean value matrix, the digital classification model h is obtained*(x),h*(x) Satisfies the following conditions:
Figure FDA0002875317940000033
wherein c1-c9 are 9 average values obtained by carrying out one-time average value calculation on two adjacent numbers in the average value matrix.
4. The method of claim 1, wherein when the 5G network module receives 5G network signals of a plurality of cells and the 5G network signal strength of one cell of the plurality of cells exceeds twice the 5G network signal strength of any other cell, locking the cell with the highest 5G network signal strength among the plurality of cells.
5. The 5G network communication method of claim 1, wherein the water meter is a digital type device; the cell center node processes the original image information to obtain reading information of the water meter, and the method comprises the following steps:
performing ROI processing on the original image information to intercept an image of a region of interest;
thinning the image of the region of interest to obtain a character skeleton;
and performing character recognition on the character skeleton to acquire the reading information of the water meter through the digital classification model.
6. The 5G network communication method according to claim 5, wherein the refining process includes contour acquisition, character segmentation and character skeleton extraction; the step of refining the image of the region of interest to obtain a character skeleton includes:
converting the image of the region of interest from an RGB image into a gray image to obtain a gray image of the region of interest;
carrying out binarization processing on the gray level image of the region of interest to obtain a binarized image of the region of interest;
performing horizontal scanning and vertical scanning on the binarized image of the region of interest, and segmenting the binarized image of the region of interest into a plurality of independent character graphs;
and thinning the character graph to obtain a character skeleton.
7. The 5G network communication method according to claim 1, wherein the water meter is a pointer type device; the cell center node processes the original image information to obtain reading information of the water meter, and the method comprises the following steps:
performing ROI processing on the original image to intercept an image of a region of interest;
obtaining a straight line from the image of the region of interest, and constructing a position template of the water meter;
and carrying out position identification on the position template so as to obtain the reading information of the water meter through the digital classification model.
8. The 5G network communication method according to claim 7, wherein the refining process includes pointer profile extraction and scale profile extraction; the step of obtaining a straight line from the image of the region of interest and constructing a position template of the water meter comprises the following steps:
converting the image of the region of interest from an RGB image into a gray image to obtain a gray image of the region of interest;
carrying out binarization processing on the gray level image of the region of interest to obtain a binarized image of the region of interest;
thinning the binarization image of the region of interest, and obtaining a scale pointer skeleton from the binarization image of the region of interest;
and acquiring a straight line from the scale pointer framework to construct a position template of the pointer type equipment.
9. The 5G network communication method of claim 1, wherein the device detection node further comprises a remote debug mode; the server sends a remote AT instruction, the 5G network module receives the remote AT instruction and sends a replied instruction to the server so as to realize remote debugging of the equipment detection node;
the equipment detection node also comprises a field debugging mode; and sending an AT transparent transmission mode starting instruction to the equipment detection node through the debugging equipment, and receiving debugging information sent to the 5G network module from the outside by the equipment detection node through a near-end serial port or an infrared receiver.
10. A 5G network system for a water meter in an old residential district, comprising at least one district center node and a plurality of equipment detection nodes, wherein the 5G network communication method for the water meter according to any one of claims 1 to 9 is realized through cooperation of the at least one district center node and the plurality of equipment detection nodes.
CN202011612926.8A 2020-12-30 2020-12-30 5G network communication method and system for water meter Pending CN112749699A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011612926.8A CN112749699A (en) 2020-12-30 2020-12-30 5G network communication method and system for water meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011612926.8A CN112749699A (en) 2020-12-30 2020-12-30 5G network communication method and system for water meter

Publications (1)

Publication Number Publication Date
CN112749699A true CN112749699A (en) 2021-05-04

Family

ID=75649898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011612926.8A Pending CN112749699A (en) 2020-12-30 2020-12-30 5G network communication method and system for water meter

Country Status (1)

Country Link
CN (1) CN112749699A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113358172A (en) * 2021-06-02 2021-09-07 三川智慧科技股份有限公司 Method, device, equipment and medium for automatically setting electromechanical synchronization of water meter
CN114666822A (en) * 2022-04-26 2022-06-24 青岛鼎信通讯股份有限公司 Network signal optimization method suitable for fault indicator

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067991A (en) * 2012-12-26 2013-04-24 中兴通讯股份有限公司 Cell reselection method and device
US20150173122A1 (en) * 2013-08-22 2015-06-18 Telefonaktiebolaget L M Ericsson (Publ) Mobile station, core network node, base station subsystem, and methods for implementing longer paging cycles in a cellular network
CN107392202A (en) * 2017-06-30 2017-11-24 广州广电物业管理有限公司 A kind of pointer type Recognition of Reading method and system
CN107403180A (en) * 2017-06-30 2017-11-28 广州广电物业管理有限公司 A kind of numeric type equipment detection recognition method and system
CN109360396A (en) * 2018-09-27 2019-02-19 长江大学 Remote meter reading method and system based on image recognition technology and NB-IoT technology
CN110807355A (en) * 2019-09-12 2020-02-18 天津大学 Pointer instrument detection and reading identification method based on mobile robot

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067991A (en) * 2012-12-26 2013-04-24 中兴通讯股份有限公司 Cell reselection method and device
US20150173122A1 (en) * 2013-08-22 2015-06-18 Telefonaktiebolaget L M Ericsson (Publ) Mobile station, core network node, base station subsystem, and methods for implementing longer paging cycles in a cellular network
CN107392202A (en) * 2017-06-30 2017-11-24 广州广电物业管理有限公司 A kind of pointer type Recognition of Reading method and system
CN107403180A (en) * 2017-06-30 2017-11-28 广州广电物业管理有限公司 A kind of numeric type equipment detection recognition method and system
CN109360396A (en) * 2018-09-27 2019-02-19 长江大学 Remote meter reading method and system based on image recognition technology and NB-IoT technology
CN110807355A (en) * 2019-09-12 2020-02-18 天津大学 Pointer instrument detection and reading identification method based on mobile robot

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113358172A (en) * 2021-06-02 2021-09-07 三川智慧科技股份有限公司 Method, device, equipment and medium for automatically setting electromechanical synchronization of water meter
CN114666822A (en) * 2022-04-26 2022-06-24 青岛鼎信通讯股份有限公司 Network signal optimization method suitable for fault indicator

Similar Documents

Publication Publication Date Title
CN112749699A (en) 5G network communication method and system for water meter
CN105163326B (en) A kind of cell clustering method and system based on wireless network traffic feature
CN108416379A (en) Method and apparatus for handling cervical cell image
CN111028016A (en) Sales data prediction method and device and related equipment
Jin et al. A Smart Water Metering System Based on Image Recognition and Narrowband Internet of Things.
CN104283918A (en) Method and system for obtaining wireless local area network (WLAN) terminal types
CN109255100A (en) A kind of Urban Rain inversion algorithm based on microwave attenuation characteristic response fingerprint recognition
CN113708350B (en) Cloud edge cooperation-based power distribution area heavy overload abnormality judgment method and system
CN109379698B (en) Cell measurement report positioning method and system based on channel model feature extraction
CN107392202A (en) A kind of pointer type Recognition of Reading method and system
CN112163636B (en) Unknown mode identification method of electromagnetic signal radiation source based on twin neural network
CN112749698A (en) 5G network system
CN113902914A (en) Water meter reading automatic identification method based on microcontroller and convolutional neural network
CN112733842A (en) 5G network system of water meter
CN110837834B (en) Digital instrument reading method and system
CN115147661B (en) Chromosome classification method, device, equipment and readable storage medium
CN114926841B (en) Electronic water meter reading image identification method and device based on improved threading method
CN113923589B (en) Non-contact type multi-target positioning method
CN113158871B (en) Wireless signal intensity abnormity detection method based on density core
CN115421220A (en) Multi-factor local precipitation indication method and system based on deep learning
CN113505776A (en) Intelligent identification method and device for gas meter reading
CN114781667A (en) Multi-equipment full life cycle PHM health management and prediction maintenance platform
CN107796323A (en) A kind of micro- change detecting system of bridge based on hot spot vision signal intellectual analysis
CN109521312B (en) Non-technical line loss detection method, device and system
CN106817328A (en) Digital pre-distortion table generating method, device and digital pre-distortion system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210504

WD01 Invention patent application deemed withdrawn after publication