CN112541369A - Information code identification method and system - Google Patents

Information code identification method and system Download PDF

Info

Publication number
CN112541369A
CN112541369A CN202011468043.4A CN202011468043A CN112541369A CN 112541369 A CN112541369 A CN 112541369A CN 202011468043 A CN202011468043 A CN 202011468043A CN 112541369 A CN112541369 A CN 112541369A
Authority
CN
China
Prior art keywords
image
information code
black
points
information
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202011468043.4A
Other languages
Chinese (zh)
Other versions
CN112541369B (en
Inventor
田辉
李卫海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei High Dimensional Data Technology Co ltd
Original Assignee
Hefei High Dimensional Data Technology Co ltd
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 Hefei High Dimensional Data Technology Co ltd filed Critical Hefei High Dimensional Data Technology Co ltd
Priority to CN202011468043.4A priority Critical patent/CN112541369B/en
Publication of CN112541369A publication Critical patent/CN112541369A/en
Application granted granted Critical
Publication of CN112541369B publication Critical patent/CN112541369B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/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
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/60Rotation of a whole image or part thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/28Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/42Global feature extraction by analysis of the whole pattern, e.g. using frequency domain transformations or autocorrelation

Abstract

The invention discloses an information code identification method and system, belonging to the technical field of information code identification, comprising the following steps: the image processing device is used for identifying the combined coded image obtained by combining the information code and the positioning code, acquiring the picture of the combined coded image and identifying the image of the information code; carrying out binarization processing on the image of the information code to obtain a binarized information code image; traversing the binarized information code image, and converting all points in the binarized information code image into a bit matrix according to the steps; and converting the bit matrix into a bit stream, and decoding to obtain the product anti-counterfeiting information in the information code image. The invention can identify the product anti-counterfeiting information in the information code and the traceability information in the surrounding positioning code, and can identify the product anti-counterfeiting information even if the combined coding pattern is partially shielded and worn.

Description

Information code identification method and system
Technical Field
The present invention relates to the field of information code identification technologies, and in particular, to an information code identification method and system.
Background
With the development and popularization of the internet and the convenience of transportation, the phenomenon of commodity channel conflict becomes more and more serious. At present, the anti-channel conflict processing methods are various, product code system is carried out from the management department of industry and commerce, two-dimensional codes or bar codes are printed on reflective materials to store part of commodity information and the like, the two-dimensional codes are very convenient and fast information transmission means, and merchants can push self microblogs, public numbers or product serial numbers and the like by using the two-dimensional codes. But it also has obvious defects in the using process: firstly, the two-dimensional code or the bar code has a simple coding mode, the decoding method is mature, and the commodity information can be copied and forged simply. Secondly, if the information of the two-dimensional code or the bar code is lost, for example, the picture is blocked, the decoding is greatly influenced, even the information cannot be read, and the readability of the information is poor.
Disclosure of Invention
The invention aims to provide a novel information code identification method.
In order to achieve the above object, the present invention adopts an information code identification method to identify the above combined coded image, wherein the identification process comprises the following steps:
acquiring a picture of the combined coding image, and identifying an image of an information code;
carrying out binarization processing on the image of the information code to obtain a binarized information code image;
traversing the binarized information code image, and converting all points in the binarized information code image into a bit matrix according to the steps;
and converting the bit matrix into a bit stream, and decoding to obtain the product anti-counterfeiting information in the information code image.
Preferably, the acquiring a picture of a combined encoded image and identifying an image of an information code includes:
acquiring a picture containing the combined coded image, and performing binarization processing on the picture of the combined coded image to obtain a binarized image containing the combined coded image;
detecting the positioning code part in the image containing the combined code after the binarization processing, and acquiring a combined code image according to the positioning code part;
and counting the gray value of each pixel point in the combined coding image, and determining the whitest area as the image of the information code according to the gray value.
Preferably, traversing the binarized information code image and converting all the points in the binarized information code image into a bit matrix according to the traversing includes:
traversing the gray value of each pixel point in the binarized information code image, and judging that each pixel point is a white pixel point or a black pixel point;
respectively taking an area formed by connecting adjacent black pixel points as a black point to obtain a plurality of black points;
respectively calculating the position coordinates of the corresponding black points according to the position coordinates of all black pixel points in each black point in the information code image;
calculating the area of the corresponding black point according to the area of the left and right black pixel points in each black point;
calculating the distance and angle between each black point and all black points below the black point, selecting three black points with the shortest distance, and calculating the x-y axis direction and side length of the three points;
calculating black points which are closest to the central point in all the black points according to the position coordinates of the central point of the set information code image, and constructing a coordinate system by using the black points as the central coordinates;
sequentially filling three black points with the shortest distance below each black point into a coordinate system to establish a dot matrix coordinate;
and converting all points in the lattice coordinates into matrix elements to obtain the bit matrix.
Preferably, in the step of converting the bit matrix into a bit stream and decoding the bit stream to obtain the product anti-counterfeiting information in the information code image, the bit stream includes a positioning element and an information element, and includes:
finding out the positioning points in the bit matrix according to the positions of the positioning points in the basic coding data matrix;
converting the bit matrix into a bit stream according to the positioning points;
and decoding and checking the bit stream to restore the anti-counterfeiting information of the product.
Preferably, the method further comprises the following steps:
and identifying the positioning code to obtain the marketing information stored in the positioning code so as to trace the source of the product.
In addition, an information identification system is also adopted, which comprises an intelligent terminal device for scanning and identifying the combined coded image and a cloud server for retrieving and matching the product anti-counterfeiting information, wherein the intelligent terminal device comprises an image acquisition device and a signal code identification device, the output end of the image acquisition device is connected with the input end of the signal code identification device, the cloud server comprises a database and a matching module, the product anti-counterfeiting information is stored in the database, and the matching module is respectively connected with the database and the signal code identification device;
the image acquisition device is used for acquiring a picture of the combined coding image;
the signal code recognition device is used for decoding the picture of the combined coding image to obtain product anti-counterfeiting information stored in the combined coding and sending the product anti-counterfeiting information to the matching module;
the matching module is used for matching the product anti-counterfeiting information sent by the information code recognition device with product anti-counterfeiting information stored in a database in advance and feeding back a matching result to the intelligent terminal equipment.
Preferably, the signal code identification device comprises an identification module, a binarization module, a restoration module and a decoding module which are connected in sequence, wherein the identification module is connected with the image acquisition equipment;
the identification module is used for acquiring the picture of the combined coding image and identifying the image of the information code;
the binarization module is used for carrying out binarization processing on the image of the information code to obtain a binarized information code image;
the restoration module is used for traversing the binarized information code image and converting all points in the binarized information code image into a bit matrix according to the information code image;
the decoding module is used for converting the bit matrix into bit stream and decoding to obtain the product anti-counterfeiting information in the information code image.
Preferably, the identification module includes a binarization processing unit, a combined encoded image acquisition unit, and an information code identification unit, wherein:
the binarization processing unit is used for acquiring a picture containing the combined coding image, and performing binarization processing on the picture of the combined coding image to obtain a binarization-processed image containing the combined coding;
the combined coding image acquisition unit is used for detecting the positioning code part in the image containing the combined coding after the binarization processing and acquiring a combined coding image according to the positioning code part;
the information code identification unit is used for counting the gray value of each pixel point in the combined coding image and determining the whitest area as the image of the information code according to the gray value.
Preferably, the restoring module includes a traversing unit, a black point determining unit, a coordinate calculating unit, an area calculating unit, a coordinate system constructing unit, a dot matrix coordinate establishing unit, and a bit matrix determining unit, wherein:
the traversal unit is used for traversing the gray value of each pixel point in the binarized information code image and judging that each pixel point is a white pixel point or a black pixel point;
the black point determining unit is used for respectively taking an area formed by connecting adjacent black pixel points as a black point so as to obtain a plurality of black points;
the coordinate calculation unit is used for calculating the position coordinates of the corresponding black points according to the position coordinates of all black pixel points in each black point in the information code image;
the area calculation unit is used for calculating the areas of the corresponding black points according to the areas of the left and right black pixel points in each black point;
the calculating unit is used for calculating the distance and the angle between each black point and all black points below the black point, selecting three black points with the shortest distance, and calculating the x-y axis direction and the side length of the three points;
the coordinate system construction unit is used for calculating a black point which is closest to the central point in all the black points according to the position coordinates of the central point of the set information code image, and constructing a coordinate system by using the black point as the central coordinate;
the dot matrix coordinate establishing unit is used for sequentially filling three black points with the shortest distance below each black point into a coordinate system to establish dot matrix coordinates;
and the bit matrix determining unit is used for converting all points in the lattice coordinates into matrix elements to obtain the bit matrix.
Preferably, the decoding module includes a searching unit, a converting unit and a restoring unit, wherein:
the searching unit is used for searching the positioning points in the bit matrix according to the positions of the positioning points in the basic coding data matrix;
the conversion unit is used for converting the bit matrix into a bit stream according to the positioning points;
the restoring unit is used for decoding and checking the bit stream to restore the anti-counterfeiting information of the product.
Compared with the prior art, the invention has the following technical effects: the invention aims to provide a method for identifying a novel combined coded image, which can not only identify the product anti-counterfeiting information in an information code and the traceability information in a surrounding positioning code, but also identify the product anti-counterfeiting information in the combined coded pattern even if the combined coded pattern is partially worn by shielding.
Drawings
The following detailed description of embodiments of the invention refers to the accompanying drawings in which:
FIG. 1 is a schematic structural diagram of an information code identification method;
FIG. 2 is a functional block diagram of an information code recognition method;
FIG. 3 is a schematic diagram of two-dimensional code recognition;
FIG. 4 is a schematic diagram of identifying an information code image in a combined encoded image;
FIG. 5 is a schematic diagram of the precise location of an information code region;
FIG. 6 is a diagram of an information code after binarization;
FIG. 7 is a schematic diagram illustrating distance calculations for points below a black dot;
FIG. 8 is a schematic diagram of a generated bit matrix;
FIG. 9 is a schematic diagram of an information code recognition system;
fig. 10 is a schematic structural diagram of a signal code identification device.
Detailed Description
To further illustrate the features of the present invention, refer to the following detailed description of the invention and the accompanying drawings. The drawings are for reference and illustration purposes only and are not intended to limit the scope of the present disclosure.
As shown in fig. 1, the present embodiment discloses an information code identification method for identifying a combined encoded image generated in another invention application with a title of "an information code generation method" applied by the applicant, and restoring product anti-counterfeiting information in an information code, which specifically includes the following steps S101 to S104:
s101, obtaining a picture of the combined coding image, and identifying an image of an information code;
in the process of identifying the combined encoded image, a part of the information code is first identified from the combined encoded image, so that the product anti-counterfeiting information is restored from the information code.
S102, carrying out binarization processing on the image of the information code to obtain a binarized information code image;
it should be noted that, binarization processing is performed on the image of the information code to obtain a gray value of a pixel point in the image, and according to the gray value of the pixel point, the pixel point with the gray value of 0 is determined as a black point, and the pixel point with the gray value of 255 is determined as a white point.
S103, traversing the binarized information code image, and converting all points in the binarized information code image into a bit matrix according to the steps;
and S104, converting the bit matrix into a bit stream, and decoding to obtain the product anti-counterfeiting information in the information code image.
More preferably, in step S103: traversing the binarized information code image, and converting all points in the binarized information code image into a bit matrix according to the steps. The method specifically comprises the following subdivision steps:
traversing the gray value of each pixel point in the binarized information code image, and judging that each pixel point is a white pixel point or a black pixel point;
respectively taking an area formed by connecting adjacent black pixel points as a black point to obtain a plurality of black points;
respectively calculating the position coordinates of the corresponding black points according to the position coordinates of all black pixel points in each black point in the information code image;
calculating the area of the corresponding black point according to the area of the left and right black pixel points in each black point;
calculating the distance and angle between each black point and all black points below the black point, selecting three black points with the shortest distance, and calculating the x-y axis direction and side length of the three points;
calculating black points which are closest to the central point in all the black points according to the position coordinates of the central point of the set information code image, and constructing a coordinate system by using the black points as the central coordinates;
sequentially filling three black points with the shortest distance below each black point into a coordinate system to establish a dot matrix coordinate;
and converting all points in the lattice coordinates into matrix elements to obtain the bit matrix.
As a more preferable mode, in the step S104: converting the bit matrix into a bit stream, and decoding the bit stream to obtain the product anti-counterfeiting information in the information code image, wherein the bit stream comprises a positioning element and an information element, and the step S104 specifically comprises the following subdivision steps:
finding out the positioning points in the bit matrix according to the positions of the positioning points in the basic coding data matrix;
converting the bit matrix into a bit stream according to the positioning points;
and decoding and checking the bit stream to restore the anti-counterfeiting information of the product.
As a further preferable scheme, the information code identification method further includes the steps of:
and identifying the positioning code to obtain the marketing information stored in the positioning code so as to trace the source of the product.
It should be noted that the identification process of the marketing information from the location code is the same as that in the prior art, and is not described here again.
As shown in fig. 2, the following description will be given taking, as an example, the recognition of a combined coded image obtained by using a two-dimensional code as a positioning code:
(1) obtaining a picture containing a combined coding image, and searching a positioning point of the two-dimensional code by using a traditional two-dimensional code positioning method:
the method comprises the steps of carrying out binarization processing on a picture containing a combined coding image, then scanning the whole picture after binarization processing, detecting parts, namely three positioning points of the two-dimensional code, in the picture, wherein the parts accord with 1:1:3:1:1, and sequencing the three positioning points according to the upper left corner, the upper right corner and the lower left corner.
(2) Acquiring a two-dimensional code picture according to three positioning point positions of the two-dimensional code, and rotating the two-dimensional code picture to the vertical direction so as to facilitate subsequent extraction processing:
the coordinates of the upper left corner, the upper right corner and the lower left corner of the three positioning points of the two-dimensional code are respectively (x)1,y1)、(x2,y2)、(x3,y3) The side length of the two-dimensional code picture after being cut is 1, as shown in fig. 3, the point (i, j) in the new two-dimensional code picture after being rotated corresponds to the point P in the original image, and the coordinate of the point P is
Figure BDA0002835172950000081
That is, assuming that the coordinate systems of the rotated two-dimensional code picture are i-axis and j-axis, the unit vector in the i-axis direction is
Figure BDA0002835172950000082
The unit vector in the j-axis direction is
Figure BDA0002835172950000083
The position coordinates of any pixel point (i, j) in the rotated two-dimensional code picture are pixels in the original coordinate system
Figure BDA0002835172950000084
And assigning each point in the rotated two-dimensional code picture according to the value to obtain the rotated two-dimensional code picture.
(3) Acquiring an information code area in the two-dimensional code, and deleting the surrounding two-dimensional code:
preliminarily judging the information code area: as shown in fig. 4, the rotated two-dimensional code chart square matrix is divided into 5 × 5 matrices, the gray value of each matrix region is counted, then a whitest region is selected, and the information code is determined to be near the region, so as to obtain a preliminary determination region of the information code.
It should be noted that, the matrix division needs to be performed according to the size of the embedded information code, and the divided small squares need to be similar to the size of the information code.
Accurately searching an information code area: as shown in fig. 5, a horizontal portion and a vertical portion including the whitest area are selected from the two-dimensional code picture, and the horizontal portion and the vertical portion are sequentially scanned, for example, the horizontal portion is scanned from left to right, and the vertical portion is scanned from top to bottom. The number of black dots in the black block area in the two-dimensional code is obviously higher than that of the black dots in the information code area, so that the area of the information code can be obtained according to the change of the number of the black dots obtained by scanning, for example, when the information code area enters the information code area from the two-dimensional code area during scanning, the number of the black dots can suddenly decrease, when the information code area enters the two-dimensional code area, the number of the black dots can suddenly increase, and the area between the sudden decrease of the number of the black dots and the sudden increase can be determined as the information code area.
(4) The information code region is binarized, and the resulting binarized information code region is shown in fig. 6.
(5) Traversing all black points in the information code region after binarization, and counting the position and the area of each black point:
it should be noted that each black dot is composed of a plurality of pixel points, in this embodiment, adjacent black pixel points are connected together, and each connected region corresponds to each black dot. Then, black dots in the entire area of the information code are counted, and the position and area of each black dot are calculated. For example, if a black dot is composed of g black pixels, the abscissa of the black dot is the average of the sum of the abscissas of the g black pixels, and the ordinate is the average of the sum of the ordinates of the g black pixels. The area of the black dot is the total number g of black pixels.
(6) Taking each black point as a main point, counting three black points which are below each main point and are closest to the main point, taking the three black points as associated points of the main point, wherein the directions of the three associated points are different:
as shown in fig. 7, the distance between the main point and all the black points below the main point is calculated according to the distance formula between the points, and a plurality of distance values d are obtained1、d2、d3....dtIf d is min { d ═ d { (d) }1、d2、d3....dt}. Then, the angle between the main point and each black point is calculated
Figure BDA0002835172950000091
And (4) counting the distances and angles from all the associated points to the main point, and selecting three associated points with short distances and concentrated angles.
(7) Establishing a matrix coordinate system, and generating a matrix according to the coordinate system:
as shown in fig. 8, a central point is set in advance, the central point is the same as the central point when the information code is generated, then distances between all black points in the binarized information code region and the central point are calculated, the black point with the minimum distance is used as a central coordinate, and a matrix coordinate system is established by using the x-y axis of the associated point corresponding to the central point and the distance from the associated point to the central point.
And determining whether black points or white points are filled in each position in the matrix coordinate system according to the bit stream filling positions in the basic coding data matrix during coding. And filling each point in the binarized information code area in a matrix coordinate system to obtain a lattice matrix.
(8) And (3) decoding:
the dot matrix coordinates are converted to a 0-1 bit matrix where 0 or 1 is distinguished based on the color of the fill dots, e.g., black is 1 and white is 0. And finding the positioning points in the lattice coordinates according to the positions of the positioning points A and B in the basic coding data matrix in the coding process. For example, if the ratio of the longitudinal interval to the transverse interval of the anchor point a in the encoding mode is 2:1, the position of the anchor point in the lattice matrix is determined according to the ratio. Then converting elements except the positioning points into 0-1 bit streams as coded information to be identified;
and decoding and checking the coded information to be identified to restore the anti-counterfeiting information of the product.
(9) And identifying the two-dimension codes around the information codes to obtain the commodity tracing information stored in the two-dimension codes, wherein the two-dimension codes can be used for pushing microblogs, public numbers and the like of merchants by users.
The method for identifying the combined coded image provided by the embodiment can identify the product anti-counterfeiting information in the information code and the traceability information in the surrounding positioning code at the same time. And even if the combined coding pattern is partially worn by shielding, the anti-counterfeiting information of the product in the combined coding pattern can be identified.
As shown in fig. 9, the present embodiment further discloses an information code identification system, which includes an intelligent terminal device 10 for scanning and identifying the combined encoded image in the foregoing embodiments and a cloud server 20 for retrieving and matching the product anti-counterfeiting information, where the intelligent terminal device 10 includes an image obtaining device 11 and a message code identification device 12, an output end of the image obtaining device 11 is connected with an input end of the message code identification device 12, the cloud server 20 includes a database 21 and a matching module 22, the database 21 stores the product anti-counterfeiting information, and the matching module 22 is connected with the database 21 and the message code identification device 12 respectively;
the image acquisition device 11 is used for acquiring the pictures of the combined coded image;
the signal code recognition device 12 is configured to decode the picture of the combined encoded image to obtain product anti-counterfeiting information stored in the combined code, and send the product anti-counterfeiting information to the matching module 22;
the matching module 22 is configured to match the product anti-counterfeiting information sent by the information code identification device 12 with product anti-counterfeiting information pre-stored in the database 21, and feed back a matching result to the intelligent terminal device 10.
As a further preferable scheme, as shown in fig. 10, the information code identification device 12 includes an identification module 121, a binarization module 122, a restoration module 123 and a decoding module 124 which are connected in sequence, and the identification module 121 is connected with the image acquisition device 11;
the identification module 121 is configured to obtain a picture of the combined encoded image and identify an image of an information code;
the binarization module 122 is configured to perform binarization processing on the image of the information code to obtain a binarized information code image;
the restoring module 123 is configured to traverse the binarized information code image, and convert all points in the binarized information code image into a bit matrix according to the foregoing;
the decoding module 124 is configured to convert the bit matrix into a bit stream, and decode the bit stream to obtain the product anti-counterfeiting information in the information code image.
As a further preferred technical solution, the identification module 121 includes a binarization processing unit, a combined encoded image obtaining unit, and an information code identification unit, wherein:
the binarization processing unit is used for acquiring a picture containing the combined coding image, and performing binarization processing on the picture of the combined coding image to obtain a binarization-processed image containing the combined coding;
the combined coding image acquisition unit is used for detecting the positioning code part in the image containing the combined coding after the binarization processing and acquiring a combined coding image according to the positioning code part;
the information code identification unit is used for counting the gray value of each pixel point in the combined coding image and determining the whitest area as the image of the information code according to the gray value.
As a further preferred technical solution, the restoring module 123 includes a traversing unit, a black point determining unit, a coordinate calculating unit, an area calculating unit, a coordinate system constructing unit, a dot matrix coordinate establishing unit, and a bit matrix determining unit, wherein:
the traversal unit is used for traversing the gray value of each pixel point in the binarized information code image and judging that each pixel point is a white pixel point or a black pixel point;
the black point determining unit is used for respectively taking an area formed by connecting adjacent black pixel points as a black point so as to obtain a plurality of black points;
the coordinate calculation unit is used for calculating the position coordinates of the corresponding black points according to the position coordinates of all black pixel points in each black point in the information code image;
the area calculation unit is used for calculating the areas of the corresponding black points according to the areas of the left and right black pixel points in each black point;
the calculating unit is used for calculating the distance and the angle between each black point and all black points below the black point, selecting three black points with the shortest distance, and calculating the x-y axis direction and the side length of the three points;
the coordinate system construction unit is used for calculating a black point which is closest to the central point in all the black points according to the position coordinates of the central point of the set information code image, and constructing a coordinate system by using the black point as the central coordinate;
the dot matrix coordinate establishing unit is used for sequentially filling three black points with the shortest distance below each black point into a coordinate system to establish dot matrix coordinates;
and the bit matrix determining unit is used for converting all points in the lattice coordinates into matrix elements to obtain the bit matrix.
As a further preferred technical solution, the decoding module 124 includes a searching unit, a converting unit and a restoring unit, wherein:
the searching unit is used for searching the positioning points in the bit matrix according to the positions of the positioning points in the basic coding data matrix;
the conversion unit is used for converting the bit matrix into a bit stream according to the positioning points;
the restoring unit is used for decoding and checking the bit stream to restore the anti-counterfeiting information of the product.
It should be noted that the information code identification system disclosed in this embodiment has the same or corresponding technical features as the information code identification method, so as to achieve the same technical effects, and specific details are not described herein again.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. An information code identification method for identifying a combined coded image obtained by combining an information code and a positioning code, comprising:
acquiring a picture of a combined coding image, and identifying an image of an information code;
carrying out binarization processing on the image of the information code to obtain a binarized information code image;
traversing the binarized information code image, and converting all points in the binarized information code image into a bit matrix according to the steps;
and converting the bit matrix into a bit stream, and decoding to obtain the product anti-counterfeiting information in the information code image.
2. The information code identification method according to claim 1, wherein the acquiring a picture of the combined encoded image and identifying the image of the information code includes:
acquiring a picture containing the combined coded image, and performing binarization processing on the picture of the combined coded image to obtain a binarized image containing the combined coded image;
detecting the positioning code part in the image containing the combined code after the binarization processing, and acquiring a combined code image according to the positioning code part;
and counting the gray value of each pixel point in the combined coding image, and determining the whitest area as the image of the information code according to the gray value.
3. The information code identification method according to claim 1, wherein said traversing the binarized information code image and converting all points in the binarized information code image into a bit matrix according to said, comprises:
traversing the gray value of each pixel point in the binarized information code image, and judging that each pixel point is a white pixel point or a black pixel point;
respectively taking an area formed by connecting adjacent black pixel points as a black point to obtain a plurality of black points;
respectively calculating the position coordinates of the corresponding black points according to the position coordinates of all black pixel points in each black point in the information code image;
calculating the area of the corresponding black point according to the area of the left and right black pixel points in each black point;
calculating the distance and angle between each black point and all black points below the black point, selecting three black points with the shortest distance, and calculating the x-y axis direction and side length of the three points;
calculating black points which are closest to the central point in all the black points according to the position coordinates of the central point of the set information code image, and constructing a coordinate system by using the black points as the central coordinates;
sequentially filling three black points with the shortest distance below each black point into a coordinate system to establish a dot matrix coordinate;
and converting all points in the lattice coordinates into matrix elements to obtain the bit matrix.
4. The information code identification method according to claim 3, wherein in converting the bit matrix into a bit stream and decoding the bit stream to obtain the product anti-counterfeiting information in the information code image, the bit stream includes a positioning element and an information element, and includes:
finding out the positioning points in the bit matrix according to the positions of the positioning points in the basic coding data matrix;
converting the bit matrix into a bit stream according to the positioning points;
and decoding and checking the bit stream to restore the anti-counterfeiting information of the product.
5. The information code identification method as claimed in claim 1, further comprising:
and identifying the positioning code to obtain the marketing information stored in the positioning code so as to trace the source of the product.
6. An information code identification system is characterized by comprising intelligent terminal equipment and a cloud server, wherein the intelligent terminal equipment is used for scanning and identifying a combined coded image, and the cloud server is used for retrieving and matching product anti-counterfeiting information;
the image acquisition device is used for acquiring a picture of the combined coding image;
the signal code recognition device is used for decoding the picture of the combined coding image to obtain product anti-counterfeiting information stored in the combined coding and sending the product anti-counterfeiting information to the matching module;
the matching module is used for matching the product anti-counterfeiting information sent by the information code recognition device with product anti-counterfeiting information stored in a database in advance and feeding back a matching result to the intelligent terminal equipment.
7. The information code identification system according to claim 6, wherein the information code identification means includes an identification module, a binarization module, a restoration module and a decoding module connected in sequence, the identification module being connected to the image acquisition device;
the identification module is used for acquiring the picture of the combined coding image and identifying the image of the information code;
the binarization module is used for carrying out binarization processing on the image of the information code to obtain a binarized information code image;
the restoration module is used for traversing the binarized information code image and converting all points in the binarized information code image into a bit matrix according to the information code image;
the decoding module is used for converting the bit matrix into bit stream and decoding to obtain the product anti-counterfeiting information in the information code image.
8. The information code identification system according to claim 7, wherein the identification module includes a binarization processing unit, a combined encoded image acquisition unit, and an information code identification unit, wherein:
the binarization processing unit is used for acquiring a picture containing the combined coding image, and performing binarization processing on the picture of the combined coding image to obtain a binarization-processed image containing the combined coding;
the combined coding image acquisition unit is used for detecting the positioning code part in the image containing the combined coding after the binarization processing and acquiring a combined coding image according to the positioning code part;
the information code identification unit is used for counting the gray value of each pixel point in the combined coding image and determining the whitest area as the image of the information code according to the gray value.
9. The information code identification system of claim 7, wherein the restoration module comprises a traversal unit, a black dot determination unit, a coordinate calculation unit, an area calculation unit, a coordinate system construction unit, a dot matrix coordinate construction unit, and a bit matrix determination unit, wherein:
the traversal unit is used for traversing the gray value of each pixel point in the binarized information code image and judging that each pixel point is a white pixel point or a black pixel point;
the black point determining unit is used for respectively taking an area formed by connecting adjacent black pixel points as a black point so as to obtain a plurality of black points;
the coordinate calculation unit is used for calculating the position coordinates of the corresponding black points according to the position coordinates of all black pixel points in each black point in the information code image;
the area calculation unit is used for calculating the areas of the corresponding black points according to the areas of the left and right black pixel points in each black point;
the calculating unit is used for calculating the distance and the angle between each black point and all black points below the black point, selecting three black points with the shortest distance, and calculating the x-y axis direction and the side length of the three points;
the coordinate system construction unit is used for calculating a black point which is closest to the central point in all the black points according to the position coordinates of the central point of the set information code image, and constructing a coordinate system by using the black point as the central coordinate;
the dot matrix coordinate establishing unit is used for sequentially filling three black points with the shortest distance below each black point into a coordinate system to establish dot matrix coordinates;
and the bit matrix determining unit is used for converting all points in the lattice coordinates into matrix elements to obtain the bit matrix.
10. The information code identification system of claim 7, wherein the decoding module comprises a searching unit, a converting unit and a restoring unit, wherein:
the searching unit is used for searching the positioning points in the bit matrix according to the positions of the positioning points in the basic coding data matrix;
the conversion unit is used for converting the bit matrix into a bit stream according to the positioning points;
the restoring unit is used for decoding and checking the bit stream to restore the anti-counterfeiting information of the product.
CN202011468043.4A 2020-12-14 2020-12-14 Information code identification method and system Active CN112541369B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011468043.4A CN112541369B (en) 2020-12-14 2020-12-14 Information code identification method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011468043.4A CN112541369B (en) 2020-12-14 2020-12-14 Information code identification method and system

Publications (2)

Publication Number Publication Date
CN112541369A true CN112541369A (en) 2021-03-23
CN112541369B CN112541369B (en) 2022-08-05

Family

ID=75018661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011468043.4A Active CN112541369B (en) 2020-12-14 2020-12-14 Information code identification method and system

Country Status (1)

Country Link
CN (1) CN112541369B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113592518A (en) * 2021-08-20 2021-11-02 杭州沃朴物联科技有限公司 Anti-counterfeiting traceability label generation and verification method based on coding rule and application
CN113688645A (en) * 2021-08-11 2021-11-23 广州爱格尔智能科技有限公司 Identification method, system and equipment
CN115146751A (en) * 2022-07-05 2022-10-04 深圳市宇航软件股份有限公司 Material tracking method and MES system
CN116070592A (en) * 2023-03-07 2023-05-05 江西风向标智能科技有限公司 Multi-page paper card based on positioning points and direction page number identification method and system thereof
CN116776909A (en) * 2023-08-28 2023-09-19 四川星点网络技术有限公司 Bottle lid two-dimensional code system of tracing to source
CN116822548A (en) * 2023-08-29 2023-09-29 宁波邻家网络科技有限公司 Method for generating high recognition rate AI two-dimensional code and computer readable storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070069026A1 (en) * 2005-09-27 2007-03-29 Honda Motor Co., Ltd. Two-dimensional code detector and program thereof, and robot control information generator and robot
US20110290878A1 (en) * 2010-06-01 2011-12-01 Fujian Newland Computer Co., Ltd. Matrix-type two-dimensional barcode decoding chip and decoding method thereof
CN103177439A (en) * 2012-11-26 2013-06-26 惠州华阳通用电子有限公司 Automatically calibration method based on black and white grid corner matching
EP2779023A1 (en) * 2013-03-15 2014-09-17 Cognex Corporation Systems and methods for pattern stitching and decoding using multiple captured images
US20150090792A1 (en) * 2013-09-29 2015-04-02 Founder Mobile Media Technology (Beijing) Co., Ltd. System for decoding two dimensional code and method thereof
CN105868815A (en) * 2016-03-25 2016-08-17 立德高科(昆山)数码科技有限责任公司 Superposed-type combined identification based on same identification equipment, and generation method and system
CN106250958A (en) * 2016-03-25 2016-12-21 立德高科(昆山)数码科技有限责任公司 With hiding mark combination tag and generate method with generate system
CN106709487A (en) * 2016-12-07 2017-05-24 浙江省公众信息产业有限公司 Animal ear tag matrix encoding identification method and device
CN110222800A (en) * 2019-04-30 2019-09-10 浙江大学 A kind of two-dimension code anti-counterfeit mark image and its recognition methods based on dot matrix
CN110659709A (en) * 2019-09-18 2020-01-07 颐保医疗科技(上海)有限公司 Anti-counterfeiting two-dimensional code and generation, detection and identification method thereof
CN111767752A (en) * 2020-06-11 2020-10-13 网易宝有限公司 Two-dimensional code identification method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070069026A1 (en) * 2005-09-27 2007-03-29 Honda Motor Co., Ltd. Two-dimensional code detector and program thereof, and robot control information generator and robot
US20110290878A1 (en) * 2010-06-01 2011-12-01 Fujian Newland Computer Co., Ltd. Matrix-type two-dimensional barcode decoding chip and decoding method thereof
CN103177439A (en) * 2012-11-26 2013-06-26 惠州华阳通用电子有限公司 Automatically calibration method based on black and white grid corner matching
EP2779023A1 (en) * 2013-03-15 2014-09-17 Cognex Corporation Systems and methods for pattern stitching and decoding using multiple captured images
US20150090792A1 (en) * 2013-09-29 2015-04-02 Founder Mobile Media Technology (Beijing) Co., Ltd. System for decoding two dimensional code and method thereof
CN105868815A (en) * 2016-03-25 2016-08-17 立德高科(昆山)数码科技有限责任公司 Superposed-type combined identification based on same identification equipment, and generation method and system
CN106250958A (en) * 2016-03-25 2016-12-21 立德高科(昆山)数码科技有限责任公司 With hiding mark combination tag and generate method with generate system
CN106709487A (en) * 2016-12-07 2017-05-24 浙江省公众信息产业有限公司 Animal ear tag matrix encoding identification method and device
CN110222800A (en) * 2019-04-30 2019-09-10 浙江大学 A kind of two-dimension code anti-counterfeit mark image and its recognition methods based on dot matrix
CN110659709A (en) * 2019-09-18 2020-01-07 颐保医疗科技(上海)有限公司 Anti-counterfeiting two-dimensional code and generation, detection and identification method thereof
CN111767752A (en) * 2020-06-11 2020-10-13 网易宝有限公司 Two-dimensional code identification method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭倩等: "手机可识读的点阵编码与解码方法", 《包装学报》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113688645A (en) * 2021-08-11 2021-11-23 广州爱格尔智能科技有限公司 Identification method, system and equipment
CN113688645B (en) * 2021-08-11 2023-11-03 广州爱格尔智能科技有限公司 Identification method, system and equipment
CN113592518A (en) * 2021-08-20 2021-11-02 杭州沃朴物联科技有限公司 Anti-counterfeiting traceability label generation and verification method based on coding rule and application
CN115146751A (en) * 2022-07-05 2022-10-04 深圳市宇航软件股份有限公司 Material tracking method and MES system
CN115146751B (en) * 2022-07-05 2023-02-24 深圳市宇航软件股份有限公司 Material tracking method and MES system
CN116070592A (en) * 2023-03-07 2023-05-05 江西风向标智能科技有限公司 Multi-page paper card based on positioning points and direction page number identification method and system thereof
CN116070592B (en) * 2023-03-07 2023-10-31 江西风向标智能科技有限公司 Multi-page paper card based on positioning points and direction page number identification method and system thereof
CN116776909A (en) * 2023-08-28 2023-09-19 四川星点网络技术有限公司 Bottle lid two-dimensional code system of tracing to source
CN116776909B (en) * 2023-08-28 2023-11-03 四川星点网络技术有限公司 Bottle lid two-dimensional code system of tracing to source
CN116822548A (en) * 2023-08-29 2023-09-29 宁波邻家网络科技有限公司 Method for generating high recognition rate AI two-dimensional code and computer readable storage medium
CN116822548B (en) * 2023-08-29 2023-12-19 宁波邻家网络科技有限公司 Method for generating high recognition rate AI two-dimensional code and computer readable storage medium

Also Published As

Publication number Publication date
CN112541369B (en) 2022-08-05

Similar Documents

Publication Publication Date Title
CN112541369B (en) Information code identification method and system
JP2516294B2 (en) Method and apparatus for transmitting alphanumeric information along with document image information
US8931700B2 (en) Four dimensional (4D) color barcode for high capacity data encoding and decoding
CN105989317B (en) Two-dimensional code identification method and device
CN101432761A (en) Converting digital images containing text to token-based files for rendering
US10169629B2 (en) Decoding visual codes
US20150302236A1 (en) Method and device for identifying a two-dimensional barcode
CN105279539A (en) Dot-matrix two-dimensional code coding and decoding
CN103559527A (en) Method and system for generating two-dimension codes with graphic features
CN103607524A (en) Cigarette case 32-bit code image acquisition and processing device and cigarette case 32-bit code identification method
CN103955730A (en) Manufacturing method of anti-counterfeiting photo-etched two-dimensional code labels
CN107770540B (en) Data compression method and device for fusing multiple primitives with different reference relations
CN101833644A (en) Correction graph searching method based on dynamic template
CN115511031A (en) Capacity-expansion two-dimensional code and three-dimensional code decoding method, system, equipment and medium
CN103793736A (en) Mark formed by dot matrixes and one-dimensional code and method for generating and recognizing mark
Ruban et al. The model and the method for forming a mosaic sustainable marker of augmented reality
CN111368960B (en) Quantum anti-counterfeiting two-dimensional code generation method and scanning method
CN113506276A (en) Marker and method for measuring structure displacement
CN111275049B (en) Method and device for acquiring text image skeleton feature descriptors
CN109543803B (en) Coding system and decoding system capable of editing primary-secondary color two-dimensional codes
CN101882213B (en) Method for sampling barcode images
CN110175661A (en) The generation method and device in two dimensional code sharing path
CN105959121B (en) A kind of mobile terminal with identification verification function
CN1783136B (en) System and method for determining image resolution using MICR characters
CN114398920A (en) Code reading method, and code reading apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 230088 21 / F, building A1, phase I, Zhongan chuanggu Science Park, No. 900, Wangjiang West Road, high tech Zone, Hefei, Anhui

Applicant after: HEFEI HIGH DIMENSIONAL DATA TECHNOLOGY Co.,Ltd.

Address before: 230088 Block C, j12 Innovation Industrial Park, 2800 innovation Avenue, high tech Zone, Hefei City, Anhui Province

Applicant before: HEFEI HIGH DIMENSIONAL DATA TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant