WO2019242409A1 - 用于终端设备的二维码生成方法和装置 - Google Patents

用于终端设备的二维码生成方法和装置 Download PDF

Info

Publication number
WO2019242409A1
WO2019242409A1 PCT/CN2019/085146 CN2019085146W WO2019242409A1 WO 2019242409 A1 WO2019242409 A1 WO 2019242409A1 CN 2019085146 W CN2019085146 W CN 2019085146W WO 2019242409 A1 WO2019242409 A1 WO 2019242409A1
Authority
WO
WIPO (PCT)
Prior art keywords
dimensional code
camera
real
generated
picture
Prior art date
Application number
PCT/CN2019/085146
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 EP19823347.0A priority Critical patent/EP3812967A4/en
Priority to US17/044,063 priority patent/US11068682B2/en
Publication of WO2019242409A1 publication Critical patent/WO2019242409A1/zh

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
    • 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
    • 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/06103Constructional details the marking being embedded in a human recognizable image, e.g. a company logo with an embedded two-dimensional code
    • 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/146Methods for optical code recognition the method including quality enhancement steps
    • G06K7/1473Methods for optical code recognition the method including quality enhancement steps error correction
    • 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/3276Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being read by the M-device
    • G06T5/70
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/69Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • 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
    • 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/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1447Methods for optical code recognition including a method step for retrieval of the optical code extracting optical codes from image or text carrying said optical code

Definitions

  • Embodiments of the present application relate to the field of computer technology, and in particular, to a method and device for generating a two-dimensional code for a terminal device.
  • a two-dimensional code is usually a black and white color block arranged on a two-dimensional plane according to a certain rule, and the color block may be a geometric figure such as a square or a triangle.
  • the color blocks in the two-dimensional code can also have other colors with different shades, such as color.
  • the QR code displayed on an electronic device is generally a static black and white picture or a black and white picture containing a static icon in the middle.
  • the existing two-dimensional code usually does not have a background image, or the background image is static. Since the two-dimensional code is valid after the screenshot, it is difficult for the user to identify whether the two-dimensional code to be scanned (a two-dimensional code without a background image or a two-dimensional code with a fixed background image) is a two-shot code created by taking a screenshot or taking a picture. Dimension code. In some special scenarios, such as payment or identity verification, the QR code formed by screenshots will leave room for cheating.
  • the embodiments of the present application propose a method and device for generating a two-dimensional code for a terminal device.
  • an embodiment of the present application provides a method for generating a two-dimensional code for a terminal device.
  • the terminal device includes a camera.
  • the method includes: receiving a two-dimensional code generation instruction input by a user, where the two-dimensional code generation instruction includes Two-dimensional code information; activate the camera to generate a real-time shooting picture of the camera; based on the two-dimensional code information and the generated real-time shooting picture of the camera, generate a real-time picture displaying the two-dimensional code.
  • generating the real-time screen displaying the two-dimensional code based on the two-dimensional code information and the generated real-time camera picture includes: blurring the real-time camera picture; converting the two-dimensional code information into two-dimensional Code, the generated two-dimensional code is displayed on the camera's real-time shooting screen after blur processing.
  • generating a real-time screen displaying a two-dimensional code based on the two-dimensional code information and the generated real-time shooting picture of the camera includes: converting the two-dimensional code information into a two-dimensional code, and real-time shooting on the generated camera.
  • the generated QR code is displayed on the screen.
  • the method further includes: changing the distance between adjacent color blocks in the two-dimensional code.
  • the value is set to a first preset threshold.
  • generating the real-time screen displaying the two-dimensional code based on the two-dimensional code information and the generated real-time shooting picture of the camera includes: setting a target fault tolerance rate of the two-dimensional code, wherein the target fault tolerance rate is greater than the second pre- Set a threshold; convert the QR code information into a QR code based on the target fault tolerance rate, and display the generated QR code in the generated real-time shooting screen of the camera.
  • the method further comprises: turning off the camera in response to receiving a two-dimensional code closing instruction input by the user.
  • an embodiment of the present application provides a two-dimensional code generating device for a terminal device.
  • the terminal device includes a camera.
  • the device includes a receiving unit configured to receive a two-dimensional code generating instruction input by a user.
  • the dimension code generation instruction includes two-dimensional code information;
  • the shooting picture generation unit is configured to start the camera to generate a real-time shooting picture of the camera;
  • the two-dimensional code picture generation unit is configured to take a real-time shooting picture based on the two-dimensional code information and the generated camera To generate a real-time screen displaying a QR code.
  • the two-dimensional code picture generating unit is further configured to: blur the real-time shooting picture of the camera; convert the two-dimensional code information into a two-dimensional code, and display the generated real-time shooting picture on the camera after the blurring process; QR code.
  • the two-dimensional code screen generating unit is further configured to: convert the two-dimensional code information into a two-dimensional code, and display the generated two-dimensional code in the generated real-time shooting screen of the camera.
  • the apparatus further includes: a setting unit configured to set a distance value between adjacent color blocks in the two-dimensional code as a first preset threshold.
  • the QR code picture generating unit is further configured to: set a target error tolerance rate of the QR code, wherein the target error tolerance rate is greater than a second preset threshold; and convert the QR code information into two based on the target error tolerance rate.
  • the dimension code displays the generated two-dimensional code on the generated real-time shooting screen of the camera.
  • the device further includes a camera closing unit configured to turn off the camera in response to receiving a two-dimensional code closing instruction input by the user.
  • the method and device for generating a two-dimensional code for a terminal device can receive a two-dimensional code generation instruction input by a user, and then start a camera to generate a real-time shooting picture of the camera. Finally, based on the two-dimensional code information and the generated The camera's real-time shooting screen can generate a real-time screen displaying a two-dimensional code, so that the code scanning party can distinguish whether the two-dimensional code presented by the user is the originally generated two-dimensional code, improving the security of the two-dimensional code.
  • FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present application can be applied;
  • FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present application can be applied;
  • FIG. 2 is a flowchart of an embodiment of a two-dimensional code generating method for a terminal device according to the present application
  • FIG. 3 is a schematic diagram of an application scenario of a two-dimensional code generating method for a terminal device according to the present application
  • FIG. 4 is a flowchart of still another embodiment of a two-dimensional code generating method for a terminal device according to the present application.
  • FIG. 5 is a schematic structural diagram of an embodiment of a two-dimensional code generating apparatus for a terminal device according to the present application.
  • FIG. 6 is a schematic structural diagram of a computer system suitable for implementing an electronic device according to an embodiment of the present application.
  • FIG. 1 illustrates an exemplary system architecture 100 of an embodiment of a two-dimensional code generating method for a terminal device or a two-dimensional code generating apparatus for a terminal device to which the present application can be applied.
  • the system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105.
  • the network 104 is a medium for providing a communication link between the terminal devices 101, 102, 103 and the server 105.
  • the network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
  • the user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages and the like.
  • a camera is installed on the terminal devices 101, 102, and 103, and the camera can be used for image acquisition.
  • client applications can be installed on the terminal devices 101, 102, 103, such as social platform software, payment applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, and so on.
  • the terminal devices 101, 102, 103 can be various electronic devices with a display screen and supporting image acquisition and two-dimensional code display, including but not limited to smartphones, tablets, e-book readers, laptop computers, and desktop computers and many more.
  • the terminal devices 101, 102, and 103 can not only support image acquisition and two-dimensional code display, but the terminal devices 101, 102, and 103 can also analyze and process the obtained real-time shooting pictures and two-dimensional code information of the camera to obtain two. Dimension code.
  • the method for generating a two-dimensional code for a terminal device provided in the embodiment of the present application may be executed by the terminal devices 101, 102, and 103.
  • a two-dimensional code generating device for a terminal device may also be provided in the terminal devices 101, 102, and 103.
  • the server architecture 105 and the network 104 may not be required in the system architecture 100.
  • the two-dimensional code displayed on the terminal devices 101, 102, and 103 may be obtained by the server 105 by analyzing and processing the received two-dimensional code generation instruction and real-time camera screen data.
  • the terminal devices 101, 102 and 103 may obtain the two-dimensional code information from the server 105 and generate the displayed two-dimensional code through the network 104.
  • the method for generating a two-dimensional code for the terminal device provided by the embodiment of the present application may be executed by the server 105.
  • the two-dimensional code generating device for the terminal device is generally provided in the server 105.
  • the server may be hardware or software.
  • the server can be implemented as a distributed server cluster consisting of multiple servers or as a single server.
  • the server can be implemented as multiple software or software modules (for example, to provide distributed services), or it can be implemented as a single software or software module. It is not specifically limited here.
  • terminal devices, networks, and servers in FIG. 1 are merely exemplary. Depending on the implementation needs, there can be any number of terminal devices, networks, and servers.
  • a flowchart 200 of an embodiment of a method for generating a two-dimensional code for a terminal device according to the present application is shown.
  • the method for generating a two-dimensional code for a terminal device includes the following steps:
  • Step 201 Receive a two-dimensional code generation instruction input by a user.
  • a user when a user uses a terminal device for payment or identity verification, the user can input a two-dimensional code generation instruction to the terminal device through operations such as clicking or touching.
  • An execution subject of a two-dimensional code generating method for a terminal device may receive a two-dimensional code generating instruction input by a user.
  • the above-mentioned two-dimensional code generation instruction may include two-dimensional code information for generating a two-dimensional code.
  • the two-dimensional code information may include data information such as characters, numbers, letters, images, and sounds.
  • Step 202 Start the camera to generate a real-time shooting picture of the camera.
  • the terminal device may be configured with a camera.
  • a camera For example, a front camera or a rear camera of a mobile terminal.
  • the execution body (for example, the terminal devices 101, 102, and 103 shown in FIG. 1) may activate a camera installed on the terminal device. After the camera is started, the surrounding environment can be photographed in real time, so as to generate a real-time shooting picture of the camera. It can be understood that the generated real-time shooting picture of the camera can be displayed on the terminal device.
  • the terminal device may be a mobile phone. After the camera on the mobile phone is started, the screen shot by the camera may be displayed on the display screen of the mobile phone in real time. It can be understood that the real-time shooting images captured by the camera may not be stored.
  • Step 203 Generate a real-time screen displaying the two-dimensional code based on the two-dimensional code information and the generated real-time shooting picture of the camera.
  • the execution subject may generate and display two-dimensional images based on the two-dimensional code information and the camera real-time shooting screen.
  • Real-time picture of the code As an example, the above-mentioned execution body may perform a series of conversions on the two-dimensional code information, and convert the two-dimensional code information into a two-dimensional code graphic storing the two-dimensional code information on a real-time shooting screen of the camera. It can be understood that after the camera is started, the surrounding environment can be photographed in real time, so that the interface of the terminal device can display the current frame picture taken by the camera, and the current frame picture is the real-time camera picture. The two-dimensional code converted from the two-dimensional code information is displayed in a current frame screen captured by a camera, thereby generating a real-time screen displaying the two-dimensional code.
  • the above-mentioned execution body may directly convert the two-dimensional code information into a two-dimensional code graphic in the generated real-time shooting screen of the camera, thereby generating a real-time screen displaying the two-dimensional code.
  • the above-mentioned execution body may also perform image processing on the camera real-time shooting picture collected by the camera, and then convert the two-dimensional code information into a two-dimensional code graphic in the processed camera real-time shooting picture.
  • the two-dimensional code generated by the method provided in the embodiment of the present application is used, and the background image of the two-dimensional code is a user
  • the terminal device where it is located uses the camera to take a real-time picture of the surrounding environment, so that the code scanning party (the party scanning the generated two-dimensional code) can determine the displayed image on the terminal device from the background image of the generated two-dimensional code.
  • the code scanning party the party scanning the generated two-dimensional code
  • the two-dimensional code is an original generated two-dimensional code prevents information leakage caused by screenshots or photos of the two-dimensional code, and improves the security of the two-dimensional code.
  • a code scanning party may scan the generated two-dimensional code. After the code scanning party finishes scanning the generated two-dimensional code, it receives a two-dimensional code closing instruction input by the user, so that the above-mentioned execution subject can turn off the camera.
  • the execution body may directly generate a closing instruction of the two-dimensional code to shut down the camera that has been started.
  • the size of the two-dimensional code graphic in the real-time screen of the two-dimensional code generated and displayed by the execution subject, may be the same as the size of the real-time shooting screen of the camera.
  • the size of the two-dimensional code graphic may be smaller than the size of the real-time shooting picture of the camera, and the two-dimensional code image may be located at the middle position or any corner position of the real-time shooting picture of the camera.
  • converting two-dimensional code information into two-dimensional code graphics may include multiple steps.
  • the original data in the QR code information is encoded into a series of strings according to a certain pattern.
  • the original data is formed into a binary string composed of 0 and 1 according to binary encoding, and then the dark block and 0 are represented according to 1.
  • the principle of representing light-colored blocks further converts a binary string into a color-block column.
  • the sequence of color-blocks is filled into a square matrix according to specific rules to form a two-dimensional code. In general, there is no gap between the color blocks in the generated two-dimensional code. Therefore, after the existing two-dimensional code is generated, the user cannot see the background image of the two-dimensional code through the two-dimensional code.
  • a first preset threshold may be set in advance, and the execution body may control a distance between adjacent color blocks of the generated two-dimensional code to be the first preset threshold. Therefore, by setting the first preset threshold, a certain gap can be left between adjacent color blocks in the generated two-dimensional code, and the user can more easily see the background of the two-dimensional code through the gap, thereby making it easier to identify Shows whether the QR code presented by the user is a screenshot, etc., further improving the security of the QR code.
  • FIG. 3 is a schematic diagram of an application scenario of a two-dimensional code generating method for a terminal device according to this embodiment.
  • the mobile phone may receive a two-dimensional code generation instruction input by the user, and the two-dimensional code generation instruction may include two-dimensional code information.
  • the front camera 301 (or the rear camera) of the mobile phone is activated, so that the front camera of the mobile phone can capture the surrounding environment in real time, thereby generating a real-time camera shooting picture, as shown in the user's avatar shown in FIG. 3.
  • the "camera" application software in the mobile phone can be used here to start the aforementioned camera.
  • a real-time picture 302 superimposed with the two-dimensional code can be generated and displayed on the mobile phone, as shown in FIG. 3.
  • the real-time picture of the superimposed two-dimensional code may include a two-dimensional code figure converted from the two-dimensional code information and a real-time shooting picture of a camera as a dynamic background image, and the real-time picture of the superimposed two-dimensional code may be displayed in the "Camera" application.
  • the method and device for generating a two-dimensional code for a terminal device can receive a two-dimensional code generation instruction input by a user, and then start a camera to generate a real-time shooting picture of the camera. Finally, based on the two-dimensional code information and the generated The camera's real-time shooting screen can generate a real-time screen displaying a two-dimensional code, so that the code scanning party can distinguish whether the two-dimensional code presented by the user is the originally generated two-dimensional code, which improves the security of the two-dimensional code.
  • a flowchart 400 of another embodiment of a two-dimensional code generating method for a terminal device is shown.
  • the process 400 of a method for generating a two-dimensional code for a terminal device includes the following steps:
  • Step 401 Receive a two-dimensional code generation instruction input by a user.
  • a user when a user uses a terminal device for payment or identity verification, the user can input a two-dimensional code generation instruction to the terminal device through operations such as clicking or touching.
  • An execution subject of a two-dimensional code generating method for a terminal device may receive a two-dimensional code generating instruction input by a user.
  • the above-mentioned two-dimensional code generation instruction may include two-dimensional code information for generating a two-dimensional code.
  • the two-dimensional code information may include data information such as characters, numbers, letters, images, and sounds.
  • Step 402 Start the camera to generate a real-time shooting picture of the camera.
  • the terminal device may be configured with a camera.
  • a camera For example, a front camera or a rear camera of a mobile terminal.
  • the above-mentioned execution body (for example, the terminal devices 101, 102, and 103 shown in FIG. 1) may start a camera installed on the terminal device. After the camera is started, the surrounding environment can be photographed in real time, so as to obtain a real-time camera image of the generated camera. It can be understood that the generated real-time shooting picture of the camera can be displayed on the terminal device.
  • the terminal device may be a mobile phone. After the camera on the mobile phone is started, the screen shot by the camera may be displayed on the display screen of the mobile phone in real time.
  • the real-time shooting picture taken by the camera may not be stored.
  • the real-time shooting picture of the camera may be a picture displayed on the interface of the “Camera” application in the mobile phone, without the need to display the picture displayed in the interface. The picture is stored for storage.
  • Step 403 Blur the real-time image captured by the camera.
  • the above-mentioned execution subject may use various methods such as a direct convolution method, a FFT (fast Fourier transform) method based on a convolution theorem, and an integral graph method. Blur the generated real-time image of the camera.
  • a blurred image can be obtained by reducing the real-time image of the camera and then performing a convolution operation. Specifically, firstly, an appropriate zoom factor can be selected to reduce the real-time shooting picture of the camera; then the convolution operation is performed on the filter template and the reduced real-time shooting picture of the camera to make the real-time shooting picture of the reduced camera blur. Finally, The reduced blurred image is enlarged by a linear interpolation operation, so that a blurred camera with the same size as the original image can be taken in real time.
  • Step 404 Convert the two-dimensional code information into a two-dimensional code, and display the generated two-dimensional code in a real-time shooting screen of the camera after the blur processing.
  • the above-mentioned execution subject may convert the two-dimensional code information into a two-dimensional code graphic, and display the converted image in the real-time shooting picture of the camera after the blurring process.
  • QR code The process of blurring the real-time image of the camera and generating a two-dimensional code graphic on it can improve the success rate of scanning the generated two-dimensional code.
  • the generated two-dimensional code image may be composed of black blocks and white blocks. There may also be black or white blocks with the same or similar shape as the black blocks and white blocks in the two-dimensional code.
  • the existence of this color block may cause the QR code generated in the real-time shooting screen of the unprocessed camera to be scanned.
  • it can be reduced to judge the black or white blocks in the two-dimensional code that have the same or similar shape as the black and white blocks in the two-dimensional code as a part of the generated two-dimensional code. Probability, thereby increasing the probability that the generated QR code will be scanned successfully.
  • generating a real-time picture displaying a QR code based on the QR code information may further include: setting a target error tolerance rate of the QR code, wherein the target error tolerance rate is greater than a second preset Threshold value; the QR code information is converted into a QR code with a target fault tolerance rate, and the generated QR code is displayed in the generated real-time shooting screen of the camera.
  • the target fault tolerance rate can be set for the QR code to be generated, and the target fault tolerance rate can be guaranteed by limiting the target fault tolerance rate to be greater than a second preset threshold.
  • the above-mentioned execution body may convert the two-dimensional code information into a two-dimensional code based on the target fault tolerance rate, and display the generated two-dimensional code in the generated real-time shooting screen of the camera.
  • This method can also improve the scanning success rate of the generated two-dimensional code.
  • the error tolerance rate of a two-dimensional code can also be referred to as the error correction rate of the two-dimensional code, which can usually characterize the ability of the two-dimensional code to be scanned after being blocked. In general, the higher the fault tolerance rate, the more obscurable parts in the QR code graphics can be.
  • generating a real-time picture displaying a QR code based on the QR code information may further include: setting a target error tolerance rate of the QR code, wherein the target error tolerance rate is greater than a second preset Threshold value; the QR code information is converted into a QR code based on the target fault tolerance rate, and the generated QR code is displayed in the real-time shooting screen of the camera after the blur processing.
  • the process 400 of the method for generating a two-dimensional code for a terminal device in this embodiment highlights real-time shooting based on the two-dimensional code information and the generated camera. Screen, the step of generating a real-time screen displaying a two-dimensional code. Therefore, while the solution described in this embodiment improves the security of the two-dimensional code, it can increase the probability that the two-dimensional code is successfully scanned.
  • this application provides an embodiment of a two-dimensional code generating device for a terminal device.
  • the device embodiment and the method embodiment shown in FIG. 2 Correspondingly, the device can be specifically applied to various electronic devices.
  • the two-dimensional code generating apparatus 500 for a terminal device in this embodiment includes a receiving unit 501, a shooting picture generating unit 502, and a two-dimensional code picture generating unit 503.
  • the terminal device may include a camera.
  • the receiving unit 501 is configured to receive a two-dimensional code generating instruction input by a user, where the two-dimensional code generating instruction includes two-dimensional code information;
  • the shooting picture generating unit 502 is configured to start a camera and generate a real-time shooting picture of the camera; two-dimensionally
  • the code screen generating unit 503 is configured to generate a real-time screen on which the two-dimensional code is displayed based on the two-dimensional code information and the generated camera real-time shooting screen.
  • the receiving unit 501 may receive a two-dimensional code generating instruction input by a user, and then the shooting screen generating unit 502 may start a camera to generate a real-time shooting screen of the camera.
  • the two-dimensional code screen generating unit 503 can generate a real-time screen displaying a two-dimensional code based on the two-dimensional code information and the generated camera, so that the user can distinguish whether the generated two-dimensional code is a two-dimensional code screenshot, and improve The security of QR code information.
  • the two-dimensional code picture generating unit 503 is further configured to: blur the real-time shooting picture of the camera; convert the two-dimensional code information into a two-dimensional code.
  • the generated QR code is displayed on the camera's live shooting screen.
  • the two-dimensional code screen generating unit 503 is further configured to: convert the two-dimensional code information into a two-dimensional code, and display the generated two-dimensional code in the generated real-time shooting screen of the camera. Dimension code.
  • the apparatus 500 further includes: a setting unit configured to set a distance value between adjacent color blocks in the two-dimensional code as a first preset threshold.
  • the QR code picture generating unit 503 is further configured to: set a target error tolerance rate of the QR code, wherein the target error tolerance rate is greater than a second preset threshold; based on the target error tolerance rate
  • the two-dimensional code information is converted into a two-dimensional code, and the generated two-dimensional code is displayed on the generated camera real-time shooting screen.
  • the apparatus 500 further includes a camera closing unit configured to close the camera in response to receiving a two-dimensional code closing instruction input by a user.
  • FIG. 6 illustrates a schematic structural diagram of a computer system 600 suitable for implementing an electronic device (for example, the terminal devices 101, 102, and 103 in FIG. 1) of the embodiment of the present application.
  • the electronic device shown in FIG. 6 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present application.
  • the computer system 600 includes a central processing unit (CPU) 601, which can be loaded into a random access memory (RAM) 603 according to a program stored in a read-only memory (ROM) 602 or loaded from a storage portion 608 Instead, perform various appropriate actions and processes.
  • RAM random access memory
  • ROM read-only memory
  • various programs and data required for the operation of the system 600 are also stored.
  • the CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604.
  • An input / output (I / O) interface 605 is also connected to the bus 604.
  • the following components are connected to the I / O interface 605: an input portion 606 including a keyboard, a mouse, a camera, etc .; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; and a storage including a hard disk, etc.
  • 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 necessary.
  • a removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
  • the process described above with reference to the flowchart may be implemented as a computer software program.
  • embodiments of the present application include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing the method shown in the flowchart.
  • the computer program may be downloaded and installed from a network through the communication section 609, and / or installed from a removable medium 611.
  • CPU central processing unit
  • the above-mentioned functions defined in the method of the present application are executed.
  • the computer-readable medium described in this application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.
  • the 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 thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programming read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal that is included in baseband or propagated as part of a carrier wave, and which carries computer-readable program code. Such a propagated data signal may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit 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, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • Computer program code for performing the operations of this application may be written in one or more programming languages, or a combination thereof, including programming languages such as Java, Smalltalk, C ++, and also conventional Procedural programming language—such as "C" or a similar programming language.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, as an independent software package, partly on the user's computer, partly on a remote computer, or entirely on a remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider Internet connection).
  • LAN local area network
  • WAN wide area network
  • Internet service provider Internet connection such as AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
  • each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, which contains one or more functions to implement a specified logical function Executable instructions.
  • the functions labeled in the blocks may also occur in a different order than those labeled in the drawings. For example, two blocks represented one after the other may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts can be implemented by a dedicated hardware-based system that performs the specified function or operation , Or it can be implemented with a combination of dedicated hardware and computer instructions.
  • the units described in the embodiments of the present application can be implemented by software or hardware.
  • the described unit may also be provided in a processor, for example, it may be described as: a processor includes a receiving unit, a shooting picture generating unit, and a two-dimensional code picture generating unit.
  • a processor includes a receiving unit, a shooting picture generating unit, and a two-dimensional code picture generating unit.
  • the names of these units do not in any way constitute a limitation on the unit itself.
  • the receiving unit may also be described as a “unit that receives a two-dimensional code generation instruction input by a user”.
  • the present application further provides a computer-readable medium, which may be included in the device described in the foregoing embodiments; or may exist alone without being assembled into the device.
  • the computer-readable medium carries one or more programs.
  • the device is caused to receive a two-dimensional code generation instruction input by a user, where the two-dimensional code generation instruction includes a two-dimensional code. Code information; start the camera to generate a real-time shooting picture of the camera; based on the two-dimensional code information and the generated real-time shooting picture of the camera, generate a real-time picture displaying the two-dimensional code.

Abstract

本申请实施例公开了用于终端设备的二维码生成方法和装置。终端设备包括摄像头,该方法的一具体实施方式包括:接收用户输入的二维码生成指令,其中,二维码生成指令包括二维码信息;启动摄像头,生成摄像头实时拍摄画面;基于二维码信息和所生成的摄像头实时拍摄画面,生成显示有二维码的实时画面。该实施方式使得用户可以清楚地辨别出二维码是否为原始生成的二维码,提高了二维码的安全性。

Description

用于终端设备的二维码生成方法和装置
本专利申请要求于2018年6月22日提交的、申请号为201810653369.0、申请人为北京京东尚科信息技术有限公司和北京京东世纪贸易有限公司、发明名称为“用于终端设备的二维码生成方法和装置”的中国专利申请的优先权,该申请的全文以引用的方式并入本申请中。
技术领域
本申请实施例涉及计算机技术领域,具体涉及用于终端设备的二维码生成方法和装置。
背景技术
随着信息处理技术的发展,二维码以其编码范围广等特点得到了广泛的应用。二维码通常是在二维平面上按照一定的规律排列的黑白相间的色块,且色块可以为正方形、三角形等几何图形。当然,二维码中的色块还可以为深浅不同的其它颜色,例如彩色。
目前,电子设备上显示的二维码一般为静态的黑白图片或者是中间包含一个静态图标的黑白图片。现有的二维码通常没有背景图像,或者背景图像一成不变。由于二维码在截图后还是有效的,因此用户很难辨认出待扫描的二维码(没有背景图像的二维码或者背景图像一成不变的二维码)是否为截图、拍照等而成的二维码。在某些特殊的场景下,例如支付或身份验证等,截图等形成的二维码会给人留下作弊的空间。
发明内容
本申请实施例提出了用于终端设备的二维码生成方法和装置。
第一方面,本申请实施例提供了一种用于终端设备的二维码生成方法,终端设备包括摄像头,该方法包括:接收用户输入的二维码生成指令,其中,二维码生成指令包括二维码信息;启动摄像头,生成 摄像头实时拍摄画面;基于二维码信息和所生成的摄像头实时拍摄画面,生成显示有二维码的实时画面。
在一些实施例中,基于二维码信息和所生成的摄像头实时拍摄画面,生成显示有二维码的实时画面,包括:对摄像头实时拍摄画面进行模糊处理;将二维码信息转换成二维码,在模糊处理后的摄像头实时拍摄画面中显示生成的二维码。
在一些实施例中,基于二维码信息和所生成的摄像头实时拍摄画面,生成显示有二维码的实时画面,包括:将二维码信息转换成二维码,在所生成的摄像头实时拍摄画面中显示生成的二维码。
在一些实施例中,在基于二维码信息和所生成的摄像头实时拍摄画面,生成显示有二维码的实时画面之后,方法还包括:将二维码中相邻的色块之间的距离值设置为第一预设阈值。
在一些实施例中,基于二维码信息和所生成的摄像头实时拍摄画面,生成显示有二维码的实时画面,包括:设置二维码的目标容错率,其中,目标容错率大于第二预设阈值;基于目标容错率将二维码信息转换成二维码,在所生成的摄像头实时拍摄画面中显示生成的二维码。
在一些实施例中,方法还包括:响应于接收到用户输入的二维码关闭指令,关闭摄像头。
第二方面,本申请实施例提供了一种用于终端设备的二维码生成装置,终端设备包括摄像头,装置包括:接收单元,被配置成接收用户输入的二维码生成指令,其中,二维码生成指令包括二维码信息;拍摄画面生成单元,被配置成启动摄像头,生成摄像头实时拍摄画面;二维码画面生成单元,被配置成基于二维码信息和所生成的摄像头实时拍摄画面,生成显示有二维码的实时画面。
在一些实施例中,二维码画面生成单元进一步被配置成:对摄像头实时拍摄画面进行模糊处理;将二维码信息转换成二维码,在模糊处理后的摄像头实时拍摄画面中显示生成的二维码。
在一些实施例中,二维码画面生成单元进一步被还配置成:将二维码信息转换成二维码,在所生成的摄像头实时拍摄画面中显示生成的二维码。
在一些实施例中,装置还包括:设置单元,被配置成将二维码中相邻的色块之间的距离值设置为第一预设阈值。
在一些实施例中,二维码画面生成单元进一步被配置成:设置二维码的目标容错率,其中,目标容错率大于第二预设阈值;基于目标容错率将二维码信息转换成二维码,在所生成的摄像头实时拍摄画面中显示生成的二维码。
在一些实施例中,装置还包括:摄像头关闭单元,被配置成响应于接收到用户输入的二维码关闭指令,关闭摄像头。
本申请实施例提供的用于终端设备的二维码生成方法和装置,可以接收用户输入的二维码生成指令,而后可以启动摄像头生成摄像头实时拍摄画面,最后基于二维码信息和所生成的摄像头实时拍摄画面可以生成显示有二维码的实时画面,从而使得扫码方可以辨别出用户出示的二维码是否为原始生成的二维码,提高了二维码的安全性。
附图说明
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:
图1是本申请的一个实施例可以应用于其中的示例性系统架构图;
图2是根据本申请的用于终端设备的二维码生成方法的一个实施例的流程图;
图3是根据本申请的用于终端设备的二维码生成方法的一个应用场景的示意图;
图4是根据本申请的用于终端设备的二维码生成方法的又一个实施例的流程图;
图5是根据本申请的用于终端设备的二维码生成装置的一个实施例的结构示意图;
图6是适于用来实现本申请实施例的电子设备的计算机系统的结构示意图。
具体实施方式
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。
图1示出了可以应用本申请的用于终端设备的二维码生成方法或用于终端设备的二维码生成装置的实施例的示例性系统架构100。
如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上安装有摄像头,该摄像头可以用于图像采集。终端设备101、102、103上可以安装有各种客户端应用,例如社交平台软件、支付类应用、网页浏览器应用、购物类应用、搜索类应用、即时通信工具、邮箱客户端等。
终端设备101、102、103可以是具有显示屏并且支持图像采集和二维码显示的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、膝上型便携计算机和台式计算机等等。
可以理解的是,终端设备101、102、103可以不仅支持图像采集和二维码显示,终端设备101、102、103还可以对得到的摄像头实时拍摄画面和二维码信息等进行分析处理得到二维码。此时,本申请实施例所提供的用于终端设备的二维码生成方法可以由终端设备101、102、103执行。相应地,用于终端设备的二维码生成装置也可以设置于终端设备101、102、103中。此时,系统架构100中可以不需要设置服务器105和网络104。
还可以理解的是,终端设备101、102、103上显示的二维码可以 是服务器105对接收到的二维码生成指令和摄像头实时拍摄画面等数据进行分析等处理得到的,终端设备101、102、103可以通过网络104从服务器105获取二维码信息并生成的显示的二维码。此时,本申请实施例所提供的用于终端设备的二维码生成方法可以由服务器105执行,相应地,用于终端设备的二维码生成装置一般设置于服务器105中。
需要说明的是,服务器可以是硬件,也可以是软件。当服务器为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。当服务器为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务),也可以实现成单个软件或软件模块。在此不做具体限定。
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。
继续参考图2,示出了根据本申请的用于终端设备的二维码生成方法的一个实施例的流程200。该用于终端设备的二维码生成方法,包括以下步骤:
步骤201,接收用户输入的二维码生成指令。
在本实施例中,用户在使用终端设备进行付款或身份验证等的情况下,用户可以通过点击或触控等操作向终端设备输入二维码生成指令。用于终端设备的二维码生成方法的执行主体(例如图1所示的终端设备101、102、103)可以接收用户输入的二维码生成指令。其中,上述二维码生成指令可以包括用于生成二维码的二维码信息。通常,二维码信息可以包括文字、数字、字母、图像、声音等数据信息。
步骤202,启动摄像头,生成摄像头实时拍摄画面。
在本实施例中,终端设备可以配置有摄像头。例如,手机终端的前置摄像头或后置摄像头等。响应于步骤201接收到二维码生成指令,上述执行主体(例如图1所示的终端设备101、102、103)可以启动终端设备上所安装的摄像头。摄像头被启动以后可以实时地对周围环境进行拍摄,从而生成摄像头实时拍摄画面。可以理解的是,所生成的摄像头实时拍摄画面可以显示在终端设备上。作为示例,终端设备可 以为手机,手机上的摄像头启动之后可以在手机的显示屏上实时显示摄像头拍摄到的画面。可以理解的是,对摄像头拍摄到的实时拍摄画面可以不进行存储。
步骤203,基于二维码信息和所生成的摄像头实时拍摄画面,生成显示有二维码的实时画面。
在本实施例中,在接收到二维码生成指令中的二维码信息和摄像头采集生成的摄像头实时拍摄画面之后,上述执行主体可以基于二维码信息和摄像头实时拍摄画面生成显示有二维码的实时画面。作为示例,上述执行主体可以将二维码信息进行一系列的转换,在摄像头实时拍摄画面上将二维码信息转换成存储有二维码信息的二维码图形。可以理解的是,摄像头启动之后可以对周围环境进行实时地拍摄,从而使得终端设备的界面上可以显示摄像头拍摄的当前帧画面,该当前帧画面即为摄像头实时拍摄画面。将二维码信息转换而成的二维码显示在由摄像头拍摄得到的当前帧画面中,从而生成显示有二维码的实时画面。
在本实施的一些可选的实现方式中,上述执行主体可以将二维码信息直接在生成的摄像头实时拍摄画面中转换成二维码图形,从而生成显示有二维码的实时画面。或者,上述执行主体还可以对摄像头采集生成的摄像头实时拍摄画面进行图像处理,而后将二维码信息在处理后的摄像头实时拍摄画面中转换成二维码图形。
与现有技术中的无背景图像的静态二维码和有背景图像的静态二维码相比,利用本申请实施例提供的方法所生成的二维码,该二维码的背景图像为用户所在终端设备利用摄像头对周围环境拍摄得到的实时画面,从而使得扫码方(对生成的二维码进行扫描的一方)可以从所生成的二维码的背景图像判断出终端设备上所显示的二维码是否为原始生成的二维码,避免了二维码被截图或拍照造成信息泄露,提高了二维码的安全性。
在本实施例的一些可选的实现方式中,上述执行主体在生成显示有二维码的实时画面之后,扫码方可以对生成的二维码进行扫描。当扫码方对生成的二维码扫描完成后,接收用户输入的二维码关闭指令, 以便于上述执行主体可以关闭摄像头。
在本实施例的一些可选的实现方式中,当扫码方对生成的二维码扫描完成后,上述执行主体可以直接生成二维码的关闭指令,关闭已经启动的摄像头。
在本实施例的一些可选的实现方式中,在上述执行主体生成并显示的二维码实时画面中,二维码图形的尺寸可以与摄像头实时拍摄画面的尺寸相同。或者,二维码图形的尺寸可以小于摄像头实时拍摄画面的尺寸,且二维码图像可以位于摄像头实时拍摄画面的中间位置或任意角落位置。
通常,将二维码信息转换为二维码图形可以包括多个步骤。首先,把二维码信息中的原始数据按照一定的模式编码为一系列的字符串,如按照二进制编码将原始数据构成由0和1构成的二进制字符串,而后根据1代表深色块、0代表浅色块这一原则将二进制字符串进一步转化为一个色块列,最后遵循特定的规则将该色块序列填入一个方形矩阵,从而形成二维码。一般情况下,生成的二维码中色块之间是不存在缝隙的,因此现有的二维码生成之后,用户无法透过二维码看到二维码的背景图像。本申请的上述实施例提供的方法,可以预先设置第一预设阈值,上述执行主体可以控制所生成的二维码的相邻色块之间的距离为第一预设阈值。因此,通过设置第一预设阈值,可以使得生成的二维码中相邻色块之间留出一定的缝隙,用户通过缝隙可以更方便地看到二维码的背景,从而更容易地辨别出用户出示的二维码是否为截图等,进一步提高了二维码的安全性。
继续参见图3,图3是根据本实施例的用于终端设备的二维码生成方法的应用场景的一个示意图。在图3的应用场景中,手机可以接收用户输入的二维码生成指令,该二维码生成指令中可以包括二维码信息。而后,启动手机的前置摄像头301(或后置摄像头),以便于手机的前置摄像头可以实时拍摄周围环境,从而生成摄像头实时拍摄画面,如图3所示的用户头像。可以理解的是,这里可以利用手机中的“相机”应用软件来启动上述摄像头。最后,基于二维码信息和摄像头实时拍摄画面,可以在手机上生成并显示叠加二维码的实时画面 302,如图3所示。该叠加二维码的实时画面可以包括由二维码信息转换而来的二维码图形和作为动态的背景图像的摄像头实时拍摄画面,并且叠加二维码的实时画面可以显示在“相机”应用软件所打开的界面上。
本申请实施例提供的用于终端设备的二维码生成方法和装置,可以接收用户输入的二维码生成指令,而后可以启动摄像头生成摄像头实时拍摄画面,最后基于二维码信息和所生成的摄像头实时拍摄画面可以生成显示有二维码的实时画面,从而使得扫码方可以辨别用户出示的二维码是否为原始生成的二维码,提高了二维码的安全性。
进一步参考图4,其示出了用于终端设备的二维码生成方法的另一个实施例的流程400。该用于终端设备的二维码生成方法的流程400,包括以下步骤:
步骤401,接收用户输入的二维码生成指令。
在本实施例中,用户在使用终端设备进行付款或身份验证等情况下,用户可以通过点击或触控等操作向终端设备输入二维码生成指令。用于终端设备的二维码生成方法的执行主体(例如图1所示的终端设备101、102、103)可以接收用户输入的二维码生成指令。其中,上述二维码生成指令可以包括用于生成二维码的二维码信息。通常,二维码信息可以包括文字、数字、字母、图像、声音等数据信息。
步骤402,启动摄像头,生成摄像头实时拍摄画面。
在本实施例中,终端设备可以配置有摄像头。例如,手机终端的前置摄像头或后置摄像头等。基于步骤201接收到的二维码生成指令,上述执行主体(例如图1所示的终端设备101、102、103)可以启动终端设备上所安装的摄像头。摄像头启动以后可以实时地对周围环境进行拍摄,从而得到生成的摄像头实时拍摄画面。可以理解的是,所生成的摄像头实时拍摄画面可以显示在终端设备上。作为示例,终端设备可以为手机,手机上的摄像头启动之后可以在手机的显示屏上实时显示摄像头拍摄到的画面。可以理解的是,对摄像头拍摄到的实时拍摄画面可以不进行存储,例如,该摄像头实时拍摄画面可以为手机中打开“相机”应用的界面所展示的画面,而不需要对界面中所展示的 画面进行拍照存储。
步骤403,对摄像头实时拍摄画面进行模糊处理。
在本实施例中,基于步骤402生成的摄像头实时拍摄画面,上述执行主体可以利用直接卷积法、基于卷积定理的FFT(fast Fourier transform,快速傅立叶变换)方法和积分图方法等各种方式对所生成的摄像头实时拍摄画面进行模糊处理。
作为示例,可以采用对摄像头实时拍摄画面进行缩小后再进行卷积运算的方式得到模糊处理后的图片。具体地,首先可以选择合适的缩放因子来将生成的摄像头实时拍摄画面缩小;而后将滤波模板和缩小后的摄像头实时拍摄画面进行卷积运算以使缩小后的摄像头实时拍摄画面模糊;最后可以对缩小的模糊图像通过线性插值运算进行放大,从而可以得到一张和原图大小相同的模糊的摄像头实时拍摄画面。
步骤404,将二维码信息转换成二维码,在模糊处理后的摄像头实时拍摄画面中显示生成的二维码。
在本实施中,基于步骤403得到的模糊处理后的摄像头实时拍摄画面,上述执行主体可以将二维码信息转换成二维码图形,并在模糊处理后的摄像头实时拍摄画面中显示转换成的二维码。将摄像头实时拍摄画面模糊化处理后再在其上生成二维码图形,可以提高所生成的二维码的扫码成功率。
作为示例,所生成的二维码图像可以为黑色块和白色块组成,摄像头实时拍摄画面中也有可能会存在与二维码中的黑色块和白色块形状相同或相似的黑色块或白色块,这种色块的存在可能会导致在未经处理的摄像头实时拍摄画面中生成的二维码被扫码失败。但是,将摄像头实时拍摄画面进行模糊化处理后,可以降低将其中的、与二维码中的黑色块和白色块形状相同或相似的黑色块或白色块判断成生成的二维码中的一部分的概率,从而提高了所生成的二维码被扫码成功的概率。
在本实施的一些可选的实现方式中,基于二维码信息,生成显示有二维码的实时画面还可以包括:设置二维码的目标容错率,其中,目标容错率大于第二预设阈值;以目标容错率将二维码信息转变换成 二维码,在所生成的摄像头实时拍摄画面中显示生成的二维码。具体地,上述执行主体在启动摄像头生成摄像头实时拍摄画面之后,可以为待生成的二维码设置目标容错率,并通过限定该目标容错率大于第二预设阈值来保证该目标容错率可以为一个较大的值;而后,上述执行主体可以基于上述目标容错率将二维码信息转换成二维码,并在所生成的摄像头实时拍摄画面中显示所生成的二维码。该方法同样地可以提高所生成的二维码的扫码成功率。二维码的容错率,也可以称为二维码的纠错率,通常可以表征二维码被遮挡后仍可以被扫描出来的能力。一般情况下,容错率越高,二维码图形中可被遮挡的部分可以越多。
在本实施的一些可选的实现方式中,基于二维码信息,生成显示有二维码的实时画面还可以包括:设置二维码的目标容错率,其中,目标容错率大于第二预设阈值;基于目标容错率将二维码信息转变换成二维码,在模糊处理后的摄像头实时拍摄画面中显示生成的二维码。
从图4中可以看出,与图2对应的实施例相比,本实施例中的用于终端设备的二维码生成方法的流程400突出了基于二维码信息和所生成的摄像头实时拍摄画面,生成显示有二维码的实时画面的步骤。由此,本实施例描述的方案在提高了二维码的安全性的同时,可以提高二维码被扫描成功的概率。
进一步参考图5,作为对上述各图所示方法的实现,本申请提供了一种用于终端设备的二维码生成装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。
如图5所示,本实施例的用于终端设备的二维码生成装置500包括:接收单元501、拍摄画面生成单元502和二维码画面生成单元503。该终端设备可以包括摄像头。其中,接收单元501被配置成接收用户输入的二维码生成指令,其中,二维码生成指令包括二维码信息;拍摄画面生成单元502被配置成启动摄像头,生成摄像头实时拍摄画面;二维码画面生成单元503被配置成基于二维码信息和所生成的摄像头实时拍摄画面,生成显示有二维码的实时画面。
本申请的上述实施例提供的用于终端设备的二维码生成装置500,接收单元501可以接收用户输入的二维码生成指令,而后拍摄画面生成单元502可以启动摄像头生成摄像头实时拍摄画面,最后二维码画面生成单元503基于二维码信息和所生成的摄像头实时拍摄画面可与生成显示有二维码的实时画面,从而使得用户可以辨别生成的二维码是否为二维码截图,提高了二维码信息的安全性。
在本实施例的一些可选的实现方式中,二维码画面生成单元503进一步被配置成:对摄像头实时拍摄画面进行模糊处理;将二维码信息转换成二维码,在模糊处理后的摄像头实时拍摄画面中显示生成的二维码。
在本实施例的一些可选的实现方式中,二维码画面生成单元503进一步被还配置成:将二维码信息转换成二维码,在所生成的摄像头实时拍摄画面中显示生成的二维码。
在本实施例的一些可选的实现方式中,装置500还包括:设置单元,被配置成将二维码中相邻的色块之间的距离值设置为第一预设阈值。
在本实施例的一些可选的实现方式中,二维码画面生成单元503进一步被配置成:设置二维码的目标容错率,其中,目标容错率大于第二预设阈值;基于目标容错率将二维码信息转换成二维码,在所生成的摄像头实时拍摄画面中显示生成的二维码。
在本实施例的一些可选的实现方式中,装置500还包括:摄像头关闭单元,被配置成响应于接收到用户输入的二维码关闭指令,关闭摄像头。
下面参考图6,其示出了适于用来实现本申请实施例的电子设备(例如,图1中的终端设备101、102、103)的计算机系统600的结构示意图。图6示出的电子设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。
如图6所示,计算机系统600包括中央处理单元(CPU)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储部分608 加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有系统600操作所需的各种程序和数据。CPU 601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。
以下部件连接至I/O接口605:包括键盘、鼠标、摄像头等的输入部分606;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分607;包括硬盘等的存储部分608;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分609。通信部分609经由诸如因特网的网络执行通信处理。驱动器610也根据需要连接至I/O接口605。可拆卸介质611,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器610上,以便于从其上读出的计算机程序根据需要被安装入存储部分608。
特别地,根据本申请的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分609从网络上被下载和安装,和/或从可拆卸介质611被安装。在该计算机程序被中央处理单元(CPU)601执行时,执行本申请的方法中限定的上述功能。需要说明的是,本申请所述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基 带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。
可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本申请实施例中所涉及到的单元可以通过软件的方式实 现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括接收单元、拍摄画面生成单元、二维码画面生成单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,接收单元还可以被描述为“接收用户输入的二维码生成指令的单元”。
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的装置中所包含的;也可以是单独存在,而未装配入该装置中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该装置执行时,使得该装置:接收用户输入的二维码生成指令,其中,二维码生成指令包括二维码信息;启动摄像头,生成摄像头实时拍摄画面;基于二维码信息和所生成的摄像头实时拍摄画面,生成显示有二维码的实时画面。
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。

Claims (14)

  1. 一种用于终端设备的二维码生成方法,所述终端设备包括摄像头,所述方法包括:
    接收用户输入的二维码生成指令,其中,所述二维码生成指令包括二维码信息;
    启动所述摄像头,生成摄像头实时拍摄画面;
    基于所述二维码信息和所生成的摄像头实时拍摄画面,生成显示有二维码的实时画面。
  2. 根据权利要求1所述的方法,其中,所述基于所述二维码信息和所生成的摄像头实时拍摄画面,生成显示有二维码的实时画面,包括:
    对所述摄像头实时拍摄画面进行模糊处理;
    将所述二维码信息转换成二维码,在模糊处理后的所述摄像头实时拍摄画面中显示生成的二维码。
  3. 根据权利要求1所述的方法,其中,所述基于所述二维码信息和所生成的摄像头实时拍摄画面,生成显示有二维码的实时画面,包括:
    将所述二维码信息转换成二维码,在所生成的摄像头实时拍摄画面中显示生成的二维码。
  4. 根据权利要求1所述的方法,其中,在基于所述二维码信息和所生成的摄像头实时拍摄画面,生成显示有二维码的实时画面之后,所述方法还包括:
    将所述二维码中相邻的色块之间的距离值设置为第一预设阈值。
  5. 根据权利要求1所述的方法,其中,所述基于所述二维码信息和所生成的摄像头实时拍摄画面,生成显示有二维码的实时画面,包 括:
    设置二维码的目标容错率,其中,所述目标容错率大于第二预设阈值;
    基于所述目标容错率将所述二维码信息转换成二维码,在所生成的摄像头实时拍摄画面中显示生成的二维码。
  6. 根据权利要求1-5任一所述的方法,其中,所述方法还包括:
    响应于接收到用户输入的二维码关闭指令,关闭所述摄像头。
  7. 一种用于终端设备的二维码生成装置,所述终端设备包括摄像头,所述装置包括:
    接收单元,被配置成接收用户输入的二维码生成指令,其中,所述二维码生成指令包括二维码信息;
    拍摄画面生成单元,被配置成启动所述摄像头,生成摄像头实时拍摄画面;
    二维码画面生成单元,被配置成基于所述二维码信息和所生成的摄像头实时拍摄画面,生成显示有二维码的实时画面。
  8. 根据权利要求7所述的装置,其中,所述二维码画面生成单元进一步被配置成:
    对所述摄像头实时拍摄画面进行模糊处理;
    将所述二维码信息转换成二维码,在模糊处理后的所述摄像头实时拍摄画面中显示生成的二维码。
  9. 根据权利要求7所述的装置,其中,所述二维码画面生成单元进一步被还配置成:
    将所述二维码信息转换成二维码,在所生成的摄像头实时拍摄画面中显示生成的二维码。
  10. 根据权利要求7所述的装置,其中,所述装置还包括:
    设置单元,被配置成将所述二维码中相邻的色块之间的距离值设置为第一预设阈值。
  11. 根据权利要求7所述的装置,其中,所述二维码画面生成单元进一步被配置成:
    设置二维码的目标容错率,其中,所述目标容错率大于第二预设阈值;
    基于所述目标容错率将所述二维码信息转换成二维码,在所生成的摄像头实时拍摄画面中显示生成的二维码。
  12. 根据权利要求7-11任一所述的装置,其中,所述装置还包括:
    摄像头关闭单元,被配置成响应于接收到用户输入的二维码关闭指令,关闭所述摄像头。
  13. 一种电子设备,包括:
    一个或多个处理器;
    存储装置,用于存储一个或多个程序;
    摄像头;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-6中任一所述的方法。
  14. 一种计算机可读介质,其上存储有计算机程序,其中,所述程序被处理器执行时实现如权利要求1-6中任一所述的方法。
PCT/CN2019/085146 2018-06-22 2019-04-30 用于终端设备的二维码生成方法和装置 WO2019242409A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP19823347.0A EP3812967A4 (en) 2018-06-22 2019-04-30 METHOD AND APPARATUS FOR GENERATING QR CODE FOR TERMINAL DEVICE
US17/044,063 US11068682B2 (en) 2018-06-22 2019-04-30 QR code generation method and apparatus for terminal device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810653369.0A CN110633773B (zh) 2018-06-22 2018-06-22 用于终端设备的二维码生成方法和装置
CN201810653369.0 2018-06-22

Publications (1)

Publication Number Publication Date
WO2019242409A1 true WO2019242409A1 (zh) 2019-12-26

Family

ID=68967077

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/085146 WO2019242409A1 (zh) 2018-06-22 2019-04-30 用于终端设备的二维码生成方法和装置

Country Status (4)

Country Link
US (1) US11068682B2 (zh)
EP (1) EP3812967A4 (zh)
CN (1) CN110633773B (zh)
WO (1) WO2019242409A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11681422B2 (en) * 2010-02-16 2023-06-20 John W. Rowles Methods for a user selectable digital mirror
CN112651475B (zh) * 2021-01-06 2022-09-23 北京字节跳动网络技术有限公司 二维码显示方法、装置、设备及介质
CN113572896B (zh) * 2021-06-23 2023-01-24 荣耀终端有限公司 基于用户行为模型的二维码显示方法、电子设备及可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007312049A (ja) * 2006-05-18 2007-11-29 Fuji Xerox Co Ltd 情報埋込処理システム、付加情報埋込装置、付加情報復元装置
CN101630430A (zh) * 2009-01-21 2010-01-20 常州市红叶信息科技有限公司 超市以太网前台收款机数字信息采集与传输的方法
CN103886352A (zh) * 2014-02-20 2014-06-25 百度在线网络技术(北京)有限公司 一种二维码处理的方法与设备
CN105117760A (zh) * 2015-09-15 2015-12-02 牛建伟 一种将二维码与彩色图片融合生成彩色图片二维码的方法
CN107248135A (zh) * 2017-04-26 2017-10-13 阿里巴巴集团控股有限公司 防伪图像的生成、识别方法及装置、计算机存储介质

Family Cites Families (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1953362A (zh) * 2006-11-16 2007-04-25 钟杨 一种在二维条码中嵌入图案的方法及装置
TWI524755B (zh) * 2008-03-05 2016-03-01 半導體能源研究所股份有限公司 影像處理方法、影像處理系統及電腦程式
CN101872494A (zh) * 2009-04-22 2010-10-27 上海易悠通信息科技有限公司 二维码火车票及其发售和验票与检票管理系统
CN101950410A (zh) * 2010-09-08 2011-01-19 优视科技有限公司 基于移动终端的数字图像处理方法及装置、移动终端
US9349063B2 (en) * 2010-10-22 2016-05-24 Qualcomm Incorporated System and method for capturing token data with a portable computing device
CN102157106A (zh) * 2011-05-10 2011-08-17 云南荷乐宾防伪技术有限公司 一种二维码和光学可变图像结合的复合多功能防伪标识
HK1160574A2 (en) * 2012-04-13 2012-07-13 King Hei Francis Kwong Secure electronic payment system and process
US9208397B2 (en) * 2012-08-27 2015-12-08 Paypal, Inc. Codeless QR code
DE112014001662T5 (de) * 2013-03-27 2015-12-17 Denso Wave Incorporated Vorrichtung und Verfahren zum Erzeugen eines in einem Bild enthaltenen zweidimensionalen Codes
EP3014822A4 (en) * 2013-06-28 2017-01-04 Schneider Electric USA, Inc. Systems and methods of blending machine-readable and human-readable elements on a display
CN104376456A (zh) * 2013-08-12 2015-02-25 黄金富知识产权咨询(深圳)有限公司 结合实时通信和语音通话的移动转账系统和相应方法
CN103886353B (zh) * 2014-03-10 2017-02-01 百度在线网络技术(北京)有限公司 二维码图像的生成方法和装置
KR20160049494A (ko) * 2014-10-27 2016-05-09 이문기 반투명 마크, 반투명 마크 합성 및 검출 방법, 투명 마크 그리고 투명 마크 합성 및 검출 방법
US20160132760A1 (en) * 2014-11-06 2016-05-12 Kuei-Sheng Tsou Dynamic recognizable two-dimensional code for interaction between electronic devices
US10157397B2 (en) * 2014-12-29 2018-12-18 Comenity Llc Collecting and analyzing data from a mobile device
US9390358B1 (en) * 2015-04-15 2016-07-12 Facebook, Inc. Systems and methods for personalizing QR codes
US9690968B2 (en) * 2015-05-17 2017-06-27 William A. Wadley Authenticated scannable code system
CN106656908B (zh) * 2015-10-28 2020-02-21 阿里巴巴集团控股有限公司 一种二维码处理方法和装置
JP6593141B2 (ja) * 2015-12-10 2019-10-23 株式会社デンソーウェーブ 情報コード読取システム
CN106896994A (zh) * 2015-12-21 2017-06-27 阿里巴巴集团控股有限公司 一种信息图像显示方法及装置
CN106203565A (zh) * 2016-07-01 2016-12-07 立德高科(昆山)数码科技有限责任公司 照片备注二维码及其生成方法
CN106778998A (zh) * 2016-11-28 2017-05-31 北京慧眼智行科技有限公司 一种彩色二维码的生成方法和装置
CN107370993B (zh) * 2017-08-14 2019-10-08 哈尔滨市一舍科技有限公司 一种基于二维码水印的虚拟拍照系统和方法
CN108062668B (zh) * 2017-12-15 2021-10-26 中国银联股份有限公司 基于后台图片加密识别的二维码支付方法与系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007312049A (ja) * 2006-05-18 2007-11-29 Fuji Xerox Co Ltd 情報埋込処理システム、付加情報埋込装置、付加情報復元装置
CN101630430A (zh) * 2009-01-21 2010-01-20 常州市红叶信息科技有限公司 超市以太网前台收款机数字信息采集与传输的方法
CN103886352A (zh) * 2014-02-20 2014-06-25 百度在线网络技术(北京)有限公司 一种二维码处理的方法与设备
CN105117760A (zh) * 2015-09-15 2015-12-02 牛建伟 一种将二维码与彩色图片融合生成彩色图片二维码的方法
CN107248135A (zh) * 2017-04-26 2017-10-13 阿里巴巴集团控股有限公司 防伪图像的生成、识别方法及装置、计算机存储介质

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
US11068682B2 (en) 2021-07-20
EP3812967A1 (en) 2021-04-28
CN110633773B (zh) 2022-04-12
EP3812967A4 (en) 2022-03-16
US20210056275A1 (en) 2021-02-25
CN110633773A (zh) 2019-12-31

Similar Documents

Publication Publication Date Title
WO2020000879A1 (zh) 图像识别方法和装置
WO2019242409A1 (zh) 用于终端设备的二维码生成方法和装置
US11941529B2 (en) Method and apparatus for processing mouth image
US11514263B2 (en) Method and apparatus for processing image
CN111459364B (zh) 图标更新方法、装置和电子设备
CN110349107B (zh) 图像增强的方法、装置、电子设备、及存储介质
CN113784049B (zh) 安卓系统虚拟机的摄像头调用方法、电子设备和存储介质
CN110111241B (zh) 用于生成动态图像的方法和装置
WO2020034981A1 (zh) 编码信息的生成方法和识别方法
CN112181568A (zh) 局部适配屏幕方法和设备
CN112381717A (zh) 图像处理方法、模型训练方法、装置、介质及设备
CN108470131B (zh) 用于生成提示信息的方法和装置
CN111309617A (zh) 应用程序的控制方法、装置、存储介质及电子设备
CN112418249A (zh) 掩膜图像生成方法、装置、电子设备和计算机可读介质
JP7261732B2 (ja) 文字の色を決定する方法および装置
EP4254315A1 (en) Image processing method and apparatus, image generation method and apparatus, device, and medium
TW202219822A (zh) 字元檢測方法、電子設備及電腦可讀儲存介質
CN110751251B (zh) 生成、变换二维码图像矩阵的方法和装置
CN110288523B (zh) 图像生成方法和装置
CN116596748A (zh) 图像风格化处理方法、装置、设备、存储介质和程序产品
CN114066722B (zh) 用于获取图像的方法、装置和电子设备
CN110555799A (zh) 用于处理视频的方法和装置
CN115170395A (zh) 全景图像拼接方法、装置、电子设备、介质和程序产品
CN110619615A (zh) 用于处理图像方法和装置
CN107315970B (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: 19823347

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2019823347

Country of ref document: EP