CN112288060A - Method and apparatus for identifying a tag - Google Patents
Method and apparatus for identifying a tag Download PDFInfo
- Publication number
- CN112288060A CN112288060A CN202011237844.XA CN202011237844A CN112288060A CN 112288060 A CN112288060 A CN 112288060A CN 202011237844 A CN202011237844 A CN 202011237844A CN 112288060 A CN112288060 A CN 112288060A
- Authority
- CN
- China
- Prior art keywords
- tag
- sequence
- target
- sequences
- label
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 81
- 230000004927 fusion Effects 0.000 claims abstract description 198
- 230000004044 response Effects 0.000 claims abstract description 100
- 238000012795 verification Methods 0.000 claims description 45
- 238000012545 processing Methods 0.000 claims description 24
- 230000015654 memory Effects 0.000 claims description 17
- 238000012216 screening Methods 0.000 claims description 7
- 238000004891 communication Methods 0.000 abstract description 24
- 238000010586 diagram Methods 0.000 description 10
- 238000012549 training Methods 0.000 description 9
- 238000004590 computer program Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 239000002699 waste material Substances 0.000 description 3
- 230000003993 interaction Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
- G06K17/0022—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a method and a device for identifying a label, and relates to the technical field of information identification. The method comprises the following steps: receiving a target label fusion sequence, wherein the target label fusion sequence is generated by adopting a preset number of target label sequences and sequence operation; acquiring a label sequence set containing each label sequence in a preset number of target label sequences; and for each preset number of label sequences in the label sequence set, in response to detecting that a fusion sequence generated by using the preset number of label sequences and sequence operation is the same as a target label fusion sequence, determining that the preset number of label sequences are the target label sequences. By adopting the method, the efficiency of identifying the label can be improved and communication resources can be saved.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for identifying a tag.
Background
The electronic tag is a tag for realizing non-contact identification through radio frequency signals, and is widely applied to a plurality of fields such as commercial automation, industrial automation, logistics transmission and the like. Currently, a method for identifying a plurality of electronic tags is to use a reader or other devices to identify a plurality of electronic tags one by one.
However, the method of identifying a plurality of electronic tags one by one wastes communication resources and has a problem of low identification efficiency.
Disclosure of Invention
The present disclosure provides a method, an apparatus, an electronic device, and a computer-readable storage medium for identifying a tag.
According to a first aspect of the present disclosure, there is provided a method for identifying a tag, comprising: receiving a target label fusion sequence, wherein the target label fusion sequence is generated by adopting a preset number of target label sequences and sequence operation; acquiring a label sequence set containing each label sequence in a preset number of target label sequences; and for each preset number of label sequences in the label sequence set, in response to detecting that a fusion sequence generated by using the preset number of label sequences and sequence operation is the same as a target label fusion sequence, determining the preset number of label sequences as the target label sequence.
In some embodiments, the method further comprises: and searching corresponding target information in the database by using the target label sequence, and presenting the target information.
In some embodiments, for each preset number of tag sequences in the set of tag sequences, in response to detecting that a fused sequence generated by using the preset number of tag sequences and sequence operations is the same as a target tag fused sequence, determining that the preset number of tag sequences is the target tag sequence includes: generating a global label fusion sequence by adopting all label sequences in the label sequence set and sequence operation; determining a useless tag sequence which cannot be used for generating a target tag fusion sequence in the tag sequence set according to the difference between the global tag fusion sequence and the target tag fusion sequence; and determining the residual label sequences as target label sequences in response to determining that the number of the residual label sequences is a preset number after useless label sequences are removed from the label sequence set.
In some embodiments, the tag sequence comprises a binary tag sequence, and generating a global tag fusion sequence by using all tag sequences in the tag sequence set and sequence operations, comprises: the following processing is performed for the numerical value of each bit sequence in the first preset sequence: in response to detecting that a tag sequence with a first value on the bit sequence exists in the tag sequence set, determining that the value on the bit sequence in a first preset sequence is the first value; or, in response to detecting that there is no tag sequence with the value of the first value in the tag sequence set, determining that the value of the first value in the first predetermined sequence is the second value; and determining the processed first preset sequence as a global label fusion sequence.
In some embodiments, determining, according to a difference between the global tag fusion sequence and the target tag fusion sequence, a useless tag sequence that cannot be used for generating the target tag fusion sequence in the tag sequence set includes: in response to detecting that the first bit sequence in the global tag fusion sequence is a first numerical value and the first bit sequence in the target tag fusion sequence is a second numerical value, determining the tag sequence with the first bit sequence being the first numerical value in the tag sequence set as a useless tag sequence; or, in response to detecting that the second bit sequence in the global tag fusion sequence is the second numerical value and the second bit sequence in the target tag fusion sequence is the first numerical value, determining that a false tag sequence exists in the target tag sequence; the first numerical value is used for representing that the tag sequence has response information on the corresponding bit sequence, and the second numerical value is used for representing that the tag sequence has no response information on the corresponding bit sequence.
In some embodiments, the method further comprises: and determining that false tag sequences exist in a preset number of target tag sequences in response to determining that the number of the remaining tag sequences after removing useless tag sequences in the tag sequence set is less than a preset number.
According to a second aspect of the present disclosure, there is provided a method for generating a fusion tag, applied to a reader, including: responding to the received label identification instruction, and sending a label acquisition instruction to the electronic label; receiving a plurality of target label sequences returned based on the label acquisition instruction, and generating a target label fusion sequence by adopting the plurality of target label sequences and sequence operation; and sending the target label fusion sequence to a server.
In some embodiments, the target tag sequence comprises a binary tag sequence, and generating the target tag fusion sequence using a plurality of target tag sequences and sequence operations comprises: the following processing is performed for the value of each bit sequence in the second preset sequence: in response to detecting that a tag sequence with a value on the bit sequence being a first value exists in a plurality of target tag sequences, determining that the value on the bit sequence in a second preset sequence is the first value; or, in response to detecting that a tag sequence with a second value as the value in the bit sequence exists in the plurality of target tag sequences, determining that the value in the bit sequence in a second preset sequence is the second value; and determining the second preset sequence after the processing as a target label fusion sequence.
In some embodiments, sending the tag acquisition instruction to the electronic tag includes: sending verification information indicating a verification reader to the electronic tag; receiving a label code returned by the electronic label based on the verification information; inquiring feedback information based on the tag codes, and sending the feedback information to the electronic tag; receiving a plurality of target tag sequences returned based on a tag fetch instruction, including: and receiving a plurality of target label sequences returned based on the feedback information.
According to a third aspect of the present disclosure, there is provided a method for transmitting a tag, applied to an electronic tag, including: and sending a target label sequence to the reader in response to receiving the label acquisition instruction, wherein the plurality of target label sequences are used for generating a target label fusion sequence.
In some embodiments, in response to receiving the tag retrieval instruction, sending the target tag sequence to the reader comprises: in response to receiving the verification information, sending a tag code to the reader; receiving feedback information returned by the reader based on the tag codes; and responding to the fact that the feedback information is determined to be in accordance with the verification passing condition, and sending the target label sequence to the reader.
According to a fourth aspect of the present disclosure, there is provided an apparatus for identifying a tag, applied to a server, including: the device comprises a first receiving unit, a second receiving unit and a third receiving unit, wherein the first receiving unit is configured to receive a target label fusion sequence, and the target label fusion sequence is generated by adopting a preset number of target label sequences and sequence operation; an acquisition unit configured to acquire a tag sequence set including each of a preset number of target tag sequences; the identification unit is configured to determine, for each preset number of tag sequences in the tag sequence set, the preset number of tag sequences as a target tag sequence in response to detecting that a fusion sequence generated by the preset number of tag sequences and sequence operation is the same as the target tag fusion sequence.
In some embodiments, the apparatus further comprises: and the presenting unit is configured to search the corresponding target information in the database by using the target label sequence and present the target information.
In some embodiments, the identification unit comprises: the first generation module is configured to generate a global label fusion sequence by adopting all label sequences in the label sequence set and sequence operation; the screening module is configured to determine a useless tag sequence which cannot be used for generating the target tag fusion sequence in the tag sequence set according to the difference between the global tag fusion sequence and the target tag fusion sequence; and the identification module is configured to respond to the condition that the number of the residual label sequences after the useless label sequences are removed in the label sequence set is determined to be a preset number, and determine that the residual label sequences are the target label sequences.
In some embodiments, the tag sequence comprises a binary tag sequence, the first generating module comprising: a first value determining module configured to perform the following processing for the value of each bit sequence in the first preset sequence: in response to detecting that a tag sequence with a first value on the bit sequence exists in the tag sequence set, determining that the value on the bit sequence in a first preset sequence is the first value; or, the second numerical value determining module is configured to determine that the value on the bit sequence in the first preset sequence is the second numerical value in response to detecting that no tag sequence with the value on the bit sequence being the first numerical value exists in the tag sequence set; and the global label fusion sequence determining module is configured to determine the processed first preset sequence as a global label fusion sequence.
In some embodiments, a screening module, comprising: a useless tag determination module configured to determine, as a useless tag sequence, a tag sequence of the set of tag sequences of which the first bit sequence is the first numerical value in response to detecting that the first bit sequence of the global tag fusion sequence is the first numerical value and the first bit sequence of the target tag fusion sequence is the second numerical value; or, a first false tag determination module configured to determine that a false tag sequence exists in the target tag sequence in response to detecting that the second bit sequence in the global tag fused sequence is the second value and the second bit sequence in the target tag fused sequence is the first value; the first numerical value is used for representing that the tag sequence has response information on the corresponding bit sequence, and the second numerical value is used for representing that the tag sequence has no response information on the corresponding bit sequence.
In some embodiments, the apparatus further comprises: a second false tag determination module configured to determine that a false tag sequence exists in a preset number of target tag sequences in response to determining that the number of remaining tag sequences from which useless tag sequences are removed in the tag sequence set is less than a preset number.
According to a fifth aspect of the present disclosure, there is provided an apparatus for generating a fusion tag, applied to a reader, including: the tag acquisition instruction sending module is configured to respond to the received tag identification instruction and send a tag acquisition instruction to the electronic tag; the second generation module is configured to receive a plurality of target label sequences returned based on the label acquisition instruction and generate a target label fusion sequence by adopting the plurality of target label sequences and sequence operation; and the target label fused sequence sending module is configured to send the target label fused sequence to the server.
In some embodiments, the target tag sequence comprises a binary tag sequence, and the second generating module comprises: a third value determining module configured to perform the following processing for the value of each bit sequence in the second preset sequence: in response to detecting that a tag sequence with a value on the bit sequence being a first value exists in a plurality of target tag sequences, determining that the value on the bit sequence in a second preset sequence is the first value; or, the fourth value determining module is configured to determine that the value on the bit sequence in the second preset sequence is the second value in response to detecting that a tag sequence with the second value on the bit sequence exists in the plurality of target tag sequences; and the target label fusion sequence determining module is configured to determine the second preset sequence after the processing is finished as the target label fusion sequence.
In some embodiments, the tag acquisition instruction sending module includes: the verification information sending module is configured to send verification information indicating a verification reader to the electronic tag; the code receiving module is configured to receive a label code returned by the electronic label based on the verification information; the feedback information sending module is configured to inquire the feedback information based on the label coding and send the feedback information to the electronic label; a second generation module comprising: a generation submodule configured to receive a plurality of target tag sequences returned based on the feedback information.
According to a sixth aspect of the present disclosure, there is provided an apparatus for transmitting a tag, applied to an electronic tag, including: the tag obtaining instruction receiving module is configured to send a target tag sequence to the reader in response to receiving the tag obtaining instruction, wherein the plurality of target tag sequences are used for generating a target tag fusion sequence.
In some embodiments, the tag fetch instruction receiving module comprises: a code sending module configured to send a tag code to a reader in response to receiving the verification information; the feedback information receiving module is configured to receive feedback information returned by the reader based on the tag codes; and the tag sequence sending module is configured to respond to the fact that the feedback information meets the verification passing condition and send the target tag sequence to the reader.
According to a seventh aspect of the present disclosure, an embodiment of the present disclosure provides an electronic device, including: one or more processors: a storage device for storing one or more programs which, when executed by one or more processors, cause the one or more processors to carry out the method as provided in the first or second aspect.
According to an eighth aspect of the present disclosure, embodiments of the present disclosure provide a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method provided by the first or second aspect.
According to the method and the device for identifying the tags, the server receives the target tag fusion sequence generated by adopting the preset number of target tag sequences and sequence operation, the tag sequence set containing each tag sequence in the preset number of target tag sequences is obtained, and aiming at each preset number of tag sequences in the tag sequence set, when the fusion sequence generated by utilizing the preset number of tag sequences and the sequence operation is detected to be the same as the target tag fusion sequence, the preset number of tag sequences are determined to be the target tag sequences, the plurality of tag sequences can be integrally obtained and identified, the communication between the server and the tag sequence obtaining equipment is reduced, the communication resources are saved, and the tag identification efficiency is improved.
The technology according to the application solves the problems of low efficiency of label identification and waste of communication resources.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is an exemplary system architecture diagram in which embodiments of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for identifying tags, according to the present application;
FIG. 3 is a schematic flow chart diagram of another embodiment of a method for identifying tags according to the present application;
FIG. 4 is a flow diagram of one embodiment of a method for generating a fusion tag according to the present application;
FIG. 5 is a schematic flow chart diagram illustrating one embodiment of a method for transmitting tags according to the present application;
FIG. 6 is a schematic diagram of a structure of one embodiment of a method for identifying a tag according to the present application;
FIG. 7 is a schematic structural diagram of one embodiment of a method for generating a fusion tag in accordance with the present application;
FIG. 8 is a schematic block diagram illustrating one embodiment of a method for transmitting tags in accordance with the present application;
fig. 9 is a block diagram of an electronic device for implementing a method for identifying a tag according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the method for identifying a tag or the apparatus for identifying a tag of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include electronic tags 101, 102, 103, a reader 104, a server 105, a network 106, and a network 107. Network 106 is used to provide a communication link medium between electronic tags 101, 102, 103 and reader 104. Network 107 is used to provide a communication link medium between reader 104 and server 105. Network 106 may include various wireless connection types and network 107 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
When the reader 104 receives the tag identification instruction, the tag acquisition instruction is sent to the electronic tags in the read-write range of the reader through the network 106, and after the electronic tags 101, 102 and 103 receive the tag acquisition instruction, the tag sequence is sent to the reader 104 through the network 106. The reader 104 generates a target tag fusion sequence by using the tag sequences of the electronic tags 101, 102, 103, and transmits the target tag fusion sequence to the server 105 through the network 107.
The server 105 retrieves a tag set including all tag sequences from a local storage, and determines, for each preset number of tag sequences in the tag set, the preset number of tag sequences as a target tag sequence when the server 105 detects that a fusion sequence generated by using the preset number of tag sequences is the same as the target tag fusion sequence.
It should be noted that the method for identifying a tag provided by the embodiment of the present disclosure is generally performed by the server 105, and accordingly, the apparatus for identifying a tag is generally disposed in the server 105.
It should be understood that the number of tags, readers, servers and networks in fig. 1 is merely illustrative. There may be any number of tags, readers, servers and networks, as desired for implementation.
With continued reference to fig. 2, a flow 200 of one embodiment of a method for identifying tags is shown, applied to a server, comprising the steps of:
In this embodiment, an executing entity (for example, the server 105 shown in fig. 1) of the method for identifying tags may receive a target tag fusion sequence in a wired or wireless manner, where the target tag fusion sequence is a fusion sequence generated by performing sequence operations on a preset number of target tag sequences obtained based on a preset number of electronic tags read by a tag reader/tag reader that reads a target tag. The sequence operation may be a sequence operation such as addition/subtraction or logic operation of a numerical sequence performed on a target tag sequence by the tag reader.
In this embodiment, the server may obtain a tag sequence set including all of the target tag sequences. The set of tag sequences may be all of the tag sequences stored by the server, or may be a subset of the set of all of the tag sequences stored by the server that includes all of the target tag sequences.
In this embodiment, for each preset number of tag sequences in the tag sequence set, if the server detects that the fusion sequence generated by using the preset number of tag sequences through sequence operation is the same as the target tag fusion sequence, the preset number of tag sequences in the tag sequence set is determined as the target tag sequence. The preset number may be the number of the electronic tags currently identified by the reader, which is sent by the reader and received by the server, and the preset number may also be the number of the electronic tags identified by the reader each time, which is pre-constrained by the server and the reader.
In the method for identifying a tag provided by this embodiment, a server receives a target tag fusion sequence generated by a preset number of target tag sequences and sequence operation, acquires a tag sequence set including each of the preset number of target tag sequences, and determines, for each preset number of tag sequences in the tag sequence set, that a fusion sequence generated by the preset number of tag sequences and sequence operation is the same as the target tag fusion sequence, the preset number of tag sequences is a target tag sequence, so that a plurality of tag sequences can be integrally acquired and identified, communication between the server and a tag sequence acquisition device is reduced, communication resources are saved, and tag identification efficiency is improved.
Optionally, for each preset number of tag sequences in the tag sequence set, in response to detecting that a fusion sequence generated by using the preset number of tag sequences and sequence operation is the same as a target tag fusion sequence, determining that the preset number of tag sequences is the target tag sequence, includes: generating a global label fusion sequence by adopting all label sequences in the label sequence set and sequence operation; determining a useless tag sequence which cannot be used for generating a target tag fusion sequence in the tag sequence set according to the difference between the global tag fusion sequence and the target tag fusion sequence; and determining the residual label sequences as target label sequences in response to determining that the number of the residual label sequences is a preset number after useless label sequences are removed from the label sequence set.
In this embodiment, the server may perform sequence operations such as addition/subtraction of numerical sequences on all tag sequences in the tag sequence set, and determine the operation result as a global tag fusion sequence. The server may determine, according to a difference between the global tag fusion sequence and the target tag fusion sequence, a tag sequence in the tag sequence set that generates the difference as a useless tag sequence. For example, if the sequence operation is an addition operation of sequences and the number of bits of the global tag fusion sequence is greater than the number of bits of the target tag fusion sequence, a tag sequence having a greater number of bits than the number of bits of the target tag fusion sequence in the tag sequence set may be determined as an unnecessary tag sequence that causes a difference in the number of bits of the sequence. The sequence operation for the server to generate the global tag fusion sequence is an arbitrary sequence operation similar to the sequence operation for the reader to generate the target tag fusion sequence.
In this embodiment, when it is determined that the number of remaining tag sequences from which useless tag sequences are removed in the tag sequence set is a preset number, the remaining tag sequences may be determined as target tag sequences.
Specifically, the server may determine the remaining tag sequences through a plurality of iterations, that is, after determining the useless tags in the tag sequence set according to the difference between the global tag fusion sequence and the target tag fusion sequence, the server determines the tag sequence set from which the useless tag sequences are removed as an updated tag sequence set, and determines whether the number of tag sequences in the updated tag sequence set is the same as a preset number; and if the label sequences are different, generating an updated global label fusion sequence based on all the label sequences in the updated label sequence set, continuously determining and removing useless labels in the label sequence set according to the difference between the updated global label fusion sequence and the target label fusion sequence to update the label sequence set, stopping iteration until the number of the label sequences in the updated label sequence set is the same as the preset number, and determining the label sequences in the updated label sequence set as the target label sequences.
It can be understood that through multiple rounds of iteration processes, the server screens useless tag sequences in the tag sequence set successively, and generates an updated global tag fusion sequence based on the tag sequences in the tag sequence set from which the useless tags are removed, at this time, a new difference is generated between the updated global tag fusion sequence and the target tag fusion sequence, so that the server screens other useless tag sequences according to the newly generated difference, and therefore, the server can screen the useless tag sequences from the tag sequence set in the successive screening process to determine the target tag sequences.
In this embodiment, a global tag fusion sequence is generated based on all tag sequences in a tag sequence set stored by a server, a tag sequence for making the difference in the tag sequence set is determined as an unnecessary tag sequence according to the difference between the global tag fusion sequence and a target tag fusion sequence, and a remaining tag sequence from which the unnecessary tag sequence is removed in the tag sequence set is determined as a target tag sequence, so that the efficiency and convenience in determining the target tag sequence can be improved.
Optionally, the method for identifying a tag further comprises: and determining that false tag sequences exist in a preset number of target tag sequences in response to determining that the number of the remaining tag sequences after removing useless tag sequences in the tag sequence set is less than a preset number.
In this embodiment, when the number of remaining tag sequences is smaller than the number of target tag sequences (i.e., a preset number) after all detected useless tag sequences in the tag sequence set are removed, it is determined that a fake tag sequence exists in the target tag sequences.
According to the embodiment, whether the target label sequence has the false label sequence or not is determined according to the difference between the number of the label sequences in the label sequence set without the useless label sequence and the number of the target label sequences, so that the efficiency and convenience for determining whether the target label sequence has the false label sequence or not can be improved.
With further reference to fig. 3, a flow 300 of another embodiment of a method for identifying tags according to the present disclosure is shown, the tag sequence being a binary tag sequence, the method applied to a server, comprising the steps of:
In this embodiment, the descriptions of step 301 and step 302 are the same as the descriptions of step 201 and step 202, and are not repeated here.
Step 303, performing the following processing on the value of each bit sequence in the first preset sequence: in response to detecting that a tag sequence with a first value on the bit sequence exists in the tag sequence set, determining that the value on the bit sequence in a first preset sequence is the first value; or, in response to detecting that there is no tag sequence with the first value in the set of tag sequences, determining that the value in the bit sequence in the first predetermined sequence is the second value.
In this embodiment, a first preset sequence is preset first, where the first preset sequence may be a sequence in which the numerical values in each bit sequence are all null, or may be a sequence in which the numerical values in each bit sequence are all random numbers, and the following processing is performed for the numerical value position (i.e., the storage unit of the bit sequence on the storage device) or the numerical value of each bit sequence in the first preset sequence: if a tag sequence with the value of the bit sequence being a first value exists in the tag sequence set, setting the value of the bit sequence in a first preset sequence as the first value; or, if there is no tag sequence with the value of the first value in the set of tag sequences, the value of the first predetermined sequence in the bit sequence is set as the second value. It is understood that the first numerical value, the second numerical value of the binary tag sequence may be different letters, symbols, numbers, or the like.
For example, if the first predetermined sequence is "000000", and tag sequences "101100" and "000111" exist in the tag sequence set, where "1" is a first numerical value and "0" is a second numerical value, the first predetermined sequence obtained by performing the above processing on the first predetermined sequence is "101111".
And step 304, determining the processed first preset sequence as a global label fusion sequence.
In this embodiment, the processed first preset sequence is determined as a global tag fusion sequence.
And 305, determining a useless tag sequence which cannot be used for generating the target tag fusion sequence in the tag sequence set according to the difference between the global tag fusion sequence and the target tag fusion sequence.
In this embodiment, the server may determine, according to a difference between the global tag fusion sequence and the target tag fusion sequence, a tag sequence in the tag sequence set that generates the difference as a useless tag sequence.
In this embodiment, when the server determines that the number of remaining tag sequences from which useless tag sequences are removed in the tag sequence set is a preset number, the remaining tag sequences may be determined as target tag sequences.
The tag sequence in this embodiment is a binary tag sequence, and when a tag sequence whose numerical value of a certain order is a first numerical value exists in the tag sequence set, the numerical value on the certain order of the global tag fusion sequence is determined as the first numerical value, and when a tag sequence whose numerical value of a certain order is the first numerical value does not exist in the tag sequence set, the numerical value on the certain order of the global tag fusion sequence is determined as a second numerical value, so that efficiency of generating the global tag fusion sequence can be improved.
Optionally, determining a useless tag sequence in the tag sequence set that cannot be used for generating the target tag fusion sequence according to a difference between the global tag fusion sequence and the target tag fusion sequence, including: in response to detecting that the first bit sequence in the global tag fusion sequence is a first numerical value and the first bit sequence in the target tag fusion sequence is a second numerical value, determining the tag sequence with the first bit sequence being the first numerical value in the tag sequence set as a useless tag sequence; or, in response to detecting that the second bit sequence in the global tag fusion sequence is the second numerical value and the second bit sequence in the target tag fusion sequence is the first numerical value, determining that a false tag sequence exists in the target tag sequence; the first numerical value is used for representing that the tag sequence of the electronic tag has response information on the corresponding bit sequence, and the second numerical value is used for representing that the tag sequence of the electronic tag has no response information on the corresponding bit sequence.
In this embodiment, the first value may be used to represent that the tag sequence of the electronic tag has response information in the corresponding bit sequence, and the second value may be used to represent that the tag sequence of the electronic tag has no response information in the corresponding bit sequence. For example, each bit sequence in the tag sequence may be each continuous or discontinuous time slice during which the reader for identifying the tag reads the electronic tag, in this case, the first value is used to characterize that the tag sequence of the electronic tag replies to the reader with a response message in the corresponding time slice, and the second value is used to characterize that the tag sequence of the electronic tag does not reply to the reader with a response message in the corresponding time slice.
In this embodiment, when the server detects that the first bit sequence in the global tag fused sequence is the first numerical value and the first bit sequence in the target tag fused sequence is the second numerical value, the server queries the tag sequence of which the first bit sequence is the first numerical value in the tag sequence set, and determines the tag sequence of which the first bit sequence is the first numerical value in the tag sequence set as the useless tag sequence. It can be understood that the first bit sequence in the target tag fusion sequence is the second numerical value which characterizes the tag sequence in the target tag without the response message existing on the first bit sequence; and the first bit sequence in the global label fusion sequence is a first value, which represents that the label sequence with the response message on the first bit sequence exists in the label sequence set, so that the label sequence with the response message on the first bit sequence in the label sequence set is a useless label sequence which needs to be screened out.
In this embodiment, when the server detects that the second bit sequence in the global tag fused sequence is the second value and the second bit sequence in the target tag fused sequence is the first value, it is determined that a false tag sequence exists in the target tag sequence. It can be understood that the global tag fusion sequence is a fusion sequence generated based on all tag sequences in the tag sequence set (that is, the target tag sequence belongs to the tag sequence set), and if the value on the second bit sequence of the global tag fusion sequence is the second value, it represents that there is no tag sequence of the response message on the bit sequence in the tag sequence set; if the value of the second bit sequence in the target label fusion sequence is the first value, the target label is represented to have a label sequence with a response message on the bit sequence, and the label sequence set is a set of all label sequences stored by the server, so that the contradiction is caused by the fact that a false label which does not belong to the label sequence set exists in the target label sequence, and the false label is the label sequence with the response message on the second bit sequence.
The first bit sequence and the second bit sequence refer to any bit sequence in the global fusion tag sequence or the target fusion tag sequence.
In this embodiment, a first numerical value in a binary tag sequence is used to represent that a tag sequence has response information on a corresponding bit sequence, and a second numerical value represents that a tag sequence has no response information on the corresponding bit sequence, and then based on a difference between values on the same bit sequence between a global tag fusion sequence and a target tag fusion sequence, whether a useless tag in a tag sequence set or a false tag exists in the target tag sequence is determined, so that efficiency and convenience for determining the useless tag can be improved, and efficiency and convenience for determining whether the false tag exists in the target tag can be improved.
In some optional implementations of the embodiments described above in connection with fig. 2 and 3, the method for identifying a tag further comprises: and searching corresponding target information in the database by using the target label sequence, and presenting the target information.
In this embodiment, the server may query, in a database stored locally or in a cloud, target information corresponding to the target tag sequence by using the target tag sequence identified by the server, and present the information on a display device in communication connection with the server, or send the target information to a sending end of the target tag fusion sequence (for example, a reader that collects the target tag sequence) so that the sending end of the target fusion sequence presents the target information.
In this embodiment, the server queries corresponding target information in the database by using the identified target tag sequence and presents the target information, so that the user can know the information corresponding to the target tag, and the user can conveniently obtain required information.
With further reference to fig. 4, a flow 400 of one embodiment of a method for generating a fused tag according to the present disclosure is shown, applied to a reader, comprising the steps of:
In this embodiment, after an execution subject (e.g., the reader 104 shown in fig. 1) of the method for generating the fusion tag receives the tag identification instruction in a wired or wireless manner, a tag acquisition instruction may be sent to the electronic tags within the reading range of the execution subject. The tag identification command may be a command for identifying a tag transmitted from the server, or a command for starting to identify a tag transmitted from the user to the reader through a touch display device, a voice input device, or a physical or virtual case of the reader. The electronic tag may be a tag built based on radio frequency identification technology.
In this embodiment, the reader may divide the process of communicating with the electronic tag into a plurality of communication frames, and the frame length of each communication frame is fixed, that is, each communication frame includes a fixed number of time slices. After the reader sends a tag acquisition instruction (or a 'frame start' instruction) to the electronic tag, each bit value in the electronic tag sequence replies a response message to the reader within a separate time slice corresponding to the bit sequence.
In this embodiment, the reader may receive a target tag sequence returned by a plurality of electronic tags based on the tag obtaining instruction, and generate a target tag fusion sequence by using the plurality of target tag sequences and sequence operation. The reader can perform sequence operations such as addition/subtraction of numerical value sequences, sequence logic operation and the like on a plurality of target label sequences, and determine the operation result as a target label fusion sequence.
And step 403, sending the target label fusion sequence to a server.
In this embodiment, the reader sends a target tag fusion sequence generated based on the acquired plurality of target tag sequences to the server.
In this embodiment, the reader generates a single target tag fusion sequence based on the obtained target tag sequence of the electronic tag, and sends the target tag fusion sequence to the server so that the server identifies the target tag based on the target tag fusion sequence, which can reduce the communication frequency between the reader and the server, avoid the waste of communication resources, and improve the communication efficiency.
Optionally, the target tag sequence includes a binary tag sequence, and generating a target tag fusion sequence by using a plurality of target tag sequences and sequence operations, including: the following processing is performed for the value of each bit sequence in the second preset sequence: in response to detecting that a tag sequence with a value on the bit sequence being a first value exists in a plurality of target tag sequences, determining that the value on the bit sequence in a second preset sequence is the first value; or, in response to detecting that a tag sequence with a second value in the bit sequence exists in the plurality of target tag sequences, determining that the value in the bit sequence in the second preset sequence is the second value; and determining the second preset sequence after the processing as a target label fusion sequence.
In this embodiment, a second preset sequence is preset first, where the second preset sequence may be a sequence in which the numerical values in each bit sequence are all null, or may be a sequence in which the numerical values in each bit sequence are all random numbers, and the following processing is performed for the numerical value position (i.e., the storage unit of the bit sequence on the storage device) or the numerical value of each bit sequence in the second preset sequence: if the target label sequence with the numerical value of the bit sequence as the first numerical value exists in the target label sequence, the numerical value of the bit sequence in the second preset sequence is determined as the first numerical value; or, if there is no tag sequence with the value of the bit sequence being the first value in the target tag sequence, the value of the bit sequence in the second predetermined sequence is determined as the second value. It is understood that the first value, the second value, etc. of the binary tag sequence may be different letters, symbols, or numbers. And then, determining the second preset sequence after the processing as a target label fusion sequence. The step of generating the target tag fusion sequence can be simplified by adopting the binary tag sequence.
Optionally, sending a tag obtaining instruction to the electronic tag includes: sending verification information indicating a verification reader to the electronic tag; receiving a label code returned by the electronic label based on the verification information; inquiring feedback information based on the tag codes, and sending the feedback information to the electronic tag; receiving a plurality of target tag sequences returned based on a tag fetch instruction, including: and receiving a plurality of target label sequences returned based on the feedback information.
In this embodiment, after receiving the tag identification instruction, the reader sends verification information to the plurality of electronic tags in the reading range/identification range of the reader, where the verification information is used to instruct the electronic tags to verify the authenticity of the reader. And then, the reader receives the tag codes returned by the plurality of electronic tags based on the verification information, inquires feedback information corresponding to the tag codes in local storage or cloud storage, and sends the feedback information to the plurality of electronic tags. And if the feedback information is determined to pass the verification by the electronic tags, the reader receives a plurality of target tag sequences returned by the electronic tags. In this embodiment, the authenticity of the reader is verified based on the feedback information, so that the security of the tag information can be ensured.
With further reference to fig. 5, a flow 500 of one embodiment of a method for transmitting a tag according to the present disclosure is shown, the method applied to an electronic tag, comprising the steps of:
In this embodiment, when an execution subject (for example, the electronic tags 101, 102, and 103 shown in fig. 1) of the method for sending a tag receives a tag obtaining instruction, a target tag sequence is sent to a reader, where the target tag sequence may be an unencrypted plain code sequence or an encrypted sequence that is subjected to a hash algorithm or a logical operation such as an xor. And the target tag sequences sent to the reader by the electronic tags receiving the tag acquisition instruction are used for generating a target tag fusion sequence. Specifically, after receiving a "frame start" message sent by the reader, the electronic tag may send a response message to the reader within a time slice divided by the reader in each frame, so that the length of each frame message is the same as the number of time slices in each frame.
The method for sending the tags can enable the electronic tags receiving the tag acquisition instructions to send tag information of the electronic tags to the reader, enable the reader to generate the target tag fusion sequence based on the target tag sequences and send the target tag fusion sequence to the server, and can reduce the communication times between the reader and the server so as to save communication resources.
Optionally, sending the target tag sequence to the reader in response to receiving the tag obtaining instruction, includes: in response to receiving the verification information, sending a tag code to the reader; receiving feedback information returned by the reader based on the tag codes; and responding to the fact that the feedback information is determined to be in accordance with the verification passing condition, and sending the target label sequence to the reader.
In this embodiment, after receiving the verification information sent by the reader, the electronic tag sends its tag code to the reader, where the tag code may be a tag sequence of the tag or a code representing the identity of the tag, so that the reader cannot obtain an actual tag sequence of the electronic tag, thereby avoiding leakage of the electronic tag sequence. And then, the electronic tag receives feedback information returned by the reader based on the tag code. And if the electronic tag determines that the feedback information is legal information or the feedback information meets the verification passing condition, sending a target tag sequence of the electronic tag to the reader.
In the embodiment, the tag code is sent to the reader through the electronic tag, whether the reader is an authenticated/authenticated reader is determined based on whether the feedback information returned by the reader based on the tag code meets the authentication passing condition, and the target tag sequence of the electronic tag is sent to the reader after the reader is determined to be the authenticated/authenticated reader, so that the communication safety can be improved.
In some application scenarios, the electronic tag may send the tag code to the reader after receiving the verification information sent to the reader. After receiving the tag code, the reader queries preset information (for example, a string of characters "AABBC") stored corresponding to the tag code in a local storage or cloud storage based on the tag code, and sends the queried preset information corresponding to the tag code as feedback information to the electronic tag. And the electronic tag judges whether the preset information accords with the verification passing condition after receiving the preset information, and if the preset information accords with the verification passing condition, the electronic tag sends a target tag sequence of the electronic tag to the reader. For example, the electronic tag traverses whether the storage unit of the electronic tag has the same information as the preset information, and if the preset information is determined to exist, the preset information is determined to meet the verification passing condition.
In some application scenarios, the electronic tag may generate the random number r after receiving the verification information sent by the reader1And a random sequence r1And the tag code FID is sent to the reader. The reader receives the random number r1After the tag code FID is compared with the tag code FID, the tag code FID is used for inquiring in local storage or cloud storage, and if the tag code FID is inquired, the verification operation is continued; if the tag code FID is not queried, then verification is stopped. After the reader inquires the tag code FID, the reader firstly generates a random sequence r2And calculating according to the formula (1) and the formula (2) to obtain the value A and the value B.
Then, r is1And the value of A | | B is used as feedback information and is sent to the electronic tag corresponding to the tag code FID. After receiving the value of a | | B, the electronic tag generates B' according to formula (3), formula (4) and formula (5).
D=PUF(Pn) (3)
Wherein, PnThe label represents a key unique to the signature in the nth round of authentication; pn+1A value representing a key unique to the tag in the nth round of authentication (i.e., P)n) The value of the key after being processed by a PUF (Physical Unclonable Functions) module. If the electronic tag determines that B and B' areAnd if not, determining that the feedback information meets the verification passing condition or the reader is an authenticated reader, and sending the target tag sequence of the electronic tag to the reader. And if not, determining that the reader is a false reader, and the electronic tag does not send the target tag sequence of the electronic tag to the reader.
With further reference to fig. 6, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an apparatus for identifying a tag, which corresponds to the method embodiment shown in fig. 2 or fig. 3, and which may be applied in various electronic devices in particular.
As shown in fig. 6, the apparatus 600 for identifying a tag of the present embodiment is applied to a server, and includes: a first receiving unit 601, an acquiring unit 602, and a recognizing unit 603. The first receiving unit is configured to receive a target label fusion sequence, wherein the target label fusion sequence is generated by adopting a preset number of target label sequences and sequence operation; an acquisition unit configured to acquire a tag sequence set including each of a preset number of target tag sequences; the identification unit is configured to determine, for each preset number of tag sequences in the tag sequence set, the preset number of tag sequences as a target tag sequence in response to detecting that a fusion sequence generated by the preset number of tag sequences and sequence operation is the same as the target tag fusion sequence.
In some embodiments, the apparatus further comprises: and the presenting unit is configured to search the corresponding target information in the database by using the target label sequence and present the target information.
In some embodiments, the identification unit comprises: the first generation module is configured to generate a global label fusion sequence by adopting all label sequences in the label sequence set and sequence operation; the screening module is configured to determine a useless tag sequence which cannot be used for generating the target tag fusion sequence in the tag sequence set according to the difference between the global tag fusion sequence and the target tag fusion sequence; and the identification module is configured to respond to the condition that the number of the residual label sequences after the useless label sequences are removed in the label sequence set is determined to be a preset number, and determine that the residual label sequences are the target label sequences.
In some embodiments, the tag sequence comprises a binary tag sequence, the first generating module comprising: a first value determining module configured to perform the following processing for the value of each bit sequence in the first preset sequence: in response to detecting that a tag sequence with a first value on the bit sequence exists in the tag sequence set, determining that the value on the bit sequence in a first preset sequence is the first value; or, the second numerical value determining module is configured to determine that the value on the bit sequence in the first preset sequence is the second numerical value in response to detecting that no tag sequence with the value on the bit sequence being the first numerical value exists in the tag sequence set; and the global label fusion sequence determining module is configured to determine the processed first preset sequence as a global label fusion sequence.
In some embodiments, a screening module, comprising: a useless tag determination module configured to determine, as a useless tag sequence, a tag sequence of the set of tag sequences of which the first bit sequence is the first numerical value in response to detecting that the first bit sequence of the global tag fusion sequence is the first numerical value and the first bit sequence of the target tag fusion sequence is the second numerical value; or, a first false tag determination module configured to determine that a false tag sequence exists in the target tag sequence in response to detecting that the second bit sequence in the global tag fused sequence is the second value and the second bit sequence in the target tag fused sequence is the first value; the first numerical value is used for representing that the tag sequence has response information on the corresponding bit sequence, and the second numerical value is used for representing that the tag sequence has no response information on the corresponding bit sequence.
In some embodiments, the apparatus further comprises: a second false tag determination module configured to determine that a false tag sequence exists in a preset number of target tag sequences in response to determining that the number of remaining tag sequences from which useless tag sequences are removed in the tag sequence set is less than a preset number.
The units of the apparatus 600 described above correspond to the steps in the method described with reference to fig. 2 or 3. Thus, the operations, features and technical effects described above for the method for identifying a tag are also applicable to the units included in the apparatus 600, and are not described herein again.
With further reference to fig. 7, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an apparatus for generating a fusion tag, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 4, and the apparatus may be applied to various electronic devices.
As shown in fig. 7, the apparatus 700 for generating a fusion tag of the present embodiment is applied to a reader, and includes: a tag obtaining instruction sending module 701, a second generating module 702, and a target tag fusion sequence sending module 703. The tag obtaining instruction sending module is configured to respond to the received tag identification instruction and send a tag obtaining instruction to the electronic tag; the second generation module is configured to receive a plurality of target label sequences returned based on the label acquisition instruction and generate a target label fusion sequence by adopting the plurality of target label sequences and sequence operation; and the target label fused sequence sending module is configured to send the target label fused sequence to the server.
In some embodiments, the target tag sequence comprises a binary tag sequence, and the second generating module comprises: a third value determining module configured to perform the following processing for the value of each bit sequence in the second preset sequence: in response to detecting that a tag sequence with a value on the bit sequence being a first value exists in a plurality of target tag sequences, determining that the value on the bit sequence in a second preset sequence is the first value; or, the fourth value determining module is configured to determine that the value on the bit sequence in the second preset sequence is the second value in response to detecting that a tag sequence with the second value on the bit sequence exists in the plurality of target tag sequences; and the target label fusion sequence determining module is configured to determine the second preset sequence after the processing is finished as the target label fusion sequence.
In some embodiments, the tag acquisition instruction sending module includes: the verification information sending module is configured to send verification information indicating a verification reader to the electronic tag; the code receiving module is configured to receive a label code returned by the electronic label based on the verification information; the feedback information sending module is configured to inquire the feedback information based on the label coding and send the feedback information to the electronic label; a second generation module comprising: a generation submodule configured to receive a plurality of target tag sequences returned based on the feedback information.
The units of the apparatus 700 described above correspond to the steps in the method described with reference to fig. 4. Thus, the operations, features and technical effects that can be achieved by the above described method for generating a fusion tag are also applicable to the units included in the apparatus 700, and are not described in detail herein.
With further reference to fig. 8, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an apparatus for sending a tag, which corresponds to the method embodiment shown in fig. 5, and which is particularly applicable to various electronic devices.
As shown in fig. 8, the apparatus 800 for transmitting a tag of the present embodiment is applied to an electronic tag, and includes: a tag acquisition instruction receiving module 801. The tag obtaining instruction receiving module is configured to send a target tag sequence to the reader in response to receiving the tag obtaining instruction, wherein the plurality of target tag sequences are used for generating a target tag fusion sequence.
In some embodiments, the tag fetch instruction receiving module comprises: a code sending module configured to send a tag code to a reader in response to receiving the verification information; the feedback information receiving module is configured to receive feedback information returned by the reader based on the tag codes; and the tag sequence sending module is configured to respond to the fact that the feedback information meets the verification passing condition and send the target tag sequence to the reader.
The units of the apparatus 800 described above correspond to the steps in the method described with reference to fig. 5. Thus, the operations, features and technical effects that can be achieved by the above-described method for transmitting a tag are also applicable to the units included in the apparatus 800, and are not described in detail herein.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
As shown in fig. 9, a block diagram of an electronic device 900 for training an image recognition model according to an embodiment of the present application is shown. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 9, the electronic apparatus includes: one or more processors 901, memory 902, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). Fig. 9 illustrates an example of a processor 901.
The memory 902, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method for training an image recognition model in the embodiments of the present application (e.g., the first receiving unit 601, the obtaining unit 602, and the recognition unit 603 shown in fig. 6). The processor 901 executes various functional applications of the server and data processing by executing non-transitory software programs, instructions and modules stored in the memory 902, namely, implements the method for training the image recognition model in the above method embodiments.
The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of an electronic device for training the image recognition model, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 902 may optionally include memory located remotely from processor 901, which may be connected via a network to an electronic device for training the image recognition model. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device for the method of training an image recognition model may further comprise: an input device 903, an output device 904, and a bus 905. The processor 901, the memory 902, the input device 903, and the output device 904 may be connected by a bus 905 or in other ways, and are exemplified by the bus 905 in fig. 9.
The input device 903 may receive input numeric or character information and generate key signal inputs related to user settings and function controls of an electronic apparatus for training an image recognition model, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointer, one or more mouse buttons, a track ball, a joystick, or other input device. The output devices 904 may include a display device, auxiliary lighting devices (e.g., LEDs), tactile feedback devices (e.g., vibrating motors), and the like. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, and the present invention is not limited herein.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (24)
1. A method for identifying a tag, applied to a server, includes:
receiving a target label fusion sequence, wherein the target label fusion sequence is generated by adopting a preset number of target label sequences and sequence operation;
acquiring a label sequence set containing each label sequence in the preset number of target label sequences;
and for each preset number of label sequences in the label sequence set, in response to detecting that a fusion sequence generated by using the preset number of label sequences and the sequence operation is the same as the target label fusion sequence, determining that the preset number of label sequences are the target label sequences.
2. The method of claim 1, wherein the method further comprises:
and searching corresponding target information in a database by using the target label sequence, and presenting the target information.
3. The method of claim 1, wherein the determining, for each preset number of tag sequences in the set of tag sequences, that the preset number of tag sequences is the target tag sequence in response to detecting that a fused sequence generated by the sequence operation and the preset number of tag sequences is the same as the target tag fused sequence comprises:
generating a global label fusion sequence by adopting all label sequences in the label sequence set and the sequence operation;
determining useless tag sequences which cannot be used for generating the target tag fusion sequence in the tag sequence set according to the difference between the global tag fusion sequence and the target tag fusion sequence;
and determining that the remaining tag sequences are the target tag sequences in response to determining that the number of the remaining tag sequences, from which the useless tag sequences are removed, in the tag sequence set is the preset number.
4. The method of claim 3, wherein the tag sequence comprises a binary tag sequence, and generating a global tag fusion sequence using all tag sequences in the set of tag sequences and the sequence operation comprises:
the following processing is performed for the numerical value of each bit sequence in the first preset sequence: in response to detecting that a tag sequence with a value on the bit sequence being a first value exists in the tag sequence set, determining that the value on the bit sequence in the first preset sequence is the first value; or,
in response to detecting that there is no tag sequence with the value of the first value in the set of tag sequences, determining that the value of the bit sequence in the first predetermined sequence is the second value;
and determining the processed first preset sequence as the global label fusion sequence.
5. The method of claim 4, wherein the determining, according to the difference between the global tag fusion sequence and the target tag fusion sequence, useless tag sequences in the set of tag sequences that cannot be used for generating the target tag fusion sequence comprises:
in response to detecting that a first bit sequence in the global tag fusion sequence is the first numerical value and the first bit sequence in the target tag fusion sequence is the second numerical value, determining a tag sequence in the set of tag sequences whose first bit sequence is the first numerical value as a useless tag sequence; or,
determining that a false tag sequence is present in the target tag sequence in response to detecting that a second bit sequence in the global tag fusion sequence is the second value and the second bit sequence in the target tag fusion sequence is the first value;
the first numerical value is used for representing that response information exists on a corresponding bit sequence of a tag sequence of the electronic tag, and the second numerical value is used for representing that no response information exists on the corresponding bit sequence of the tag sequence of the electronic tag.
6. The method of claim 3, wherein the method further comprises:
and determining that false tag sequences exist in the target tag sequences with the preset number in response to determining that the number of the remaining tag sequences from which the useless tag sequences are removed in the tag sequence set is less than the preset number.
7. A method for generating a fusion tag, applied to a reader, comprises the following steps:
responding to the received label identification instruction, and sending a label acquisition instruction to the electronic label;
receiving a plurality of target label sequences returned based on the label acquisition instruction, and generating a target label fusion sequence by adopting the plurality of target label sequences and sequence operation;
and sending the target label fusion sequence to a server.
8. The method of claim 7, wherein the target tag sequence comprises a binary tag sequence, and wherein generating a target tag fusion sequence using the plurality of target tag sequences and a sequence operation comprises:
the following processing is performed for the value of each bit sequence in the second preset sequence: in response to detecting that a tag sequence with a first value on the bit sequence exists in the target tag sequences, determining that the first value is the value on the bit sequence in the second preset sequence; or,
in response to detecting that a tag sequence with a second value on the bit sequence exists in the target tag sequences, determining that the value on the bit sequence in the second preset sequence is the second value;
and determining the second preset sequence after the processing as the target label fusion sequence.
9. The method of claim 7, wherein the sending a tag retrieval instruction to the electronic tag comprises:
sending verification information indicating a verification reader to the electronic tag;
receiving a label code returned by the electronic label based on the verification information;
inquiring feedback information based on the tag codes, and sending the feedback information to the electronic tag;
the receiving a plurality of target tag sequences returned based on the tag fetch instruction includes:
receiving the plurality of target tag sequences returned based on the feedback information.
10. A method for transmitting a tag, applied to an electronic tag, includes:
and sending a target label sequence to the reader in response to receiving the label acquisition instruction, wherein the plurality of target label sequences are used for generating a target label fusion sequence.
11. The method of claim 10, wherein said transmitting a target tag sequence to a reader in response to receiving a tag acquisition instruction comprises:
in response to receiving authentication information indicating to authenticate a reader, sending a tag code to the reader;
receiving feedback information returned by the reader based on the tag codes;
and responding to the fact that the feedback information is determined to meet the verification passing condition, and sending a target label sequence to the reader.
12. An apparatus for identifying a tag, applied to a server, comprising:
the device comprises a first receiving unit, a second receiving unit and a third receiving unit, wherein the first receiving unit is configured to receive a target label fusion sequence, and the target label fusion sequence is generated by adopting a preset number of target label sequences and sequence operation;
an obtaining unit configured to obtain a tag sequence set including each of the preset number of target tag sequences;
an identifying unit configured to determine, for each preset number of tag sequences in the set of tag sequences, that the preset number of tag sequences is the target tag sequence in response to detecting that a fused sequence generated by the sequence operation and the preset number of tag sequences is the same as the target tag fused sequence.
13. The apparatus of claim 12, wherein the apparatus further comprises:
and the presenting unit is configured to search corresponding target information in a database by using the target label sequence and present the target information.
14. The apparatus of claim 12, wherein the identifying unit comprises:
a first generation module configured to generate a global tag fusion sequence by using all tag sequences in the tag sequence set and the sequence operation;
a screening module configured to determine, according to a difference between the global tag fusion sequence and the target tag fusion sequence, an useless tag sequence that cannot be used for generating the target tag fusion sequence in the tag sequence set;
an identification module configured to determine that the remaining tag sequences are the target tag sequences in response to determining that the number of remaining tag sequences from which the useless tag sequences are removed in the tag sequence set is the preset number.
15. The apparatus of claim 14, wherein the tag sequence comprises a binary tag sequence, the first generating means comprising:
a first value determining module configured to perform the following processing for the value of each bit sequence in the first preset sequence: in response to detecting that a tag sequence with a value on the bit sequence being a first value exists in the tag sequence set, determining that the value on the bit sequence in the first preset sequence is the first value; or,
a second value determining module configured to determine that the value on the bit sequence in the first preset sequence is the second value in response to detecting that no tag sequence with the value on the bit sequence being the first value exists in the tag sequence set;
a global tag fusion sequence determination module configured to determine the processed first preset sequence as the global tag fusion sequence.
16. The apparatus of claim 15, wherein the screening module comprises:
a useless tag determination module configured to determine, as a useless tag sequence, a tag sequence of the set of tag sequences whose first bit sequence is the first numerical value in response to detecting that the first bit sequence of the global tag fusion sequence is the first numerical value and the first bit sequence of the target tag fusion sequence is the second numerical value; or
A first false tag determination module configured to determine that a false tag sequence is present in the target tag sequence in response to detecting that a second bit sequence in the global tag fusion sequence is the second value and the second bit sequence in the target tag fusion sequence is the first value;
the first numerical value is used for representing that response information exists on a corresponding bit sequence of a tag sequence of the electronic tag, and the second numerical value is used for representing that no response information exists on the corresponding bit sequence of the tag sequence of the electronic tag.
17. The apparatus of claim 14, wherein the apparatus further comprises:
a second false tag determination module configured to determine that a false tag sequence exists in the preset number of target tag sequences in response to determining that the number of remaining tag sequences from which the useless tag sequence is removed in the set of tag sequences is less than the preset number.
18. An apparatus for generating a fusion tag, applied to a reader, comprising:
the tag acquisition instruction sending module is configured to respond to the received tag identification instruction and send a tag acquisition instruction to the electronic tag;
the second generation module is configured to receive a plurality of target label sequences returned based on the label acquisition instruction and generate a target label fusion sequence by adopting the plurality of target label sequences and sequence operation;
a target tag fused sequence sending module configured to send the target tag fused sequence to a server.
19. The apparatus of claim 18, wherein the target tag sequence comprises a binary tag sequence, the second generating means comprising:
a third value determining module configured to perform the following processing for the value of each bit sequence in the second preset sequence: in response to detecting that a tag sequence with a first value on the bit sequence exists in the target tag sequences, determining that the first value is the value on the bit sequence in the second preset sequence; or,
a fourth value determining module configured to determine that the value on the bit sequence in the second preset sequence is the second value in response to detecting that a tag sequence with the second value on the bit sequence exists in the plurality of target tag sequences;
a target tag fusion sequence determination module configured to determine the second preset sequence after the processing is completed as the target tag fusion sequence.
20. The apparatus of claim 18, wherein the tag fetch instruction sending module comprises:
the verification information sending module is configured to send verification information indicating a verification reader to the electronic tag;
the code receiving module is configured to receive a label code returned by the electronic label based on the verification information;
a feedback information sending module configured to query feedback information based on the tag code and send the feedback information to the electronic tag;
the second generation module includes:
a generation submodule configured to receive the plurality of target tag sequences returned based on the feedback information.
21. An apparatus for transmitting a tag, applied to an electronic tag, comprising:
the tag obtaining instruction receiving module is configured to send a target tag sequence to the reader in response to receiving the tag obtaining instruction, wherein the plurality of target tag sequences are used for generating a target tag fusion sequence.
22. The apparatus of claim 21, wherein the tag fetch instruction receiving module comprises:
a code transmitting module configured to transmit a tag code to a reader in response to receiving authentication information indicating to authenticate the reader;
a feedback information receiving module configured to receive feedback information returned by the reader based on the tag encoding;
a tag sequence sending module configured to send a target tag sequence to the reader in response to determining that the feedback information meets a verification passing condition.
23. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6 or 7-9.
24. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-6 or 7-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011237844.XA CN112288060A (en) | 2020-11-09 | 2020-11-09 | Method and apparatus for identifying a tag |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011237844.XA CN112288060A (en) | 2020-11-09 | 2020-11-09 | Method and apparatus for identifying a tag |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112288060A true CN112288060A (en) | 2021-01-29 |
Family
ID=74351705
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011237844.XA Pending CN112288060A (en) | 2020-11-09 | 2020-11-09 | Method and apparatus for identifying a tag |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112288060A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113379499A (en) * | 2021-06-18 | 2021-09-10 | 北京沃东天骏信息技术有限公司 | Article screening method and apparatus, electronic device, and storage medium |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5550547A (en) * | 1994-09-12 | 1996-08-27 | International Business Machines Corporation | Multiple item radio frequency tag identification protocol |
US20040086892A1 (en) * | 2002-11-06 | 2004-05-06 | Crothers Donald M. | Universal tag assay |
CN1845125A (en) * | 2006-05-18 | 2006-10-11 | 北京理工大学 | Anti-collision system and method for simultaneously reading multi label |
CN1897012A (en) * | 2006-06-29 | 2007-01-17 | 中山大学 | Stabilized raido-frequency discrimination against collision |
CN101236592A (en) * | 2007-01-31 | 2008-08-06 | 财团法人工业技术研究院 | Wireless radio frequency identification label detection method and apparatus |
CN101246538A (en) * | 2007-02-14 | 2008-08-20 | 日电(中国)有限公司 | Radio frequency recognition system and method |
CN101499119A (en) * | 2008-01-31 | 2009-08-05 | 中兴通讯股份有限公司 | Label recognition method, system and apparatus based on radio frequency recognition |
KR20110093048A (en) * | 2010-02-11 | 2011-08-18 | 한미아이티 주식회사 | Rfid tag writing system and method of classifying products using an rfid tag writing system |
CN106548105A (en) * | 2015-09-22 | 2017-03-29 | 上海行邑信息科技有限公司 | A kind of new barcode scanning identification control method and device |
CN106940779A (en) * | 2016-01-04 | 2017-07-11 | 常州浅湾电子科技有限公司 | A kind of efficient RFID tag identification method |
CN108159700A (en) * | 2018-01-23 | 2018-06-15 | 网易(杭州)网络有限公司 | Generate method, apparatus, storage medium, processor and the terminal of identifying code |
CN109614832A (en) * | 2018-11-20 | 2019-04-12 | 深圳市航天华拓科技有限公司 | Radio-frequency identification reader card reading method, device and computer readable storage medium |
CN109740394A (en) * | 2018-12-13 | 2019-05-10 | 北京计算机技术及应用研究所 | A kind of radio frequency identification anti-collision method |
CN111080189A (en) * | 2019-11-18 | 2020-04-28 | 智坤(浙江)半导体有限公司 | Logistics traceability system based on fusion of ultrahigh frequency RFID (radio frequency identification) tag and identification coded data |
CN111368645A (en) * | 2020-02-14 | 2020-07-03 | 北京澎思科技有限公司 | Method and device for identifying multi-label license plate, electronic equipment and readable medium |
CN111753562A (en) * | 2019-05-24 | 2020-10-09 | 北京京东尚科信息技术有限公司 | Label identification method and device, electronic equipment and readable medium |
CN111753937A (en) * | 2020-06-22 | 2020-10-09 | 北京理工大学 | RFID (radio frequency identification) label rapid detection method and system based on multi-label |
-
2020
- 2020-11-09 CN CN202011237844.XA patent/CN112288060A/en active Pending
Patent Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5550547A (en) * | 1994-09-12 | 1996-08-27 | International Business Machines Corporation | Multiple item radio frequency tag identification protocol |
US20040086892A1 (en) * | 2002-11-06 | 2004-05-06 | Crothers Donald M. | Universal tag assay |
CN1845125A (en) * | 2006-05-18 | 2006-10-11 | 北京理工大学 | Anti-collision system and method for simultaneously reading multi label |
CN1897012A (en) * | 2006-06-29 | 2007-01-17 | 中山大学 | Stabilized raido-frequency discrimination against collision |
CN100562882C (en) * | 2006-06-29 | 2009-11-25 | 中山大学 | A kind of stable raido-frequency discrimination against collision |
CN101236592A (en) * | 2007-01-31 | 2008-08-06 | 财团法人工业技术研究院 | Wireless radio frequency identification label detection method and apparatus |
CN101246538A (en) * | 2007-02-14 | 2008-08-20 | 日电(中国)有限公司 | Radio frequency recognition system and method |
CN101499119A (en) * | 2008-01-31 | 2009-08-05 | 中兴通讯股份有限公司 | Label recognition method, system and apparatus based on radio frequency recognition |
KR20110093048A (en) * | 2010-02-11 | 2011-08-18 | 한미아이티 주식회사 | Rfid tag writing system and method of classifying products using an rfid tag writing system |
CN106548105A (en) * | 2015-09-22 | 2017-03-29 | 上海行邑信息科技有限公司 | A kind of new barcode scanning identification control method and device |
CN106940779A (en) * | 2016-01-04 | 2017-07-11 | 常州浅湾电子科技有限公司 | A kind of efficient RFID tag identification method |
CN108159700A (en) * | 2018-01-23 | 2018-06-15 | 网易(杭州)网络有限公司 | Generate method, apparatus, storage medium, processor and the terminal of identifying code |
CN109614832A (en) * | 2018-11-20 | 2019-04-12 | 深圳市航天华拓科技有限公司 | Radio-frequency identification reader card reading method, device and computer readable storage medium |
CN109740394A (en) * | 2018-12-13 | 2019-05-10 | 北京计算机技术及应用研究所 | A kind of radio frequency identification anti-collision method |
CN111753562A (en) * | 2019-05-24 | 2020-10-09 | 北京京东尚科信息技术有限公司 | Label identification method and device, electronic equipment and readable medium |
CN111080189A (en) * | 2019-11-18 | 2020-04-28 | 智坤(浙江)半导体有限公司 | Logistics traceability system based on fusion of ultrahigh frequency RFID (radio frequency identification) tag and identification coded data |
CN111368645A (en) * | 2020-02-14 | 2020-07-03 | 北京澎思科技有限公司 | Method and device for identifying multi-label license plate, electronic equipment and readable medium |
CN111753937A (en) * | 2020-06-22 | 2020-10-09 | 北京理工大学 | RFID (radio frequency identification) label rapid detection method and system based on multi-label |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113379499A (en) * | 2021-06-18 | 2021-09-10 | 北京沃东天骏信息技术有限公司 | Article screening method and apparatus, electronic device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170279840A1 (en) | Automated event id field analysis on heterogeneous logs | |
CN111813845B (en) | Incremental data extraction method, device, equipment and medium based on ETL task | |
JP2018165926A (en) | Similar image retrieval device | |
CN111523001A (en) | Method, device, equipment and storage medium for storing data | |
US20220004621A1 (en) | Data recovery through reversal of hash values using probabilistic data structures | |
CN112583878B (en) | Vehicle information checking method, device, equipment and medium | |
CN110852379B (en) | Training sample generation method and device for target object recognition | |
US11093882B2 (en) | System and method for a cognitive it change request evaluator | |
CN111399848B (en) | Hard-coded data detection method and device, electronic equipment and medium | |
CN112269706B (en) | Interface parameter verification method, device, electronic equipment and computer readable medium | |
CN113762328A (en) | Model training method, device, equipment and storage medium based on federal learning | |
CN115222176A (en) | Risk control method, apparatus, device and medium | |
CN112288060A (en) | Method and apparatus for identifying a tag | |
CN104994179A (en) | Data processing method and server | |
CN111738325A (en) | Image recognition method, device, equipment and storage medium | |
CN111737534A (en) | File processing method, device and equipment | |
CN111832070A (en) | Data mask method and device, electronic equipment and storage medium | |
CN111177479A (en) | Method and device for acquiring feature vectors of nodes in relational network graph | |
CN114579580A (en) | Data storage method and data query method and device | |
CN111339344B (en) | Indoor image retrieval method and device and electronic equipment | |
CN114254650A (en) | Information processing method, device, equipment and medium | |
CN113903033A (en) | Identification and processing method and device and intelligent detection system | |
CN113779616A (en) | Method and apparatus for identifying data | |
CN108255533B (en) | System configuration changing method and device | |
CN112822302A (en) | Data normalization method and device, electronic equipment 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 |