Pointer data transmission method, device, computer equipment, storage medium and system
By extracting and compressing the pointer feature image in the dial image of the pointer instrument, the high power consumption problem caused by excessive data volume is solved, and the effect of reducing data volume and power consumption is achieved.
Patent Information
- Application Number
- CN202111423310.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-26
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2041-11-26
AI Technical Summary
In the transmission of existing pointer instrument dial image data, due to the excessive amount of data, the transmission power consumption and low efficiency are problems.
By extracting the pointer feature image in the pointer instrument dial image and compressing it to generate feature data, discarding useless data to reduce the transmission amount.
It effectively reduces the amount of data in the dial image, reduces transmission power consumption, and ensures accurate transmission of pointer data.
Smart Images

Figure CN114092715B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of pointer instrument recognition, and particularly to a pointer data transmission method, apparatus, computer device, storage medium, and system. Background Art
[0002] As shown in the existing pointer instrument dial Figure 1 When transmitting the dial image through the Internet of Things terminal, it usually faces the continuous impacts caused by splitting data packets for transmission due to the excessive size of the dial image data, such as the problems of excessive data transmission volume and extremely high transmission power consumption. Summary of the Invention
[0003] To solve at least one of the above problems, the first embodiment of the present invention provides a data transmission method, including:
[0004] Extracting the pointer image in the dial image of the pointer instrument to obtain a pointer feature image;
[0005] Compressing the pointer feature image to generate feature data;
[0006] Based on the feature data, obtaining the pointer data corresponding to the dial image. Further, the dial image includes the dial of the pointer instrument, the dial text located within the dial, and the pointer located within the dial, wherein the dial is circular;
[0007] The extracting the pointer image in the dial image of the pointer instrument to obtain a pointer feature image further includes:
[0008] Extracting the dial image with a preset extraction radius to generate an image to be extracted including a part of the pointer, wherein the image to be extracted includes the pointer located outside the rotation center of the pointer and on the side pointing to the dial text;
[0009] Extracting the image including the pointer in the image to be extracted as the pointer feature image.
[0010] Further, the preset extraction radius includes a first preset extraction radius and a second preset extraction radius,
[0011] The second preset extraction radius is smaller than the first preset extraction radius;
[0012] The pointer pointing to the dial text in the image to be extracted is located between the first extraction area formed by the first preset extraction radius and the second extraction area formed by the second preset extraction radius.
[0013] Further, the compressing the pointer feature image to generate feature data includes:
[0014] Scan the pointer feature image line by line and generate the feature information corresponding to the line where the pointer feature image is located during each scan;
[0015] Use all the feature information after scanning the pointer feature image as feature data and transmit it.
[0016] Further, the feature information includes: the starting coordinate of the line where the feature image is located during each scan and the feature width.
[0017] Further, the length of the first preset extraction radius is the length of the dial text close to the rotation center from the rotation center; the length of the second preset extraction radius is the same as the length of the end of the pointer far from the dial text it points to from the rotation center.
[0018] Further, obtaining the parameter information corresponding to the dial image based on the feature data includes:
[0019] Expand the feature data into the pointer feature image;
[0020] Fit the expanded pointer feature image and the feature data with a preset rotation center to obtain the pointer position information in the pointer feature image;
[0021] Determine the pointer data corresponding to the dial image according to the pointer position information and the parameter information of the pointer instrument.
[0022] The second embodiment of the present invention provides a pointer data transmission device for implementing the first embodiment of the present invention, including:
[0023] A dial image extraction module, configured to extract the pointer image in the dial image of the pointer instrument to obtain a pointer feature image;
[0024] A feature data generation module, configured to compress the pointer feature image to generate feature data;
[0025] A pointer data determination module, configured to obtain the pointer data corresponding to the dial image based on the feature data.
[0026] The third embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, the method described in the first embodiment of the present invention is implemented.
[0027] The fourth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method described in the first embodiment of the present invention is implemented.
[0028] The fifth embodiment of the present invention provides a pointer data transmission system, including:
[0029] A pointer instrument;
[0030] A camera device for acquiring the dial image;
[0031] The pointer data transmission device according to the first embodiment of the present invention or the computer device according to the third embodiment of the present invention; and
[0032] A wireless transmission module for transmitting various data.
[0033] The beneficial effects of the present invention are as follows:
[0034] In view of the existing problems, the present invention proposes a pointer data transmission method. By extracting the effective image content in the dial image and discarding the useless data in the dial image, a pointer feature image is generated. The pointer feature image can represent the pointer feature of the dial image with a relatively small amount of feature data. Therefore, the pointer data in the correct dial image can still be obtained according to the extracted and compressed feature data. Moreover, this data transmission method can reduce the amount of data of the dial image to be sent and reduce the transmission power consumption. Description of the Drawings
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0036] Figure 1 Showing a structural design schematic diagram of the dial of a pointer instrument in the prior art;
[0037] Figure 2 Showing a method flow chart of a pointer data transmission method according to an embodiment of the present invention;
[0038] Figure 3 Showing a schematic diagram of a dial image of a specific example according to an embodiment of the present invention;
[0039] Figure 4 Showing a method flow chart of step S1 according to an embodiment of the present invention;
[0040] Figures 5a - 5c Showing schematic diagrams of images to be extracted according to different alternative embodiments of an embodiment of the present invention;
[0041] Figure 6 Showing a schematic diagram of the extracted pointer feature image according to an embodiment of the present invention;
[0042] Figure 7 The method flowchart of step S2 of the embodiment of the present invention is shown;
[0043] Figures 8a - 8b The schematic diagram showing the pointer feature images in different states of the embodiment of the present invention located in the plane coordinate system;
[0044] Figure 9 The schematic flowchart showing the conversion of the pointer feature image of the embodiment of the present invention into feature data;
[0045] Figure 10 The method flowchart of step S3 of the embodiment of the present invention is shown;
[0046] Figure 11 The schematic diagram showing the positional relationship after fitting the pointer feature image of the embodiment of the present invention with the preset rotation center;
[0047] Figure 12 The structural framework diagram of the pointer data transmission device according to an embodiment of the present invention is shown;
[0048] Figure 13 The structural framework diagram of the pointer data transmission system according to an embodiment of the present invention is shown;
[0049] Figure 14 The structural framework diagram of a computer device according to an embodiment of the present invention is shown. Detailed implementation manners
[0050] To describe the present invention more clearly, the present invention will be further described below in conjunction with preferred embodiments and the accompanying drawings. Similar components in the drawings are denoted by the same reference numerals. Those skilled in the art should understand that the content specifically described below is illustrative rather than restrictive, and should not be used to limit the protection scope of the present invention.
[0051] It should be noted that relational terms such as first and second in this article are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including an..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.
[0052] To solve the above problems, the present invention provides a pointer data transmission method, apparatus, computer device, storage medium, and system.
[0053] As Figure 2 shown, a first embodiment of the present invention provides a pointer data transmission method, which includes:
[0054] S1. Extract the pointer image in the dial image of the pointer instrument to obtain a pointer feature image;
[0055] S2. Compress the pointer feature image to generate feature data;
[0056] S3. Obtain the pointer data corresponding to the dial image based on the feature data.
[0057] Through the method of this embodiment, the effective image content in the dial image can be extracted, and the useless data in the dial image is discarded to generate a pointer feature image. The amount of feature data in the pointer feature image is the minimum transmission amount representing the pointer feature of the dial image. Therefore, the pointer data in the correct dial image can still be obtained according to the extracted and compressed feature data. Moreover, this data transmission method can reduce the amount of data of the dial image to be sent and reduce the transmission power consumption.
[0058] Now, an embodiment is used to illustrate the data transmission method of the embodiment of the present invention:
[0059] S1. Extract the pointer image in the dial image of the pointer instrument to obtain a pointer feature image.
[0060] The plane where the dial of the pointer instrument used in this embodiment is as Figure 1 shown, and the dial image during data transmission is as Figure 3 shown. In an optional embodiment, the content shown in the dial image includes the dial 51 of the pointer instrument, the dial text 52 located inside the dial, and the pointer 53 located inside the dial, where the dial is circular. In this embodiment, if the length and width of the dial image are W, and it is a square picture as Figure 3 shown, then the total amount of data of the complete dial image is W * W bytes.
[0061] It should be noted that this embodiment takes the dial of a barometer as an example, but in practical applications, the pointer instrument is not limited to a barometer. As long as it can realize the function of data display through the pointer indication of the pointer instrument, it is within the application scope of the pointer instrument in this embodiment, such as instruments with pointer instrument indication functions such as barometers, voltmeters, and timers.
[0062] In an optional embodiment, as Figure 4As shown, step S1, "extracting the pointer image in the dial image of the pointer instrument to obtain a pointer feature image", further includes:
[0063] S11. Extracting the dial image with a preset extraction radius to generate an image to be extracted including part of the pointer.
[0064] In this step, the image to be extracted includes the pointer located outside the rotation center of the pointer and on the side pointing to the dial text. As Figure 3 shown, for the complete dial image, among which, the most important information shown by the pointer is the dial text pointed to by the pointer. Therefore, in this embodiment, by extracting the dial image, the feature data of the generated pointer feature image after compression can discard the useless data, such as the image content other than the pointer and the text pointed to by the pointer. After discarding this useless data, the data transmission volume can be greatly compressed.
[0065] In a specific example, as Figure 5a shown, the image to be extracted in this embodiment that discards the useless data includes the pointer located outside the rotation center of the pointer and on the side pointing to the dial text. In this example, the rotation center and the thinner end of the pointer in the dial image and the text pointed to by this pointer are retained, and the relevant data of the dial contour, the dial text not pointed to by the pointer, and the thicker end of the pointer located between the rotation center and the dial text in the image to be extracted can all be discarded, further greatly compressing the data transmission volume.
[0066] 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; the pointer pointing to the dial text in the image to be extracted is located between the first extraction area formed by the first preset extraction radius and the second extraction area formed by the second preset extraction radius.
[0067] As Figure 5b shown, the length of the first preset extraction radius is the length of the dial text close to the rotation center from the rotation center. With this length, a first extraction area 521 is formed around the rotation center, and a second extraction area RR is formed around the rotation center with a second preset extraction radius smaller than the first preset extraction radius. The 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.
[0068] In this embodiment, on the one hand, the dial text pointed to by the pointer is discarded. On the other hand, since the pointer is relatively long, some of the data contained in the pointer can still be discarded. Therefore, in this embodiment, the first extraction area and the second extraction area are used to discard the redundant pointers and retain the partial pointer feature images that can express the pointer data, further achieving the purpose of compressing the required data transmission volume.
[0069] In an alternative embodiment, as Figure 5c shown, the length of the preset second preset extraction radius is the length from the end of the pointer far from the dial text it points to to the rotation center.
[0070] As Figure 5c shown, considering the pointer data, such as the dial text pointed to by the pointer, it can be deduced from the angle of the pointer relative to the rotation center and the functional characteristics of the pointer instrument. For example, comparing the barometer in this embodiment, as Figure 5c shown, the pointer points to 0.3 MPa, and the angle between the line connecting the pointer tip and the rotation center and the dotted line is 180°, rotating counterclockwise. Therefore, even if the data pointed to by the pointer is discarded, according to the relative position relationship between the pointer and the rotation center, the offset angle of the pointer and the direction of the pointer can still be determined, thus achieving the purpose of determining the pointer data in the dial image.
[0071] As Figure 5c shown, the image to be extracted obtained by extraction with the preset extraction radius can be represented as an annular shape, Figure 5c the light gray part in. 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. Taking this distance as the preset extraction radius r, a circular second extraction area RR is formed around the rotation center. The first preset extraction radius is set as the distance between the boundary of the dial text 52 closer to the rotation center O and the rotation center. The first extraction area 521 formed by the first preset extraction radius can cover the tip part of the pointer 53. The pointer ZZ ( Figure 5c the light gray part in) of the image to be extracted in this embodiment is located between the first extraction area 521 and the second extraction area RR.
[0072] As Figure 5c shown, that is to say, most of the pointer data in this embodiment is discarded. For example, the entire first extraction area 521 as Figure 5c shown is discarded, and the data corresponding to the rotation center is also discarded. Moreover, most of the data corresponding to the pointer is discarded through the extraction area RR. Therefore, the image to be extracted formed after discarding in this embodiment can greatly compress the data volume of the original dial image on the basis of achieving the purpose of obtaining the pointer data, reduce the data volume of the dial image to be sent, and reduce the transmission power consumption.
[0073] S12. Extract the image including the pointer in the image to be extracted as the pointer feature image.
[0074] In this step, the circular image to be extracted is extracted by an image extraction method, and the pointer part in the image to be extracted is retained. The purpose of determining the pointer data can be achieved according to the pointer feature image in the image to be extracted. As Figure 6 shown, the pointer feature image TX is a sector. According to the position of the sector pointer relative to the rotation center, the pointing direction and pointing angle of the overall pointer can be determined. Thus, according to the pointing direction and pointing angle, the pointer data shown by the pointer feature image can be determined.
[0075] Step S2. Compress the pointer feature image to generate feature data.
[0076] In an optional embodiment, as Figure 7 shown, this step S2 includes:
[0077] S21. Scan the pointer feature image row by row and generate the feature information corresponding to the current scan row of the pointer feature image.
[0078] Exemplarily, as Figure 8a shown, place the pointer feature image in a preset plane coordinate system, and each point of the pointer image can correspond one by one in this plane coordinate system. In this embodiment, the feature information of each row in the pointer feature image is obtained by scanning row by row.
[0079] In an optional embodiment, the feature information includes: the starting coordinate and the feature width of the feature image in the current scan row during row-by-row scanning. In a specific example, the pointer feature image is scanned row by row. Exemplarily, taking Figure 8a the top black boundary of the pointer feature image shown as the starting scan row for scanning, corresponding feature information is generated when scanning to the pointer feature image, and the scanning ends when scanning to the bottom black boundary of the pointer feature image. That is, the "starting" scan row in this embodiment is the first row of the original image, and the last scan row is the last row of the original image.
[0080] When corresponding feature information is generated when scanning to the pointer feature image, exemplarily, as Figure 8a shown, the row where the feature information of the pointer in the pointer feature image is generated starts from Figure 8a point C located in the upper right of, and the row where the feature information of the pointer feature image ends is the row where point D is located in the lower right.
[0081] In another specific example, as Figure 8bAs shown, the pointer feature image is set obliquely. According to the position of the pointer in the pointer feature image, it can be known that the complete pointer corresponds to the position in the entire dial image and points to the dial text in the upper left corner. At this time, the characteristic information of the pointer in the pointer feature image generates a row starting from Figure 8b point E located in the upper left corner as shown, and the termination row of the characteristic information of the pointer feature image is the row where point D is located in the lower right corner. That is to say, in the column direction, the number of rows between the two farthest boundary points of the pointer in the pointer feature image is the row scanning quantity of the pointer feature image in this embodiment, so as to realize the complete acquisition of the characteristic information in the pointer feature image.
[0082] Taking the pointer image scanned to the Wi-th row as an example, taking the coordinate closer to the origin of the coordinate system as the starting coordinate, that is, the coordinate at point A as the starting coordinate, represented by (xi, yi), the length of the Wi-th row of the pointer image in the X direction is the characteristic width, represented by Li, then the characteristic information of the Wi-th row of the pointer image can be represented by (xi, yi, Li). In another specific example, taking the pointer image of the Wj-th row as an example, taking the coordinate closer to the origin of the coordinate system as the starting coordinate, that is, the coordinate at point B as the starting coordinate, represented by (xj, yj), the length of the Wj-th row of the pointer image in the X direction is the characteristic width, represented by Lj, then the characteristic information of the Wj-th row of the pointer image can be represented by (xj, yj, Lj). Therefore, the characteristic information after row-by-row scanning can represent all the data of the entire pointer feature image.
[0083] In an optional embodiment, after one row-by-row scanning, that is, after the row-by-row scanning from the top boundary to the bottom boundary of the pointer feature image is completed, the overall row scanning quantity of the pointer feature image is W, where the row scanning quantity of the pointer feature image accounts for The characteristic information of each row includes three bytes, namely x, y, and L. Therefore, the total data quantity of the pointer feature image in this embodiment is Compared with Figure 3 the dial image with an overall data volume of W*W as shown. The data volume of the pointer feature image in this embodiment is significantly reduced, so a large-scale compression of the data volume can be achieved.
[0084] It should be noted that Figure 8a , Figure 8b and Figure 11 the pointer feature images in are shown in a trapezoidal shape, while Figure 6 the pointer feature image in is shown in a fan shape, both representing the pointer in this embodiment and not affecting the actual solution of the embodiment of the present invention.
[0085] S22. Use all the characteristic information after scanning the pointer feature image as characteristic data and transmit it.
[0086] The feature information obtained after line-by-line scanning can accurately represent the pointer feature image with a relatively small amount of data. For example, Figure 9 As shown, the feature information obtained after line-by-line scanning of the pointer feature image (left side) is transmitted in the form of a data packet (right side).
[0087] S3. Obtain the parameter information corresponding to the dial image based on the feature data.
[0088] It should be noted that the embodiments of the present invention do not limit whether the execution entities of steps S1 and S2 are the same as the execution entity of step S3. That is to say, the execution entities of steps S1 and S2 can be a server set at one end of the pointer instrument, and the execution entity of step S3 can be the same as the execution entities of steps S1 and S2, which is also a server set at the pointer instrument end. Since the dial image has been extracted as a pointer feature image and compressed into feature data after the above steps, this data volume can meet the capacity requirements of the server at the pointer instrument end and will not cause problems such as slow processing speed and low processing efficiency due to the low processing ability of the server at the pointer instrument end.
[0089] On the other hand, the execution entity of step S3 can be different from the execution entities of steps S1 and S2. For example, the execution entities of steps S1 and S2 are the first server set at the pointer instrument end, and the execution entity of step S3 is the second server set at the remote end. The first server transmits the feature data to the second server, and the second server analyzes and processes the feature data. Since the feature data is compressed, the transmission efficiency of the first server can be improved, and at the same time, the processing efficiency of the second server is also improved.
[0090] In an alternative embodiment, as Figure 10 shown, this step S3 includes:
[0091] S31. Expand the feature data into the pointer feature image.
[0092] As Figure 9 shown, the pointer feature image is transmitted in the form of a data packet after line-by-line scanning. The data packet includes the feature information of each line. In this step, reverse expansion is performed according to the feature data, that is, according to the feature information included in the feature data, such as the starting coordinates and feature width, the feature data on the right side is restored to the pointer feature image on the left side.
[0093] S32. Fit the expanded pointer feature image and the feature data with a preset rotation center to obtain the pointer position information in the pointer feature image.
[0094] In a specific example, the pointer position information includes the pointer direction and the pointer rotation angle. Since the pointer feature data only includes the pointer in a fan-shaped part and does not include the dial text and the rotation center pointed to by the pointer, that is, only the pointer and the feature data in the pointer feature image cannot obtain the pointer data. Therefore, in this embodiment, the pointer feature image and the feature data are fitted with a preset rotation center to obtain the relative position relationship between the fan-shaped pointer in the pointer feature image and the preset rotation center. According to this position relationship, the pointing direction and the rotation angle of the pointer relative to the rotation center can be determined.
[0095] In a specific example, when the connection line between the center line of the fan-shaped pointer in the pointer feature image TX and the preset rotation center O' is a straight line, it indicates that the position of the current fan-shaped pointer corresponds to the pointer position in the dial image. In this state, the determined pointer position information can accurately determine the pointer data. Therefore, in this embodiment, the feature data of the center line of the fan-shaped pointer in the pointer feature image is selected, and linear fitting is performed according to this feature data and the preset rotation center, as Figure 11 shown. When the fitting result is a straight line, the position relationship between the current preset rotation center O' and the pointer feature image TX is consistent with the result in the dial image. At this time, the pointer position information in the pointer feature image is also determined accordingly. For example, Figure 11 in, the included angle formed by the center line of the fan-shaped pointer and the horizontal line of the rotation center line is 180°, and the fan-shaped pointer points to the left.
[0096] S33. Determine the pointer data corresponding to the dial image according to the pointer position information and the parameter information of the pointer instrument.
[0097] Based on the foregoing steps, the position information of the pointer can be obtained. However, for different dial text intervals and the units corresponding to the dial text, different pointer position information cannot clearly indicate the pointer data corresponding to the dial image. Therefore, in this embodiment, according to the parameter information of the pointer instrument, such as the type of the pointer instrument, such as barometer, voltmeter, and timer, and for another example, the unit of the pointer instrument, such as MPa, mA, and min, and for another example, the unit scale between adjacent scales, and the distribution method of the dial text.
[0098] Taking Figure 1 the pointer instrument shown as an example of a barometer, its unit is MPa, and the unit scale is 0.25. The pointer position after fitting is as Figure 11 shown. At this time, according to the position information of the pointer, it can be determined that the pointer in the original dial image points to 0.3 MPa.
[0099] After the above steps, according to the structural characteristics of the pointer-type instrument, the embodiment of the present invention analyzes the smallest image area that can represent the pointer data, and uses it as the pointer feature image. At the same time, according to the pixel continuity feature of the pointer feature image, a corresponding scanning method and feature information expression form are designed. On the basis of ensuring that the feature data of the pointer feature image can accurately represent the pointer data of the dial image, the actual amount of data transmitted can be greatly reduced, thereby obtaining an actual effect far higher than that of the general image compression algorithm, reducing the amount of data of the dial image that needs to be sent in the prior art, and effectively improving the processing efficiency and reducing the processing power consumption.
[0100] In a specific example, taking the image data of the dial image as 224 rows * 224 columns (W = 224) as an example, the total amount of data is 50176. If the number of row scans of the feature extraction image generated after extraction is (about 24) rows, then the amount of data of the feature extraction image is 72 bytes, and this amount of data is only 0.14% of the original dial image data amount. Compared with the compression rate of 10% - 2.5% in the prior art, the compression rate of this embodiment is greatly improved.
[0101] As Figure 12 shown, the second embodiment of the present invention proposes a pointer data transmission device for executing the above method, including:
[0102] A dial image extraction module, configured to extract the pointer image in the dial image of the pointer instrument to obtain a pointer feature image;
[0103] A feature data generation module, configured to compress the pointer feature image to generate feature data;
[0104] A pointer data determination module, configured to obtain the pointer data corresponding to the dial image based on the feature data.
[0105] It should be noted that each module of this embodiment can be separately set in different positions and data is transmitted through a wireless network, or can also be set in the same pointer data transmission device. The embodiment of the present invention does not limit this.
[0106] The pointer data transmission system of this embodiment can effectively improve the problems of excessive data volume of the picture data packet and excessive 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 this application corresponds to the array substrates provided by the above several embodiments, the previous implementation manners are also applicable to the manufacturing method provided by this embodiment and will not be described in detail in this embodiment.
[0107] As Figure 13 shown, another embodiment of the present invention proposes a pointer data transmission system, including:
[0108] Pointer instrument;
[0109] An imaging device for acquiring the dial image;
[0110] Such as the pointer data transmission device described above or as Figure 14 shown in the computer device; and
[0111] A wireless transmission module for transmitting various data.
[0112] In this embodiment, the imaging device collects an image of the pointer instrument and processes it through the pointer data transmission device. Exemplarily, on the premise of considering low-power operation, the wireless module can use NB-IoT or LoRa for transmission. It is also worth noting that each module in the pointer data transmission device of this embodiment can still be set at different positions, and the data at each stage is transmitted through the wireless module.
[0113] Another embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it realizes: extracting the pointer image in the dial image of the pointer instrument to obtain a pointer feature image; compressing the pointer feature image to generate feature data; and obtaining the pointer data corresponding to the dial image based on the feature data.
[0114] In practical applications, the computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the computer-readable storage medium include: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device.
[0115] A computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, carrying computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.
[0116] The program code contained on a computer-readable medium can 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.
[0117] The computer program code for performing the operations of the present invention can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can 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 can be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0118] As Figure 14 shown, a schematic structural diagram of a computer device provided by another embodiment of the present invention. Figure 14 The computer device 12 shown is merely an example and should not impose any limitation on the functions and scope of use of the embodiments of the present invention.
[0119] As Figure 14 shown, the computer device 12 is presented in the form of a general-purpose computing device. The components of the computer device 12 can include but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).
[0120] Bus 18 represents one or more of several types of bus architectures, including a memory bus or memory controller, a peripheral bus, an Accelerated Graphics Port, a processor bus, or a local bus using any of the several 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.
[0121] Computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer device 12, including both volatile and nonvolatile media, removable and non-removable media.
[0122] System memory 28 can 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 can be used for reading and writing on non-removable, nonvolatile magnetic media ( Figure 14 not shown and typically called a "hard disk drive"). Although Figure 14 not shown in the figures, a disk drive for reading and writing on removable nonvolatile disks (such as a "floppy disk"), and an optical disk drive for reading and writing on removable nonvolatile optical disks (such as a CD-ROM, DVD-ROM, or other optical media) can be provided. In these cases, each drive can be connected to bus 18 by one or more data media interfaces. Memory 28 can 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 the embodiments of the present invention.
[0123] A program / utility 40 having a set (at least one) of program modules 42 can 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 these examples or some combination thereof may include an implementation of a network environment. Program modules 42 generally carry out the functions and / or methods described in the embodiments of the present invention.
[0124] The computer device 12 can also communicate with one or more external devices 14 (such as a keyboard, a pointing device, a display 24, etc.), and can also communicate with one or more devices that enable a user to interact with the computer device 12, and / or communicate with any device that enables the computer device 12 to communicate with one or more other computing devices (such as a network card, a modem, etc.). Such communication can be carried out through the input / output (I / O) interface 22. Moreover, the computer device 12 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through the network adapter 20. As Figure 14 shown, the network adapter 20 communicates with other modules of the computer device 12 through the bus 18. It should be understood that although Figure 14 not shown in the figure, other hardware and / or software modules can be used in combination with the 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, etc.
[0125] The processor unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing a pointer data transmission method provided by an embodiment of the present invention.
[0126] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, rather than limitations on the implementation manners of the present invention. For those of ordinary skill in the art, other different forms of changes or variations can be made based on the above description. It is impossible to list all the implementation manners here. Any obvious changes or variations derived from the technical solutions of the present invention still fall within the protection scope of the present invention.
Claims
1. A pointer data transmission method, characterized in that Including: Extracting the pointer image in the dial image of the pointer instrument to obtain a pointer feature image; Compressing the pointer feature image to generate feature data; Obtaining pointer data corresponding to the dial image based on the feature data; Wherein, the compressing the pointer feature image to generate feature data includes: Scanning the pointer feature image row by row and generating feature information corresponding to each row during the scanning of the pointer feature image. Further including starting the scanning from the top boundary of the pointer feature image, generating corresponding feature information when scanning to the pointer image, and ending the scanning when scanning to the bottom boundary of the pointer feature image. The feature information includes: the starting coordinate and the feature width of the pointer feature image in the current scanning row during the row-by-row scanning; Taking all the feature information after scanning the pointer feature image as feature data and transmitting it.
2. The method according to claim 1, wherein The dial image includes the dial of the pointer instrument, the dial text located inside the dial, and the pointer located inside the dial, wherein the dial is circular; The extracting the pointer image in the dial image of the pointer instrument to obtain a pointer feature image further includes: Extracting the dial image with a preset extraction radius to generate an image to be extracted including a part of the pointer, wherein the image to be extracted includes the pointer located outside the rotation center of the pointer and on the side pointing to the dial text; Extracting the image including the pointer in the image to be extracted as the pointer feature image.
3. The method according to claim 2, wherein The preset extraction radius includes a first preset extraction radius and a second preset extraction radius, The second preset extraction radius is smaller than the first preset extraction radius; The pointer pointing to the dial text in the image to be extracted is located between the first extraction area formed by the first preset extraction radius and the second extraction area formed by the second preset extraction radius.
4. The method according to claim 1, wherein The length of the first preset extraction radius is the length from the dial text close to the rotation center to the rotation center; The length of the second preset extraction radius is the length from the end of the pointer far from the end pointing to the dial text to the rotation center.
5. The method according to claim 1, characterized in that, The obtaining the parameter information corresponding to the dial image based on the feature data includes: Expanding the feature data into the pointer feature image; Fitting the expanded pointer feature image and the feature data with a preset rotation center to obtain the pointer position information in the pointer feature image; Determining the pointer data corresponding to the dial image according to the pointer position information and the parameter information of the pointer instrument.
6. A pointer data transmission device for performing the method according to any one of claims 1 to 5, characterized in that Including: A dial image extraction module for extracting the pointer image in the dial image of the pointer instrument to obtain a pointer feature image; A feature data generation module for compressing the pointer feature image to generate feature data; A pointer data determination module for obtaining the pointer data corresponding to the dial image based on the feature data.
7. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, the method described in any one of claims 1-5 is implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, the method described in any one of claims 1-5 is implemented.
9. A pointer data transmission system, characterized in that, Comprising: Pointer instrument; An imaging device for acquiring the dial image; The pointer data transmission device according to claim 6 or the computer device according to claim 7; and A wireless transmission module for transmitting various data.
Citation Information
Patent Citations
Instrument identification method and system, electronic equipment and readable storage medium
CN112347877A