WO2023035932A1 - Code scanning method, information processing method, terminal, server, graphic code carrier, medium - Google Patents

Code scanning method, information processing method, terminal, server, graphic code carrier, medium Download PDF

Info

Publication number
WO2023035932A1
WO2023035932A1 PCT/CN2022/114214 CN2022114214W WO2023035932A1 WO 2023035932 A1 WO2023035932 A1 WO 2023035932A1 CN 2022114214 W CN2022114214 W CN 2022114214W WO 2023035932 A1 WO2023035932 A1 WO 2023035932A1
Authority
WO
WIPO (PCT)
Prior art keywords
code
graphic code
image
information
recognized
Prior art date
Application number
PCT/CN2022/114214
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2023035932A1 publication Critical patent/WO2023035932A1/en

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
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Definitions

  • the present disclosure relates to but not limited to the technical field of image recognition.
  • a graphic code is a graphic identifier that uses black and white graphics of different sizes arranged according to certain coding rules to express a set of information.
  • Common graphic codes include one-dimensional code (Bar Code) and two-dimensional code (QR Code, Quick Response Code).
  • one-dimensional codes can only express information in one direction, and can only store information composed of numbers and letters;
  • two-dimensional codes can use horizontal and vertical two-dimensional space to store information, in addition to storing information composed of numbers and letters
  • it can also store information such as Chinese characters and pictures.
  • Various graphic codes have been widely used in life.
  • the present disclosure provides a code scanning method, an information processing method, a terminal, a server, a graphic code carrier, and a computer-readable medium.
  • the present disclosure provides a code scanning method, including: identifying an object to be identified in response to a graphic code identification request signaling; and obtaining the information of the object to be identified when the graphic code information is not recognized and upload the image to the server; receive the image recognition information generated and sent by the server according to the image to be recognized, and generate a code scanning result.
  • the present disclosure provides an information processing method, including: querying the original graphic code corresponding to the object to be recognized in the image to be recognized according to the image to be recognized; sending an image recognition code to the terminal uploading the image to be recognized according to the query result Information, the image recognition information indicates whether the original graphic code corresponding to the object to be recognized has been queried.
  • the present disclosure provides an information processing method, including: acquiring an image of a self-defined identification object corresponding to an original graphic code; generating graphic code filing information, the graphic code filing information including the information of the original graphic code and all The image of the self-defined identification object; upload the record information of the graphic code to the server.
  • the present disclosure provides a terminal, including: one or more processors; a memory on which one or more programs are stored, and when the one or more programs are executed by the one or more processors When, the one or more processors are made to implement the code scanning method described in any one of the first aspect of the present disclosure and/or the information processing method described in any one of the third aspect of the present disclosure; one or more I/ O interface, connected between the processor and the memory, configured to realize information interaction between the processor and the memory.
  • the present disclosure provides a server, including: one or more processors; a memory on which one or more programs are stored, and when the one or more programs are executed by the one or more processors When, the one or more processors are made to implement the information processing method described in any one of the second aspect of the present disclosure; one or more I/O interfaces are connected between the processors and the memory, configured to implement The processor interacts with information of the memory.
  • the present disclosure provides a graphic code carrier, including: one or more processors; a memory, on which one or more programs are stored, when the one or more programs are processed by the one or more When executed by a processor, the one or more processors implement the information processing method described in any one of the third aspect of the present disclosure; the display device is configured to display the custom identification object corresponding to the original graphic code.
  • the present disclosure provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, any method described herein is implemented.
  • Fig. 1 is a flowchart of a code scanning method in the present disclosure
  • Fig. 2 is a flow chart of some steps in another code scanning method in the present disclosure
  • Fig. 3 is a schematic diagram of a self-defined two-dimensional code in the present disclosure
  • Fig. 4 is a flowchart of an information processing method in the present disclosure
  • Fig. 5 is a flowchart of some steps in another information processing method in the present disclosure.
  • Fig. 6 is a flowchart of some steps in another information processing method in the present disclosure.
  • Fig. 7 is a flowchart of some steps in another information processing method in the present disclosure.
  • Fig. 8 is a flowchart of an information processing method in the present disclosure.
  • FIG. 9 is a block diagram of a terminal in the present disclosure.
  • FIG. 10 is a block diagram of a server in the present disclosure.
  • Fig. 11 is a composition block diagram of a graphic code carrier in the present disclosure.
  • Fig. 12 is a compositional block diagram of a computer-readable medium in the present disclosure.
  • Fig. 13 is a schematic diagram of the architecture of a server in the present disclosure.
  • Fig. 14 is a schematic diagram of a code scanning process
  • Figure 15 is a schematic diagram of a filing process for a custom identification object
  • Fig. 16 is a schematic diagram of another filing process of a custom identification object.
  • the present disclosure provides a code scanning method, including steps S110 to S130.
  • step S110 the object to be recognized is recognized in response to the pattern code recognition request signaling.
  • step S120 if the image code information is not recognized, the image to be recognized of the object to be recognized is obtained and uploaded to the server.
  • step S130 the image recognition information generated and sent by the server according to the image to be recognized is received, and a code scanning result is generated.
  • the original graphic code in the present disclosure may be a one-dimensional code or a two-dimensional code.
  • the pattern code recognition request signaling may be a message for starting a code scanning application, a message for turning on a camera, an instruction for recognizing a pattern code in a picture, and the like.
  • the embodiments of the present disclosure make no special limitation on this.
  • the object to be identified is a custom two-dimensional code customized by the user, wherein the custom two-dimensional code refers to a two-dimensional code obtained by secondary processing of the original two-dimensional code, for example, the original two-dimensional code Secondary processing can be to change the shape and color of the original QR code, or to graffiti or sign on the original QR code, or to add decorations to the original QR code.
  • the custom QR code when the object to be recognized is a custom QR code, the custom QR code cannot be scanned directly due to secondary processing by the user.
  • the object to be recognized is a damaged two-dimensional code
  • the damaged two-dimensional code refers to a two-dimensional code whose original two-dimensional code is damaged and cannot be scanned directly.
  • the object to be recognized is any planar image or any three-dimensional object.
  • the unrecognized pattern code information means that the pattern code in the object to be recognized is not recognizable, or the pattern code is not included in the object to be recognized.
  • the embodiments of the present disclosure do not specifically limit this.
  • the graphic code information or the information in the graphic code refers to the information stored in the graphic code.
  • the server receives the image of the object to be identified, based on the image recognition technology
  • the original graphic code of the object to be identified is queried according to the correspondence between the pre-stored original graphic code and the self-defined identification object, and then according to the query result Generate and return the image recognition information to the terminal; the terminal obtains the code scanning result according to the image recognition information.
  • the server inquires the original graphic code corresponding to the object to be identified, it returns the original graphic code to the terminal, and the terminal recognizes the graphic code information in the original graphic code and obtains a code scanning result.
  • the server when the server finds the original graphic code corresponding to the object to be recognized, it may also return the graphic code information in the original graphic code to the terminal, and the terminal obtains the code scanning result according to the graphic code information. For example, when the server fails to find the original graphic code corresponding to the object to be recognized, it returns a failure notification message, and the terminal obtains a code scanning result representing a code scanning failure.
  • the terminal can complete the code scanning based on the object to be identified, thereby supporting user-defined scanning code objects or when the original graphic code is damaged and cannot be recognized It does not need to be reprinted, and the user has no perception of the recognition process of the object to be recognized during the scanning process, which improves the flexibility of the graphic code application and improves the user's scanning experience.
  • the server when the server finds the original graphic code corresponding to the object to be identified, it returns the original graphic code to the terminal and notifies the terminal that the identification is successful. That is, the image recognition information carries the original graphic code corresponding to the object to be recognized. The terminal recognizes the graphic code information in the original graphic code, and obtains the code scanning result.
  • step S130 includes step S131.
  • step S131 if the image recognition information carries an original graphic code, identify the graphic code information of the original graphic code to obtain the code scanning result.
  • the server if the server fails to find the original graphic code corresponding to the object to be recognized, it returns a failure notification message, and the terminal obtains a code scanning result indicating a code scanning failure.
  • step S130 further includes step S132.
  • step S132 if the image recognition information is a failure notification message, a code scanning result representing a failure to recognize the graphic code is generated.
  • the object to be recognized is a custom two-dimensional code or a damaged two-dimensional code.
  • a custom QR code is a QR code customized by the user, and refers to a QR code obtained by secondary processing of the original QR code.
  • secondary processing of the original QR code can be to change the original
  • the shape, color, etc. of the two-dimensional code can also be graffiti or signature on the original two-dimensional code, or add decorations on the original two-dimensional code.
  • FIG. 3 is a schematic diagram of processing an original two-dimensional code into a heart-shaped custom two-dimensional code.
  • the shape of the original two-dimensional code can also be modified into a heart shape, a pentagon, a polygon, etc. through secondary processing to obtain a custom two-dimensional code.
  • the embodiments of the present disclosure make no special limitation on this.
  • the custom QR code cannot be scanned directly due to secondary processing by the user.
  • a damaged QR code refers to a QR code whose original QR code is damaged and cannot be scanned directly.
  • a damaged two-dimensional code may be a two-dimensional code whose edge or inner part is missing from the original two-dimensional code, or a two-dimensional code whose original two-dimensional code is defaced so that all or part of the content of the two-dimensional code cannot be recognized.
  • the embodiments of the present disclosure make no special limitation on this.
  • an embodiment of the present disclosure provides an information processing method, including step S210 and step S220.
  • step S210 the original graphic code corresponding to the object to be recognized in the image to be recognized is queried according to the image to be recognized.
  • step S220 image recognition information is sent to the terminal that uploaded the image to be recognized according to the query result, and the image recognition information indicates whether the original graphic code corresponding to the object to be recognized is found.
  • the original graphic code in the embodiments of the present disclosure may be a one-dimensional code or a two-dimensional code.
  • the image to be recognized is the image of the object to be recognized that is acquired and uploaded by the terminal without recognizing the graphic code information.
  • the server receives the image of the object to be recognized, based on image recognition technology, the The corresponding relationship between the stored original graphic code and the user-defined identification object is queried for the original graphic code of the object to be identified, and then the image identification information is generated and returned to the terminal according to the query result, so that the terminal can obtain the code scanning result according to the image identification information.
  • the query result may be the original graphic code corresponding to the object to be identified.
  • the server returns the original graphic code to the terminal and notifies the terminal that the identification is successful.
  • the query result may be that the original graphic code corresponding to the object to be identified is found.
  • the server returns the graphic code information of the original graphic code to the terminal, and notifies the terminal that the identification is successful.
  • the query result may be that the original graphic code corresponding to the object to be recognized is not found, and the server returns a failure notification message to the terminal.
  • the original graphic code corresponding to the object to be identified can be queried based on the image of the object to be identified uploaded by the terminal, so as to assist the terminal to scan the code.
  • users can customize the scanning object or do not need to reprint when the original graphic code is damaged and cannot be recognized, and make the user unaware of the recognition process of the object to be recognized during the scanning process, which improves the flexibility of graphic code application and improves Improve the user's scanning experience.
  • the server identifies the object to be recognized in the image to be recognized based on image recognition technology, and queries the original graphic code corresponding to the object to be recognized according to the recognition result.
  • step S210 includes steps S211 and S212.
  • step S211 the object to be recognized in the image to be recognized is recognized by image recognition technology, so as to determine the content or characteristics of the object to be recognized.
  • step S212 the original graphic code corresponding to the object to be identified is queried in the graphic code mapping database according to the content or characteristics of the object to be identified, and the graphic code mapping database includes the content or characteristics of multiple self-defined identification objects The corresponding relationship with the original graphic code.
  • identifying the content or characteristics of the object to be identified through image recognition technology can be identifying that the object to be identified is a heart-shaped QR code; it can also be identifying the signature on the QR code and identifying the text content of the signature ; It can also be identifying feature data that can uniquely identify the object to be identified.
  • image recognition is performed using a neural network.
  • the neural network is a convolutional neural network.
  • step S220 includes steps S221 and S222.
  • step S221 if the original pattern code corresponding to the object to be recognized is found, image recognition information carrying the original pattern code corresponding to the object to be recognized is sent to the terminal.
  • step S222 if the original graphic code corresponding to the object to be recognized is not found, a failure notification message as the image recognition information is sent to the terminal.
  • the user uploads the image of the self-defined identification object replacing the original graphic code to the server for filing.
  • the server stores the correspondence between the characteristic data of the self-defined identification object and the original graphic code in the graphic code mapping database, so that the terminal can scan the code based on the self-defined identification object in the subsequent code scanning process.
  • the information processing method further includes steps S231 to S233.
  • step S231 receiving graphic code filing information
  • the graphic code filing information includes the image of the self-defined identification object and the information of the original graphic code corresponding to the self-defined identification object.
  • step S232 the self-defined identification object in the image of the self-defined identification object is identified by image recognition technology, so as to determine the content or characteristics of the self-defined identification object.
  • step S233 the content or features of the self-defined identification object and the original graphic code corresponding to the self-defined identification object are correspondingly stored in the graphic code mapping database.
  • the custom identification object is a custom QR code.
  • a custom QR code is a QR code customized by the user, which refers to a QR code obtained by secondary processing of the original QR code.
  • secondary processing of the original QR code can be to change the shape of the original QR code , color, etc., can also be graffiti or signature on the original QR code, or add decorations to the original QR code.
  • FIG. 3 is a schematic diagram of processing an original two-dimensional code into a heart-shaped custom two-dimensional code.
  • the shape of the original two-dimensional code can also be modified into a heart shape, a pentagon, a polygon, etc. through secondary processing to obtain a custom two-dimensional code.
  • the embodiments of the present disclosure make no special limitation on this.
  • the custom QR code when the object to be recognized is a custom QR code, the custom QR code cannot be scanned directly due to secondary processing by the user.
  • the custom identification object is a broken QR code.
  • a damaged QR code refers to a QR code whose original QR code is damaged and cannot be scanned directly.
  • a damaged two-dimensional code may be a two-dimensional code whose edge or inner part is missing from the original two-dimensional code, or a two-dimensional code whose original two-dimensional code is defaced so that all or part of the content of the two-dimensional code cannot be recognized.
  • the embodiments of the present disclosure make no special limitation on this.
  • an embodiment of the present disclosure provides an information processing method, including steps S310 to S330.
  • step S310 the image of the custom recognition object corresponding to the original graphic code is acquired.
  • step S320 the graphic code filing information is generated, and the graphic code filing information includes the information of the original graphic code and the image of the self-defined identification object.
  • step S330 the graphic code filing information is uploaded to the server.
  • the original graphic code in the embodiments of the present disclosure may be a one-dimensional code or a two-dimensional code.
  • steps S310 to S330 are the process of user-defined identification object filing. Through the above filing process, users can customize the QR code, or continue to use the original QR code if the original QR code is damaged and unrecognizable.
  • the custom identification object is a custom QR code.
  • a custom QR code is a QR code customized by the user, which refers to a QR code obtained by secondary processing of the original QR code.
  • secondary processing of the original QR code can be to change the shape of the original QR code , color, etc., can also be graffiti or signature on the original QR code, or add decorations to the original QR code.
  • FIG. 3 is a schematic diagram of processing an original two-dimensional code into a heart-shaped custom two-dimensional code.
  • the shape of the original two-dimensional code can also be modified into a heart shape, a pentagon, a polygon, etc. through secondary processing to obtain a custom two-dimensional code.
  • the embodiments of the present disclosure make no special limitation on this.
  • the custom QR code when the object to be recognized is a custom QR code, the custom QR code cannot be scanned directly due to secondary processing by the user.
  • the custom identification object is a broken QR code.
  • a damaged QR code refers to a QR code whose original QR code is damaged and cannot be scanned directly.
  • a damaged two-dimensional code may be a two-dimensional code whose edge or inner part is missing from the original two-dimensional code, or a two-dimensional code whose original two-dimensional code is defaced so that all or part of the content of the two-dimensional code cannot be recognized.
  • the embodiments of the present disclosure make no special limitation on this.
  • the embodiments of the present disclosure make no special limitation on how to obtain the image of the user-defined recognition object. For example, images of pictures, texts or objects manually made or specified by users can be collected through the camera; images of self-defined recognition objects can also be read in through the data interface; a custom interface for custom recognition objects can also be provided, and the user can customize Interface for making custom recognition objects.
  • an embodiment of the present disclosure provides a terminal, including: one or more processors 101; a memory 102, on which one or more programs are stored. When executed by one or more processors, one or more processors implement the code scanning method described in any one of the first aspects of the embodiments of the present disclosure and/or the information processing method described in any one of the third aspects of the embodiments of the present disclosure; One or more I/O interfaces 103 are connected between the processor and the memory, and are configured to realize information exchange between the processor and the memory.
  • the processor 101 is a device with data processing capability, which includes but not limited to a central processing unit (CPU), etc.
  • the memory 102 is a device with data storage capability, which includes but not limited to a random access memory (RAM, more specifically Such as SDRAM, DDR, etc.), read-only memory (ROM), electrified erasable programmable read-only memory (EEPROM), flash memory (FLASH); I/O interface (read-write interface) 103 is connected between processor 101 and memory 102 , can realize information exchange between the processor 101 and the memory 102, which includes but not limited to a data bus (Bus) and the like.
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrified erasable programmable read-only memory
  • FLASH flash memory
  • I/O interface (read-write interface) 103 is connected between processor 101 and memory 102 , can realize information exchange between the processor 101 and the memory 102, which includes but not limited to a data bus (Bus) and the like.
  • the processor 101 , the memory 102 and the I/O interface 103 are connected to each other through the bus 104 , and are further connected to other components of the computing device.
  • an embodiment of the present disclosure provides a server, including: one or more processors 201; When executed by one or more processors, one or more processors implement the information processing method described in any one of the second aspect of the embodiment of the present disclosure; one or more I/O interfaces 203 are connected between the processor and the memory, It is configured to realize information exchange between the processor and the memory.
  • the processor 201 is a device with data processing capability, which includes but not limited to a central processing unit (CPU), etc.
  • the memory 202 is a device with data storage capability, which includes but not limited to a random access memory (RAM, more specifically Such as SDRAM, DDR, etc.), read-only memory (ROM), electrified erasable programmable read-only memory (EEPROM), flash memory (FLASH); I/O interface (read-write interface) 203 is connected between processor 201 and memory 202 , can realize information exchange between the processor 201 and the memory 202, which includes but not limited to a data bus (Bus) and the like.
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrified erasable programmable read-only memory
  • FLASH flash memory
  • I/O interface (read-write interface) 203 is connected between processor 201 and memory 202 , can realize information exchange between the processor 201 and the memory 202, which includes but not limited to a data bus (Bus)
  • the processor 201 , the memory 202 and the I/O interface 203 are connected to each other through the bus 204 , and further connected to other components of the computing device.
  • an embodiment of the present disclosure provides a graphic code carrier, including: one or more processors 301; a memory 302, on which one or more programs are stored, when the one or more programs When executed by the one or more processors, the one or more processors implement the information processing method described in any one of the third aspects of the embodiment of the present disclosure; the display device 303 is configured to display the original graphics code corresponding to A custom recognition object for .
  • the display device 303 can also display a customized interface of the customized identification object, and the user can create a customized identification object on the customized interface, so as to obtain the customized identification object corresponding to the original graphic code.
  • an embodiment of the present disclosure provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, at least one of the following methods is implemented: the first embodiment of the present disclosure The code scanning method described in any one of the aspects; the information processing method described in any one of the second aspect of the embodiment of the present disclosure; the information processing method described in any one of the third aspect of the embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of a server in an embodiment of the present disclosure. As shown in FIG. 13 , the server includes an image recognition module 401 , a control module 402 , and a graphic code mapping database 403 .
  • the image recognition module 401 is configured to recognize the object to be recognized in the image to be recognized based on the image recognition technology, so as to determine the content or characteristics of the object to be recognized.
  • the image recognition module 401 is also configured to recognize the self-defined recognition object based on the image recognition technology, so as to determine the content or characteristics of the custom recognition object.
  • the control module 402 is configured to receive the graphic code filing information, and store the content or features of the self-defined identification object in the graphic code filing information and the original graphic code corresponding to the custom identification object in the graphic code mapping database 403 .
  • the control module 403 is further configured to receive the image to be recognized, and query the original pattern code corresponding to the object to be recognized in the pattern code mapping database 403 according to the content or characteristics of the object to be recognized.
  • the graphic code mapping database 403 is configured to correspondingly store the content or features of the self-defined identification object and the original graphic code corresponding to the self-defined identification object.
  • the data structure of the graphic code mapping database 403 is shown in Table 1.
  • Each of the following implementations is based on the server architecture shown in FIG. 13 .
  • FIG. 14 is a schematic diagram of the code scanning process in this embodiment, including steps E101 to E108.
  • step E101 the code scanning terminal scans the object to be recognized, and the object to be recognized is a custom two-dimensional code (for example, a heart-shaped two-dimensional code) or a damaged two-dimensional code.
  • a custom two-dimensional code for example, a heart-shaped two-dimensional code
  • a damaged two-dimensional code for example, a heart-shaped two-dimensional code
  • step E102 when the code scanning terminal cannot directly recognize the two-dimensional code information of the heart-shaped two-dimensional code or the damaged two-dimensional code (scanning fails), obtain the image to be recognized of the heart-shaped two-dimensional code or the damaged two-dimensional code, and upload it to the server .
  • step E103 the server uses image recognition technology to recognize the image to be recognized, and recognizes the content and characteristics such as the shape and color of the heart-shaped two-dimensional code or the damaged two-dimensional code.
  • step E104 the server queries the graphic code mapping database according to the content or characteristics of the recognized heart-shaped two-dimensional code or damaged two-dimensional code.
  • step E105 when the original two-dimensional code corresponding to the heart-shaped two-dimensional code or the damaged two-dimensional code is found, the server sends the image identification information carrying the original two-dimensional code to the code scanning terminal.
  • step E106 the code-scanning terminal receives the image recognition information, recognizes the original two-dimensional code, and completes the code-scanning payment.
  • step E107 when the original two-dimensional code corresponding to the heart-shaped two-dimensional code or the broken two-dimensional code is not found, the server sends a failure notification message to the code scanning terminal.
  • step E108 the code-scanning terminal receives the failure notification message, and generates a code-scanning result representing failure of the code-scanning payment.
  • FIG. 15 is a schematic diagram of the filing process of the self-defined identification object in this embodiment, including steps E201 to E203.
  • the self-defined identification object is a heart-shaped two-dimensional code obtained by secondary processing of the original payment code by the user.
  • step E201 the filing terminal acquires an image of a heart-shaped two-dimensional code.
  • step E202 the filing terminal uploads the heart-shaped two-dimensional code image and the original payment code information to the server.
  • step E203 the server receives the image of the heart-shaped two-dimensional code, uses image recognition technology to identify the heart-shaped two-dimensional code, and stores the heart-shaped two-dimensional code and the original payment code correspondingly in the graphic code mapping database.
  • FIG. 16 is a schematic diagram of the filing process of the self-defined identification object in this embodiment, including steps E301 to E303.
  • the self-defined identification object is a damaged QR code whose original bicycle code is damaged and cannot be scanned directly.
  • step E301 the filing terminal acquires an image of a damaged two-dimensional code.
  • step E302 the filing terminal uploads the damaged QR code image and the original bicycle code information to the server.
  • step E303 the server receives the image of the damaged two-dimensional code, uses image recognition technology to identify the damaged two-dimensional code, and stores the damaged two-dimensional code and the original bicycle code correspondingly in the graphic code mapping database.
  • the server can record the object that replaces the original graphic code, and the terminal can assist the terminal to replace the original graphic code when the terminal does not recognize the graphic code information.
  • the object to be identified can be scanned, which supports users to customize the object to be scanned or to print again if the original graphic code is damaged and unrecognizable.
  • the user has no perception of the identification process of the object to be identified during the scanning process, which improves the graphic quality.
  • the flexibility of the code application improves the user's code scanning experience.
  • the functional modules/units in the system, and the device can be implemented as software, firmware, hardware, and an appropriate combination thereof.
  • the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components. Components cooperate to execute.
  • Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit .
  • Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media).
  • computer storage media includes both volatile and nonvolatile media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. permanent, removable and non-removable media.
  • Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
  • Example embodiments have been disclosed herein, and while specific terms have been employed, they are used and should be construed in a general descriptive sense only and not for purposes of limitation. In some instances, it will be apparent to those skilled in the art that features, characteristics and/or elements described in connection with a particular embodiment may be used alone, or may be described in combination with other embodiments, unless explicitly stated otherwise. Combinations of features and/or elements. Accordingly, it will be understood by those of ordinary skill in the art that various changes in form and details may be made without departing from the scope of the present disclosure as set forth in the appended claims.

Abstract

The present disclosure provides a code scanning method, comprising: in response to a graphic code recognition request signaling, recognizing an object to be recognized; when no graphic code information is recognized, obtaining an image to be recognized of said object, and uploading same to a server; and receiving image recognition information generated and sent by the server according said image, and generating a code scanning result. The present disclosure provides an information processing method, a terminal, a server, a graphic code carrier, and a computer readable medium.

Description

扫码、信息处理方法及终端、服务器、图形码载体、介质Code scanning, information processing method and terminal, server, graphic code carrier, medium
相关申请的交叉引用Cross References to Related Applications
本申请要求2021年9月9日提交给中国专利局的第202111054796.5号专利申请的优先权,其全部内容通过引用合并于此。This application claims priority to Patent Application No. 202111054796.5 filed with the China Patent Office on September 9, 2021, the entire contents of which are hereby incorporated by reference.
技术领域technical field
本公开涉及但不限于图像识别技术领域。The present disclosure relates to but not limited to the technical field of image recognition.
背景技术Background technique
目前,图形码是一种使用大小不等、黑白相间的图形按照一定的编码规则排列用以表达一组信息的图形标识符。常见的图形码包括一维码(Bar Code)和二维码(QR Code,Quick Response Code)。其中,一维码只能在一个方向上表达信息,并且只能存储由数字、字母组成的信息;二维码能够利用横向和纵向的二维空间存储信息,除了能够存储数字、字母组成的信息之外,还能够存储汉字、图片等信息。各种图形码在生活中得到了广泛的应用。At present, a graphic code is a graphic identifier that uses black and white graphics of different sizes arranged according to certain coding rules to express a set of information. Common graphic codes include one-dimensional code (Bar Code) and two-dimensional code (QR Code, Quick Response Code). Among them, one-dimensional codes can only express information in one direction, and can only store information composed of numbers and letters; two-dimensional codes can use horizontal and vertical two-dimensional space to store information, in addition to storing information composed of numbers and letters In addition, it can also store information such as Chinese characters and pictures. Various graphic codes have been widely used in life.
但是,图形码应用的用户体验还有进一步提升的空间。However, there is room for further improvement in the user experience of graphic code applications.
发明内容Contents of the invention
本公开提供一种扫码方法、一种信息处理方法、一种终端、一种服务器、一种图形码载体、一种计算机可读介质。The present disclosure provides a code scanning method, an information processing method, a terminal, a server, a graphic code carrier, and a computer-readable medium.
第一方面,本公开提供一种扫码方法,包括:响应于图形码识别请求信令,对待识别对象进行识别;在未识别到图形码信息的情况下,获取所述待识别对象的待识别图像并上传服务器;接收所述服务器根据所述待识别图像生成并发送的图像识别信息,生成扫码结果。In a first aspect, the present disclosure provides a code scanning method, including: identifying an object to be identified in response to a graphic code identification request signaling; and obtaining the information of the object to be identified when the graphic code information is not recognized and upload the image to the server; receive the image recognition information generated and sent by the server according to the image to be recognized, and generate a code scanning result.
第二方面,本公开提供一种信息处理方法,包括:根据待识别图像查询所述待识别图像中待识别对象对应的原始图形码;根据查询结 果向上传所述待识别图像的终端发送图像识别信息,所述图像识别信息表征是否查询到所述待识别对象对应的原始图形码。In a second aspect, the present disclosure provides an information processing method, including: querying the original graphic code corresponding to the object to be recognized in the image to be recognized according to the image to be recognized; sending an image recognition code to the terminal uploading the image to be recognized according to the query result Information, the image recognition information indicates whether the original graphic code corresponding to the object to be recognized has been queried.
第三方面,本公开提供一种信息处理方法,包括:获取原始图形码对应的自定义识别对象的图像;生成图形码备案信息,所述图形码备案信息包括所述原始图形码的信息和所述自定义识别对象的图像;将所述图形码备案信息上传服务器。In a third aspect, the present disclosure provides an information processing method, including: acquiring an image of a self-defined identification object corresponding to an original graphic code; generating graphic code filing information, the graphic code filing information including the information of the original graphic code and all The image of the self-defined identification object; upload the record information of the graphic code to the server.
第四方面,本公开提供一种终端,包括:一个或多个处理器;存储器,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现本公开第一方面任意一项所述的扫码方法和/或本公开第三方面任意一项所述的信息处理方法;一个或多个I/O接口,连接在所述处理器与存储器之间,配置为实现所述处理器与存储器的信息交互。In a fourth aspect, the present disclosure provides a terminal, including: one or more processors; a memory on which one or more programs are stored, and when the one or more programs are executed by the one or more processors When, the one or more processors are made to implement the code scanning method described in any one of the first aspect of the present disclosure and/or the information processing method described in any one of the third aspect of the present disclosure; one or more I/ O interface, connected between the processor and the memory, configured to realize information interaction between the processor and the memory.
第五方面,本公开提供一种服务器,包括:一个或多个处理器;存储器,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现本公开第二方面任意一项所述的信息处理方法;一个或多个I/O接口,连接在所述处理器与存储器之间,配置为实现所述处理器与存储器的信息交互。In a fifth aspect, the present disclosure provides a server, including: one or more processors; a memory on which one or more programs are stored, and when the one or more programs are executed by the one or more processors When, the one or more processors are made to implement the information processing method described in any one of the second aspect of the present disclosure; one or more I/O interfaces are connected between the processors and the memory, configured to implement The processor interacts with information of the memory.
第六方面,本公开提供一种图形码载体,包括:一个或多个处理器;存储器,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现本公开第三方面任意一项所述的信息处理方法;显示装置,配置为展示原始图形码对应的自定义识别对象。In a sixth aspect, the present disclosure provides a graphic code carrier, including: one or more processors; a memory, on which one or more programs are stored, when the one or more programs are processed by the one or more When executed by a processor, the one or more processors implement the information processing method described in any one of the third aspect of the present disclosure; the display device is configured to display the custom identification object corresponding to the original graphic code.
第七方面,本公开提供一种计算机可读介质,其上存储有计算机程序,所述程序被处理器执行时实现本文所述任一方法。In a seventh aspect, the present disclosure provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, any method described herein is implemented.
附图说明Description of drawings
图1是本公开中一种扫码方法的流程图;Fig. 1 is a flowchart of a code scanning method in the present disclosure;
图2是本公开中另一种扫码方法中部分步骤的流程图;Fig. 2 is a flow chart of some steps in another code scanning method in the present disclosure;
图3是本公开中一种自定义二维码的示意图;Fig. 3 is a schematic diagram of a self-defined two-dimensional code in the present disclosure;
图4是本公开中一种信息处理方法的流程图Fig. 4 is a flowchart of an information processing method in the present disclosure
图5是本公开中另一种信息处理方法中部分步骤的流程图;Fig. 5 is a flowchart of some steps in another information processing method in the present disclosure;
图6是本公开中又一种信息处理方法中部分步骤的流程图;Fig. 6 is a flowchart of some steps in another information processing method in the present disclosure;
图7是本公开中再一种信息处理方法中部分步骤的流程图;Fig. 7 is a flowchart of some steps in another information processing method in the present disclosure;
图8是本公开中一种信息处理方法的流程图;Fig. 8 is a flowchart of an information processing method in the present disclosure;
图9是本公开中一种终端的组成框图;FIG. 9 is a block diagram of a terminal in the present disclosure;
图10是本公开中一种服务器的组成框图;FIG. 10 is a block diagram of a server in the present disclosure;
图11是本公开中一种图形码载体的组成框图;Fig. 11 is a composition block diagram of a graphic code carrier in the present disclosure;
图12是本公开中一种计算机可读介质的组成框图;Fig. 12 is a compositional block diagram of a computer-readable medium in the present disclosure;
图13是本公开中一种服务器的架构示意图;Fig. 13 is a schematic diagram of the architecture of a server in the present disclosure;
图14是一种扫码流程的示意图;Fig. 14 is a schematic diagram of a code scanning process;
图15是一种自定义识别对象的备案流程的示意图;Figure 15 is a schematic diagram of a filing process for a custom identification object;
图16是另一种自定义识别对象的备案流程的示意图。Fig. 16 is a schematic diagram of another filing process of a custom identification object.
具体实施方式Detailed ways
为使本领域的技术人员更好地理解本公开的技术方案,下面结合附图对本公开提供的扫码方法、信息处理方法、终端、服务器、图形码载体、计算机可读介质进行详细描述。In order for those skilled in the art to better understand the technical solutions of the present disclosure, the code scanning method, information processing method, terminal, server, graphic code carrier, and computer-readable medium provided by the present disclosure will be described in detail below with reference to the accompanying drawings.
在下文中将参考附图更充分地描述示例实施方式,但是所述示例实施方式可以以不同形式来体现且不应当被解释为限于本文阐述的实施方式。反之,提供这些实施方式的目的在于使本公开透彻和完整,并将使本领域技术人员充分理解本公开的范围。Example embodiments will be described more fully hereinafter with reference to the accompanying drawings, but may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
在不冲突的情况下,本公开各实施方式及实施方式中的各特征可相互组合。In the case of no conflict, each embodiment and each feature in the embodiment of the present disclosure can be combined with each other.
如本文所使用的,术语“和/或”包括一个或多个相关列举条目的任何和所有组合。As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
本文所使用的术语仅用于描述特定实施方式,且不意欲限制本公开。如本文所使用的,单数形式“一个”和“该”也意欲包括复数形式,除非上下文另外清楚指出。还将理解的是,当本说明书中使用术语“包括”和/或“由……制成”时,指定存在所述特征、整体、步 骤、操作、元件和/或组件,但不排除存在或添加一个或多个其它特征、整体、步骤、操作、元件、组件和/或其群组。The terminology used herein is for describing particular embodiments only and is not intended to limit the present disclosure. As used herein, the singular forms "a" and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that when the terms "comprising" and/or "consisting of" are used in this specification, the stated features, integers, steps, operations, elements and/or components are specified to be present but not excluded to be present or Add one or more other features, integers, steps, operations, elements, components and/or groups thereof.
除非另外限定,否则本文所用的所有术语(包括技术和科学术语)的含义与本领域普通技术人员通常理解的含义相同。还将理解,诸如那些在常用字典中限定的那些术语应当被解释为具有与其在相关技术以及本公开的背景下的含义一致的含义,且将不解释为具有理想化或过度形式上的含义,除非本文明确如此限定。Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having meanings consistent with their meanings in the context of the relevant art and the present disclosure, and will not be interpreted as having idealized or excessive formal meanings, Unless expressly so limited herein.
第一方面,参照图1,本公开提供一种扫码方法,包括步骤S110至S130。In a first aspect, referring to FIG. 1 , the present disclosure provides a code scanning method, including steps S110 to S130.
在步骤S110,响应于图形码识别请求信令,对待识别对象进行识别。In step S110, the object to be recognized is recognized in response to the pattern code recognition request signaling.
在步骤S120,在未识别到图形码信息的情况下,获取所述待识别对象的待识别图像并上传服务器。In step S120, if the image code information is not recognized, the image to be recognized of the object to be recognized is obtained and uploaded to the server.
在步骤S130,接收所述服务器根据所述待识别图像生成并发送的图像识别信息,生成扫码结果。In step S130, the image recognition information generated and sent by the server according to the image to be recognized is received, and a code scanning result is generated.
本公开中的原始图形码可以是一维码,也可以是二维码。The original graphic code in the present disclosure may be a one-dimensional code or a two-dimensional code.
在本公开实施方式中,图形码识别请求信令可以是扫码应用程序启动的消息、摄像头开启的消息、识别图片中图形码的指令等。本公开实施方式对此不做特殊限定。In the embodiments of the present disclosure, the pattern code recognition request signaling may be a message for starting a code scanning application, a message for turning on a camera, an instruction for recognizing a pattern code in a picture, and the like. The embodiments of the present disclosure make no special limitation on this.
在本公开实施方式中,对待识别对象不做特殊限定。在一些实施方式中,待识别对象是用户定制的自定义二维码,其中,自定义二维码是指对原始二维码进行二次加工获得的二维码,例如,对原始二维码进行二次加工可以是改变原始二维码的形状、颜色等,也可以是在原始二维码上涂鸦或签名,还可以是在原始二维码上添加装饰。在一些实施方式中,当待识别对象为自定义二维码时,自定义二维码由于用户的二次加工而无法直接进行扫码。在一些实施方式中,待识别对象是破损二维码,破损二维码是指原始二维码损坏而无法直接进行扫码的二维码。在一些实施方式中,待识别对象是任意的平面图像或任意的三维物体。在对待识别对象进行扫码时,可以通过摄像头直接扫描待识别对象,也可以以图片、文字等形式输入待识别对象。本公开 实施方式对此不做特殊限定。In the embodiments of the present disclosure, there is no special limitation on the object to be identified. In some implementations, the object to be identified is a custom two-dimensional code customized by the user, wherein the custom two-dimensional code refers to a two-dimensional code obtained by secondary processing of the original two-dimensional code, for example, the original two-dimensional code Secondary processing can be to change the shape and color of the original QR code, or to graffiti or sign on the original QR code, or to add decorations to the original QR code. In some implementations, when the object to be recognized is a custom QR code, the custom QR code cannot be scanned directly due to secondary processing by the user. In some embodiments, the object to be recognized is a damaged two-dimensional code, and the damaged two-dimensional code refers to a two-dimensional code whose original two-dimensional code is damaged and cannot be scanned directly. In some implementations, the object to be recognized is any planar image or any three-dimensional object. When scanning the code of the object to be recognized, the object to be recognized can be directly scanned through the camera, or the object to be recognized can be input in the form of pictures or text. The embodiments of the present disclosure make no special limitation on this.
在本公开实施方式中,未识别到图形码信息是指待识别对象中的图形码不可识别,或待识别对象中不包含图形码。本公开实施方式对此也不做特殊限定。在本公开实施方式中,图形码信息或图形码中的信息是指图形码中存储的信息。In the embodiments of the present disclosure, the unrecognized pattern code information means that the pattern code in the object to be recognized is not recognizable, or the pattern code is not included in the object to be recognized. The embodiments of the present disclosure do not specifically limit this. In the embodiments of the present disclosure, the graphic code information or the information in the graphic code refers to the information stored in the graphic code.
在本公开实施方式中,服务器接收到待识别对象的图像后,基于图像识别技术,根据预先存储的原始图形码和自定义识别对象的对应关系查询待识别对象的原始图形码,然后根据查询结果生成并向终端返回图像识别信息;终端根据图像识别信息得到扫码结果。例如,服务器查询到待识别对象对应的原始图形码时,将原始图形码返回终端,终端识别原始图形码中的图形码信息,得到扫码结果。例如,服务器查询到待识别对象对应的原始图形码时,也可以将原始图形码中的图形码信息返回终端,终端根据图形码信息得到扫码结果。例如,服务器未查询到待识别对象对应的原始图形码时,返回失败通知消息,终端得到表征扫码失败的扫码结果。In the embodiment of the present disclosure, after the server receives the image of the object to be identified, based on the image recognition technology, the original graphic code of the object to be identified is queried according to the correspondence between the pre-stored original graphic code and the self-defined identification object, and then according to the query result Generate and return the image recognition information to the terminal; the terminal obtains the code scanning result according to the image recognition information. For example, when the server inquires the original graphic code corresponding to the object to be identified, it returns the original graphic code to the terminal, and the terminal recognizes the graphic code information in the original graphic code and obtains a code scanning result. For example, when the server finds the original graphic code corresponding to the object to be recognized, it may also return the graphic code information in the original graphic code to the terminal, and the terminal obtains the code scanning result according to the graphic code information. For example, when the server fails to find the original graphic code corresponding to the object to be recognized, it returns a failure notification message, and the terminal obtains a code scanning result representing a code scanning failure.
本公开实施方式提供的扫码方法中,支持用任意待识别对象代替原始图形码,终端能够基于待识别对象完成扫码,从而支持用户自定义扫码对象或在原始图形码破损无法识别的情况下也无需重新打印,并且扫码过程中用户对待识别对象的识别过程无感知,提高了图形码应用的灵活性,提升了用户的扫码体验。In the code scanning method provided by the embodiments of the present disclosure, it is supported to replace the original graphic code with any object to be identified, and the terminal can complete the code scanning based on the object to be identified, thereby supporting user-defined scanning code objects or when the original graphic code is damaged and cannot be recognized It does not need to be reprinted, and the user has no perception of the recognition process of the object to be recognized during the scanning process, which improves the flexibility of the graphic code application and improves the user's scanning experience.
在一些实施方式中,服务器查询到待识别对象对应的原始图形码时,将原始图形码返回终端,并通知终端识别成功。即,图像识别信息携带待识别对象对应的原始图形码。终端识别原始图形码中的图形码信息,得到扫码结果。In some embodiments, when the server finds the original graphic code corresponding to the object to be identified, it returns the original graphic code to the terminal and notifies the terminal that the identification is successful. That is, the image recognition information carries the original graphic code corresponding to the object to be recognized. The terminal recognizes the graphic code information in the original graphic code, and obtains the code scanning result.
相应地,在一些实施方式中,参照图2,步骤S130包括步骤S131。Correspondingly, in some implementations, referring to FIG. 2 , step S130 includes step S131.
在步骤S131,在所述图像识别信息携带原始图形码的情况下,识别所述原始图形码的图形码信息得到所述扫码结果。In step S131, if the image recognition information carries an original graphic code, identify the graphic code information of the original graphic code to obtain the code scanning result.
在一些实施方式中,服务器未查询到待识别对象对应的原始图形码是,返回失败通知消息,终端得到表征扫码失败的扫码结果。In some implementations, if the server fails to find the original graphic code corresponding to the object to be recognized, it returns a failure notification message, and the terminal obtains a code scanning result indicating a code scanning failure.
相应地,在一些实施方式中,参照图2,步骤S130还包括步骤 S132。Correspondingly, in some embodiments, referring to FIG. 2 , step S130 further includes step S132.
在步骤S132,在所述图像识别信息为失败通知消息的情况下,生成表征图形码识别失败的扫码结果。In step S132, if the image recognition information is a failure notification message, a code scanning result representing a failure to recognize the graphic code is generated.
在一些实施方式中,所述待识别对象为自定义二维码或破损二维码。In some embodiments, the object to be recognized is a custom two-dimensional code or a damaged two-dimensional code.
需要说明的是,自定义二维码是用户定制的二维码,是指对原始二维码进行二次加工获得的二维码,例如,对原始二维码进行二次加工可以是改变原始二维码的形状、颜色等,也可以是在原始二维码上涂鸦或签名,还可以是在原始二维码上添加装饰。图3是一种将原始二维码加工成形状为心形的自定义二维码的示意图。在本公开实施方式中,还可以通过二次加工将原始二维码的形状修改为心形、五角形、多边形等,得到自定义二维码。本公开实施方式对此不做特殊限定。在一些实施方式中,当待识别对象为自定义二维码时,自定义二维码由于用户的二次加工而无法直接进行扫码。It should be noted that a custom QR code is a QR code customized by the user, and refers to a QR code obtained by secondary processing of the original QR code. For example, secondary processing of the original QR code can be to change the original The shape, color, etc. of the two-dimensional code can also be graffiti or signature on the original two-dimensional code, or add decorations on the original two-dimensional code. FIG. 3 is a schematic diagram of processing an original two-dimensional code into a heart-shaped custom two-dimensional code. In the embodiment of the present disclosure, the shape of the original two-dimensional code can also be modified into a heart shape, a pentagon, a polygon, etc. through secondary processing to obtain a custom two-dimensional code. The embodiments of the present disclosure make no special limitation on this. In some implementations, when the object to be recognized is a custom QR code, the custom QR code cannot be scanned directly due to secondary processing by the user.
需要说明的是,破损二维码是指原始二维码损坏而无法直接进行扫码的二维码。例如,破损二维码可以是原始二维码边缘或内部部分缺失的二维码,也可以是原始二维码污损导致二维码全部或部分内容无法识别的二维码。本公开实施方式对此不作特殊限定。It should be noted that a damaged QR code refers to a QR code whose original QR code is damaged and cannot be scanned directly. For example, a damaged two-dimensional code may be a two-dimensional code whose edge or inner part is missing from the original two-dimensional code, or a two-dimensional code whose original two-dimensional code is defaced so that all or part of the content of the two-dimensional code cannot be recognized. The embodiments of the present disclosure make no special limitation on this.
第二方面,参照图4,本公开实施方式提供一种信息处理方法,包括步骤S210和步骤S220。In a second aspect, referring to FIG. 4 , an embodiment of the present disclosure provides an information processing method, including step S210 and step S220.
在步骤S210,根据待识别图像查询所述待识别图像中的待识别对象对应的原始图形码。In step S210, the original graphic code corresponding to the object to be recognized in the image to be recognized is queried according to the image to be recognized.
在步骤S220,根据查询结果向上传所述待识别图像的终端发送图像识别信息,所述图像识别信息表征是否查询到所述待识别对象对应的原始图形码。In step S220, image recognition information is sent to the terminal that uploaded the image to be recognized according to the query result, and the image recognition information indicates whether the original graphic code corresponding to the object to be recognized is found.
本公开实施方式中的原始图形码可以是一维码,也可以是二维码。The original graphic code in the embodiments of the present disclosure may be a one-dimensional code or a two-dimensional code.
在本公开实施方式中,待识别图像是终端在未识别到图形码信息的情况下,获取并上传的待识别对象的图像,服务器接收到待识别对象的图像后,基于图像识别技术,根据预先存储的原始图形码和自 定义识别对象的对应关系查询待识别对象的原始图形码,然后根据查询结果生成并向终端返回图像识别信息,以使终端根据图像识别信息得到扫码结果。例如,查询结果可以是查询到待识别对象对应的原始图形码,对应地,服务器向终端返回该原始图形码,并通知终端识别成功。例如,查询结果可以是查询到待识别对象对应的原始图形码,对应地,服务器向终端返回该原始图形码的图形码信息,并通知终端识别成功。例如,查询结果可以是未查询到待识别对象对应的原始图形码,服务器向终端返回失败通知消息。In the embodiments of the present disclosure, the image to be recognized is the image of the object to be recognized that is acquired and uploaded by the terminal without recognizing the graphic code information. After the server receives the image of the object to be recognized, based on image recognition technology, the The corresponding relationship between the stored original graphic code and the user-defined identification object is queried for the original graphic code of the object to be identified, and then the image identification information is generated and returned to the terminal according to the query result, so that the terminal can obtain the code scanning result according to the image identification information. For example, the query result may be the original graphic code corresponding to the object to be identified. Correspondingly, the server returns the original graphic code to the terminal and notifies the terminal that the identification is successful. For example, the query result may be that the original graphic code corresponding to the object to be identified is found. Correspondingly, the server returns the graphic code information of the original graphic code to the terminal, and notifies the terminal that the identification is successful. For example, the query result may be that the original graphic code corresponding to the object to be recognized is not found, and the server returns a failure notification message to the terminal.
本公开实施方式提供的信息处理方法中,在终端未识别到图形码信息的情况下,能够基于终端上传的待识别对象的图像查询待识别对象对应的原始图形码,以辅助终端完成扫码。从而支持用户自定义扫码对象或在原始图形码破损无法识别的情况下也无需重新打印,并且使得扫码过程中用户对待识别对象的识别过程无感知,提高了图形码应用的灵活性,提升了用户的扫码体验。In the information processing method provided by the embodiments of the present disclosure, if the terminal does not recognize the graphic code information, the original graphic code corresponding to the object to be identified can be queried based on the image of the object to be identified uploaded by the terminal, so as to assist the terminal to scan the code. In this way, users can customize the scanning object or do not need to reprint when the original graphic code is damaged and cannot be recognized, and make the user unaware of the recognition process of the object to be recognized during the scanning process, which improves the flexibility of graphic code application and improves Improve the user's scanning experience.
在一些实施方式中,服务器基于图像识别技术对待识别图像中的待识别对象进行识别,并根据识别结果查询待识别对象对应的原始图形码。In some implementations, the server identifies the object to be recognized in the image to be recognized based on image recognition technology, and queries the original graphic code corresponding to the object to be recognized according to the recognition result.
相应地,在一些实施方式中,参照图5,步骤S210包括步骤S211和S212。Correspondingly, in some implementations, referring to FIG. 5 , step S210 includes steps S211 and S212.
在步骤S211,利用图像识别技术对所述待识别图像中的所述待识别对象进行识别,以确定所述待识别对象的内容或特征。In step S211, the object to be recognized in the image to be recognized is recognized by image recognition technology, so as to determine the content or characteristics of the object to be recognized.
在步骤S212,根据所述待识别对象的内容或特征在图形码映射数据库中查询所述待识别对象对应的原始图形码,所述图形码映射数据库中包括多个自定义识别对象的内容或特征与原始图形码的对应关系。In step S212, the original graphic code corresponding to the object to be identified is queried in the graphic code mapping database according to the content or characteristics of the object to be identified, and the graphic code mapping database includes the content or characteristics of multiple self-defined identification objects The corresponding relationship with the original graphic code.
本公开实施方式对于利用图像识别技术确定的待识别对象的内容或特征不做特殊限定。例如,通过图像识别技术识别出待识别对象的内容或特征可以是识别出待识别对象是一个心形的二维码;也可以是识别出二维码上有签名,并识别出签名的文字内容;还可以是识别出能够唯一的标识待识别对象的特征数据。The embodiments of the present disclosure make no special limitation on the content or characteristics of the object to be recognized determined by using the image recognition technology. For example, identifying the content or characteristics of the object to be identified through image recognition technology can be identifying that the object to be identified is a heart-shaped QR code; it can also be identifying the signature on the QR code and identifying the text content of the signature ; It can also be identifying feature data that can uniquely identify the object to be identified.
本公开实施方式对于用于对待识别图像中的待识别对象进行识别的图像识别技术不做特殊限定。在一些实施方式中,利用神经网络进行图像识别。在一些实施方式中,神经网络是卷积神经网络。The embodiments of the present disclosure make no special limitation on the image recognition technology used to recognize the object to be recognized in the image to be recognized. In some embodiments, image recognition is performed using a neural network. In some embodiments, the neural network is a convolutional neural network.
在一些实施方式中,参照图6,步骤S220包括步骤S221和S222。In some implementations, referring to FIG. 6 , step S220 includes steps S221 and S222.
在步骤S221,在查询到所述待识别对象对应的原始图形码的情况下,将携带所述待识别对象对应的原始图形码的图像识别信息发送到所述终端。In step S221, if the original pattern code corresponding to the object to be recognized is found, image recognition information carrying the original pattern code corresponding to the object to be recognized is sent to the terminal.
在步骤S222,在未查询到所述待识别对象对应的原始图形码的情况下,将作为所述图像识别信息的失败通知消息发送到所述终端。In step S222, if the original graphic code corresponding to the object to be recognized is not found, a failure notification message as the image recognition information is sent to the terminal.
在一些实施方式中,用户将替代原始图形码的自定义识别对象的图像上传服务器,进行备案。服务器在图形码映射数据库中存储的自定义识别对象的特征数据与原始图形码的对应关系,从而使得终端能在后续扫码过程中,基于自定义识别对象完成扫码。In some embodiments, the user uploads the image of the self-defined identification object replacing the original graphic code to the server for filing. The server stores the correspondence between the characteristic data of the self-defined identification object and the original graphic code in the graphic code mapping database, so that the terminal can scan the code based on the self-defined identification object in the subsequent code scanning process.
相应地,在一些实施方式中,参照图7,所述信息处理方法还包括步骤S231至S233。Correspondingly, in some implementation manners, referring to FIG. 7 , the information processing method further includes steps S231 to S233.
在步骤S231,接收图形码备案信息,所述图形码备案信息包括自定义识别对象的图像和所述自定义识别对象对应的原始图形码的信息。In step S231 , receiving graphic code filing information, the graphic code filing information includes the image of the self-defined identification object and the information of the original graphic code corresponding to the self-defined identification object.
在步骤S232,利用图像识别技术对所述自定义识别对象的图像中的所述自定义识别对象进行识别,以确定所述自定义识别对象的内容或特征。In step S232, the self-defined identification object in the image of the self-defined identification object is identified by image recognition technology, so as to determine the content or characteristics of the self-defined identification object.
在步骤S233,将所述自定义识别对象的内容或特征和所述自定义识别对象对应的原始图形码对应存储到图形码映射数据库中。In step S233, the content or features of the self-defined identification object and the original graphic code corresponding to the self-defined identification object are correspondingly stored in the graphic code mapping database.
在本公开实施方式中,对自定义识别对象不做特殊限定。In the embodiments of the present disclosure, there is no special limitation on the self-defined identification objects.
在一些实施方式中,自定义识别对象是自定义二维码。自定义二维码是用户定制的二维码,是指对原始二维码进行二次加工获得的二维码,例如,对原始二维码进行二次加工可以是改变原始二维码的形状、颜色等,也可以是在原始二维码上涂鸦或签名,还可以是在原始二维码上添加装饰。图3是一种将原始二维码加工成形状为心形的自定义二维码的示意图。在本公开实施方式中,还可以通过二次加工 将原始二维码的形状修改为心形、五角形、多边形等,得到自定义二维码。本公开实施方式对此不做特殊限定。在一些实施方式中,当待识别对象为自定义二维码时,自定义二维码由于用户的二次加工而无法直接进行扫码。In some implementations, the custom identification object is a custom QR code. A custom QR code is a QR code customized by the user, which refers to a QR code obtained by secondary processing of the original QR code. For example, secondary processing of the original QR code can be to change the shape of the original QR code , color, etc., can also be graffiti or signature on the original QR code, or add decorations to the original QR code. FIG. 3 is a schematic diagram of processing an original two-dimensional code into a heart-shaped custom two-dimensional code. In the embodiment of the present disclosure, the shape of the original two-dimensional code can also be modified into a heart shape, a pentagon, a polygon, etc. through secondary processing to obtain a custom two-dimensional code. The embodiments of the present disclosure make no special limitation on this. In some implementations, when the object to be recognized is a custom QR code, the custom QR code cannot be scanned directly due to secondary processing by the user.
在一些实施方式中,自定义识别对象是破损二维码。破损二维码是指原始二维码损坏而无法直接进行扫码的二维码。例如,破损二维码可以是原始二维码边缘或内部部分缺失的二维码,也可以是原始二维码污损导致二维码全部或部分内容无法识别的二维码。本公开实施方式对此不作特殊限定。In some implementations, the custom identification object is a broken QR code. A damaged QR code refers to a QR code whose original QR code is damaged and cannot be scanned directly. For example, a damaged two-dimensional code may be a two-dimensional code whose edge or inner part is missing from the original two-dimensional code, or a two-dimensional code whose original two-dimensional code is defaced so that all or part of the content of the two-dimensional code cannot be recognized. The embodiments of the present disclosure make no special limitation on this.
第三方面,参照图8,本公开实施方式提供一种信息处理方法,包括步骤S310至S330。In a third aspect, referring to FIG. 8 , an embodiment of the present disclosure provides an information processing method, including steps S310 to S330.
在步骤S310,获取原始图形码对应的自定义识别对象的图像。In step S310, the image of the custom recognition object corresponding to the original graphic code is acquired.
在步骤S320,生成图形码备案信息,所述图形码备案信息包括所述原始图形码的信息和所述自定义识别对象的图像。In step S320, the graphic code filing information is generated, and the graphic code filing information includes the information of the original graphic code and the image of the self-defined identification object.
在步骤S330,将所述图形码备案信息上传服务器。In step S330, the graphic code filing information is uploaded to the server.
本公开实施方式中的原始图形码可以是一维码,也可以是二维码。The original graphic code in the embodiments of the present disclosure may be a one-dimensional code or a two-dimensional code.
需要说明的是,步骤S310至S330是用户备案自定义识别对象的过程。通过上述备案过程,用户可以自定义二维码,也可以在原始二维码破损无法识别的情况下继续使用原始二维码。It should be noted that steps S310 to S330 are the process of user-defined identification object filing. Through the above filing process, users can customize the QR code, or continue to use the original QR code if the original QR code is damaged and unrecognizable.
在本公开实施方式中,对自定义识别对象不做特殊限定。In the embodiments of the present disclosure, there is no special limitation on the self-defined identification objects.
在一些实施方式中,自定义识别对象是自定义二维码。自定义二维码是用户定制的二维码,是指对原始二维码进行二次加工获得的二维码,例如,对原始二维码进行二次加工可以是改变原始二维码的形状、颜色等,也可以是在原始二维码上涂鸦或签名,还可以是在原始二维码上添加装饰。图3是一种将原始二维码加工成形状为心形的自定义二维码的示意图。在本公开实施方式中,还可以通过二次加工将原始二维码的形状修改为心形、五角形、多边形等,得到自定义二维码。本公开实施方式对此不做特殊限定。在一些实施方式中,当待识别对象为自定义二维码时,自定义二维码由于用户的二次加工而无 法直接进行扫码。In some implementations, the custom identification object is a custom QR code. A custom QR code is a QR code customized by the user, which refers to a QR code obtained by secondary processing of the original QR code. For example, secondary processing of the original QR code can be to change the shape of the original QR code , color, etc., can also be graffiti or signature on the original QR code, or add decorations to the original QR code. FIG. 3 is a schematic diagram of processing an original two-dimensional code into a heart-shaped custom two-dimensional code. In the embodiment of the present disclosure, the shape of the original two-dimensional code can also be modified into a heart shape, a pentagon, a polygon, etc. through secondary processing to obtain a custom two-dimensional code. The embodiments of the present disclosure make no special limitation on this. In some implementations, when the object to be recognized is a custom QR code, the custom QR code cannot be scanned directly due to secondary processing by the user.
在一些实施方式中,自定义识别对象是破损二维码。破损二维码是指原始二维码损坏而无法直接进行扫码的二维码。例如,破损二维码可以是原始二维码边缘或内部部分缺失的二维码,也可以是原始二维码污损导致二维码全部或部分内容无法识别的二维码。本公开实施方式对此不作特殊限定。In some implementations, the custom identification object is a broken QR code. A damaged QR code refers to a QR code whose original QR code is damaged and cannot be scanned directly. For example, a damaged two-dimensional code may be a two-dimensional code whose edge or inner part is missing from the original two-dimensional code, or a two-dimensional code whose original two-dimensional code is defaced so that all or part of the content of the two-dimensional code cannot be recognized. The embodiments of the present disclosure make no special limitation on this.
本公开实施方式对于如何获取自定义识别对象的图像不做特殊限定。例如,可以通过摄像头采集用户手工制作或指定的图片、文字或物体的图像;也可以通过数据接口读入自定义识别对象的图像;还可以提供自定义识别对象的定制界面,由用户在该定制界面制作自定义识别对象。The embodiments of the present disclosure make no special limitation on how to obtain the image of the user-defined recognition object. For example, images of pictures, texts or objects manually made or specified by users can be collected through the camera; images of self-defined recognition objects can also be read in through the data interface; a custom interface for custom recognition objects can also be provided, and the user can customize Interface for making custom recognition objects.
第四方面,参照图9,本公开实施方式提供一种终端,包括:一个或多个处理器101;存储器102,其上存储有一个或多个程序,当一个或多个程序被一个或多个处理器执行时,使得一个或多个处理器实现本公开实施方式第一方面任意一项所述的扫码方法和/或本公开实施方式第三方面任意一项所述的信息处理方法;一个或多个I/O接口103,连接在处理器与存储器之间,配置为实现处理器与存储器的信息交互。In the fourth aspect, referring to FIG. 9 , an embodiment of the present disclosure provides a terminal, including: one or more processors 101; a memory 102, on which one or more programs are stored. When executed by one or more processors, one or more processors implement the code scanning method described in any one of the first aspects of the embodiments of the present disclosure and/or the information processing method described in any one of the third aspects of the embodiments of the present disclosure; One or more I/O interfaces 103 are connected between the processor and the memory, and are configured to realize information exchange between the processor and the memory.
其中,处理器101为具有数据处理能力的器件,其包括但不限于中央处理器(CPU)等;存储器102为具有数据存储能力的器件,其包括但不限于随机存取存储器(RAM,更具体如SDRAM、DDR等)、只读存储器(ROM)、带电可擦可编程只读存储器(EEPROM)、闪存(FLASH);I/O接口(读写接口)103连接在处理器101与存储器102间,能实现处理器101与存储器102的信息交互,其包括但不限于数据总线(Bus)等。Wherein, the processor 101 is a device with data processing capability, which includes but not limited to a central processing unit (CPU), etc.; the memory 102 is a device with data storage capability, which includes but not limited to a random access memory (RAM, more specifically Such as SDRAM, DDR, etc.), read-only memory (ROM), electrified erasable programmable read-only memory (EEPROM), flash memory (FLASH); I/O interface (read-write interface) 103 is connected between processor 101 and memory 102 , can realize information exchange between the processor 101 and the memory 102, which includes but not limited to a data bus (Bus) and the like.
在一些实施方式中,处理器101、存储器102和I/O接口103通过总线104相互连接,进而与计算设备的其它组件连接。In some implementations, the processor 101 , the memory 102 and the I/O interface 103 are connected to each other through the bus 104 , and are further connected to other components of the computing device.
第五方面,参照图10,本公开实施方式提供一种服务器,包括:一个或多个处理器201;存储器202,其上存储有一个或多个程序,当一个或多个程序被一个或多个处理器执行时,使得一个或多个处理 器实现本公开实施方式第二方面任意一项所述的信息处理方法;一个或多个I/O接口203,连接在处理器与存储器之间,配置为实现处理器与存储器的信息交互。In the fifth aspect, referring to FIG. 10 , an embodiment of the present disclosure provides a server, including: one or more processors 201; When executed by one or more processors, one or more processors implement the information processing method described in any one of the second aspect of the embodiment of the present disclosure; one or more I/O interfaces 203 are connected between the processor and the memory, It is configured to realize information exchange between the processor and the memory.
其中,处理器201为具有数据处理能力的器件,其包括但不限于中央处理器(CPU)等;存储器202为具有数据存储能力的器件,其包括但不限于随机存取存储器(RAM,更具体如SDRAM、DDR等)、只读存储器(ROM)、带电可擦可编程只读存储器(EEPROM)、闪存(FLASH);I/O接口(读写接口)203连接在处理器201与存储器202间,能实现处理器201与存储器202的信息交互,其包括但不限于数据总线(Bus)等。Wherein, the processor 201 is a device with data processing capability, which includes but not limited to a central processing unit (CPU), etc.; the memory 202 is a device with data storage capability, which includes but not limited to a random access memory (RAM, more specifically Such as SDRAM, DDR, etc.), read-only memory (ROM), electrified erasable programmable read-only memory (EEPROM), flash memory (FLASH); I/O interface (read-write interface) 203 is connected between processor 201 and memory 202 , can realize information exchange between the processor 201 and the memory 202, which includes but not limited to a data bus (Bus) and the like.
在一些实施方式中,处理器201、存储器202和I/O接口203通过总线204相互连接,进而与计算设备的其它组件连接。In some implementations, the processor 201 , the memory 202 and the I/O interface 203 are connected to each other through the bus 204 , and further connected to other components of the computing device.
第六方面,参照图11,本公开实施方式提供一种图形码载体,包括:一个或多个处理器301;存储器302,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现本公开实施方式第三方面任意一项所述的信息处理方法;显示装置303,配置为展示原始图形码对应的自定义识别对象。In the sixth aspect, referring to FIG. 11 , an embodiment of the present disclosure provides a graphic code carrier, including: one or more processors 301; a memory 302, on which one or more programs are stored, when the one or more programs When executed by the one or more processors, the one or more processors implement the information processing method described in any one of the third aspects of the embodiment of the present disclosure; the display device 303 is configured to display the original graphics code corresponding to A custom recognition object for .
在一些实施方式中,显示装置303还能够显示自定义识别对象的定制界面,能够由用户在该定制界面制作自定义识别对象,从而获取原始图形码对应的自定义识别对象。In some implementations, the display device 303 can also display a customized interface of the customized identification object, and the user can create a customized identification object on the customized interface, so as to obtain the customized identification object corresponding to the original graphic code.
第七方面,参照图12,本公开实施方式提供一种计算机可读介质,其上存储有计算机程序,所述程序被处理器执行时实现以下方法中的至少一者:本公开实施方式第一方面任意一项所述的扫码方法;本公开实施方式第二方面任意一项所述的信息处理方法;本公开实施方式第三方面任意一项所述的信息处理方法。In the seventh aspect, referring to FIG. 12 , an embodiment of the present disclosure provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, at least one of the following methods is implemented: the first embodiment of the present disclosure The code scanning method described in any one of the aspects; the information processing method described in any one of the second aspect of the embodiment of the present disclosure; the information processing method described in any one of the third aspect of the embodiment of the present disclosure.
为了使本领域技术人员能够更清楚地理解本公开实施方式提供的技术方案,下面通过具体的实施方式,对本公开实施方式提供的技术方案进行详细说明:In order to enable those skilled in the art to more clearly understand the technical solutions provided by the embodiments of the present disclosure, the technical solutions provided by the embodiments of the present disclosure will be described in detail below through specific embodiments:
图13为本公开实施方式中一种服务器的架构示意图。如图13 所示,服务器包括图像识别模块401、控制模块402、图形码映射数据库403。FIG. 13 is a schematic structural diagram of a server in an embodiment of the present disclosure. As shown in FIG. 13 , the server includes an image recognition module 401 , a control module 402 , and a graphic code mapping database 403 .
图像识别模块401配置为基于图像识别技术对待识别图像中的待识别对象进行识别,以确定待识别对象的内容或特征。图像识别模块401还配置为基于图像识别技术对自定义识别对象进行识别,以确定自定义识别对象的内容或特征。The image recognition module 401 is configured to recognize the object to be recognized in the image to be recognized based on the image recognition technology, so as to determine the content or characteristics of the object to be recognized. The image recognition module 401 is also configured to recognize the self-defined recognition object based on the image recognition technology, so as to determine the content or characteristics of the custom recognition object.
控制模块402配置为接收图形码备案信息,将图形码备案信息中的自定义识别对象的内容或特征和自定义识别对象对应的原始图形码对应存储到图形码映射数据库403中。控制模块403还配置为接收待识别图像,根据待识别对象的内容或特征在图形码映射数据库403中查询待识别对象对应的原始图形码。The control module 402 is configured to receive the graphic code filing information, and store the content or features of the self-defined identification object in the graphic code filing information and the original graphic code corresponding to the custom identification object in the graphic code mapping database 403 . The control module 403 is further configured to receive the image to be recognized, and query the original pattern code corresponding to the object to be recognized in the pattern code mapping database 403 according to the content or characteristics of the object to be recognized.
图形码映射数据库403配置为对应存储自定义识别对象的内容或特征和自定义识别对象对应的原始图形码。图形码映射数据库403的数据结构如表1所示。The graphic code mapping database 403 is configured to correspondingly store the content or features of the self-defined identification object and the original graphic code corresponding to the self-defined identification object. The data structure of the graphic code mapping database 403 is shown in Table 1.
表1Table 1
序号serial number 自定义识别对象custom recognition object 原始图形码raw graphic code
11 自定义识别对象1 Custom recognition object 1 原始图形码1Original graphic code 1
22 自定义识别对象2Custom recognition object 2 原始图形码2Raw graphic code 2
以下各个实施方式均基于图13所示的服务器架构。Each of the following implementations is based on the server architecture shown in FIG. 13 .
第一实施方式first embodiment
本实施方式以扫码支付为例进行说明。图14为本实施方式中扫码流程的示意图,包括步骤E101至E108。In this embodiment, payment by scanning a code is taken as an example for description. FIG. 14 is a schematic diagram of the code scanning process in this embodiment, including steps E101 to E108.
在步骤E101,扫码终端扫描待识别对象,待识别对象为自定义二维码(例如,心形二维码)或破损二维码。In step E101, the code scanning terminal scans the object to be recognized, and the object to be recognized is a custom two-dimensional code (for example, a heart-shaped two-dimensional code) or a damaged two-dimensional code.
在步骤E102,当扫码终端无法直接识别心形二维码或破损二维码的二维码信息(扫描失败)时,获取心形二维码或破损二维码的待识别图像,上传服务器。In step E102, when the code scanning terminal cannot directly recognize the two-dimensional code information of the heart-shaped two-dimensional code or the damaged two-dimensional code (scanning fails), obtain the image to be recognized of the heart-shaped two-dimensional code or the damaged two-dimensional code, and upload it to the server .
在步骤E103,服务器利用图像识别技术对待识别图像进行识别,识别出心形二维码或破损二维码的形状、颜色等内容和特征。In step E103, the server uses image recognition technology to recognize the image to be recognized, and recognizes the content and characteristics such as the shape and color of the heart-shaped two-dimensional code or the damaged two-dimensional code.
在步骤E104,服务器根据识别出的心形二维码或破损二维码的 内容或特征查询图形码映射数据库。In step E104, the server queries the graphic code mapping database according to the content or characteristics of the recognized heart-shaped two-dimensional code or damaged two-dimensional code.
在步骤E105,当查询到心形二维码或破损二维码对应的原始二维码时,服务器向扫码终端发送携带该原始二维码的图像识别信息。In step E105, when the original two-dimensional code corresponding to the heart-shaped two-dimensional code or the damaged two-dimensional code is found, the server sends the image identification information carrying the original two-dimensional code to the code scanning terminal.
在步骤E106,扫码终端接收图像识别信息,识别该原始二维码,完成扫码支付。In step E106, the code-scanning terminal receives the image recognition information, recognizes the original two-dimensional code, and completes the code-scanning payment.
在步骤E107,当未查询到心形二维码或破损二维码对应的原始二维码时,服务器向扫码终端发送失败通知消息。In step E107, when the original two-dimensional code corresponding to the heart-shaped two-dimensional code or the broken two-dimensional code is not found, the server sends a failure notification message to the code scanning terminal.
在步骤E108,扫码终端接收失败通知消息,生成表征扫码支付失败的扫码结果。In step E108, the code-scanning terminal receives the failure notification message, and generates a code-scanning result representing failure of the code-scanning payment.
第二实施方式second embodiment
本实施方式以扫码支付为例进行说明。图15为本实施方式中自定义识别对象的备案流程的示意图,包括步骤E201至E203。本实施方式中,自定义识别对象为用户对原始收款码进行二次加工得到的心形二维码。In this embodiment, payment by scanning a code is taken as an example for description. FIG. 15 is a schematic diagram of the filing process of the self-defined identification object in this embodiment, including steps E201 to E203. In this embodiment, the self-defined identification object is a heart-shaped two-dimensional code obtained by secondary processing of the original payment code by the user.
在步骤E201,备案终端获取心形二维码的图像。In step E201, the filing terminal acquires an image of a heart-shaped two-dimensional code.
在步骤E202,备案终端将心形二维码的图像和原始付款码信息上传服务器。In step E202, the filing terminal uploads the heart-shaped two-dimensional code image and the original payment code information to the server.
在步骤E203,服务器接收心形二维码的图像,利用图像识别技术对心形二维码进行识别,并将心形二维码和原始收款码对应存储到图形码映射数据库中。In step E203, the server receives the image of the heart-shaped two-dimensional code, uses image recognition technology to identify the heart-shaped two-dimensional code, and stores the heart-shaped two-dimensional code and the original payment code correspondingly in the graphic code mapping database.
第三实施方式third embodiment
本实施方式以共享单车扫码为例进行说明。图16为本实施方式中自定义识别对象的备案流程的示意图,包括步骤E301至E303。本实施方式中,自定义识别对象为原始单车码损坏无法直接进行扫码的破损二维码。This embodiment is described by taking code scanning of a shared bicycle as an example. FIG. 16 is a schematic diagram of the filing process of the self-defined identification object in this embodiment, including steps E301 to E303. In this embodiment, the self-defined identification object is a damaged QR code whose original bicycle code is damaged and cannot be scanned directly.
在步骤E301,备案终端获取破损二维码的图像。In step E301, the filing terminal acquires an image of a damaged two-dimensional code.
在步骤E302,备案终端将破损二维码的图像和原始单车码信息上传服务器。In step E302, the filing terminal uploads the damaged QR code image and the original bicycle code information to the server.
在步骤E303,服务器接收破损二维码的图像,利用图像识别技术对破损二维码进行识别,并将破损二维码和原始单车码对应存储到 图形码映射数据库中。In step E303, the server receives the image of the damaged two-dimensional code, uses image recognition technology to identify the damaged two-dimensional code, and stores the damaged two-dimensional code and the original bicycle code correspondingly in the graphic code mapping database.
在本公开中,支持用任意待识别对象代替原始图形码,服务器能够对替代原始图形码的对象进行备案,并能够终端能够在终端未识别到图形码信息的情况下辅助终端基于替代原始图形码的待识别对象完成扫码,从而支持用户自定义扫码对象或在原始图形码破损无法识别的情况下也无需重新打印,并且扫码过程中用户对待识别对象的识别过程无感知,提高了图形码应用的灵活性,提升了用户的扫码体验。In this disclosure, it is supported to replace the original graphic code with any object to be recognized, the server can record the object that replaces the original graphic code, and the terminal can assist the terminal to replace the original graphic code when the terminal does not recognize the graphic code information. The object to be identified can be scanned, which supports users to customize the object to be scanned or to print again if the original graphic code is damaged and unrecognizable. In addition, the user has no perception of the identification process of the object to be identified during the scanning process, which improves the graphic quality. The flexibility of the code application improves the user's code scanning experience.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其它数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其它存储器技术、CD-ROM、数字多功能盘(DVD)或其它光盘存储、磁盒、磁带、磁盘存储或其它磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其它的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其它传输机制之类的调制数据信号中的其它数据,并且可包括任何信息递送介质。Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, the functional modules/units in the system, and the device can be implemented as software, firmware, hardware, and an appropriate combination thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components. Components cooperate to execute. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit . Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those of ordinary skill in the art, the term computer storage media includes both volatile and nonvolatile media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. permanent, removable and non-removable media. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
本文已经公开了示例实施方式,并且虽然采用了具体术语,但它们仅用于并仅应当被解释为一般说明性含义,并且不用于限制的目的。在一些实例中,对本领域技术人员显而易见的是,除非另外明确指出, 否则可单独使用与特定实施方式相结合描述的特征、特性和/或元素,或可与其它实施方式相结合描述的特征、特性和/或元件组合使用。因此,本领域技术人员将理解,在不脱离由所附的权利要求阐明的本公开的范围的情况下,可进行各种形式和细节上的改变。Example embodiments have been disclosed herein, and while specific terms have been employed, they are used and should be construed in a general descriptive sense only and not for purposes of limitation. In some instances, it will be apparent to those skilled in the art that features, characteristics and/or elements described in connection with a particular embodiment may be used alone, or may be described in combination with other embodiments, unless explicitly stated otherwise. Combinations of features and/or elements. Accordingly, it will be understood by those of ordinary skill in the art that various changes in form and details may be made without departing from the scope of the present disclosure as set forth in the appended claims.

Claims (14)

  1. 一种扫码方法,包括:A code scanning method, comprising:
    响应于图形码识别请求信令,对待识别对象进行识别;Identifying the object to be identified in response to the graphic code identification request signaling;
    在未识别到图形码信息的情况下,获取所述待识别对象的待识别图像并上传服务器;If the graphic code information is not recognized, obtain the image to be recognized of the object to be recognized and upload it to the server;
    接收所述服务器根据所述待识别图像生成并发送的图像识别信息,生成扫码结果。receiving the image recognition information generated and sent by the server according to the image to be recognized, and generating a code scanning result.
  2. 根据权利要求1所述的扫码方法,其中,接收所述服务器根据所述待识别图像生成并返回的图像识别信息,生成扫码结果的步骤包括:The code scanning method according to claim 1, wherein the step of receiving the image recognition information generated and returned by the server according to the image to be recognized, and generating a code scanning result comprises:
    在所述图像识别信息携带原始图形码的情况下,识别所述原始图形码的图形码信息得到所述扫码结果。In the case that the image recognition information carries an original graphic code, the graphic code information of the original graphic code is identified to obtain the code scanning result.
  3. 根据权利要求2所述的扫码方法,其中,接收所述服务器根据所述待识别图像生成并返回的图像识别信息,生成扫码结果的步骤还包括:The code scanning method according to claim 2, wherein the step of receiving the image recognition information generated and returned by the server according to the image to be recognized, and generating the code scanning result further comprises:
    在所述图像识别信息为失败通知消息的情况下,生成表征图形码识别失败的扫码结果。In the case that the image recognition information is a failure notification message, a code scanning result representing a failure in recognition of the graphic code is generated.
  4. 根据权利要求1至3中任意一项所述的扫码方法,其中,所述待识别对象为自定义二维码或破损二维码。The code scanning method according to any one of claims 1 to 3, wherein the object to be recognized is a custom two-dimensional code or a damaged two-dimensional code.
  5. 一种信息处理方法,包括:An information processing method, comprising:
    根据待识别图像查询所述待识别图像中的待识别对象对应的原始图形码;Querying the original graphic code corresponding to the object to be recognized in the image to be recognized according to the image to be recognized;
    根据查询结果向上传所述待识别图像的终端发送图像识别信息,所述图像识别信息表征是否查询到所述待识别对象对应的原始图形码。Sending image identification information to the terminal that uploaded the image to be identified according to the query result, the image identification information indicating whether the original graphic code corresponding to the object to be identified is found.
  6. 根据权利要求5所述的信息处理方法,其中,根据待识别图像查询所述待识别图像中的待识别对象对应的原始图形码的步骤包括:The information processing method according to claim 5, wherein the step of querying the original graphic code corresponding to the object to be recognized in the image to be recognized according to the image to be recognized comprises:
    利用图像识别技术对所述待识别图像中的所述待识别对象进行识别,以确定所述待识别对象的内容或特征;Using image recognition technology to identify the object to be identified in the image to be identified to determine the content or characteristics of the object to be identified;
    根据所述待识别对象的内容或特征在图形码映射数据库中查询所述待识别对象对应的原始图形码,所述图形码映射数据库中包括多个自定义识别对象的内容或特征与原始图形码的对应关系。Query the original graphic code corresponding to the object to be identified in the graphic code mapping database according to the content or characteristics of the object to be identified, and the graphic code mapping database includes the content or characteristics of multiple self-defined identification objects and the original graphic code corresponding relationship.
  7. 根据权利要求5或6所述的信息处理方法,其中,根据查询结果向上传所述待识别图像的终端发送图像识别信息的步骤包括:The information processing method according to claim 5 or 6, wherein the step of sending the image identification information to the terminal uploading the image to be identified according to the query result comprises:
    在查询到所述待识别对象对应的原始图形码的情况下,将携带所述待识别对象对应的原始图形码的图像识别信息发送到所述终端;When the original graphic code corresponding to the object to be identified is found, the image recognition information carrying the original graphic code corresponding to the object to be identified is sent to the terminal;
    在未查询到所述待识别对象对应的原始图形码的情况下,将作为所述图像识别信息的失败通知消息发送到所述终端。If the original graphic code corresponding to the object to be recognized is not found, a failure notification message serving as the image recognition information is sent to the terminal.
  8. 根据权利要求5或6所述的信息处理方法,其中,所述信息处理方法还包括:The information processing method according to claim 5 or 6, wherein the information processing method further comprises:
    接收图形码备案信息,所述图形码备案信息包括自定义识别对象的图像和所述自定义识别对象对应的原始图形码的信息;Receive graphic code record information, the graphic code record information includes the image of the self-defined identification object and the information of the original graphic code corresponding to the self-defined identification object;
    利用图像识别技术对所述自定义识别对象的图像中的所述自定义识别对象进行识别,以确定所述自定义识别对象的内容或特征;Using image recognition technology to identify the self-defined identification object in the image of the self-defined identification object to determine the content or characteristics of the self-defined identification object;
    将所述自定义识别对象的内容或特征和所述自定义识别对象对应的原始图形码对应存储到图形码映射数据库中。The content or characteristics of the self-defined identification object and the original graphic code corresponding to the self-defined identification object are correspondingly stored in the graphic code mapping database.
  9. 一种信息处理方法,包括:An information processing method, comprising:
    获取原始图形码对应的自定义识别对象的图像;Obtain the image of the custom recognition object corresponding to the original graphic code;
    生成图形码备案信息,所述图形码备案信息包括所述原始图形码的信息和所述自定义识别对象的图像;Generate graphic code record information, the graphic code record information includes the information of the original graphic code and the image of the self-defined identification object;
    将所述图形码备案信息上传服务器。Upload the graphic code filing information to the server.
  10. 根据权利要求9所述的信息处理方法,其中,所述自定义识别对象为自定义二维码或破损二维码。The information processing method according to claim 9, wherein the self-defined identification object is a self-defined two-dimensional code or a damaged two-dimensional code.
  11. 一种终端,包括:A terminal comprising:
    一个或多个处理器;one or more processors;
    存储器,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现根据权利要求1至4中任意一项所述的扫码方法或根据权利要求9或10所述的信息处理方法;A memory, on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors are implemented according to any one of claims 1 to 4 The code scanning method described in one item or the information processing method according to claim 9 or 10;
    一个或多个I/O接口,连接在所述处理器与存储器之间,配置为实现所述处理器与存储器的信息交互。One or more I/O interfaces are connected between the processor and the memory, configured to realize information exchange between the processor and the memory.
  12. 一种服务器,包括:A server comprising:
    一个或多个处理器;one or more processors;
    存储器,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现根据权利要求5至8中任意一项所述的信息处理方法;A memory, on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement any of the one of the information processing methods;
    一个或多个I/O接口,连接在所述处理器与存储器之间,配置为实现所述处理器与存储器的信息交互。One or more I/O interfaces are connected between the processor and the memory, configured to realize information exchange between the processor and the memory.
  13. 一种图形码载体,包括:A graphic code carrier, comprising:
    一个或多个处理器;one or more processors;
    存储器,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现根据权利要求9或10所述的信息处理方法;memory, on which one or more programs are stored, when said one or more programs are executed by said one or more processors, said one or more processors are implemented according to claim 9 or 10 information processing methods;
    显示装置,配置为展示原始图形码对应的自定义识别对象。The display device is configured to display the custom identification object corresponding to the original graphic code.
  14. 一种计算机可读介质,其上存储有计算机程序,所述程序被 处理器执行时实现权利要求1-10中任一项所述的方法。A computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the method according to any one of claims 1-10 is realized.
PCT/CN2022/114214 2021-09-09 2022-08-23 Code scanning method, information processing method, terminal, server, graphic code carrier, medium WO2023035932A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111054796.5 2021-09-09
CN202111054796.5A CN115796205A (en) 2021-09-09 2021-09-09 Code scanning method, information processing method, terminal, server, graphic code carrier and medium

Publications (1)

Publication Number Publication Date
WO2023035932A1 true WO2023035932A1 (en) 2023-03-16

Family

ID=85416937

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/114214 WO2023035932A1 (en) 2021-09-09 2022-08-23 Code scanning method, information processing method, terminal, server, graphic code carrier, medium

Country Status (2)

Country Link
CN (1) CN115796205A (en)
WO (1) WO2023035932A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103997567A (en) * 2014-04-30 2014-08-20 小米科技有限责任公司 Method and device for acquiring graphic code information
CN104143105A (en) * 2013-09-22 2014-11-12 腾讯科技(深圳)有限公司 Graph recognition method, device and system and terminal device
CN107506817A (en) * 2017-07-13 2017-12-22 海南亚元防伪技术研究所(普通合伙) The virtual endowed method and system of commodity based on individualized pattern
CN109711512A (en) * 2018-12-17 2019-05-03 珠海格力电器股份有限公司 Two-dimensional code generation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104143105A (en) * 2013-09-22 2014-11-12 腾讯科技(深圳)有限公司 Graph recognition method, device and system and terminal device
CN103997567A (en) * 2014-04-30 2014-08-20 小米科技有限责任公司 Method and device for acquiring graphic code information
CN107506817A (en) * 2017-07-13 2017-12-22 海南亚元防伪技术研究所(普通合伙) The virtual endowed method and system of commodity based on individualized pattern
CN109711512A (en) * 2018-12-17 2019-05-03 珠海格力电器股份有限公司 Two-dimensional code generation method and device

Also Published As

Publication number Publication date
CN115796205A (en) 2023-03-14

Similar Documents

Publication Publication Date Title
JP2016167273A (en) System and method for recognizing text information in object
US8095868B2 (en) Document management device and document management method
US10992827B2 (en) Information processing system, information processing apparatus, information processing method, and storage medium to execute layout processing
CN107728892B (en) Picture display method, device, terminal and storage medium
US20170124390A1 (en) Image processing apparatus, image processing method, and non-transitory computer readable medium
US20180115681A1 (en) Display system
US20160104052A1 (en) Text-based thumbnail generation
JP2020046819A (en) Information processing apparatus and program
CN108734003A (en) Auth method, device, equipment, storage medium and program
CN101448054A (en) Information processing device, printing device, information processing system and method
JP2016015018A (en) Service providing device, method, and program
WO2023035932A1 (en) Code scanning method, information processing method, terminal, server, graphic code carrier, medium
CN112084812A (en) Image processing method, image processing device, computer equipment and storage medium
WO2012138814A2 (en) Creating a detailed contact record from a digital image of a business card and associated company data
US20230054354A1 (en) Information sharing method and apparatus, electronic device, and computer-readable storage medium
CN111208955A (en) Printing method, printing device and server
US10033907B2 (en) Image forming apparatus, system, and computer program product replacing image data with corresponding stored replacement image data
JP2022093466A (en) Information processing device, information processing system, and program
JP2016015019A (en) Service providing device, method, and program
KR101525409B1 (en) Augmented method of contents using image-cognition modules
CN112633279A (en) Text recognition method, device and system
US20200272688A1 (en) Information processing apparatus and non-transitory computer readable medium
US8767007B2 (en) Processing images of a display
CN110991270B (en) Text recognition method, device, electronic equipment and storage medium
CN115019326B (en) File entry system, method, device and storage medium

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: 22866402

Country of ref document: EP

Kind code of ref document: A1