[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112580762A - Dynamic two-dimensional code and identification method and identification device thereof - Google Patents

Dynamic two-dimensional code and identification method and identification device thereof Download PDF

Info

Publication number
CN112580762A
CN112580762A CN201910935674.3A CN201910935674A CN112580762A CN 112580762 A CN112580762 A CN 112580762A CN 201910935674 A CN201910935674 A CN 201910935674A CN 112580762 A CN112580762 A CN 112580762A
Authority
CN
China
Prior art keywords
dimensional code
dynamic
frame
information
picture frame
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.)
Granted
Application number
CN201910935674.3A
Other languages
Chinese (zh)
Other versions
CN112580762B (en
Inventor
陈永华
刘登勇
卢毓智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201910935674.3A priority Critical patent/CN112580762B/en
Publication of CN112580762A publication Critical patent/CN112580762A/en
Application granted granted Critical
Publication of CN112580762B publication Critical patent/CN112580762B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • User Interface Of Digital Computer (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a dynamic two-dimensional code and an identification method and an identification device thereof, and relates to the technical field of computers. One embodiment of the method comprises: acquiring information of a current picture frame, wherein the information comprises: the generation time, the total frame number and the current frame serial number of the picture frame, wherein the picture frame is used for displaying the static two-dimensional code; judging whether the picture frame is effective or not according to the generation time; if the picture frame is effective, judging whether all picture frames included by the dynamic two-dimensional code are identified or not according to the current frame number, the total frame number and the identified picture frame number; if so, extracting effective information of the dynamic two-dimensional code to complete the identification of the dynamic two-dimensional code. According to the embodiment, the identification terminal can accurately judge the effectiveness of the dynamic two-dimensional code, so that the safety problem of the two-dimensional code caused by screen capture or screen recording and forwarding of others is prevented, and the safety of the dynamic verification code and the identification process of the dynamic verification code is improved.

Description

Dynamic two-dimensional code and identification method and identification device thereof
Technical Field
The invention relates to the technical field of computers, in particular to a dynamic two-dimensional code and an identification method and an identification device thereof.
Background
At present, most of two-dimensional codes used on electronic equipment are displayed as static pictures, can be shot and forwarded at will and are still effective. Under some special scenes, such as payment or identity information verification and other scenes, the use of the user should be limited, but some people can send the screenshot of the two-dimensional code to others for use. Moreover, some operators lose the actual equity people by cheating the customers in spite of the benefits of the boss behind them in order to increase their performance. Some two-dimensional codes are simply added for a long time, but are transmitted and scanned in a limited time and still can be normally used.
In addition, the two-dimensional code is widely used at present, and a plurality of lawbreakers can hide some malicious information in the two-dimensional code information by utilizing the characteristic that the two-dimensional code information cannot be directly distinguished, so that once a user scans the code, harm and even economic loss can be caused.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
the existing two-dimensional code has a great problem in the aspect of safety.
Disclosure of Invention
In view of this, embodiments of the present invention provide a dynamic two-dimensional code, and an identification method and an identification apparatus thereof, so that an identification end can accurately determine validity of the dynamic two-dimensional code, thereby preventing a security problem of the two-dimensional code caused by screen capture or screen recording and forwarding by others, and improving security of a dynamic verification code and an identification process thereof.
To achieve the above object, according to an aspect of an embodiment of the present invention, a dynamic two-dimensional code is provided.
A dynamic two-dimensional code comprising a plurality of consecutively displayed picture frames for displaying a static two-dimensional code, and each picture frame comprising the following information: the system comprises a dynamic two-dimensional code mark, generation time, a total frame number and a current frame sequence number.
Optionally, a text frame is further included to display the effective information of the dynamic two-dimensional code through text.
Optionally, the picture frame further includes update time information, where the update time information is a display time interval between the current picture frame and the next two-dimensional code frame adjacent to the current picture frame, and update time of each picture frame is not exactly the same, and the two-dimensional code frame includes a picture frame and a text frame.
According to another aspect of the embodiments of the present invention, a method for identifying a dynamic two-dimensional code is provided.
A method for identifying a dynamic two-dimensional code comprises the following steps: acquiring information of a current picture frame, wherein the information comprises: the generation time, the total frame number and the current frame serial number of the picture frame are used for displaying the static two-dimensional code; judging whether the picture frame is effective or not according to the generation time; if the picture frame is valid, judging whether all picture frames included by the dynamic two-dimensional code are identified according to the current frame number, the total frame number and the identified picture frame number; if so, extracting effective information of the dynamic two-dimensional code to complete the identification of the dynamic two-dimensional code.
Optionally, before acquiring the information of the current picture frame, the method further includes: determining that the picture frame includes a dynamic two-dimensional code marker.
Optionally, after extracting the valid information of the dynamic two-dimensional code, the method further includes: and acquiring a text frame for displaying effective information of the dynamic two-dimensional code.
Optionally, the picture frame further includes update time information, where the update time information is a display time interval between the current picture frame and the next two-dimensional code frame adjacent to the current picture frame, and update time of each picture frame is not exactly the same, and the two-dimensional code frame includes a picture frame and a text frame.
Optionally, after determining whether all picture frames included in the dynamic two-dimensional code have been identified according to the current frame number, the total frame number, and the identified picture frame number, the method further includes: acquiring total identification time, and determining that the total identification time does not exceed a set time threshold, wherein the time threshold is determined according to the updated time information.
According to another aspect of the embodiments of the present invention, an apparatus for recognizing a dynamic two-dimensional code is provided.
An identification device of a dynamic two-dimensional code, comprising: an information obtaining module, configured to obtain information of a current picture frame, where the information includes: the generation time, the total frame number and the current frame serial number of the picture frame are used for displaying the static two-dimensional code; the validity judging module is used for judging whether the picture frame is valid according to the generation time; the integrity judgment module is used for judging whether all two-dimensional code frames included by the dynamic two-dimensional code are identified or not according to the current frame serial number, the total frame number and the identified picture frame serial number if the picture frame is effective; and the information extraction module is used for extracting the effective information of the dynamic two-dimensional code to complete the identification of the dynamic two-dimensional code if the information extraction module is used for extracting the effective information of the dynamic two-dimensional code.
According to another aspect of the embodiments of the present invention, there is provided an electronic device for recognizing a dynamic two-dimensional code.
An electronic device for recognizing a dynamic two-dimensional code, comprising: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the identification method of the dynamic two-dimensional code provided by the embodiment of the invention.
According to yet another aspect of embodiments of the present invention, a computer-readable medium is provided.
A computer readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for identifying a dynamic two-dimensional code provided by an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: the method for displaying the static two-dimensional code comprises the following steps of obtaining information of a picture frame currently used for displaying the static two-dimensional code: the generation time, the total frame number and the current frame number of the picture frame; judging whether the picture frame is effective according to the generation time, and judging whether all picture frames included by the dynamic two-dimensional code are identified according to the current frame number, the total frame number and the identified picture frame number when the picture frame is effective; and finally, effective information of the dynamic two-dimensional code is extracted to complete the identification of the dynamic two-dimensional code, so that the identification end can accurately judge the effectiveness of the dynamic two-dimensional code by adding information of generation time into each frame of two-dimensional code, the safety problem of the two-dimensional code caused by the forwarding after screen capture or screen recording of other people is prevented, and the safety of the dynamic verification code and the identification process of the dynamic verification code is improved. In addition, after the effective information of the dynamic two-dimensional code is extracted, a text frame used for displaying the effective information of the dynamic two-dimensional code can be acquired, so that the user can make a preliminary judgment on the dynamic two-dimensional code being identified to roughly distinguish whether the dynamic two-dimensional code is consistent with the expected content, thereby avoiding hiding malicious information in the two-dimensional code and causing harm and economic loss, and enabling the user to more confidently scan the code.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram illustrating a display flow of a dynamic two-dimensional code according to an embodiment of the present invention;
fig. 2 is a schematic diagram of main steps of a method for identifying a dynamic two-dimensional code according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a process of identifying a dynamic two-dimensional code according to an embodiment of the present invention;
fig. 4 is a schematic diagram of main blocks of an apparatus for recognizing a dynamic two-dimensional code according to an embodiment of the present invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 6 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. 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 invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In order to solve the safety problem of two-dimensional codes in the prior art, the invention provides a dynamic two-dimensional code, an identification method and an identification device thereof, which can judge whether the current dynamic two-dimensional code is effective or not by making a static two-dimensional code into a dynamic display, identifying a plurality of frames of static two-dimensional code images and according to the generation time of each frame of static two-dimensional code image, thereby preventing potential safety hazards caused by forwarding after others record a screen; finally, the effective information of the dynamic two-dimensional code can be displayed in text content, and a user can roughly judge whether the effective information accords with the expectation, so that the malicious information is prevented from being hidden in the two-dimensional code, and harm and economic loss are avoided.
According to an embodiment of the present invention, there is provided a dynamic two-dimensional code including a plurality of continuously displayed picture frames, the picture frames being used for displaying a static two-dimensional code, and each picture frame including the following information: dynamic two-dimensional code mark, generation time, total frame number and current frame serial number, etc. And the display end continuously displays a plurality of frames of static two-dimensional code pictures according to a set time interval, and adds information such as a dynamic two-dimensional code mark, generation time, total frame number, current frame number and the like in each frame of picture.
In addition, the dynamic two-dimensional code of the invention can also comprise one or more text frames, which are used for displaying the effective information of the dynamic two-dimensional code through the text after all the picture frames are displayed, so that the user can see the specific content information of the dynamic two-dimensional code, thereby being capable of approximately distinguishing whether the content is consistent with the expected content or not, and being capable of more carefully scanning the code.
Furthermore, in each picture frame, update time information may also be included, where the update time information is a display time interval between the current picture frame and the next two-dimensional code frame that is adjacent to the current picture frame, and the update time of each picture frame is not exactly the same, and the two-dimensional code frame includes the picture frame and a text frame. By setting the updating time of each picture frame, the display of the dynamic two-dimensional code and the picture switching are more flexible and convenient, and the dynamic two-dimensional code is interesting.
The essence of the two-dimensional code is a string of binary data, black (dark color) represents 1, white (light color) represents 0, and the specific generation methods have mature schemes and are not described herein again. The invention does not change the coding rule of the two-dimensional code, only adds some additional information (which can be realized by protocol regulation) in the original coding information, and the identification end is matched with the information to identify the information.
The general two-dimensional code information may be a website, commodity information, text information to be displayed, etc., and the following description will take the display text information "ABC" as an example to illustrate the generation and identification rules of the dynamic two-dimensional code.
Fig. 1 is a schematic diagram illustrating a display flow of a dynamic two-dimensional code according to an embodiment of the present invention. As shown in fig. 1, assuming that the dynamic two-dimensional code includes 3 picture frames and 1 text frame, each picture frame follows the protocol of the embodiment of the present invention, the information of each picture frame of the dynamic two-dimensional code is as follows:
first picture frame (1) information: [ # D # T20190912110023123:50:1/3] A;
second picture frame (2) information: [ # D # T20190912110023223:50:2/3] B;
third picture frame (3) information: [ # D # T20190912110023323:50:3/3] C.
Taking the first picture frame information as an example, wherein, "# D #" is a dynamic two-dimensional code mark, which can be changed at will, as long as the protocol with the identification end is good, and special symbols such as "#" are added to avoid interfering with effective information as much as possible;
"txxxx": if "T20190912110023123", the generation time of the picture frame two-dimensional code is represented as local time or server time, which is denoted as time T;
"50": the update time information is represented, that is, the display time interval between the current picture frame and the next two-dimensional code frame (which may be a picture frame or a text frame) is 50 milliseconds, and is recorded as time T1;
"1/3": indicating that the current picture frame is the 1 st frame, the serial number is 1, and the frame is marked as I; the total frame number of the picture frames is 3, and the total frame number is marked as N;
"A": and effective information of the two-dimensional code is represented as S.
In a specific implementation process, the update time information can be flexibly set according to needs, and the update time information of each picture frame can be set to different values. The effective information of the two-dimensional code displayed by each picture frame can also be the same or partially the same.
And at the display end, the information of each picture frame of the dynamic two-dimensional code is coded according to the existing two-dimensional code coding rule, so that the dynamic two-dimensional code can be realized. In the above embodiment, the above 3 frames of picture frames are cyclically displayed with 50 milliseconds as the update time information, each picture frame has different generation time information, and after each cyclic display is finished, a frame of text frame (4) of the valid information "ABC" of the dynamic two-dimensional code can also be displayed.
After the dynamic two-dimensional code is generated, when the dynamic two-dimensional code needs to be identified, according to the technical scheme of the embodiment of the invention, after a scanning end of the two-dimensional code identifies a two-dimensional code picture frame, whether the picture frame (or the dynamic two-dimensional code) is the dynamic two-dimensional code is judged according to a dynamic two-dimensional code mark "# D #" contained in the picture frame, if the picture frame is the dynamic two-dimensional code, whether the picture frame (or the dynamic two-dimensional code) is effective is judged according to the generation time of the current picture frame, and if the picture frame (or the dynamic two-dimensional code) is ineffective, a user is; and if not, recognizing again after waiting for a certain time until all picture frames included in the dynamic two-dimensional code are recognized, extracting effective information of the two-dimensional code, and if all picture frames are not recognized within a certain set time threshold (marked as T2), determining that the recognition fails.
When determining whether the picture frame or the dynamic two-dimensional code is valid according to the generation time of the current picture frame, for example, it may be determined whether the generation time is the same as the current time or within an allowable error range, for example, an error of 500 milliseconds is allowed, if the generation time is the same as the current time or within the allowable error range, it is determined that the current picture frame or the dynamic two-dimensional code is valid, otherwise, it is determined that the current picture frame or the dynamic two-dimensional code is invalid. Therefore, the effectiveness of the current picture frame or the dynamic two-dimensional code can be judged according to the generation time of the current picture frame, and the safety problem of the two-dimensional code caused by screen capture or screen recording forwarding can be avoided.
In addition, a time threshold corresponding to the total recognition time can be preset, so that the two-dimensional code recognition can be more efficiently and accurately carried out. When the time threshold is set, the time threshold can be set in combination with the update time information of the picture frame. For example: assuming that it takes 1000 milliseconds to display the dynamic two-dimensional code once according to the updated time information of each picture frame, in general, in order to better perform two-dimensional code recognition, the dynamic two-dimensional code can be displayed 3 times in a loop, the time difference between every two times is 100 milliseconds, and the allowable error is 100 milliseconds, then the time threshold T2 can be set to 1000 x 3+100 x 2+100 ms to 3300 ms.
Fig. 2 is a schematic diagram of main steps of a method for identifying a dynamic two-dimensional code according to an embodiment of the present invention. As shown in fig. 2, the method for identifying a dynamic two-dimensional code according to the embodiment of the present invention mainly includes the following steps S201 to S204.
Step S201: acquiring information of a current picture frame, wherein the information comprises: the generation time, the total frame number and the current frame serial number of the picture frame, wherein the picture frame is used for displaying the static two-dimensional code;
step S202: judging whether the picture frame is effective or not according to the generation time;
step S203: if the picture frame is effective, judging whether all picture frames included by the dynamic two-dimensional code are identified or not according to the current frame number, the total frame number and the identified picture frame number;
step S204: if so, extracting effective information of the dynamic two-dimensional code to complete the identification of the dynamic two-dimensional code.
According to the embodiment of the invention, before the information of the current picture frame is acquired, the operation of determining that the picture frame contains the dynamic two-dimensional code mark can be further included.
According to an embodiment of the present invention, after extracting the valid information of the dynamic two-dimensional code, a text frame for displaying the valid information of the dynamic two-dimensional code may also be acquired. And after the text frame is acquired, whether the content of the text frame is consistent with the effective information of the dynamic two-dimensional code can be judged through a text identification technology, so that whether the current dynamic two-dimensional code is complete can be judged according to whether the text frame is acquired, and the identification result of the dynamic two-dimensional code is supplemented and verified according to whether the content of the acquired text frame is consistent with the effective information of the dynamic two-dimensional code.
Meanwhile, the user can also perform primary judgment on the dynamic two-dimensional code being identified according to the text content of the text frame so as to roughly distinguish whether the dynamic two-dimensional code is consistent with the expected content, thereby avoiding hiding malicious information in the two-dimensional code and causing harm and economic loss, and ensuring that the user can more confidently scan the code.
According to another embodiment of the present invention, the picture frame may further include update time information, wherein the update time information is a display time interval between the current picture frame and an adjacent next two-dimensional code frame, and the update time of each picture frame is not identical, and the two-dimensional code frame includes the picture frame and a text frame. The updating time of each picture frame is not completely the same, so that the generated dynamic two-dimensional code is more flexible and interesting, and the safety problem caused by screen capture can be avoided to a certain extent when the dynamic two-dimensional code is identified.
According to another embodiment of the invention, after judging whether all picture frames included in the dynamic two-dimensional code have been identified according to the current frame number, the total frame number and the identified picture frame number, the total identification time can be further acquired, and the total identification time is determined not to exceed a set time threshold, wherein the time threshold is determined according to the updated time information. When the scanning end identifies the two-dimensional code, the serial number of the identified picture frame is recorded, and whether all picture frames included in the dynamic two-dimensional code are identified is judged according to the current frame serial number and the total frame number.
Fig. 3 is a schematic view of an identification process of a dynamic two-dimensional code according to an embodiment of the present invention. As shown in fig. 3, when the scanning end scans a two-dimensional code picture frame, the identifying and analyzing of the picture frame to obtain picture frame information includes: a dynamic two-dimensional code flag, a generation time T, a current frame number I, a total frame number N, and update time information T1, and so on, and then a series of processing is performed. Firstly, judging whether a dynamic two-dimensional code mark exists in the picture frame information, if not, indicating that the two-dimensional code is not a dynamic two-dimensional code and is not in the processing range of the invention, and ending the process; otherwise, the two-dimensional code is a dynamic two-dimensional code, and whether the dynamic two-dimensional code is effective or not is judged according to the generation time T of the picture frame. If the dynamic two-dimensional code is invalid, the identification is finished; if the dynamic two-dimensional code is valid, recording the serial number I of the current frame, and then judging whether all the picture frames are identified according to the total frame number N and the recorded identified frame serial number. If yes, extracting effective information S of the two-dimensional code; otherwise, acquiring the recorded total recognition time, and judging whether the total recognition time exceeds a set time threshold T2. If so, identifying failure and ending the process; otherwise, after the update time T1 is reached, scanning the next two-dimensional code picture frame, and continuing the above-mentioned identification process until the scanning end has identified all the picture frames.
In addition, those skilled in the art should understand that the update time information T1 in the dynamic two-dimensional code picture frame is not an essential field, and can be continuously scanned and identified in real time. The invention only introduces an exemplary illustration, and each field in the dynamic two-dimensional code can be modified, or some information can be added.
Fig. 4 is a schematic diagram of main blocks of an apparatus for recognizing a dynamic two-dimensional code according to an embodiment of the present invention. As shown in fig. 4, the identification apparatus 400 of a dynamic two-dimensional code according to the embodiment of the present invention mainly includes an information obtaining module 401, a validity determining module 402, an integrity determining module 403, and an information extracting module 404.
An information obtaining module 401, configured to obtain information of a current picture frame, where the information includes: the generation time, the total frame number and the current frame serial number of the picture frame are used for displaying the static two-dimensional code;
a validity judging module 402, configured to judge whether the picture frame is valid according to the generation time;
an integrity judgment module 403, configured to judge whether all the picture frames included in the dynamic two-dimensional code have been identified according to the current frame number, the total frame number, and the identified picture frame number if the picture frame is valid;
and an information extraction module 404, configured to extract valid information of the dynamic two-dimensional code to complete identification of the dynamic two-dimensional code if the identification result is positive.
According to the technical scheme of the embodiment of the invention, the obtaining of the information of the current picture frame for displaying the static two-dimensional code comprises the following steps: the generation time, the total frame number and the current frame number of the picture frame; judging whether the picture frame is effective according to the generation time, and judging whether all picture frames included by the dynamic two-dimensional code are identified according to the current frame number, the total frame number and the identified picture frame number when the picture frame is effective; and finally, effective information of the dynamic two-dimensional code is extracted to complete the identification of the dynamic two-dimensional code, so that the identification end can accurately judge the effectiveness of the dynamic two-dimensional code by adding information of generation time into each frame of two-dimensional code, the safety problem of the two-dimensional code caused by the forwarding after screen capture or screen recording of other people is prevented, and the safety of the dynamic verification code and the identification process of the dynamic verification code is improved. In addition, after the effective information of the dynamic two-dimensional code is extracted, a text frame used for displaying the effective information of the dynamic two-dimensional code can be acquired, so that the user can make a preliminary judgment on the dynamic two-dimensional code being identified to roughly distinguish whether the dynamic two-dimensional code is consistent with the expected content, thereby avoiding hiding malicious information in the two-dimensional code and causing harm and economic loss, and enabling the user to more confidently scan the code.
Fig. 5 shows an exemplary system architecture 500 to which the method for identifying a dynamic two-dimensional code or the apparatus for identifying a dynamic two-dimensional code according to the embodiment of the present invention can be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages or the like. The terminal devices 501, 502, 503 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 501, 502, 503. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the identification method of the dynamic two-dimensional code provided by the embodiment of the present invention is generally executed by the server 505, and accordingly, the identification device of the dynamic two-dimensional code is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use with a terminal device or server implementing an embodiment of the invention is shown. The terminal device or the server shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware. The described units or modules may also be provided in a processor, and may be described as: a processor includes an information acquisition module, an effectiveness judgment module, an integrity judgment module, and an information extraction module. The names of these units or modules do not in some cases constitute a limitation on the units or modules themselves, and for example, the information acquisition module may also be described as a "module for acquiring information of a current picture frame".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: acquiring information of a current picture frame, wherein the information comprises: the generation time, the total frame number and the current frame serial number of the picture frame are used for displaying the static two-dimensional code; judging whether the picture frame is effective or not according to the generation time; if the picture frame is valid, judging whether all two-dimensional code frames included by the dynamic two-dimensional code are identified or not according to the current frame number, the total frame number and the identified picture frame number; if so, extracting effective information of the dynamic two-dimensional code to complete the identification of the dynamic two-dimensional code.
According to the technical scheme of the embodiment of the invention, the obtaining of the information of the current picture frame for displaying the static two-dimensional code comprises the following steps: the generation time, the total frame number and the current frame number of the picture frame; judging whether the picture frame is effective according to the generation time, and judging whether all picture frames included by the dynamic two-dimensional code are identified according to the current frame number, the total frame number and the identified picture frame number when the picture frame is effective; and finally, effective information of the dynamic two-dimensional code is extracted to complete the identification of the dynamic two-dimensional code, so that the identification end can accurately judge the effectiveness of the dynamic two-dimensional code by adding information of generation time into each frame of two-dimensional code, the safety problem of the two-dimensional code caused by the forwarding after screen capture or screen recording of other people is prevented, and the safety of the dynamic verification code and the identification process of the dynamic verification code is improved. In addition, after the effective information of the dynamic two-dimensional code is extracted, a text frame used for displaying the effective information of the dynamic two-dimensional code can be acquired, so that the user can make a preliminary judgment on the dynamic two-dimensional code being identified to roughly distinguish whether the dynamic two-dimensional code is consistent with the expected content, thereby avoiding hiding malicious information in the two-dimensional code and causing harm and economic loss, and enabling the user to more confidently scan the code.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A dynamic two-dimensional code is characterized by comprising a plurality of continuously displayed picture frames, wherein the picture frames are used for displaying a static two-dimensional code, and each picture frame comprises the following information: the system comprises a dynamic two-dimensional code mark, generation time, a total frame number and a current frame sequence number.
2. The dynamic two-dimensional code according to claim 1, further comprising a text frame to display valid information of the dynamic two-dimensional code through text.
3. The dynamic two-dimensional code according to claim 1, wherein the picture frame further includes update time information, the update time information is a display time interval between a current picture frame and an adjacent next two-dimensional code frame, and an update time of each picture frame is not identical, and the two-dimensional code frames include a picture frame and a text frame.
4. A method for identifying a dynamic two-dimensional code is characterized by comprising the following steps:
acquiring information of a current picture frame, wherein the information comprises: the generation time, the total frame number and the current frame serial number of the picture frame are used for displaying the static two-dimensional code;
judging whether the picture frame is effective or not according to the generation time;
if the picture frame is valid, judging whether all picture frames included by the dynamic two-dimensional code are identified according to the current frame number, the total frame number and the identified picture frame number;
if so, extracting effective information of the dynamic two-dimensional code to complete the identification of the dynamic two-dimensional code.
5. The identification method according to claim 4, wherein before obtaining the information of the current picture frame, further comprising:
determining that the picture frame includes a dynamic two-dimensional code marker.
6. The identification method according to claim 4, further comprising, after extracting the valid information of the dynamic two-dimensional code:
and acquiring a text frame for displaying effective information of the dynamic two-dimensional code.
7. The identification method according to claim 6, wherein the picture frame further comprises update time information, the update time information is a display time interval between the current picture frame and an adjacent next two-dimensional code frame, and the update time of each picture frame is not identical, and the two-dimensional code frames comprise a picture frame and a text frame.
8. The identification method according to claim 7, wherein after determining whether all picture frames included in the dynamic two-dimensional code have been identified according to the current frame number, the total number of frames, and the identified picture frame number, the method further comprises:
acquiring total identification time, and determining that the total identification time does not exceed a set time threshold, wherein the time threshold is determined according to the updated time information.
9. The utility model provides an identification device of developments two-dimensional code which characterized in that includes:
an information obtaining module, configured to obtain information of a current picture frame, where the information includes: the generation time, the total frame number and the current frame serial number of the picture frame are used for displaying the static two-dimensional code;
the validity judging module is used for judging whether the picture frame is valid according to the generation time;
the integrity judgment module is used for judging whether all picture frames included by the dynamic two-dimensional code are identified or not according to the current frame serial number, the total frame number and the identified picture frame serial number if the picture frames are effective;
and the information extraction module is used for extracting the effective information of the dynamic two-dimensional code to complete the identification of the dynamic two-dimensional code if the information extraction module is used for extracting the effective information of the dynamic two-dimensional code.
10. An electronic device for recognizing a dynamic two-dimensional code, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 4-8.
11. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 4-8.
CN201910935674.3A 2019-09-29 2019-09-29 Dynamic two-dimensional code and identification method and identification device thereof Active CN112580762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910935674.3A CN112580762B (en) 2019-09-29 2019-09-29 Dynamic two-dimensional code and identification method and identification device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910935674.3A CN112580762B (en) 2019-09-29 2019-09-29 Dynamic two-dimensional code and identification method and identification device thereof

Publications (2)

Publication Number Publication Date
CN112580762A true CN112580762A (en) 2021-03-30
CN112580762B CN112580762B (en) 2024-07-16

Family

ID=75111343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910935674.3A Active CN112580762B (en) 2019-09-29 2019-09-29 Dynamic two-dimensional code and identification method and identification device thereof

Country Status (1)

Country Link
CN (1) CN112580762B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115204339A (en) * 2022-09-13 2022-10-18 九州银丰(北京)科技有限公司 Intelligent digital two-dimensional code doorplate system based on data analysis service fusion

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014086239A1 (en) * 2012-12-06 2014-06-12 Tencent Technology (Shenzhen) Company Limited Method and apparatus for identifying picture
CN106897650A (en) * 2017-03-02 2017-06-27 苏州钜立智能系统有限公司 The scan method and its scanning device of Quick Response Code
CN108460875A (en) * 2018-03-20 2018-08-28 深圳市西克智能技术有限公司 A kind of entrance guard authentication method and device based on dynamic two-dimension code
CN108681896A (en) * 2018-03-29 2018-10-19 阿里巴巴集团控股有限公司 Displaying, recognition methods and the device of Quick Response Code
CN109086851A (en) * 2018-08-28 2018-12-25 梁庆生 Dynamic two-dimension code

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014086239A1 (en) * 2012-12-06 2014-06-12 Tencent Technology (Shenzhen) Company Limited Method and apparatus for identifying picture
CN106897650A (en) * 2017-03-02 2017-06-27 苏州钜立智能系统有限公司 The scan method and its scanning device of Quick Response Code
CN108460875A (en) * 2018-03-20 2018-08-28 深圳市西克智能技术有限公司 A kind of entrance guard authentication method and device based on dynamic two-dimension code
CN108681896A (en) * 2018-03-29 2018-10-19 阿里巴巴集团控股有限公司 Displaying, recognition methods and the device of Quick Response Code
CN109086851A (en) * 2018-08-28 2018-12-25 梁庆生 Dynamic two-dimension code

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
QIANG HUANG等: "Precisely Locating Multi-QR Code Based on Straight Line Fitting", 《2010 CHINESE CONFERENCE ON PATTERN RECOGNITION》, 31 December 2010 (2010-12-31) *
陶孙杰;余涛;: "基于二维码的数据传输系统设计", 计算机科学, no. 2, 15 November 2018 (2018-11-15) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115204339A (en) * 2022-09-13 2022-10-18 九州银丰(北京)科技有限公司 Intelligent digital two-dimensional code doorplate system based on data analysis service fusion
CN115204339B (en) * 2022-09-13 2024-01-30 九州银丰(北京)科技有限公司 Intelligent digital two-dimensional code doorplate system based on data analysis service fusion

Also Published As

Publication number Publication date
CN112580762B (en) 2024-07-16

Similar Documents

Publication Publication Date Title
US10915980B2 (en) Method and apparatus for adding digital watermark to video
CN108366058B (en) Method, device, equipment and storage medium for preventing traffic hijacking of advertisement operator
US10789474B2 (en) System, method and apparatus for displaying information
CN112184367A (en) Order processing method and device
CN108366052B (en) Processing method and system for verification short message
CN109446442B (en) Method and apparatus for processing information
US11800201B2 (en) Method and apparatus for outputting information
US20180123796A1 (en) Authentication-based message display method and communication terminal thereof
WO2020078050A1 (en) Comment information processing method and apparatus, and server, terminal and readable medium
CN106982307A (en) A kind of method for transmitting data and the device for transmitting data
CN109413056B (en) Method and apparatus for processing information
CN108038172B (en) Search method and device based on artificial intelligence
CN111160825B (en) Method, device and system for extracting articles in self-extracting cabinet
CN112182520B (en) Identification method and device of illegal account number, readable medium and electronic equipment
CN112580762B (en) Dynamic two-dimensional code and identification method and identification device thereof
CN107708076B (en) Method and device for pushing access information
CN111178352A (en) Method and device for identifying verification code characters
CN111368693A (en) Identification method and device for identity card information
CN109214846B (en) Information storage method and device
CN112131374B (en) Text recognition method, device and server
CN115982675A (en) Document processing method, device, electronic equipment and storage medium
CN114282506A (en) Certificate generation method, system, electronic device and storage medium
US11258845B2 (en) Browser management system, browser management method, browser management program, and client program
CN112579080A (en) Method and device for generating user interface code
CN112487164A (en) Artificial intelligence interaction method

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
GR01 Patent grant
GR01 Patent grant