WO2022206172A1 - Graphic code, graphic code recognition method, storage medium, and related apparatus - Google Patents

Graphic code, graphic code recognition method, storage medium, and related apparatus Download PDF

Info

Publication number
WO2022206172A1
WO2022206172A1 PCT/CN2022/075367 CN2022075367W WO2022206172A1 WO 2022206172 A1 WO2022206172 A1 WO 2022206172A1 CN 2022075367 W CN2022075367 W CN 2022075367W WO 2022206172 A1 WO2022206172 A1 WO 2022206172A1
Authority
WO
WIPO (PCT)
Prior art keywords
graphic
code
infrared
area
graphic code
Prior art date
Application number
PCT/CN2022/075367
Other languages
French (fr)
Chinese (zh)
Inventor
戴阳
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022206172A1 publication Critical patent/WO2022206172A1/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
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices

Definitions

  • the present disclosure relates to the technical field of image processing, and in particular, to a graphic code, a graphic code identification method, a graphic code identification device, a graphic code identification system, a computer-readable storage medium, and an electronic device.
  • the present disclosure provides a graphic code, a graphic code identification method, a graphic code identification device, a graphic code identification system, a computer-readable storage medium and an electronic device, thereby improving the environmental requirements of graphic code identification in the prior art at least to a certain extent high, and identify problems with poor accuracy.
  • a graphic code the graphic code is disposed on a substrate, a graphic area of the graphic code is coated with an infrared reflection layer, and the infrared reflection rate of the infrared reflection layer is higher than that of the substrate of infrared reflectance.
  • a method for identifying a graphic code comprising: acquiring an infrared reflection signal received by an infrared sensor, and the infrared reflection signal is transmitted by the infrared sensor to the infrared emission signal of the first aspect. It is formed by reflection at the graphic code; based on the infrared reflection signal, the graphic area of the graphic code is identified.
  • a graphic code identification device comprising: a reflection signal acquisition module for acquiring an infrared reflection signal received by an infrared sensor, where the infrared sensor transmits an infrared emission signal for the infrared reflection signal It is formed by reflection at the graphic code described in the first aspect; a graphic area identification module is configured to identify the graphic area of the graphic code based on the infrared reflection signal.
  • a graphic code identification system comprising: a graphic code, the graphic code is disposed on a substrate, a graphic area of the graphic code is coated with an infrared reflection layer, and the infrared reflection layer of the infrared reflection layer The reflectivity is higher than the infrared reflectivity of the substrate; the graphic code identification device is used to obtain the infrared reflection signal received by the infrared sensor, and based on the infrared reflection signal, identify the graphic area of the graphic code; the infrared reflection signal It is formed by the infrared sensor transmitting the infrared emission signal to the graphic code and reflecting.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the graphic code identification method of the second aspect and possible implementations thereof.
  • an electronic device comprising: a processor; and a memory for storing executable instructions of the processor.
  • the processor is configured to execute the graphic code identification method of the second aspect and possible implementations thereof by executing the executable instructions.
  • the graphic code is arranged on the substrate, the graphic area of the graphic code is coated with an infrared reflection layer, and the infrared reflection rate of the infrared reflection layer is higher than that of the substrate.
  • the graphic code in this exemplary embodiment is coated with an infrared reflection layer in the graphic area, the graphic code can be scanned by an infrared sensor, and the graphic area can be identified according to the infrared reflection signal reflected by the infrared reflection layer, compared with
  • the method of collecting the image of the graphic code to identify the graphic area, the identification process is simple, and the recognition accuracy of the graphic area is high; The signal is not affected by ambient light, and it can still accurately and quickly identify the graphic area at night or in an indoor environment with weak light, and has a wide range of applications.
  • FIG. 1 shows a schematic diagram of the system architecture of a method for identifying a graphic code in this exemplary embodiment
  • FIG. 2 shows a structural diagram of an electronic device in this exemplary embodiment
  • FIG. 3 shows a schematic diagram of a graphic code in this exemplary embodiment
  • FIG. 4 shows a flowchart of a method for identifying a graphic code in this exemplary embodiment
  • FIG. 5 shows a schematic diagram of a scene of scanning a two-dimensional code in this exemplary embodiment
  • FIG. 6 shows a schematic diagram of a user interface when scanning a two-dimensional code in this exemplary embodiment
  • FIG. 7 shows a schematic diagram of another user interface when scanning a two-dimensional code in this exemplary embodiment
  • FIG. 8 shows a schematic diagram of still another user interface when scanning a two-dimensional code in this exemplary embodiment
  • FIG. 9 shows a structural block diagram of an apparatus for identifying a graphic code in this exemplary embodiment.
  • Example embodiments will now be described more fully with reference to the accompanying drawings.
  • Example embodiments can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
  • the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
  • numerous specific details are provided in order to give a thorough understanding of the embodiments of the present disclosure.
  • those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed.
  • well-known solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
  • FIG. 1 shows a system architecture diagram of the operating environment of the present exemplary embodiment.
  • the system architecture 100 may include a server 110 and a terminal 120 , and a communication interaction is formed between the two through a network.
  • the server 110 sends the identification result of the graphic area to the terminal 120 .
  • the server 110 refers to a background server that provides Internet services; the terminal 120 includes, but is not limited to, smart phones, tablet computers, game consoles, wearable devices, and the like.
  • FIG. 1 the number of devices in FIG. 1 is exemplary only. According to the implementation needs, any number of clients can be set, or the server can be a cluster formed by multiple servers.
  • the graphic code identification method provided by the embodiment of the present disclosure may be executed by the terminal 120, for example, an infrared sensor configured by the terminal 120 transmits an infrared emission signal to the graphic code, receives the infrared reflection signal, and identifies the graphic area according to the infrared reflection signal; It can also be executed by the server 110.
  • the terminal 120 uploads the infrared reflection signal to the server 110 after receiving the infrared reflection signal, so that the server 110 can identify the graphic area according to the infrared reflection signal, which is not limited in this disclosure.
  • An exemplary embodiment of the present disclosure provides an electronic device for implementing a method for identifying a graphic code, which may be the server 110 and the terminal 120 in FIG. 1 .
  • the electronic device includes at least a processor and a memory, the memory is used for storing executable instructions of the processor, and the processor is configured to execute the graphic code identification method by executing the executable instructions.
  • the mobile terminal 200 may specifically include: a processor 210, an internal memory 221, an external memory interface 222, a USB (Universal Serial Bus, Universal Serial Bus) interface 230, a charging management module 240, a power management module 241, Battery 242, Antenna 1, Antenna 2, Mobile Communication Module 250, Wireless Communication Module 260, Audio Module 270, Speaker 271, Receiver 272, Microphone 273, Headphone Interface 274, Sensor Module 280, Display Screen 290, Camera Module 291, Indication 292, a motor 293, a key 294, a SIM (Subscriber Identification Module, Subscriber Identification Module) card interface 295 and the like.
  • a processor 210 an internal memory 221, an external memory interface 222, a USB (Universal Serial Bus, Universal Serial Bus) interface 230
  • a charging management module 240 a power management module 241, Battery 242, Antenna 1, Antenna 2, Mobile Communication Module 250, Wireless Communication Module 260, Audio Module 270, Speaker 271, Receiver 272, Microphone 273, Headphone Interface 274, Sensor Module 280
  • the processor 210 may include one or more processing units, for example, the processor 210 may include an AP (Application Processor, application processor), a modem processor, a GPU (Graphics Processing Unit, graphics processor), an ISP (Image Signal Processor, image signal processor), controller, encoder, decoder, DSP (Digital Signal Processor, digital signal processor), baseband processor and/or NPU (Neural-Network Processing Unit, neural network processor), etc.
  • the encoder can encode (ie, compress) the image or video data; the decoder can decode (ie, decompress) the code stream data of the image or video to restore the image or video data.
  • the processor 210 may include one or more interfaces through which connections are formed with other components of the mobile terminal 200 .
  • Internal memory 221 may be used to store computer executable program code, which includes instructions.
  • the internal memory 221 may include volatile memory, nonvolatile memory, and the like.
  • the processor 210 executes various functional applications and data processing of the mobile terminal 200 by executing instructions stored in the internal memory 221 and/or instructions stored in a memory provided in the processor.
  • the external memory interface 222 can be used to connect an external memory, such as a Micro SD card, to expand the storage capacity of the mobile terminal 200.
  • the external memory communicates with the processor 210 through the external memory interface 222 to implement data storage functions, such as storing music, video and other files.
  • the USB interface 230 is an interface conforming to the USB standard specification, and can be used to connect a charger to charge the mobile terminal 200, and can also be connected to an earphone or other electronic devices.
  • the charging management module 240 is used to receive charging input from the charger. While charging the battery 242, the charging management module 240 can also supply power to the device through the power management module 241; the power management module 241 can also monitor the state of the battery.
  • the wireless communication function of the mobile terminal 200 may be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • the mobile communication module 250 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the mobile terminal 200 .
  • the wireless communication module 260 can provide applications on the mobile terminal 200 including WLAN (Wireless Local Area Networks, wireless local area network) (such as Wi-Fi (Wireless Fidelity, wireless fidelity) network), BT (Bluetooth, Bluetooth), GNSS (Global Navigation Satellite System, global navigation satellite system), FM (Frequency Modulation, frequency modulation), NFC (Near Field Communication, short-range wireless communication technology), IR (Infrared, infrared technology) and other wireless communication solutions.
  • the mobile terminal 200 may implement a display function through a GPU, a display screen 290, an AP, and the like, and display a user interface.
  • the mobile terminal 200 can realize the shooting function through the ISP, the camera module 291, the encoder, the decoder, the GPU, the display screen 290 and the AP, etc., and can also realize the shooting function through the audio module 270, the speaker 271, the receiver 272, the microphone 273, the headphone interface 274, and the like. AP, etc. to implement audio functions.
  • the sensor module 280 may include a depth sensor 2801, a pressure sensor 2802, a gyro sensor 2803, an air pressure sensor 2804, etc., to realize different sensing detection functions.
  • the indicator 292 can be an indicator light, which can be used to indicate the charging status, the change of power, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the motor 293 can generate vibration prompts, and can also be used for touch vibration feedback and the like.
  • the keys 294 include a power-on key, a volume key, and the like.
  • the mobile terminal 200 may support one or more SIM card interfaces 295 for connecting the SIM cards to realize functions such as calling and data communication.
  • the present exemplary embodiment provides a graphic code.
  • FIG. 3 a schematic diagram of a graphic code in the present exemplary embodiment is shown.
  • the graphic code 310 is arranged on the base 320 .
  • the pattern area 311 is coated with an infrared reflection layer, and the infrared reflection rate of the infrared reflection layer is higher than that of the substrate.
  • the user can scan the graphic code 310 provided on the base 320 through the mobile terminal to obtain the information contained in the graphic code 310 .
  • the above-mentioned graphic codes 310 may include various types of graphic codes, such as two-dimensional codes, barcodes, or other graphic codes that can acquire information through scanning or image capture.
  • the substrate 320 refers to a medium for carrying the graphic code 310, which can be glass, a wall, etc.
  • the substrate 320 can be a transparent substrate, that is, a transparent material with high light transmittance, such as Completely transparent or transparent glass or plastic, etc.
  • Disposing the graphic code 310 on the substrate 320 may include directly disposing the graphic code 310 on the substrate 320, or combining the pre-set graphic code 310 with the substrate 320, for example, coating the glass according to the graphic area; Graphic code film in the graphic area attached to the glass, etc.
  • the graphic area 311 refers to the area that can reflect the graphic code information, and the area other than the graphic area 311 in the graphic code can be used as the background area 312. Indicates the internal logic of "0" or "1", wherein the black area can be used as the graphic area 311, and the white area is the background area 312; in addition, the white area can also be used as the graphic area 311, then the black area is the background area 312. It should be noted that the above black area and white area are only for schematic illustration. In practical application, as long as the area can reflect the logic of "0" or "1" in the two-dimensional code, there is no specific limitation on the color.
  • the graphic area 311 may be coated with an infrared reflection layer.
  • the graphic area 311 may be directly coated with an infrared reflection layer, or a film with infrared reflection properties that conforms to the graphic area 311 may be obtained.
  • On the graphic area 311, etc. for example, coat the black area of the two-dimensional code on the glass with an infrared reflection layer, or paste the two-dimensional code film with an infrared reflection layer in the black area on the glass, or directly on the black area The area is pasted with a film with infrared reflective properties, etc.
  • Other areas other than the graphic area 311, such as the substrate or the background area 312, may not be coated.
  • a "hollowed out" two-dimensional code film with only the black area coated can be pasted on the glass; or the complete two-dimensional code is transparent.
  • the substrate or background area 312 can also be coated with other layers, for example, it does not have infrared reflection performance, or the infrared reflection performance is poor. other transparent layers, etc.
  • the graphic area 311 can return the infrared reflected signal better, while the background area 312 and the substrate 320 cannot return The infrared reflection signal or the returned infrared reflection signal is weak, therefore, the mobile terminal can identify the graphic area based on the infrared reflection signal.
  • the substrate 320 is a transparent substrate, and the infrared reflection layer is a transparent layer.
  • the infrared reflection layer is a transparent layer.
  • the first one is that the infrared reflection layer is colorless. After the graphic area is coated with the infrared reflection layer, the user cannot observe the existence of the graphic area with the naked eye, and the graphic code is realized.
  • the infrared reflective layer is a reflective layer with color but with a certain degree of transparency, the user can observe the existence of the graphic area with the naked eye, but it is not obvious, and the user can see through the graphic code
  • the environmental state behind the transparent substrate was observed, and the graphic code basically did not affect the user's line of sight.
  • a two-dimensional code is set on glass as an example, glass with a reflectivity of less than 30% for near-infrared light with a wavelength of 940 nm (nanometer) can be used as a transparent substrate, and the two-dimensional code
  • the black area is coated with an infrared reflective layer.
  • the infrared reflective layer has a reflectance of less than 30% for visible light with a wavelength of 450 to 650 mm, and has at least a 10 nm wavelength bandwidth for near-infrared light with a wavelength of 800 to 1600 nm (for example, 940nm ⁇ 5nm) the reflectivity is greater than 50%, so that the two-dimensional code can visually achieve the effect of "invisible two-dimensional code”.
  • the graphic area reflects the infrared reflected signal, while the background area and the transparent substrate do not reflect the infrared reflected signal or the reflected infrared reflected signal is weak, and the mobile terminal can identify the graphic code based on the infrared reflected signal. "0", "1" area to restore the QR code.
  • the graphic code is disposed on the substrate, the graphic area of the graphic code is coated with an infrared reflection layer, and the infrared reflection rate of the infrared reflection layer is higher than that of the substrate.
  • the graphic code in this exemplary embodiment is coated with an infrared reflection layer in the graphic area, the graphic code can be scanned by an infrared sensor, and the graphic area can be identified according to the infrared reflection signal reflected by the infrared reflection layer, compared with
  • the method of collecting the image of the graphic code to identify the graphic area, the identification process is simple, and the recognition accuracy of the graphic area is high; The signal is not affected by ambient light, and it can still accurately and quickly identify the graphic area at night or in an indoor environment with weak light, and has a wide range of applications.
  • this exemplary embodiment also provides a method for identifying a graphic code.
  • the application scenarios of the method may include, but are not limited to: in a navigation and positioning scenario, a user scans a graphic code in a shopping mall with a smartphone to obtain current positioning information or Shopping mall information, etc.; in an AR game scenario, the user wears a head-mounted device to identify and detect the graphic code in the environment, triggering game tasks or positioning information, etc., where the graphic code is the graphic code described above.
  • FIG. 4 shows an exemplary flow of the graphic code identification method, which can be executed by the above-mentioned server 110 or terminal 120, including the following steps S410 to S420:
  • Step S410 acquiring the infrared reflection signal received by the infrared sensor, where the infrared reflection signal is formed by the infrared sensor transmitting the infrared emission signal to the above-mentioned graphic code and reflecting.
  • the graphic code refers to the above-mentioned graphic code provided on the substrate, and the graphic area is coated with an infrared reflective layer.
  • the graphic code may be a two-dimensional code, a barcode, or other graphic codes containing information.
  • the present exemplary embodiment can be applied to electronic devices equipped with infrared sensors, such as smart phones, notebook computers, tablet computers, VR (Virtual Reality, virtual reality)/AR (Augmented Reality, augmented reality) headsets and other electronic devices.
  • the infrared sensor may be a sensor that only includes an infrared emission signal transmitting component and an infrared reflected signal receiving component; it may also be a sensor that includes an infrared transmitting signal transmitting component, an infrared reflected signal receiving component, a camera, etc., for example, an infrared camera module is configured. smartphones or VR/AR devices, etc.
  • components can also be added to the infrared sensor, such as adding infrared supplementary light to supplement infrared light in an environment with insufficient infrared light.
  • the size of the graphic code can also be customized according to actual needs. For example, the length or width can be set within the range of 10cm (centimeter) to 1m (meter) to better match the spatial resolution of the infrared camera module.
  • the infrared sensor can transmit infrared emission signals to the environment, and receive the infrared reflection signals reflected by the graphic codes in the environment.
  • the infrared camera module can include an infrared emission component and an infrared reflection receiving component, and the infrared emission component can transmit to the front environment.
  • Infrared pulse signal after the infrared pulse signal reaches the graphic code in the environment, it will be reflected back a part, that is, the infrared reflection signal; the infrared reflection receiving component can receive the infrared reflection signal reflected from the environment, and then solve the infrared pulse based on the underlying algorithm
  • the time of flight of the signal can determine the distance between the graphic code in the environment and the infrared sensor.
  • the above infrared sensor may include a TOF (Time of Flight) sensor, specifically an ITOF (Indirect TOF, indirect measurement of time of flight) sensor and a DTOF (Direct TOF, direct measurement of time of flight) sensor etc.
  • ITOF adopts the method of measuring phase offset, and measures the time of flight by the phase difference between the transmitted sine/square wave and the received sine/square wave; while DTOF measures the transmitted infrared pulse and the received infrared pulse. Time interval of pulses to measure time of flight.
  • a VCSEL Very-Cavity Surface-Emitting Laser
  • the resolution can be in various forms such as 240*180, 320*240, 640*480, etc., which is not specifically limited in this disclosure, wherein the resolution of the processing chip in the electronic device is usually not less than the output high-resolution dense The resolution of the graph.
  • Step S420 based on the infrared reflection signal, identify the graphic area of the graphic code.
  • the infrared reflection signal refers to the photoelectric signal reflected by the infrared emission signal transmitted to the graphic code. Since the graphic code in this exemplary embodiment is coated with an infrared reflection layer in the graphic area, when the infrared emission signal is transmitted to the graphic code, The infrared reflection signal reflected by the graphic area is different from the infrared reflection signal reflected by the substrate. Therefore, based on the infrared reflection signal, the graphic area of the graphic code can be identified by the graphic code processing chip, and the numbers contained in the graphic code can be restored.
  • the black area when the infrared emission signal is emitted to the QR code coated with the infrared reflection layer in the black area, the black area will reflect the infrared reflection signal, and the area outside the black area will not reflect the infrared reflection signal.
  • the reflected infrared reflection signal identifies the position of the black area and encodes it (such as "0"), and then determines the boundary of the graphic code according to the position of the black area, such as according to the detection pattern in the two-dimensional code (three).
  • the present exemplary embodiment can identify the graphic area of the graphic code in the following two ways.
  • the first is to identify the graphic area of the graphic code based on the intensity of the infrared reflected signal.
  • the graphic area reflects the infrared reflected signal, while the background area and the substrate do not reflect the infrared reflected signal or the reflected infrared reflection.
  • the signal is weak. Therefore, based on the intensity of the infrared reflection signal, the graphic area can be restored, that is, the area where the infrared reflection signal is received can be compared with the area that has not received the infrared reflection signal or received the infrared reflection signal by means of binarization.
  • the weaker area is represented to identify the graphic area of the graphic code.
  • the second is to calculate the flight time of the infrared signal based on the received infrared reflection signal to further calculate the depth information of the graphic code, wherein the depth information refers to the data that can reflect the distance between the graphic code and the infrared sensor.
  • a depth image including the graphics code is determined, and the graphics area of the graphics code is restored by the depth image.
  • any one of the above-mentioned manners may be used to identify the graphic area as required, which is not specifically limited in the present disclosure.
  • the scanned QR code may be non-square (such as a trapezoid), that is, there is a tangential distortion of the graphic area, which affects the recognition of the QR code.
  • the present exemplary embodiment can obtain depth information at different positions in the graphics area through the TOF sensor, and perform tangential correction on the graphics area according to the depth information.
  • the two-dimensional code is further tangentially corrected according to the inclination angle, etc., so as to avoid the situation of difficult or incorrect identification due to the distortion of the graphic area, and improve the identification accuracy of the graphic code. sex.
  • the infrared reflection signal received by the infrared sensor is obtained, and the infrared reflection signal is formed by the infrared sensor transmitting the infrared emission signal to the graphic code and reflecting; graphics area.
  • this exemplary embodiment only configures an infrared sensor to receive the infrared reflection signal reflected by the graphic code, that is, the graphic area can be identified, without involving the process of image acquisition and image recognition, and avoids the abnormality of the acquired image.
  • the identification process is simple, and the identification accuracy of the graphic area is high; Due to the influence of ambient light, it can still accurately and quickly identify the graphic area at night or in an indoor environment with weak light, and has a wide range of applications.
  • step S420 may include:
  • an infrared sensor can include a plurality of elements in different positions to determine the infrared reflection signal of different pixel points, such as SPAD (Single Photon Avalanche Diode, single photon avalanche diode), elements in different positions can respond to the received infrared reflection signal Intensity analysis is performed to determine the pattern area of the pattern code.
  • SPAD Single Photon Avalanche Diode, single photon avalanche diode
  • performing intensity analysis on the infrared reflection signals received by elements at different positions in the infrared sensor to obtain the graphic area of the graphic code may include the following steps:
  • the above-mentioned graphic code identification method may further comprise the following steps:
  • the image area corresponding to any position is divided into the background area.
  • the preset intensity threshold refers to the criterion for judging whether the infrared reflection signal is reflected from the graphic area, which can be customized according to needs. For example, when the infrared sensor is required to be close to the graphic code, the graphic When identifying the area, a larger preset intensity threshold can be set. When the infrared sensor needs to be far away from the graphic code, when the graphic area can still be identified, a smaller preset intensity threshold can be set according to the distance. Since the graphic area has an infrared reflection layer, it can better reflect the infrared reflection signal, while the background area and the substrate do not have an infrared reflection layer. Determines whether the area corresponding to the component position is a graphics area.
  • the image area corresponding to the position can be divided into graphic areas; when the intensity of the infrared reflection signal received by the element at any position is less than the preset intensity threshold
  • the image area corresponding to the position can be divided into the background area, so that the graphic area and the background area of the graphic code can be identified.
  • the above-mentioned graphic code is a two-dimensional code
  • the above-mentioned step S420 identifies the graphic area of the graphic code, and may further include:
  • the black area in the two-dimensional code can be used as the graphic area, and the black area is coated with an infrared reflection layer, and the two-dimensional code can be set On the transparent substrate, when the infrared emission signal is transmitted to the two-dimensional code, the black area reflects the infrared reflection signal, while the white area and the transparent substrate do not reflect the infrared reflection signal or the reflected infrared reflection signal is weak, so the infrared reflection signal can be based on the infrared reflection signal. Identify the "0" and "1" areas of the two-dimensional code, so as to restore the two-dimensional code.
  • the two-dimensional code arranged on the transparent substrate may be a graphic code with no color difference, for example, the black area and the white area are both transparent. , the difference is that the black area is coated with the infrared reflective layer, while the white area is not coated.
  • the current scene may be the scene where the user or the two-dimensional code is located, and the information of the current scene may include the location information of the scene, the recommendation information of the store, or the information of the hot-selling products, and so on.
  • FIG. 5 shows a schematic diagram of a scene of scanning a two-dimensional code.
  • a user uses a smartphone equipped with an infrared sensor to scan the two-dimensional code 510 on the glass of store A in a shopping mall, wherein the two-dimensional code 510 is for schematic illustration. , with a black area and a white area division.
  • the two-dimensional code 510 is in a state of "invisibility" or not easy to be observed on the glass.
  • the above-mentioned parsing of the two-dimensional code to obtain information of the current scene corresponding to the two-dimensional code may include:
  • Parse the two-dimensional code and display the preset information of the current scene corresponding to the two-dimensional code, or the virtual object matching the current scene.
  • the preset information of the current scene corresponding to the QR code may refer to preset information associated with the current scene.
  • the preset information of the current scene may be the information of the store. information, or information on hot-selling products or recommended products in the store, and the user scans the QR code on the store window to obtain the above-mentioned store information or product information.
  • the virtual object matched in the current scene can be a pre-established cartoon character, game character or commodity, etc. After the user scans the QR code, the virtual object can be displayed at a specific position in the current scene.
  • Figure 6 schematically shows a schematic diagram of the user interface when the user scans the two-dimensional code in the scene.
  • the two-dimensional code information After the two-dimensional code information is recognized, as shown in Figure 7, it can be displayed in a specific position of the user interface, for example, beside the shop window of A shop.
  • a recommended virtual object 710 and detailed information of the virtual object 710 are displayed.
  • the virtual object 710 may be a commodity to be displayed to the user, or a virtual character, an animal, etc., to realize interaction with the user and the like.
  • the above-mentioned parsing of the two-dimensional code to obtain information of the current scene corresponding to the two-dimensional code may include:
  • the positioning information may include the user's current location information, such as the coordinate information in the mall, or the map information of the location in the scene, etc.; it may also include other navigation information or location information related to the user's current location information, such as the user's current location information.
  • the location information of other stores of the same type in the store where the store is located, or the navigation route information from the current location to other stores of the same type, etc. can be personalized to provide users with positioning information of the current scene.
  • a plurality of the above-mentioned two-dimensional code anchor points can be set in the scene to realize the positioning of the user in the scene.
  • WIFI wireless communication technology
  • UWB Ultra Wide Band, ultra-wideband communication technology
  • the above-mentioned graphic code identification method may further include:
  • the guidance information of the graphic code is prompted, and the guidance information is used to guide the infrared sensor to be moved to the graphic code.
  • the user interface may refer to the user interface such as the navigation interface or VR interface currently opened by the user.
  • the user can observe the current scene through the user interface. As shown in Figure 6, the user can see the scene of store A in the user interface.
  • the guidance information of the graphic code can be displayed in the user interface to provide the user with the guidance information of the graphic code, That is, it prompts the user which direction there is a graphic code or which direction the user needs to move the mobile phone, etc.
  • the guidance information can be displayed in the form of arrows or other graphic signs.
  • Arrow 810 moves the infrared sensor (ie, the mobile electronic device), enabling alignment of the graphic code.
  • the guidance information may also be presented in the form of text or voice, which is not specifically limited in the present disclosure.
  • the graphic code identification device 900 may include: a reflected signal acquisition module 910, configured to acquire an infrared reflected signal received by an infrared sensor, and the infrared reflected signal is transmitted by the infrared sensor to an infrared emission signal at the reflected location of the graphic code. Formation; the graphic area identification module 920 is used for identifying the graphic area of the graphic code based on the infrared reflection signal.
  • the graphic area identification module includes: an intensity analysis unit, configured to perform intensity analysis on the infrared reflection signals received by elements at different positions in the infrared sensor to obtain the graphic area of the graphic code.
  • the intensity analysis unit includes: a first judging subunit, configured to classify the image area corresponding to any position when the intensity of the infrared reflection signal received by the element at any position is greater than a preset intensity threshold. Divided into a graphic area; the above-mentioned graphic code identification device also includes: a second judging subunit, for when the intensity of the infrared reflection signal received by the element at any position is less than the preset intensity threshold, the image area corresponding to any position is Divide to the background area.
  • the graphic code is a two-dimensional code
  • the graphic area identification module further includes: a two-dimensional code acquisition unit for identifying the graphic area of the graphic code and acquiring the two-dimensional code; a two-dimensional code parsing unit for To parse the two-dimensional code, obtain the information of the current scene corresponding to the two-dimensional code.
  • the two-dimensional code parsing unit includes: a positioning information obtaining subunit, configured to parse the two-dimensional code to obtain the positioning information in the current scene corresponding to the two-dimensional code.
  • the two-dimensional code parsing unit includes: a display subunit configured to display preset information of the current scene corresponding to the two-dimensional code, or a virtual object matched with the current scene.
  • the graphic code identification device further includes: a guide information display module for prompting guide information of the graphic code, the guide information being used to guide the infrared sensor to be moved to align with the graphic code.
  • Exemplary embodiments of the present disclosure also provide a graphic code identification system, including: a graphic code, the graphic code is disposed on a substrate, a graphic area of the graphic code is coated with an infrared reflection layer, and the infrared reflection rate of the infrared reflection layer is higher than that of the substrate. Infrared reflectivity; the graphic code identification device is used to obtain the infrared reflected signal received by the infrared sensor, and based on the infrared reflected signal, identify the graphic area of the graphic code; the infrared reflected signal is transmitted by the infrared sensor to the infrared emission signal to the reflector at the graphic code. form.
  • Exemplary embodiments of the present disclosure also provide a computer-readable storage medium, which can be implemented in the form of a program product, including program codes for causing the terminal device to execute this specification when the program product is run on a terminal device.
  • the steps according to various exemplary embodiments of the present disclosure described in the "Example Method" section above, for example, the steps in FIG. 4 may be performed.
  • the program product can take the form of a portable compact disk read only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer.
  • CD-ROM portable compact disk read only memory
  • a readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • the program product may employ any combination of one or more readable media.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory, read only memory (ROM), erasable programmable Read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.
  • a computer readable signal medium may include a propagated data signal in baseband or as part of a carrier wave with readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a readable signal medium can also be any readable medium, other than a readable storage medium, that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
  • Program code embodied on a readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming Language - such as the "C" language or similar programming language.
  • the program code may execute entirely on the user computing device, partly on the user device, as a stand-alone software package, partly on the user computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on.
  • the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).
  • LAN local area network
  • WAN wide area network

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Position Input By Displaying (AREA)

Abstract

The present invention relates to the technical field of image processing, and provides a graphic code, a graphic code recognition method, a graphic code recognition apparatus, a graphic code recognition system, a computer readable storage medium, and an electronic device. The graphic code is disposed on a substrate. An infrared reflective layer is coated in a graphic area of the graphic code. The infrared reflectivity of the infrared reflective layer is greater than that of the substrate. The graphic code can be accurately recognized in a dark environment.

Description

图形码、图形码识别方法、存储介质及相关装置Graphic code, graphic code identification method, storage medium and related device
本公开要求于2021年4月2日提交的申请号为202110361385.4名称为“图形码、图形码识别方法、存储介质及相关装置”的中国专利申请的优先权,该中国专利申请的全部内容通过引用全部并入本文。This disclosure claims the priority of a Chinese patent application with application number 202110361385.4, filed on April 2, 2021, entitled "Graphic Code, Graphical Code Recognition Method, Storage Medium, and Related Apparatus", the entire contents of which are hereby incorporated by reference All incorporated herein.
技术领域technical field
本公开涉及图像处理技术领域,尤其涉及一种图形码、图形码识别方法、图形码识别装置、图形码识别系统、计算机可读存储介质与电子设备。The present disclosure relates to the technical field of image processing, and in particular, to a graphic code, a graphic code identification method, a graphic code identification device, a graphic code identification system, a computer-readable storage medium, and an electronic device.
背景技术Background technique
随着互联网技术的迅速发展,为了提高获取信息的便捷性,以及信息安全性,人们提出通过特定几何图形来对信息进行编码,以存储或表示各种类型的数据,例如二维码或条形码等。现有技术中,通常是在纸质基底上进行油墨印刷得到图形码。在实际应用中,用户通过摄像头采集图形码的图像对图形码进行识别,从而获取与图形码对应的信息。然而,这种图形码识别的场景,往往对环境具有较高的要求,当在室内或光线较差的环境中时,基于采集的图像对图形码进行识别可能会出现难以识别或误识别的情况,影响信息获取的准确性。With the rapid development of Internet technology, in order to improve the convenience of obtaining information and information security, people propose to encode information through specific geometric figures to store or represent various types of data, such as two-dimensional codes or barcodes, etc. . In the prior art, graphic codes are usually obtained by ink printing on a paper substrate. In practical applications, the user identifies the graphic code by collecting the image of the graphic code through the camera, so as to obtain the information corresponding to the graphic code. However, the scene of this kind of graphic code recognition often has high requirements on the environment. When it is indoors or in an environment with poor lighting, it may be difficult or misidentified to recognize the graphic code based on the collected images. , affecting the accuracy of information acquisition.
公开内容public content
本公开提供了一种图形码、图形码识别方法、图形码识别装置、图形码识别系统、计算机可读存储介质与电子设备,进而至少在一定程度上改善现有技术中图形码识别对环境要求高,识别准确性较差的问题。The present disclosure provides a graphic code, a graphic code identification method, a graphic code identification device, a graphic code identification system, a computer-readable storage medium and an electronic device, thereby improving the environmental requirements of graphic code identification in the prior art at least to a certain extent high, and identify problems with poor accuracy.
本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other features and advantages of the present disclosure will become apparent from the following detailed description, or be learned in part by practice of the present disclosure.
根据本公开的第一方面,提供一种图形码,所述图形码设置于基底上,所述图形码的图形区域镀有红外反射层,所述红外反射层的红外反射率高于所述基底的红外反射率。According to a first aspect of the present disclosure, there is provided a graphic code, the graphic code is disposed on a substrate, a graphic area of the graphic code is coated with an infrared reflection layer, and the infrared reflection rate of the infrared reflection layer is higher than that of the substrate of infrared reflectance.
根据本公开的第二方面,提供一种图形码识别方法,包括:获取由红外传感器接收的红外反射信号,所述红外反射信号由所述红外传感器将红外发射信号发射至第一方面所述的图形码处反射所形成;基于所述红外反射信号,识别所述图形码的图形区域。According to a second aspect of the present disclosure, there is provided a method for identifying a graphic code, comprising: acquiring an infrared reflection signal received by an infrared sensor, and the infrared reflection signal is transmitted by the infrared sensor to the infrared emission signal of the first aspect. It is formed by reflection at the graphic code; based on the infrared reflection signal, the graphic area of the graphic code is identified.
根据本公开的第三方面,提供一种图形码识别装置,包括:反射信号获取模块,用于获取由红外传感器接收的红外反射信号,所述红外反射信号由所述红外传感器将红外发射信号发射至第一方面所述的图形码处反射所形成;图形区域识别模块,用于基于所述红外反射信号,识别所述图形码的图形区域。According to a third aspect of the present disclosure, there is provided a graphic code identification device, comprising: a reflection signal acquisition module for acquiring an infrared reflection signal received by an infrared sensor, where the infrared sensor transmits an infrared emission signal for the infrared reflection signal It is formed by reflection at the graphic code described in the first aspect; a graphic area identification module is configured to identify the graphic area of the graphic code based on the infrared reflection signal.
根据本公开的第四方面,提供一种图形码识别系统,包括:图形码,所述图形码设置于基底上,所述图形码的图形区域镀有红外反射层,所述红外反射层的红外反射率高于所述基底的红外反射率;图形码识别装置,用于获取由红外传感器接收的红外反射信号,基于所述红外反射信号,识别所述图形码的图形区域;所述红外反射信号由所述红外传感器将红外发射信号发射至所述图形码处反射所形成。According to a fourth aspect of the present disclosure, there is provided a graphic code identification system, comprising: a graphic code, the graphic code is disposed on a substrate, a graphic area of the graphic code is coated with an infrared reflection layer, and the infrared reflection layer of the infrared reflection layer The reflectivity is higher than the infrared reflectivity of the substrate; the graphic code identification device is used to obtain the infrared reflection signal received by the infrared sensor, and based on the infrared reflection signal, identify the graphic area of the graphic code; the infrared reflection signal It is formed by the infrared sensor transmitting the infrared emission signal to the graphic code and reflecting.
根据本公开的第五方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述第二方面的图形码识别方法及其可能的实现方式。According to a fifth aspect of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the graphic code identification method of the second aspect and possible implementations thereof.
根据本公开的第六方面,提供一种电子设备,包括:处理器;存储器,用于存储所述处理器的可执行指令。其中,所述处理器配置为经由执行所述可执行指令,来执行上述第二方面的图形码识别方法及其可能的实现方式。According to a sixth aspect of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor. Wherein, the processor is configured to execute the graphic code identification method of the second aspect and possible implementations thereof by executing the executable instructions.
本公开的技术方案具有以下有益效果:The technical solution of the present disclosure has the following beneficial effects:
本示例性实施例中,图形码设置于基底上,图形码的图形区域镀有红外反射层,红外 反射层的红外反射率高于基底的红外反射率。一方面,本示例性实施例中的图形码在图形区域镀有红外反射层,可以通过红外传感器对图形码进行扫描,并根据红外反射层所反射的红外反射信号来识别图形区域,相比于现有技术中,采集图形码的图像进行图形区域识别的方式,识别过程简单,且图形区域的识别准确性较高;另一方面,考虑到本示例性实施例是基于红外反射层反射红外反射信号的,不受环境光线的影响,在夜晚或光线较弱的室内环境中,仍然能够对图形区域进行准确、快速的识别,应用范围较广。In this exemplary embodiment, the graphic code is arranged on the substrate, the graphic area of the graphic code is coated with an infrared reflection layer, and the infrared reflection rate of the infrared reflection layer is higher than that of the substrate. On the one hand, the graphic code in this exemplary embodiment is coated with an infrared reflection layer in the graphic area, the graphic code can be scanned by an infrared sensor, and the graphic area can be identified according to the infrared reflection signal reflected by the infrared reflection layer, compared with In the prior art, the method of collecting the image of the graphic code to identify the graphic area, the identification process is simple, and the recognition accuracy of the graphic area is high; The signal is not affected by ambient light, and it can still accurately and quickly identify the graphic area at night or in an indoor environment with weak light, and has a wide range of applications.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1示出本示例性实施方式中一种图形码识别方法系统架构的示意图;1 shows a schematic diagram of the system architecture of a method for identifying a graphic code in this exemplary embodiment;
图2示出本示例性实施方式中一种电子设备的结构图;FIG. 2 shows a structural diagram of an electronic device in this exemplary embodiment;
图3示出本示例性实施方式中一种图形码的示意图;FIG. 3 shows a schematic diagram of a graphic code in this exemplary embodiment;
图4示出本示例性实施方式中一种图形码识别方法的流程图;FIG. 4 shows a flowchart of a method for identifying a graphic code in this exemplary embodiment;
图5示出本示例性实施方式中一种扫描二维码的场景示意图;FIG. 5 shows a schematic diagram of a scene of scanning a two-dimensional code in this exemplary embodiment;
图6示出本示例性实施方式中一种扫描二维码时用户界面的示意图;6 shows a schematic diagram of a user interface when scanning a two-dimensional code in this exemplary embodiment;
图7示出本示例性实施方式中另一种扫描二维码时用户界面的示意图;FIG. 7 shows a schematic diagram of another user interface when scanning a two-dimensional code in this exemplary embodiment;
图8示出本示例性实施方式中再一种扫描二维码时用户界面的示意图;FIG. 8 shows a schematic diagram of still another user interface when scanning a two-dimensional code in this exemplary embodiment;
图9示出本示例性实施方式中一种图形码识别装置的结构框图。FIG. 9 shows a structural block diagram of an apparatus for identifying a graphic code in this exemplary embodiment.
具体实施方式Detailed ways
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the figures are functional entities that do not necessarily necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
本公开的示例性实施方式提供一种图形码识别方法。图1示出了本示例性实施方式运行环境的系统架构图。如图1所示,该系统架构100可以包括服务端110和终端120,两者之间通过网络形成通信交互,例如服务端110将图形区域的识别结果发送至终端120。其中,服务端110是指提供互联网服务的后台服务器;终端120包括但不限于智能手机、平板电脑、游戏机、可穿戴设备等。Exemplary embodiments of the present disclosure provide a graphic code identification method. FIG. 1 shows a system architecture diagram of the operating environment of the present exemplary embodiment. As shown in FIG. 1 , the system architecture 100 may include a server 110 and a terminal 120 , and a communication interaction is formed between the two through a network. For example, the server 110 sends the identification result of the graphic area to the terminal 120 . The server 110 refers to a background server that provides Internet services; the terminal 120 includes, but is not limited to, smart phones, tablet computers, game consoles, wearable devices, and the like.
应当理解,图1中各装置的数量仅是示例性的。根据实现需要,可以设置任意数量的客户端,或者服务端可以是多台服务器形成的集群。It should be understood that the number of devices in FIG. 1 is exemplary only. According to the implementation needs, any number of clients can be set, or the server can be a cluster formed by multiple servers.
本公开实施方式所提供的图形码识别方法可以由终端120执行,例如由终端120配置 的红外传感器向图形码发射红外发射信号,并接收红外反射信号,根据红外反射信号,对图形区域进行识别;也可以由服务端110执行,例如终端120在接收到红外反射信号后,上传到服务端110,使服务端110根据红外反射信号,对图形区域进行识别等,本公开对此不做限定。The graphic code identification method provided by the embodiment of the present disclosure may be executed by the terminal 120, for example, an infrared sensor configured by the terminal 120 transmits an infrared emission signal to the graphic code, receives the infrared reflection signal, and identifies the graphic area according to the infrared reflection signal; It can also be executed by the server 110. For example, the terminal 120 uploads the infrared reflection signal to the server 110 after receiving the infrared reflection signal, so that the server 110 can identify the graphic area according to the infrared reflection signal, which is not limited in this disclosure.
本公开的示例性实施方式提供一种用于实现图形码识别方法的电子设备,其可以是图1中的服务端110和终端120。该电子设备至少包括处理器和存储器,存储器用于存储处理器的可执行指令,处理器配置为经由执行可执行指令来执行图形码识别方法。An exemplary embodiment of the present disclosure provides an electronic device for implementing a method for identifying a graphic code, which may be the server 110 and the terminal 120 in FIG. 1 . The electronic device includes at least a processor and a memory, the memory is used for storing executable instructions of the processor, and the processor is configured to execute the graphic code identification method by executing the executable instructions.
下面以图2中的移动终端200为例,对上述电子设备的构造进行示例性说明。本领域技术人员应当理解,除了特别用于移动目的的部件之外,图2中的构造也能够应用于固定类型的设备。The following takes the mobile terminal 200 in FIG. 2 as an example to illustrate the structure of the above electronic device. It will be understood by those skilled in the art that the configuration in Figure 2 can also be applied to stationary type devices, in addition to components specifically for mobile purposes.
如图2所示,移动终端200具体可以包括:处理器210、内部存储器221、外部存储器接口222、USB(Universal Serial Bus,通用串行总线)接口230、充电管理模块240、电源管理模块241、电池242、天线1、天线2、移动通信模块250、无线通信模块260、音频模块270、扬声器271、受话器272、麦克风273、耳机接口274、传感器模块280、显示屏幕290、摄像模组291、指示器292、马达293、按键294以及SIM(Subscriber Identification Module,用户标识模块)卡接口295等。As shown in FIG. 2, the mobile terminal 200 may specifically include: a processor 210, an internal memory 221, an external memory interface 222, a USB (Universal Serial Bus, Universal Serial Bus) interface 230, a charging management module 240, a power management module 241, Battery 242, Antenna 1, Antenna 2, Mobile Communication Module 250, Wireless Communication Module 260, Audio Module 270, Speaker 271, Receiver 272, Microphone 273, Headphone Interface 274, Sensor Module 280, Display Screen 290, Camera Module 291, Indication 292, a motor 293, a key 294, a SIM (Subscriber Identification Module, Subscriber Identification Module) card interface 295 and the like.
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括AP(Application Processor,应用处理器)、调制解调处理器、GPU(Graphics Processing Unit,图形处理器)、ISP(Image Signal Processor,图像信号处理器)、控制器、编码器、解码器、DSP(Digital Signal Processor,数字信号处理器)、基带处理器和/或NPU(Neural-Network Processing Unit,神经网络处理器)等。编码器可以对图像或视频数据进行编码(即压缩);解码器可以对图像或视频的码流数据进行解码(即解压缩),以还原出图像或视频数据。The processor 210 may include one or more processing units, for example, the processor 210 may include an AP (Application Processor, application processor), a modem processor, a GPU (Graphics Processing Unit, graphics processor), an ISP (Image Signal Processor, image signal processor), controller, encoder, decoder, DSP (Digital Signal Processor, digital signal processor), baseband processor and/or NPU (Neural-Network Processing Unit, neural network processor), etc. The encoder can encode (ie, compress) the image or video data; the decoder can decode (ie, decompress) the code stream data of the image or video to restore the image or video data.
在一些实施方式中,处理器210可以包括一个或多个接口,通过不同的接口和移动终端200的其他部件形成连接。In some embodiments, the processor 210 may include one or more interfaces through which connections are formed with other components of the mobile terminal 200 .
内部存储器221可以用于存储计算机可执行程序代码,可执行程序代码包括指令。内部存储器221可以包括易失性存储器、非易失性存储器等。处理器210通过运行存储在内部存储器221的指令和/或存储在设置于处理器中的存储器的指令,执行移动终端200的各种功能应用以及数据处理。Internal memory 221 may be used to store computer executable program code, which includes instructions. The internal memory 221 may include volatile memory, nonvolatile memory, and the like. The processor 210 executes various functional applications and data processing of the mobile terminal 200 by executing instructions stored in the internal memory 221 and/or instructions stored in a memory provided in the processor.
外部存储器接口222可以用于连接外部存储器,例如Micro SD卡,实现扩展移动终端200的存储能力。外部存储器通过外部存储器接口222与处理器210通信,实现数据存储功能,例如存储音乐,视频等文件。The external memory interface 222 can be used to connect an external memory, such as a Micro SD card, to expand the storage capacity of the mobile terminal 200. The external memory communicates with the processor 210 through the external memory interface 222 to implement data storage functions, such as storing music, video and other files.
USB接口230是符合USB标准规范的接口,可以用于连接充电器为移动终端200充电,也可以连接耳机或其他电子设备。The USB interface 230 is an interface conforming to the USB standard specification, and can be used to connect a charger to charge the mobile terminal 200, and can also be connected to an earphone or other electronic devices.
充电管理模块240用于从充电器接收充电输入。充电管理模块240为电池242充电的同时,还可以通过电源管理模块241为设备供电;电源管理模块241还可以监测电池的状态。The charging management module 240 is used to receive charging input from the charger. While charging the battery 242, the charging management module 240 can also supply power to the device through the power management module 241; the power management module 241 can also monitor the state of the battery.
移动终端200的无线通信功能可以通过天线1、天线2、移动通信模块250、无线通信模块260、调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。移动通信模块250可以提供应用在移动终端200上的包括2G/3G/4G/5G等无线通信的解决方案。无线通信模块260可以提供应用在移动终端200上的包括WLAN(Wireless Local Area Networks,无线局域网)(如Wi-Fi(Wireless Fidelity,无线保真)网络)、BT(Bluetooth,蓝牙)、GNSS(Global Navigation Satellite System,全球导航卫星系统)、FM(Frequency Modulation,调频)、NFC(Near Field Communication,近距离无线通信技术)、IR(Infrared,红外技术)等无线通信解决方案。移动终端200可以通过GPU、显示屏幕290及AP等实现显示功能,显示用户界面。The wireless communication function of the mobile terminal 200 may be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modulation and demodulation processor, the baseband processor, and the like. Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 250 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the mobile terminal 200 . The wireless communication module 260 can provide applications on the mobile terminal 200 including WLAN (Wireless Local Area Networks, wireless local area network) (such as Wi-Fi (Wireless Fidelity, wireless fidelity) network), BT (Bluetooth, Bluetooth), GNSS (Global Navigation Satellite System, global navigation satellite system), FM (Frequency Modulation, frequency modulation), NFC (Near Field Communication, short-range wireless communication technology), IR (Infrared, infrared technology) and other wireless communication solutions. The mobile terminal 200 may implement a display function through a GPU, a display screen 290, an AP, and the like, and display a user interface.
移动终端200可以通过ISP、摄像模组291、编码器、解码器、GPU、显示屏幕290及AP等实现拍摄功能,还可以通过音频模块270、扬声器271、受话器272、麦克风273、耳机接口274及AP等实现音频功能。The mobile terminal 200 can realize the shooting function through the ISP, the camera module 291, the encoder, the decoder, the GPU, the display screen 290 and the AP, etc., and can also realize the shooting function through the audio module 270, the speaker 271, the receiver 272, the microphone 273, the headphone interface 274, and the like. AP, etc. to implement audio functions.
传感器模块280可以包括深度传感器2801、压力传感器2802、陀螺仪传感器2803、气压传感器2804等,以实现不同的感应检测功能。The sensor module 280 may include a depth sensor 2801, a pressure sensor 2802, a gyro sensor 2803, an air pressure sensor 2804, etc., to realize different sensing detection functions.
指示器292可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。马达293可以产生振动提示,也可以用于触摸振动反馈等。按键294包括开机键,音量键等。The indicator 292 can be an indicator light, which can be used to indicate the charging status, the change of power, and can also be used to indicate messages, missed calls, notifications, and the like. The motor 293 can generate vibration prompts, and can also be used for touch vibration feedback and the like. The keys 294 include a power-on key, a volume key, and the like.
移动终端200可以支持一个或多个SIM卡接口295,用于连接SIM卡,以实现通话以及数据通信等功能。The mobile terminal 200 may support one or more SIM card interfaces 295 for connecting the SIM cards to realize functions such as calling and data communication.
首先,本示例性实施例提供了一种图形码,如图3所示,示出了本示例性实施例中一种图形码的示意图,该图形码310设置于基底320上,图形码310的图形区域311镀有红外反射层,红外反射层的红外反射率高于基底的红外反射率。用户可以通过移动终端对设置于基底320上的图形码310进行扫描,以获取图形码310中包含的信息。First, the present exemplary embodiment provides a graphic code. As shown in FIG. 3 , a schematic diagram of a graphic code in the present exemplary embodiment is shown. The graphic code 310 is arranged on the base 320 . The pattern area 311 is coated with an infrared reflection layer, and the infrared reflection rate of the infrared reflection layer is higher than that of the substrate. The user can scan the graphic code 310 provided on the base 320 through the mobile terminal to obtain the information contained in the graphic code 310 .
其中,上述图形码310可以包括多种类型的图形码,例如二维码、条形码或者其他可以通过扫描或图像采集获取信息的图形码等。基底320是指用于承载图形码310的介质,其可以玻璃、墙面等,特别的,在本示例性实施例中,基底320可以是透明基底,即具有高透光率的透明材料,例如完全透明或透明度较高的玻璃或塑料等。将图形码310设置于基底320上可以包括,在基底320上直接设置图形码310,或者将预先设置好的图形码310与基底320结合,例如在玻璃上按照图形区域进行镀膜;或者将镀好图形区域的图形码薄膜贴在玻璃上等等。The above-mentioned graphic codes 310 may include various types of graphic codes, such as two-dimensional codes, barcodes, or other graphic codes that can acquire information through scanning or image capture. The substrate 320 refers to a medium for carrying the graphic code 310, which can be glass, a wall, etc. In particular, in this exemplary embodiment, the substrate 320 can be a transparent substrate, that is, a transparent material with high light transmittance, such as Completely transparent or transparent glass or plastic, etc. Disposing the graphic code 310 on the substrate 320 may include directly disposing the graphic code 310 on the substrate 320, or combining the pre-set graphic code 310 with the substrate 320, for example, coating the glass according to the graphic area; Graphic code film in the graphic area attached to the glass, etc.
图形区域311是指能够体现图形码信息的区域,图形码中图形区域311以外的区域可以作为背景区域312,例如二维码通常可以通过两种区域进行组合得到,如通过黑色区域和白色区域分别表示“0”或“1”的内部逻辑,其中,黑色区域可以作为图形区域311,白色区域即为背景区域312;另外,白色区域也可以作为图形区域311,则黑色区域即为背景区域312。需要说明的是,上述黑色区域和白色区域仅作示意性说明,实际应用中,只要能够反映二维码中“0”或“1”逻辑的区域即可,对颜色没有具体限定。The graphic area 311 refers to the area that can reflect the graphic code information, and the area other than the graphic area 311 in the graphic code can be used as the background area 312. Indicates the internal logic of "0" or "1", wherein the black area can be used as the graphic area 311, and the white area is the background area 312; in addition, the white area can also be used as the graphic area 311, then the black area is the background area 312. It should be noted that the above black area and white area are only for schematic illustration. In practical application, as long as the area can reflect the logic of "0" or "1" in the two-dimensional code, there is no specific limitation on the color.
本示例性实施例可以在图形区域311上镀红外反射层,具体的,可以直接在图形区域311上镀有红外反射层,也可以获取与图形区域311相符合的具有红外反射性能的薄膜,贴在图形区域311上等,例如对玻璃上的二维码中的黑色区域进行红外反射层的镀膜,或者将黑色区域镀有红外反射层的二维码薄膜贴在玻璃上,再或者直接在黑色区域贴上具有红外反射性能的薄膜等。除图形区域311以外的其他区域,如基底或背景区域312可以不进行镀膜处理,例如可以将仅黑色区域进行镀膜的“镂空”二维码薄膜贴在玻璃上;或者在完整的二维码透明薄膜中,仅对黑色区域进行镀膜,并将完整的二维码薄膜贴在玻璃上等;另外,基底或背景区域312也可以镀其他层,例如不具备红外反射性能,或者红外反射性能较差的其他透明层等等。由于红外反射层的红外反射率高于基底320的红外反射率,当图形码310接收到红外发射信号时,图形区域311能够较好的返回红外反射信号,而背景区域312与基底320则无法返回红外反射信号或者返回的红外反射信号较弱,因此,移动终端能够基于红外反射信号,识别图形区域。In this exemplary embodiment, the graphic area 311 may be coated with an infrared reflection layer. Specifically, the graphic area 311 may be directly coated with an infrared reflection layer, or a film with infrared reflection properties that conforms to the graphic area 311 may be obtained. On the graphic area 311, etc., for example, coat the black area of the two-dimensional code on the glass with an infrared reflection layer, or paste the two-dimensional code film with an infrared reflection layer in the black area on the glass, or directly on the black area The area is pasted with a film with infrared reflective properties, etc. Other areas other than the graphic area 311, such as the substrate or the background area 312, may not be coated. For example, a "hollowed out" two-dimensional code film with only the black area coated can be pasted on the glass; or the complete two-dimensional code is transparent. In the film, only the black area is coated, and the complete two-dimensional code film is pasted on the glass, etc. In addition, the substrate or background area 312 can also be coated with other layers, for example, it does not have infrared reflection performance, or the infrared reflection performance is poor. other transparent layers, etc. Since the infrared reflectivity of the infrared reflection layer is higher than that of the substrate 320, when the graphic code 310 receives the infrared emission signal, the graphic area 311 can return the infrared reflected signal better, while the background area 312 and the substrate 320 cannot return The infrared reflection signal or the returned infrared reflection signal is weak, therefore, the mobile terminal can identify the graphic area based on the infrared reflection signal.
在一示例性实施例中,上述基底320为透明基底,上述红外反射层为透明层。其中,红外反射层为透明层可以包括两种情况,第一种,红外反射层是无色的,图形区域镀有红外反射层后,用户无法通过肉眼观察到图形区域的存在,实现了图形码在透明基底上的完全“隐形”;第二种,红外反射层为有颜色但具备一定透明度的反射层,用户能够通过肉眼观察到图形区域的存在,但不明显,且用户能够透过图形码观察到透明基底后方的环境状态,图形码对用户视线基本不造成影响。In an exemplary embodiment, the substrate 320 is a transparent substrate, and the infrared reflection layer is a transparent layer. There are two cases where the infrared reflection layer is a transparent layer. The first one is that the infrared reflection layer is colorless. After the graphic area is coated with the infrared reflection layer, the user cannot observe the existence of the graphic area with the naked eye, and the graphic code is realized. Completely "invisible" on a transparent substrate; second, the infrared reflective layer is a reflective layer with color but with a certain degree of transparency, the user can observe the existence of the graphic area with the naked eye, but it is not obvious, and the user can see through the graphic code The environmental state behind the transparent substrate was observed, and the graphic code basically did not affect the user's line of sight.
在本示例性实施例中,以在玻璃上设置二维码进行举例说明,可以采用对波长为940nm(纳米)的近红外光反射率小于30%的玻璃作为透明基底,并对二维码中的黑色区域进行红外反射层的镀膜,该红外反射层对波长为450~650mm范围的可见光反射率小于30%,且对波长为800~1600nm的近红外光,至少有10nm波长带宽范围内(例如940nm±5nm范围内)的反射率大于50%,使得二维码在视觉上达成“隐形二维码”的效果。当红外发射信号发射至该二维码时,图形区域反射红外反射信号,而背景区域和透明基底不反射红外反射信号或反射的红外反射信号较弱,移动终端能够基于红外反射信号识别图形码的“0”、“1”区域,从而还原二维码。In this exemplary embodiment, a two-dimensional code is set on glass as an example, glass with a reflectivity of less than 30% for near-infrared light with a wavelength of 940 nm (nanometer) can be used as a transparent substrate, and the two-dimensional code The black area is coated with an infrared reflective layer. The infrared reflective layer has a reflectance of less than 30% for visible light with a wavelength of 450 to 650 mm, and has at least a 10 nm wavelength bandwidth for near-infrared light with a wavelength of 800 to 1600 nm (for example, 940nm±5nm) the reflectivity is greater than 50%, so that the two-dimensional code can visually achieve the effect of "invisible two-dimensional code". When the infrared emission signal is transmitted to the two-dimensional code, the graphic area reflects the infrared reflected signal, while the background area and the transparent substrate do not reflect the infrared reflected signal or the reflected infrared reflected signal is weak, and the mobile terminal can identify the graphic code based on the infrared reflected signal. "0", "1" area to restore the QR code.
综上,本示例性实施例中,图形码设置于基底上,图形码的图形区域镀有红外反射层,红外反射层的红外反射率高于基底的红外反射率。一方面,本示例性实施例中的图形码在图形区域镀有红外反射层,可以通过红外传感器对图形码进行扫描,并根据红外反射层所反射的红外反射信号来识别图形区域,相比于现有技术中,采集图形码的图像进行图形区域识别的方式,识别过程简单,且图形区域的识别准确性较高;另一方面,考虑到本示例性实施例是基于红外反射层反射红外反射信号的,不受环境光线的影响,在夜晚或光线较弱的室内环境中,仍然能够对图形区域进行准确、快速的识别,应用范围较广。To sum up, in this exemplary embodiment, the graphic code is disposed on the substrate, the graphic area of the graphic code is coated with an infrared reflection layer, and the infrared reflection rate of the infrared reflection layer is higher than that of the substrate. On the one hand, the graphic code in this exemplary embodiment is coated with an infrared reflection layer in the graphic area, the graphic code can be scanned by an infrared sensor, and the graphic area can be identified according to the infrared reflection signal reflected by the infrared reflection layer, compared with In the prior art, the method of collecting the image of the graphic code to identify the graphic area, the identification process is simple, and the recognition accuracy of the graphic area is high; The signal is not affected by ambient light, and it can still accurately and quickly identify the graphic area at night or in an indoor environment with weak light, and has a wide range of applications.
另外,本示例性实施例还提供了一种图形码识别方法,该方法的应用场景可以包括但不限于:导航定位场景中,用户通过智能手机扫描商场中的图形码,获取当前的定位信息或商场信息等;在AR游戏场景中,用户佩戴头戴式设备对环境中的图形码进行识别检测,触发游戏任务或定位信息等,其中图形码即为上述所介绍的图形码。In addition, this exemplary embodiment also provides a method for identifying a graphic code. The application scenarios of the method may include, but are not limited to: in a navigation and positioning scenario, a user scans a graphic code in a shopping mall with a smartphone to obtain current positioning information or Shopping mall information, etc.; in an AR game scenario, the user wears a head-mounted device to identify and detect the graphic code in the environment, triggering game tasks or positioning information, etc., where the graphic code is the graphic code described above.
图4示出了图形码识别方法的示例性流程,可以由上述服务端110或终端120执行,包括以下步骤S410至S420:FIG. 4 shows an exemplary flow of the graphic code identification method, which can be executed by the above-mentioned server 110 or terminal 120, including the following steps S410 to S420:
步骤S410,获取由红外传感器接收的红外反射信号,该红外反射信号由红外传感器将红外发射信号发射至上述图形码处反射所形成。Step S410 , acquiring the infrared reflection signal received by the infrared sensor, where the infrared reflection signal is formed by the infrared sensor transmitting the infrared emission signal to the above-mentioned graphic code and reflecting.
其中,图形码是指上述在基底上设置的,图形区域镀有红外反射层的图形码,该图形码可以是二维码、条形码或者其他包含信息的图形码等。本示例性实施例可以应用于智能手机、笔记本电脑、平板电脑、VR(Virtual Reality,虚拟现实)/AR(Augmented Reality,增强现实)中的头戴式设备等配置有红外传感器的电子设备中。其中,红外传感器可以是仅包含红外发射信号发射组件和红外反射信号接收组件的传感器;也可以是包含红外发射信号发射组件、红外反射信号接收组件以及摄像头等的传感器,例如配置有红外摄像模组的智能手机或VR/AR设备等。此外,根据实际需要,还可以在红外传感器上进行组件的加装,例如增加红外补光灯,以在红外光线不足的环境下,对红外光进行补充。图形码的尺寸也可以根据实际需要进行自定义设置,例如可以设置其长或宽的尺寸在10cm(厘米)至1m(米)范围内,以较好的配合红外摄像模组的空间分辨率。The graphic code refers to the above-mentioned graphic code provided on the substrate, and the graphic area is coated with an infrared reflective layer. The graphic code may be a two-dimensional code, a barcode, or other graphic codes containing information. The present exemplary embodiment can be applied to electronic devices equipped with infrared sensors, such as smart phones, notebook computers, tablet computers, VR (Virtual Reality, virtual reality)/AR (Augmented Reality, augmented reality) headsets and other electronic devices. The infrared sensor may be a sensor that only includes an infrared emission signal transmitting component and an infrared reflected signal receiving component; it may also be a sensor that includes an infrared transmitting signal transmitting component, an infrared reflected signal receiving component, a camera, etc., for example, an infrared camera module is configured. smartphones or VR/AR devices, etc. In addition, according to actual needs, components can also be added to the infrared sensor, such as adding infrared supplementary light to supplement infrared light in an environment with insufficient infrared light. The size of the graphic code can also be customized according to actual needs. For example, the length or width can be set within the range of 10cm (centimeter) to 1m (meter) to better match the spatial resolution of the infrared camera module.
红外传感器可以向环境中发射红外发射信号,并接收环境中的图形码所反射的红外反射信号,例如红外摄像模组可以包括红外发射组件以及红外反射接收组件,红外发射组件可以向前方环境中发射红外脉冲信号,红外脉冲信号到达环境中的图形码后,会被反射回来一部分,即红外反射信号;红外反射接收组件可以接收从环境中反射回来的红外反射信号,然后,基于底层算法求解红外脉冲信号的飞行时间,可以确定环境中的图形码与红外传感器之间的距离。在本示例性实施例中,上述红外传感器可以包括TOF(Time of Flight,时间飞行)传感器,具体可以为ITOF(Indirect TOF,间接测量飞行时间)传感器与DTOF(Direct TOF,直接测量飞行时间)传感器等,其中,ITOF是采用测相位偏移的方法,通过发射正弦波/方波与接收正弦波/方波之间的相位差,测量飞行时间;而DTOF则是通过测量发射红外脉冲与接收红外脉冲的时间间隔来测量飞行时间。当采用TOF传感器时,可以采用发射波长为940nm的VCSEL(Vertical-Cavity Surface-Emitting Laser,垂直腔面发射激光器)作为光源,当然,也可以采用其他波长,如845nm,1350nm等激光器等等。另 外,分辨率可以是240*180、320*240、640*480等多种形式,本公开对此不做具体限定,其中,电子设备中处理芯片的分辨率通常不小于输出的高分辨率稠密图的分辨率。The infrared sensor can transmit infrared emission signals to the environment, and receive the infrared reflection signals reflected by the graphic codes in the environment. For example, the infrared camera module can include an infrared emission component and an infrared reflection receiving component, and the infrared emission component can transmit to the front environment. Infrared pulse signal, after the infrared pulse signal reaches the graphic code in the environment, it will be reflected back a part, that is, the infrared reflection signal; the infrared reflection receiving component can receive the infrared reflection signal reflected from the environment, and then solve the infrared pulse based on the underlying algorithm The time of flight of the signal can determine the distance between the graphic code in the environment and the infrared sensor. In this exemplary embodiment, the above infrared sensor may include a TOF (Time of Flight) sensor, specifically an ITOF (Indirect TOF, indirect measurement of time of flight) sensor and a DTOF (Direct TOF, direct measurement of time of flight) sensor etc. Among them, ITOF adopts the method of measuring phase offset, and measures the time of flight by the phase difference between the transmitted sine/square wave and the received sine/square wave; while DTOF measures the transmitted infrared pulse and the received infrared pulse. Time interval of pulses to measure time of flight. When a TOF sensor is used, a VCSEL (Vertical-Cavity Surface-Emitting Laser) with an emission wavelength of 940nm can be used as the light source. Of course, other wavelengths, such as 845nm, 1350nm and other lasers, can also be used. In addition, the resolution can be in various forms such as 240*180, 320*240, 640*480, etc., which is not specifically limited in this disclosure, wherein the resolution of the processing chip in the electronic device is usually not less than the output high-resolution dense The resolution of the graph.
步骤S420,基于红外反射信号,识别图形码的图形区域。Step S420, based on the infrared reflection signal, identify the graphic area of the graphic code.
红外反射信号是指发射至图形码的红外发射信号所反射回来的光电信号,由于本示例性实施例中的图形码在图形区域镀有红外反射层,因此,红外发射信号发射至图形码时,图形区域所反射回来的红外反射信号与基底所反射回来的红外反射信号具有差异,因此,可以基于红外反射信号,通过图形码处理芯片识别出图形码的图形区域,还原图形码中所包含的数字信息,例如向黑色区域镀有红外反射层的二维码发射红外发射信号时,黑色区域将反射红外反射信号,而黑色区域之外的区域将不会反射红外反射信号,图形码处理芯片可以根据反射回的红外反射信号识别出黑色区域的位置,并对其进行编码(如“0”),然后,根据黑色区域的位置确定出图形码的边界,如根据二维码中的探测图形(三个小方块)对图形码的位置及边界进行定位,进一步的,基于图形码的位置及边界,可以确定出图形码中未能反射红外反射信号的白色区域,即图形码中黑色区域的补集区域,并对其进行编码(如“1”),从而实现了对图形码的识别。The infrared reflection signal refers to the photoelectric signal reflected by the infrared emission signal transmitted to the graphic code. Since the graphic code in this exemplary embodiment is coated with an infrared reflection layer in the graphic area, when the infrared emission signal is transmitted to the graphic code, The infrared reflection signal reflected by the graphic area is different from the infrared reflection signal reflected by the substrate. Therefore, based on the infrared reflection signal, the graphic area of the graphic code can be identified by the graphic code processing chip, and the numbers contained in the graphic code can be restored. For example, when the infrared emission signal is emitted to the QR code coated with the infrared reflection layer in the black area, the black area will reflect the infrared reflection signal, and the area outside the black area will not reflect the infrared reflection signal. The reflected infrared reflection signal identifies the position of the black area and encodes it (such as "0"), and then determines the boundary of the graphic code according to the position of the black area, such as according to the detection pattern in the two-dimensional code (three). (a small square) to locate the position and boundary of the graphic code, further, based on the position and boundary of the graphic code, it is possible to determine the white area in the graphic code that fails to reflect the infrared reflection signal, that is, the complement of the black area in the graphic code area, and encode it (such as "1"), so as to realize the identification of the graphic code.
具体的,本示例性实施例可以通过以下两种方式识别图形码的图形区域。Specifically, the present exemplary embodiment can identify the graphic area of the graphic code in the following two ways.
第一种,基于红外反射信号的强度,识别图形码的图形区域,当红外发射信号发射至图形码时,图形区域反射红外反射信号,而背景区域和基底不反射红外反射信号或反射的红外反射信号较弱,因此,基于红外反射信号的强度,可以还原出图形区域,即可以通过二值化的方式,将接收到红外反射信号的区域,与未接收到红外反射信号或接收到红外反射信号较弱的区域,进行表示,以识别图形码的图形区域。The first is to identify the graphic area of the graphic code based on the intensity of the infrared reflected signal. When the infrared emission signal is transmitted to the graphic code, the graphic area reflects the infrared reflected signal, while the background area and the substrate do not reflect the infrared reflected signal or the reflected infrared reflection. The signal is weak. Therefore, based on the intensity of the infrared reflection signal, the graphic area can be restored, that is, the area where the infrared reflection signal is received can be compared with the area that has not received the infrared reflection signal or received the infrared reflection signal by means of binarization. The weaker area is represented to identify the graphic area of the graphic code.
第二种,基于接收到的红外反射信号,计算红外信号的飞行时间,以进一步计算图形码的深度信息,其中,深度信息是指能够反映图形码距离红外传感器距离的数据,根据该深度信息可以确定包括图形码的深度图像,通过深度图像来还原图形码的图形区域。The second is to calculate the flight time of the infrared signal based on the received infrared reflection signal to further calculate the depth information of the graphic code, wherein the depth information refers to the data that can reflect the distance between the graphic code and the infrared sensor. A depth image including the graphics code is determined, and the graphics area of the graphics code is restored by the depth image.
在实际应用中,可以根据需要,采用上述任意一种方式来识别图形区域,本公开对此不做具体限定。In practical applications, any one of the above-mentioned manners may be used to identify the graphic area as required, which is not specifically limited in the present disclosure.
考虑到在实际应用中,用户可能难以在扫描图形码时,始终保持与图形码保持平行,而不同方向、不同角度对图形码进行扫描识别,则会对图形码识别的准确性造成影响,例如当用户的手机与二维码平面处于非平行状态时,扫描到的二维码可能是非正方形(如梯形)的,即存在图形区域切向畸变的情况,影响二维码的识别。基于此,本示例性实施例可以通过TOF传感器获取图形区域中不同位置的深度信息,并根据该深度信息对图形区域进行切向校正,例如可以根据不同位置的深度信息的差,确定TOF传感器相对于二维码平面的倾斜角度,进一步根据该倾斜角度对二维码进行切向校正等,从而避免了由于图形区域的畸变,导致难以识别或识别有误的情况,提高了图形码的识别准确性。Considering that in practical applications, it may be difficult for users to keep parallel with the graphic code when scanning the graphic code, and scanning and identifying the graphic code in different directions and different angles will affect the accuracy of the graphic code recognition, such as When the user's mobile phone and the QR code plane are in a non-parallel state, the scanned QR code may be non-square (such as a trapezoid), that is, there is a tangential distortion of the graphic area, which affects the recognition of the QR code. Based on this, the present exemplary embodiment can obtain depth information at different positions in the graphics area through the TOF sensor, and perform tangential correction on the graphics area according to the depth information. According to the inclination angle of the two-dimensional code plane, the two-dimensional code is further tangentially corrected according to the inclination angle, etc., so as to avoid the situation of difficult or incorrect identification due to the distortion of the graphic area, and improve the identification accuracy of the graphic code. sex.
综上,本示例性实施方式中,获取由红外传感器接收的红外反射信号,红外反射信号由红外传感器将红外发射信号发射至图形码处反射所形成;基于红外反射信号的强度,识别图形码的图形区域。一方面,本示例性实施例仅通过配置红外传感器,接收由图形码反射回的红外反射信号,即能够对图形区域进行识别,不涉及图像采集与图像识别过程,避免了由于采集的图像异常,导致图像难以识别或误识别的情况,识别过程简单,且图形区域的识别准确性较高;另一方面,由于本示例性实施例是基于红外反射信号,实现对图形区域的识别的,不受环境光线的影响,在夜晚或光线较弱的室内环境中,仍然能够对图形区域进行准确、快速的识别,应用范围较广。To sum up, in this exemplary embodiment, the infrared reflection signal received by the infrared sensor is obtained, and the infrared reflection signal is formed by the infrared sensor transmitting the infrared emission signal to the graphic code and reflecting; graphics area. On the one hand, this exemplary embodiment only configures an infrared sensor to receive the infrared reflection signal reflected by the graphic code, that is, the graphic area can be identified, without involving the process of image acquisition and image recognition, and avoids the abnormality of the acquired image. In the case that the image is difficult to identify or misidentified, the identification process is simple, and the identification accuracy of the graphic area is high; Due to the influence of ambient light, it can still accurately and quickly identify the graphic area at night or in an indoor environment with weak light, and has a wide range of applications.
在一示例性实施例中,上述步骤S420可以包括:In an exemplary embodiment, the above step S420 may include:
对红外传感器中不同位置的元件所接收的红外反射信号进行强度解析,得到图形码的图形区域。Analyze the intensity of the infrared reflection signals received by the components in different positions in the infrared sensor to obtain the graphic area of the graphic code.
通常,红外传感器可以包括多个处于不同位置的元件,以确定不同像素点的红外反射 信号,例如SPAD(Single Photon Avalanche Diode,单光子雪崩二极管),不同位置的元件可以对接收到的红外反射信号进行强度解析,以确定出图形码的图形区域。Usually, an infrared sensor can include a plurality of elements in different positions to determine the infrared reflection signal of different pixel points, such as SPAD (Single Photon Avalanche Diode, single photon avalanche diode), elements in different positions can respond to the received infrared reflection signal Intensity analysis is performed to determine the pattern area of the pattern code.
具体的,在一示例性实施例中,上述对红外传感器中不同位置的元件所接收的红外反射信号进行强度解析,得到图形码的图形区域可以包括以下步骤:Specifically, in an exemplary embodiment, performing intensity analysis on the infrared reflection signals received by elements at different positions in the infrared sensor to obtain the graphic area of the graphic code may include the following steps:
当任一位置的元件所接收的红外反射信号的强度大于预设强度阈值时,将任一位置对应的图像区域划分至图形区域;When the intensity of the infrared reflection signal received by the element at any position is greater than the preset intensity threshold, divide the image area corresponding to any position into the graphic area;
上述图形码识别方法还可以包括以下步骤:The above-mentioned graphic code identification method may further comprise the following steps:
当任一位置的元件所接收的红外反射信号的强度小于预设强度阈值时,将任一位置对应的图像区域划分至背景区域。When the intensity of the infrared reflection signal received by the element at any position is less than the preset intensity threshold, the image area corresponding to any position is divided into the background area.
其中,预设强度阈值是指用于判断红外反射信号是否是从图形区域反射回来的判断标准,其可以根据需要进行自定义设置,例如当需要红外传感器距离图形码较近时,才能够对图形区域进行识别时,可以设置较大的预设强度阈值,当需要红外传感器距离图形码较远时,还能够对图形区域进行识别时,可以根据距离需要设置较小的预设强度阈值等等。由于图形区域具有红外反射层,能够较好的反射红外反射信号,而背景区域和基底不具有红外反射层,因此,可以通过对每个位置的元件所接收的红外反射信号的强度进行判断,来确定元件位置对应的区域是否为图形区域。当任一位置的元件所接收的红外反射信号的强度大于预设强度阈值时,可以将该位置对应的图像区域划分至图形区域;当任一位置的元件所接收的红外反射信号的强度小于预设强度阈值时,可以将该位置对应的图像区域划分至背景区域,从而可以识别出图形码的图形区域与背景区域。Among them, the preset intensity threshold refers to the criterion for judging whether the infrared reflection signal is reflected from the graphic area, which can be customized according to needs. For example, when the infrared sensor is required to be close to the graphic code, the graphic When identifying the area, a larger preset intensity threshold can be set. When the infrared sensor needs to be far away from the graphic code, when the graphic area can still be identified, a smaller preset intensity threshold can be set according to the distance. Since the graphic area has an infrared reflection layer, it can better reflect the infrared reflection signal, while the background area and the substrate do not have an infrared reflection layer. Determines whether the area corresponding to the component position is a graphics area. When the intensity of the infrared reflection signal received by the element at any position is greater than the preset intensity threshold, the image area corresponding to the position can be divided into graphic areas; when the intensity of the infrared reflection signal received by the element at any position is less than the preset intensity threshold When the intensity threshold is set, the image area corresponding to the position can be divided into the background area, so that the graphic area and the background area of the graphic code can be identified.
在一示例性实施例中,上述图形码为二维码,上述步骤S420识别图形码的图形区域,还可以包括:In an exemplary embodiment, the above-mentioned graphic code is a two-dimensional code, and the above-mentioned step S420 identifies the graphic area of the graphic code, and may further include:
识别图形码的图形区域,获取二维码;Identify the graphic area of the graphic code and obtain the QR code;
解析二维码,得到二维码对应的当前场景的信息。Parse the QR code to obtain the information of the current scene corresponding to the QR code.
本示例性实施例特别可以应用于对二维码进行识别的场景中,具体的,可以将二维码中的黑色区域作为图形区域,并在黑色区域镀有红外反射层,将二维码设置于透明基底上,当红外发射信号发射至二维码时,黑色区域反射红外反射信号,而白色区域和透明基底不反射红外反射信号或反射的红外反射信号较弱,因而,能够基于红外反射信号识别出二维码的“0”、“1”区域,从而对二维码进行还原。进一步,通过解析该二维码,可以得到二维码对应的当前场景的信息。需要说明的是,上述黑色区域与白色区域仅作为示意性说明,实际应用中,设置在透明基底上的二维码可以是不具备颜色差异的图形码,例如黑色区域和白色区域都为透明的,差别在于黑色区域进行了红外反射层的镀膜,而白色区域未镀膜。This exemplary embodiment can be particularly applied to the scene of identifying the two-dimensional code. Specifically, the black area in the two-dimensional code can be used as the graphic area, and the black area is coated with an infrared reflection layer, and the two-dimensional code can be set On the transparent substrate, when the infrared emission signal is transmitted to the two-dimensional code, the black area reflects the infrared reflection signal, while the white area and the transparent substrate do not reflect the infrared reflection signal or the reflected infrared reflection signal is weak, so the infrared reflection signal can be based on the infrared reflection signal. Identify the "0" and "1" areas of the two-dimensional code, so as to restore the two-dimensional code. Further, by parsing the two-dimensional code, information of the current scene corresponding to the two-dimensional code can be obtained. It should be noted that the above black area and white area are only for schematic illustration. In practical applications, the two-dimensional code arranged on the transparent substrate may be a graphic code with no color difference, for example, the black area and the white area are both transparent. , the difference is that the black area is coated with the infrared reflective layer, while the white area is not coated.
其中,当前场景可以是用户或二维码所处的位置的场景,当前场景的信息可以包括场景的定位信息、商铺的推荐信息或者热销商品信息等等。图5示出了一种扫描二维码的场景示意图,用户使用配置红外传感器的智能手机在商场中对准A商店的玻璃上的二维码510进行扫描,其中二维码510为了示意性说明,具有黑色区域和白色区域划分,在实际场景中,二维码510在玻璃上处于“隐形”或不易被观察到的状态。Wherein, the current scene may be the scene where the user or the two-dimensional code is located, and the information of the current scene may include the location information of the scene, the recommendation information of the store, or the information of the hot-selling products, and so on. FIG. 5 shows a schematic diagram of a scene of scanning a two-dimensional code. A user uses a smartphone equipped with an infrared sensor to scan the two-dimensional code 510 on the glass of store A in a shopping mall, wherein the two-dimensional code 510 is for schematic illustration. , with a black area and a white area division. In the actual scene, the two-dimensional code 510 is in a state of "invisibility" or not easy to be observed on the glass.
在一示例性实施例中,上述解析二维码,得到二维码对应的当前场景的信息,可以包括:In an exemplary embodiment, the above-mentioned parsing of the two-dimensional code to obtain information of the current scene corresponding to the two-dimensional code may include:
解析二维码,显示二维码对应的当前场景的预设信息,或者与当前场景所匹配的虚拟对象。Parse the two-dimensional code, and display the preset information of the current scene corresponding to the two-dimensional code, or the virtual object matching the current scene.
其中,二维码对应的当前场景的预设信息可以是指预先设置的,与当前场景相关联的信息,例如用户处于商场的某一商店门口时,当前场景的预设信息可以是该商店的信息,或者该商店中热销商品或推荐商品等的信息,用户对该商店橱窗上的二维码进行扫描,可以得到上述商店的信息或商品的信息等。当前场景所匹配的虚拟对象可以是预先建立的卡通人物、游戏角色或者商品等,当用户扫描二维码后,可以在当前场景中的特定位置显示 该虚拟对象。图6示意性示出用户扫描场景中的二维码时,用户界面的示意图,当识别出二维码信息后,如图7所示,可以在用户界面的特定位置,例如A商店橱窗旁边中显示推荐的虚拟对象710,以及虚拟对象710的详细信息,该虚拟对象710可以是商品以向用户展示,也可以是虚拟人物、动物等,以实现与用户的互动等等。The preset information of the current scene corresponding to the QR code may refer to preset information associated with the current scene. For example, when the user is at the entrance of a store in a shopping mall, the preset information of the current scene may be the information of the store. information, or information on hot-selling products or recommended products in the store, and the user scans the QR code on the store window to obtain the above-mentioned store information or product information. The virtual object matched in the current scene can be a pre-established cartoon character, game character or commodity, etc. After the user scans the QR code, the virtual object can be displayed at a specific position in the current scene. Figure 6 schematically shows a schematic diagram of the user interface when the user scans the two-dimensional code in the scene. After the two-dimensional code information is recognized, as shown in Figure 7, it can be displayed in a specific position of the user interface, for example, beside the shop window of A shop. A recommended virtual object 710 and detailed information of the virtual object 710 are displayed. The virtual object 710 may be a commodity to be displayed to the user, or a virtual character, an animal, etc., to realize interaction with the user and the like.
特别的,在一示例性实施例中,上述解析二维码,得到二维码对应的当前场景的信息,可以包括:In particular, in an exemplary embodiment, the above-mentioned parsing of the two-dimensional code to obtain information of the current scene corresponding to the two-dimensional code may include:
解析二维码,得到二维码对应的当前场景的定位信息。Parse the two-dimensional code to obtain the positioning information of the current scene corresponding to the two-dimensional code.
定位信息可以包括用户当前的位置信息,例如在商场中的坐标信息,或者位于场景中哪个位置的地图信息等;也可以包括与用户当前位置信息相关的其他导航信息或位置信息,例如与用户当前所在店铺同类型的其他店铺的位置信息,或者从当前位置到同类型其他店铺的导航路线信息等等,以个性化为用户提供当前场景的定位信息。The positioning information may include the user's current location information, such as the coordinate information in the mall, or the map information of the location in the scene, etc.; it may also include other navigation information or location information related to the user's current location information, such as the user's current location information. The location information of other stores of the same type in the store where the store is located, or the navigation route information from the current location to other stores of the same type, etc., can be personalized to provide users with positioning information of the current scene.
本示例性实施例可以通过在场景中设置多个上述二维码锚点,实现用户在场景中进行定位,相比于蓝牙、WIFI(无线通信技术)或UWB(Ultra Wide Band,超宽带通信技术)等方式,定位结果准确,且信号稳定,不会出现由于信号弱导致定位失败或位置出现偏差的情况。In this exemplary embodiment, a plurality of the above-mentioned two-dimensional code anchor points can be set in the scene to realize the positioning of the user in the scene. Compared with Bluetooth, WIFI (wireless communication technology) or UWB (Ultra Wide Band, ultra-wideband communication technology) ) and other methods, the positioning result is accurate, and the signal is stable, and there will be no positioning failure or position deviation due to weak signal.
在一示例性实施例中,上述图形码识别方法还可以包括:In an exemplary embodiment, the above-mentioned graphic code identification method may further include:
提示图形码的引导信息,引导信息用于引导红外传感器被移动至对准图形码。The guidance information of the graphic code is prompted, and the guidance information is used to guide the infrared sensor to be moved to the graphic code.
用户界面可以是指用户当前所打开的导航界面或VR界面等用户交互界面,用户可以通过用户界面观察当前场景,如图6所示,用户可以在用户界面中看到商店A的场景,在本示例性实施例中,考虑到图形码可能处于“隐形”的状态下,而不易被用户所观察到,因此,可以在用户界面中显示图形码的引导信息,为用户提供图形码的引导信息,即向用户提示哪个方向有图形码或者用户需要将手机向哪个方向移动等,该引导信息可以以箭头或其他图形标识的方式显示,例如图8所示,用户界面中显示箭头810,用户可以根据箭头810移动红外传感器(即移动电子设备),实现图形码的对准。另外,引导信息还可以以文本或语音等方式呈现,本公开对此不做具体限定。The user interface may refer to the user interface such as the navigation interface or VR interface currently opened by the user. The user can observe the current scene through the user interface. As shown in Figure 6, the user can see the scene of store A in the user interface. In the exemplary embodiment, considering that the graphic code may be in an "invisible" state and is not easily observed by the user, therefore, the guidance information of the graphic code can be displayed in the user interface to provide the user with the guidance information of the graphic code, That is, it prompts the user which direction there is a graphic code or which direction the user needs to move the mobile phone, etc. The guidance information can be displayed in the form of arrows or other graphic signs. Arrow 810 moves the infrared sensor (ie, the mobile electronic device), enabling alignment of the graphic code. In addition, the guidance information may also be presented in the form of text or voice, which is not specifically limited in the present disclosure.
本公开的示例性实施方式还提供一种图形码识别装置。如图9所示,该图形码识别装置900可以包括:反射信号获取模块910,用于获取由红外传感器接收的红外反射信号,红外反射信号由红外传感器将红外发射信号发射至图形码处反射所形成;图形区域识别模块920,用于基于红外反射信号,识别图形码的图形区域。Exemplary embodiments of the present disclosure also provide a graphic code identification device. As shown in FIG. 9 , the graphic code identification device 900 may include: a reflected signal acquisition module 910, configured to acquire an infrared reflected signal received by an infrared sensor, and the infrared reflected signal is transmitted by the infrared sensor to an infrared emission signal at the reflected location of the graphic code. Formation; the graphic area identification module 920 is used for identifying the graphic area of the graphic code based on the infrared reflection signal.
在一示例性实施例中,图形区域识别模块包括:强度解析单元,用于对红外传感器中不同位置的元件所接收的红外反射信号进行强度解析,得到图形码的图形区域。In an exemplary embodiment, the graphic area identification module includes: an intensity analysis unit, configured to perform intensity analysis on the infrared reflection signals received by elements at different positions in the infrared sensor to obtain the graphic area of the graphic code.
在一示例性实施例中,强度解析单元包括:第一判断子单元,用于当任一位置的元件所接收的红外反射信号的强度大于预设强度阈值时,将任一位置对应的图像区域划分至图形区域;上述图形码识别装置还包括:第二判断子单元,用于当任一位置的元件所接收的红外反射信号的强度小于预设强度阈值时,将任一位置对应的图像区域划分至背景区域。In an exemplary embodiment, the intensity analysis unit includes: a first judging subunit, configured to classify the image area corresponding to any position when the intensity of the infrared reflection signal received by the element at any position is greater than a preset intensity threshold. Divided into a graphic area; the above-mentioned graphic code identification device also includes: a second judging subunit, for when the intensity of the infrared reflection signal received by the element at any position is less than the preset intensity threshold, the image area corresponding to any position is Divide to the background area.
在一示例性实施例中,图形码为二维码;图形区域识别模块,还包括:二维码获取单元,用于识别图形码的图形区域,获取二维码;二维码解析单元,用于解析二维码,得到二维码对应的当前场景的信息。In an exemplary embodiment, the graphic code is a two-dimensional code; the graphic area identification module further includes: a two-dimensional code acquisition unit for identifying the graphic area of the graphic code and acquiring the two-dimensional code; a two-dimensional code parsing unit for To parse the two-dimensional code, obtain the information of the current scene corresponding to the two-dimensional code.
在一示例性实施例中,二维码解析单元包括:定位信息获取子单元,用于解析二维码,得到二维码对应的当前场景中的定位信息。In an exemplary embodiment, the two-dimensional code parsing unit includes: a positioning information obtaining subunit, configured to parse the two-dimensional code to obtain the positioning information in the current scene corresponding to the two-dimensional code.
在一示例性实施例中,二维码解析单元包括:显示子单元,用于显示二维码对应的当前场景的预设信息,或者与当前场景所匹配的虚拟对象。In an exemplary embodiment, the two-dimensional code parsing unit includes: a display subunit configured to display preset information of the current scene corresponding to the two-dimensional code, or a virtual object matched with the current scene.
在一示例性实施例中,图形码识别装置还包括:引导信息显示模块,用于提示图形码的引导信息,引导信息用于引导红外传感器被移动至对准图形码。In an exemplary embodiment, the graphic code identification device further includes: a guide information display module for prompting guide information of the graphic code, the guide information being used to guide the infrared sensor to be moved to align with the graphic code.
本公开的示例性实施方式还提供一种图形码识别系统,包括:图形码,图形码设置于 基底上,图形码的图形区域镀有红外反射层,红外反射层的红外反射率高于基底的红外反射率;图形码识别装置,用于获取由红外传感器接收的红外反射信号,基于红外反射信号,识别图形码的图形区域;红外反射信号由红外传感器将红外发射信号发射至图形码处反射所形成。Exemplary embodiments of the present disclosure also provide a graphic code identification system, including: a graphic code, the graphic code is disposed on a substrate, a graphic area of the graphic code is coated with an infrared reflection layer, and the infrared reflection rate of the infrared reflection layer is higher than that of the substrate. Infrared reflectivity; the graphic code identification device is used to obtain the infrared reflected signal received by the infrared sensor, and based on the infrared reflected signal, identify the graphic area of the graphic code; the infrared reflected signal is transmitted by the infrared sensor to the infrared emission signal to the reflector at the graphic code. form.
上述装置中各部分的具体细节在方法部分实施方式中已经详细说明,因而不再赘述。The specific details of each part in the above-mentioned apparatus have been described in detail in the method part of the implementation, and thus will not be repeated.
本公开的示例性实施方式还提供了一种计算机可读存储介质,可以实现为程序产品的形式,包括程序代码,当程序产品在终端设备上运行时,程序代码用于使终端设备执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤,例如可以执行图4中的步骤。该程序产品可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本公开的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Exemplary embodiments of the present disclosure also provide a computer-readable storage medium, which can be implemented in the form of a program product, including program codes for causing the terminal device to execute this specification when the program product is run on a terminal device. The steps according to various exemplary embodiments of the present disclosure described in the "Example Method" section above, for example, the steps in FIG. 4 may be performed. The program product can take the form of a portable compact disk read only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory, read only memory (ROM), erasable programmable Read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.
计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a propagated data signal in baseband or as part of a carrier wave with readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium can also be any readable medium, other than a readable storage medium, that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming Language - such as the "C" language or similar programming language. The program code may execute entirely on the user computing device, partly on the user device, as a stand-alone software package, partly on the user computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).
所属技术领域的技术人员能够理解,本公开的各个方面可以实现为系统、方法或程序产品。因此,本公开的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其他实施方式。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施方式仅被视为示例性的,本公开的真正范围和精神由权利要求指出。As will be appreciated by one skilled in the art, various aspects of the present disclosure may be implemented as a system, method or program product. Therefore, various aspects of the present disclosure can be embodied in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, which may be collectively referred to herein as implementations "circuit", "module" or "system". Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common general knowledge or techniques in the technical field not disclosed by this disclosure . The specification and embodiments are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限定。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (20)

  1. 一种图形码,其特征在于,所述图形码设置于基底上,所述图形码的图形区域镀有红外反射层,所述红外反射层的红外反射率高于所述基底的红外反射率。A graphic code, characterized in that the graphic code is arranged on a base, the graphic area of the graphic code is coated with an infrared reflection layer, and the infrared reflection rate of the infrared reflection layer is higher than that of the base.
  2. 根据权利要求1所述的图形,其特征在于,所述基底为透明基底,所述红外反射层为透明层。The graphic of claim 1, wherein the substrate is a transparent substrate, and the infrared reflection layer is a transparent layer.
  3. 根据权利要求2所述的图形,其特征在于,所述红外反射层为无色透明层。The graphic according to claim 2, wherein the infrared reflection layer is a colorless and transparent layer.
  4. 一种图形码识别方法,其特征在于,包括:A method for identifying a graphic code, comprising:
    获取由红外传感器接收的红外反射信号,所述红外反射信号由所述红外传感器将红外发射信号发射至权利要求1所述的图形码处反射所形成;Obtaining the infrared reflection signal received by the infrared sensor, the infrared reflection signal is formed by the infrared sensor transmitting the infrared emission signal to the graphic code according to claim 1 and reflecting;
    基于所述红外反射信号,识别所述图形码的图形区域。Based on the infrared reflection signal, a pattern area of the pattern code is identified.
  5. 根据权利要求4所述的方法,其特征在于,所述基于所述红外反射信号,识别所述图形码的图形区域,包括:The method according to claim 4, wherein the identifying the graphic area of the graphic code based on the infrared reflection signal comprises:
    对所述红外传感器中不同位置的元件所接收的红外反射信号进行强度解析,得到所述图形码的图形区域。The intensity analysis of the infrared reflection signals received by the elements at different positions in the infrared sensor is performed to obtain the graphic area of the graphic code.
  6. 根据权利要求5所述的方法,其特征在于,所述对所述红外传感器中不同位置的元件所接收的红外反射信号进行强度解析,得到所述图形码的图形区域,包括:The method according to claim 5, wherein the intensity analysis of the infrared reflection signals received by elements at different positions in the infrared sensor to obtain the graphic area of the graphic code comprises:
    当任一位置的元件所接收的红外反射信号的强度大于预设强度阈值时,将所述任一位置对应的图像区域划分至所述图形区域;When the intensity of the infrared reflection signal received by the element at any position is greater than the preset intensity threshold, dividing the image area corresponding to the any position into the graphic area;
    所述方法还包括:The method also includes:
    当任一位置的元件所接收的红外反射信号的强度小于所述预设强度阈值时,将所述任一位置对应的图像区域划分至背景区域。When the intensity of the infrared reflection signal received by the element at any position is less than the preset intensity threshold, the image area corresponding to the any position is divided into a background area.
  7. 根据权利要求4所述的方法,其特征在于,所述基于所述红外反射信号,识别所述图形码的图形区域,包括:The method according to claim 4, wherein the identifying the graphic area of the graphic code based on the infrared reflection signal comprises:
    基于所述红外反射信号,计算红外信号的飞行时间,并根据所述飞行时间,确定所述图形码的深度信息;Calculate the flight time of the infrared signal based on the infrared reflection signal, and determine the depth information of the graphic code according to the flight time;
    根据所述深度信息确定包括所述图形码的深度图像;determining a depth image including the graphics code according to the depth information;
    基于所述深度图像,还原所述图形码的图形区域。Based on the depth image, a graphics area of the graphics code is restored.
  8. 根据权利要求4所述的方法,其特征在于,所述图形码为二维码;所述识别所述图形码的图形区域,还包括:The method according to claim 4, wherein the graphic code is a two-dimensional code; and the identifying the graphic area of the graphic code further comprises:
    识别所述图形码的图形区域,获取二维码;Identify the graphic area of the graphic code, and obtain the two-dimensional code;
    解析所述二维码,得到所述二维码对应的当前场景的信息。Parse the two-dimensional code to obtain information of the current scene corresponding to the two-dimensional code.
  9. 根据权利要求8所述的方法,其特征在于,所述解析所述二维码,得到所述二维码对应的当前场景的信息,包括:The method according to claim 8, wherein the analyzing the two-dimensional code to obtain the information of the current scene corresponding to the two-dimensional code, comprising:
    解析所述二维码,得到所述二维码对应的当前场景的定位信息。The two-dimensional code is parsed to obtain positioning information of the current scene corresponding to the two-dimensional code.
  10. 根据权利要求9所述的方法,其特征在于,所述定位信息包括用户当前的位置信息,或者与所述用户当前的位置信息相关的导航信息或位置信息。The method according to claim 9, wherein the positioning information includes the current location information of the user, or navigation information or location information related to the current location information of the user.
  11. 根据权利要求9所述的方法,其特征在于,所述定位信息通过预先在场景中设置的多个二维码锚点确定。The method according to claim 9, wherein the positioning information is determined by a plurality of two-dimensional code anchor points pre-set in the scene.
  12. 根据权利要求8所述的方法,其特征在于,所述解析所述二维码,得到所述二维码对应的当前场景的信息,包括:The method according to claim 8, wherein the analyzing the two-dimensional code to obtain the information of the current scene corresponding to the two-dimensional code, comprising:
    解析所述二维码,显示所述二维码对应的当前场景的预设信息,或者与所述当前场景所匹配的虚拟对象。Parse the two-dimensional code, and display preset information of the current scene corresponding to the two-dimensional code, or a virtual object matched with the current scene.
  13. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, wherein the method further comprises:
    提示所述图形的引导信息,所述引导信息用于引导所述红外传感器被移动至对准所述图形码。The guide information of the graphic is prompted, and the guide information is used to guide the infrared sensor to be moved to be aligned with the graphic code.
  14. 根据权利要求13所述的方法,其特征在于,所述引导信息以箭头或图形标识的方式显示。The method according to claim 13, wherein the guidance information is displayed in the form of arrows or graphic signs.
  15. 根据权利要求4所述的方法,其特征在于,在识别所述图形码的图形区域之前,所述方法还包括:The method according to claim 4, wherein before identifying the graphic area of the graphic code, the method further comprises:
    获取所述图形码的图形区域中不同位置的深度信息;Obtain the depth information of different positions in the graphics area of the graphics code;
    根据所述深度信息,对所述图形区域进行切向校正。According to the depth information, tangential correction is performed on the graphics area.
  16. 根据权利要求4所述的方法,其特征在于,所述红外传感器包括时间飞行TOF传感器。The method of claim 4, wherein the infrared sensor comprises a time-of-flight TOF sensor.
  17. 一种图形码识别装置,其特征在于,包括:A graphic code identification device, comprising:
    反射信号获取模块,用于获取由红外传感器接收的红外反射信号,所述红外反射信号由所述红外传感器将红外发射信号发射至权利要求1所述的图形码处反射所形成;a reflection signal acquisition module, configured to acquire an infrared reflection signal received by an infrared sensor, and the infrared reflection signal is formed by the infrared sensor transmitting an infrared emission signal to the graphic code according to claim 1 and reflecting;
    图形区域识别模块,用于基于所述红外反射信号,识别所述图形码的图形区域。A graphic area identification module, configured to identify the graphic area of the graphic code based on the infrared reflection signal.
  18. 一种图形码识别系统,其特征在于,包括:A graphic code identification system, comprising:
    图形码,所述图形码设置于基底上,所述图形码的图形区域镀有红外反射层,所述红外反射层的红外反射率高于所述基底的红外反射率;a graphic code, the graphic code is arranged on a substrate, the graphic area of the graphic code is coated with an infrared reflection layer, and the infrared reflectance of the infrared reflection layer is higher than that of the substrate;
    图形码识别装置,用于获取由红外传感器接收的红外反射信号,基于所述红外反射信号,识别所述图形码的图形区域;A graphic code identification device for acquiring an infrared reflection signal received by an infrared sensor, and identifying a graphic area of the graphic code based on the infrared reflection signal;
    所述红外反射信号由所述红外传感器将红外发射信号发射至所述图形码处反射所形成。The infrared reflection signal is formed by the infrared sensor transmitting the infrared emission signal to the graphic code and reflecting.
  19. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求4至16任一项所述的方法。A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the method according to any one of claims 4 to 16 is implemented.
  20. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    处理器;processor;
    存储器,用于存储所述处理器的可执行指令;a memory for storing executable instructions for the processor;
    其中,所述处理器配置为经由执行所述可执行指令来执行权利要求4至16任一项所述的方法。wherein the processor is configured to perform the method of any one of claims 4 to 16 by executing the executable instructions.
PCT/CN2022/075367 2021-04-02 2022-02-07 Graphic code, graphic code recognition method, storage medium, and related apparatus WO2022206172A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110361385.4A CN112949804A (en) 2021-04-02 2021-04-02 Graphic code, graphic code identification method, storage medium and related device
CN202110361385.4 2021-04-02

Publications (1)

Publication Number Publication Date
WO2022206172A1 true WO2022206172A1 (en) 2022-10-06

Family

ID=76232229

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/075367 WO2022206172A1 (en) 2021-04-02 2022-02-07 Graphic code, graphic code recognition method, storage medium, and related apparatus

Country Status (2)

Country Link
CN (1) CN112949804A (en)
WO (1) WO2022206172A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112949804A (en) * 2021-04-02 2021-06-11 Oppo广东移动通信有限公司 Graphic code, graphic code identification method, storage medium and related device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4812631A (en) * 1987-06-02 1989-03-14 Kam Kwong Lee Limited Bar code and read-out method thereof
CN1312513A (en) * 2000-03-07 2001-09-12 宜霖科技股份有限公司 Bar code reader with infrared source
US20070187514A1 (en) * 2005-12-27 2007-08-16 Yamaha Corporation Identification mark reading method and apparatus for the same
CN105883280A (en) * 2014-12-29 2016-08-24 合肥联鑫智能科技有限公司 Intelligent assembling method and production line system
CN106909955A (en) * 2017-02-22 2017-06-30 上海交通大学 A kind of method for anti-counterfeit based on infrared external reflection
CN107787473A (en) * 2015-07-31 2018-03-09 谷歌有限责任公司 Automatically the unique reflections eyeglass of wearable eyes tracking system is calibrated
CN109830171A (en) * 2018-12-11 2019-05-31 杭州中粮包装有限公司 It is a kind of mark and preparation method thereof, reading method
CN112949804A (en) * 2021-04-02 2021-06-11 Oppo广东移动通信有限公司 Graphic code, graphic code identification method, storage medium and related device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5683661B1 (en) * 2013-09-20 2015-03-11 グリッドマーク株式会社 Information input auxiliary sheet, dot code information processing system, and calibration method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4812631A (en) * 1987-06-02 1989-03-14 Kam Kwong Lee Limited Bar code and read-out method thereof
CN1312513A (en) * 2000-03-07 2001-09-12 宜霖科技股份有限公司 Bar code reader with infrared source
US20070187514A1 (en) * 2005-12-27 2007-08-16 Yamaha Corporation Identification mark reading method and apparatus for the same
CN105883280A (en) * 2014-12-29 2016-08-24 合肥联鑫智能科技有限公司 Intelligent assembling method and production line system
CN107787473A (en) * 2015-07-31 2018-03-09 谷歌有限责任公司 Automatically the unique reflections eyeglass of wearable eyes tracking system is calibrated
CN106909955A (en) * 2017-02-22 2017-06-30 上海交通大学 A kind of method for anti-counterfeit based on infrared external reflection
CN109830171A (en) * 2018-12-11 2019-05-31 杭州中粮包装有限公司 It is a kind of mark and preparation method thereof, reading method
CN112949804A (en) * 2021-04-02 2021-06-11 Oppo广东移动通信有限公司 Graphic code, graphic code identification method, storage medium and related device

Also Published As

Publication number Publication date
CN112949804A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
KR102248474B1 (en) Voice command providing method and apparatus
KR102421820B1 (en) Keypoint detection method, apparatus, electronic device and storage medium
US10152634B2 (en) Methods and systems for contextually processing imagery
CN105247812B (en) establishment of an optical link
US20210117680A1 (en) Wearable multimedia device and cloud computing platform with laser projection system
US9945948B2 (en) Method and apparatus for providing time-of-flight calculations using distributed light sources
CN111191715A (en) Image processing method and device, electronic equipment and storage medium
US9613406B2 (en) Method and apparatus for providing specular surface reconstruction
JP2021510869A5 (en)
CN105737804B (en) Method for identifying position of electronic device, electronic device and server operation method
KR20140117426A (en) Transparent display for mobile device
KR20160108076A (en) Method for irradiating litght for capturing iris and device thereof
US20200249012A1 (en) Projector, camera module, and terminal device
WO2015183490A1 (en) Methods and apparatus for position estimation
WO2022206172A1 (en) Graphic code, graphic code recognition method, storage medium, and related apparatus
US11044394B2 (en) Image display method and device, and electronic device
WO2021098107A1 (en) Image processing method and apparatus, electronic device, and storage medium
US11974060B2 (en) Varied depth determination using stereo vision and phase detection auto focus (PDAF)
CN112146576A (en) Dimension measuring method and device
JP2016183922A (en) Distance image acquisition device and distance image acquisition method
US11651328B2 (en) Delivery verification
CN115131789A (en) Character recognition method, character recognition equipment and storage medium
KR102585645B1 (en) Electronic device and method for recognizing character
CN112991439A (en) Method, apparatus, electronic device, and medium for positioning target object
KR101771459B1 (en) Mobile terminal and method for searching goods of the same

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22778360

Country of ref document: EP

Kind code of ref document: A1