CN102521558A - Bar code identifying method and device - Google Patents

Bar code identifying method and device Download PDF

Info

Publication number
CN102521558A
CN102521558A CN2011103676101A CN201110367610A CN102521558A CN 102521558 A CN102521558 A CN 102521558A CN 2011103676101 A CN2011103676101 A CN 2011103676101A CN 201110367610 A CN201110367610 A CN 201110367610A CN 102521558 A CN102521558 A CN 102521558A
Authority
CN
China
Prior art keywords
bar code
boundary rectangle
image
bar
dimension
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
CN2011103676101A
Other languages
Chinese (zh)
Other versions
CN102521558B (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.)
SHENZHEN PORCHESOM TECHNOLOGIES Co Ltd
Original Assignee
SHENZHEN PORCHESOM TECHNOLOGIES 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 SHENZHEN PORCHESOM TECHNOLOGIES Co Ltd filed Critical SHENZHEN PORCHESOM TECHNOLOGIES Co Ltd
Priority to CN201110367610.1A priority Critical patent/CN102521558B/en
Publication of CN102521558A publication Critical patent/CN102521558A/en
Application granted granted Critical
Publication of CN102521558B publication Critical patent/CN102521558B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention is applicable to the technical field of bar code identification and provides a bar code identifying method and device. The bar code identifying method comprises the following steps of: obtaining a binary bar code image to be identified and coordinates of a plurality of scanning original points of the image; respectively scanning the image in an up direction, a down direction, a left direction and a right direction row by row and column by column from each scanning original point according to a pre-set sequence of a plurality of the scanning original points, so as to obtain a circumscribed rectangle of a bar code in the image; and judging and obtaining a dimension quantity of the bar code according to the characteristics of the circumscribed rectangle and/or characteristics information of the bar code in the circumscribed rectangle. The purpose of identifying and judging the bar code with an unknown dimension quantity is realized, and the identification property is improved.

Description

A kind of bar code recognition and device
Technical field
The invention belongs to the Bar Code field, relate in particular to a kind of bar code recognition and device.
Background technology
Barcode technology is an emerging technology that integrates coding, printing, identification, data acquisition and processing (DAP) that on infotech and Fundamentals of Computer Technology, grows up.Because its identification is quick, accurate, reliable and low cost and other advantages, is widely used in fields such as commerce, taking care of books, warehouse, post and telecommunications, traffic and Industry Control, and certainly will in " Internet of Things " that rise gradually used, brings into play great function.
The common electronics bar code is the bar code that extensively adopts, and in the world its coding standard that carries out is had EAN-8, EAN-13; Various coding standards such as UPC-A and UPC-E; These standard application are quite extensive, yet its quantity of information that includes is quite few; It is only limited to and uses numeral, does not re-use in the epoch of this information explosion.Progress along with infotech and hardware advances; Make us be able to expand the capacity of electronic bar code; Thereby the standard and the technology of two-dimensional bar code have been produced; The international standard of common two-dimensional bar code has various standards such as PDF417, Data Matrix, MaxiCode and QR Code, and except numeral and outer symbol, some coded system can also add various countries' spoken and written languages collection.At present, the one-dimensional bar code more than 225 kinds is arranged approximately in the world, every kind of bar code all has the cover coding specification of oneself, form by several lines (Bar) and several blank (Space) to stipulate each letter (possibly be literal or numeral), and the arrangement of letter.General more popular bar code has 39 yards, the EAN sign indicating number, and the UPC sign indicating number, 128 yards, and the ISBN that is specifically designed to the books and periodicals management, ISSN etc.
Existing bar code recognition generally can only to known be that the bar code of one dimension or two dimension is discerned, perhaps only one, two type of bar code of one dimension or two-dimensional bar code is discerned judgement, and recognition performance is not high.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of bar code recognition and device, is intended to solve because prior art does not have to realize the bar code of unknown dimension is discerned judgement, and the not high problem of recognition performance.
The embodiment of the invention is achieved in that a kind of bar code recognition, and said method comprises the steps:
Obtain bar code image to be identified and a plurality of scan start point coordinates of said image after the binary conversion treatment;
Order according to preset said a plurality of scan start points begins from each scan start point successively, up and down, left and right four direction respectively to this image carry out line by line with by column scan, obtain the boundary rectangle of bar code in the said image;
According to the characteristic information of bar code in the characteristic of said boundary rectangle and/or the said boundary rectangle, judge the dimension that obtains said bar code.
Another purpose of the embodiment of the invention is to provide a kind of bar code identifying device, and said device comprises:
The scan start point acquiring unit is used to obtain bar code image to be identified and a plurality of scan start point coordinates of said image after the binary conversion treatment;
The boundary rectangle acquiring unit; Be used for order according to preset said a plurality of scan start points; Begin from each scan start point successively, up and down, left and right four direction respectively to this image carry out line by line with by column scan, obtain the boundary rectangle of bar code in the said image; And
The dimension acquiring unit is used for the characteristic information according to the characteristic and/or the said boundary rectangle bar code of said boundary rectangle, judges the dimension that obtains said bar code.
The embodiment of the invention is through obtaining bar code image to be identified and a plurality of scan start point coordinates of this image after the binary conversion treatment; Order according to these preset a plurality of scan start points; Begin from each scan start point successively; Up and down, left and right four direction respectively to this image carry out line by line with by column scan, obtain the boundary rectangle of bar code in this image; Characteristic information according to bar code in the characteristic of this boundary rectangle and/or this boundary rectangle; Judge the dimension that obtains this bar code; Solved because prior art does not have to realize the bar code of unknown dimension is discerned judgement; And the problem that recognition performance is not high, thereby identification bar code dimension automatically, recognition performance also is improved.
Description of drawings
Fig. 1 is the realization flow figure of the bar code recognition that provides of first embodiment of the invention;
Fig. 2 is the realization flow figure of the bar code recognition that provides of first embodiment of the invention;
Fig. 3 is the synoptic diagram of the bar code that provides of the embodiment of the invention;
Fig. 4 a, 4b are respectively the bar code that provides of the embodiment of the invention and the synoptic diagram of two-dimensional bar code;
Fig. 5 is the realization flow figure of the bar code recognition that provides of first embodiment of the invention;
Fig. 6 be in the bar code recognition that provides of second embodiment of the invention the optimal brightness value obtain process flow diagram;
Fig. 7 is the realization flow figure of the bar code recognition that provides of third embodiment of the invention;
Fig. 8 is the structural drawing of the bar code identifying device that provides of fourth embodiment of the invention.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention is through obtaining the boundary rectangle of image to be identified; Obtain the dimension of bar code in this image according to the characteristic information of bar code in this boundary rectangle and/or this boundary rectangle; Realized the bar code of unknown dimension discerned and judged and the identification of a plurality of bar codes that piece image comprised is judged, made that also recognition performance is improved.
The embodiment of the invention provides a kind of bar code recognition, and said method comprises the steps:
Obtain bar code image to be identified and a plurality of scan start point coordinates of said image after the binary conversion treatment;
Order according to preset said a plurality of scan start points begins from each scan start point successively, up and down, left and right four direction respectively to this image carry out line by line with by column scan, obtain the boundary rectangle of bar code in the said image;
According to the characteristic information of bar code in the characteristic of said boundary rectangle and/or the said boundary rectangle, judge the dimension that obtains said bar code.
The embodiment of the invention also provides a kind of bar code identifying device, and said device comprises:
The scan start point acquiring unit is used to obtain bar code image to be identified and a plurality of scan start point coordinates of said image after the binary conversion treatment;
The boundary rectangle acquiring unit; Be used for order according to preset said a plurality of scan start points; Begin from each scan start point successively, up and down, left and right four direction respectively to this image carry out line by line with by column scan, obtain the boundary rectangle of bar code in the said image; And
The dimension acquiring unit is used for the characteristic information according to the characteristic and/or the said boundary rectangle bar code of said boundary rectangle, judges the dimension that obtains said bar code.
The embodiment of the invention is through obtaining bar code image to be identified and a plurality of scan start point coordinates of this image after the binary conversion treatment; Order according to these preset a plurality of scan start points; Begin from each scan start point successively; Up and down, left and right four direction respectively to this image carry out line by line with by column scan, obtain the boundary rectangle of bar code in this image; Characteristic information according to bar code in the characteristic of this boundary rectangle and/or this boundary rectangle; Judge the dimension that obtains this bar code; Realized the bar code of unknown dimension discerned and judged and the identification of a plurality of bar codes that piece image comprised is judged, also improved the purpose of recognition performance.
Below in conjunction with specific embodiment concrete realization of the present invention is described in detail:
Bar code is claimed linear bar code again, is made up of a plurality of " bars " that are arranged in parallel and " sky " unit, and bar code information relies on bar and empty different in width and position to express.Two-dimensional bar code is made up of the chequered with black and white particular geometric figure that on two-dimensional directional, distributes according to certain rules, its can be on two-dimensional directional expressing information.Two-dimensional bar code can be divided into determinant two-dimensional bar code and matrix two-dimensional barcode.The determinant two-dimensional bar code is that the bar code by the multirow cutting back piles up and forms, and representational determinant two-dimensional bar code comprises PDF417, Code49, Code 16k etc.Determinant two-dimensional barcode information method for expressing and bar code are similar, also are to rely on bar and empty different in width and position to express.Matrix two-dimensional barcode is made up of black, the white module that is distributed in by pre-defined rule in the matrix, and representational matrix two-dimensional barcode comprises QR sign indicating number, Data Matrix sign indicating number, Maxi sign indicating number, Aztec sign indicating number, Chinese letter co etc.
Embodiment one:
Fig. 1 shows the realization flow of the bar code recognition that first embodiment of the invention provides, and details are as follows:
In step S101, obtain bar code image to be identified and a plurality of scan start point coordinates of this image after the binary conversion treatment.
In the practical implementation process, at first obtain colour barcode image to be identified, and this colour barcode image is carried out gray processing handle from camera; Then obtain this image after gray processing is handled, calculate the histogram of this image, form because bar code generally is black brightness and white brightness; Crest and a crest then in this histogram, will occur, therefore can confirm an optimal brightness value between two crests, this image will be cut apart near the white brightness zone near the black luminance area; If the distance of two peak values is more approaching; Less than preset distance value, think that then the contrast of this image is not enough, there is not the condition of bar code; Two peak values are distant, then think to have bar code, obtain certain middle optimal brightness value of these two peak values; With the judgment threshold of this value, the gray-scale value greater than threshold value in the image is made as 1, otherwise is 0 as image binaryzation; Thereby obtain the image to be identified after the binary conversion treatment, and then can obtain a plurality of scan start point coordinates of this image, a plurality of scan start point coordinates of this image comprise the center point coordinate of said image etc.; For example so that (Xc Yc) representes the coordinate of this central point.Particularly, at first need treat the piecemeal that the identification bar code image is preset number, obtain the central point of each piece image behind the piecemeal; Then the central point of each piece image is the scan start point of this image behind the piecemeal, has then obtained a plurality of scan start points of this image, in actual identifying; Can this bar code image to be identified be divided into four; Obtain the central point of these four block images behind the piecemeal, add the central point of this view picture image to be identified, can obtain 5 scan start points.
Particularly, it is said to obtain the following embodiment of this detailed process as the optimal brightness value of image binaryzation or threshold value two, but is not limited to the acquisition process of this embodiment, repeats no more at this.
In embodiments of the present invention because existing one dimension or two-dimensional bar code are that 0 black and gray-scale value are that 1 white is formed by gray-scale value, image is carried out binary conversion treatment after, carry out obtaining and the judgement of dimension of bar code again, make the result more accurate.
In step S102, the order according to preset this a plurality of scan start points begins from each scan start point successively, up and down, left and right four direction carries out line by line this image respectively and pursue column scan, obtains the boundary rectangle of bar code in this image.
Wherein, The order of these a plurality of scan start points that should be preset can preestablish according to user's needs; Such as the central point of this image to be identified that can these a plurality of scan start points are included as first scan start point, other according to upper left, upper right, the left side of image down, orders of bottom right sort to remaining scan start point.
This step S102 specifically may further comprise the steps, the center point coordinate of this image to be identified be (Xc, Yc), as shown in Figure 2:
Among the step S221, obtain first scan start point of these a plurality of scan start points.
Among the step S222, begin, this bar code image is lined by line scan, confirm minimum ordinate and maximum ordinate from this scan start point.
Particularly, be the initial point (0,0) of coordinate system X-Y with the upper left corner of image, level is to the right a directions X, and abscissa value increases from left to right gradually, and vertical direction is the Y direction, and ordinate increases from top to bottom gradually.Then from scan start point (horizontal scanning) this image that begins down to line by line scan, ordinate value increases gradually, adds 1 line by line; According to scanning sequency, the number that pixel value is 1 (expression white) continuously appears, if this number is greater than the pixel threshold of presetting in each row image on the calculating direction of scanning; Pixel threshold that should be preset can be 1/4 of the total number of each row pixel of this bar code image; Then thinking the border of bar code, is white portion around the bar code, and the corresponding ordinate of this row this moment is maximum ordinate Ymax value; Otherwise continue scanning, obtain this Ymax.Equally, begin this image of up lining by line scan from scan start point, ordinate value is less gradually; Subtract 1 line by line,, calculate on the direction of scanning in each row image then according to scanning sequency; Pixel value occurring is the number of 1 (representing white) continuously, and greater than preset pixel threshold, this preset pixel threshold can be 1/4 of each total number of pixel of going of image as if this number; Then thinking the border of bar code, is white portion around the bar code, and this moment, the ordinate of this row was minimum ordinate Ymin value.
In the practical implementation process, be the transverse horizontal bar code of one dimension for barcode types, this moment, Ymax value and the Ymin value scope obtained were less, and for the vertically vertically bar code or the two-dimensional bar code of one dimension, Ymax value and the Ymin value scope obtained at this moment are bigger.
Among the step S223, begin, this image is pursued column scan, confirm minimum horizontal ordinate and maximum horizontal ordinate from this scan start point.
Particularly, begin to turn left by this image of column scan (vertical scanning) from this scan start point, abscissa value reduces gradually; Subtract 1 by row,, calculate on the direction of scanning in each row image according to scanning sequency; Pixel value occurring is the number of 1 (expression white) continuously; If this number is greater than preset pixel threshold, this preset pixel threshold can be 1/4 of the total number of pixel of each row of image, then thinks the border of bar code; Around the bar code is white portion, and this moment, the horizontal ordinate of these row was minimum horizontal ordinate Xmin.Equally, begin to turn right by this image of column scan (vertical scanning) from this scan start point, abscissa value increases gradually, adds 1 by row, according to above-mentioned condition, can obtain maximum abscissa value Xmax.
In the practical implementation process, be the vertical vertical bar code of one dimension for barcode types, Xmax value and the Xmin value scope that obtain this moment are less, and for the transverse horizontal bar code or the two-dimensional bar code of one dimension, Xmax value and the Xmin value scope obtained at this moment are bigger.
Among the step S224,, obtain and preserve the boundary rectangle of this bar code according to the maximum horizontal ordinate that obtains, minimum horizontal ordinate, maximum ordinate, minimum ordinate.
Particularly, with (Xmin, Ymin), (Xmax, Ymin), (Xmin, Ymax), (Xmax is tetragonal four summits Ymax), confirms boundary rectangle.
Among the step S225, judge whether this scan start point is last scan start point of these a plurality of scan start points, is, then execution in step S227 withdraws from, deny, then execution in step S226.
Among the step S226, obtain next scan start point of these a plurality of scan start points, and return execution in step S222.
In embodiments of the present invention, this bar code recognition is supported the identification of a plurality of bar codes in the piece image, when having a plurality of bar code in this image, utilizes above-mentioned steps S221 to S227 can obtain the boundary rectangle of each bar code in this image.In addition; If the user only need discern near the bar code this picture centre to be identified, then can set central point with this will this a plurality of scan start points included image to be identified as first scan start point, thereby after obtaining first boundary rectangle, just directly withdraw from; Carrying out following step S103 gets final product; Can obtain near the boundary rectangle of the bar code in these other positions of image to be identified according to actual needs equally, thereby improve recognition efficiency.
In step S103,, judge the dimension that obtains this bar code according to the characteristic information of bar code in the characteristic of this boundary rectangle and/or this boundary rectangle.
In the practical implementation process; The length of the characteristic bag boundary rectangle of this boundary rectangle, high; The length of this boundary rectangle is meant the distance of boundary rectangle between the length on the directions X or Xmax and Xmin, and the height of boundary rectangle is meant that boundary rectangle is in length Ymax on the Y direction and the distance between the Ymin, after obtaining the boundary rectangle of bar code; If the length (distance between Xmax and the Xmin) of this boundary rectangle is less than the pre-set length value; Or the height of this boundary rectangle (distance between Ymax and the Ymin) thinks that then this bar code is not a two-dimensional bar code during less than preset height value, and the dimension of confirming this bar code is one; When the length of this boundary rectangle less than the pre-set length value, and the higher primary school of this boundary rectangle then thinks not have bar code when preset height value; When the length of this boundary rectangle less than the pre-set length value, and this boundary rectangle is tall and big when preset height value, thinks that then this bar code is the vertical-type bar code, as shown in Figure 3; When the higher primary school of this boundary rectangle in preset height value, and growing up when the pre-set length value of this boundary rectangle thinks that then this bar code is the horizontal type bar code, rather than two-dimensional bar code; If growing up of this boundary rectangle in the pre-set length value; And this boundary rectangle is tall and big when preset height value; Then need further to combine the characteristic information of this bar code to confirm the dimension of this bar code, the characteristic information of this bar code is meant the empty width information of the bar of this bar code, comprises bar sky width value; The empty distributed intelligences of bar etc., this empty distributed intelligence is meant whether the empty distribution of bar of any 2 row or multirow is mutually equal.
Particularly, if the growing up in the pre-set length value of this boundary rectangle, and this boundary rectangle is tall and big when preset height value; Can be at random any 2 row or 2 row bar codes in repeatedly vertical or this boundary rectangle of horizontal scanning; If exist in this 2 row bar code in the empty width information of identical bar or this 2 row bar code and have the empty width information of identical bar, think that then this bar code is a bar code, shown in Fig. 4 a; And, think that then bar code is a level if the empty width of each row bar is equal basically; If the empty width of each row bar equates basically, think that then bar code is vertical, otherwise think that this bar code is a two-dimensional bar code; Shown in Fig. 4 b, the number of times of this scanning can be set according to user's needs, and scanning times is many more; The reliability of data is stable more, and judged result is accurate more.
In addition, after definite this bar code is bar code, according to the direction of these 2 row or 2 row bar ceases to be busy of the identical empty width of bar in the bar codes; If the direction of this ceases to be busy when then the bar code kind is judged afterwards, can only be carried out vertical scanning for the vertical vertical direction of perhaps being partial to; Specifically can carry out from top to bottom and vertical alternate sweep from top to bottom, just can confirm the type of this bar code, equally at a distance from row; If the direction of this ceases to be busy is level or is partial to horizontal direction, when then the bar code kind is judged afterwards, can only carry out horizontal scanning; Specifically can interlacing carry out from left to right and horizontal alternate sweep from right to left, thereby no matter bar code along putting, falling to put; Rotating and putting; Can discern its type, make this confirm that the method for the type of this bar code has stronger adaptability, and can improve the recognition speed of barcode types.
In embodiments of the present invention, this bar code recognition is supported the identification of a plurality of bar codes in the piece image, when having a plurality of bar code in this image; According to the order that detects these a plurality of bar codes, judge the dimension that obtains these a plurality of bar codes, particularly; At first need treat the piecemeal that the identification bar code image is preset number,, obtain the central point of each piece image behind the piecemeal such as being divided into five; Then after treating the identification bar code image and carrying out binary conversion treatment, begin from the central point of each piece image, also promptly begin from scan start point; Up and down, left and right four direction respectively to this image carry out line by line with by column scan, obtain the boundary rectangle of each bar code in this image, then obtain the characteristic information of bar code in characteristic and/or this boundary rectangle of boundary rectangle of this each bar code one by one; Characteristic information according to bar code in the characteristic of the boundary rectangle of each bar code and/or this boundary rectangle is judged the dimension that obtains this bar code; Owing to when identification a plurality of bar code that piece image comprised, in advance bar code image is preset the piecemeal of number, obtain the central point or the scan start point of each piece image behind the piecemeal again; Can guarantee that the scan start point that is obtained drops in these a plurality of bar codes; Thereby can carry out next step bar code dimension identification, also make this method can adapt to the application scenarios of multiple bar code, have stronger adaptivity.
This bar code recognition is further comprising the steps of, and is as shown in Figure 5:
In S501, when the dimension of judging this bar code is one dimension,, perhaps this image is carried out the empty information of bar obtained after the pre-service according to the characteristic information of bar code in this boundary rectangle, judge the empty information of the bar that whether has coupling in the preset multiple barcode types table.
Particularly; After definite this bar code is bar code; Characteristic information according to bar code in this boundary rectangle that has obtained; Can judge the empty information of the bar that whether has coupling in the preset multiple barcode types table; As can't judge then after definite this bar code is bar code, also can adopt 1 dimension image edge processing method to handle pretreatment operation such as this bar code image and automatic noise removal function, with the empty information of the bar that obtains this bar code more accurately; This empty information is for through carrying out the empty characteristic information of multirow bar that vertical or horizontal scanning etc. are obtained to this bar code according to the direction of bar ceases to be busy, also promptly further obtains the empty width information of bar of this bar code after the pre-service and the direction of bar ceases to be busy.
Wherein, Should preset multiple barcode types table be pre-configured before identification bar code; Dispose polytype bar code and corresponding bar code characteristic; Use when carrying out the identification of bar code with convenient, and the user can add in bar code to the type table of other types as required at any time, have extendability preferably.Each barcode types is placed the frequency ordering according to the barcode types of using in this table; Also promptly dispose the detection identification priority level of each bar code; Make detected bar code in present image, when the priority of its configuration is the highest, then after obtaining the type of this bar code; Then needn't continue to detect the bar code of the type of back, thereby improve bar-code identification speed.
In S502, when having the bar sky information of coupling, obtain the corresponding barcode types of the empty information of bar with this coupling.
In S503, according to this barcode types this bar code is discerned, and the output recognition result.
In the practical implementation process, if the bar code of present image is ean13, then carry out the bar-code identification of ean13 type, Fig. 3 is an ean13 type bar code image.Confirm final types results according to the empty width information of the bar of this bar code multirow, and with this result's output.
In embodiments of the present invention, the determination methods of this bar code type is through earlier bar code being carried out pre-service, like rim detection, denoising etc.; Carry out fine scanning again according to bar ceases to be busy direction; Obtain the empty information of bar,, obtain the types results of bar code in conjunction with this empty information and preset multiple barcode types table; Make the bar-code identification precision be improved, misclassification rate is reduced.
This bar code recognition also comprises the type determining step to two-dimensional bar code, and the following embodiment of its concrete implementation procedure three is said, repeats no more at this.
Embodiment two:
Fig. 6 shows the flow process of obtaining of optimal brightness value in the bar code recognition that second embodiment of the invention provides; Be specially coloured image to be identified is carried out the gray processing processing; After obtaining the histogram of this gray level image, this image is carried out binary conversion treatment (two-value is 0,1), obtain as the optimal brightness value of binaryzation or the process of threshold value; But be not limited to the acquisition process of this embodiment, details are as follows:
In step S601, obtain first peak value and the first corresponding gray-scale value of this first peak value in this histogram.
Particularly; This first peak value is the number that occurs maximum a certain gray-scale values in this gray level image; Also i.e. maximal value in this histogram is represented with maxBucketCount, and is obtained the first corresponding gray-scale value of this maximal value; Also promptly this maximum a certain gray-scale values occurs in this gray level image, represent with firstPeak.In addition, when occurring more than one of maximum gray-scale value in this gray level image, then can get the pairing peak value of the less gray scale of gray-scale value as first peak value.
In step S602, obtain second peak value and the second corresponding gray-scale value of this second peak value in this histogram.
Particularly; Represent other gray-scale values except that gray-scale value firstPeak with i; DistanceToBiggest representes the distance of i to firstPeak, is gray value differences also, and histogram [i] representes the histogram value that this i is corresponding; The number that also promptly occurs gray-scale value i in this gray level image, then utilize following formula (1) to obtain the corresponding peak value score [i] of i:
score[i]=histogram[i]*distanceToBiggest ∧2 (1)
Thereby, utilize formula (1) can obtain the corresponding peak value of every other gray-scale value except that firstPeak, then wherein largest peaks is second peak value in this histogram, and obtains the second corresponding gray-scale value of this second peak value, representes with secondPeak.
In step S603,, exchange this first gray-scale value and this second gray-scale value when this first gray-scale value during greater than this second gray-scale value.
Particularly, compare firstPeak and secondPeak, if firstPeak is greater than secondPeak; Then exchanging this two data, is small data to guarantee firstPeak, makes promptly that also the corresponding brightness value of this firstPeak is less; Near black, and secondPeak is near white portion.
In step S604, whether the difference of judging this second gray-scale value and this first gray-scale value is then continue execution in step S605, otherwise execution in step S606 to withdraw from greater than preset distance value.
In embodiments of the present invention, can know, represent the maximum gradation value of this gray level image with numBuckets according to the data that actual tests is obtained; If the value that secondPeak subtracts firstPeak explains then that smaller or equal to (numBuckets/16) the contrast effect of this gray level image is bad, image carry out content represented after the binaryzation can with true picture in have than mistake; Then explain not have bar code in this image, also even the distance of two peak values is more approaching, less than preset distance value numBuckets/16; Think that then the contrast of this image is not enough; The condition that does not have bar code then withdraws from this bar-code identification process this moment, otherwise continues execution in step S605.
In step S605,, confirm the threshold value of best binaryzation according to this second gray-scale value and this first gray-scale value.
Particularly, be illustrated in the gray-scale value between this second gray-scale value secondPeak and this first gray-scale value firstPeak with j, fromFirst represents the distance of j and firstPeak, then utilizes following formula (2) to obtain the trough value SCORE [j] of j:
SCORE[j]=fromFirst ∧2*(secondPeak-j)*(maxBucketCount-histogram[j]) (2)
Thereby; Utilize formula (1) can obtain the pairing trough value of gray-scale value between this second gray-scale value secondPeak and this first gray-scale value firstPeak, thereby confirm that wherein maximum trough value corresponding gray scale value is needed optimal brightness value or the threshold value that is used for image binaryzation.
In embodiments of the present invention; This method of obtaining the optimal brightness value makes this trough more near white portion, rather than near black region, also promptly the threshold value as binaryzation is bigger; Thereby make the better effects if of image binaryzation; It is more accurate to cut apart, and the image to be identified after the binaryzation more approaches the represented content of real image, and then makes that to obtain the result that bar code and bar code dimension in the image judge more accurate.
Embodiment three:
Fig. 7 shows the flow process of in the bar code recognition that third embodiment of the invention provides the two-dimensional bar code type being judged, details are as follows:
In step S701, when the dimension of judging this bar code is two dimension, judge the characteristic that one type bar code characteristic in the multiple barcode types table that whether exists in this boundary rectangle and preset is complementary.
Wherein, Should preset multiple barcode types table be pre-configured before identification bar code; Dispose polytype bar code and corresponding bar code characteristic; Use when carrying out the identification of bar code with convenient, and the user can add as required at any time or bar code to the type table of other types in, have extendability preferably.Each barcode types is placed the frequency ordering according to the barcode types of using in this table; Also promptly dispose the detection identification priority level of each bar code; Make detected bar code in present image, when the priority of its configuration is the highest, then after obtaining the type of this bar code; Then needn't continue to detect the bar code of the type of back, thereby improve bar-code identification speed.
In step S702, when having the characteristic of coupling, obtain the barcode types corresponding with this characteristic.
In step S703, according to this barcode types this bar code is discerned, and the output recognition result.
In the practical implementation process; When this bar code is two-dimensional bar code; At first obtain the characteristic of the bar code of first type (priority is the highest) in this preset multiple barcode types table, judge this characteristic that in this boundary rectangle, whether has coupling, be; The bar code of first type (priority is the highest) in the multiple barcode types table that then should preset is the type of this bar code to be identified, withdraws from identifying; Not; Then continue to obtain the characteristic of next type bar code in this preset multiple barcode types table; Continue the repetition above-mentioned steps; When having the characteristic of coupling, withdraw from, perhaps do not exist in this bar code boundary rectangle with preset multiple barcode types table in all types of two-dimensional bar code characteristics be complementary characteristic the time withdraw from.
Concrete; Such as, the bar code of at first obtaining first type (priority is the highest) in this preset multiple barcode types table is the QR sign indicating number, then the bar code of this QR sign indicating number is characterized as the position locator symbol; Then the periphery of 4 points of bar code boundary rectangle be divided in the zone for a short time or All Ranges in; Position the search of detector symbol respectively,, then search for the bar code characteristic of another kind of two-dimensional bar code if can not find.
In addition, also can the multiple barcode types table of presetting be carried out classification configurations according to linear code and matrix bar code, then in the deterministic process of distinguishing barcode types; Can judge by level, at first judge the characteristic that whether has linear code in this boundary rectangle, be; Then carry out the judgement of concrete a certain linear code characteristic; Otherwise this bar code is the matrix bar code, carries out the judgement of concrete a certain matrix bar code characteristic equally.After obtaining the type of bar code, this bar code is deciphered according to prior art, with identification and the output information that bar code was comprised.
In embodiments of the present invention, this method that two-dimensional bar code type is judged has combined the characteristic of bar code in preset multiple barcode types table and the boundary rectangle, carries out the judgement of barcode types and obtains, and improves bar-code identification speed.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be stored in the computer read/write memory medium; Described storage medium is like ROM/RAM, disk, CD etc.
Embodiment four:
Fig. 8 shows the structure of the bar code identifying device that fourth embodiment of the invention provides, and for the ease of explanation, only shows the part relevant with the embodiment of the invention.
This bar code identifying device comprises scan start point acquiring unit 81, boundary rectangle acquiring unit 82 and dimension acquiring unit 83, wherein:
Scan start point acquiring unit 81 is used to obtain bar code image to be identified and a plurality of scan start point coordinates of this image after the binary conversion treatment.
In embodiments of the present invention, at first obtain coloured image to be identified, and this coloured image is carried out gray processing handle from camera; Then obtain this image after gray processing is handled, calculate the histogram of this image, form because bar code generally is black brightness and white brightness; Crest and a crest then in this histogram, will occur, therefore can confirm an optimal brightness value between two crests, this image will be cut apart near the white brightness zone near the black luminance area; If the distance of two peak values is more approaching; Less than preset distance value, think that then the contrast of this image is not enough, there is not the condition of bar code; Two peak values are distant; Then think to have bar code, obtain certain middle optimal brightness value of these two peak values, with the judgment threshold of this value as image binaryzation; Gray-scale value greater than threshold value in the image is made as 1; Otherwise be 0, thereby utilize scan start point acquiring unit 81 to obtain image to be identified and a plurality of scan start point coordinates of this image after the binary conversion treatment, a plurality of scan start point coordinates of this image comprise the center point coordinate of said image etc.Particularly, at first need treat the piecemeal that the identification bar code image is preset number, obtain the central point of each piece image behind the piecemeal; Then the central point of each piece image is the scan start point of this image behind the piecemeal, has then obtained a plurality of scan start points of this image, in actual identifying; Can this bar code image to be identified be divided into four; Obtain the central point of these four block images behind the piecemeal, add the central point of this view picture image to be identified, can obtain 5 scan start points.
Boundary rectangle acquiring unit 82; Be used for order according to these preset a plurality of scan start points; Begin from each scan start point successively, up and down, left and right four direction respectively to this image carry out line by line with by column scan, obtain the boundary rectangle of bar code in this image.
In embodiments of the present invention; The order of these a plurality of scan start points that should be preset can preestablish according to user's needs; Such as the central point of this image to be identified that can these a plurality of scan start points are included as first scan start point, other according to upper left, upper right, the left side of image down, orders of bottom right sort to remaining scan start point.Utilize the order of boundary rectangle acquiring unit 82, begin from each scan start point successively, this bar code image is lined by line scan according to these preset a plurality of scan start points; Confirm minimum ordinate and maximum ordinate; Begin from this scan start point again, this image is pursued column scan, confirm minimum horizontal ordinate and maximum horizontal ordinate; Last according to the maximum horizontal ordinate, minimum horizontal ordinate, maximum ordinate, the minimum ordinate that obtain, can obtain the boundary rectangle of this bar code.
Dimension acquiring unit 83 is used for the characteristic information according to the characteristic of this boundary rectangle and/or this boundary rectangle bar code, judges the dimension that obtains this bar code.
This dimension acquiring unit 83 specifically comprises:
First judging unit is used for length when this boundary rectangle less than the pre-set length value, or the higher primary school of this boundary rectangle is when preset height value, and then the dimension of this bar code is one;
Second judging unit is used for length when this boundary rectangle less than the pre-set length value, and then there is not bar code in the higher primary school of this boundary rectangle in this image when preset height value; And
The 3rd judging unit is used for when the growing up in the pre-set length value of this boundary rectangle, and this boundary rectangle is tall and big when preset height value, then according to the empty width information of the bar of bar code in this boundary rectangle, confirms that further the dimension of this bar code is one or two.
In embodiments of the present invention; The length of the characteristic bag boundary rectangle of this boundary rectangle, high; The length of this boundary rectangle is meant the distance of boundary rectangle between the length on the directions X or Xmax and Xmin, and the height of boundary rectangle is meant that boundary rectangle is in length Ymax on the Y direction and the distance between the Ymin.After obtaining the boundary rectangle of bar code; If the length (distance between Xmax and the Xmin) of this boundary rectangle is less than the pre-set length value; Or the height of this boundary rectangle (distance between Ymax and the Ymin) is during less than preset height value; Think that then this bar code is not a two-dimensional bar code, the dimension of confirming this bar code is one; When the length of this boundary rectangle less than the pre-set length value, and the higher primary school of this boundary rectangle then thinks not have bar code when preset height value; When the length of this boundary rectangle less than the pre-set length value, and this boundary rectangle is tall and big when preset height value, thinks that then this bar code is the vertical-type bar code, as shown in Figure 3; When the higher primary school of this boundary rectangle in preset height value, and growing up when the pre-set length value of this boundary rectangle thinks that then this bar code is the horizontal type bar code, rather than two-dimensional bar code; If growing up of this boundary rectangle in the pre-set length value; And this boundary rectangle is tall and big when preset height value; Then need further to combine the characteristic information of this bar code to confirm the dimension of this bar code, the characteristic information of this bar code is meant the empty width information of the bar of this bar code, comprises bar sky width value; The empty distributed intelligences of bar etc., this empty distributed intelligence is meant whether the empty distribution of bar of any 2 row or multirow is mutually equal.
Particularly, if the growing up in the pre-set length value of this boundary rectangle, and this boundary rectangle is tall and big when preset height value; Can be at random any 2 row or 2 row bar codes in repeatedly vertical or this boundary rectangle of horizontal scanning; If exist in this 2 row bar code in the empty width information of identical bar or this 2 row bar code and have the empty width information of identical bar, think that then this bar code is a bar code, shown in Fig. 4 a; And, think that then bar code is a level if the empty width of each row bar is equal basically; If the empty width of each row bar equates basically, think that then bar code is vertical, otherwise think that this bar code is a two-dimensional bar code; Shown in Fig. 4 b, the number of times of this scanning can be set according to user's needs, and scanning times is many more; The reliability of data is stable more, and judged result is accurate more.
In addition, after definite this bar code is bar code, according to the direction of these 2 row or 2 row bar ceases to be busy of the identical empty width of bar in the bar codes; If the direction of this ceases to be busy when then the bar code kind is judged afterwards, can only be carried out vertical scanning for the vertical vertical direction of perhaps being partial to; Specifically can carry out from top to bottom and vertical alternate sweep from top to bottom, just can confirm the type of this bar code, equally at a distance from row; If the direction of this ceases to be busy is level or is partial to horizontal direction, when then the bar code kind is judged afterwards, can only carry out horizontal scanning; Specifically can interlacing carry out from left to right and horizontal alternate sweep from right to left, thereby no matter bar code along putting, falling to put; Rotating and putting; Can discern its type, make this confirm that the method for the type of this bar code has stronger adaptability, and can improve the recognition speed of barcode types.
In embodiments of the present invention, this bar code identifying device is supported the identification of a plurality of bar codes in the piece image, when having a plurality of bar code in this image; According to the order that detects these a plurality of bar codes, judge the dimension that obtains these a plurality of bar codes, particularly; At first need treat the piecemeal that the identification bar code image is preset number,, obtain the central point of each piece image behind the piecemeal such as being divided into five; Then after treating the identification bar code image and carrying out binary conversion treatment, begin from the central point of each piece image, also promptly begin from scan start point; Up and down, left and right four direction respectively to this image carry out line by line with by column scan, obtain the boundary rectangle of each bar code in this image, then obtain the characteristic information of bar code in characteristic and/or this boundary rectangle of boundary rectangle of this each bar code one by one; Characteristic information according to bar code in the characteristic of the boundary rectangle of each bar code and/or this boundary rectangle is judged the dimension that obtains this bar code; Owing to when identification a plurality of bar code that piece image comprised, in advance bar code image is preset the piecemeal of number, obtain the central point or the scan start point of each piece image behind the piecemeal again; Can guarantee that the scan start point that is obtained drops in these a plurality of bar codes; Thereby can carry out next step bar code dimension identification, also make this method can adapt to the application scenarios of multiple bar code, have stronger adaptivity.
The embodiment of the invention has solved is carrying out bar code when discerning automatically to piece image, obtain image to be identified and the scan start point coordinate of this image after the binary conversion treatment through this scan start point acquiring unit 81; Boundary rectangle acquiring unit 82 is according to the order of these preset a plurality of scan start points; Begin from each scan start point successively; Up and down, left and right four direction respectively to this image carry out line by line with by column scan, obtain the boundary rectangle of bar code in this image and realized under the dimension situation of unknown bar code; Boundary rectangle that dimension acquiring unit 83 gets access to according to the characteristic of bar code and bar code characteristic information wherein etc.; Obtained the dimension of bar code; Thereby can further discern kind and the information etc. of the bar code of this dimension; And multiple scan mode is supported in this recognition methods, has also improved the recognition performance of bar code.
This bar code identifying device also comprises:
Matching unit; Be used for when the dimension of judging this bar code is one dimension; According to the characteristic information of bar code in this boundary rectangle, the empty information of bar of perhaps this image being carried out obtaining after the pre-service is judged the empty information of the bar that whether has coupling in the preset multiple barcode types table; And
Bar code type acquiring unit is used for when having the bar sky information of coupling, obtaining the corresponding barcode types of the empty information of bar with this coupling.
Wherein, Should preset multiple barcode types table be pre-configured before identification bar code; Dispose polytype bar code and corresponding bar code characteristic; Use when carrying out the identification of bar code with convenient, and the user can add as required at any time or bar code to the type table of other types in, have extendability preferably.Each barcode types is placed the frequency ordering according to the barcode types of using in this table; Also promptly dispose the detection identification priority level of each bar code; Make detected bar code in present image, when the priority of its configuration is the highest, then after obtaining the type of this bar code; Then needn't continue to detect the bar code of the type of back, thereby improve bar-code identification speed.
In embodiments of the present invention; After definite this bar code is bar code; Adopt 1 dimension image edge processing method to handle pretreatment operation such as this bar code image and automatic noise removal function, with the empty information of the bar that obtains this bar code more accurately, this empty information is through this bar code is carried out the empty width information of multirow bar that vertical or horizontal scanning etc. are obtained according to the direction of bar ceases to be busy; In conjunction with this empty information and preset multiple barcode types table; Obtain the types results of bar code, make the bar-code identification precision be improved, misclassification rate is reduced.
This bar code identifying device also comprises:
Judging unit is used for when the dimension of judging this bar code is two dimension, judging the characteristic that one type bar code characteristic in the multiple barcode types table that whether exists in this boundary rectangle and preset is complementary; And
Two-dimensional bar code type acquiring unit is used for when having the characteristic of coupling, obtaining the barcode types corresponding with this characteristic.
This bar code identifying device also comprises:
Output unit is used for according to this barcode types this bar code being discerned, and the output recognition result.
In embodiments of the present invention; When this bar code is two-dimensional bar code; At first obtain the characteristic of the bar code of first type (priority is the highest) in this preset multiple barcode types table, judge this characteristic that in this boundary rectangle, whether has coupling, be; The bar code of first type (priority is the highest) in the multiple barcode types table that then should preset is the type of this bar code to be identified, withdraws from identifying; Not; Then continue to obtain the characteristic of next type bar code in this preset multiple barcode types table; Continue the repetition above-mentioned steps; When having the characteristic of coupling, withdraw from, perhaps do not exist in this bar code boundary rectangle with preset multiple barcode types table in all types of two-dimensional bar code characteristics be complementary characteristic the time withdraw from.
This method that two-dimensional bar code type is judged that the embodiment of the invention provides in conjunction with the characteristic of bar code in preset multiple barcode types table and the boundary rectangle, is carried out the judgement of barcode types and is obtained, and improves bar-code identification speed.
The embodiment of the invention is through obtaining bar code image to be identified and the scan start point coordinate of this image after the binary conversion treatment; Order according to these preset a plurality of scan start points; Begin from each scan start point successively, up and down, left and right four direction respectively to this image carry out line by line with by column scan, obtain the boundary rectangle of bar code in this image; Characteristic information according to bar code in the characteristic of this boundary rectangle and/or this boundary rectangle; Judge the dimension that obtains this bar code, solved because prior art does not have to realize the bar code of unknown dimension is discerned judgement, and the not high problem of recognition performance; Reach the purpose that the bar code of unknown dimension is discerned judgement and the identification of a plurality of bar codes that piece image comprised is judged, and improved recognition performance.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a bar code recognition is characterized in that, said method comprises the steps:
Obtain bar code image to be identified and a plurality of scan start point coordinates of said image after the binary conversion treatment;
Order according to preset said a plurality of scan start points begins from each scan start point successively, up and down, left and right four direction respectively to this image carry out line by line with by column scan, obtain the boundary rectangle of bar code in the said image;
According to the characteristic information of bar code in the characteristic of said boundary rectangle and/or the said boundary rectangle, judge the dimension that obtains said bar code.
2. the method for claim 1 is characterized in that, said method is further comprising the steps of:
When having a plurality of bar code in the said image, obtain the boundary rectangle of each bar code in the said image;
According to the order that detects said a plurality of bar codes,, judge the dimension that obtains said each bar code according to the characteristic information of bar code in the characteristic of the boundary rectangle of each bar code and/or the said boundary rectangle.
3. the method for claim 1 is characterized in that, a plurality of scan start point coordinates of said image comprise the center point coordinate of said image, and the characteristic information of said bar code refers to the empty width information of the bar of said bar code.
4. the method for claim 1 is characterized in that, said method is further comprising the steps of:
When the dimension of judging this bar code is one dimension, according to the characteristic information of bar code in this boundary rectangle, perhaps this image is carried out the empty information of bar obtained after the pre-service, judge the empty information of the bar that whether has coupling in the preset multiple barcode types table;
When having the bar sky information of coupling, obtain the corresponding barcode types of the empty information of bar with said coupling.
5. the method for claim 1 is characterized in that, said method is further comprising the steps of:
When the dimension of judging said bar code is two dimension, judge the characteristic that one type bar code characteristic in the multiple barcode types table that whether exists in the said boundary rectangle and preset is complementary;
When having the characteristic of coupling, obtain the barcode types corresponding with said characteristic.
6. method as claimed in claim 3 is characterized in that, said method is further comprising the steps of:
When the length of said boundary rectangle less than the pre-set length value, or the higher primary school of said boundary rectangle is when preset height value, then the dimension of said bar code is one;
When the length of said boundary rectangle less than the pre-set length value, and there is not bar code in the higher primary school of said boundary rectangle in the then said image when preset height value;
When growing up in the pre-set length value of said boundary rectangle, and said boundary rectangle is tall and big when preset height value, then according to the empty width information of the bar of bar code in the said boundary rectangle, confirms that further the dimension of said bar code is one or two.
7. a bar code identifying device is characterized in that, said device comprises:
The scan start point acquiring unit is used to obtain bar code image to be identified and a plurality of scan start point coordinates of said image after the binary conversion treatment;
The boundary rectangle acquiring unit; Be used for order according to preset said a plurality of scan start points; Begin from each scan start point successively, up and down, left and right four direction respectively to this image carry out line by line with by column scan, obtain the boundary rectangle of bar code in the said image; And
The dimension acquiring unit is used for the characteristic information according to the characteristic and/or the said boundary rectangle bar code of said boundary rectangle, judges the dimension that obtains said bar code.
8. device as claimed in claim 7 is characterized in that, said device also comprises:
Matching unit; Be used for when the dimension of judging this bar code is one dimension; According to the characteristic information of bar code in this boundary rectangle, the empty information of bar of perhaps this image being carried out obtaining after the pre-service is judged the empty information of the bar that whether has coupling in the preset multiple barcode types table; And
Bar code type acquiring unit is used for when having the bar sky information of coupling, obtaining the corresponding barcode types of the empty information of bar with said coupling.
9. device as claimed in claim 7 is characterized in that, said device also comprises:
Judging unit is used for when the dimension of judging said bar code is two dimension, judging the characteristic that one type bar code characteristic in the multiple barcode types table that whether exists in the said boundary rectangle and preset is complementary; And
Two-dimensional bar code type acquiring unit is used for when having the characteristic of coupling, obtaining the barcode types corresponding with said characteristic.
10. device as claimed in claim 7 is characterized in that, said dimension acquiring unit specifically comprises:
First judging unit is used for length when said boundary rectangle less than the pre-set length value, or the higher primary school of said boundary rectangle is when preset height value, and then the dimension of said bar code is one;
Second judging unit is used for length when said boundary rectangle less than the pre-set length value, and there is not bar code in the higher primary school of said boundary rectangle in the then said image when preset height value; And
The 3rd judging unit; Be used for growing up when said boundary rectangle in the pre-set length value; And said boundary rectangle is tall and big when preset height value, then according to the empty width information of the bar of bar code in the said boundary rectangle, confirms that further the dimension of said bar code is one or two.
CN201110367610.1A 2011-11-18 2011-11-18 Bar code identifying method and device Expired - Fee Related CN102521558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110367610.1A CN102521558B (en) 2011-11-18 2011-11-18 Bar code identifying method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110367610.1A CN102521558B (en) 2011-11-18 2011-11-18 Bar code identifying method and device

Publications (2)

Publication Number Publication Date
CN102521558A true CN102521558A (en) 2012-06-27
CN102521558B CN102521558B (en) 2014-04-02

Family

ID=46292469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110367610.1A Expired - Fee Related CN102521558B (en) 2011-11-18 2011-11-18 Bar code identifying method and device

Country Status (1)

Country Link
CN (1) CN102521558B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104361309A (en) * 2014-12-05 2015-02-18 网易宝有限公司 Bar code identifying method and bar code identifying equipment
CN105654019A (en) * 2016-02-23 2016-06-08 海信集团有限公司 Fast decoding method and device for two-dimension code
CN105844200A (en) * 2016-03-17 2016-08-10 杭州晟元数据安全技术股份有限公司 Method of determining bar code type
CN106503604A (en) * 2016-10-18 2017-03-15 上海觉感视觉科技有限公司 A kind of position sensing figure group technology of QR codes
CN106779537A (en) * 2016-11-30 2017-05-31 苏州金峰物流设备有限公司 Transit depot wraps up bar code recognition of unloading
CN106953690A (en) * 2017-04-19 2017-07-14 浙江工业大学 Smart machine near field communication system based on visible ray
CN107016316A (en) * 2016-10-24 2017-08-04 阿里巴巴集团控股有限公司 A kind of recognition methods of bar code and device
CN108064389A (en) * 2017-09-15 2018-05-22 达闼科技(北京)有限公司 A kind of target identification method, device and intelligent terminal
CN108108646A (en) * 2017-12-29 2018-06-01 Tcl王牌电器(惠州)有限公司 Bar code information recognition methods, terminal and computer readable storage medium
CN108280384A (en) * 2017-12-30 2018-07-13 广州市钛码电子科技有限公司 A kind of two-dimensional code identification method
CN109062648A (en) * 2018-07-23 2018-12-21 Oppo广东移动通信有限公司 Information processing method, device, mobile terminal and storage medium
CN109388996A (en) * 2017-08-02 2019-02-26 格科微电子(上海)有限公司 The method for improving Processing in Barcode Recognizing System performance
CN109902529A (en) * 2019-03-01 2019-06-18 成都信息工程大学 A kind of bar code recognition methods and system based on Waveform Matching
CN109934040A (en) * 2019-03-22 2019-06-25 福州图腾易讯信息技术有限公司 A kind of boundary filtering method and apparatus of bar code
CN110245536A (en) * 2019-05-09 2019-09-17 深圳盈达机器视觉技术有限公司 Bar code recognition
CN112036199A (en) * 2020-07-17 2020-12-04 福建联迪商用设备有限公司 Two-stage scanning method and scanning gun

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5418357A (en) * 1992-06-22 1995-05-23 Matsushita Electric Industrial Co., Ltd. Bar-code reader permitting selective use of a whole or a part of an image sensor
CN101059834A (en) * 2007-05-31 2007-10-24 中国农业大学 QR two-dimensional bar code recognition method based on pickup head for chatting
US20100163632A1 (en) * 2008-12-31 2010-07-01 Chun-Shun Tseng Method for fast locating decipherable pattern
CN101882201A (en) * 2010-06-01 2010-11-10 福建新大陆电脑股份有限公司 Barcode decoding chip and method
CN101882206A (en) * 2010-06-01 2010-11-10 福建新大陆电脑股份有限公司 Decoding chip of RSS (Really Simple Syndication) bar code
CN102236788A (en) * 2010-04-20 2011-11-09 荣科科技股份有限公司 Kilowatt-hour meter image automatic identification method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5418357A (en) * 1992-06-22 1995-05-23 Matsushita Electric Industrial Co., Ltd. Bar-code reader permitting selective use of a whole or a part of an image sensor
CN101059834A (en) * 2007-05-31 2007-10-24 中国农业大学 QR two-dimensional bar code recognition method based on pickup head for chatting
US20100163632A1 (en) * 2008-12-31 2010-07-01 Chun-Shun Tseng Method for fast locating decipherable pattern
CN102236788A (en) * 2010-04-20 2011-11-09 荣科科技股份有限公司 Kilowatt-hour meter image automatic identification method
CN101882201A (en) * 2010-06-01 2010-11-10 福建新大陆电脑股份有限公司 Barcode decoding chip and method
CN101882206A (en) * 2010-06-01 2010-11-10 福建新大陆电脑股份有限公司 Decoding chip of RSS (Really Simple Syndication) bar code

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104361309A (en) * 2014-12-05 2015-02-18 网易宝有限公司 Bar code identifying method and bar code identifying equipment
CN105654019A (en) * 2016-02-23 2016-06-08 海信集团有限公司 Fast decoding method and device for two-dimension code
CN108764000A (en) * 2016-02-23 2018-11-06 海信集团有限公司 Quick Response Code fast decoding method
CN105654019B (en) * 2016-02-23 2018-09-04 海信集团有限公司 Quick Response Code fast decoding method and device
CN108764000B (en) * 2016-02-23 2021-06-08 海信集团有限公司 Two-dimensional code fast decoding method
CN105844200A (en) * 2016-03-17 2016-08-10 杭州晟元数据安全技术股份有限公司 Method of determining bar code type
CN105844200B (en) * 2016-03-17 2018-07-06 杭州晟元数据安全技术股份有限公司 A kind of method for judging barcode types
CN106503604A (en) * 2016-10-18 2017-03-15 上海觉感视觉科技有限公司 A kind of position sensing figure group technology of QR codes
CN106503604B (en) * 2016-10-18 2019-05-14 上海觉感视觉科技有限公司 A kind of position sensing figure group technology of QR code
CN107016316A (en) * 2016-10-24 2017-08-04 阿里巴巴集团控股有限公司 A kind of recognition methods of bar code and device
US10726223B2 (en) 2016-10-24 2020-07-28 Alibaba Group Holding Limited Method and apparatus for barcode identifcation
CN107016316B (en) * 2016-10-24 2020-01-31 阿里巴巴集团控股有限公司 barcode identification method and device
CN106779537A (en) * 2016-11-30 2017-05-31 苏州金峰物流设备有限公司 Transit depot wraps up bar code recognition of unloading
CN106953690A (en) * 2017-04-19 2017-07-14 浙江工业大学 Smart machine near field communication system based on visible ray
CN109388996A (en) * 2017-08-02 2019-02-26 格科微电子(上海)有限公司 The method for improving Processing in Barcode Recognizing System performance
CN108064389A (en) * 2017-09-15 2018-05-22 达闼科技(北京)有限公司 A kind of target identification method, device and intelligent terminal
CN108064389B (en) * 2017-09-15 2019-02-01 达闼科技(北京)有限公司 A kind of target identification method, device and intelligent terminal
US11036990B2 (en) 2017-09-15 2021-06-15 Cloudminds (Beijing) Technologies Co., Ltd. Target identification method and apparatus, and intelligent terminal
CN108108646A (en) * 2017-12-29 2018-06-01 Tcl王牌电器(惠州)有限公司 Bar code information recognition methods, terminal and computer readable storage medium
CN108108646B (en) * 2017-12-29 2022-04-22 Tcl王牌电器(惠州)有限公司 Bar code information identification method, terminal and computer readable storage medium
CN108280384A (en) * 2017-12-30 2018-07-13 广州市钛码电子科技有限公司 A kind of two-dimensional code identification method
CN109062648A (en) * 2018-07-23 2018-12-21 Oppo广东移动通信有限公司 Information processing method, device, mobile terminal and storage medium
CN109902529A (en) * 2019-03-01 2019-06-18 成都信息工程大学 A kind of bar code recognition methods and system based on Waveform Matching
CN109902529B (en) * 2019-03-01 2022-05-03 成都信息工程大学 One-dimensional bar code identification method and system based on waveform matching
CN109934040A (en) * 2019-03-22 2019-06-25 福州图腾易讯信息技术有限公司 A kind of boundary filtering method and apparatus of bar code
CN109934040B (en) * 2019-03-22 2022-06-10 福州图腾易讯信息技术有限公司 Boundary screening method and equipment for one-dimensional bar code
CN110245536A (en) * 2019-05-09 2019-09-17 深圳盈达机器视觉技术有限公司 Bar code recognition
CN112036199A (en) * 2020-07-17 2020-12-04 福建联迪商用设备有限公司 Two-stage scanning method and scanning gun

Also Published As

Publication number Publication date
CN102521558B (en) 2014-04-02

Similar Documents

Publication Publication Date Title
CN102521558B (en) Bar code identifying method and device
US5814801A (en) Maxicode data extraction using spatial domain features exclusive of fourier type domain transfer processing
WO2014044159A1 (en) Method and device for batch scanning 2d barcodes
US9996780B2 (en) Specific bar code and forming method of the same
CN102136058B (en) Bar code image identification method
CN100456314C (en) QR two-dimensional bar code recognition method based on pickup head for chatting
CN100377167C (en) Two-dimensional code area precisive positioning method for two-dimensional recognition
CN101840496B (en) One-dimensional barcode decoding chip
EP1469420B1 (en) Method, system and program for reconstructing a bar code
US8146818B2 (en) Apparatus and method for symbol information reading
CN107066914A (en) Two-dimensional barcode image localization method and system under a kind of complex background
CN105787403B (en) A kind of bar code reading method of high pixel image processing and the bar code recognizing apparatus of high pixel image processing
CN101908122A (en) Bar space margin processing module, bar code identifying device and method thereof
CN104298947A (en) Method and device for accurately positioning two-dimensional bar code
CN110050275B (en) Optically readable label and method and system for decoding optically readable label
CN104537331A (en) Bar code reading device
Klimek et al. QR code detection using parallel lines
Lin et al. Automatic location for multi-symbology and multiple 1D and 2D barcodes
CN102521559B (en) 417 bar code identification method based on sub-pixel edge detection
Bodnár et al. A novel method for barcode localization in image domain
GB2566365A (en) Optically readable markers
CN104463071A (en) Bar code reading device
CN101833640B (en) The empty boundary pixel point computing module of bar and computing method thereof
CN101882201B (en) Barcode decoding chip and method
Lin et al. Multi-symbology and multiple 1d/2d barcodes extraction framework

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140402

Termination date: 20201118