WO2019037697A1 - 一种识别码生成及识别的方法及装置 - Google Patents
一种识别码生成及识别的方法及装置 Download PDFInfo
- Publication number
- WO2019037697A1 WO2019037697A1 PCT/CN2018/101444 CN2018101444W WO2019037697A1 WO 2019037697 A1 WO2019037697 A1 WO 2019037697A1 CN 2018101444 W CN2018101444 W CN 2018101444W WO 2019037697 A1 WO2019037697 A1 WO 2019037697A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- circle
- identification code
- concentric circles
- determining
- center
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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/06009—Record 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/06018—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking one-dimensional coding
- G06K19/06028—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking one-dimensional coding using bar codes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods 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/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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/06009—Record 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/06037—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
Definitions
- the present application relates to the field of information technology, and in particular, to a method and an apparatus for generating and identifying an identification code.
- mainstream identification codes are usually barcodes and two-dimensional codes.
- the two-dimensional code carries a large amount of data, can write pictures, audio, video and other information, and has the advantages of higher recognition success rate, so that the application range of the two-dimensional code is wider, and gradually becomes a user (for example, an individual, an enterprise, etc.) Etc.)
- the primary identification code used.
- the basic composition of a two-dimensional code includes: a Position Detection Pattern (also referred to as a positioning pile), functional data, and a data code.
- the positioning pile is used to determine a data storage area of the two-dimensional code (ie, functional data, an area of the data code) when identifying the two-dimensional code, and the functional data is used to provide version information of the two-dimensional code, so that the identification can be determined
- the data code is the encoding of the stored content (for example, after converting the image into a binary code, the padding is represented by 1, the unfilled block is represented by 0, and the image content is converted into the data code and the two-dimensional code is written. Medium), as shown in Figure 1.
- the existing two-dimensional code generation technology has multiple coding modes, and the above description is merely illustrative.
- the data code may further include an error correction code for fault tolerance, and the error correction code may assist in identifying the content corresponding to the complete data code when the two-dimensional code is damaged.
- the present application provides a new process of generating and identifying an identification code.
- the embodiments of the present disclosure provide a method and an apparatus for generating and identifying an identification code, which are used to solve the problem that the identification code generated by the prior art is simple in form and the user experience is not good.
- a method for generating an identification code comprising:
- N-ary character corresponding to the encoded content on the plurality of concentric circles according to the position of the starting graphic to obtain an identification code, wherein adjacent and identical characters in the N-ary character correspond to The coded is a curved line segment, and the code corresponding to the character different from the adjacent characters in the N-ary character is a dot, and the code corresponding to the different characters in the N-ary character is different, and N is not less than two. A positive integer.
- a method for identifying an identification code comprising:
- the identification code includes encoding on a plurality of concentric circles, and the code corresponding to adjacent and identical characters in the encoded content forms a curved line segment, and the encoded content is The code corresponding to the character different from the adjacent character is a dot, and the color of the code corresponding to the different characters in the encoded content is different.
- An apparatus for generating an identification code comprising:
- a first determining module that determines a center of the circle
- a second determining module determining a plurality of concentric circles according to the center of the circle, and determining, according to the center of the circle and the specified radius, a plurality of position detecting patterns having a distance from the center of the circle as the radius; wherein the plurality of positions The position detection pattern is not exactly the same;
- a third determining module determining a starting graphic from each position detecting pattern
- Generating a module according to the position of the starting graphic, encoding N-ary characters corresponding to the encoded content on the plurality of concentric circles to obtain an identification code, wherein the N-ary characters are adjacent and identical
- the code corresponding to the character is formed into a curved line segment, and the code corresponding to the character different from the adjacent character in the N-ary character is a dot, and the color of the code corresponding to the different characters in the N-ary character is different, and N is not A positive integer less than two.
- An apparatus for identifying an identification code comprising:
- Acquisition module collecting images
- a first determining module determining, from the image, each position detecting pattern in the identification code
- a second determining module determining a center of the identification code according to each position detecting pattern
- a third determining module determining a starting graphic from each position detecting pattern according to the center of the circle and each position detecting pattern
- the identification module identifies the identification code according to the location of the start graphic, where the identification code includes a code on a plurality of concentric circles, and the code corresponding to adjacent and identical characters in the encoded content forms a curved line segment.
- the code corresponding to the character different from the adjacent characters in the encoded content is a dot, and the color of the code corresponding to the different characters in the encoded content is different.
- a server comprising: one or more processors and a memory, the memory storing a program, and being configured to perform the following steps by one or more processors:
- N-ary character corresponding to the encoded content on the plurality of concentric circles according to the position of the starting graphic to obtain an identification code, wherein adjacent and identical characters in the N-ary character correspond to The coded is a curved line segment, and the code corresponding to the character different from the adjacent characters in the N-ary character is a dot, and the code corresponding to the different characters in the N-ary character is different, and N is not less than two. A positive integer.
- a terminal comprising: one or more processors and a memory, the memory storing a program, and being configured to perform the following steps by one or more processors:
- the identification code includes encoding on a plurality of concentric circles, and the code corresponding to adjacent and identical characters in the encoded content forms a curved line segment, and the encoded content is The code corresponding to the character different from the adjacent character is a dot, and the color of the code corresponding to the different characters in the encoded content is different.
- the identification code when the identification code is generated, starting from the starting graphics in each position detection pattern, on some concentric circles, the N-ary characters corresponding to the encoded content are encoded, and are generated on the concentric arc.
- the identification code formed by a plurality of curved line segments and dots makes the form of the identification code richer, so that the user's user experience when using the identification code (for example, identifying and displaying the identification code) is better.
- 1 is a schematic structural view of a conventional two-dimensional code
- FIG. 3 is a schematic diagram of determining a center of the center according to an embodiment of the present specification
- 4a is a schematic diagram of a position detection pattern of a conventional two-dimensional code
- 4b is a schematic diagram of a position detection pattern provided by an embodiment of the present specification.
- 4c is a schematic diagram of different position detection patterns that are not identical in the embodiment of the present specification.
- Figure 5a is a schematic diagram of determining a plurality of concentric circles provided by an embodiment of the present specification
- Figure 5b is a schematic diagram of determining concentric circles of five different marks provided by an embodiment of the present specification.
- 6a-6d are schematic diagrams of processes for determining each location detection pattern according to an embodiment of the present disclosure.
- 7a and 7b are schematic diagrams of the coding obtained by the embodiment of the present specification.
- Figure 7c is a schematic diagram of polar angular spacing provided by an embodiment of the present specification.
- FIG. 8a is a schematic diagram of dividing each concentric circle into a plurality of sets of concentric arcs according to an embodiment of the present disclosure
- 8b and 8c are schematic diagrams of writing directions on a set of concentric arcs provided by an embodiment of the present specification
- Figure 8d is a schematic diagram of the writing direction of another method provided by the embodiment of the present specification.
- FIG. 9 is a schematic diagram of a writing start point and a writing end point provided by an embodiment of the present specification.
- FIG. 10 is a schematic diagram of an identification code obtained after being written according to an embodiment of the present disclosure.
- FIG. 11 is a process for identifying an identification code according to an embodiment of the present disclosure.
- FIG. 12 is a schematic structural diagram of an identification code generating apparatus according to an embodiment of the present disclosure.
- FIG. 13 is a schematic structural diagram of an identification code identification apparatus according to an embodiment of the present disclosure.
- FIG. 14 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
- FIG. 15 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
- the identifier generation party (usually a merchant, a company, an individual, etc.) generates a rule according to an existing identification code (for example, PDF417, QR Code, Code 49, Code 16K, Code are common in the two-dimensional code).
- an existing identification code for example, PDF417, QR Code, Code 49, Code 16K, Code are common in the two-dimensional code.
- One rule, etc. encodes the content that needs to be provided, and obtains the identification code.
- the content is provided by providing the identification code to an identification object (usually a user).
- the normal identification code may also provide non-encoded content, which may be used to prompt the user for the purpose of the identification code, the encoded content, and the like, so that the user roughly determines the content included in the identification code or the type of the content included.
- the non-encoded content may be added to the user in the identification code in the form of a pattern, a character, or a text.
- the non-encoded content is a trademark of the brand, so that when the user sees the identification code, the user can roughly determine which brand information the content provided by the identification code is, or the non-encoded content is the identification code.
- the logo is generally used to establish a user's awareness of the brand, and the owner of the logo (which can be regarded as the content provider of the identification code in the present scheme) improves the exposure of the logo by means of advertisement, etc., thereby enabling the user to Gradually build awareness of the logo. It allows users to visually identify which merchants, businesses or individuals are behind the logo when they see the logo of different brands.
- Adding a logo to the identification code may prompt the user that the content provided by the identification code is the information of the brand corresponding to the logo, and may attract the user who is interested in the brand to identify the identification code.
- the non-encoded content occupies a small area in the identification code, so that the non-encoded content
- the information that can be provided is more limited.
- the two-dimensional code generated by the prior art although a logo can be added to the two-dimensional code, the area occupied by the logo in the two-dimensional code is usually small, and most of the areas are mainly based on the "code" of the two-dimensional code.
- the logo is not obvious.
- the size of the QR code is limited (for example, the printed area is 1 square centimeter of the QR code)
- the resolution of the logo display is also affected, which makes it difficult for the user to recognize the QR code.
- the identifier generated by the prior art can add a logo, because the logo is not obvious and unclear, the user has difficulty in identifying the logo in the identifier. From the user's point of view, there is almost no difference in the different identification codes. However, in the context of the gradual normalization of the use of the identification code, the identification code is used in a large amount, but the effect of the corresponding brand recognition is not improved, which is a waste of resources for the content provider of the identification code.
- the identification code generated by the existing identification code technology is difficult to enhance the brand recognition effect, resulting in a large waste of resources.
- the identification code form is relatively simple and the user experience is not good.
- each embodiment of the present specification provides a method and an apparatus for generating and identifying an identification code, which solves the problem that the identification code generated by the prior art has a single form and a poor user experience.
- FIG. 2 is a process of generating an identifier according to an embodiment of the present invention, which may specifically include the following steps:
- the device that can be generated by the identifier such as a server, a computer, a mobile terminal, etc., the server is taken as an example below
- the identification code is written as needed.
- the content generate an identification code.
- the server may be a single device or a system composed of multiple devices, such as a distributed system, which is not limited in this specification.
- the server may first determine the center of the circle as the center of the identification code (as shown in FIG. 3), and generate the identification code by subsequent operations based on the center of the circle.
- FIG. 3 is a schematic diagram of a center of a circle provided by an embodiment of the present specification. Wherein, the point represents the center of the circle, and the dotted circle indicates that the point is the center of the circle, which is used to assist in FIG. 3 to indicate that the point is the center of the circle.
- S102 Determine a plurality of concentric circles according to the center of the circle, and determine, according to the center of the circle and the specified radius, a plurality of position detecting patterns whose distance from the center of the circle is the radius.
- the server needs to first determine the position detection pattern of the identification code to be generated.
- the server may determine, according to the center of the circle determined in step S100, and the specified radius, a plurality of position detection patterns whose distance from the center of the circle is the specified radius.
- the server may also determine a plurality of concentric circles according to the center of the circle, and the determined concentric circles may be used for determining the position of the encoding when the encoding is performed subsequently.
- the position detection patterns determined by the server may not be identical, and the shape of each position detection pattern may include: equidistant concentric circles and regular hexagons. Moreover, the position detection pattern is different from the existing two-dimensional code as a concentric square, and the ratio of the heterochromatic pixels in the vertical direction and the horizontal direction is 1:1:3:1:1, as shown in FIG. 4a, the present specification
- the position detection pattern with the isometric concentric circles in the shape is in any diameter direction, and the ratio of the heterochromatic pixels is 1:1:1:1:1, that is to say, the thickness of each equidistant concentric circle is the same, and the thickness of the line is Can be preset width, as shown in Figure 4b.
- the number of position detecting patterns having the shape of equidistant concentric circles may be three, and the number of position detecting patterns having a regular hexagonal shape may be one. Then, at this time, the position detecting pattern having the shape of an equidistant concentric circle is used for initially determining the position of the identification code when identifying the identification code (or determining the position of the identification code mainly by each position detecting pattern having an isometric concentric circle shape) ).
- the position detecting pattern having a regular hexagon shape as a shaped position detecting pattern, can be used for assisting positioning when the identification code is recognized.
- the number of each position detecting pattern can also be set as needed, for example, four position detecting patterns of equidistant concentric circles, two position detecting patterns of a regular hexagon shape, and the like.
- the position detection pattern having the shape of a regular hexagon can also be used to assist in determining the distortion of the identification code, the inclination, etc. in the identification process of the identification code.
- the side length of the position detecting pattern having a regular hexagonal shape can be set as needed, which is not limited in this specification.
- the diameter of the circumcircle of the position detecting pattern having a regular hexagonal shape is equal to the maximum diameter of the position detecting pattern having an equidistant concentric circle, as shown in Fig. 4c.
- the server can also generate position detection patterns of different shapes, for example, squares, equilateral triangles, concentric rectangles or symbols with symbols, etc., which shape is generated in this specification.
- position detection image of which pattern is not limited, and can be set as needed.
- the server can also determine a number of concentric circles according to the center of the circle, as shown in Figure 5a.
- the position detection pattern is a pattern actually generated by the server, and the plurality of concentric circles are virtual, and are used only for assisting subsequent encoding in the identification code generation process, and generating an identification code. These concentric circles are not displayed when the identification code is displayed.
- the server determines the steps of each location detection pattern, and there may be a logical sequence between the steps of determining a concentric circle for subsequent auxiliary coding by the server, or there may be no logical sequence.
- the server may first determine each position detection pattern, and then determine a number of concentric circles according to each position detection pattern, or the server may first determine a plurality of concentric circles, and then according to at least one of the concentric circles. , determine the position detection pattern.
- the server may first determine a plurality of concentric circles according to the center of the circle.
- the concentric circles having the radius of the specified radius may be selected from the determined concentric circles, and then several position detection patterns are determined on the selected concentric circles.
- the server may first determine a plurality of concentric circles according to the center of the circle, select any concentric circle from the determined concentric circles, and specify the radius of the selected concentric circle.
- the radius is determined by determining a number of position detection patterns on the selected concentric circles.
- the radius of the concentric circle (ie, the specified radius) where each position detection pattern is located is represented by CodeR for convenience of description.
- the server may first determine a plurality of position detection patterns according to the center of the circle and the specified radius.
- the first radius may be established with the specified radius.
- Concentric circles by increasing the radius and/or reducing the preset step size, obtain a number of radii, and then determine a number of concentric circles according to the center of the circle and the obtained radii.
- the server may determine a preset number of concentric circles, the preset number including: at least one of 3, 4, and 5.
- the preset step size can be set as needed. For example, the preset step size is twice the thickness of the line of the equidistant concentric circles described above, as shown in FIG. 5b.
- the concentric circles identified by the specified radius are labeled as 0 rings, and the predetermined step size is reduced at the specified radius, respectively, to obtain concentric circles labeled -1 ring and -2 ring, respectively.
- a preset step size is added to the specified radius to obtain concentric circles labeled 1 ring and 2 rings, respectively.
- the center of the position detecting pattern of the equidistant concentric circles is located on the 0-ring, and the equidistant concentric circles are tangent to the concentric circles of the -1 ring and the 1 ring.
- each position detection pattern may be determined at a specified polar angle on a concentric circle determined according to the center of the circle and the specified radius.
- the number of position detecting patterns in which three concentric circles, the shape is equidistant concentric circles are three, and one position detecting pattern having a regular hexagonal shape is determined as one.
- the server can establish a polar coordinate system with the center determined in step S100 as the origin, as shown in FIG. 6a. Thereafter, a circle can be determined based on the center of the circle and the specified radius, as shown in Figure 6b, wherein the specified radius of the determined circle is CodeR, labeled 0 loop. (At the same time, the server may also determine that the other two concentric circles are labeled as -1 ring and 1 ring, respectively, as shown in Figure 6c), and then, according to a specified number of polar angles (since the 4 position detection pattern is taken as an example, The number of specified polar angles shown is also four), and several equally spaced position detection patterns are determined on the determined circle, as shown in Figure 6d.
- the specified polar angles are 45 degrees, 135 degrees, 225 degrees, and 315 degrees, respectively.
- the above-described position detection patterns having the same interval indicate that the positional detection patterns of the respective position detection patterns are equal to each other on the circle shown in Fig. 6b, and each is 90 degrees.
- S104 Determine a starting graphic from each position detecting pattern.
- the server may further determine a starting pattern in each position detection pattern so as to be subsequently determined according to the position of the starting pattern on the determined concentric circles. Encode.
- the server may determine the start pattern from each position detection pattern according to the polar angle corresponding to each position detection pattern.
- the server can arbitrarily select a specified polar angle to determine the starting graphic, or select a specified polar angle from each specified polar angle as needed to determine the starting graphic, which is not limited in this specification, as long as During the identification process of the identification code, the device of the identification side can determine which one of the position detection patterns is the starting graphic.
- the server can generally uniformly generate the location of the starting graphic of the identification code.
- the server may uniformly determine the position detection pattern having a corresponding polar angle of 135 degrees in the polar coordinate system shown in FIG. 6d as the starting pattern.
- the following is also described by taking the position detection pattern of 135 degrees as the starting graphic as an example.
- S106 Encode the N-ary character corresponding to the coded content on the plurality of concentric circles according to the position of the start graphic to obtain an identification code.
- the server determines each position detection pattern and the start pattern, the coding area of the identification code (ie, the area where the coding is performed) can be determined, and the code is obtained to obtain the identification code.
- the server may encode the N-ary characters corresponding to the encoded content on the concentric circles in a counterclockwise or clockwise order to obtain the identification. code.
- the code corresponding to the adjacent and identical characters in the N-ary character forms a curved line segment
- the code corresponding to the character different from the adjacent character in the N-ary character is a point
- the different characters in the N-ary character correspond to
- the coded color is different
- N is a positive integer not less than two.
- the point may be a circular point
- the curved line segment may also be a rounded circular arc segment having a radius equal to the width of the circular arc segment and equal to a position detection pattern having an equidistant concentric circle shape. Line thickness.
- this specification does not limit this.
- the server can convert the picture into a binary character by using the same method as the prior art, and if it is “01001111...”, Coding on the concentric circles yields curved segments and points as shown in Figure 7a.
- the color corresponding to the character “0” is white
- the color corresponding to the character “1” is black as an example.
- a black outline is added for the code corresponding to the character "0”
- a white outline is added to the curved line segment to display the code corresponding to the character "1”.
- the actual coding can be as shown in Fig. 7b, that is, the black outline and the white outline shown in Fig. 7a are not displayed when actually displayed.
- the server when encoding the N-ary character corresponding to the content to be encoded, the server may sequentially correspond to the content to be encoded for each concentric circle according to a preset polar angle interval (hereinafter denoted by ⁇ ).
- the N-ary characters are encoded such that the spacing between the two codes adjacent on any concentric arc of the concentric circle is the same, as shown in Figure 7c.
- Figure 7c is a partial enlarged view of the code in the identification code, wherein it can be seen that on the concentric circles identified as 0 rings, the adjacent two codes are equally spaced in the arc.
- the maximum number of codes that can be written is 128, and the sum of the positions of the detected patterns for each position is 128.
- the polar angle interval of 2.812 degrees can be used to sequentially enter the N corresponding to the content to be encoded.
- the number of pole angles corresponding to the polar angle interval can be set as needed, which is not limited in this specification.
- the server may divide each concentric circle into a plurality of sets of concentric arcs according to the position of each position detection pattern and the center determined in step S100, as shown in FIG. 8a. .
- the concentric circles are divided into four sets of concentric arcs.
- Each set of concentric arcs consists of arcs of multiple concentric circles of different radii within the same polar angle range. Among them, the areas where each set of concentric arcs are marked as A to D areas.
- the server may sequentially, for each group of concentric arcs, in a counterclockwise or clockwise order according to the position of the starting graphic determined in step S104, on the concentric arc, the N-ary corresponding to the content to be encoded. Characters are encoded. Also, when the code is full on the currently written concentric arc, the encoding continues on the next set of concentric arcs. That is to say, each group of concentric arcs is written as a unit. When one writing unit is full, the next writing unit is selected for writing.
- the server when writing a set of concentric arcs, can be written on the concentric arc corresponding to the 0 ring in the concentric arc of the group, and then written on the -1 ring, and finally in the 1 ring.
- Write on as shown in Figure 8b.
- the solid arrow indicates the writing direction.
- the writing direction is counterclockwise.
- the dotted arrow connects the ending point after the concentric arc is filled and the starting point of the next concentric arc when the writing is continued.
- the server can be programmed sequentially on the 1,-1, 0 ring or other order on the set of concentric arcs.
- write different writing directions on different concentric arcs as shown in Figure 8c, the server writes counterclockwise from the -1 ring, clockwise from the 0 ring, and writes counterclockwise on the 1 ring. .
- the server may first select a specified concentric circle from a plurality of concentric circles, and encode the N-ary character corresponding to the encoded content on the selected concentric circle, and When the selected concentric circles are full, according to the rules of the preset concentric circle selection, the unconcentric circles that are not encoded are selected to continue coding, as shown in FIG. 8d, and the numerical numbers 1 to 12 indicate the order of writing.
- the specified concentric circle may be a concentric circle of 0 ring, or the server selects any concentric circle to start writing, then the concentric circle selected at this time is the specified concentric circle, which is not limited in this specification.
- the server does not divide each concentric circle into multiple sets of concentric arcs, but writes each concentric circle as a unit written by one concentric circle, and then selects the next concentric circle to write. Moreover, in different concentric circles, and on different arcs of the same concentric circle, the server can use different writing directions, which is not limited in this specification.
- first and second methods may also be used in combination.
- the above two methods provided in this specification are only schematic, and the server only needs to correspond to the content to be encoded on each concentric circle.
- the N-ary character can be encoded, and the specific method is not limited in this specification. For example, first write on the arc of a concentric circle with a polar angle of 0 to 90 degrees, and then write it on an arc of concentric circles of 90 to 180 degrees, 180 to 270 degrees, and 270 to 360 degrees, and so on.
- the content to be encoded includes: functional data and data code.
- the functional data can be written to a specified location when being written, and the specified location can be set as needed. This specification does not limit this.
- the server In addition, in order to prevent the N-ary characters corresponding to the content to be encoded from being written too close to the position detection patterns, it is difficult to identify the position detection patterns and it is difficult to identify the contents of the identification code.
- the server When the server is writing on each concentric arc, it can be programmed on a concentric arc that is a distance from each location.
- ⁇ ' is the specified polar angle, such as 45 degrees, 135 degrees, 225 degrees, and 315 degrees.
- R ⁇ ' ⁇ ⁇ ⁇ ⁇ .
- the identification code may further include: non-encoded content in an area surrounded by concentric circles having the smallest radius among the plurality of concentric circles, wherein the non-encoded content includes: characters and symbols At least one of the patterns.
- the non-encoded content may be a logo, a user avatar, etc., for enhancing the brand recognition ability of the identification code. As shown in Figure 10. Since the CodeR can be set as needed, when the CodeR is larger, the area where the identifier center is used to fill the non-encoded content is larger, and the user is more likely to recognize the non-encoded content contained in the identifier.
- the server may generate a new identification code different from the pattern of the identification code generated by the prior art, and the identification code generated by the present specification is rich in the coding form of the arc line segment and the origin, and may be Users bring a better user experience.
- the colors corresponding to different characters in the N-ary characters corresponding to the content to be encoded are different, and the present specification does not limit the colors corresponding to different characters.
- the type of the color can be the same as the value of N.
- binary can correspond to two different colors
- decimal can correspond to different colors of 10.
- there are two different colors for binary not limited to black and white, black and yellow, white and red, and the like.
- the embodiment of the present specification further provides an identification process of the identification code, as shown in FIG. 1 to FIG. 10, the embodiment of the present specification further provides an identification process of the identification code, as shown in FIG.
- FIG. 11 is a process for identifying an identification code according to an embodiment of the present disclosure, which specifically includes the following steps:
- an image may be collected by the terminal, and the terminal may be: a mobile terminal, a tablet computer, a personal computer connected to the camera, and the like, which is not limited in this specification. As long as the terminal can capture images.
- the terminal can obtain the identification method of the identification code in advance.
- S202 Determine, from the image, each position detection pattern in the identification code.
- the terminal may determine each position detection pattern corresponding to the identification code from the image, so as to further determine the position of the identification code in the image according to each position detection pattern (specifically It is to determine the position of the coded area of the identification code in the image), thereby acquiring the content in the identification code.
- the terminal may determine a number of equidistant concentric circles suspected to be position detection patterns from the acquired images by using a method similar to the prior art.
- the method for determining the position detection pattern is different from the prior art (that is, traversing each pixel in the image, determining the ratio of the vertical direction and the horizontally-colored pixel points in the horizontal direction are 1:1:3:1:1)
- the position detection pattern includes equidistant concentric circles, so the terminal can determine a plurality of equidistant concentric circles by a ratio of different color pixels of 1:1:1:1:1.
- the terminal can also determine the position detection pattern from a plurality of equidistant concentric circles suspected to be position detection patterns by the same method as in the prior art.
- the unit length difference of the position detection pattern is the radius difference of the equidistant concentric circles, and the angle and length deviation of the position detection pattern are the same as the prior art.
- the position detecting pattern may further include: a regular hexagon for assisting positioning, so after determining a plurality of equidistant concentric circles, the terminal may further detect a graphic according to the position of the identification code. Quantity, determine several groups of equidistant concentric circles. The terminal may determine the number of position detection patterns of the identification code according to the identification method for acquiring the identification code in advance (that is, the number of position detection patterns including the identification code in the identification method).
- the concentric circle and the regular hexagon are the position detection patterns of the identification code. If not, it is determined that the set of equidistant concentric circles does not correspond to the position detection patterns of the identification code, that is, the group of equidistant concentric circles is not Position detection graphics.
- the terminal determines that four equidistant concentric circles (labeled a to d respectively) meet the condition of the position detection pattern by determining the position detection pattern, and further assumes that the number of position detection patterns of the identification code is three. Then the terminal can establish the packet shown in Table 1.
- the terminal determines a circle for each set of equidistant concentric circles with the position of the set of equidistant concentric circles in the image.
- a polar coordinate system is established based on a number of specified polar angles (eg, 45 degrees, 135 degrees, 225 degrees, 315 degrees) and the position of the set of equidistant concentric circles on the circle. It is determined whether there is a regular hexagon on the circle corresponding to the first position corresponding to any specified polar angle.
- the terminal may use an existing polygon area filling algorithm to determine whether a first hexagon exists in the first position, or may use other algorithms to determine whether a first hexagon exists in the first position, which is not limited in this specification. For example, if it is determined that there are equidistant concentric circles on the 45 degrees, 135 degrees, and 225 degrees of the circle, then 315 degrees of the circle is the first position.
- the distortion and tilt of the image may be corrected by the same method as in the prior art, and the specific method is not described herein.
- the side of the regular hexagon is a straight line, it can be used for reference when performing correction.
- S206 Determine a starting pattern from each position detecting pattern according to the center of the circle and each position detecting pattern.
- the terminal may determine the starting graphics according to the identifier identification method provided by the server in advance.
- the terminal may determine the starting pattern based on the polar coordinate system established in step S204.
- the terminal may determine, according to the determined position detection patterns and the center of the circle, each coding region of the identification code in the image, according to the position of the start graphic, in a clockwise or counterclockwise order, The encoded content corresponding to the identification code is obtained from each of the determined coding regions.
- the terminal may first obtain the content corresponding to the functional data in the encoded content of the identification code. Therefore, in the present specification, the terminal may first determine the second location from each of the coding regions according to the location of the start graphics, and then identify the functional data included in the code from the second location, and further according to the identified function. The sex data is obtained from the determined coding regions, and the coded content corresponding to the identification code is obtained.
- the second location is the designated location where the functional data is written when the identification code is generated in step S106 in the identification code generation process provided in FIG. 2 above.
- the versions of the plurality of identification codes are determined according to the manner in which the different identification codes are generated, and the version of the identification code is included in the functional data. Then, after the terminal recognizes the functional data, the identification method corresponding to the identification code may be determined according to the version of the identification code included in the functional data, and the identification manner is determined, and the identification code is identified.
- the terminal may also determine the version of the identification code by identifying the function performance data in the identification code, and determine the identification method according to the version of the identification code.
- the terminal may first detect the graphic and the center of the circle according to the determined position. Dividing each concentric circle into a plurality of sets of concentric arcs, and then identifying the identification code on the set of concentric arcs in turn in a clockwise or counterclockwise order according to the position of the starting figure. .
- the rules according to the preset concentric circle are sequentially selected from several concentric circles. Select concentric circles to identify the identification code on the selected concentric circles in a clockwise or counterclockwise order.
- the method used in identifying the identification code may be the same as the prior art, for example, grading the identification code information pixel, removing the noise of the identification code information pixel, binarizing the identification code information pixel, etc. Not limited.
- the information pixel is the pixel corresponding to the code in the identification code.
- the execution bodies of the steps of the method provided by the embodiment of the present application may all be the same device, or the method may also be performed by different devices.
- the execution body of step S102 and step S104 may be device 1
- the execution body of step S106 and step S108 may be device 2; for example, the execution bodies of steps S102 and S106 may be device 2, step S104 and step S108.
- the execution subject can be device 1; and so on.
- the embodiment of the present specification further provides another identification code generation device, as shown in FIG. 1
- FIG. 12 is a schematic structural diagram of an identification code generating apparatus according to an embodiment of the present disclosure, including:
- a first determining module 300 determining a center of the circle
- a second determining module 302 determining a plurality of concentric circles according to the center of the circle, and determining, according to the center of the circle and the specified radius, a plurality of position detecting patterns having a distance from the center of the circle as the radius; wherein the plurality of positions Position detection patterns are not identical;
- the third determining module 304 determines a starting graphic from each position detecting pattern
- a generating module 306 according to the position of the starting graphic, encoding N-ary characters corresponding to the encoded content on the plurality of concentric circles to obtain an identification code, wherein the N-ary characters are adjacent to each other
- the code corresponding to the same character forms a curved line segment, and the code corresponding to the character different from the adjacent character in the N-ary character is a dot, and the code corresponding to the different characters in the N-ary character is different, N is A positive integer not less than two.
- a second determining module 302 selecting concentric circles having a radius of the specified radius, determining a plurality of position detecting patterns on the selected concentric circles; or selecting any concentric circles from the plurality of concentric circles, in the selected Several position detection patterns are determined on the concentric circles.
- the second determining module 302 obtains a plurality of radii by increasing and/or reducing the preset step size, and determining a plurality of concentric circles according to the center of the circle and the obtained plurality of radii.
- the third determining module 304 establishes a polar coordinate system with the center of the circle as an origin, determines a circle according to the center of the circle and the specified radius, and determines a plurality of intervals on the determined circle according to the plurality of specified polar angles The position detection pattern.
- the third determining module 304 determines the starting graphic from each position detecting pattern according to the polar angle corresponding to each position detecting pattern.
- the plurality of specified polar angles including: 45 degrees, 135 degrees, 225 degrees, 315 degrees;
- the third determining module 304 determines the corresponding position detection pattern having a polar angle of 135 degrees as the starting graphic.
- the position detecting pattern includes: an equidistant concentric circle and a regular hexagon, wherein a line thickness of each concentric circle in the equidistant concentric circles is a preset width, and two adjacent concentric circles in the equidistant concentric circles The color of the round lines is different.
- the generating module 306 encodes, according to the position of the starting graphic, the N-ary characters corresponding to the encoded content in the counterclockwise or clockwise direction on the plurality of concentric circles.
- the generating module 306 divides each concentric circle into a plurality of sets of concentric arcs according to the position of each position detecting pattern and the center of the circle, and sequentially for each group according to the position of the starting graphic in a counterclockwise or clockwise order.
- Concentric arcs, on the concentric arc of the group the N-ary characters corresponding to the coded content are encoded.
- the code is full on the concentric arc of the group, the coding continues on the next set of concentric arcs.
- the generating module 306 selects a concentric circle from a plurality of concentric circles according to a preset rule of concentric circle selection, and encodes the N-ary character corresponding to the coded content on the selected concentric circle, and selects the concentric circle When the full is full, continue to encode the concentric circles that are not encoded according to the rules selected by the concentric circles.
- the content to be encoded includes: functional data, and the generating module 306 encodes the N-ary character corresponding to the functional data to a specified location.
- a generating module 306 on the plurality of concentric circles, encoding the N-ary characters corresponding to the encoded content from the polar angle R as a starting point in a counterclockwise or clockwise direction, wherein the encoding is performed in a counterclockwise direction
- the preset polar angle interval is determined according to the maximum number of codes on any concentric circle.
- the first determining module 300 determines a preset number of concentric circles according to the center of the circle, wherein the preset number includes at least one of: 3, 4, and 5.
- the identification code further includes: non-encoded content, the non-encoded content is located in an area surrounded by concentric circles having the smallest radius among the plurality of concentric circles, and the non-encoded content includes: characters, symbols, patterns At least one.
- the embodiment of the present specification further provides another identification code identification device, as shown in FIG.
- FIG. 13 is a schematic structural diagram of an identification code identification apparatus according to an embodiment of the present disclosure, including:
- the acquisition module 400 collects an image
- the first determining module 402 determines, from the image, each position detection pattern in the identification code
- the second determining module 404 determines the center of the identification code according to each position detection pattern
- a third determining module 406 determining a starting graphic from each position detecting pattern according to the center of the circle and each position detecting pattern;
- the identification module 408 identifies the identification code according to the location of the start graphic, where the identification code includes a code on a plurality of concentric circles, and codes corresponding to adjacent and identical characters in the encoded content form a curved line segment
- the code corresponding to the character different from the adjacent characters in the encoded content is a dot, and the color of the code corresponding to the different characters in the encoded content is different.
- the position detection pattern includes: an equidistant concentric circle and a regular hexagon;
- the first determining module 402 identifies a plurality of sets of equidistant concentric circles from the image, and for each set of equidistant concentric circles, determines the first position according to the position of each equidistant concentric circle in the set of equidistant concentric circles, and determines Whether there is a regular hexagon on the first position, and if so, determining that the set of equidistant concentric circles is a position detection pattern, and if not, determining that the set of equidistant concentric circles is not a position detection pattern.
- the third determining module 406 establishes a polar coordinate system with the center of the circle as an origin according to each position detecting pattern and the position of the center in the image, and determines a position detecting pattern corresponding to a polar angle of 135 degrees as a starting point. Graphics.
- the identification module 408 determines a second location on each concentric circle according to the location of the start graphic, and identifies functional data included in the encoded content from the second location, according to the identified functional data, Identifying the identification code.
- the identification module 408 when the recognized functional data indicates that the identification code is identified by using the first identification method, divide each concentric circle into a plurality of sets of concentric arcs according to the determined position detection patterns and the center of the circle, according to The position of the starting pattern is sequentially determined in a clockwise or counterclockwise order for each set of concentric arcs, and the identification code is identified on the set of concentric arcs.
- the identification module 408 when the recognized functional data indicates that the identification code is identified by using the second identification method, select concentric circles from a plurality of concentric circles in a clockwise or inverse manner according to a preset rule of concentric circle selection. The order of the hour hand identifies the identification code on the selected concentric circle.
- the present specification also provides a server and a terminal, as shown in FIGS. 14-15. ,
- FIG. 14 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
- the server includes: one or more processors and a memory, where the memory stores a program, and is configured to perform the following steps by one or more processors:
- N-ary character corresponding to the encoded content on the plurality of concentric circles according to the position of the starting graphic to obtain an identification code, wherein adjacent and identical characters in the N-ary character correspond to The coded is a curved line segment, and the code corresponding to the character different from the adjacent characters in the N-ary character is a dot, and the code corresponding to the different characters in the N-ary character is different, and N is not less than two. A positive integer.
- FIG. 15 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
- the terminal includes: one or more processors and a memory, where the memory stores a program, and is configured to perform the following steps by one or more processors:
- PLD Programmable Logic Device
- FPGA Field Programmable Gate Array
- HDL Hardware Description Language
- the controller can be implemented in any suitable manner, for example, the controller can take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (eg, software or firmware) executable by the (micro)processor.
- computer readable program code eg, software or firmware
- examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, The Microchip PIC18F26K20 and the Silicone Labs C8051F320, the memory controller can also be implemented as part of the memory's control logic.
- the controller can be logically programmed by means of logic gates, switches, ASICs, programmable logic controllers, and embedding.
- Such a controller can therefore be considered a hardware component, and the means for implementing various functions included therein can also be considered as a structure within the hardware component.
- a device for implementing various functions can be considered as a software module that can be both a method of implementation and a structure within a hardware component.
- the system, device, module or unit illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product having a certain function.
- a typical implementation device is a computer.
- the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
- embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
- computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
- a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
- processors CPUs
- input/output interfaces network interfaces
- memory volatile and non-volatile memory
- the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
- RAM random access memory
- ROM read only memory
- Memory is an example of a computer readable medium.
- Computer readable media includes both permanent and non-persistent, removable and non-removable media.
- Information storage can be implemented by any method or technology.
- the information can be computer readable instructions, data structures, modules of programs, or other data.
- Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
- computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
- embodiments of the present application can be provided as a method, system, or computer program product.
- the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware.
- the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
- the application can be described in the general context of computer-executable instructions executed by a computer, such as a program module.
- program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types.
- the present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network.
- program modules can be located in both local and remote computer storage media including storage devices.
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
Description
分组 | 包含的等距同心圆标识 |
1 | abc |
2 | abd |
3 | acd |
4 | bcd |
Claims (26)
- 一种识别码生成的方法,包括:确定圆心;根据所述圆心确定若干个同心圆,以及,根据所述圆心和指定的半径,确定与所述圆心的距离为所述半径的若干个位置探测图形;其中,所述若干个位置探测图形不完全相同;从各位置探测图形中确定起始图形;根据所述起始图形的位置,在所述若干个同心圆上,对待编码内容对应的N进制字符进行编码,得到识别码,其中,所述N进制字符中相邻且相同的字符对应的编码形成弧形线段,所述N进制字符中与相邻字符均不同的字符对应的编码为点,所述N进制字符中不同字符对应的编码的颜色不同,N为不小于二的正整数。
- 如权利要求1所述的方法,根据所述圆心和指定的半径,确定与所述圆心的距离为所述半径的若干个位置探测图形,具体包括:选择半径为所述指定的半径的同心圆,在选择出的同心圆上确定若干个位置探测图形;或从所述若干同心圆中选择任一同心圆,在选择出的同心圆上确定若干个位置探测图形。
- 如权利要求1所述的方法,根据所述圆心确定若干个同心圆,具体包括:通过对所述半径增大和/或缩小预设的步长,得到若干半径;根据所述圆心以及得到的所述若干半径,确定若干个同心圆。
- 如权利要求1所述的方法,根据所述圆心和指定的半径,确定与所述圆心的距离为所述半径的若干个位置探测图形,具体包括:以所述圆心为原点建立极坐标系;根据所述圆心和所述指定的半径,确定圆;根据若干个指定的极角,在确定出的圆上确定若干个间隔相等的位置探测图形。
- 如权利要求4所述的方法,从各位置探测图形中确定起始图形,具体包括:根据各位置探测图形对应的极角,从各位置探测图形中确定起始图形。
- 如权利要求5所述的方法,所述若干个指定的极角,包括:45度、135度、225度、315度;根据各位置探测图形对应的极角,从各位置探测图形中确定起始图形,具体包括:将对应的极角为135度的位置探测图形确定为起始图形。
- 如权利要求1所述的方法,所述位置探测图形包括:等距同心圆以及正六边形;其中,所述等距同心圆中每个同心圆的线条粗细为预设宽度,且所述等距同心圆中的相邻两个同心圆的线条颜色不同。
- 如权利要求1所述的方法,根据所述起始图形的位置,在所述若干个同心圆上,对待编码内容对应的N进制字符进行编码,具体包括:根据所述起始图形的位置,在所述若干个同心圆上,按照逆时针或顺时针方向,对待编码内容对应的N进制字符进行编码。
- 如权利要求1所述的方法,根据所述起始图形的位置,在所述若干个同心圆上,对待编码内容对应的N进制字符进行编码,具体包括:根据各位置探测图形的位置以及所述圆心,将各同心圆划分为多组同心圆弧;根据所述起始图形的位置,以逆时针或者顺时针的顺序,依次针对每组同心圆弧,在该组同心圆弧上,对待编码内容对应的N进制字符进行编码,在该组同心圆弧上编码写满时,在下一组同心圆弧上继续编码。
- 如权利要求1所述的方法,根据所述起始图形的位置,在所述若干个同心圆上,对待编码内容对应的N进制字符进行编码,具体包括:按照预设的同心圆选择的规则,从若干个同心圆中选择同心圆,在选择的同心圆上对待编码内容对应的N进制字符进行编码,并当选择的所述同心圆写满时,继续按照所述同心圆选择的规则选择未进行编码的同心圆进行编码。
- 如权利要求1所述的方法,所述待编码内容包括:功能性数据;对待编码内容对应的N进制字符进行编码,具体包括:将所述功能性数据对应的N进制字符编码至指定位置。
- 如权利要求1所述的方法,对待编码内容对应的N进制字符进行编码具体包括:针对每个同心圆,按预设的极角间隔,依次将待编码内容对应的N进制字符进行编码,使在该同心圆上相邻的两个编码的间隔相同。
- 如权利要求12所述的方法,根据所述起始图形的位置,在所述若干个同心圆上,对待编码内容对应的N进制字符进行编码,具体包括:在所述若干个同心圆上,按照逆时针或顺时针方向,从极角角度R作为起始点对待编码内容对应的N进制字符进行编码;其中,当按照逆时针方向进行编码时,R=135°+α·θ,当按照逆时针方向进行编码时,R=135°-α·θ,α为预设的参数,θ为所述预设的极角间隔。
- 如权利要求12所述的方法,所述预设的极角间隔是根据任一同心圆上的最大编码数量确定的。
- 如权利要求1所述的方法,根据所述圆心确定若干个同心圆,具体包括:根据所述圆心确定预设数量的同心圆;其中,所述预设数量包括:3、4、5中的至少一种。
- 如权利要求1所述的方法,所述识别码还包括:非编码内容;所述非编码内容位于所述若干个同心圆中半径最小的同心圆所围成的区域内;所述非编码内容包括:文字、符号、图案中的至少一种。
- 一种识别码识别的方法,包括:采集图像;从所述图像中,确定识别码中的各位置探测图形;根据各位置探测图形,确定所述识别码的圆心;根据所述圆心和各位置探测图形,从各位置探测图形中确定起始图形;根据所述起始图形的位置,识别所述识别码,其中,所述识别码包括在若干同心圆上的编码,编码内容中相邻且相同的字符对应的编码形成弧形线段,编码内容中与相邻字符均不同的字符对应的编码为点,编码内容中不同字符对应的编码的颜色不同。
- 如权利要求17所述的方法,所述位置探测图形包括:等距同心圆以及正六边形;从所述图像中,确定识别码中的各位置探测图形,具体包括:从所述图像中识别若干组等距同心圆;针对每组等距同心圆,根据该组等距同心圆中每个等距同心圆的位置,确定第一位置,判断所述第一位置上是否存在正六边形;若是,则确定该组等距同心圆为位置探测图形;若否,则确定该组等距同心圆不是位置探测图形。
- 如权利要求17所述的方法,根据所述圆心和各位置探测图形,从各位置探测图形中确定起始图形,具体包括:根据各位置探测图形以及所述圆心在所述图像中的位置,以所述圆心为原点建立极坐标系;将对应的极角为135度的位置探测图形确定为起始图形。
- 如权利要求17所述的方法,识别所述识别码,具体包括:根据所述起始图形的位置,在各同心圆上确定第二位置;从所述第二位置识别出所述编码内容中包括的功能性数据;根据识别出的功能性数据,识别所述识别码。
- 如权利要求20所述的方法,根据识别出的功能性数据,识别所述识 别码,具体包括:当识别出的功能性数据表示采用第一识别方法识别所述识别码时,根据确定出的各位置探测图形以及所述圆心,将各同心圆划分为多组同心圆弧;根据所述起始图形的位置,以顺时针或者逆时针的顺序,依次针对每组同心圆弧,在该组同心圆弧上,识别所述识别码。
- 如权利要求20所述的方法,根据所述起始图形的位置,识别所述识别码,具体包括:当识别出的功能性数据表示采用第二识别方法识别所述识别码时,按照预设的同心圆选择的规则,从若干个同心圆中依次选择同心圆,以顺时针或者逆时针的顺序,在选择的同心圆上识别所述识别码。
- 一种识别码生成的装置,包括:第一确定模块,确定圆心;第二确定模块,根据所述圆心确定若干个同心圆,以及,根据所述圆心和指定的半径,确定与所述圆心的距离为所述半径的若干个位置探测图形;其中,所述若干个位置探测图形不完全相同;第三确定模块,从各位置探测图形中确定起始图形;生成模块,根据所述起始图形的位置,在所述若干个同心圆上,对待编码内容对应的N进制字符进行编码,得到识别码,其中,所述N进制字符中相邻且相同的字符对应的编码形成弧形线段,所述N进制字符中与相邻字符均不同的字符对应的编码为点,所述N进制字符中不同字符对应的编码的颜色不同,N为不小于二的正整数。
- 一种识别码识别的装置,包括:采集模块,采集图像;第一确定模块,从所述图像中,确定识别码中的各位置探测图形;第二确定模块,根据各位置探测图形,确定所述识别码的圆心;第三确定模块,根据所述圆心和各位置探测图形,从各位置探测图形中确定起始图形;识别模块,根据所述起始图形的位置,识别所述识别码,其中,所述识别码包括在若干同心圆上的编码,编码内容中相邻且相同的字符对应的编码形成弧形线段,编码内容中与相邻字符均不同的字符对应的编码为点,编码内容中不同字符对应的编码的颜色不同。
- 一种服务器,包括:一个或多个处理器及存储器,存储器存储有程序,并且被配置成由一个或多个处理器执行以下步骤:确定圆心;根据所述圆心确定若干个同心圆,以及,根据所述圆心和指定的半径,确定与所述圆心的距离为所述半径的若干个位置探测图形;其中,所述若干个位置探测图形不完全相同;从各位置探测图形中确定起始图形;根据所述起始图形的位置,在所述若干个同心圆上,对待编码内容对应的N进制字符进行编码,得到识别码,其中,所述N进制字符中相邻且相同的字符对应的编码形成弧形线段,所述N进制字符中与相邻字符均不同的字符对应的编码为点,所述N进制字符中不同字符对应的编码的颜色不同,N为不小于二的正整数。
- 一种终端,包括:一个或多个处理器及存储器,存储器存储有程序,并且被配置成由一个或多个处理器执行以下步骤:采集图像;从所述图像中,确定识别码中的各位置探测图形;根据各位置探测图形,确定所述识别码的圆心;根据所述圆心和各位置探测图形,从各位置探测图形中确定起始图形;根据所述起始图形的位置,识别所述识别码,其中,所述识别码包括在若干同心圆上的编码,编码内容中相邻且相同的字符对应的编码形成弧形线段,编码内容中与相邻字符均不同的字符对应的编码为点,编码内容中不同字符对应的编码的颜色不同。
Priority Applications (9)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020197031308A KR102151906B1 (ko) | 2017-08-23 | 2018-08-21 | 식별 코드의 생성 및 식별을 위한 방법 및 장치 |
AU2018320008A AU2018320008C1 (en) | 2017-08-23 | 2018-08-21 | Method and device for generating and identifying identification code |
JP2019557428A JP6894005B2 (ja) | 2017-08-23 | 2018-08-21 | 識別コードを生成および識別するための方法および装置 |
CA3060119A CA3060119C (en) | 2017-08-23 | 2018-08-21 | Method and apparatus for generating and identifying identification code |
EP18847369.8A EP3605398B1 (en) | 2017-08-23 | 2018-08-21 | Method and device for generating and identifying identification code |
SG11201909713U SG11201909713UA (en) | 2017-08-23 | 2018-08-21 | Method and apparatus for generating and identifying identification code |
IL270063A IL270063B (en) | 2017-08-23 | 2019-10-22 | Method and apparatus for generating and identifying identification code |
PH12019502403A PH12019502403A1 (en) | 2017-08-23 | 2019-10-23 | Method and apparatus for generating and identifying identification code |
US16/698,271 US10789441B2 (en) | 2017-08-23 | 2019-11-27 | Method and apparatus for generating and identifying identification code |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710731246.X | 2017-08-23 | ||
CN201710731246.XA CN107590522B (zh) | 2017-08-23 | 2017-08-23 | 一种识别码生成及识别的方法及装置 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/698,271 Continuation US10789441B2 (en) | 2017-08-23 | 2019-11-27 | Method and apparatus for generating and identifying identification code |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019037697A1 true WO2019037697A1 (zh) | 2019-02-28 |
Family
ID=61042863
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/101444 WO2019037697A1 (zh) | 2017-08-23 | 2018-08-21 | 一种识别码生成及识别的方法及装置 |
Country Status (12)
Country | Link |
---|---|
US (1) | US10789441B2 (zh) |
EP (1) | EP3605398B1 (zh) |
JP (1) | JP6894005B2 (zh) |
KR (1) | KR102151906B1 (zh) |
CN (1) | CN107590522B (zh) |
AU (1) | AU2018320008C1 (zh) |
CA (1) | CA3060119C (zh) |
IL (1) | IL270063B (zh) |
PH (1) | PH12019502403A1 (zh) |
SG (2) | SG11201909713UA (zh) |
TW (1) | TWI675330B (zh) |
WO (1) | WO2019037697A1 (zh) |
Families Citing this family (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107590522B (zh) | 2017-08-23 | 2020-08-21 | 阿里巴巴集团控股有限公司 | 一种识别码生成及识别的方法及装置 |
CN108491914B (zh) * | 2018-03-19 | 2023-11-21 | 北京三快在线科技有限公司 | 一种条码的生成、识别方法及装置、印刷物、电子设备 |
CN108764420B (zh) * | 2018-04-24 | 2022-10-21 | 中钞印制技术研究院有限公司 | 一种二维码及其编码、识别方法、具有防伪功能的产品 |
CN108921264A (zh) * | 2018-06-29 | 2018-11-30 | 连尚(新昌)网络科技有限公司 | 用于生成二维码的方法和设备 |
CN110766019A (zh) * | 2018-07-25 | 2020-02-07 | 深圳市创客工场科技有限公司 | 编码识别方法、装置、电子设备和计算机可读存储介质 |
CN110969233A (zh) * | 2018-09-30 | 2020-04-07 | 北京微播视界科技有限公司 | 二维码的生成方法、装置、硬件装置 |
CN110969042B (zh) * | 2018-09-30 | 2021-11-02 | 北京微播视界科技有限公司 | 二维码的识别方法、装置、硬件装置 |
CN111507120A (zh) * | 2019-01-31 | 2020-08-07 | 北京骑胜科技有限公司 | 二维码定位框识别方法、装置、电子设备及存储介质 |
CN109993255B (zh) * | 2019-03-15 | 2021-10-26 | 华南理工大学 | 一种图像编码与解码的方法 |
CN110288069B (zh) * | 2019-06-26 | 2023-05-02 | 百度在线网络技术(北京)有限公司 | 二维码生成和解析的方法、装置、设备及可读存储介质 |
CN110610219B (zh) * | 2019-08-12 | 2020-11-06 | 上海交通大学 | 一种彩色环形二维码及其生成和解码方法 |
CN110610112B (zh) * | 2019-09-12 | 2021-05-07 | 珠海格力电器股份有限公司 | 识别码显示方法和装置 |
CN111598096A (zh) * | 2020-04-03 | 2020-08-28 | 维沃移动通信有限公司 | 一种图像处理方法及电子设备 |
CN111709506B (zh) * | 2020-06-12 | 2023-07-11 | 北京思特奇信息技术股份有限公司 | 一种定制标签生成方法和系统 |
US11429804B2 (en) * | 2020-09-18 | 2022-08-30 | Google Llc | Platform for registering and processing visual encodings |
CN112733839B (zh) * | 2020-12-28 | 2024-05-03 | 阿波罗智联(北京)科技有限公司 | 灯头位置确定方法、装置、存储介质、程序、路侧设备 |
CN114912475A (zh) * | 2021-02-07 | 2022-08-16 | 华为技术有限公司 | 二维码识别方法及相关装置 |
CN113092736A (zh) * | 2021-04-09 | 2021-07-09 | 内蒙古电力(集团)有限责任公司内蒙古电力科学研究院分公司 | 一种基于漆膜倾向指数分析的变压器油老化状态评估方法 |
KR20220170134A (ko) * | 2021-06-22 | 2022-12-29 | 김지현 | 온오프 사용자 행위를 이용한 온라인 광고 제공 방법 및 이를 실행하는 시스템 |
CN113435559B (zh) * | 2021-08-27 | 2021-12-14 | 深圳企业云科技股份有限公司 | 一种基于计算机视觉识别的标签防转移方法 |
CN113487001B (zh) * | 2021-09-08 | 2021-12-24 | 飞狐信息技术(天津)有限公司 | 二维码生成方法及装置、二维码识别方法及装置 |
CN114154606B (zh) * | 2021-12-02 | 2024-03-15 | 杭州复杂美科技有限公司 | 标识码生成方法、计算机设备和存储介质 |
CN114202044B (zh) * | 2021-12-13 | 2023-07-11 | 福建正孚软件有限公司 | 一种基于微观码的防伪应用方法和系统 |
CN116796782B (zh) * | 2023-05-04 | 2024-07-19 | 北京百度网讯科技有限公司 | 二维码的生成方法、识别方法、装置、设备及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103793735A (zh) * | 2014-01-28 | 2014-05-14 | 河海大学 | 一种圆形二维条码及其编码解码方法 |
CN106447001A (zh) * | 2016-09-19 | 2017-02-22 | 华南农业大学 | 一种圆形二维码及其编码方法和应用 |
US20170193260A1 (en) * | 2015-03-30 | 2017-07-06 | Temptime Corporation | Two dimensional barcode with dynamic environmental data system, method, and apparatus |
CN107590522A (zh) * | 2017-08-23 | 2018-01-16 | 阿里巴巴集团控股有限公司 | 一种识别码生成及识别的方法及装置 |
Family Cites Families (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US3418456A (en) * | 1966-12-14 | 1968-12-24 | Monarch Marking Systems Inc | Encoded tag reader |
US5130795A (en) * | 1991-02-19 | 1992-07-14 | The United States Of America As Represented By The Secretary Of The Army | Positive automatic target locator indentification system (ATLIS), for ATR system testing |
KR19990017026A (ko) * | 1997-08-21 | 1999-03-15 | 윤종용 | 패턴매칭방법과 이를 이용한 화상인식장치 |
ATE321310T1 (de) * | 2000-04-06 | 2006-04-15 | Seiko Epson Corp | Verfahren und vorrichtung zum lesen von einem zwei-dimensionalen strichkode und datenspeichermedium |
US6857571B2 (en) * | 2000-06-30 | 2005-02-22 | Silverbrook Research Pty Ltd | Method for surface printing |
FR2846432B1 (fr) * | 2002-10-24 | 2005-03-11 | Commissariat Energie Atomique | Cible codee et procede de photogrammetre utilisant de telles cibles |
EP1422657A1 (en) * | 2002-11-20 | 2004-05-26 | Setrix AG | Method of detecting the presence of figures and methods of managing a stock of components |
US7621459B2 (en) * | 2005-04-25 | 2009-11-24 | Direct Measurements Inc. | Concentric-ring circular bar code |
US7270277B1 (en) * | 2004-05-21 | 2007-09-18 | Koziol Jeffrey E | Data encoding mark for placement in a compact area and an object carrying the data encoding mark |
US7878415B2 (en) * | 2005-04-25 | 2011-02-01 | Direct Measurements Inc. | Segmented circular bar code |
WO2007075719A2 (en) * | 2005-12-16 | 2007-07-05 | Pisafe, Inc. | Method and system for creating and using barcodes |
US7465917B2 (en) * | 2006-02-16 | 2008-12-16 | Avago Technologies General Ip (Singapore) Pte. Ltd. | Absolute encoder utilizing light of different wavelengths to reduce cross-talk |
JP4923702B2 (ja) * | 2006-04-27 | 2012-04-25 | 株式会社セガ | ゲーム制御方法及び記憶媒体及びゲーム装置 |
CN101086761A (zh) * | 2006-06-08 | 2007-12-12 | 姜晓航 | 高效信息点阵图形及其生成和解码方法 |
US8459567B2 (en) * | 2006-08-17 | 2013-06-11 | Direct Measurements, Inc. | Non-linear strain gage incorporating a nested binary code symbol |
EP1890113A1 (de) * | 2006-08-18 | 2008-02-20 | Leica Geosystems AG | Optoelektronischer winkelsensor und verfahren zum bestimmen eines drehwinkels um eine achse |
CN100390807C (zh) * | 2006-08-21 | 2008-05-28 | 北京中星微电子有限公司 | 一种易于全方位识别的三边形多维条码的识读方法 |
CN100511271C (zh) * | 2006-11-16 | 2009-07-08 | 深圳市天朗时代科技有限公司 | 二维码解码方法 |
CN101859397B (zh) * | 2009-04-10 | 2017-06-27 | 银河联动信息技术(北京)有限公司 | 二维阵列码 |
TWM484752U (zh) * | 2014-02-18 | 2014-08-21 | Zealtek Electronic Co Ltd | 可自行編排及定義的圖像編碼 |
CN104154904A (zh) * | 2014-07-18 | 2014-11-19 | 上海珞琪软件有限公司 | 一种基于图形拓扑关系的圆形编码标志及其识别方法 |
WO2016074087A2 (en) * | 2014-11-11 | 2016-05-19 | Helio Technology Inc. | A method of detecting user input in a 3d space and a 3d input system employing same |
CN107924475A (zh) * | 2015-05-05 | 2018-04-17 | 温科股份有限公司 | 基于调色板的光学识别码生成器和解码器 |
CN105894067B (zh) * | 2016-02-06 | 2018-08-07 | 深圳市天朗时代科技有限公司 | 一种点阵二维码的编码和识读方法 |
TWI722097B (zh) * | 2016-02-23 | 2021-03-21 | 瑞士商雀巢製品股份有限公司 | 用於一飲料製備機器或食品製備機器的容器、附接至容器的附接件以及編碼製備資訊之方法 |
US10237277B2 (en) * | 2016-08-15 | 2019-03-19 | Facebook, Inc. | Generating and utilizing digital visual codes to grant privileges via a networking system |
CN107122816A (zh) * | 2017-03-20 | 2017-09-01 | 广东顺德中山大学卡内基梅隆大学国际联合研究院 | 一种自定义寻像图形二维码及生成方法 |
CN106951812B (zh) * | 2017-03-31 | 2018-12-07 | 腾讯科技(深圳)有限公司 | 识别二维码的方法、装置和终端 |
-
2017
- 2017-08-23 CN CN201710731246.XA patent/CN107590522B/zh active Active
-
2018
- 2018-05-28 TW TW107118127A patent/TWI675330B/zh active
- 2018-08-21 EP EP18847369.8A patent/EP3605398B1/en active Active
- 2018-08-21 KR KR1020197031308A patent/KR102151906B1/ko active IP Right Grant
- 2018-08-21 WO PCT/CN2018/101444 patent/WO2019037697A1/zh unknown
- 2018-08-21 JP JP2019557428A patent/JP6894005B2/ja active Active
- 2018-08-21 CA CA3060119A patent/CA3060119C/en active Active
- 2018-08-21 AU AU2018320008A patent/AU2018320008C1/en active Active
- 2018-08-21 SG SG11201909713U patent/SG11201909713UA/en unknown
- 2018-08-21 SG SG10202104557XA patent/SG10202104557XA/en unknown
-
2019
- 2019-10-22 IL IL270063A patent/IL270063B/en active IP Right Grant
- 2019-10-23 PH PH12019502403A patent/PH12019502403A1/en unknown
- 2019-11-27 US US16/698,271 patent/US10789441B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103793735A (zh) * | 2014-01-28 | 2014-05-14 | 河海大学 | 一种圆形二维条码及其编码解码方法 |
US20170193260A1 (en) * | 2015-03-30 | 2017-07-06 | Temptime Corporation | Two dimensional barcode with dynamic environmental data system, method, and apparatus |
CN106447001A (zh) * | 2016-09-19 | 2017-02-22 | 华南农业大学 | 一种圆形二维码及其编码方法和应用 |
CN107590522A (zh) * | 2017-08-23 | 2018-01-16 | 阿里巴巴集团控股有限公司 | 一种识别码生成及识别的方法及装置 |
Non-Patent Citations (1)
Title |
---|
See also references of EP3605398A4 * |
Also Published As
Publication number | Publication date |
---|---|
KR20190128710A (ko) | 2019-11-18 |
CA3060119C (en) | 2020-09-08 |
CN107590522A (zh) | 2018-01-16 |
TW201913459A (zh) | 2019-04-01 |
AU2018320008C1 (en) | 2021-01-21 |
TWI675330B (zh) | 2019-10-21 |
KR102151906B1 (ko) | 2020-09-03 |
SG10202104557XA (en) | 2021-05-28 |
JP2020524319A (ja) | 2020-08-13 |
SG11201909713UA (en) | 2019-11-28 |
EP3605398B1 (en) | 2021-10-27 |
EP3605398A4 (en) | 2020-07-29 |
IL270063B (en) | 2021-02-28 |
CN107590522B (zh) | 2020-08-21 |
CA3060119A1 (en) | 2019-02-28 |
US10789441B2 (en) | 2020-09-29 |
EP3605398A1 (en) | 2020-02-05 |
AU2018320008B2 (en) | 2020-12-17 |
AU2018320008A1 (en) | 2019-11-14 |
PH12019502403A1 (en) | 2021-01-25 |
JP6894005B2 (ja) | 2021-06-23 |
US20200097692A1 (en) | 2020-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019037697A1 (zh) | 一种识别码生成及识别的方法及装置 | |
WO2019196542A1 (zh) | 一种图像处理的方法及装置 | |
WO2022199471A1 (zh) | 一种二维码生成、解码方法、装置及设备 | |
US7950589B2 (en) | Program, information storage medium, two-dimensional code generation system, image generation system and printed material | |
RU2668063C2 (ru) | Передача данных, используя оптические коды | |
CN104778491A (zh) | 用于信息处理的图像码及生成与解析其的装置与方法 | |
CN110288069A (zh) | 二维码生成和解析的方法、装置、设备及可读存储介质 | |
TW201830290A (zh) | 圖像生成方法及其設備 | |
CN111666442B (zh) | 一种图像检索方法、装置及计算机设备 | |
TW201933175A (zh) | 資訊識別方法、伺服器、客戶端及系統 | |
CN107301366A (zh) | 一种嵌码视频中图形码的解码方法及装置 | |
TWI497420B (zh) | 可快速解碼之等灰度二維光學辨識碼裝置及解碼方法 | |
WO2018210077A1 (zh) | 标识码的生成方法及装置 | |
CN113435557B (zh) | 一种二维码生成、解码、识别方法、装置及设备 | |
CN116342888B (zh) | 一种基于稀疏标注训练分割模型的方法及装置 | |
CN110659343B (zh) | 一种地理围栏数据的提取方法、装置及设备 | |
JP2010117870A (ja) | 包含型コードシンボル及びその読み出し方法、並びに閉領域包含型コードシンボル及びその読み出し方法、並びに、包含型コードシンボルが付された物品及び閉領域包含型コードシンボルが付された物品。 | |
TW201939346A (zh) | 一種識別條碼的方法、裝置及設備 | |
Shen et al. | Raster-based method for building selection in the multi-scale representation of two-dimensional maps | |
CN109284802A (zh) | 一种图形编码的处理方法及装置 | |
CN107622488A (zh) | 一种共聚焦图像块相似度测量方法及系统 | |
Kuribayashi et al. | Watermarking with fixed decoder for aesthetic 2D barcode | |
EP3142344A1 (en) | A system and method for steganographic coding of metadata on images | |
Xue et al. | Text code recognition and its definition |
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: 18847369 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 3060119 Country of ref document: CA |
|
ENP | Entry into the national phase |
Ref document number: 2019557428 Country of ref document: JP Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 20197031308 Country of ref document: KR Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 2018847369 Country of ref document: EP Effective date: 20191028 |
|
ENP | Entry into the national phase |
Ref document number: 2018320008 Country of ref document: AU Date of ref document: 20180821 Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |