A data carrier, a method for screening effective data carriers and a system
By setting check areas and mark points in the data carrier, and using the recognition model to screen effective data carriers, the problem of the receiver being difficult to distinguish and eliminate incomplete or duplicate data carriers is solved, significantly improving the efficiency and accuracy of data transmission.
Patent Information
- Application Number
- CN202110859468.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-07-28
AI Technical Summary
During the transmission of plain text data through QR code images, it is difficult for the receiver to distinguish and eliminate incomplete or repeated data carrier images, resulting in low parsing and decoding efficiency.
Design a data carrier that contains two verification areas. Each verification area has landmark points. Through the training model, the coordinates of the verification area and the grayscale of the landmark points are identified, the valid data carrier is screened, invalid data is eliminated, and the number of landmark points is determined. Whether they are the same or a natural reincarnation number, mark the missing data.
It improves the decoding efficiency and accuracy of data transmission, and improves the data transmission rate and success rate of physically isolated QR code one-way transmission equipment.
Smart Images

Figure CN113570019B
Abstract
Description
Technical Field
[0001] The present invention relates to a receiving method for encrypted data transmission, and in particular to a storage carrier for encrypted data and a method and system for screening effective data carriers. Background Art
[0002] When confidential transmission is involved, sometimes the data plaintext is converted into a QR code image, i.e., a data carrier, for transmission. After receiving, the data carrier image is parsed and restored to the data plaintext, thereby realizing one-way data transmission between the public network and the confidential network, and between the low-density network and the high-density network. The sender displays the generated multiple data carrier images one by one on the LCD or LED screen at a certain frequency. Since the receiver cannot know whether the data carrier image on the sender's screen has been displayed, it can only take pictures of the data carrier image on the screen at a higher frequency and transmit it to the parsing module to restore the data plaintext.
[0003] However, in this process, many of the data carrier images taken by the receiver are incomplete or unclear invalid carrier images, which need to be eliminated, and repeated carrier images may be taken, which also need to be distinguished and eliminated to improve the parsing efficiency and decoding efficiency. Summary of the invention
[0004] In order to solve the above-mentioned problem of waste of human resources and storage resources, the present application provides a method and system for configuring and generating a chain of evidence.
[0005] A data carrier includes image information and a verification area. There are two verification areas, namely a first verification area and a second verification area. Each of the verification areas contains marking points. The number of marking points in the first verification area and the second verification area in the same data carrier is the same, and the number of marking points in the first verification area or the second verification area in adjacent data carriers is different, and the number is a natural cycle number.
[0006] Furthermore, the image information includes a QR code. The image information also includes other graphics that can store data.
[0007] A method for screening valid data carriers, for screening the above-mentioned data carriers, comprises the following steps:
[0008] Training the data carrier to obtain a verification area coordinate recognition model, a marker point grayscale recognition model, and a marker point grayscale range;
[0009] Acquire a data carrier to be parsed, parse the data carrier to be parsed according to the verification area coordinate recognition model and the marker point grayscale recognition model, and obtain the first verification area coordinates, the second verification area coordinates and the marker point grayscale in the data carrier to be parsed;
[0010] According to the grayscale of the marker point and the grayscale range, the number of valid marker points is obtained, and the number of valid marker points in the first verification area is compared with the number of valid marker points in the second verification area, and invalid data carriers are analyzed and eliminated to obtain a first valid set.
[0011] Furthermore, a screening method for the second effective set is also included, specifically including:
[0012] Determine whether the number of marking points in the first verification area or the second verification area of the data carrier in the first valid set is the same as the number of marking points in the first verification area or the second verification area of the previous data carrier. If they are the same, eliminate the data carrier to obtain the second valid set.
[0013] Furthermore, a method for marking a lost data carrier is also included, specifically comprising:
[0014] Determine whether the number of marking points in the first verification area or the second verification area of the data carrier and the number of marking points in the first verification area or the second verification area of the previous data carrier are natural cycle numbers. If not, mark the data carrier as lost.
[0015] A system for screening valid data carriers, comprising:
[0016] A learning unit is used to train the data carrier to obtain a verification area coordinate recognition model, a marker point grayscale recognition model, and a marker point grayscale range;
[0017] A first parsing unit is used to obtain a data carrier to be parsed, parse the data carrier to be parsed according to the verification area coordinate recognition model and the marker point grayscale recognition model, obtain the first verification area coordinates, the second verification area coordinates and the marker point grayscale in the data carrier to be parsed; obtain the number of valid marker points according to the marker point grayscale and the grayscale range, compare the number of valid marker points in the first verification area and the second verification area, and parse out invalid data carriers;
[0018] Eliminate the units and invalid data carriers parsed out to obtain a valid set.
[0019] Furthermore, it also includes:
[0020] The second parsing unit is used to determine whether the number of marking points in the first verification area or the second verification area of the data carrier is the same as the number of marking points in the first verification area or the second verification area of the previous data carrier.
[0021] Furthermore, it also includes:
[0022] The marking unit is used to determine whether the number of marking points in the first verification area or the second verification area of the data carrier is adjacent to the number of marking points in the first verification area or the second verification area of the previous data carrier. If not, the data carrier is marked as lost.
[0023] A data carrier sending end is used to generate continuous data carriers.
[0024] A computer storage medium stores a computer program, which implements the above method for screening valid data carriers when executed by a processor.
[0025] The method provided by the present invention has the following benefits:
[0026] An image of a data carrier including a verification area is set up. By quickly identifying and measuring the mark points in the verification area, the valid data carrier obtained in the high-frequency shooting can be quickly verified, which can avoid spending a lot of time on decoding invalid data carriers, greatly improving the overall decoding efficiency and accuracy, and improving the data transmission rate and success rate of physically isolated two-dimensional code one-way transmission devices under the same hardware conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 It is a complete and effective schematic diagram of the data carrier;
[0029] Figure 2 is an invalid data carrier schematic;
[0030] Figure 3 is an invalid data carrier schematic;
[0031] Figure 4 It is a schematic diagram of a valid data carrier that has been successfully refreshed;
[0032] Figure 5 It is a flowchart of a preferred solution for screening effective data carriers. DETAILED DESCRIPTION
[0033] In order to make the purpose, features, and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the embodiments described below are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0034] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments.
[0035] Example 1
[0036] This embodiment provides a data carrier, such as Figure 1 As shown, it includes image information and verification areas. The dotted boxes in the figure are verification areas, which are the first verification area and the second verification area respectively. Each verification area contains marking points, and the white points in the dotted boxes in the figure are marking points.
[0037] The image carrier in this embodiment is a QR code.
[0038] Because the LCD or LED screen refreshes the screen line by line and scans from left to right, the first verification area and the second verification area are set at the upper left corner and the lower right corner of the QR code in this embodiment. That is to say, the upper left corner starts to change first, the clarity of the image changes successively, and finally the lower right corner changes until the image is completely refreshed successfully.
[0039] The number of marking points in the first verification area and the second verification area of the same data carrier is the same. Figure 1 In the example, the number of marker points in the two check areas is 1. The number of marker points in the first check area or the second check area in adjacent data carriers is different, and the number is the natural cycle number. Adjacent data carriers mean data carriers generated one after the other.
[0040] In this embodiment, the number of marking points in each verification area is 1, 2, and 3, and 3 data carriers constitute a round. When 4 data carriers are reached, the number of marking points returns to 1 and a new round is started.
[0041] The natural cycle number is a normal arrangement and a cycle of this arrangement. In this embodiment, the upper limit of the marking points is 3, so the sequence is 1→2→3→1→2→3→1.
[0042] Example 2
[0043] This embodiment provides a method for screening valid data carriers based on the data carriers in the embodiment, including the following steps:
[0044] The data carrier is trained to obtain the verification area coordinate recognition model, the marker grayscale recognition model and the marker grayscale range. The trained data carrier is an effective and complete data carrier, which can be obtained by reducing the generation frequency of the sending end and the shooting frequency of the receiving end.
[0045] The verification area coordinate recognition model is used to identify the location of the verification area and the location of the marking point.
[0046] The landmark point grayscale recognition model is used to identify the grayscale value of the representative point and obtain the subsequent grayscale range.
[0047] The grayscale range indicates that the data carrier images with marker points within this grayscale range are valid and complete and can be decoded.
[0048] The data carrier to be analyzed is obtained, and the data carrier to be analyzed is analyzed according to the verification area coordinate recognition model and the marker point grayscale recognition model to obtain the first verification area coordinates, the second verification area coordinates and the marker point grayscale in the data carrier to be analyzed.
[0049] According to the grayscale of the marker point and the grayscale range, the number of valid marker points is obtained. When the grayscale of the marker point is not within the grayscale range, it indicates that it is not a valid marker point. The number of valid marker points in the first verification area is compared with that in the second verification area. When the valid marker points in the first verification area and the second verification area are different, it indicates that the data carrier is an invalid data carrier. The invalid data carrier is parsed and removed to obtain the first valid set.
[0050] like Figure 2 As shown in the figure, there is 1 valid mark point in the first check area, and 3 valid mark points in the second mark area, that is, the upper half of the data carrier has been transferred from the third picture of 3 mark points to the fourth picture of 1 mark point, while the lower half is still in the third picture of 3 mark points, or is still in the process of conversion, which will result in an unclear state as shown in the figure. Therefore, Figure 2 The data carrier is an invalid data carrier.
[0051] like Figure 3 As shown in the figure, both the first and second verification areas have 3 markers, but the grayscale value of the first marker in the second verification area is too large and does not conform to the grayscale range. In this case, it means that the lower half has not been completely converted and the QR code is still in the process of refreshing. In other words, the second verification area has 2 valid markers, and the number of valid markers in the first and second verification areas is different. Figure 3 The data carrier image shown is an invalid data carrier.
[0052] like Figure 4As shown, the marking points in the first verification area and the second verification area are all valid marking points that meet the grayscale range, and the number of valid marking points in the two verification areas is the same. Figure 4 The data carrier image shown is a valid data carrier that has been successfully refreshed.
[0053] Example 3
[0054] Based on Example 2, this example provides a more complete method for screening valid data carriers, such as Figure 5 As shown, after parsing the data carrier to be parsed and determining whether the number of valid marking points in the first check area and the second check area in the data carrier is the same, invalid data carriers are eliminated to obtain a first valid set.
[0055] Then, this embodiment also includes a screening method for obtaining a second valid set and a method for marking a data carrier as lost, which are specifically:
[0056] Determine whether the number of marking points in the first verification area or the second verification area of all valid data carriers in the first valid set is the same as the number of marking points in the first verification area or the second verification area of the previous data carrier. If they are the same, it means that the data carrier is repeated with the previous data carrier. The data carrier is eliminated to obtain the second valid set.
[0057] In the second valid set, the loss event is marked. It is determined whether the number of mark points in the first check area or the second check area of the data carrier is the same as the number of mark points in the first check area or the second check area of the previous data carrier. If not, the data carrier is marked as lost. The number of the lost data carrier is recorded to facilitate the search for the lost data carrier.
[0058] The natural cycle number is a normal arrangement and a cycle of this arrangement. In this embodiment, the upper limit of the mark points is 3, so this number sequence is 1→2→3→1→2→3→1. When a data carrier with 1 valid mark point is followed by a data carrier with 3 valid mark points, or a data carrier with 3 valid mark points is followed by a data carrier with 2 valid mark points, it means that a data carrier with a valid mark point of 2 is lost, or a data carrier with a valid mark point of 1 is lost. Then the loss event is marked.
[0059] Finally, the valid data carriers in the second valid set are decoded to obtain the data plaintext.
[0060] Example 4
[0061] This embodiment provides a system for screening valid data carriers, which specifically includes:
[0062] The learning unit trains the data carrier to obtain the verification area coordinate recognition model, the marker point grayscale recognition model and the marker point grayscale range.
[0063] The first parsing unit is used to obtain the data carrier to be parsed, parse the data carrier to be parsed according to the verification area coordinate recognition model and the marker point grayscale recognition model, obtain the first verification area coordinates, the second verification area coordinates and the marker point grayscale in the data carrier to be parsed; according to the marker point grayscale and the grayscale range, the number of valid marker points is obtained, and the number of valid marker points in the first verification area and the second verification area is compared to parse out the invalid data carrier. The parsing process is the same as the method in the above embodiment 2.
[0064] The second parsing unit is used to determine whether the number of marking points in the first verification area or the second verification area of the data carrier is the same as the number of marking points in the first verification area or the second verification area of the previous data carrier.
[0065] Eliminate the units and invalid data carriers parsed out to obtain a valid set.
[0066] The marking unit is used to determine whether the number of marking points in the first check area or the second check area of the current data carrier is adjacent to the number of marking points in the first check area or the second check area of the previous data carrier. If not, the data carrier is marked as lost. The parsing process and the marking process are the same as the method in the above embodiment 3.
[0067] Example 5
[0068] This embodiment provides a data carrier transmitting end, which is used to generate continuous data carriers as in Embodiment 1.
[0069] Example 6
[0070] This embodiment provides a computer storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for screening valid data carriers as in Embodiments 2 and 3 is implemented.
[0071] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0072] The units may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0073] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0074] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part, and / or installed from a removable medium. When the computer program is executed by the central processing unit (CPU), the above-mentioned functions defined in the method of the present application are executed. It should be noted that the above-mentioned computer-readable medium of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of an electrical, magnetic, optical, electromagnetic, infrared segment, or semiconductor, or any combination of the above.
[0075] More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more conductor segments, 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), 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 foregoing.
[0076] In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless segments, wire segments, optical cables, RF, etc., or any suitable combination of the above.
[0077] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
Claims
1. A method for screening valid data carriers, characterized in that: include: Training a data carrier to obtain a verification area coordinate recognition model, a marker point grayscale recognition model, and a marker point grayscale range, wherein the data carrier includes image information and a verification area, and there are two verification areas, namely a first verification area and a second verification area, each of which includes a marker point; the number of marker points in the first verification area and the second verification area in the same data carrier is the same, and the number of marker points in the first verification area or the second verification area in adjacent data carriers is different, and the number is a natural cycle number, and the image information includes a QR code; Acquire a data carrier to be parsed, parse the data carrier to be parsed according to the verification area coordinate recognition model and the marker point grayscale recognition model, and obtain the first verification area coordinates, the second verification area coordinates and the marker point grayscale in the data carrier to be parsed; According to the grayscale of the marker point and the grayscale range, the number of valid marker points is obtained, and the number of valid marker points in the first verification area is compared with the number of valid marker points in the second verification area, and invalid data carriers are analyzed and eliminated to obtain a first valid set.
2. The method for screening valid data carriers according to claim 1, further comprising a method for screening a second valid set, specifically comprising: Determine whether the number of marking points in the first verification area or the second verification area of the data carrier in the first valid set is the same as the number of marking points in the first verification area or the second verification area of the previous data carrier. If they are the same, eliminate the data carrier to obtain the second valid set.
3. The method for screening valid data carriers according to claim 1, further comprising a method for marking lost data carriers, specifically comprising: Determine whether the number of marking points in the first verification area or the second verification area of the data carrier and the number of marking points in the first verification area or the second verification area of the previous data carrier are natural cycle numbers. If not, mark the data carrier as lost.
4. A system for screening valid data carriers, characterized in that: include: A learning unit is provided for training the data carrier to obtain a verification area coordinate recognition model, a marker point grayscale recognition model, and a marker point grayscale range, wherein the data carrier includes image information and a verification area, and the verification areas are two, namely, a first verification area and a second verification area, each of which includes marker points; the number of marker points in the first verification area and the second verification area in the same data carrier is the same, and the number of marker points in the first verification area or the second verification area in adjacent data carriers is different, and the number is a natural cycle number, and the image information includes a two-dimensional code; A first parsing unit is used to obtain a data carrier to be parsed, parse the data carrier to be parsed according to the verification area coordinate recognition model and the marker point grayscale recognition model, obtain the first verification area coordinates, the second verification area coordinates and the marker point grayscale in the data carrier to be parsed; obtain the number of valid marker points according to the marker point grayscale and the grayscale range, compare the number of valid marker points in the first verification area and the second verification area, and parse out invalid data carriers; Eliminate the units and invalid data carriers parsed out to obtain a valid set.
5. The system for screening valid data carriers according to claim 4, further comprising: The second parsing unit is used to determine whether the number of marking points in the first verification area or the second verification area of the data carrier is the same as the number of marking points in the first verification area or the second verification area of the previous data carrier.
6. The system for screening valid data carriers according to claim 4, further comprising: The marking unit is used to determine whether the number of marking points in the first verification area or the second verification area of the data carrier is adjacent to the number of marking points in the first verification area or the second verification area of the previous data carrier. If not, the data carrier is marked as lost.
7. A data carrier transmitting end, characterized in that: For producing a continuous data carrier as claimed in any one of claims 1 to 3.
8. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
