CN114092715A - Pointer data transmission method, device, computer equipment, storage medium and system - Google Patents

Pointer data transmission method, device, computer equipment, storage medium and system Download PDF

Info

Publication number
CN114092715A
CN114092715A CN202111423310.0A CN202111423310A CN114092715A CN 114092715 A CN114092715 A CN 114092715A CN 202111423310 A CN202111423310 A CN 202111423310A CN 114092715 A CN114092715 A CN 114092715A
Authority
CN
China
Prior art keywords
pointer
image
data
dial
feature
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
CN202111423310.0A
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.)
BOE Technology Group Co Ltd
Beijing BOE Technology Development Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Beijing BOE Technology Development 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 BOE Technology Group Co Ltd, Beijing BOE Technology Development Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202111423310.0A priority Critical patent/CN114092715A/en
Publication of CN114092715A publication Critical patent/CN114092715A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

The invention discloses a pointer data transmission method, a device, computer equipment, a storage medium and a system, wherein the pointer data transmission method of one embodiment comprises the following steps: extracting a pointer image in a dial plate image of the pointer instrument to obtain a pointer characteristic image; compressing the pointer feature image to generate feature data; and obtaining pointer data corresponding to the dial image based on the characteristic data. The data transmission method of the embodiment extracts effective image content in the dial image, discards useless data in the dial image to generate the pointer feature image, and the feature data amount in the pointer feature image is the minimum transmission amount of the pointer feature representing the dial image, so that the correct pointer data in the dial image can still be obtained according to the extracted and compressed feature data, and the data transmission method can reduce the data amount of the dial image required to be sent and reduce transmission power consumption.

Description

Pointer data transmission method, device, computer equipment, storage medium and system
Technical Field
The invention relates to the field of pointer instrument identification, in particular to a pointer data transmission method, a pointer data transmission device, computer equipment, a storage medium and a pointer data transmission system.
Background
The dial plate of current pointer instrument is as shown in fig. 1, and it is too big to face because dial plate image data when carrying out the transmission of dial plate image through thing networking terminal usually, leads to the split data package to transmit to the continuous influence that arouses, such as the excessive puzzlement of data transmission volume and transmission consumption height.
Disclosure of Invention
In order to solve at least one of the above problems, a first embodiment of the present invention provides a data transmission method, including:
extracting a pointer image in a dial plate image of the pointer instrument to obtain a pointer characteristic image;
compressing the pointer feature image to generate feature data;
and obtaining pointer data corresponding to the dial image based on the characteristic data. Further, the dial plate image comprises a dial plate of the pointer instrument, dial plate characters positioned in the dial plate and pointers positioned in the dial plate, wherein the dial plate is circular;
the extracting the pointer image in the dial plate image of the pointer instrument to obtain the pointer characteristic image further comprises:
extracting the dial plate image by a preset extraction radius to generate an image to be extracted comprising a part of pointer, wherein the image to be extracted comprises the pointer which is positioned outside the rotation center of the pointer and points to one side of the dial plate characters;
and extracting an image including a pointer in the image to be extracted as a pointer feature image.
Further, the preset extraction radius comprises a first preset extraction radius and a second preset extraction radius,
the second preset extraction radius is smaller than the first preset extraction radius;
and the pointer pointing to the dial characters in the image to be extracted is positioned between a first extraction area formed by the first preset extraction radius and a second extraction area formed by the second preset extraction radius.
Further, the compressing the pointer feature image to generate feature data includes:
scanning the pointer characteristic image line by line and generating characteristic information of the pointer characteristic image corresponding to a line where the pointer characteristic image is located during each scanning;
and taking all the scanned characteristic information of the pointer characteristic image as characteristic data and transmitting the characteristic data.
Further, the feature information includes: the characteristic image is in the initial coordinate of the line and the characteristic width of each scanning.
Further, the length of the first preset extraction radius is the length from the dial character close to the rotation center; the length of the second preset extraction radius is the same as the length of one end, far away from the dial character, of the pointer from the rotation center.
Further, the obtaining of the parameter information corresponding to the dial plate image based on the feature data includes:
expanding the feature data into the pointer feature image;
fitting according to the expanded pointer characteristic image and the characteristic data and a preset rotation center to obtain pointer position information in the pointer characteristic image;
and determining pointer data corresponding to the dial image according to the pointer position information and the parameter information of the pointer instrument.
A second embodiment of the present invention provides a pointer data transmission apparatus for implementing the first embodiment of the present invention, including:
the dial plate image extraction module is used for extracting a pointer image in the dial plate image of the pointer instrument to obtain a pointer characteristic image;
the characteristic data generation module is used for compressing the pointer characteristic image to generate characteristic data;
and the pointer data determining module is used for obtaining pointer data corresponding to the dial plate image based on the characteristic data.
A third embodiment of the present invention provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the method according to the first embodiment of the present invention.
A fourth embodiment of the invention provides a computer-readable storage medium, on which a computer program is stored which, when executed by a processor, implements the method according to the first embodiment of the invention.
A fifth embodiment of the present invention provides a pointer data transmission system, including:
a pointer instrument;
the camera device is used for acquiring the dial plate image;
a pointer data transmission apparatus according to the first embodiment of the present invention or a computer device according to the third embodiment of the present invention; and
and the wireless transmission module is used for transmitting various data.
The invention has the following beneficial effects:
the invention provides a pointer data transmission method aiming at the existing problems, which extracts the effective image content in the dial image, abandons the useless data in the dial image to generate a pointer characteristic image, and the pointer characteristic image can represent the pointer characteristic of the dial image by less characteristic data quantity, so the correct pointer data in the dial image can still be obtained according to the extracted and compressed characteristic data, and the data transmission method can reduce the data quantity of the dial image required to be sent and the transmission power consumption.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a schematic structural design of a dial plate of a prior art pointer instrument;
FIG. 2 illustrates a method flow diagram of a pointer data transmission method of one embodiment of the present invention;
fig. 3 shows a schematic diagram of a dial image of a specific example of an embodiment of the present invention;
FIG. 4 shows a method flowchart of step S1 of an embodiment of the present invention;
FIGS. 5a-5c show schematic diagrams of images to be extracted for different alternative embodiments of the invention;
FIG. 6 is a schematic diagram of an extracted pointer feature image according to an embodiment of the invention;
FIG. 7 shows a method flowchart of step S2 of an embodiment of the present invention;
8a-8b show schematic diagrams of pointer feature images in different states of an embodiment of the invention in a planar coordinate system;
FIG. 9 is a flow chart illustrating the conversion of a pointer feature image into feature data according to an embodiment of the present invention;
FIG. 10 shows a method flowchart of step S3 of an embodiment of the present invention;
FIG. 11 is a schematic diagram showing a position relationship between a pointer feature image and a preset rotation center after fitting;
FIG. 12 is a block diagram showing the construction of a pointer data transmission apparatus according to an embodiment of the present invention;
FIG. 13 is a block diagram of a pointer data transfer system in accordance with one embodiment of the present invention;
fig. 14 shows a structural framework diagram of a computer apparatus of an embodiment of the present invention.
Detailed Description
In order to more clearly illustrate the invention, the invention is further described below with reference to preferred embodiments and the accompanying drawings. Similar parts in the figures are denoted by the same reference numerals. It is to be understood by persons skilled in the art that the following detailed description is illustrative and not restrictive, and is not to be taken as limiting the scope of the invention.
It is noted that relational terms such as first and second, and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
To solve the above problems, the present invention provides a pointer data transmission method, apparatus, computer device, storage medium, and system.
As shown in fig. 2, a first embodiment of the present invention provides a pointer data transmission method, including:
s1, extracting a pointer image in the dial plate image of the pointer instrument to obtain a pointer characteristic image;
s2, compressing the pointer characteristic image to generate characteristic data;
and S3, obtaining pointer data corresponding to the dial image based on the characteristic data.
According to the method, effective image content in the dial image can be extracted, useless data in the dial image are abandoned, and the pointer feature image is generated, the feature data quantity in the pointer feature image is the minimum transmission quantity of the pointer feature representing the dial image, so that the correct pointer data in the dial image can still be obtained according to the extracted and compressed feature data, and the data transmission method can reduce the data quantity of the dial image needing to be sent and reduce transmission power consumption.
The data transmission method according to the embodiment of the present invention will be described in an embodiment:
and S1, extracting the pointer image in the dial plate image of the pointer instrument to obtain a pointer characteristic image.
The dial of the pointer instrument adopted in this embodiment is shown in fig. 1, and the dial image during data transmission is shown in fig. 3, in an alternative embodiment, the content displayed by the dial image includes a dial 51 of the pointer instrument, dial characters 52 located in the dial, and pointers 53 located in the dial, where the dial is circular. In this embodiment, if the length and width of the dial image are W, which are represented by the square pictures shown in fig. 3, the total data amount W × W bytes of the complete dial image is obtained.
It should be noted that, in the present embodiment, the dial of the barometer is taken as an example, but in practical application, the pointer instrument is not limited to be the barometer, and as long as the function of displaying data by the pointer indication of the pointer instrument can be realized, the application range of the pointer instrument of the present embodiment is all within the scope of the application of the pointer instrument of the present embodiment, for example, instruments with pointer instrument indication functions such as the barometer, the voltmeter, and the timer.
In an alternative embodiment, as shown in fig. 4, the step S1 "extracting the pointer image in the dial plate image of the pointer instrument to obtain the pointer feature image" further includes:
and S11, extracting the dial plate image with a preset extraction radius to generate an image to be extracted including a part of the pointer.
In this step, the image to be extracted includes a pointer that is located outside the rotation center of the pointer and that points to one side of the dial characters. As shown in fig. 3, for a complete dial image, the most important information displayed by the pointer is the dial text pointed by the pointer, therefore, the embodiment extracts the dial image, so that the feature data of the pointer feature image generated after compression can discard useless data, such as image content except the pointer and the text pointed by the pointer, and the useless data can be discarded, so that the data transmission amount can be greatly compressed.
In one specific example, as shown in fig. 5a, the image to be extracted from which useless data is discarded of the present embodiment includes a pointer outside the rotation center of the pointer and pointing to one side of the dial characters. In the example, the pointer at the rotation center and the thinner end and the character pointed by the pointer in the dial image are reserved, and the related data of the dial contour, the dial character not pointed by the pointer, and the pointer at the thicker end between the rotation center and the dial character in the image to be extracted can be discarded, so that the data transmission amount is further greatly reduced.
In an optional embodiment, the preset extraction radius includes a first preset extraction radius and a second preset extraction radius, and the second preset extraction radius is smaller than the first preset extraction radius; and the pointer pointing to the dial characters in the image to be extracted is positioned between a first extraction area formed by the first preset extraction radius and a second extraction area formed by the second preset extraction radius.
As shown in fig. 5b, the length of the first preset extraction radius is the length from the rotation center to the dial text, a first extraction area 521 is formed around the rotation center by the length, a second extraction area RR is formed around the rotation center by a second preset extraction radius smaller than the first preset extraction radius, and a pointer pointing to the dial text in the image to be extracted is located between the second extraction area RR and the first extraction area 521.
In this embodiment, on one hand, the dial characters pointed by the pointer are discarded, and on the other hand, because the length of the pointer is long, data included in part of the pointer can still be discarded, so that in this embodiment, redundant pointers are discarded through the first extraction area and the second extraction area, a part of pointer feature images capable of expressing pointer data is retained, and the purpose of compressing required data transmission amount is further achieved.
In an alternative embodiment, as shown in fig. 5c, the length of the second preset extraction radius is the length of the pointer from the end pointing to the dial text to the rotation center.
As shown in fig. 5c, in consideration of pointer data such as the character of the dial to which the pointer points, it can be derived from the angle of the pointer with respect to the rotation center and the functional characteristics of the pointer instrument, for example, in comparison with the barometer of the present embodiment, as shown in fig. 5c, the pointer points to 0.3MPa, and the line connecting the tip of the pointer and the rotation center makes an angle of 180 ° with respect to the dotted line, and rotates counterclockwise, so that even if the data to which the pointer points is discarded, the offset angle of the pointer and the pointing direction of the pointer can be determined according to the relative positional relationship between the pointer and the rotation center, thereby achieving the purpose of determining the pointer data in the dial image.
As shown in fig. 5c, the image to be extracted obtained after the extraction with the preset extraction radius can be represented as a circular ring, a light gray portion in fig. 5c, in this embodiment, the second preset extraction radius is set as the distance from the rotation center to the end point of the thicker end of the pointer, and the distance is used as the preset extraction radius r, so as to form a circular second extraction region RR around the rotation center. The first preset extraction radius is set as the distance between the rotation center and the boundary of the dial text 52 on the side close to the rotation center O, the first preset extraction radius forms a first extraction area 521 capable of covering the tip portion of the pointer 53, and the pointer ZZ (light gray portion in fig. 5 c) of the image to be extracted of the present embodiment is located between the first extraction area 521 and the second extraction area RR.
As shown in fig. 5c, that is, most of the pointer data in the present embodiment is discarded, for example, the entire first extraction area 521 shown in fig. 5c is discarded, the data corresponding to the rotation center is discarded, and most of the data corresponding to the pointer is discarded through the extraction area RR, so that the image to be extracted formed after being discarded in the present embodiment can achieve the purpose of obtaining the pointer data, and in addition, the data amount of the original dial image can be greatly compressed, and the data amount of the dial image to be transmitted is reduced, thereby reducing the transmission power consumption.
And S12, extracting an image including a pointer in the image to be extracted as a pointer characteristic image.
In the step, the annular image to be extracted is extracted by an image extraction method, the pointer part in the image to be extracted is reserved, and the purpose of determining pointer data can be realized according to the pointer characteristic image in the image to be extracted. As shown in fig. 6, the pointer feature image TX is a sector, and the pointing direction and the pointing angle of the whole pointer can be determined according to the position of the sector pointer relative to the rotation center, so that the pointer data displayed by the pointer feature image can be determined according to the pointing direction and the pointing angle.
And step S2, compressing the pointer characteristic image to generate characteristic data.
In an alternative embodiment, as shown in fig. 7, the step S2 includes:
and S21, scanning the pointer feature image line by line and generating the feature information of the pointer feature image corresponding to the line in each scanning.
For example, as shown in fig. 8a, the pointer feature image is placed in a preset planar coordinate system, each point of the pointer image can correspond to one another in the planar coordinate system, and in this embodiment, the feature information of each line in the pointer feature image is obtained in a progressive scanning manner.
In an optional embodiment, the feature information includes: and the characteristic image comprises the initial coordinate of the current scanning line and the characteristic width in line-by-line scanning. In a specific example, the pointer feature image is scanned line by line, and illustratively, the top black border of the pointer feature image shown in fig. 8a is used as a starting scanning line for scanning, corresponding feature information is generated when the pointer feature image is scanned, and the scanning is ended when the bottom black border of the pointer feature image is scanned, that is, the "starting" scanning line in this embodiment is the first line of the original image, and the last scanning line is the last line of the original image.
When the pointer feature image is scanned and the corresponding feature information is generated, for example, as shown in fig. 8a, the feature information generation line of the pointer in the pointer feature image starts from the point C located at the upper right in fig. 8a, and the feature information termination line of the pointer feature image ends at the line where the point D located at the lower right is located.
In another specific example, as shown in fig. 8b, the pointer feature image is arranged obliquely, and as can be seen from the pointer position in the pointer feature image, the complete pointer corresponds to the dial text whose position in the entire dial image points to the upper left. At this time, the characteristic information generation line of the pointer in the pointer characteristic image starts from the point E located at the upper left as shown in fig. 8b, and the characteristic information generation line of the pointer characteristic image ends at the line where the point D located at the lower right is located. That is, in the column direction, the number of lines between two boundary points farthest away in the pointer of the pointer feature image is the number of line scans of the pointer feature image of the present embodiment, thereby achieving complete acquisition of feature information in the pointer feature image.
Taking the pointer image scanned to the Wi-th row as an example, taking the coordinate close to the origin of the coordinate system as the start coordinate, that is, the coordinate at the point a as the start coordinate, and expressed by (xi, yi), the length of the pointer image of the Wi-th row in the X direction is the feature width, and expressed by Li, the feature information of the pointer image of the Wi-th row can be expressed by (xi, yi, Li). In another specific example, taking the pointer image in the Wj-th row as an example, taking the coordinate close to the origin of the coordinate system as a start coordinate, that is, the coordinate at the B point as a start coordinate, and expressed by (xj, yj), the length of the pointer image in the Wj-th row in the X direction is the feature width, and expressed by Lj, the feature information of the pointer image in the Wj-th row may be expressed by (xj, yj, Lj). Therefore, the feature information after line-by-line scanning can represent all data of the whole pointer feature image.
In an optional embodiment, after one progressive scan, that is, after the progressive scan from the top boundary to the bottom boundary of the pointer feature image is completed, the total number of line scans of the pointer feature image is W, where the number of line scans of the pointer feature image accounts for the total number of line scans
Figure BDA0003377321690000071
The feature information of each line includes three bytes, i.e., x, y, L, and therefore, the total data amount of the pointer feature image of the present embodiment is
Figure BDA0003377321690000072
Compared to the overall data amount W of the dial image shown in fig. 3. The present embodiment significantly reduces the data amount of the pointer feature image, and therefore enables a large compression of the data amount.
It should be noted that the pointer feature images in fig. 8a, 8b and 11 are shown in a trapezoid, and the pointer feature images in fig. 6 are shown in a sector, which are all indicated as pointers in the present embodiment, and do not affect the practical solution of the embodiment of the present invention.
And S22, all the scanned characteristic information of the pointer characteristic image is taken as characteristic data and transmitted.
The characteristic information obtained by line-by-line scanning can accurately represent the pointer characteristic image with a small data amount, and as shown in fig. 9, the characteristic information obtained by line-by-line scanning of the pointer characteristic image (left side) is transmitted in the form of a data packet (right side).
And S3, obtaining parameter information corresponding to the dial image based on the characteristic data.
It should be noted that the embodiment of the present invention does not limit whether the execution subjects of the above steps S1 and S2 and the execution subject of the step S3 are consistent, that is, the execution subjects of the steps S1 and S2 may be servers disposed at one end of the pointer meter, the execution subject of the step S3 may be consistent with the execution subjects of the steps S1 and S2, and also be servers disposed at the end of the pointer meter, and since the dial image has been extracted as the pointer feature image after the above steps and compressed into the feature data, the data amount may meet the capacity requirement of the servers at the end of the pointer meter, and the problems of slow processing speed and low processing efficiency due to the low processing capability of the servers at the end of the pointer meter are not caused.
On the other hand, the execution subject of step S3 may be different from the execution subject of steps S1 and S2, for example, the execution subject of steps S1 and S2 is a first server disposed at the pointer meter end, the execution subject of step S3 is a second server disposed at a remote end, the first server transmits the feature data to the second server, and the second server performs analysis and processing on the feature data.
In an alternative embodiment, as shown in fig. 10, the step S3 includes:
and S31, expanding the feature data into the pointer feature image.
As shown in fig. 9, the pointer feature image is scanned line by line and then transmitted in the form of a data packet, where the data packet includes feature information of each line, and in this step, the feature data on the right side is expanded in the reverse direction, that is, the feature data on the right side is restored to the pointer feature image on the left side according to the feature information, such as the start coordinate and the feature width, included in the feature data.
And S32, fitting the expanded pointer characteristic image and the characteristic data with a preset rotation center to obtain pointer position information in the pointer characteristic image.
In one specific example, the pointer position information includes a pointer direction and a pointer rotation angle. Since the pointer feature data only includes the pointer similar to the sector and does not include the dial text and the rotation center pointed by the pointer, that is, the pointer data cannot be obtained only by the pointer and the feature data in the pointer feature image, in the present embodiment, the pointer feature image and the feature data are fitted to the preset rotation center, so as to obtain the relative position relationship between the sector pointer and the preset rotation center in the pointer feature image, and the pointing direction and the rotation angle of the pointer relative to the rotation center can be determined according to the position relationship.
In a specific example, when a line connecting the center line of the sector pointer in the pointer feature image TX and the preset rotation center O 'is a straight line, it indicates that the current position of the sector pointer corresponds to the pointer position in the dial image, and the pointer position information determined in this state can accurately determine the pointer data, therefore, in this embodiment, the feature data of the center line of the sector pointer in the pointer feature image is selected, and linear fitting is performed according to the feature data and the preset rotation center, as shown in fig. 11, when the fitting result is a straight line, the positional relationship between the current preset rotation center O' and the pointer feature image TX is consistent with the result in the dial image, and the pointer position information in the pointer feature image is determined accordingly, for example, in fig. 11, the included angle formed by the center line of the sector pointer and the horizontal line of the rotation center line is 180 degrees, the sector pointer points to the left.
And S33, determining pointer data corresponding to the dial image according to the pointer position information and the parameter information of the pointer instrument.
On the basis of the foregoing steps, the position information of the pointer can be obtained, but for different dial text intervals and units corresponding to the dial text, different pointer position information cannot clearly indicate the pointer data corresponding to the dial image, and therefore, in this embodiment, according to the parameter information of the pointer instrument, for example, the type of the pointer instrument, such as barometer, voltmeter, and timer, and for example, the units of the pointer instrument, such as MPa, mA, and min, and for example, the unit scale between adjacent scales, and the distribution mode of the dial text.
The pointer instrument shown in fig. 1 is taken as an example of a barometer, and the unit is MPa and the unit scale is 0.25. The fitted pointer position is as shown in fig. 11 as an example, and at this time, the pointer direction in the original dial image can be determined to be 0.3MPa from the position information of the pointer.
Through the steps, according to the structural characteristics of the pointer instrument, the minimum image area capable of representing the pointer data is analyzed and used as the pointer characteristic image, meanwhile, according to the pixel continuous characteristics of the pointer characteristic image, the corresponding scanning method and the characteristic information expression form are designed, and on the basis that the characteristic data of the pointer characteristic image can accurately express the pointer data of the dial plate image, the data volume of actual transmission can be greatly reduced, so that the actual effect far higher than that of a general image compression algorithm is obtained, the data volume of the dial plate image needing to be sent in the prior art is reduced, the processing efficiency is effectively improved, and the processing power consumption is reduced.
In a specific example, the image data of the dial image is 224 rows × 224 columns (W ═ 224), and the total data amount is 50176. If the number of line scans of the feature extraction image generated after extraction is equal to
Figure BDA0003377321690000091
(about 24) lines, the number of feature extraction imagesThe data volume is 72 bytes, the data volume is only 0.14% of the data volume of the original dial plate image, and compared with the compression rate of 10% -2.5% in the prior art, the compression rate of the embodiment is greatly improved.
As shown in fig. 12, a second embodiment of the present invention provides a pointer data transmission apparatus for performing the above method, including:
the dial plate image extraction module is used for extracting a pointer image in the dial plate image of the pointer instrument to obtain a pointer characteristic image;
the characteristic data generation module is used for compressing the pointer characteristic image to generate characteristic data;
and the pointer data determining module is used for obtaining pointer data corresponding to the dial plate image based on the characteristic data.
It should be noted that, each module of the embodiment may be respectively disposed at different positions, and perform data transmission through a wireless network, or may be disposed in the same pointer data transmission device, which is not limited in this embodiment of the present invention.
The pointer data transmission system of the embodiment can effectively solve the problems of overlarge picture data packet data volume and overhigh processing power consumption of the data transmission device in the prior art on the basis of accurately obtaining the pointer data. Since the manufacturing method provided by the embodiments of the present application corresponds to the array substrate provided by the above embodiments, the previous embodiments are also applicable to the manufacturing method provided by the present embodiment, and detailed description is not provided in the present embodiment.
As shown in fig. 13, another embodiment of the present invention provides a pointer data transmission system, including:
a pointer instrument;
the camera device is used for acquiring the dial plate image;
a pointer data transmission device as described above or a computer apparatus as shown in fig. 14; and
and the wireless transmission module is used for transmitting various data.
In this embodiment, the camera device collects images of the pointer instrument and processes the images through the pointer data transmission device, and for example, the wireless module may transmit the images by using NB-IoT or LoRa in consideration of low power consumption operation. It should also be noted that, in the pointer data transmission apparatus of the present embodiment, each module can still be disposed at different positions, and the data of each stage is transmitted through the wireless module.
Another embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements: extracting a pointer image in a dial plate image of the pointer instrument to obtain a pointer characteristic image; compressing the pointer feature image to generate feature data; and obtaining pointer data corresponding to the dial image based on the characteristic data.
In practice, the computer-readable storage medium may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
As shown in fig. 14, another embodiment of the present invention provides a schematic structural diagram of a computer device. The computer device 12 shown in FIG. 14 is only one example and should not be taken as limiting the scope of use and functionality of embodiments of the invention.
As shown in FIG. 14, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 14, and commonly referred to as a "hard drive"). Although not shown in FIG. 14, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown in FIG. 14, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. It should be appreciated that although not shown in FIG. 14, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor unit 16 executes various functional applications and data processing, such as implementing a pointer data transmission method provided by an embodiment of the present invention, by executing programs stored in the system memory 28.
It should be understood that the above-mentioned embodiments of the present invention are only examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention, and it will be obvious to those skilled in the art that other variations or modifications may be made on the basis of the above description, and all embodiments may not be exhaustive, and all obvious variations or modifications may be included within the scope of the present invention.

Claims (11)

1. A method for pointer data transmission, comprising:
extracting a pointer image in a dial plate image of the pointer instrument to obtain a pointer characteristic image;
compressing the pointer feature image to generate feature data;
and obtaining pointer data corresponding to the dial image based on the characteristic data.
2. The method of claim 1, wherein the dial image comprises a dial of the pointer instrument, dial text located within the dial, and pointers located within the dial, wherein the dial is circular;
the extracting the pointer image in the dial plate image of the pointer instrument to obtain the pointer characteristic image further comprises:
extracting the dial plate image by a preset extraction radius to generate an image to be extracted comprising a part of pointer, wherein the image to be extracted comprises the pointer which is positioned outside the rotation center of the pointer and points to one side of the dial plate characters;
and extracting an image including a pointer in the image to be extracted as a pointer feature image.
3. The method of claim 2,
the preset extraction radius comprises a first preset extraction radius and a second preset extraction radius,
the second preset extraction radius is smaller than the first preset extraction radius;
and the pointer pointing to the dial characters in the image to be extracted is positioned between a first extraction area formed by the first preset extraction radius and a second extraction area formed by the second preset extraction radius.
4. The method of claim 3, wherein compressing the pointer feature image to generate feature data comprises:
scanning the pointer characteristic image line by line and generating characteristic information of the pointer characteristic image corresponding to a line where the pointer characteristic image is located during each scanning;
and taking all the scanned characteristic information of the pointer characteristic image as characteristic data and transmitting the characteristic data.
5. The method of claim 4, wherein the feature information comprises: and the starting coordinates of the pointer feature image on the current scanning line and the feature width in the progressive scanning.
6. The method of claim 4,
the length of the first preset extraction radius is the length from the dial character close to the rotation center;
the length of the second preset extraction radius is the length from one end of the pointer far away from the dial text to the rotation center.
7. The method of claim 4, wherein the obtaining parameter information corresponding to the dial image based on the feature data comprises:
expanding the feature data into the pointer feature image;
fitting according to the expanded pointer characteristic image and the characteristic data and a preset rotation center to obtain pointer position information in the pointer characteristic image;
and determining pointer data corresponding to the dial image according to the pointer position information and the parameter information of the pointer instrument.
8. A pointer data transmission apparatus for performing the method of claims 1 to 7, comprising:
the dial plate image extraction module is used for extracting a pointer image in the dial plate image of the pointer instrument to obtain a pointer characteristic image;
the characteristic data generation module is used for compressing the pointer characteristic image to generate characteristic data;
and the pointer data determining module is used for obtaining pointer data corresponding to the dial plate image based on the characteristic data.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
11. A pointer data transmission system, comprising:
a pointer instrument;
the camera device is used for acquiring the dial plate image;
pointer data transmission apparatus as claimed in claim 8 or computer apparatus as claimed in claim 9; and
and the wireless transmission module is used for transmitting various data.
CN202111423310.0A 2021-11-26 2021-11-26 Pointer data transmission method, device, computer equipment, storage medium and system Pending CN114092715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111423310.0A CN114092715A (en) 2021-11-26 2021-11-26 Pointer data transmission method, device, computer equipment, storage medium and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111423310.0A CN114092715A (en) 2021-11-26 2021-11-26 Pointer data transmission method, device, computer equipment, storage medium and system

Publications (1)

Publication Number Publication Date
CN114092715A true CN114092715A (en) 2022-02-25

Family

ID=80305033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111423310.0A Pending CN114092715A (en) 2021-11-26 2021-11-26 Pointer data transmission method, device, computer equipment, storage medium and system

Country Status (1)

Country Link
CN (1) CN114092715A (en)

Similar Documents

Publication Publication Date Title
CN111882634B (en) Image rendering method, device, equipment and storage medium
CN107204023B (en) Method and apparatus for avoiding distortion of graphics drawn in canvas
CN111414879B (en) Face shielding degree identification method and device, electronic equipment and readable storage medium
CN109753968A (en) Generation method, device, equipment and the medium of character recognition model
CN110288520B (en) Image beautifying method and device and electronic equipment
CN111832449A (en) Engineering drawing display method and related device
US20230334880A1 (en) Hot word extraction method and apparatus, electronic device, and medium
US11127126B2 (en) Image processing method, image processing device, image processing system and medium
CN111915705A (en) Picture visual editing method, device, equipment and medium
CN108492349B (en) Processing method, device and equipment for writing strokes and storage medium
CN114092715A (en) Pointer data transmission method, device, computer equipment, storage medium and system
CN108536686B (en) Picture translation method, device, terminal and storage medium
CN111815748A (en) Animation processing method and device, storage medium and electronic equipment
CN109801300B (en) Method, device and equipment for extracting coordinates of checkerboard corner points and computer-readable storage medium
CN115729887A (en) File analysis method and device and computer readable medium
EP4102466A1 (en) Collision detection method and apparatus for objects, and device and storage medium
CN111696154B (en) Coordinate positioning method, device, equipment and storage medium
CN112950726A (en) Camera orientation calibration method and related product
CN108228030B (en) Album display method, apparatus, storage medium and electronic device
CN111124862A (en) Intelligent equipment performance testing method and device and intelligent equipment
EP4350605A1 (en) Image processing method and apparatus, device, and medium
CN112465692A (en) Image processing method, device, equipment and storage medium
CN110909098A (en) Cloud geographic information data analysis method and system
CN110418184A (en) A kind of image compensation method and processing terminal based on recorded video
US11676358B2 (en) Method and apparatus for digitizing paper data, electronic device and storage medium

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