CN102446265B - Bar code evaluation method and bar code evaluation device - Google Patents

Bar code evaluation method and bar code evaluation device Download PDF

Info

Publication number
CN102446265B
CN102446265B CN201010510334.5A CN201010510334A CN102446265B CN 102446265 B CN102446265 B CN 102446265B CN 201010510334 A CN201010510334 A CN 201010510334A CN 102446265 B CN102446265 B CN 102446265B
Authority
CN
China
Prior art keywords
group
brightness
bar code
brightness group
scanning
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.)
Expired - Fee Related
Application number
CN201010510334.5A
Other languages
Chinese (zh)
Other versions
CN102446265A (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.)
Primax Electronics Ltd
Original Assignee
Primax Electronics 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 Primax Electronics Ltd filed Critical Primax Electronics Ltd
Priority to CN201010510334.5A priority Critical patent/CN102446265B/en
Publication of CN102446265A publication Critical patent/CN102446265A/en
Application granted granted Critical
Publication of CN102446265B publication Critical patent/CN102446265B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)

Abstract

The invention discloses a bar code evaluation method and a bar code evaluation device. The bar code evaluation device is used for receiving an input image and evaluating in the input image along a scanning direction to generate bar code evaluation data. The evaluation device comprises the following steps of: obtaining at least one first brightness group in the input image according to a brightness threshold; respectively recording a plurality of characteristic values of at least one first brightness group in the input image; determining an expansion direction according the plurality of the characteristic values of at least one special brightness group in at least one first brightness group; judging whether at least one special brightness group belongs to a bar code; and applying a processing element to generating the bar code evaluation data according to the input image, the expansion direction and the scanning direction. According to the invention, fewer system resources are applied to obtaining correct evaluation results to the bar codes with different expansion directions and different scanning directions.

Description

Bar code appraisal procedure and bar code apparatus for evaluating
Technical field
The present invention relates to the assessment of bar code, relate in particular to a kind of bar code appraisal procedure that can scan according to bar code expansion direction and bar code apparatus for evaluating.
Background technology
In general printing technique, the bar code printing need to meet certain specification, for example: the variable quantity of the reflected value (reflectance, that is brightness value) of each identification bar (staggered alternate black color lump and white color lump) in bar code and fluctuation degree (ripple) etc.In some printing techniques, printing equipment can, after printing a bar code, be assessed the quality of this bar code immediately, and adjusts the parameter of printing according to the result of assessing, to obtain preferably print quality in follow-up bar code printing operation.
But general printing equipment only can be stored to exported image in one storer totally, then perform an analysis and just can obtain assessment result for the pixel of the image in storer; Or only can assess the bar code of specific expansion direction, once the expansion direction of bar code is different from predetermined direction, just cannot correctly make assessment to this bar code.Therefore, existing printing equipment need spend a large amount of storeies and calculation resources could be made assessment to the bar code printing, and in addition, in the time that bar code expansion direction is different from predetermined direction, existing printing equipment just cannot draw correct assessment result.
Hereat, how use system resource still less to make correct assessment result to the expansion direction bar code different from direction of scanning, just becoming for this reason in technical field one to have problem to be solved.
Summary of the invention
Because above-mentioned problem, the invention provides a kind of bar code appraisal procedure and relevant bar code apparatus for evaluating, be used for judging the expansion direction of a bar code in an input picture and based on this expansion direction, this bar code suitably processed, to obtain a bar code assessment result.
According to one embodiment of the invention, it provides a kind of bar code appraisal procedure, in order to receive an input picture, and in this input picture, assess and produce a bar code assessment data along one scan direction, this appraisal procedure includes: in this input picture, obtain at least one the first brightness group according to a brightness threshold; Record respectively multiple eigenwerts of this at least one the first brightness group in this input picture; According to the plurality of eigenwert of at least one specific the first brightness group in this at least one first brightness group, judge whether this at least one specific first brightness group belongs to a bar code; And in the time judging that this at least one specific first brightness group belongs to this bar code, application one treatment element decides an expansion direction of this bar code, and produces this bar code assessment data according to this input picture, this expansion direction and this direction of scanning.
According to another embodiment of the present invention, it provides a kind of bar code apparatus for evaluating, in order to receive an input picture, and in this input picture, assess and produce a bar code assessment data along one scan direction, this bar code apparatus for evaluating includes: a group elements, is coupled to this input picture, in order to obtain at least one the first brightness group according to a brightness threshold in this input picture, and record respectively multiple eigenwerts of this at least one the first brightness group in this input picture; One determines element, is coupled to this group elements, in order to the plurality of eigenwert of at least one specific the first brightness group according in this at least one first brightness group, judges whether this at least one specific first brightness group belongs to a bar code; An and treatment element, be coupled to this decision element and this input picture, in the time that this decision element judges that this at least one specific first brightness group belongs to this bar code, this treatment element determines an expansion direction of this bar code, and produces this bar code assessment data according to this input picture, this expansion direction and this direction of scanning.
Beneficial effect of the present invention is, the invention provides a kind of bar code appraisal procedure and relevant bar code apparatus for evaluating, it can judge the expansion direction of a bar code in an input picture and based on this expansion direction, this bar code suitably be processed, to obtain a bar code assessment result.
Brief description of the drawings
Fig. 1 is the schematic diagram according to a bar code apparatus for evaluating of one embodiment of the invention realization.
Fig. 2 is the schematic diagram of an embodiment of the interior bar code comprising of an input picture.
Fig. 3 is the schematic diagram according to a parallel processing circuit of one embodiment of the invention realization.
Fig. 4 is the schematic diagram of another embodiment of the interior bar code comprising of an input picture.
Fig. 5 is the schematic diagram with an embodiment of a bar code of a printing flaw.
Fig. 6 is the schematic diagram with another embodiment of a bar code of a printing flaw.
Fig. 7 is the schematic diagram with another embodiment of a bar code of a printing flaw.
Fig. 8 is the schematic diagram with another embodiment of a bar code of a printing flaw.
Wherein, description of reference numerals is as follows:
1000 bar code apparatus for evaluating
1100 group elements
1200 bar codes determine element
1210 bar code decision-making circuits
1300 treatment elements
1310 parallel processing circuit
1311 positioning units
1320 vertical treatment circuits
IMG_IN input picture
D disexpansion direction
D scandirection of scanning
L tHbrightness threshold
G1, Gn the first brightness group
G2, Ge1, Ge2 the second brightness group
DATA eSMbar code assessment result
INFO pREpreliminary view data
INFO pOSpositional information
H1, H2 height parameter
W1, W2, We1, We2 width parameter
Embodiment
Please refer to Fig. 1, it is the schematic diagram according to a bar code apparatus for evaluating 1000 of one embodiment of the invention realization.Bar code apparatus for evaluating 1000 is in order to receive an input picture IMG_IN, and in input picture IMG_IN, along one scan direction D scanassess and produce a bar code assessment data DATA eSM, in this embodiment, bar code apparatus for evaluating 1000 includes (but being not limited to) group elements 1100, decision element 1200 and a treatment element 1300.Group elements 1100 is in order to foundation one brightness threshold L tHin input picture IMG_IN, first obtain one first G1 of brightness group (in this embodiment, the first G1 of brightness group is a low-light level group, that is, a black color lump in one bar code, but the white color lump that also can apply in other embodiments in a bar code is processed), and record respectively the multiple eigenwerts (for example a height parameter H1 of the first G1 of brightness group and a width parameter W1 etc.) of the first G1 of brightness group in input picture IMG_IN, wherein for brightness threshold L tHsetting, can in bar code evaluation process, a maximum value and the minimal value according to the pixel intensity in input picture IMG_IN decide brightness threshold L tHnumerical value, but, also can apply a predetermined numerical value and set brightness threshold L tH.Group elements 1100 can be along direction of scanning D scanextract the pixel intensity of many pixels of input picture IMG_IN, and the pixel intensity of working as a pixel is lower than brightness threshold L tHtime, this pixel is classified as one first luminance pixel (that is a low-light level pixel) by group elements 1100, and multiple the first luminance pixels located adjacent one another are classified as to one first G1 of brightness group (that is a low-light level group).Note that in this embodiment, input picture IMG_IN can be according to direction of scanning D disand an image of printing, therefore, bar code apparatus for evaluating 1000 can be equally according to direction of scanning D disto input picture, IMG_IN synchronously deals with line by line, but above-mentioned explanation is not used for limiting scope of the present invention, and bar code apparatus for evaluating 1000 also can be done bar code assessment to the complete input picture IMG_IN having printed.
After obtaining the first G1 of brightness group, determine that element 1200 can decide expansion direction D according to multiple eigenwerts of the first G1 of brightness group diswith direction of scanning D scanbetween relation.For instance, in the time that the height parameter H1 of the first G1 of brightness group is greater than its width parameter W1, determine that element 1200 just can determine the expansion direction D of this affiliated bar code of the first G1 of brightness group diswith direction of scanning D scanfor parallel; But, in the time that the height parameter H1 of the first G1 of brightness group is less than its width parameter W1, determine that element 1200 determines the expansion direction D of this affiliated bar code of the first G1 of brightness group diswith direction of scanning D scanfor vertically.Please coordinate Fig. 1 with reference to Fig. 2, Fig. 2 is the schematic diagram of an embodiment of the interior bar code comprising of input picture IMG_IN.In Fig. 2, the height parameter H1 of the first G1 of brightness group is greater than its width parameter W1, hereat determines that element 1200 can judge the expansion direction D of this affiliated bar code of the first G1 of brightness group diswith direction of scanning D scanfor parallel.
Then, determine that 1200 of elements can, according to multiple eigenwerts of other brightness groups of the first G1 of brightness group and vicinity, judge whether the first G1 of brightness group belongs to a bar code.Referring again to Fig. 2, in Fig. 2, after determining that element 1200 is processed, the expansion direction D of this bar code under known the first G1 of brightness group disdirection of scanning D with bar code apparatus for evaluating 1000 scanparallel.Determine to include a bar code decision-making circuit 1210 in element 1200, be used for detecting a width parameter W2 of the one second brightness group G2 adjacent with the first G1 of brightness group, and decide the first G1 of brightness group whether to belong to the color lump in a bar code according to the width parameter W1 of the first G1 of brightness group and a width parameter W2 of the second G2 of brightness group.General bar code all has the wherein width ratio of each color lump (black color lump and white color lump) of regulation, for example, if in a bar code specification, the ratio of a width of black color lump and a width of any white color lump is all no more than 4 arbitrarily, that is, 1/4 < W1/W2 < 4, once the ratio W1/W2 of a width parameter W2 of the width parameter W1 of the first G1 of brightness group and the second G2 of brightness group is greater than 4 or be less than 1/4, bar code decision-making circuit 1210 just can determine that the first G1 of brightness group does not belong to the part in a bar code, but, when the ratio W1/W2 of the width parameter W1 of the first G1 of brightness group and a width parameter W2 of the second G2 of brightness group is between 4 and 1/4, bar code decision-making circuit 1210 just judges that the first G1 of brightness group is as the identification bar in a bar code, and then processes next the first brightness group again.
In the example of Fig. 2, the expansion direction D of this bar code disdirection of scanning D with bar code apparatus for evaluating 1000 scafor parallel, that is, at the direction of scanning of bar code apparatus for evaluating 1000 D scaupper, bar code apparatus for evaluating 1000 can sequentially be assessed the black color lump and the white color lump that are interspersed and launch.Referring again to Fig. 1, the treatment element 1300 in Fig. 1 includes a parallel processing circuit 1310 treatment circuit 1320 vertical with, carries out different evaluation process respectively according to different expansion directions, when determining that element 1300 determines the expansion direction D of this bar code diswith direction of scanning D scanwhen parallel, parallel processing circuit 1310 is just applied multiple the first brightness groups in input picture IMG_IN (that is, each black color lump in this bar code), decides a positional information INFO of this bar code pOS, the information such as two edge identification bars and each corner location of for example this bar code, and apply input picture IMG_IN and positional information INFO pOSdecide the multiple second brightness groups of position between the plurality of the first brightness group (that is, each the white color lump in this bar code), wherein the plurality of the first brightness group and the plurality of the second brightness group are at expansion direction D disupper for being interspersed.
Referring again to Fig. 3, Fig. 3 is according to the schematic diagram of the parallel processing circuit 1310 of one embodiment of the invention realization, includes locating unit 1311, in order to determine Liang Ge edge group in the plurality of the first brightness group in parallel processing circuit 1310.In general bar code specification, for conveniently recognized, all there is one section of blank front end and the rear end of each bar code on its expansion direction, and this section of blank width can be in this bar code regulation conventionally, the several times of minimum identification bar width, for example,, when the minimum identification bar width of institute's specification in bar code specification is W mintime, the front end of each bar code and rear end all have width and exceed 10*W minblank.Referring again to Fig. 2, in this embodiment, positioning unit 1311 can, first in the plurality of the first brightness group and the plurality of the second brightness group, determine a width minimal value W min, then follow a width parameter We1 who detects one second Ge1 of brightness group (that is may be a high brightness group of front end or rear end blank) that is being close to the first G1 of brightness group, as width parameter We1 and the width minimal value W of the second Ge1 of brightness group minratio (that is We1/W min) (for example We1/W while exceeding an edge threshold minwhen > 10), positioning unit 1311 just determines to be an edge group by the first G1 of brightness group.Similarly, positioning unit 1311 also can detect one second Ge2 of brightness group that is being close to one first Gn of brightness group, positioning unit 1311 can first detect a width parameter We2 of one second Ge2 of brightness group that is being close to the first G1 of brightness group, then complies with width parameter We2 and the width minimal value W of the second Ge2 of brightness group minratio whether decide the first Gn of brightness group be another edge group.After determining the Liang Ge edge G1 of group and Gn of this bar code, positioning unit 1311 just can determine the positional information INFO of this bar code pOS, for example position in four corners in this bar code, thus, the monochrome information that bar code apparatus for evaluating 1000 just can select this bar code to approach stage casing obtains bar code assessment data DATA eSM.Parallel processing circuit 1311 just can determine multiple first brightness groups of this bar code and multiple the second brightness groups between the plurality of the first brightness group, and approach middle section position (that is centre position) between up-and-down boundary in this bar code and select multi-strip scanning line, and record is to many scanning informations that should multi-strip scanning line, wherein each scanning information to many quality information of the plurality of the first brightness group in should bar code and the plurality of the second brightness group (for example includes, the reflected value of each black/white color lump, the variable quantity of reflected value, contrast and fluctuation degree (ripple) etc.), and obtain bar code assessment data DATA according to these many scanning informations eSM.
But above-described embodiment has only illustrated that bar code apparatus for evaluating 1000 is at direction of scanning D scanwith expansion direction D disoperation when parallel, as direction of scanning D scanwith expansion direction D disparallel when vertical each other, 1000 of bar code apparatus for evaluating can be assessed in a different manner.Referring again to Fig. 4, Fig. 4 is the schematic diagram of another embodiment of the interior bar code comprising of input picture IMG_IN.In the example of Fig. 4, the expansion direction D of this bar code disdirection of scanning D with bar code apparatus for evaluating 1000 scanvertical each other, hereat bar code decision-making circuit 1210 can decide the first G1 of brightness group whether to belong to the color lump in a bar code according to the height parameter H1 of the first G1 of brightness group and a width parameter H2 of the second G2 of brightness group, that is, when the ratio H1/H2 of the height parameter H1 of the first G1 of brightness group and a height parameter H2 of the second G2 of brightness group is between 4 and 1/4, bar code decision-making circuit 1210 just judges that the first G1 of brightness group is as the identification bar in a bar code, and then processes next the first brightness group again.
When determining that element 1200 determines the expansion direction D of this bar code diswith direction of scanning D scanwhen vertical, vertical treatment circuit 1320 is just based on input picture IMG_IN, and record includes a preliminary view data INFO of the first G1 of brightness group pRE; And according to preliminary view data INFO pREproduce bar code assessment data DATA eSM.First, the preliminary view data INFO of vertical treatment circuit 1320 meeting application pRE, in multiple the first brightness groups that include the first G1 of brightness group, determine a positional information INFO of this bar code pOS, and apply preliminary view data INFO pREand positional information INFO pOSdecide multiple the second brightness groups between the plurality of the first brightness group, then, according to expansion direction D disselect multi-strip scanning line, and record is to many scanning informations that should multi-strip scanning line, wherein each scanning information includes many quality information to the plurality of the first brightness group in should bar code and the plurality of the second brightness group, and produces bar code assessment data DATA according to these many scanning informations eSM.
In addition, the present invention separately provides a kind of preventing to print flaw and the mechanism of the assessment result that leads to errors.Please refer to Fig. 5, Fig. 5 is the schematic diagram with the embodiment of a bar code of a printing flaw.In Fig. 5, the expansion direction D of this bar code disdirection of scanning D with bar code apparatus for evaluating 1000 scanvertically, when this bar code in the time printing because of the run-time error of printer, cause the part brightness of a black color lump wherein on the low side, for example: the grey color lump Berr shown in Fig. 5, and bright this brightness threshold L that is all less than of all pixels in grey color lump Berr tH, therefore may cause bar code apparatus for evaluating 1000 to think this bar code by mistake two bar codes of separating (position is in two bar codes of grey color lump Berr both sides respectively).In the present invention hereat, bar code apparatus for evaluating 1000 includes fault tolerant mechanism and prevents the generation of above-mentioned situation.Group elements 1100 in bar code apparatus for evaluating 1000 can first classify as a candidate group by multiple the first adjacent luminance pixels, when in described candidate group between one first candidate group and one second candidate group, for example, at a predetermined direction (, direction of scanning D scanor with direction of scanning D scana vertical direction) on there is at least one specific pixel pixel intensity higher than brightness threshold L tHtime, group elements 1100 just classifies as this first candidate group, this second candidate group and specific pixel one first brightness group in this at least one first brightness group, and wherein the quantity of this at least one specific pixel is less than a predetermined quantity k; Between one first candidate group and one second candidate group, (for example, direction of scanning D on this predetermined direction scanor with direction of scanning D scana vertical direction) pixel intensity of specific pixel during higher than this brightness threshold with a predetermined level is exceeded k, group elements 1100 just classifies as respectively two the first different brightness groups in this at least one first brightness group by this first candidate group and this second candidate population group.In the example of Fig. 5, grey color lump Berr is at direction of scanning D scanon there is a width W err, and width W err is less than the width of k pixel, therefore group elements 1100 still can be recognized as this bar code one complete bar code, and can not think two bar codes of separating by mistake.Referring again to Fig. 6, Fig. 6 is the schematic diagram with another embodiment of a bar code of a printing flaw.In Fig. 6, the expansion direction D of this bar code disdirection of scanning D with bar code apparatus for evaluating 1000 scanparallel, and grey color lump Berr is at direction of scanning D scanon there is a width W err, similarly, group elements 1100 still can be recognized as the black color lump of grey color lump Berr both sides one complete black color lump, and can not think two black color lumps that separate by mistake.
As seen from the figure, the printing flaw in Fig. 5 and Fig. 6, that is the expansion of grey color lump Berr trend all with the direction of scanning D of bar code apparatus for evaluating 1000 scanvertically, but this is not the present invention's restriction in application, and every printing flaw within the scope of a preset width, no matter this printing flaw is to be distributed in direction of scanning D scanor in other directions, bar code apparatus for evaluating 1000 still can be got rid of the impact of this printing flaw and draw correct bar code assessment result.For instance, when the expansion trend of grey color lump Berr all with the direction of scanning D of bar code apparatus for evaluating 1000 scanwhen parallel, bar code apparatus for evaluating 1000 still can skip over this printing flaw and take out correct bar code assessment result.Please refer to Fig. 7, for thering is the schematic diagram of another embodiment of a bar code of a printing flaw.In Fig. 7, the expansion trend of grey color lump Berr and direction of scanning D scanparallel, however grey color lump Berr with direction of scanning D scanin a vertical direction, there is a width W err, and width W err is less than the width of k pixel, group elements 1100 still can be recognized as a complete black color lump by two upper and lower with it grey color lump Berr black color lumps, and can not think two black color lumps that separate by mistake.Similarly, referring again to Fig. 8, Fig. 8 is the schematic diagram with another embodiment of a bar code of a printing flaw.In Fig. 8, the expansion direction D of this bar code disdirection of scanning D with bar code apparatus for evaluating 1000 scanparallel, and the expansion trend of grey color lump Berr and direction of scanning D scanalso be parallel, and grey color lump Berr with direction of scanning D scanin a vertical direction, have a width W err, and width W err is less than the width of k pixel, therefore group elements 1100 still can be recognized as this bar code one complete bar code, and can not think two bar codes of separating by mistake.
In sum, the invention provides a kind of bar code appraisal procedure and relevant bar code apparatus for evaluating, it can judge the expansion direction of a bar code in an input picture and based on this expansion direction, this bar code suitably be processed, to obtain a bar code assessment result.
The foregoing is only preferred embodiment of the present invention, all equalizations of doing according to the claims in the present invention change and modify, and all should belong to covering scope of the present invention.

Claims (22)

1. a bar code appraisal procedure, in order to receive an input picture, and in this input picture, assesses and produces a bar code assessment data along one scan direction, and this bar code appraisal procedure comprises step:
In this input picture, obtain the first brightness group according to a brightness threshold, described brightness threshold be maximum value one minimal value of the pixel intensity in input picture in bar code evaluation process or a predetermined numerical value one of them;
Record respectively multiple eigenwerts of this first brightness group in this input picture, described multiple eigenwerts comprise a height parameter and a width parameter;
According to the magnitude relationship between this height parameter of this first brightness group and this width parameter of this first brightness group, it is parallel or vertical deciding an expansion direction and this direction of scanning, and according to multiple eigenwerts of this first brightness group and adjacent the second brightness group, judge whether this first brightness group belongs to a bar code; And
Apply a treatment element and produce this bar code assessment data according to this input picture, this expansion direction and this direction of scanning.
2. bar code appraisal procedure as claimed in claim 1, is characterized in that, also comprises and produces multiple the first brightness groups; And include according to the step that this input picture, this expansion direction and this direction of scanning produce this bar code assessment data:
In the time that this expansion direction is parallel with this direction of scanning:
Apply the positional information that the plurality of the first brightness group decides this bar code;
Apply this input picture and this positional information and decide the multiple second brightness groups of position between the plurality of the first brightness group, wherein the plurality of the first brightness group and the plurality of the second brightness group on this expansion direction for being interspersed;
Select multi-strip scanning line according to this expansion direction, and record is to many scanning informations that should multi-strip scanning line, wherein each scanning information includes many quality information to the plurality of the first brightness group in should bar code and the plurality of the second brightness group; And
Produce this bar code assessment data according to these many scanning informations.
3. bar code appraisal procedure as claimed in claim 2, is characterized in that, applies the step that the plurality of the first brightness group decides this positional information of this bar code and includes:
In the plurality of the first brightness group, determine Liang Ge edge group, include:
In the plurality of the first brightness group and the plurality of the second brightness group, determine a width minimal value;
Detecting a width parameter of one second brightness group of contiguous one first brightness group, in the time that this width parameter and the minimizing ratio of this width of this second brightness group exceed an edge threshold, is an edge group by this first brightness group decision; And
Detect a width parameter of another the second brightness group of contiguous another the first brightness group, in the time that this width parameter of this another the second brightness group and the minimizing ratio of this width exceed this edge threshold, this another the first brightness group is determined as another edge group; And decide this positional information of this bar code according to Gai Liangge edge group.
4. bar code appraisal procedure as claimed in claim 1, is characterized in that, the step that produces this bar code assessment data according to this input picture, this expansion direction and this direction of scanning includes:
In the time that this expansion direction is vertical with this direction of scanning:
In this input picture, record includes a preliminary view data of this first brightness group; And
Produce this bar code assessment data according to this preliminary view data.
5. bar code appraisal procedure as claimed in claim 4, is characterized in that, also comprises and produces multiple the first brightness groups; And
The step that produces this bar code assessment data according to this preliminary view data includes:
Apply the positional information that the plurality of the first brightness group decides this bar code;
Apply this preliminary view data and this positional information and decide the multiple second brightness groups of position between the plurality of the first brightness group, wherein the plurality of the first brightness group and the plurality of the second brightness group on this expansion direction for being interspersed;
Select multi-strip scanning line according to this expansion direction, and record is to many scanning informations that should multi-strip scanning line, wherein each scanning information includes many quality information to the plurality of the first brightness group in should bar code and the plurality of the second brightness group; And
Produce this bar code assessment data according to these many scanning informations.
6. bar code appraisal procedure as claimed in claim 1, is characterized in that, multiple eigenwerts of this first brightness group include a height parameter of this first brightness group and a width parameter of this first brightness group.
7. bar code appraisal procedure as claimed in claim 6, is characterized in that, determines that the step of this expansion direction includes:
In the time that this height parameter is greater than this width parameter, determine that this expansion direction of this affiliated bar code of this first brightness group is parallel with this direction of scanning; And
In the time that this height parameter is less than this width parameter, determine that this expansion direction of this affiliated bar code of this first brightness group is vertical with this direction of scanning.
8. bar code appraisal procedure as claimed in claim 6, is characterized in that, judges that the step whether this first brightness group belongs to this bar code includes:
Detect a width parameter of the one second brightness group adjacent with this first brightness group; And
Decide this first brightness group whether to belong to this bar code according to this width parameter of this first brightness group and a width parameter of this second brightness group.
9. bar code appraisal procedure as claimed in claim 6, is characterized in that, judges that the step whether this first brightness group belongs to this bar code includes:
Detect a height parameter of the one second brightness group adjacent with this first brightness group; And
Decide this first brightness group whether to belong to this bar code according to this height parameter of this first brightness group and a height parameter of this second brightness group.
10. bar code appraisal procedure as claimed in claim 1, is characterized in that, the step that obtains this first brightness group according to this brightness threshold in this input picture includes:
Extract the pixel intensity of multiple pixels in this input picture along this direction of scanning;
When the pixel intensity of a pixel is during lower than this brightness threshold, this pixel is classified as to one first luminance pixel; And
Multiple the first luminance pixels are classified as to this first brightness group.
11. bar code appraisal procedures as claimed in claim 10, is characterized in that, the step that multiple the first luminance pixels is classified as to this first brightness group also includes:
Multiple the first adjacent luminance pixels are classified as to a candidate group; And
Between one first candidate group and one second candidate group, have pixel intensity higher than the pixel of this brightness threshold on a predetermined direction time, this the first candidate group, this second candidate group and pixel intensity are classified as to this first brightness group higher than the candidate group of this brightness threshold, and wherein this pixel intensity is less than a predetermined quantity higher than the quantity of the pixel of this brightness threshold; And
Between one first candidate group and one second candidate group, have the pixel intensity that exceedes this predetermined quantity higher than the pixel of this brightness threshold on this predetermined direction time, this first candidate group and this second candidate population group are classified as respectively to two the first different brightness groups in this first brightness group.
12. 1 kinds of bar code apparatus for evaluating, in order to receive an input picture, and in this input picture, assess and produce a bar code assessment data along one scan direction, and this bar code apparatus for evaluating includes:
One group elements, be coupled to this input picture, in order to obtain the first brightness group according to a brightness threshold in this input picture, and record respectively multiple eigenwerts of this first brightness group in this input picture, described multiple eigenwert comprises a height parameter and a width parameter, described brightness threshold be maximum value one minimal value of the pixel intensity in input picture in bar code evaluation process or a predetermined numerical value one of them;
One determines element, be coupled to this group elements, in order to the magnitude relationship between this height parameter according to this first brightness group and this width parameter of this first brightness group, it is parallel or vertical deciding an expansion direction and this direction of scanning, and according to multiple eigenwerts of this first brightness group and adjacent the second brightness group, judge whether this first brightness group belongs to a bar code; And
One treatment element, is coupled to this decision element and this input picture, in order to produce this bar code assessment data according to this input picture, this expansion direction and this direction of scanning.
13. bar code apparatus for evaluating as claimed in claim 12, is characterized in that, this group elements also produces multiple the first brightness groups, and this treatment element includes:
One parallel processing circuit, in the time that this decision element determines that this expansion direction of this bar code is parallel with this direction of scanning, the plurality of the first brightness group of this parallel processing circuit application decides a positional information of this bar code, and apply this input picture and this positional information and decide the multiple second brightness groups of position between the plurality of the first brightness group, wherein the plurality of the first brightness group and the plurality of the second brightness group on this expansion direction for being interspersed; This parallel processing circuit is selected multi-strip scanning line according to this expansion direction, and record is to many scanning informations that should multi-strip scanning line, wherein each scanning information includes many quality information to the plurality of the first brightness group in should bar code and the plurality of the second brightness group, and produces this bar code assessment data according to these many scanning informations.
14. bar code apparatus for evaluating as claimed in claim 13, is characterized in that, this parallel processing circuit includes:
Locating unit, in order to determine Liang Ge edge group in the plurality of the first brightness group, this positioning unit is first in the plurality of the first brightness group and the plurality of the second brightness group, determine a width minimal value, an and width parameter of one second brightness group of the contiguous one first brightness group of detection, in the time that this width parameter of this second brightness group and the minimizing ratio of this width exceed an edge threshold, this positioning unit determines to be an edge group by this first brightness group; This positioning unit detects a width parameter of another the second brightness group of contiguous another the first brightness group, in the time that this width parameter of this another the second brightness group and the minimizing ratio of this width exceed this edge threshold, this positioning unit determines this another the first brightness group for another edge group; This positioning unit decides this positional information of this bar code according to Gai Liangge edge group.
15. bar code apparatus for evaluating as claimed in claim 12, is characterized in that, this treatment element includes:
One vertical treatment circuit, in the time that this decision element determines that this expansion direction of this bar code is vertical with this direction of scanning, this vertical treatment circuit is in this input picture, and record includes a preliminary view data of this first brightness group; And produce this bar code assessment data according to this preliminary view data.
16. bar code apparatus for evaluating as claimed in claim 15, it is characterized in that, this group elements also produces multiple the first brightness groups, and this vertical treatment circuit is applied the plurality of the first brightness group and decides a positional information of this bar code, and apply this preliminary view data and this positional information and decide the multiple second brightness groups of position between the plurality of the first brightness group, wherein the plurality of the first brightness group and the plurality of the second brightness group on this expansion direction for being interspersed; This vertical treatment circuit is selected multi-strip scanning line according to this expansion direction, and record is to many scanning informations that should multi-strip scanning line, wherein each scanning information includes many quality information to the plurality of the first brightness group in should bar code and the plurality of the second brightness group, and produces this bar code assessment data according to these many scanning informations.
17. bar code apparatus for evaluating as claimed in claim 12, is characterized in that, multiple eigenwerts of this first brightness group include a height parameter of this first brightness group and a width parameter of this first brightness group.
18. bar code apparatus for evaluating as claimed in claim 17, is characterized in that, in the time that this height parameter is greater than this width parameter, this decision element determines that this expansion direction of this bar code under this first brightness group is parallel with this direction of scanning; And in the time that this height parameter is less than this width parameter, this decision element determines that this expansion direction of this affiliated bar code of this first brightness group is vertical with this direction of scanning.
19. bar code apparatus for evaluating as claimed in claim 17, is characterized in that, this decision element includes:
One bar code decision-making circuit, in order to detect a width parameter of the one second brightness group adjacent with this first brightness group, and decide this first brightness group whether to belong to this bar code according to this width parameter of this first brightness group and a width parameter of this second brightness group.
20. bar code apparatus for evaluating as claimed in claim 17, is characterized in that, this decision element includes:
One bar code decision-making circuit, in order to detect a height parameter of the one second brightness group adjacent with this first brightness group, and decide this first brightness group whether to belong to this bar code according to this height parameter of this first brightness group and a height parameter of this second brightness group.
21. bar code apparatus for evaluating as claimed in claim 12, is characterized in that, this group elements extracts the pixel intensity of the multiple pixels of this input picture along this direction of scanning; When the pixel intensity of a pixel is during lower than this brightness threshold, this pixel is classified as one first luminance pixel by this group elements, and multiple the first luminance pixels are classified as to this first brightness group.
22. bar code apparatus for evaluating as claimed in claim 21, it is characterized in that, multiple the first adjacent luminance pixels are classified as a candidate group by this group elements, between one first candidate group and one second candidate group, have pixel intensity higher than the pixel of this brightness threshold on a predetermined direction time, this group elements classifies as this first brightness group by this first candidate group, this second candidate group and pixel intensity higher than the pixel of this brightness threshold, and wherein this pixel intensity is less than a predetermined quantity higher than the quantity of the pixel of this brightness threshold; Between one first candidate group and one second candidate group, have the pixel intensity that exceedes this predetermined quantity higher than the pixel of this brightness threshold on this predetermined direction time, this first candidate group and this second candidate population group are classified as respectively two the first different brightness groups in this first brightness group by this group elements.
CN201010510334.5A 2010-10-14 2010-10-14 Bar code evaluation method and bar code evaluation device Expired - Fee Related CN102446265B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010510334.5A CN102446265B (en) 2010-10-14 2010-10-14 Bar code evaluation method and bar code evaluation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010510334.5A CN102446265B (en) 2010-10-14 2010-10-14 Bar code evaluation method and bar code evaluation device

Publications (2)

Publication Number Publication Date
CN102446265A CN102446265A (en) 2012-05-09
CN102446265B true CN102446265B (en) 2014-11-26

Family

ID=46008754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010510334.5A Expired - Fee Related CN102446265B (en) 2010-10-14 2010-10-14 Bar code evaluation method and bar code evaluation device

Country Status (1)

Country Link
CN (1) CN102446265B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5045677A (en) * 1987-09-28 1991-09-03 Sumitomo Electric Industries, Ltd. Combining bar code read data from a plurality of scanning lines formed from one-dimensional images
CN101154261A (en) * 2006-09-27 2008-04-02 深圳迈瑞生物医疗电子股份有限公司 Bar code scanner and method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010054646A1 (en) * 2000-05-24 2001-12-27 Nisca Corporation Apparatus and method for reading bar code printed card, and bar code recording media card

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5045677A (en) * 1987-09-28 1991-09-03 Sumitomo Electric Industries, Ltd. Combining bar code read data from a plurality of scanning lines formed from one-dimensional images
CN101154261A (en) * 2006-09-27 2008-04-02 深圳迈瑞生物医疗电子股份有限公司 Bar code scanner and method thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
条码识别图像光学系统的性能评估;陶曦;《中国优秀硕士学位论文全文数据库 信息科技辑》;20081130(第11期);138-784 *
陶曦.条码识别图像光学系统的性能评估.《中国优秀硕士学位论文全文数据库 信息科技辑》.2008,(第11期),138-784. *

Also Published As

Publication number Publication date
CN102446265A (en) 2012-05-09

Similar Documents

Publication Publication Date Title
EP3104327B1 (en) Anomalous pixel detection
Zhang et al. The application of visual saliency models in objective image quality assessment: A statistical evaluation
US7783107B2 (en) Characterization of a printed droplet
JP4243454B2 (en) Brightness correction method, selective defect detection method, and recording medium on which these are recorded
CN101636035B (en) Fault detection of a printed dot-pattern bitmap
US8605954B2 (en) Methods and systems for analyzing the quality of digital signature confirmation images
CN103606221B (en) Fault automatic diagnostic method of counter and device
CN105469027A (en) Horizontal and vertical line detection and removal for document images
CN1783164B (en) Apparatus and method for automatically analyzing a filled in questionnaire
US20060210164A1 (en) Image processing device
CN113538603A (en) Optical detection method and system based on array product and readable storage medium
CN113362238A (en) Test image processing method and device, electronic equipment and storage medium
KR20090055087A (en) Method and system for evaluating document image automatically for optical character recognition
JP4164489B2 (en) Document image enhancement method, apparatus, and storage medium therefor
CN105469384A (en) Comprehensive evaluation methods of license plate image quality
US10458923B2 (en) Print data processing method, print data processing device, and recording medium having recorded therein print data processing program
EP3076674A1 (en) Video quality detection method and device
US9495609B2 (en) System and method for evaluating data
CN102446265B (en) Bar code evaluation method and bar code evaluation device
CN110619629B (en) CPU socket detection method and equipment
US8308064B2 (en) Barcode evaluation method and barcode evaluation apparatus
CN112215783B (en) Image noise point identification method, device, storage medium and equipment
US11750748B2 (en) Image processing apparatus, method, and storage medium to evaluate printed material with decreased influence of specific characteristic of print medium determined from margin area of printed chart
CN109712126B (en) Picture identification method and device
JP4935561B2 (en) Image processing device

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

Granted publication date: 20141126

Termination date: 20151014

EXPY Termination of patent right or utility model