WO2019007289A1 - 动态图形编码的实现方法和装置 - Google Patents

动态图形编码的实现方法和装置 Download PDF

Info

Publication number
WO2019007289A1
WO2019007289A1 PCT/CN2018/093792 CN2018093792W WO2019007289A1 WO 2019007289 A1 WO2019007289 A1 WO 2019007289A1 CN 2018093792 W CN2018093792 W CN 2018093792W WO 2019007289 A1 WO2019007289 A1 WO 2019007289A1
Authority
WO
WIPO (PCT)
Prior art keywords
refresh
code
distance
graphic
graphic code
Prior art date
Application number
PCT/CN2018/093792
Other languages
English (en)
French (fr)
Inventor
沈凌楠
齐杰
陈戈
靳慧峰
Original Assignee
阿里巴巴集团控股有限公司
沈凌楠
齐杰
陈戈
靳慧峰
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 阿里巴巴集团控股有限公司, 沈凌楠, 齐杰, 陈戈, 靳慧峰 filed Critical 阿里巴巴集团控股有限公司
Priority to JP2019548323A priority Critical patent/JP7111732B2/ja
Priority to KR1020197026686A priority patent/KR102357691B1/ko
Priority to MYPI2019004985A priority patent/MY202170A/en
Priority to EP18828672.8A priority patent/EP3620948B1/en
Priority to SG11201907961VA priority patent/SG11201907961VA/en
Publication of WO2019007289A1 publication Critical patent/WO2019007289A1/zh
Priority to PH12019501986A priority patent/PH12019501986A1/en
Priority to US16/557,360 priority patent/US10943160B2/en

Links

Images

Classifications

    • 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/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10366Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the interrogation device being adapted for miscellaneous applications
    • G06K7/10376Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the interrogation device being adapted for miscellaneous applications the interrogation device being adapted for being moveable
    • G06K7/10405Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the interrogation device being adapted for miscellaneous applications the interrogation device being adapted for being moveable the interrogation device including an arrangement for sensing environmental parameters, such as a temperature or acceleration sensor, e.g. used as an on/off trigger or as a warning means
    • 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/06018Record 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 one-dimensional coding
    • G06K19/06028Record 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 one-dimensional coding using bar codes
    • 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
    • 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
    • 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/06046Constructional details
    • G06K19/06112Constructional details the marking being simulated using a light source, e.g. a barcode shown on a display or a laser beam with time-varying intensity profile
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3274Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being displayed on the M-device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/385Payment protocols; Details thereof using an alias or single-use codes

Definitions

  • the present specification relates to the field of Internet technologies, and in particular, to a method and an apparatus for implementing dynamic graphics coding.
  • a graphic code such as a barcode or a two-dimensional code is a kind of information carrier, and is a graphic identifier generated by encoding and processing information according to a certain rule.
  • the present specification provides a method and apparatus for implementing dynamic graphics coding.
  • a method for implementing dynamic graphic coding comprising:
  • the distance sensor When displaying the graphic coding, the distance sensor is called to detect the distance between the device and the occlusion object;
  • a device for realizing dynamic graphic coding comprising:
  • the distance detecting unit calls the distance sensor to detect the distance between the device and the occlusion object when displaying the graphic code
  • the stop unit is refreshed, and if the distance satisfies the set distance range, the refresh of the pattern code is stopped.
  • a device for realizing dynamic graphic coding comprising:
  • a memory for storing machine executable instructions
  • the processor is caused to:
  • the distance sensor When displaying the graphic coding, the distance sensor is called to detect the distance between the device and the occlusion object;
  • the distance between the distance detecting device and the occluding object can be called, and when the distance satisfies the set distance range, the refresh of the graphic code is stopped. It avoids the security risk caused by the scanning code device scanning to the two graphic codes before and after the refresh, thereby improving the reliability and security of dynamic graphic coding.
  • FIG. 1 is a schematic diagram of an implementation flow of a dynamic graphic coding according to an exemplary embodiment of the present specification.
  • FIG. 2 is a schematic structural diagram of an apparatus for implementing dynamic graphics coding according to an exemplary embodiment of the present specification.
  • FIG. 3 is a block diagram of an apparatus for implementing dynamic graphics encoding according to an exemplary embodiment of the present specification.
  • first, second, third, etc. may be used in this specification to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as the second information without departing from the scope of the present description.
  • second information may also be referred to as the first information.
  • word "if” as used herein may be interpreted as "when” or "when” or "in response to determination.”
  • the dynamic graphic coding usually carries a time factor, such as a timestamp for generating the dynamic graphic coding, on the basis of carrying the specified information.
  • the graphic encoding generating device can generate graphic codes carrying different time factors for the specified information with time change, and the graphic encoding analyzing device can determine whether the graphic encoding is reliable according to the time factor, thereby improving the security of the graphic encoding and reducing the information leakage. risk.
  • FIG. 1 is a schematic diagram of an implementation flow of a dynamic graphic coding according to an exemplary embodiment of the present specification.
  • the present specification provides a method for implementing dynamic graphic coding, which can be applied to a client that displays graphic coding.
  • the client is usually installed in an electronic device such as a mobile phone or a tablet computer, and the dynamic graphic coding is implemented.
  • the method can include the following steps:
  • Step 102 when displaying the graphic coding, calling the distance sensor to detect the distance between the device and the occluding object.
  • the display of the graphic code can be triggered by the user. For example, when the user performs electronic payment online, the payment graphic code is opened; when the user is traveling offline, the graphic code of the passenger is turned on.
  • the above payment pattern coding and ride pattern coding are usually dynamic graphic coding, which can be updated over time.
  • the distance sensor of the device when displaying the graphic coding, can be called to detect the distance between the device and the occlusion object.
  • the device is a mobile phone, and the distance sensor is usually located in the vicinity of the earpiece. The position of the distance sensor of different devices may also be different. This embodiment is not repeated here.
  • the occlusion object is usually a scanning code device, such as a scanning code gun, a terminal device having a scanning code function, and the like.
  • the occlusion object may also be other objects, such as a user's finger or other object, and the embodiment does not particularly limit this.
  • Step 104 If the distance satisfies the set distance range, the refresh of the graphic code is stopped.
  • step 102 when the graphic encoding is displayed, if it is detected that the distance between the device and the occlusion object satisfies the set distance range, it may be stated that the probability that the scanning operation is currently being performed is high, and the refresh of the graphic coding may be stopped.
  • the scanning code device scans two graphic codes before and after the refresh, and then initiates two payment requests.
  • the distance range is generally a distance range from the device when the scanning code device can successfully scan the graphic code, and can be preset by a developer, for example, 0 cm-5 cm, 0 cm-10 cm, and the like.
  • stopping the refreshing of the graphics code may include not generating a new graphics code when the refresh timing of the graphics code is reached.
  • the client refresh mode refers to the generation of graphics coding by the client.
  • the refresh period of the payment two-dimensional code is 1 minute
  • the occlusion object is a scanning code device.
  • the client can generate a new payment QR code according to the user's account information and time factor every minute, and refresh with the newly generated payment QR code.
  • the payment QR code currently being displayed.
  • the client displays the payment QR code at 16:22:02, and the next refresh time of the payment QR code is 16:23:02. If it is detected at 16:22:58 that the distance between the mobile phone and the scanning code device satisfies the set distance range, the client does not generate a new payment QR code at 16:23:02.
  • stopping the refreshing of the graphics code may include: when the refresh timing of the graphics code is reached, the refresh request is not sent to the server.
  • the server refresh mode refers to the generation of graphic coding by the server. For example, when displaying graphic coding or refreshing graphic coding, the client sends a request to the server, and the server generates a graphic code and then sends it to the client.
  • the graphic code is still the payment two-dimensional code, the refresh period of the payment two-dimensional code is 1 minute, and the occlusion object is a scanning code device as an example.
  • the client may send a refresh request to the server every minute, and the server generates a new payment QR code according to the user account information and the time factor. And use the newly generated QR code below to the client for the client to refresh. It is also assumed that the client displays the payment QR code at 16:22:02, and the next refresh time of the payment QR code is 16:23:02. If it is detected at 16:22:58 that the distance between the mobile phone and the scanning code device satisfies the set distance range, the client does not send a refresh request to the server at 16:23:02.
  • the distance between the distance detecting device and the occluding object can be called, and when the distance satisfies the set distance range, the refresh of the graphic code is stopped. It avoids the security risk caused by the scanning code device scanning to the two graphic codes before and after the refresh, thereby improving the reliability and security of dynamic graphic coding.
  • the graphic code is still the payment QR code, the refresh period of the payment QR code is 1 minute, and the occlusion object is the scanning code device.
  • the set distance range is 0cm-5cm, and the client displays at 16:22:02.
  • Payment QR code if it is detected that the distance between the mobile phone and the scanning code device is 4.5cm at 16:22:58, you can stop refreshing the payment QR code, for example: at the next refresh time 16:23:02
  • the client does not generate a new payment QR code. It is also assumed that at 16:23:15, the distance between the mobile phone and the scanning code device is detected to be 15 cm, and the distance range is no longer satisfied. If the payment QR code is still displayed at the moment, the payment QR code can be restored. Refresh.
  • the implementation of the recovery payment QR code refresh may be: when detecting that the distance between the mobile phone and the scanning code device no longer satisfies the above distance range, the payment QR code is refreshed, for example, according to the current time.
  • the stamp and user account generate a new payment QR code to refresh.
  • the payment QR code can be refreshed at 16:23:15.
  • the next refresh time can be based on the time 16:2:02 showing the payment QR code, for example: 16:24:02; or the refresh time 16:23 after the recovery: 15 is the benchmark, for example: 16:24:15, and this embodiment does not particularly limit this.
  • the implementation of the recovery payment QR code refresh may also be: refreshing the payment QR code when the next refresh time is reached. Still taking the above example as an example, at 16:23:15, when the distance between the mobile phone and the scanning code device is detected to be 15 cm, the payment can be made at the next refreshing time of the payment QR code of 16:24:02. The refresh of the dimension code.
  • the refresh of the graphics code can be resumed when the stop refresh time of the graphics code reaches the set duration.
  • the set duration is usually the length of time required for the scan to be successful, and can also be set by the developer, such as: 5s, 10s, etc.
  • the graphic code is the payment QR code
  • the refresh cycle of the payment QR code is 1 minute
  • the occlusion object is the scan code device as an example.
  • the stop refresh time is 10 s
  • the client displays the payment two-dimensional at 16:22:02. If the code stops refreshing the payment QR code at 16:22:58, the refresh of the payment QR code can be resumed at 16:23:08.
  • the restoration of the payment QR code refresh reference may be made to the foregoing description, and this embodiment will not be repeated herein.
  • the present specification also provides an embodiment of an apparatus for implementing dynamic graphics coding.
  • Embodiments of the apparatus for implementing dynamic graphic coding of the present specification can be applied to an electronic device.
  • the device embodiment may be implemented by software, or may be implemented by hardware or a combination of hardware and software.
  • the processor of the electronic device in which the computer is located reads the corresponding computer program instructions in the non-volatile memory into the memory.
  • FIG. 2 a hardware structure diagram of the electronic device in which the dynamic graphics coding implementation device of the present specification is located, except for the processor, memory, network interface, and non-volatile shown in FIG.
  • the electronic device in which the device is located in the embodiment may also include other hardware according to the actual function of the electronic device, and details are not described herein.
  • FIG. 3 is a block diagram of an apparatus for implementing dynamic graphics encoding according to an exemplary embodiment of the present specification.
  • the dynamic graphics coding implementation apparatus 200 may include: a distance detection unit 201, a refresh stop unit 202, a first restoration unit 203, and a second restoration unit 204.
  • the distance detecting unit 201 calls the distance sensor to detect the distance between the device and the occlusion object when displaying the graphic coding;
  • the refresh stop unit 202 stops the refresh of the graphic code if the distance satisfies the set distance range.
  • the first restoration unit 203 resumes refreshing the graphics code if it is detected that the distance between the device and the occlusion object no longer satisfies the distance range after the refresh of the graphics code is stopped.
  • the second restoration unit 204 restores the refresh of the graphic code when the stop refresh time of the graphic code reaches the set time length.
  • the recovering the graphics code by the first recovery unit 203 or the second recovery unit 204 includes:
  • the graphics code is refreshed when the next refresh time is reached.
  • the refresh stop unit 202 does not send a refresh request to the server if the refresh time of the graphic code is reached in the server refresh mode.
  • the device embodiment since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the present specification. Those of ordinary skill in the art can understand and implement without any creative effort.
  • the system, device, module or unit illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product having a certain function.
  • a typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, and a game control.
  • the present specification further provides an apparatus for implementing dynamic graphics coding, the implementation apparatus of the dynamic graphics coding comprising: a processor and a storage machine executable The memory of the instruction.
  • the processor and the memory are usually connected to each other by an internal bus.
  • the device may also include an external interface to enable communication with other devices or components.
  • the processor by reading and executing the machine-executable instructions stored in the memory corresponding to the dynamic graphics encoded implementation control logic, the processor is caused to:
  • the distance sensor When displaying the graphic coding, the distance sensor is called to detect the distance between the device and the occlusion object;
  • the processor is further caused to:
  • the processor is further caused to:
  • the processor upon restoring the refresh of the graphics code, the processor is caused to:
  • the graphics code is refreshed when the next refresh time is reached.
  • the processor when the refresh of the graphics code is stopped, the processor is caused to:
  • the refresh request is not sent to the server.
  • the present specification further provides a computer readable storage medium having stored thereon a computer program, the program being executed by the processor to implement the following steps:
  • the distance sensor When displaying the graphic coding, the distance sensor is called to detect the distance between the device and the occlusion object;
  • it also includes:
  • it also includes:
  • the recovering the refresh of the graphic code comprises:
  • the graphics code is refreshed when the next refresh time is reached.
  • the stopping the refreshing of the graphic code comprises:
  • the refresh request is not sent to the server.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Accounting & Taxation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Electromagnetism (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Finance (AREA)
  • Optics & Photonics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Measurement Of Optical Distance (AREA)
  • Radar Systems Or Details Thereof (AREA)
  • Position Input By Displaying (AREA)

Abstract

说明书披露一种动态图形编码的实现方法和装置。该方法包括:在展示图形编码时,调用距离传感器检测设备与遮挡物体之间的距离;若所述距离满足设定的距离范围,则停止对图形编码的刷新。

Description

动态图形编码的实现方法和装置 技术领域
本说明书涉及互联网技术领域,尤其涉及一种动态图形编码的实现方法和装置。
背景技术
条形码、二维码等图形编码是一种信息的载体,是按照一定的规则对信息进行编码等处理后生成的图形标识符。
为确保图形编码中携带的私密信息不被窃取,需要提供更可靠、安全的图形编码实现方案。
发明内容
有鉴于此,本说明书提供一种动态图形编码的实现方法和装置。
具体地,本说明书是通过如下技术方案实现的:
一种动态图形编码的实现方法,包括:
在展示图形编码时,调用距离传感器检测设备与遮挡物体之间的距离;
若所述距离满足设定的距离范围,则停止对图形编码的刷新。
一种动态图形编码的实现装置,包括:
距离检测单元,在展示图形编码时,调用距离传感器检测设备与遮挡物体之间的距离;
刷新停止单元,若所述距离满足设定的距离范围,则停止对图形编码的刷新。
一种动态图形编码的实现装置,包括:
处理器;
用于存储机器可执行指令的存储器;
其中,通过读取并执行所述存储器存储的与动态图形编码的实现控制逻辑 对应的机器可执行指令,所述处理器被促使:
在展示图形编码时,调用距离传感器检测设备与遮挡物体之间的距离;
若所述距离满足设定的距离范围,则停止对图形编码的刷新。
由以上描述可以看出,本实施例在展示图形编码时,可调用距离传感器检测设备与遮挡物体之间的距离,并在所述距离满足设定的距离范围时,停止对图形编码的刷新,避免扫码设备扫描到刷新前后两个图形编码所造成的安全风险,从而提高动态图形编码的可靠性和安全性。
附图说明
图1是本说明书一示例性实施例示出的一种动态图形编码的实现流程示意图。
图2是本说明书一示例性实施例示出的一种用于动态图形编码的实现装置的一结构示意图。
图3是本说明书一示例性实施例示出的一种动态图形编码的实现装置的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书的一些方面相一致的装置和方法的例子。
在本说明书使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书。在本说明书和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
应当理解,尽管在本说明书可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。
在本实施例中,动态图形编码在携带指定信息的基础上,通常还携带有时间因子,比如:生成该动态图形编码的时间戳等。图形编码的生成设备可以随着时间的变化为指定信息生成携带不同时间因子的图形编码,图形编码的解析设备可以根据时间因子确定图形编码是否可靠,从而提高图形编码的安全性,降低信息泄露的风险。
图1是本说明书一示例性实施例示出的一种动态图形编码的实现流程示意图。
请参考图1,本说明书提供一种动态图形编码的实现方法,可以应用在展示图形编码的客户端中,该客户端通常安装在手机、平板电脑等电子设备中,所述动态图形编码的实现方法可以包括以下步骤:
步骤102,在展示图形编码时,调用距离传感器检测设备与遮挡物体之间的距离。
在本实施例中,图形编码的展示可以由用户触发,比如:用户在线下进行电子支付时,打开付款图形编码;用户在线下乘车时,打开乘车图形编码等。上述付款图形编码和乘车图形编码的通常都是动态图形编码,可随时间进行更新。本实施例中,在展示图形编码时,可以调用设备的距离传感器检测设备与遮挡物体之间的距离。其中,以设备是手机为例,其距离传感器通常位于听筒附近,不同设备的距离传感器的位置也可能不同,本实施例在此不再一一赘述。
在本实施例中,在展示图形编码后,通常是要进行扫码操作,所以所述遮挡物体通常为扫码设备,比如:扫码枪、具有扫码功能的终端设备等。当然,所述遮挡物体也可能为其他物体,比如:用户手指或者其他物体等,本实施例对此不作特殊限制。
步骤104,若所述距离满足设定的距离范围,则停止对图形编码的刷新。
基于前述步骤102,在展示图形编码时,若检测到设备与遮挡物体之间的距离满足设定的距离范围,则可以说明当前正在进行扫码操作的概率较高,可以停止对图形编码的刷新,从而避免扫码的过程中图形编码刷新所导致的安全风险,比如:扫码设备扫描到刷新前后的两个图形编码,进而发起两次付款请求等。
其中,所述距离范围通常是扫码设备可以成功扫描到图形编码时与设备的距离范围,可以由开发人员预先进行设定,比如:0cm-5cm、0cm-10cm等。
在本实施例中,在客户端刷新模式下,停止对图形编码的刷新可以包括:在到达图形编码的刷新时刻时,不生成新的图形编码。所述客户端刷新模式指的是由客户端进行图形编码的生成。
以图形编码是付款二维码为例,假设付款二维码的刷新周期是1分钟,遮挡物体是扫码设备。在展示付款二维码之后,若刷新模式是客户端刷新模式,则客户端可以每隔一分钟根据用户的账号信息和时间因子生成新的付款二维码,并用新生成的付款二维码刷新当前正在展示的付款二维码。又假设,客户端在16:22:02展示付款二维码,付款二维码的下一个刷新时刻为16:23:02。如果在16:22:58检测到手机与扫码设备之间的距离满足设定的距离范围,则在16:23:02时,客户端不生成新的付款二维码。
在本实施例中,在服务端刷新模式下,停止对图形编码的刷新可以包括:在到达图形编码的刷新时刻时,不发送刷新请求给服务端。所述服务端刷新模式指的是由服务端进行图形编码的生成,比如:在展示图形编码或者刷新图形编码时,客户端发送请求到服务端,由服务端生成图形编码后下方给客户端。
仍以图形编码是付款二维码、该付款二维码的刷新周期是1分钟,遮挡物体是扫码设备为例。在展示付款二维码之后,若刷新模式是服务端刷新模式,则客户端可以每隔一分钟发送刷新请求到服务端,服务端根据用户的账号信息和时间因子生成新的付款二维码,并用将新生成的二维码下方给客户端,以供客户端进行刷新。又假设,客户端在16:22:02展示付款二维码,付款二维码的 下一个刷新时刻为16:23:02。如果在16:22:58检测到手机与扫码设备之间的距离满足设定的距离范围,则在16:23:02时,客户端不发送刷新请求给服务端。
由以上描述可以看出,本实施例在展示图形编码时,可调用距离传感器检测设备与遮挡物体之间的距离,并在所述距离满足设定的距离范围时,停止对图形编码的刷新,避免扫码设备扫描到刷新前后两个图形编码所造成的安全风险,从而提高动态图形编码的可靠性和安全性。
基于图1所示的实施例,在停止对图形编码的刷新后,若检测到设备与遮挡物体之间的距离不再满足上述距离范围,则可以恢复对图形编码的刷新。
仍以图形编码是付款二维码,付款二维码的刷新周期是1分钟,遮挡物体是扫码设备为例,假设设定的距离范围是0cm-5cm,客户端在16:22:02展示付款二维码,若在16:22:58检测到手机与扫码设备之间的距离是4.5cm,则可以停止对付款二维码的刷新,比如:在下一个刷新时刻16:23:02时,客户端不生成新的付款二维码。又假设,在16:23:15时,检测到手机与扫码设备之间的距离是15cm,不再满足上述距离范围,若此刻仍然在展示付款二维码,则可以恢复对付款二维码的刷新。
在一个例子中,恢复付款二维码刷新的实现方式可以为:在检测到手机与扫码设备之间的距离不再满足上述距离范围时,进行付款二维码的刷新,比如:根据当前时间戳和用户账号生成新的付款二维码以进行刷新。仍以上述举例为例,可以在16:23:15时进行付款二维码的刷新。在付款二维码刷新后,再下一个刷新时刻可以以展示付款二维码的时刻16:22:02为基准,比如:16:24:02;也可以以恢复后的刷新时刻16:23:15为基准,比如:16:24:15,本实施例对此不作特殊限制。
在另一个例子中,恢复付款二维码刷新的实现方式还可以为:在到达下一个刷新时刻时,对付款二维码进行刷新。仍以上述举例为例,在16:23:15时,检测到手机与扫码设备之间的距离是15cm,则可以在付款二维码的下一个刷新时刻16:24:02时进行付款二维码的刷新。
当然,还可以采用其他方式恢复付款二维码的刷新,本实施例对此不作特 殊限制。
基于图1所示的实施例,在停止对图形编码的刷新后,可以在图形编码的停止刷新时长到达设定时长时,恢复对图形编码的刷新。其中,设定时长通常是扫码成功所需的时长,也可以由开发人员进行设置,比如:5s、10s等。
仍以图形编码是付款二维码,付款二维码的刷新周期是1分钟,遮挡物体是扫码设备为例,假设,停止刷新时长是10s,客户端在16:22:02展示付款二维码,若在16:22:58停止对付款二维码的刷新,则可以在16:23:08恢复对付款二维码的刷新。其中,恢复付款二维码刷新的实现方式可以参考前述描述,本实施例在此不再一一赘述。
与前述动态图形编码的实现方法的实施例相对应,本说明书还提供了动态图形编码的实现装置的实施例。
本说明书动态图形编码的实现装置的实施例可以应用在电子设备上。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在电子设备的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图2所示,为本说明书动态图形编码的实现装置所在电子设备的一种硬件结构图,除了图2所示的处理器、内存、网络接口、以及非易失性存储器之外,实施例中装置所在的电子设备通常根据该电子设备的实际功能,还可以包括其他硬件,对此不再赘述。
图3是本说明书一示例性实施例示出的一种动态图形编码的实现装置的框图。
请参考图3,所述动态图形编码的实现装置200可以包括:距离检测单元201、刷新停止单元202、第一恢复单元203以及第二恢复单元204。
其中,距离检测单元201,在展示图形编码时,调用距离传感器检测设备与遮挡物体之间的距离;
刷新停止单元202,若所述距离满足设定的距离范围,则停止对图形编码的刷新。
第一恢复单元203,在停止对图形编码的刷新后,若检测到设备与遮挡物体之间的距离不再满足所述距离范围,则恢复对图形编码的刷新。
第二恢复单元204,在图形编码的停止刷新时长到达设定时长时,恢复对图形编码的刷新。
可选的,所述第一恢复单元203或所述第二恢复单元204,恢复对图形编码的刷新包括:
在到达下一个刷新时刻时,对图形编码进行刷新。
可选的,所述刷新停止单元202,在服务端刷新模式下,若到达所述图形编码的刷新时刻,则不发送刷新请求给服务端。
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本说明书方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。
与前述图1所示的动态图形编码的实现方法的实施例相对应,本说明书还提供一种动态图形编码的实现装置,该动态图形编码的实现装置包括:处理器以及用于存储机器可执行指令的存储器。其中,处理器和存储器通常借由内部总线相互连接。在其他可能的实现方式中,所述设备还可能包括外部接口,以 能够与其他设备或者部件进行通信。
在本实施例中,通过读取并执行所述存储器存储的与动态图形编码的实现控制逻辑对应的机器可执行指令,所述处理器被促使:
在展示图形编码时,调用距离传感器检测设备与遮挡物体之间的距离;
若所述距离满足设定的距离范围,则停止对图形编码的刷新。
可选的,通过读取并执行所述存储器存储的与动态图形编码的实现控制逻辑对应的机器可执行指令,所述处理器还被促使:
在停止对图形编码的刷新后,若检测到设备与遮挡物体之间的距离不再满足所述距离范围,则恢复对图形编码的刷新。
可选的,通过读取并执行所述存储器存储的与动态图形编码的实现控制逻辑对应的机器可执行指令,所述处理器还被促使:
在图形编码的停止刷新时长到达设定时长时,恢复对图形编码的刷新。
可选的,在恢复对图形编码的刷新时,所述处理器被促使:
在到达下一个刷新时刻时,对图形编码进行刷新。
可选的,在停止对图形编码的刷新时,所述处理器被促使:
在服务端刷新模式下,若到达所述图形编码的刷新时刻,则不发送刷新请求给服务端。
与前述图1所示的动态图形编码的实现方法的实施例相对应,本说明书还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现以下步骤:
在展示图形编码时,调用距离传感器检测设备与遮挡物体之间的距离;
若所述距离满足设定的距离范围,则停止对图形编码的刷新。
可选的,还包括:
在停止对图形编码的刷新后,若检测到设备与遮挡物体之间的距离不再满足所述距离范围,则恢复对图形编码的刷新。
可选的,还包括:
在图形编码的停止刷新时长到达设定时长时,恢复对图形编码的刷新。
可选的,所述恢复对图形编码的刷新,包括:
在到达下一个刷新时刻时,对图形编码进行刷新。
可选的,所述停止对图形编码的刷新,包括:
在服务端刷新模式下,若到达所述图形编码的刷新时刻,则不发送刷新请求给服务端。
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。
以上所述仅为本说明书的较佳实施例而已,并不用以限制本说明书,凡在本说明书的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书保护的范围之内。

Claims (11)

  1. 一种动态图形编码的实现方法,包括:
    在展示图形编码时,调用距离传感器检测设备与遮挡物体之间的距离;
    若所述距离满足设定的距离范围,则停止对图形编码的刷新。
  2. 根据权利要求1所述的方法,还包括:
    在停止对图形编码的刷新后,若检测到设备与遮挡物体之间的距离不再满足所述距离范围,则恢复对图形编码的刷新。
  3. 根据权利要求1所述的方法,还包括:
    在图形编码的停止刷新时长到达设定时长时,恢复对图形编码的刷新。
  4. 根据权利要求2或3所述的方法,所述恢复对图形编码的刷新,包括:
    在到达下一个刷新时刻时,对图形编码进行刷新。
  5. 根据权利要求1所述的方法,所述停止对图形编码的刷新,包括:
    在服务端刷新模式下,若到达所述图形编码的刷新时刻,则不发送刷新请求给服务端。
  6. 一种动态图形编码的实现装置,包括:
    距离检测单元,在展示图形编码时,调用距离传感器检测设备与遮挡物体之间的距离;
    刷新停止单元,若所述距离满足设定的距离范围,则停止对图形编码的刷新。
  7. 根据权利要求6所述的装置,还包括:
    第一恢复单元,在停止对图形编码的刷新后,若检测到设备与遮挡物体之间的距离不再满足所述距离范围,则恢复对图形编码的刷新。
  8. 根据权利要求6所述的装置,还包括:
    第二恢复单元,在图形编码的停止刷新时长到达设定时长时,恢复对图形编码的刷新。
  9. 根据权利要求7或8所述的装置,所述第一恢复单元或所述第二恢复单 元,恢复对图形编码的刷新包括:
    在到达下一个刷新时刻时,对图形编码进行刷新。
  10. 根据权利要求6所述的装置,
    所述刷新停止单元,在服务端刷新模式下,若到达所述图形编码的刷新时刻,则不发送刷新请求给服务端。
  11. 一种动态图形编码的实现装置,包括:
    处理器;
    用于存储机器可执行指令的存储器;
    其中,通过读取并执行所述存储器存储的与动态图形编码的实现控制逻辑对应的机器可执行指令,所述处理器被促使:
    在展示图形编码时,调用距离传感器检测设备与遮挡物体之间的距离;
    若所述距离满足设定的距离范围,则停止对图形编码的刷新。
PCT/CN2018/093792 2017-07-03 2018-06-29 动态图形编码的实现方法和装置 WO2019007289A1 (zh)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP2019548323A JP7111732B2 (ja) 2017-07-03 2018-06-29 動的グラフィックコード実施方法及び機器
KR1020197026686A KR102357691B1 (ko) 2017-07-03 2018-06-29 동적 그래픽 코드 구현 방법 및 장치
MYPI2019004985A MY202170A (en) 2017-07-03 2018-06-29 Dynamic graphic code implementation method and apparatus
EP18828672.8A EP3620948B1 (en) 2017-07-03 2018-06-29 Method and apparatus for achieving dynamic graphical code
SG11201907961VA SG11201907961VA (en) 2017-07-03 2018-06-29 Dynamic graphic code implementation method and apparatus
PH12019501986A PH12019501986A1 (en) 2017-07-03 2019-08-29 Dynamic graphic code implementation method and apparatus
US16/557,360 US10943160B2 (en) 2017-07-03 2019-08-30 Dynamic graphic code implementation method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710533338.7A CN107451501B (zh) 2017-07-03 2017-07-03 动态图形编码的实现方法和装置
CN201710533338.7 2017-07-03

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/557,360 Continuation US10943160B2 (en) 2017-07-03 2019-08-30 Dynamic graphic code implementation method and apparatus

Publications (1)

Publication Number Publication Date
WO2019007289A1 true WO2019007289A1 (zh) 2019-01-10

Family

ID=60487666

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/093792 WO2019007289A1 (zh) 2017-07-03 2018-06-29 动态图形编码的实现方法和装置

Country Status (10)

Country Link
US (1) US10943160B2 (zh)
EP (1) EP3620948B1 (zh)
JP (1) JP7111732B2 (zh)
KR (1) KR102357691B1 (zh)
CN (1) CN107451501B (zh)
MY (1) MY202170A (zh)
PH (1) PH12019501986A1 (zh)
SG (1) SG11201907961VA (zh)
TW (1) TWI694380B (zh)
WO (1) WO2019007289A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451501B (zh) * 2017-07-03 2020-03-06 阿里巴巴集团控股有限公司 动态图形编码的实现方法和装置
CN111401884A (zh) * 2020-03-10 2020-07-10 维沃移动通信有限公司 显示方法、装置及电子设备
CN111475233B (zh) * 2020-04-08 2023-07-18 腾讯云计算(北京)有限责任公司 信息获取方法、图形码生成方法以及装置
CN113255857B (zh) * 2021-05-28 2022-09-06 支付宝(杭州)信息技术有限公司 一种图形码的风险检测方法、装置及设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100125509A1 (en) * 2008-11-14 2010-05-20 Kranzley Arthur D Methods and systems for secure mobile device initiated payments using generated image data
CN103218965A (zh) * 2013-03-25 2013-07-24 汪晓春 二维码智能显示装置
CN103729765A (zh) * 2014-01-15 2014-04-16 腾讯科技(深圳)有限公司 一种验证控制方法、终端、服务器、终端设备及系统
CN107451501A (zh) * 2017-07-03 2017-12-08 阿里巴巴集团控股有限公司 动态图形编码的实现方法和装置

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8342406B2 (en) * 2010-09-20 2013-01-01 Research In Motion Limited System and method for data transfer through animated barcodes
US8320970B2 (en) * 2011-02-16 2012-11-27 Google Inc. Mobile device display management
US8672221B2 (en) * 2011-10-31 2014-03-18 Ncr Corporation System and method of securely delivering and verifying a mobile boarding pass
KR101958258B1 (ko) * 2012-08-24 2019-03-14 삼성전자주식회사 적외선 엘이디를 이용하여 바코드에 관한 정보를 전송하는 전자 장치 및 방법
CN103258265B (zh) * 2013-04-11 2019-04-05 郁晓东 一种基于条形码表示的id认证方法
US8985437B2 (en) * 2013-08-07 2015-03-24 International Business Machines Corporation Creation and management of dynamic quick response (QR) codes
US20160027017A1 (en) * 2014-07-22 2016-01-28 Ca, Inc. Method and system for using dynamic cvv in qr code payments
JP6582894B2 (ja) * 2014-12-05 2019-10-02 株式会社デンソーウェーブ 携帯型情報コード表示装置
KR20160084617A (ko) * 2015-01-06 2016-07-14 에스케이플래닛 주식회사 통합 바코드를 이용한 결제 서비스 시스템, 그 시스템에서의 결제 서비스 장치 및 방법
JP6550963B2 (ja) * 2015-06-25 2019-07-31 株式会社リコー 認証システム、画像形成装置、端末装置及びプログラム
CN106896994A (zh) * 2015-12-21 2017-06-27 阿里巴巴集团控股有限公司 一种信息图像显示方法及装置
US10403100B1 (en) * 2016-06-13 2019-09-03 Eleks R&D, Inc. Secure digital coupon display and reading

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100125509A1 (en) * 2008-11-14 2010-05-20 Kranzley Arthur D Methods and systems for secure mobile device initiated payments using generated image data
CN103218965A (zh) * 2013-03-25 2013-07-24 汪晓春 二维码智能显示装置
CN103729765A (zh) * 2014-01-15 2014-04-16 腾讯科技(深圳)有限公司 一种验证控制方法、终端、服务器、终端设备及系统
CN107451501A (zh) * 2017-07-03 2017-12-08 阿里巴巴集团控股有限公司 动态图形编码的实现方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3620948A4 *

Also Published As

Publication number Publication date
CN107451501A (zh) 2017-12-08
EP3620948B1 (en) 2023-06-07
KR102357691B1 (ko) 2022-02-03
US20190385033A1 (en) 2019-12-19
US10943160B2 (en) 2021-03-09
SG11201907961VA (en) 2019-09-27
JP2020524316A (ja) 2020-08-13
MY202170A (en) 2024-04-13
CN107451501B (zh) 2020-03-06
TW201907331A (zh) 2019-02-16
JP7111732B2 (ja) 2022-08-02
KR20200010176A (ko) 2020-01-30
EP3620948A4 (en) 2020-04-29
EP3620948A1 (en) 2020-03-11
PH12019501986A1 (en) 2020-06-29
TWI694380B (zh) 2020-05-21

Similar Documents

Publication Publication Date Title
WO2019007289A1 (zh) 动态图形编码的实现方法和装置
US9208354B2 (en) Techniques for securing use of one-time passwords
TWI669659B (zh) Method and terminal device for displaying information safely
US8997230B1 (en) Hierarchical data security measures for a mobile device
US20220303250A1 (en) Device independent secure messaging
US10420071B2 (en) Methods, apparatus, and systems for displaying notifications
WO2016045548A1 (zh) 一种数据同步方法及装置
US20160103716A1 (en) Method for using shared device in apparatus capable of operating two operating systems
US20140372767A1 (en) Pooling entropy to facilitate mobile device-based true random number generation
US20180196584A1 (en) Execution of multiple applications on a device
US20240056811A1 (en) Verification methods and apparatuses for electronic device insurance
TW202018644A (zh) 基於區塊鏈的資料處理方法、裝置和伺服器
TW201933208A (zh) 資料處理方法、終端設備和資料處理系統
US20190295084A1 (en) Fraud deterrence and/or identification using multi-faceted authorization procedures
US20160085998A1 (en) Electronic device and security protection method for the electronic device
WO2015106513A1 (zh) 一种保护用户数据的方法、终端和计算机存储介质
US9311490B2 (en) Delivery of contextual data to a computing device while preserving data privacy
TW201734877A (zh) 基於應用程序的用戶資訊的隱藏方法及裝置
WO2019095855A1 (zh) 支付凭证信息生成方法及装置、设备
US9980132B2 (en) Method for detecting messages and call request and electronic device adapted thereto
CN111566642A (zh) 通过监视客户端侧存储器堆栈来检测恶意软件
CN116668158A (zh) 交互标识生成方法、交互方法、装置和计算机设备
CN115134148A (zh) 一种bmc管理方法、装置、设备及机器可读存储介质
CN117034244A (zh) 账户安全认证方法、装置、计算机设备和存储介质
CN116308349A (zh) 支付方法、装置、电子设备及可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18828672

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019548323

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20197026686

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2018828672

Country of ref document: EP

Effective date: 20191202

NENP Non-entry into the national phase

Ref country code: DE