WO2019192061A1 - Procédé, dispositif, support de stockage lisible par ordinateur pour identifier et générer un code graphique - Google Patents

Procédé, dispositif, support de stockage lisible par ordinateur pour identifier et générer un code graphique Download PDF

Info

Publication number
WO2019192061A1
WO2019192061A1 PCT/CN2018/087873 CN2018087873W WO2019192061A1 WO 2019192061 A1 WO2019192061 A1 WO 2019192061A1 CN 2018087873 W CN2018087873 W CN 2018087873W WO 2019192061 A1 WO2019192061 A1 WO 2019192061A1
Authority
WO
WIPO (PCT)
Prior art keywords
circle
graphic code
positioning
reference line
icon
Prior art date
Application number
PCT/CN2018/087873
Other languages
English (en)
Chinese (zh)
Inventor
黄伟平
Original Assignee
腾讯音乐娱乐科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯音乐娱乐科技(深圳)有限公司 filed Critical 腾讯音乐娱乐科技(深圳)有限公司
Publication of WO2019192061A1 publication Critical patent/WO2019192061A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1443Methods for optical code recognition including a method step for retrieval of the optical code locating of the code in an image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06046Constructional details
    • G06K19/06103Constructional details the marking being embedded in a human recognizable image, e.g. a company logo with an embedded two-dimensional code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code

Definitions

  • the present disclosure relates to the field of graphic codes, and in particular, to a method, an apparatus, and a computer readable storage medium for identifying a graphic code.
  • graphic codes such as one-dimensional codes and two-dimensional codes can be seen everywhere.
  • the graphic code often carries certain data information, such as the price information, classification and attributes of the commodity in the one-dimensional code of the commodity; the graphic code of the Internet product carries the corresponding jump link.
  • the graphic code needs to be identified.
  • the graphic code in the related art is usually a one-dimensional code or a two-dimensional code, so that the form of the graphic code is relatively simple. Since the form of the graphic code is relatively simple, the same form of the graphic code is used in most fields. For example, the current two-dimensional code is applied to all fields that need to use the graphic code to carry the data information. Most fields use the same form of graphics code. Although the graphics code is universal, a single form of graphics code is likely to cause visual fatigue to the user, which tends to cause less attention to the data information carried in the graphics code.
  • the embodiments of the present disclosure provide a method, a device, and a computer readable storage medium for recognizing and generating a graphic code, so as to solve the single form of the graphic code in the related art, which may easily cause attention to the data information carried in the graphic code.
  • High technical issues. The technical solution is as follows:
  • a method for identifying a graphic code comprising:
  • the graphic code further includes at least one positioning icon, where identifying a position of the reference line in the graphic code in the target image, including:
  • a position of a reference line in the graphic code is determined based on a location of the at least one positioning icon.
  • the positioning icon includes a first positioning circle and a second positioning circle having a preset relative positional relationship, where the position of the at least one positioning icon includes a center position of the first positioning circle and the second Position the center of the circle.
  • identifying a location of the at least one positioning icon in the graphic code including:
  • a circle closest to the first positioning circle is identified as a second positioning circle in the graphic code.
  • the reference icon is a reference circle
  • the second positioning circle has the same diameter as the reference circle
  • the graphic code comprises a plurality of reference lines arranged in parallel and equally spaced, in the graphic code The distance between the diameter of the reference circle and the adjacent reference line satisfies a preset ratio
  • Determining a position of the reference line in the graphic code based on a location of the at least one positioning icon including:
  • identifying a location of the reference line in the graphic code including:
  • the position of the reference line in the graphic code is identified in the target image.
  • the reference icon is a reference circle
  • the position of the reference icon is a center position of the reference circle
  • the reference icon is determined according to the position of the reference line and the position of the plurality of reference icons.
  • Relative position information of the reference line includes:
  • Determining identification information of a reference line where a center of the first type of reference circle is located, according to a position of the reference line and a center position of the plurality of reference circles, for a first type of reference circle whose center is on a reference line Determining relative position information of the first type of reference circle and the reference line, and determining, for a second type of reference circle whose center is not on the reference line, two reference lines closest to the center distance of the second type of reference circle, The identification information of the auxiliary reference line in the middle of the two reference lines closest to the center distance of the second type of reference circle is used as the relative position information of the second type of reference circle and the reference line.
  • a method for generating a graphics code comprising:
  • the graphic code includes at least one reference line
  • the graphic code includes a plurality of reference icons, each of the reference icons respectively satisfying a preset relative positional relationship with the reference line;
  • the graphic code carries data information, and the graphic code is identified for obtaining the data information.
  • the graphic code further includes at least one positioning icon, wherein the positioning icon is used to locate the reference line in the process of identifying the graphic code.
  • the at least one positioning icon comprises a first positioning circle and a second positioning circle.
  • the reference icon is a reference circle
  • the second positioning circle has the same diameter as the reference circle.
  • the graphic code comprises a plurality of mutually parallel and equally spaced reference lines, wherein a distance between the diameter of the reference circle and an adjacent reference line in the graphic code satisfies a preset ratio.
  • the center of the first positioning circle is on any reference line
  • the center of the second positioning circle and the center of the reference circle are respectively on the auxiliary reference line between any two adjacent reference lines.
  • a device for identifying a graphic code comprising a plurality of reference icons, the device comprising:
  • a first identification module configured to identify a position of a reference line in the graphic code in the target image
  • a second identification module configured to identify a location of the plurality of reference icons in the graphic code
  • a first determining module configured to determine relative position information of each reference icon and the reference line according to a position of the reference line and a position of the plurality of reference icons
  • a second determining module configured to determine, according to the relative position information of each of the reference icons and the reference line, an encoded character string corresponding to the graphic code.
  • the graphic code further includes at least one positioning icon, where the first identification module includes:
  • An identifying unit configured to identify, in the target image, a location of at least one positioning icon in the graphic code
  • a determining unit configured to determine a position of a reference line in the graphic code based on a location of the at least one positioning icon.
  • the positioning icon includes a first positioning circle and a second positioning circle having a preset relative positional relationship, where the position of the at least one positioning icon includes a center position of the first positioning circle and the second Position the center of the circle.
  • the identifying unit includes:
  • a first identifying subunit configured to identify a first positioning circle in the graphic code in the target image based on a preset radius range
  • a second identification subunit configured to identify, in the target image, a circle closest to the first positioning circle as a second positioning circle in the graphic code.
  • the reference icon is a reference circle
  • the second positioning circle has the same diameter as the reference circle
  • the graphic code comprises a plurality of reference lines arranged in parallel and equally spaced, in the graphic code The distance between the diameter of the reference circle and the adjacent reference line satisfies a preset ratio
  • the determining unit is configured to: determine, according to a center position of the first positioning circle, a center position of the second positioning circle, a diameter of the second positioning circle in the target image, and the preset ratio The position of the reference line in the graphic code.
  • the first identification module is configured to: identify, according to a line recognition algorithm, a position of a reference line in the graphic code in the target image.
  • the reference icon is a reference circle
  • the location of the reference icon is a center position of the reference circle
  • the first determining module is configured to:
  • Determining identification information of a reference line where a center of the first type of reference circle is located, according to a position of the reference line and a center position of the plurality of reference circles, for a first type of reference circle whose center is on a reference line Determining relative position information of the first type of reference circle and the reference line, and determining, for a second type of reference circle whose center is not on the reference line, two reference lines closest to the center distance of the second type of reference circle, The identification information of the auxiliary reference line in the middle of the two reference lines closest to the center distance of the second type of reference circle is used as the relative position information of the second type of reference circle and the reference line.
  • a fourth aspect provides a device for generating a graphic code, the device for generating a graphic code
  • the graphic code includes at least one reference line
  • the graphic code includes a plurality of reference icons, each of the reference icons respectively satisfying a preset relative positional relationship with the reference line;
  • the graphic code carries data information, and the graphic code is identified for obtaining the data information.
  • the graphic code further includes at least one positioning icon, wherein the positioning icon is used to locate the reference line in the process of identifying the graphic code.
  • the at least one positioning icon comprises a first positioning circle and a second positioning circle.
  • the reference icon is a reference circle
  • the second positioning circle has the same diameter as the reference circle.
  • the graphic code comprises a plurality of mutually parallel and equally spaced reference lines, wherein a distance between the diameter of the reference circle and an adjacent reference line in the graphic code satisfies a preset ratio.
  • the center of the first positioning circle is on any reference line
  • the center of the second positioning circle and the center of the reference circle are respectively assisted on any reference line or in the middle of any two adjacent reference lines. Reference line.
  • a device for identifying a graphic code comprising:
  • a memory for storing processor executable instructions
  • the processor is configured to perform the step of the method of identifying the graphic code according to the first aspect.
  • a sixth aspect provides a device for generating a graphic code, the device comprising:
  • a memory for storing processor executable instructions
  • the processor is configured to perform the steps of the method for generating a graphic code according to the second aspect.
  • a computer readable storage medium having instructions stored thereon, the instructions being executed by a processor to implement the steps of the method of identifying a graphic code of the first aspect.
  • a computer readable storage medium having instructions stored thereon, the instructions being executed by a processor to implement the steps of the method of generating a graphics code according to the second aspect.
  • a graphic code including a plurality of reference icons By setting a graphic code including a plurality of reference icons, a novel graphic code different in form from a barcode or a two-dimensional code is provided, thereby not only enriching the form of the graphic code, but also carrying the data information through the graphic code can attract the public eye, thereby It can improve the attention of the data information carried by the graphic code.
  • the graphic code By setting the graphic code to include a plurality of reference icons, the graphic code can adjust the number of reference icons according to the number of data information to be identified, which is not only flexible and convenient, but also applicable to an area with a large amount of information.
  • FIG. 1 is a schematic diagram of a graphic code provided by an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of another graphic code provided by an embodiment of the present disclosure.
  • FIG. 3 is a flowchart of a method for identifying a graphic code according to an embodiment of the present disclosure
  • FIG. 4A is a schematic diagram of still another graphic code provided by an embodiment of the present disclosure.
  • FIG. 4B is a schematic diagram of still another graphic code provided by an embodiment of the present disclosure.
  • FIG. 5 is a schematic diagram of an application scenario of a graphic code according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a device for identifying a graphic code according to an embodiment of the present disclosure
  • FIG. 7 is a schematic structural diagram of a terminal for identifying a graphic code according to an embodiment of the present disclosure
  • FIG. 8 is a schematic structural diagram of a terminal for generating a graphic code according to an embodiment of the present disclosure.
  • Embodiments of the present disclosure provide a graphics code including a plurality of reference icons and at least one reference line.
  • the graphic code includes a plurality of reference lines
  • the reference lines are arranged parallel to each other and equally spaced.
  • the reference line is used to locate the position of the reference icon. Therefore, these reference lines can be straight lines actually existing in the graphic code, that is, the reference lines are displayed in the graphic code together with the reference icons, as shown in FIG. 1; these reference lines can also be
  • the logic line is only used to locate the position of the reference icon, that is, the reference line is not displayed in the graphic code. As shown in FIG. 2, the broken line in FIG. 2 indicates the reference line, which is not displayed in the graphic code.
  • the shape of the reference icon may be determined according to the application of the graphic code. In the specific implementation, the shape of the reference icon may be a circle, an equilateral triangle, or the like.
  • the data code carries the data information.
  • the embodiment of the present disclosure provides a method for identifying a graphic code, which can be implemented by a terminal having a graphic code recognition function.
  • the specific implementation method of the identification method of the graphic code is as follows:
  • FIG. 3 is a flowchart of a method for identifying a graphic code according to an embodiment of the present disclosure. As shown in FIG. 3, the method for identifying the graphic code includes the following steps:
  • the target image may be a pre-stored image to be recognized in the terminal gallery, or may be a to-be-identified image currently captured by the camera of the terminal, or may be a to-be-identified image currently being scanned by the terminal.
  • the terminal since the terminal directly scans a whole picture to be recognized, the running memory may be required to be relatively large, resulting in a relatively slow recognition rate.
  • the picture to be identified when the picture to be identified is identified, the picture to be identified may be divided into blocks, such as dividing the picture to be identified into a plurality of rectangles, and identifying each rectangle. Therefore, the target image may also be any one of a plurality of rectangular images into which one picture to be recognized is divided.
  • the rectangular image obtained by the segmentation includes the complete graphic code
  • the picture to be recognized when the picture to be recognized is divided into a plurality of rectangular images, it can be implemented according to the pixel size of the terminal camera and the length ratio of the commonly set graphic code. For example, if the pixel size of the terminal camera is 1000*1000, and the aspect ratio of the graphic code is 10:1, when the rectangular image is divided, the image to be recognized can be divided into a size from bottom to top or top to bottom. Ten rectangular images of 1000*120.
  • the target image may be denoised to achieve the effect of improving the recognition rate.
  • denoising processing including but limited to processing the target image by a corrosion expansion algorithm.
  • the embodiments of the present disclosure are not specifically limited.
  • the shape of the reference icon can be determined according to factors such as the application of the graphic code or the type of data information carried. For example, if the graphic code is applied to the music field, the shape of the reference icon may be a note shape or the like, thereby achieving the purpose of vividly representing the application scene.
  • the number of reference icons can be determined based on the amount of information that needs to be expressed. For example, when the graphic code includes 10 reference icons, the relative position information of each reference icon and the reference line is 9, and the state of each reference icon includes solid and hollow, the amount of information that the graphic code can carry is 1810. . Information about the relative position of the reference icon and the reference line will be explained in the following content, which will not be described here.
  • the graphic code provided by the embodiment of the present disclosure includes 8-16 reference icons.
  • the position of the reference line in the graphic code includes but is not limited to being identified by a straight line equation of the reference line. That is, identifying the position of the reference line in the graphic code is a linear equation for determining the reference line in the graphic code.
  • the step S2 identifies, in the target image, the position of the reference line in the graphic code, including but not limited to the following two ways:
  • the graphic code includes at least one positioning icon in addition to the reference line and the plurality of reference icons, and the positioning icon is used to locate the position of the reference line.
  • the position of the at least one positioning icon in the graphic code may be first identified; then, the position of the reference line in the graphic code is determined based on the position of the at least one positioning icon.
  • the number of positioning icons may be one, two or three, and the like.
  • the shape of the positioning icon can be various, such as the shape of the positioning icon is a regular hexagon, a circle or a square.
  • the shape of the positioning icon may be the same as or different from the shape of the reference icon.
  • the manner of identifying the position of the reference line in the graphic code may include at least the following three cases.
  • the positioning icon may be preset to have a distinct feature with respect to the reference icon, such as the size of the positioning icon being different from the size of the reference icon or the shape of the positioning icon being different from the shape of the reference icon.
  • the embodiment of the present disclosure may preset the positioning icon to include two feature patterns associated with the reference line. For example, the positioning icon is internally provided with two circles and the centers of the two circles are located on one of the plurality of reference lines.
  • the positioning icon is a large circle that is significantly larger than the rest of the reference icons
  • the positioning icon is internally provided with two characteristic small circles, and the center of the preset two characteristic small circles is located in the plurality of reference lines from top to bottom.
  • the position of the positioning icon can be the center position of the small circle of the two features.
  • the position of the large circle in the graphic code may be first recognized; then, the center position of the two characteristic small circles is found in the large circle; The position of the center of the feature small circle determines the position of the third reference line; finally, the position of the other reference lines other than the third reference line in the graphic code is determined according to the characteristics of the equally spaced distribution of the reference line.
  • the number of positioning icons is two.
  • the two positioning icons may be preset to have a significant difference, and the two positioning icons have a preset relative positional relationship.
  • the preset relative positional relationship may be an association relationship between the feature points in the two positioning icons and a certain reference line.
  • both positioning icons are circular, and their diameters are different, their centers are their feature points, and the centers of the two circles are located on a certain reference line.
  • the positioning icon in the case includes a first positioning circle and a second positioning circle having a preset relative positional relationship, and the diameters of the first positioning circle and the second positioning circle are different.
  • the position of the positioning icon may be the center position of the first positioning circle and the center position of the second positioning circle.
  • the preset relative positional relationship includes: a center of the first positioning circle is located on the first preset reference line and a center of the second positioning circle is located on the second preset reference line.
  • the first preset reference line and the second preset reference line may be the same or different.
  • the centers of the first positioning circle and the second positioning circle are located on the same reference line, according to the center position of the first positioning circle and the second positioning circle
  • the position of the center of the circle determines the position of the reference line in which they are located, and the position of the other reference lines is determined based on features that are parallel and equally spaced between the reference lines.
  • the positions of the reference lines where the centers of the first positioning circle and the second positioning circle are located may be preset, such as preset the first preset reference line as a reference.
  • the third reference line in the line, the second preset reference line is preset as the fourth reference line in the reference line.
  • the positions of the first predetermined reference line and the second preset reference line are respectively determined according to the positions of the center of the first positioning circle and the center of the second positioning circle, and are parallel and equally spaced according to the reference lines. The characteristics of the distribution determine the location of other reference lines.
  • the first positioning circle and the second positioning circle need to be identified first.
  • the embodiment of the present disclosure first identifies one of the positioning circles, and then identifies another one according to the preset relative positional relationship. If the first positioning circle is first identified, the second positioning circle is identified.
  • the first positioning circle is first identified as an example.
  • the radius of the first positioning circle may be preset, that is, the radius of the first positioning circle falls within the preset radius regardless of the distance of the terminal scanning code.
  • the first positioning circle in the graphic code may be identified in the target image based on the preset radius range of the first positioning circle. Then, the second positioning circle is identified in the target image.
  • the relative positional relationship between the first positioning circle and the second positioning circle is implemented.
  • the preset relative position relationship further sets the second positioning circle to be the circle closest to the first positioning circle
  • the circle closest to the first positioning circle may be identified, and the circle closest to the first positioning circle may be identified.
  • the second positioning circle in the graphic code Specifically, when identifying a circle closest to the first positioning circle, the circle and the corresponding center in the graphic code may be first identified, and then the center of the circle and the center of the first positioning circle are searched from the identified circle. The smallest circle from the distance, as the second positioning circle.
  • the first positioning circle may be in the target image.
  • a circle whose center is on the same reference line as the center of the first positioning circle is identified, and a circle whose center is on the same reference line as the center of the first positioning circle is used as the second positioning circle.
  • the second positioning circle may be identified by other corresponding manners, which is not enumerated in this embodiment.
  • the relative positional relationship between the first positioning circle and the second positioning circle in the horizontal direction may be defined in the preset relative position relationship
  • the second positioning circle is defined in the preset relative position relationship.
  • One is positioned to the right of the circle.
  • the scanning direction of the terminal when the scanning direction of the terminal is determined, the scanning direction of the identification is avoided, for example, when the second positioning circle is located on the side of the first positioning circle, if the second positioning circle is located on the other side of the first positioning circle.
  • the position icon and the second positioning circle are the same in shape and size, the direction of the scanned code may be wrong. Therefore, it should be ensured that the reference icon is significantly different from the second positioning circle, such as a different shape.
  • the reference icon when the reference icon is the reference circle, it should be ensured that the reference circle is different from the diameter of the second positioning circle.
  • Case 3 The number of positioning icons is three.
  • the case where the three positioning icons are all circular is introduced in the case that the positioning icon includes the first positioning circle and the second positioning circle, in addition to the second positioning case.
  • the third positioning circle is further included, and the center of the third positioning circle is preset to have a relative positional relationship with the center of the first positioning circle in the vertical direction.
  • the center of the third positioning circle is preset on the reference line above the reference line of the center of the first positioning circle, thereby defining the relationship between the center of the third positioning circle and the center of the first positioning circle in the vertical direction.
  • the terminal can determine whether to recognize the graphic code in the forward direction or to recognize the graphic code in the reverse direction.
  • the terminal may be determined that the terminal is currently scanning in the forward direction. Graphic code. Conversely, it can be determined that the terminal is currently scanning the graphics code in reverse.
  • the positioning icon includes a first positioning circle, a second positioning circle, and a third positioning circle
  • the second positioning circle and the third positioning circle have the same radius and are smaller than the first positioning circle.
  • a radius, and the second positioning circle and the third positioning circle are respectively located on two sides of the first positioning circle
  • the center of the first positioning circle and the center of the second positioning circle are located on the same reference line
  • the center of the third positioning circle is located at the first positioning
  • the center of the circle is on the reference line above the reference line.
  • the first positioning circle is identified according to the radius of the first positioning circle; then, a circle having a circle center and a center of the first positioning circle is found in a circle on both sides of the first positioning circle as a circle a second positioning circle, the circle on the other side of the first positioning circle is used as a third positioning circle; next, determining the position of the reference line where the first reference circle is located according to the center of the first positioning circle and the center of the second positioning circle, and according to Positions of reference lines where the center of the first positioning circle and the second positioning circle are located and positions of other reference lines are determined according to mutually parallel and equally spaced features between the reference lines; finally, according to the center of the first positioning circle and the third The positional relationship of the center of the positioning circle in the vertical direction determines the scanning direction of the terminal.
  • the size of the preset positioning icons needs to be preset.
  • the spacing between the reference lines is different when the scanning distance is different, in order to accurately determine the positions of the other reference lines according to the features of the parallel and equally spaced distribution between the reference lines, the size of the preset positioning icons needs to be preset.
  • the size of the positioning icon in the target image can be obtained, and the target image is determined according to the ratio between the size of the positioning icon in the target image and the preset positioning icon size and the reference line spacing.
  • the spacing between adjacent reference lines to determine the line equations of the other reference lines based on the determined line equation of one of the reference lines and the spacing between adjacent reference lines in the target image.
  • the ratio of the diameter of the first positioning circle to the spacing of adjacent reference lines may be preset to a fixed value.
  • the diameter of the first positioning circle in the target image may be obtained first, and according to the diameter of the first positioning circle in the target image and the diameter of the preset first positioning circle.
  • the reference icon is also a circle, that is, the reference icon is a reference circle.
  • the graphic code includes a first positioning circle, a second positioning circle, a plurality of reference circles, and a plurality of reference lines arranged parallel to each other and equally spaced, the diameter of the first positioning circle being larger than the second positioning circle.
  • the diameter, and the second positioning circle has the same diameter as the reference circle, and the distance between the diameter of the reference circle and the adjacent reference line in the graphic code satisfies a preset ratio, such as the graphic code shown in FIG. 4A.
  • the center position of the first positioning circle, the center position of the second positioning circle, and the second positioning circle may be:
  • the diameter in the target image and the preset ratio determine the position of the reference line in the graphic code.
  • the specific value of the preset ratio may be set as needed, and the embodiment of the present disclosure does not specifically limit this.
  • the center position of the first positioning circle and the center position of the second positioning circle are on different reference lines
  • the center position based on the first positioning circle, the center position of the second positioning circle, and the second positioning circle are in the target image.
  • the diameter and the preset ratio, the way to determine the reference line in the graphic code is as follows:
  • the reference line of the center of the first positioning circle is preset as m1
  • the reference line of the center of the second positioning circle is m2
  • the reference line is m1 and the reference line is m2 with n preset reference line spacings.
  • the graphic code includes a first positioning circle (the large circle in FIG. 4B), a second positioning circle (the small circle on the right side of the large circle in FIG. 4B), a plurality of reference circles, and a plurality of reference lines arranged parallel to each other and equally spaced, the second positioning circle is the same diameter as the reference circle, and the ratio of the diameter of the reference circle to the adjacent reference line is 1:1, that is, the diameter of the reference circle in the graphic code
  • the distance from the adjacent reference line is the same, and the centers of the first positioning circle, the second positioning circle, and the reference circle are all located on the reference line or on the auxiliary reference line between the two adjacent reference lines.
  • the center of the adjacent reference circle in the graphic code has the same distance in the horizontal direction.
  • the small circle on the left side of the big circle in the graphic code shown in FIG. 4B can also be a positioning circle, and the remaining circles are reference circles.
  • the second way based on the line recognition algorithm, in the target image, the position of the reference line in the graphic code is identified.
  • the line recognition algorithm may be a Hough line recognition algorithm or the like.
  • the method can search for multiple lines parallel to each other and equally spaced in the target image based on the line recognition algorithm, and find the parallel lines and so on.
  • a plurality of straight lines of the pitch distribution are used as a plurality of reference lines, and the positions of the straight lines are taken as the positions of the reference lines in the graphic code.
  • the position of each reference line is determined.
  • the position of a reference line can be determined by a line recognition algorithm, and then the rest is determined by determining the position of the remaining reference lines according to the position of one reference line described in the above content.
  • the position of the reference line; the position of each reference line can also be determined directly by the line recognition algorithm.
  • step S2 can be implemented by a pattern recognition algorithm when identifying the positions of the plurality of reference icons in the graphic code.
  • the reference icon when the reference icon is a reference circle, the reference circle can be identified by the Hough circle recognition algorithm.
  • the position of the reference icon can be the center position of the reference circle. It should be noted that the manner of identifying the circle mentioned in the above content can be realized by the Hough circle recognition algorithm.
  • the positioning icon in the graphic code is the positioning circle and the reference icon is the reference circle
  • the graphic code does not overlap between the positioning circle and the reference circle, does not intersect, and does not exist in the inclusion relationship. And so on, therefore, after acquiring the target image, the circle recognition algorithm can be used to find multiple circles in the target image, and then the plurality of circles found are preprocessed to remove the plurality of circles and obviously have no positioning circle. And the circle of the reference circle feature, so as to avoid the interference of these circles on the subsequent recognition process, thereby improving the recognition rate.
  • the center of the reference circle in the graphic code is located on any of the reference lines, or on the auxiliary reference line between the adjacent two reference lines, and the adjacent reference circles do not overlap.
  • a pixel that changes in a specified pattern determines whether there is a reference circle on the reference line or the auxiliary reference line, and records identification information of the reference circle and the reference line or auxiliary reference line where it is located; according to each reference circle and its The identification information of the reference line or
  • the specific content of the relative position information may be determined according to the style of the graphic code. For example, when a plurality of reference lines are included in the graphic code, and the reference icon is located on the reference line or the auxiliary reference line, the relative position information may be identification information of the reference line or identification information of the auxiliary reference line. For another example, when only one reference line is included in the graphic code, the relative position information may be the distance between the reference icon and the reference line (the distance is positive above the reference line, and the lower is negative), and the distance may be divided by the unit. The multiple of the length. Here, one unit length may be defined as the diameter of the first positioning circle or the diameter of the second positioning circle.
  • the reference icon in the graphic code is a reference circle
  • the position of the reference icon is the center position of the reference circle
  • the center position of the reference circle is set on the reference line or on the auxiliary reference line disposed in the middle of the adjacent reference line.
  • the position of the reference line and the center position of the plurality of reference circles may be:
  • the first type of reference circle of the center of the reference line determines the identification information of the reference line where the center of the first type of reference circle is located, as the relative position information of the reference circle of the first type and the reference line, and the first position of the reference line is not on the reference line
  • the second type of reference circle determines two reference lines closest to the center distance of the second type of reference circle, and the identification information of the auxiliary reference line in the middle of the two reference lines closest to the center of the second type of reference circle is used as the second Relative position information of the reference circle and the reference line.
  • the identification information of the reference line may be represented by the number of the reference line
  • the identification information of the auxiliary reference line may be represented by the number of the auxiliary reference line.
  • a plurality of reference lines may be numbered from top to bottom in advance, and the number is used as the identification information of the reference line, and the auxiliary reference lines in the middle of the adjacent reference lines are sequentially arranged from top to bottom. Number, which is used as the identification information of the auxiliary reference line.
  • the positioning circle is a large circle in the middle and a small circle on the right side thereof, and the remaining figures are reference circles
  • the first type of reference circle is the first and third circles from left to right
  • the second type of reference circle is the second, fourth, seventh, and eighth of the left to right number.
  • the 9th round when the positioning icon is the large circle in FIG. 4A and the two small circles on the left and right sides thereof, the remaining graphics are reference circles, and the identification information of the reference line or the identification information of the auxiliary reference line is the relative relationship between the reference icon and the reference line.
  • the relative position information of each of the reference icons and the reference lines from left to right are 3, 6, 7, 8, 6, and 2, respectively.
  • the encoded string is a recognition result of the graphic code, and the data information carried in the graphic code can be directly or indirectly obtained through the encoded string.
  • This step S4 includes but is not limited to the following two implementations:
  • the first way the encoded string is directly a combination of the relative position information of each reference icon and the reference line.
  • each reference icon and the reference line have a relative position information, and the relative position information of all the reference icons and the reference line is combined to obtain the coded string corresponding to the graphic code.
  • the relative position information of each reference icon and the reference line is the number of the reference line or the auxiliary reference line where they are located, the number of the reference line or the auxiliary reference line where all the reference icons are located is combined to obtain the coded character corresponding to the graphic code. string.
  • the code string corresponding to the graphic code is 367862.
  • the second way the encoded string is converted from the relative position information of each reference icon and the reference line.
  • step S4 may: determine the encoded character string corresponding to the graphic code based on the relative position information of each reference icon and the reference line, and the correspondence between the previously stored relative position information and the encoded character. Specifically, after obtaining the relative position information of each of the reference icons and the reference line, the relative position information of each of the reference icons and the reference line may be compared with the correspondence between the previously stored relative position information and the coded characters. A coded character corresponding to the relative position information of each reference icon and the reference line is determined. The coded characters corresponding to the relative position information of all the reference icons and the reference lines are combined to obtain an encoded character string corresponding to the graphic code.
  • the data information actually included in the graphic code may not be stored in the terminal, but stored on the server, and the terminal may encode the character in order to obtain the data information actually included in the graphic code.
  • the string is encrypted, and the encrypted encoded string is sent to the server.
  • the server After the server decrypts the encoded string, the server searches for the correspondence between the encoded string and the information, obtains the data information actually included in the graphic code, and returns the data information to the terminal.
  • the terminal gets the information in the graphic code.
  • the process is a way to obtain the data information carried in the graphic code indirectly according to the encoded character string. By encrypting the encoded string and then transmitting it, the security of the data information can be improved, and the encoded string can be prevented from being leaked due to the captured packet.
  • the graphic code provided by the embodiment of the present disclosure includes a plurality of reference lines and a plurality of reference circles that are parallel to each other, and the graphic code can be applied to some specific scenes according to the features of the graphic code.
  • the graphic code includes five reference lines parallel to each other, similar to the staff in music, and includes circles of two radii, and the large circle in FIGS. 4A and 4B is the first positioning.
  • the circle, the circle on the right side of the first positioning circle is the second positioning circle, the remaining circles are the reference circle, and the second positioning circle has the same diameter as the other reference circles.
  • the graphic code includes a staff and the reference circle of the same diameter is similar to the note size in the staff, the graphic code can be applied to the music field to carry the singer information, the album information, or the download address of the music. As shown in FIG. 5, it is a specific application scenario of the graphic code. After scanning the graphic code, the terminal jumps to the corresponding music playing interface. Therefore, when the graphic code provided by the embodiment of the present disclosure is applied to a specific field, the data information carried by the graphic code can be more vividly expressed, thereby increasing the degree of attention of the data information.
  • the first positioning circle in the graphic code can also place the brand identifier of the data information carried by the graphic code, thereby increasing the combination degree of the graphic code and the brand, thereby increasing the publicity effect on the brand.
  • the method provided by the embodiment of the present disclosure provides a new type of graphic code different from the barcode or the two-dimensional code by setting the graphic code to include a plurality of reference icons, thereby enriching not only the form of the graphic code but also carrying the graphic code.
  • Information can attract the attention of the public, which can increase the attention of the data information carried by the graphic code.
  • the graphic code can adjust the number of the reference icons according to the amount of information to be identified, which is not only flexible and convenient, but also applicable to an area with a large amount of information.
  • the embodiment of the present disclosure further provides a method for generating a graphic code, the generating method comprising: generating a graphic code; wherein the graphic code includes at least one reference line; the graphic code includes a plurality of reference icons, each of the reference icons respectively satisfying the reference line Preset relative positional relationship; the graphic code carries data information, and the identification graphic code is used to obtain data information.
  • the method for generating a graphic code provided by the embodiment of the present disclosure is used to generate a graphic code that needs to be identified in the target image of the foregoing embodiment.
  • the result of identifying the graphic code is used to obtain the data information carried in the graphic code, that is, the data information carried therein can be obtained by identifying the graphic code.
  • the reference line is used to position the datum icon.
  • the number of reference lines can be one or multiple.
  • the reference lines are arranged parallel to each other and equally spaced.
  • the reference line may be a line actually existing in the graphic code; or may be a logical line that is preset in the graphic code and satisfies a preset relative positional relationship with the reference icon, that is, the reference line is not displayed in the graphic code. It is only necessary to assist the reference line when determining the position of the reference icon.
  • the benchmark icon is used to carry data information.
  • the number of reference icons in the graphic code it can be determined according to the size of the amount of information to be carried. When the amount of data information to be carried is relatively large, the number of reference icons included in the graphic code can be set to be relatively large.
  • the shape of the reference icon can also be set as needed, such as a circle icon, an ellipse, an equilateral triangle, a hexagon, or the like.
  • Each of the reference icons respectively meets a preset relative positional relationship with the reference line, and the relative position information of each of the reference icons and the reference line can be obtained according to the preset relative positional relationship, and the method for identifying the graphic code is as described in the embodiment.
  • the relative position information of each reference icon and the reference line can be used to determine the encoded character string corresponding to the graphic code, thereby obtaining the data information carried in the graphic code.
  • the graphic code includes at least one positioning icon for positioning the reference line in the process of identifying the graphic code, in addition to the at least one reference line and the plurality of reference icons.
  • the position of the reference line is first determined by the positioning icon, then the position of the reference icon is determined according to the position of the reference line, and finally the graphic code is identified according to the relative position information of the reference icon and the reference line. Carrying data information.
  • the content of the positioning icon and the specific implementation of determining the position of the reference line according to the positioning icon have been explained in detail in the above embodiment of the method for identifying the graphic code. For details, refer to the embodiment of the above identification method. The corresponding content will not be described here.
  • At least one of the positioning icons may include a first positioning circle and a second positioning circle.
  • the first positioning circle and the second positioning circle are used to position the one or two reference lines.
  • the radius of the first positioning circle and the second positioning circle may be the same or different, and the first positioning circle and the second positioning circle are included to have different features, so that the first positioning circle and the second positioning circle can be distinguished.
  • the first positioning circle and the second positioning circle in the graphic code are circles having different diameters.
  • the first positioning circle and the second positioning circle have a preset relative positional relationship. a predetermined relative positional relationship between the first positioning circle and the second positioning circle, a manner of identifying the first positioning circle and the second positioning circle, and determining one or two reference lines by the first positioning circle and the second positioning circle.
  • the reference icon is also a circle, that is, the reference icon is a reference circle, and the second positioning circle has the same diameter as the reference circle.
  • the graphic code includes a first positioning circle, a second positioning circle, and a plurality of reference circles, and the second positioning circle and the reference circle have the same diameter.
  • the graphic code includes two diameter circles, and the diameter of the first positioning circle is different from the diameter of the second positioning circle.
  • the diameter of the first positioning circle is larger than the diameter of the second positioning circle.
  • the graphic code includes a first positioning circle, a second positioning circle, a plurality of reference circles, and a plurality of reference lines which are parallel and equally spaced, the second positioning circle and the reference circle have the same diameter, and the diameter and phase of the reference circle
  • the distance between adjacent reference lines satisfies a preset ratio.
  • the specific value of the preset ratio can be set as needed.
  • the preset ratio is 1, that is, the diameter of the reference circle is equal to the distance between adjacent reference lines, so that the graphic code is more beautiful.
  • the graphic code comprises a first positioning circle and a second positioning circle, a plurality of reference circles and a plurality of reference lines arranged parallel to each other and equally spaced, the center of the first positioning circle is on any reference line, and the second positioning circle is The center of the center and the reference circle are respectively on any reference line or on the auxiliary reference line between any two adjacent reference lines, and the second positioning circle and the reference circle have the same diameter, as shown in FIGS. 4A and 4B.
  • the graphic code includes an odd number of reference lines
  • the center of the first positioning circle is located on the reference line in the middle.
  • the graphic code includes five reference lines
  • the center of the first positioning circle is located on the third reference line.
  • the diameters of the second positioning circle and the reference circle are the same, and the distance between the diameter of the reference circle and the adjacent reference line satisfies a preset ratio.
  • the graphic code is more beautiful.
  • the first positioning circle is disposed at an intermediate position of the graphic code, so that not only the first positioning circle is easily recognized, but also the overall graphic code is more beautiful.
  • the method provided by the embodiment of the present disclosure provides a new type of graphic code different from the barcode or the two-dimensional code by setting the graphic code including the plurality of reference icons and the at least one reference line, thereby enriching the form of the graphic code and passing
  • the graphic code to carry information can attract the attention of the public, thereby improving the attention of the data information carried by the graphic code.
  • the graphic code can adjust the number of the reference icons according to the amount of information to be identified, which is not only flexible and convenient, but also applicable to an area with a large amount of information.
  • the embodiment of the present disclosure further provides a device for identifying a graphic code, where the graphic code includes a plurality of reference icons, and the device for identifying the graphic code includes:
  • a first identification module 602 configured to identify a position of a reference line in the graphic code in the target image
  • a second identification module 603, configured to identify locations of the plurality of reference icons in the graphic code
  • a first determining module 604 configured to determine relative position information of each reference icon and a reference line according to a position of the reference line and a position of the plurality of reference icons;
  • the second determining module 605 is configured to determine an encoded character string corresponding to the graphic code based on the relative position information of each of the reference icons and the reference line.
  • the graphic code further includes at least one positioning icon, where the first identification module 602 includes:
  • a identifying unit configured to identify, in the target image, a location of the at least one positioning icon in the graphic code
  • a determining unit configured to determine a position of the reference line in the graphic code based on the position of the at least one positioning icon.
  • the positioning icon includes a first positioning circle and a second positioning circle having a preset relative positional relationship
  • the position of the at least one positioning icon includes a center position of the first positioning circle and a center position of the second positioning circle.
  • the identification unit comprises:
  • a first identifying subunit configured to identify a first positioning circle in the graphic code in the target image based on the preset radius range
  • a second identification subunit configured to identify, in the target image, a circle closest to the first positioning circle as a second positioning circle in the graphic code.
  • the reference icon is a reference circle
  • the second positioning circle has the same diameter as the reference circle
  • the graphic code includes a plurality of reference lines that are parallel and equally spaced, and the diameter of the reference circle and the adjacent reference line in the graphic code The distance between the two meets the preset ratio;
  • the determining unit is configured to: determine the graphic code based on the center position of the first positioning circle, the center position of the second positioning circle, the diameter of the second positioning circle in the target image, and the preset ratio value The location of the reference line.
  • the first identification module 602 is configured to: identify, according to a line recognition algorithm, a position of a reference line in the graphic code in the target image.
  • the reference icon is a reference circle
  • the position of the reference icon is a center position of the reference circle
  • the first determining module 604 is configured to:
  • the identification information of the reference line where the center of the first type of reference circle is located is determined as the first type of reference circle and Relative position information of the reference line; for the second type of reference circle whose center is not on the reference line, determine two reference lines closest to the center distance of the second type of reference circle, and the two closest to the center of the second type of reference circle.
  • the identification information of the auxiliary reference line in the middle of the reference line is used as the relative position information of the reference circle of the second type and the reference line.
  • the device provided by the embodiment of the present disclosure provides a new type of graphic code different from the barcode or the two-dimensional code by setting the graphic code to include a plurality of reference icons, thereby enriching not only the form of the graphic code but also carrying the graphic code.
  • the data information can attract the attention of the public, so that the attention of the data information carried by the graphic code can be improved.
  • the graphic code can adjust the number of the reference icons according to the amount of information to be identified, which is not only flexible and convenient, but also applicable to an area with a large amount of information.
  • An embodiment of the present disclosure further provides a device for generating a graphic code, where the graphic code generating device is configured to generate a graphic code;
  • the graphic code includes at least one reference line
  • the graphic code includes a plurality of reference icons, and each of the reference icons respectively meets a preset relative positional relationship with the reference line;
  • the graphic code carries data information, and the identification graphic code is used to obtain data information.
  • the graphic code further includes at least one positioning icon for positioning the reference line in the process of identifying the graphic code.
  • the at least one positioning icon comprises a first positioning circle and a second positioning circle.
  • the reference icon is a reference circle
  • the second positioning circle has the same diameter as the reference circle.
  • the graphic code comprises a plurality of reference lines arranged in parallel and equally spaced, wherein the distance between the diameter of the reference circle and the adjacent reference line in the graphic code satisfies a preset ratio.
  • the center of the first positioning circle is on any reference line
  • the center of the second positioning circle and the center of the reference circle are respectively on any reference line or on an auxiliary reference line between any two adjacent reference lines.
  • the device provided by the embodiment of the present disclosure provides a new type of graphic code different from the barcode or the two-dimensional code by setting the graphic code including the plurality of reference icons and the at least one reference line, thereby enriching the form of the graphic code and passing
  • the graphic code to carry the data information can attract the attention of the public, thereby improving the attention of the data information carried by the graphic code.
  • the graphic code can adjust the number of the reference icons according to the amount of information to be identified, which is not only flexible and convenient, but also applicable to an area with a large amount of information.
  • FIG. 7 is a block diagram showing the structure of a terminal 700 provided by an exemplary embodiment of the present disclosure.
  • the terminal 700 can be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), and an MP4 (Moving Picture Experts Group Audio Layer IV). 4) Player, laptop or desktop computer.
  • Terminal 700 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal, and the like.
  • the terminal 700 includes a processor 701 and a memory 702.
  • Processor 701 can include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like.
  • the processor 701 may be configured by at least one of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). achieve.
  • the processor 701 may also include a main processor and a coprocessor.
  • the main processor is a processor for processing data in an awake state, which is also called a CPU (Central Processing Unit); the coprocessor is A low-power processor for processing data in standby.
  • the processor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and rendering of the content that the display needs to display.
  • the processor 701 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
  • AI Artificial Intelligence
  • Memory 702 can include one or more computer readable storage media, which can be non-transitory. Memory 702 can also include high speed random access memory, as well as non-volatile memory, such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer readable storage medium in memory 702 is configured to store at least one instruction for execution by processor 701 to implement the graphics code provided by the method embodiments of the present application. Identification method.
  • the terminal 700 optionally further includes: a peripheral device interface 703 and at least one peripheral device.
  • the processor 701, the memory 702, and the peripheral device interface 703 can be connected by a bus or a signal line.
  • Each peripheral device can be connected to the peripheral device interface 703 via a bus, signal line or circuit board.
  • the peripheral device includes at least one of a radio frequency circuit 704, a touch display screen 705, a camera 706, an audio circuit 707, a positioning component 708, and a power source 709.
  • the peripheral device interface 703 can be used to connect at least one peripheral device associated with an I/O (Input/Output) to the processor 701 and the memory 702.
  • processor 701, memory 702, and peripheral interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one of processor 701, memory 702, and peripheral interface 703 or The two can be implemented on a separate chip or circuit board, which is not limited in this embodiment.
  • the radio frequency circuit 704 is configured to receive and transmit an RF (Radio Frequency) signal, also called an electromagnetic signal. Radio frequency circuit 704 communicates with the communication network and other communication devices via electromagnetic signals. The radio frequency circuit 704 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal.
  • the radio frequency circuit 704 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like. Radio frequency circuit 704 can communicate with other terminals via at least one wireless communication protocol.
  • the wireless communication protocol includes, but is not limited to, a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G, and 5G), a wireless local area network, and/or a WiFi (Wireless Fidelity) network.
  • the radio frequency circuit 704 may also include NFC (Near Field Communication) related circuitry, which is not limited in this application.
  • the display screen 705 is used to display a UI (User Interface).
  • the UI can include graphics, text, icons, video, and any combination thereof.
  • display 705 is a touch display
  • display 705 also has the ability to capture touch signals over the surface or surface of display 705.
  • the touch signal can be input to the processor 701 as a control signal for processing.
  • the display screen 705 can also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards.
  • the display screen 705 may be one, and the front panel of the terminal 700 is disposed; in other embodiments, the display screen 705 may be at least two, respectively disposed on different surfaces of the terminal 700 or in a folded design; In still other embodiments, display screen 705 can be a flexible display screen disposed on a curved surface or a folded surface of terminal 700. Even the display screen 705 can be set to a non-rectangular irregular pattern, that is, a profiled screen.
  • the display screen 705 can be prepared by using an LCD (Liquid Crystal Display) or an OLED (Organic Light-Emitting Diode).
  • Camera component 706 is used to capture images or video.
  • camera assembly 706 includes a front camera and a rear camera.
  • the front camera is placed on the front panel of the terminal, and the rear camera is placed on the back of the terminal.
  • the rear camera is at least two, which are respectively a main camera, a depth camera, a wide-angle camera, and a telephoto camera, so as to realize the background blur function of the main camera and the depth camera, and the main camera Combine with a wide-angle camera for panoramic shooting and VR (Virtual Reality) shooting or other integrated shooting functions.
  • camera assembly 706 can also include a flash.
  • the flash can be a monochrome temperature flash or a two-color temperature flash.
  • the two-color temperature flash is a combination of a warm flash and a cool flash that can be used for light compensation at different color temperatures.
  • the audio circuit 707 can include a microphone and a speaker.
  • the microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals for processing to the processor 701 for processing, or input to the radio frequency circuit 704 for voice communication.
  • the microphones may be multiple, and are respectively disposed at different parts of the terminal 700.
  • the microphone can also be an array microphone or an omnidirectional acquisition microphone.
  • the speaker is then used to convert electrical signals from processor 701 or radio frequency circuit 704 into sound waves.
  • the speaker can be a conventional film speaker or a piezoelectric ceramic speaker.
  • the audio circuit 707 can also include a headphone jack.
  • the location component 708 is used to locate the current geographic location of the terminal 700 to implement navigation or LBS (Location Based Service).
  • the positioning component 708 can be a positioning component based on a US-based GPS (Global Positioning System), a Chinese Beidou system, a Russian Greiner system, or an EU Galileo system.
  • Power source 709 is used to power various components in terminal 700.
  • the power source 709 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery.
  • the rechargeable battery can support wired charging or wireless charging.
  • the rechargeable battery can also be used to support fast charging technology.
  • terminal 700 also includes one or more sensors 710.
  • the one or more sensors 710 include, but are not limited to, an acceleration sensor 711, a gyro sensor 712, a pressure sensor 713, a fingerprint sensor 714, an optical sensor 715, and a proximity sensor 716.
  • the acceleration sensor 711 can detect the magnitude of the acceleration on the three coordinate axes of the coordinate system established by the terminal 700.
  • the acceleration sensor 711 can be used to detect components of gravity acceleration on three coordinate axes.
  • the processor 701 can control the touch display screen 705 to display the user interface in a landscape view or a portrait view according to the gravity acceleration signal collected by the acceleration sensor 711.
  • the acceleration sensor 711 can also be used for the acquisition of game or user motion data.
  • the gyro sensor 712 can detect the body direction and the rotation angle of the terminal 700, and the gyro sensor 712 can cooperate with the acceleration sensor 711 to collect the 3D motion of the user to the terminal 700. Based on the data collected by the gyro sensor 712, the processor 701 can implement functions such as motion sensing (such as changing the UI according to the user's tilting operation), image stabilization at the time of shooting, game control, and inertial navigation.
  • functions such as motion sensing (such as changing the UI according to the user's tilting operation), image stabilization at the time of shooting, game control, and inertial navigation.
  • the pressure sensor 713 can be disposed at a side border of the terminal 700 and/or a lower layer of the touch display screen 705.
  • the pressure sensor 713 When the pressure sensor 713 is disposed on the side frame of the terminal 700, the user's holding signal to the terminal 700 can be detected, and the processor 701 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 713.
  • the operability control on the UI interface is controlled by the processor 701 according to the user's pressure operation on the touch display screen 705.
  • the operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
  • the fingerprint sensor 714 is used to collect the fingerprint of the user.
  • the processor 701 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 714, or the fingerprint sensor 714 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 701 authorizes the user to perform related sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying and changing settings, and the like.
  • the fingerprint sensor 714 can be provided with the front, back or side of the terminal 700. When the physical button or vendor logo is provided on the terminal 700, the fingerprint sensor 714 can be integrated with the physical button or the manufacturer logo.
  • Optical sensor 715 is used to collect ambient light intensity.
  • the processor 701 can control the display brightness of the touch display 705 based on the ambient light intensity acquired by the optical sensor 715. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 705 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 705 is lowered.
  • the processor 701 can also dynamically adjust the shooting parameters of the camera assembly 706 according to the ambient light intensity collected by the optical sensor 715.
  • Proximity sensor 716 also referred to as a distance sensor, is typically disposed on the front panel of terminal 700.
  • Proximity sensor 716 is used to collect the distance between the user and the front side of terminal 700.
  • the proximity sensor 716 detects that the distance between the user and the front side of the terminal 700 is gradually decreasing
  • the touch screen 705 is controlled by the processor 701 to switch from the bright screen state to the screen state; when the proximity sensor 716 detects When the distance between the user and the front side of the terminal 700 gradually becomes larger, the processor 701 controls the touch display screen 705 to switch from the screen state to the bright screen state.
  • FIG. 7 does not constitute a limitation to the terminal 700, and may include more or less components than those illustrated, or may combine some components or adopt different component arrangements.
  • FIG. 8 is a block diagram showing the structure of a terminal 800 provided by an exemplary embodiment of the present disclosure.
  • the terminal 800 can be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), and an MP4 (Moving Picture Experts Group Audio Layer IV). Level 4) Player, laptop or desktop computer.
  • Terminal 800 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal, and the like.
  • the terminal 800 includes a processor 801 and a memory 802.
  • Processor 801 can include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like.
  • the processor 801 can be implemented by at least one of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). achieve.
  • the processor 801 may also include a main processor and a coprocessor.
  • the main processor is a processor for processing data in an awake state, which is also called a CPU (Central Processing Unit); the coprocessor is A low-power processor for processing data in standby.
  • the processor 801 can be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and rendering of the content that the display needs to display.
  • the processor 801 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
  • AI Artificial Intelligence
  • Memory 802 can include one or more computer readable storage media, which can be non-transitory. Memory 802 can also include high speed random access memory, as well as non-volatile memory, such as one or more disk storage devices, flash memory devices. In some embodiments, the non-transitory computer readable storage medium in memory 802 is configured to store at least one instruction for execution by processor 801 to implement the graphics code provided by the method embodiments of the present application. The method of generation.
  • terminal 800 also optionally includes a peripheral device interface 803 and at least one peripheral device.
  • the processor 801, the memory 802, and the peripheral device interface 803 can be connected by a bus or a signal line.
  • Each peripheral device can be connected to the peripheral device interface 803 via a bus, signal line or circuit board.
  • the peripheral device includes at least one of a radio frequency circuit 804, a touch display screen 805, a camera 806, an audio circuit 807, a positioning component 808, and a power source 809.
  • Peripheral device interface 803 can be used to connect at least one peripheral device associated with I/O (Input/Output) to processor 801 and memory 802.
  • processor 801, memory 802, and peripheral interface 803 are integrated on the same chip or circuit board; in some other embodiments, any of processor 801, memory 802, and peripheral interface 803 or The two can be implemented on a separate chip or circuit board, which is not limited in this embodiment.
  • the radio frequency circuit 804 is configured to receive and transmit an RF (Radio Frequency) signal, also called an electromagnetic signal. Radio frequency circuit 804 communicates with the communication network and other communication devices via electromagnetic signals. The radio frequency circuit 804 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 804 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like. The radio frequency circuit 804 can communicate with other terminals via at least one wireless communication protocol.
  • RF Radio Frequency
  • the wireless communication protocol includes, but is not limited to, a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G, and 5G), a wireless local area network, and/or a WiFi (Wireless Fidelity) network.
  • the radio frequency circuit 804 may also include a circuit related to NFC (Near Field Communication), which is not limited in this application.
  • the display screen 805 is used to display a UI (User Interface).
  • the UI can include graphics, text, icons, video, and any combination thereof.
  • display 805 is a touch display
  • display 805 also has the ability to capture touch signals over the surface or surface of display 805.
  • the touch signal can be input to the processor 801 for processing as a control signal.
  • the display screen 805 can also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards.
  • the display screen 805 may be one, and the front panel of the terminal 800 is disposed; in other embodiments, the display screen 805 may be at least two, respectively disposed on different surfaces of the terminal 800 or in a folded design; In still other embodiments, the display screen 805 can be a flexible display screen disposed on a curved surface or a folded surface of the terminal 800. Even the display screen 805 can be set to a non-rectangular irregular pattern, that is, a profiled screen.
  • the display screen 805 can be prepared by using an LCD (Liquid Crystal Display) or an OLED (Organic Light-Emitting Diode).
  • Camera component 806 is used to capture images or video.
  • camera assembly 806 includes a front camera and a rear camera.
  • the front camera is placed on the front panel of the terminal, and the rear camera is placed on the back of the terminal.
  • the rear camera is at least two, which are respectively a main camera, a depth camera, a wide-angle camera, and a telephoto camera, so as to realize the background blur function of the main camera and the depth camera, and the main camera Combine with a wide-angle camera for panoramic shooting and VR (Virtual Reality) shooting or other integrated shooting functions.
  • camera assembly 806 can also include a flash.
  • the flash can be a monochrome temperature flash or a two-color temperature flash.
  • a two-color temperature flash is a combination of a warm flash and a cool flash that can be used for light compensation at different color temperatures.
  • the audio circuit 807 can include a microphone and a speaker.
  • the microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals for processing to the processor 801 for processing, or input to the radio frequency circuit 804 for voice communication.
  • the microphones may be multiple, and are respectively disposed at different parts of the terminal 800.
  • the microphone can also be an array microphone or an omnidirectional acquisition microphone.
  • the speaker is then used to convert electrical signals from the processor 801 or the RF circuit 804 into sound waves.
  • the speaker can be a conventional film speaker or a piezoelectric ceramic speaker.
  • audio circuit 807 can also include a headphone jack.
  • the location component 808 is used to locate the current geographic location of the terminal 800 to implement navigation or LBS (Location Based Service).
  • the positioning component 808 can be a positioning component based on a US-based GPS (Global Positioning System), a Chinese Beidou system, a Russian Greiner system, or an EU Galileo system.
  • Power source 809 is used to power various components in terminal 800.
  • the power source 809 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery.
  • the rechargeable battery can support wired charging or wireless charging.
  • the rechargeable battery can also be used to support fast charging technology.
  • terminal 800 also includes one or more sensors 810.
  • the one or more sensors 810 include, but are not limited to, an acceleration sensor 811, a gyro sensor 812, a pressure sensor 813, a fingerprint sensor 814, an optical sensor 815, and a proximity sensor 816.
  • the acceleration sensor 811 can detect the magnitude of the acceleration on the three coordinate axes of the coordinate system established by the terminal 800.
  • the acceleration sensor 811 can be used to detect components of gravity acceleration on three coordinate axes.
  • the processor 801 can control the touch display screen 805 to display the user interface in a landscape view or a portrait view according to the gravity acceleration signal collected by the acceleration sensor 811.
  • the acceleration sensor 811 can also be used for the acquisition of game or user motion data.
  • the gyro sensor 812 can detect the body direction and the rotation angle of the terminal 800, and the gyro sensor 812 can cooperate with the acceleration sensor 811 to collect the 3D motion of the user to the terminal 800. Based on the data collected by the gyro sensor 812, the processor 801 can implement functions such as motion sensing (such as changing the UI according to the user's tilting operation), image stabilization at the time of shooting, game control, and inertial navigation.
  • functions such as motion sensing (such as changing the UI according to the user's tilting operation), image stabilization at the time of shooting, game control, and inertial navigation.
  • the pressure sensor 813 may be disposed at a side border of the terminal 800 and/or a lower layer of the touch display screen 805.
  • the pressure sensor 813 When the pressure sensor 813 is disposed on the side frame of the terminal 800, the user's holding signal to the terminal 800 can be detected, and the processor 801 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 813.
  • the operability control on the UI interface is controlled by the processor 801 according to the user's pressure on the touch display screen 805.
  • the operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
  • the fingerprint sensor 814 is configured to collect the fingerprint of the user, and the processor 801 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 814, or the fingerprint sensor 814 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 801 authorizes the user to perform related sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying and changing settings, and the like.
  • the fingerprint sensor 814 can be provided with the front, back or side of the terminal 800. When the physical button or vendor logo is provided on the terminal 800, the fingerprint sensor 814 can be integrated with the physical button or the manufacturer logo.
  • Optical sensor 815 is used to collect ambient light intensity.
  • the processor 801 can control the display brightness of the touch display screen 805 according to the ambient light intensity collected by the optical sensor 815. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 805 is raised; when the ambient light intensity is low, the display brightness of the touch display screen 805 is lowered.
  • the processor 801 can also dynamically adjust the shooting parameters of the camera assembly 806 according to the ambient light intensity collected by the optical sensor 815.
  • Proximity sensor 816 also referred to as a distance sensor, is typically disposed on the front panel of terminal 800. Proximity sensor 816 is used to capture the distance between the user and the front of terminal 800. In one embodiment, when the proximity sensor 816 detects that the distance between the user and the front side of the terminal 800 is gradually decreasing, the touch screen 805 is controlled by the processor 801 to switch from the bright screen state to the screen state; when the proximity sensor 816 detects When the distance between the user and the front side of the terminal 800 gradually becomes larger, the processor 801 controls the touch display screen 805 to switch from the state of the screen to the bright state.
  • FIG. 8 does not constitute a limitation to the terminal 800, and may include more or less components than those illustrated, or may combine some components or adopt different component arrangements.
  • the embodiment of the present disclosure further provides a computer readable storage medium, where the computer readable storage medium stores instructions for implementing the method for identifying the graphic code provided by the foregoing embodiment when executed by the processor.
  • the embodiment of the present disclosure further provides a computer readable storage medium, where the computer readable storage medium stores instructions for executing the method for generating the graphic code provided by the foregoing embodiment when executed by the processor.
  • the identification device of the graphic code provided in the above embodiment is only exemplified by the division of the above functional modules when identifying the graphic code. In actual applications, the functions may be allocated by different functional modules as needed. Upon completion, the internal structure of the device is divided into different functional modules to perform all or part of the functions described above.
  • the identification device of the graphic code provided by the above embodiment is the same as the embodiment of the method for identifying the graphic code, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • the device for generating the graphic code and the method for generating the graphic code are the same as the embodiment of the present invention. For details, refer to the method embodiment, and details are not described herein again.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • User Interface Of Digital Computer (AREA)
  • Image Analysis (AREA)

Abstract

La présente invention concerne un procédé, un dispositif, et un support de stockage lisible par ordinateur pour identifier et générer un code graphique, appartenant au domaine de codes graphiques. Le code graphique comporte une pluralité d'icônes standard. Le procédé d'identification comporte les étapes consistant à: obtenir une image cible; identifier la position d'une ligne de référence dans un code graphique dans l'image cible, et identifier les positions des icônes standard dans le code graphique; déterminer, selon la position de la ligne de référence et les positions des icônes standard, des informations de position relative de chacune des icônes standard et de la ligne de référence; et d'après les informations de position relative de chacune des icônes standard et de la ligne de référence, déterminer une chaîne codée correspondant au code graphique. Le procédé de génération comporte l'étape consistant à: générer un code graphique, le code graphique comportant au moins une ligne de référence et une pluralité d'icônes standard, les icônes standard satisfaisant respectivement des relations de position relative avec la ligne de référence, et le code graphique transportant des informations de données. La présente invention concerne un nouveau type de code graphique différent des codes à barres ou des codes bidimensionnels, de sorte que les formes de codes graphiques sont enrichies, et qu'une plus grande attention peut être attirée sur les informations transportées par les codes graphiques.
PCT/CN2018/087873 2018-04-02 2018-05-22 Procédé, dispositif, support de stockage lisible par ordinateur pour identifier et générer un code graphique WO2019192061A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810284534.XA CN108491748B (zh) 2018-04-02 2018-04-02 图形码的识别及生成方法、装置及计算机可读存储介质
CN201810284534.X 2018-04-02

Publications (1)

Publication Number Publication Date
WO2019192061A1 true WO2019192061A1 (fr) 2019-10-10

Family

ID=63317485

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/087873 WO2019192061A1 (fr) 2018-04-02 2018-05-22 Procédé, dispositif, support de stockage lisible par ordinateur pour identifier et générer un code graphique

Country Status (2)

Country Link
CN (1) CN108491748B (fr)
WO (1) WO2019192061A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230289547A1 (en) * 2020-02-21 2023-09-14 Think4Ir (Pty) Ltd A system and method for the imparting of optical digital cpus and rom's to diverse physical objects

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368872B (zh) * 2016-05-13 2019-04-23 腾讯科技(深圳)有限公司 一种生成条形码图像的方法和装置
CN110705329B (zh) * 2019-09-30 2021-09-14 联想(北京)有限公司 一种处理方法、装置及电子设备
CN111797643B (zh) * 2020-07-08 2022-04-26 北京京东振世信息技术有限公司 用于识别条形码的方法和终端
CN114548343A (zh) * 2020-11-27 2022-05-27 海能达通信股份有限公司 图形码显示方法、终端及计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102047272A (zh) * 2008-04-02 2011-05-04 交叉媒体技术有限责任两合公司 用于存储和读取数据的方法
CN106295441A (zh) * 2016-08-03 2017-01-04 明基电通有限公司 一种动态阈值数字化条形码影像的系统及方法
CN106529635A (zh) * 2016-10-18 2017-03-22 网易(杭州)网络有限公司 一种编码图案的生成、识别方法及装置
WO2017144582A1 (fr) * 2016-02-23 2017-08-31 Nestec Sa Code et contenant d'un système pour préparer une boisson ou un produit alimentaire

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102047272A (zh) * 2008-04-02 2011-05-04 交叉媒体技术有限责任两合公司 用于存储和读取数据的方法
WO2017144582A1 (fr) * 2016-02-23 2017-08-31 Nestec Sa Code et contenant d'un système pour préparer une boisson ou un produit alimentaire
CN106295441A (zh) * 2016-08-03 2017-01-04 明基电通有限公司 一种动态阈值数字化条形码影像的系统及方法
CN106529635A (zh) * 2016-10-18 2017-03-22 网易(杭州)网络有限公司 一种编码图案的生成、识别方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230289547A1 (en) * 2020-02-21 2023-09-14 Think4Ir (Pty) Ltd A system and method for the imparting of optical digital cpus and rom's to diverse physical objects

Also Published As

Publication number Publication date
CN108491748A (zh) 2018-09-04
CN108491748B (zh) 2020-01-10

Similar Documents

Publication Publication Date Title
US11205282B2 (en) Relocalization method and apparatus in camera pose tracking process and storage medium
CN108710525B (zh) 虚拟场景中的地图展示方法、装置、设备及存储介质
WO2019141100A1 (fr) Procédé et dispositif pour afficher un objet supplémentaire, dispositif informatique et support de stockage
WO2019192061A1 (fr) Procédé, dispositif, support de stockage lisible par ordinateur pour identifier et générer un code graphique
CN112181572B (zh) 互动特效展示方法、装置、终端及存储介质
US20200104320A1 (en) Method, apparatus and computer device for searching audio, and storage medium
CN109862412B (zh) 合拍视频的方法、装置及存储介质
CN109922356B (zh) 视频推荐方法、装置和计算机可读存储介质
CN107803030B (zh) 用于虚拟地图上资源据点的刷新方法及装置
CN111753784A (zh) 视频的特效处理方法、装置、终端及存储介质
WO2022134632A1 (fr) Procédé et appareil de traitement de travail
CN110321126B (zh) 生成页面代码的方法和装置
CN109886208B (zh) 物体检测的方法、装置、计算机设备及存储介质
CN110933468A (zh) 播放方法、装置、电子设备及介质
CN110121094A (zh) 视频合拍模板的显示方法、装置、设备及存储介质
CN111754386B (zh) 图像区域屏蔽方法、装置、设备及存储介质
CN109166150A (zh) 获取位姿的方法、装置存储介质
CN112150560A (zh) 确定消失点的方法、装置及计算机存储介质
CN112135191A (zh) 视频编辑方法、装置、终端及存储介质
CN110853124B (zh) 生成gif动态图的方法、装置、电子设备及介质
CN109189290B (zh) 点击区域识别方法、装置和计算机可读存储介质
CN112989198B (zh) 推送内容的确定方法、装置、设备及计算机可读存储介质
WO2018192455A1 (fr) Procédé et appareil pour générer des sous-titres
CN109388732B (zh) 音乐地图的生成和显示方法、装置及存储介质
CN112950535A (zh) 视频处理方法、装置、电子设备及存储介质

Legal Events

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

Ref document number: 18913952

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 04/02/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18913952

Country of ref document: EP

Kind code of ref document: A1