CN106295455A - Bar code indicating means and bar code reader - Google Patents
Bar code indicating means and bar code reader Download PDFInfo
- Publication number
- CN106295455A CN106295455A CN201610647272.XA CN201610647272A CN106295455A CN 106295455 A CN106295455 A CN 106295455A CN 201610647272 A CN201610647272 A CN 201610647272A CN 106295455 A CN106295455 A CN 106295455A
- Authority
- CN
- China
- Prior art keywords
- distance
- bar code
- target
- image
- bar
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1439—Methods for optical code recognition including a method step for retrieval of the optical code
- G06K7/1443—Methods for optical code recognition including a method step for retrieval of the optical code locating of the code in an image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
- G06K7/10821—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
- G06K7/10861—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices sensing of data fields affixed to objects or articles, e.g. coded labels
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Electromagnetism (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Character Input (AREA)
- Image Analysis (AREA)
Abstract
The open a kind of bar code indicating means of the present invention and bar code reader, comprise the steps of the target image capturing target bar with bar code reader;Analyze target image, to obtain image parameters;Judge whether bar code reader is relative middle distance with the distance at present of target bar intersymbol according to image parameters;And when judging that distance is as middle distance relatively at present, send guidance light in target bar from bar code reader.Thereby, it is possible to reduce user moves repeatedly bar code reader number of times, and then promotes decoding efficiency.
Description
Technical field
The present invention is about a kind of bar code indicating means and bar code reader, and espespecially one can effectively promote and be decoded into power
Bar code indicating means and bar code reader.
Background technology
Bar code (barcode) is the multiple secret notes and blank not waited by width, according to certain coding rule arrangement, uses
To express the Figure recognition unit of one group of information.Bar code can mark the manufacturing country of article, manufacturing firm, trade name, production
The information such as date, book classification number, mail start-stop place, classification, date, thus at commodity circulation, taking care of books, postal pipe
Many fields such as reason, banking system are obtained for and are widely applied.
Refer to the bar code reader 1 that Fig. 1, Fig. 1 are prior art and read the schematic diagram of bar code.As it is shown in figure 1, bar code
Reader 1 comprises image acquisition unit 10 and luminescence unit 12.When reading bar code with bar code reader 1, luminescence unit
12 can send guidance light 120 on bar code, for its bar code to be read of user identification, simultaneously by image capture
Unit 10 carries out capture to bar code.Owing to image acquisition unit 10 can not be overlapping with the position of luminescence unit 12, therefore, refer to
Show that the travel path of light 120 just can not be the same line with the capture path 100 of image acquisition unit 10, and can be such as Fig. 1
The shown travel path of guidance light 120 presss from both sides an angle with the capture path 100 of image acquisition unit 10.If will be from bar code reading
Take distance that device 1 starts at as shown in Figure 1 by be from the close-by examples to those far off defined as relative proximity distance, relatively in distance and relatively remote,
The most only when bar code is positioned in the range of relatively middle distance, the bar code indicated by guidance light 120 just can be picked with image
Take the bar code that unit 10 captured consistent.
As it is shown in figure 1, two bar codes 20,22 are all positioned at relative distant location and close to each other.If user is intended to bar
Code reader 1 reads bar code 20, then the guidance light 120 alignment bar shape code 20 that luminescence unit 12 can be sent by user.But,
Owing to bar code 20,22 is all positioned at relative distant location and close to each other, therefore, bar code 22 is carried out by image acquisition unit 10
Capture, rather than bar code 20 is carried out capture.Consequently, it is possible to bar code reader 1 is to be decoded bar code 22, rather than right
Bar code 20 is decoded.Therefore, user will be mistakenly considered the decoded result of bar code 22 the decoding knot of bar code 20
Really.If user finds mistake the most in real time, it is possible to therefore produce loss.
If additionally, bar code 20 be positioned at relative distant location and its near exist without other bar code, then can be by as user
During the guidance light 120 alignment bar shape code 20 that luminescence unit 12 sends, image acquisition unit 10 just captures less than bar code image,
And then cause decoding unsuccessfully.Now, user just needs to move repeatedly bar code reader 1, makes bar code 20 be positioned at distance in relatively
In the range of, bar code 20 just can be successfully decoded.Aforesaid operations mode the most inefficent and can affect user use see
Sense.
Summary of the invention
It is an object of the invention to provide a kind of bar code indicating means and bar code reading that can effectively promote and be decoded into power
Take device, to solve the problems referred to above.
For reaching above-mentioned purpose, the present invention provides a kind of bar code indicating means, comprises the steps of
The target image of target bar is captured with bar code reader;
Analyze this target image, to obtain image parameters;
Judge whether this bar code reader is efficient solution with the distance at present of this target bar intersymbol according to this image parameters
Code distance;And
When judging this current distance as this efficient decoding distance, send guidance light in this target from this bar code reader
On bar code.
It is also preferred that the left also comprise the steps of
When judging that this, at present apart from during not as this efficient decoding distance, sends warning message from this bar code reader.
It is also preferred that the left this image parameters is image definition, this bar code indicating means also comprises the steps of
When this image definition falls in the range of predetermined definition, it is judged that this current distance is this efficient decoding distance;
And
When this image definition falls when this predetermined definition scope is outer, it is judged that this at present distance be not this efficient decoding away from
From.
It is also preferred that the left also comprise the steps of
The first interval upper target setting scan line in this target image;
The relativeness between at least two characteristic point in the gray-scale distribution of this target scanning lines is analyzed according to coding rule,
To obtain this image parameters, wherein this image parameters comprises at least one fixed reference feature parameter;
When this at least one fixed reference feature parameter is consistent with at least one corresponding first predetermined characteristic parameter, it is judged that should
Distance is the most remote at present;
When this at least one fixed reference feature parameter is consistent with at least one corresponding second predetermined characteristic parameter, it is judged that should
Distance is this efficient decoding distance at present;And
When this at least one fixed reference feature parameter is consistent with at least one corresponding the 3rd predetermined characteristic parameter, it is judged that should
Distance is relative proximity distance at present.
It is also preferred that the left also comprise the steps of
Under multiple preset distances, capture multiple sample images of sample strip shape code with this bar code reader, plurality of should
Preset distance partly belongs to that this is relatively remote, partly belong to this relatively in distance, and remainder belong to this relative proximity away from
From;
In the second interval upper scan sample line that sets of each this sample image, wherein, this first interval and this second
Interval decoding is identical;And
Analyze according to this coding rule between at least two characteristic point in the gray-scale distribution of each this scan sample line
Relativeness, with obtain to should relatively at a distance this at least one first predetermined characteristic parameter, to should relatively in distance
This at least one second predetermined characteristic parameter and to should this at least one the 3rd predetermined characteristic parameter of relative proximity distance.
It is also preferred that the left the relativeness between this at least two characteristic point is pixel distance, grayscale difference value or a combination thereof.
It is also preferred that the left this at least two characteristic point is two adjacent wave peak dots and trough point, two adjacent wave peak dots, two phases
Adjacent wave valley point or a combination thereof.
For reaching above-mentioned purpose, the present invention also provides for a kind of bar code reader, comprises:
Image acquisition unit, captures the target image of target bar;
Luminescence unit;And
Processing unit, is electrically connected at this image acquisition unit and this luminescence unit, and this processing unit analyzes this target shadow
Picture, to obtain image parameters, this processing unit judges this bar code reader and this target bar intersymbol according to this image parameters
Whether distance is efficient decoding distance at present, when this processing unit judges this current distance as this efficient decoding distance, at this
Reason unit controls this luminescence unit and sends guidance light in this target bar.
It is also preferred that the left also comprise alarm unit, it is electrically connected at this processing unit, when this processing unit judges this current distance
When not being this efficient decoding distance, this processing unit controls this alarm unit and sends warning message.
It is also preferred that the left this image parameters is image definition, when this image definition falls in the range of predetermined definition, should
Processing unit judge this current distance as this efficient decoding distance, outside this image definition falls in this predetermined definition scope
Time, this processing unit judges that this is not at present apart from as this efficient decoding distance.
It is also preferred that the left this processing unit is in the first interval upper target setting scan line of this target image, this processing unit root
The relativeness between at least two characteristic point in the gray-scale distribution of this target scanning lines is analyzed, to obtain this shadow according to coding rule
As parameter, this image parameters comprises at least one fixed reference feature parameter, when this at least one fixed reference feature parameter is with corresponding
When at least one first predetermined characteristic parameter is consistent, this processing unit judge this at present distance for relatively at a distance, when this at least
When one fixed reference feature parameter is consistent with at least one corresponding second predetermined characteristic parameter, this processing unit judge this at present away from
From for this efficient decoding distance, when this at least one fixed reference feature parameter and at least one corresponding the 3rd predetermined characteristic parameter phase
Fu Shi, this processing unit judges that this current distance is as relative proximity distance.
It is also preferred that the left also comprise mnemon, being electrically connected at this processing unit, this mnemon stores synopsis, and this is right
According to table record to should relatively at a distance this at least one first predetermined characteristic parameter, to should efficient decoding distance this extremely
A few second predetermined characteristic parameter, and to should this at least one the 3rd predetermined characteristic parameter of relative proximity distance.
It is also preferred that the left the relativeness between this at least two characteristic point is pixel distance, grayscale difference value or a combination thereof.
It is also preferred that the left this at least two characteristic point is two adjacent wave peak dots and trough point, two adjacent wave peak dots, two phases
Adjacent wave valley point or a combination thereof.
Compared with prior art, the present invention provides a kind of bar code reader and bar code indicating means, with bar of the present invention
When code reader reads bar code, the present invention is judging that the current distance of bar code reader and target bar intersymbol is as relative middle-range
From time, just control luminescence unit send guidance light in target bar.Now, bar code reader is just to target bar
Target image is decoded.Owing to target bar is positioned in relatively in the range of distance, therefore, image acquisition unit is i.e. pin
Target bar is carried out capture.In other words, even if with the presence of other bar code near target bar, when user sees finger
Show when light is beaten in target bar, just can determine that bar code reader must be to be decoded target bar.Thereby, i.e.
Can effectively promote target bar is decoded into power.Additionally, work as the distance at present of bar code reader and target bar intersymbol not
For (such as, relatively remote or relative proximity distance) during middle distance relatively, the present invention can send warning message from bar code reader,
To point out user that bar code reader is adjusted to relative middle distance with the current distance of target bar intersymbol.Thereby, it is possible to reduce
User moves repeatedly bar code reader number of times, and then promotes decoding efficiency.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of the bar code reader reading bar code of prior art.
Fig. 2 A is the schematic diagram of the bar code reader 3 according to the embodiment of the present invention and sample strip shape code 4.
Fig. 2 B is the sample image signal that the bar code reader 3 scanned samples bar code 4 according to the embodiment of the present invention obtains
Figure.
Fig. 3 is the functional block diagram of the bar code reader in Fig. 2 A.
Fig. 4 is that the bar code indicating means according to the embodiment of the present invention sets up bar code image feature and bar code reader 3
Flow chart with the synopsis of the relative distance of sample strip shape code 4.
Fig. 5 be the preset distance between bar code reader with sample strip shape code be relative in distance time obtain gray-scale distribution
Schematic diagram.
Fig. 6 be the preset distance between bar code reader with sample strip shape code be relative remote time the gray-scale distribution that obtains
Schematic diagram.
Fig. 7 is the gray-scale distribution that the preset distance between bar code reader and sample strip shape code obtains when being relative proximity distance
Schematic diagram.
Fig. 8 is the flow chart of the bar code indicating means according to the embodiment of the present invention.
Fig. 9 A is the schematic diagram of target bar 5.
Fig. 9 B is the target image schematic diagram that bar code reader 3 captures that target bar 5 obtains.
Figure 10 is the schematic diagram of the gray-scale distribution of target scanning lines.
Detailed description of the invention
For making the purpose of the present invention, structure, feature and function thereof are had further understanding, hereby coordinate embodiment specifically
Bright as follows.
Referring to Fig. 2 A to Fig. 7, Fig. 2 A is the bar code reader 3 scanned samples bar code 4 according to the embodiment of the present invention
Using view, Fig. 2 B is the sample shadow that the bar code reader 3 scanned samples bar code 4 according to the embodiment of the present invention obtains
As schematic diagram, Fig. 3 is the functional block diagram of the bar code reader 3 in Fig. 2 A, and Fig. 4 is that the bar code according to the embodiment of the present invention refers to
Show that method sets up bar code image feature and bar code reader 3 and the flow chart of the synopsis of the relative distance of sample strip shape code 4,
Fig. 5 be the preset distance between bar code reader 3 with sample strip shape code 4 be relative in distance time the signal of gray-scale distribution that obtains
Figure, Fig. 6 be the preset distance between bar code reader 3 with sample strip shape code 4 be relative remote time the showing of gray-scale distribution of obtaining
Being intended to, Fig. 7 is the gray-scale distribution that the preset distance between bar code reader 3 and sample strip shape code 4 obtains when being relative proximity distance
Schematic diagram.
As it is shown on figure 3, the bar code reader 3 of the present invention comprises image acquisition unit 30, luminescence unit 32, processing unit
34, alarm unit 36 and mnemon 38, wherein processing unit 34 is electrically connected at image acquisition unit 30, luminescence unit
32, alarm unit 36 and mnemon 38.In reality is applied, image acquisition unit 30 can be Charged Coupled Device (Charge-
Coupled Device, CCD) sensor or complementary metal oxide quasiconductor (Complementary Metal-Oxide
Semiconductor, CMOS) sensor;Luminescence unit 32 can be light emitting diode or other luminescence component;Processing unit 34 can
For having processor or the controller of data processing function;Alarm unit 36 can be light source, display, speaker, vibrating motor
Or a combination thereof;Mnemon 38 can be internal memory or other data memory device.It is said that in general, bar code reader 3 also can be provided with
Software and hardware assembly necessary during running, such as circuit board, power supply unit, application program, communication module, camera lens etc., answers depending on actual
Depending on.
The present invention obtains the image feature of sample strip shape code 4 by bar code reader 3, then estimates bar code reader 3 and sample
The relative distance of this bar code 4, the relative distance information needed during to provide decoding, and then effectively lifting is decoded into power.Cause
This, before being decoded bar code, the bar code indicating means of the present invention can first set up bar code image feature and bar code reading
Take the synopsis of the relative distance of device 3 and sample strip shape code 4.
First, step S10 is performed, it is provided that sample strip shape code 4.In this embodiment, the coding of sample strip shape code 4 meets spy
Fixed coding rule.As shown in Figure 2 A, the coding of sample strip shape code 4 may conform to the coding rule of Code 39, therefore, in decoding
After sample strip shape code 4, the coding of i.e. available " * 3A* ".Rise corresponding to fixing owing to all can have before and after sample strip shape code 4
Beginning and the interval of full stop " * ", therefore, the present invention can utilize this special interval, sets up bar code image feature and reads with bar code
The synopsis of the relative distance of device 3 and sample strip shape code 4.It should be noted that, the coding of sample strip shape code 4 also can be according to actual need
Ask and select other coding rule, be not limited with the coding rule of Code 39.
Then, perform step S12, under multiple preset distances, capture multiple samples of sample strip shape code 4 with bar code reader 3
This image, partly belonging to of the most the plurality of preset distance is relatively remote, partly belong to distance in relatively (i.e. efficient decoding away from
From) and remainder belong to relative proximity distance.
Then, step S14 is performed, in the first interval upper setting scan sample line 40 of each sample image.Sample is swept
Retouch the horizontal line that line 40 may be set on the sample image of sample strip shape code 4, as shown in Figure 2 B.Need special instruction
It is that this first interval of the present invention is that this special interval, i.e. scan sample line 40 can be set in this special interval (corresponding to fixing
The initial interval with full stop " * "), to improve versatility;And the present invention is to set scan sample line on this sample image
40, to scan this sample image along scan sample line 40 and to obtain the gray-scale distribution of scan sample line 40, scan sample line 40
It is not directly to be drawn on this sample image, and assumes that scan sample line 40 actually exists on this sample image, then can affect
The gray-scale distribution obtained, therefore, it practice, scan sample line 40 cannot be immediately seen on this sample image, Fig. 2 B is simply
Convenience understands and has just marked scan sample line 40.
Then, perform step S16, analyze in the gray-scale distribution of each scan sample line 40 at least according to coding rule
Relativeness between two characteristic points, to obtain correspondence at least one first predetermined characteristic parameter relatively at a distance, corresponding phase
At least one second predetermined characteristic parameter of centering distance and corresponding relative at least one the 3rd predetermined characteristic parameter in-plant.
In this embodiment, Fig. 5 is preset distance between bar code reader 3 with sample strip shape code 4 in relative during distance
The gray-scale distribution obtained, Fig. 6 be the preset distance between bar code reader 3 with sample strip shape code 4 be relative remote time obtain
Gray-scale distribution, and Fig. 7 is the GTG that the preset distance between bar code reader 3 and sample strip shape code 4 obtains when being relative proximity distance
Distribution, wherein triangle and square are respectively wave crest point and the trough point of gray-scale distribution.
Desirable two the adjacent wave peak dot A as shown in Figures 5 to 7 of the present invention and trough point B, two adjacent wave peak dot C, E
And two adjacent wave valley point D and wave crest point E are analyzed as 3 stack features points.It should be noted that, with two adjacent wave
As a example by peak dot A and trough point B, Fig. 5 medium wave peak dot A and trough point B be positioned at its corresponding gray-scale distribution curve relative position and
The relative position that Fig. 6 medium wave peak dot A is positioned at its corresponding gray-scale distribution curve with trough point B is identical, Fig. 6 medium wave peak dot A and ripple
Valley point B is positioned at the relative position of the gray-scale distribution curve of its correspondence and is positioned at its corresponding ash with Fig. 7 medium wave peak dot A with trough point B
The relative position of rank distribution curve is identical, i.e. the same interval of all corresponding sample strip shape code 4 of Fig. 5 to Fig. 7 medium wave peak dot A, Fig. 5
To the same interval of all corresponding sample strip shape code 4 of Fig. 7 medium wave valley point B, to obtain wave crest point A and trough under this preset distance different
The relative position relation of some B;The choosing principles of two adjacent wave peak dot C, E and two adjacent wave valley point D and wave crest point E is same
On, do not repeat them here.Certainly, the present invention also can select two adjacent peaks and trough, two adjacent wave according to reality application
Peak, two adjacent troughs or a combination thereof are analyzed as characteristic point, are not limited with the embodiment shown in Fig. 5 to Fig. 7.
For example, it is defined as relative when can be 7 centimeters by the preset distance between bar code reader 3 with sample strip shape code 4
Middle distance, and obtain the gray-scale distribution shown in Fig. 5 with this relatively middle distance, two of which adjacent wave peak dot A and trough point B is apart
5 pixel distances, two adjacent wave peak dot C, E are at a distance of 5 pixel distances, and the GTG of two adjacent wave valley point D and wave crest point E
Difference value is 35.Additionally, be defined as relative when can be 13 centimeters by the preset distance between bar code reader 3 with sample strip shape code 4
At a distance, and obtaining the gray-scale distribution shown in Fig. 6 the most at a distance with this, two of which adjacent wave peak dot A and trough point B is apart
3 pixel distances, two adjacent wave peak dot C, E are at a distance of 1 pixel distance, and the GTG of two adjacent wave valley point D and wave crest point E
Difference value is 7.Furthermore, when can be 4 centimeters by the preset distance between bar code reader 3 and sample strip shape code 4, it be defined as relative proximity
Distance, and obtain the gray-scale distribution shown in Fig. 7 with this relative proximity distance, two of which adjacent wave peak dot A and trough point B is at a distance of 8
Individual pixel distance, two adjacent wave peak dot C, E are at a distance of 7 pixel distances, and the GTG of two adjacent wave valley point D and wave crest point E
Difference value is 14.It should be noted that, can according to reality application select the pixel distance between two characteristic points, grayscale difference value or its
Combination, as the relativeness between two characteristic points, is not limited with the above embodiments.
Under multiple different preset distances, multiple sample images of sample strip shape code 4 are being captured with bar code reader 3, and
After the gray-scale distribution of the scan sample line 40 of each sample image is carried out analysis as above, can set up as shown in table 1 below
The synopsis of bar code image feature and bar code reader 3 and the relative distance of sample strip shape code 4, wherein right shown in table 1
It is stored in mnemon 38 according to table.
Table 1
Referring to the flow chart that Fig. 8 to Figure 10, Fig. 8 are the bar code indicating means according to the embodiment of the present invention, Fig. 9 A is
The schematic diagram of target bar 5, Fig. 9 B is the target image schematic diagram that bar code reader 3 captures that target bar 5 obtains, Figure 10
Schematic diagram for the gray-scale distribution of target scanning lines 50.Read with bar code setting up bar code image feature as listed in Table 1
After the synopsis of the relative distance of device 3 and sample strip shape code 4, according to table 1 target bar 5 can be captured and decode.
It should be noted that, owing to table 1 is set up according to the coding rule of Code 39, therefore, target bar 5 also needs to meet Code 39
Coding rule.In other words, the coding rule of target bar 5 need to meet the coding rule setting up table 1.The present invention can be through
Produced the synopsis multiple as shown in table 1 of corresponding different coding rule by aforesaid way, and multiple synopsis are stored in note
Recall in unit 38.
First, perform step S30, capture the target image of target bar 5 with bar code reader 3, that is, via bar code
The image acquisition unit 30 of reader 3 captures the target image of target bar 5.
Then, performing step S32, processing unit 34 analyzes target image, to obtain image parameters.In this embodiment,
Processing unit 34 can be prior to the second upper target setting scan line 50 in interval of target image, as shown in Figure 9 B, wherein this firstth district
Between identical with the decoding in this second interval.It should be strongly noted that this second interval of the present invention is also this special interval, sample
Scan line 40 is set in this special interval, and i.e. corresponding to the fixing initial interval with full stop " * ", otherwise table 1 will lose ginseng
The property examined.Certainly, the setting of the scan line of the present invention is not limited to this, as long as the sample strip shape code set by scan sample line
Interval identical, specifically by designer according to reality with the interval corresponding decoding of the target bar set by target scanning lines
Depending on situation, do not repeat them here.
Further, the present invention is target setting scan line 50 on this target image, to scan along target scanning lines 50
This target image also obtains the gray-scale distribution of target scanning lines 50, and target scanning lines 50 is not to be directly drawn in this target image
On, and assume that target scanning lines 50 actually exists on this target image, then can affect the grey exponent part obtained, therefore, actual
On, it is impossible to being immediately seen target scanning lines 50 on this target image, Fig. 9 B is intended merely to conveniently understand that just having marked target sweeps
Retouch line 50.Then, processing unit 34 can be analyzed in the gray-scale distribution of target scanning lines 50 according to the coding rule of target bar 5
At least two characteristic point between relativeness, to obtain image parameters, wherein image parameters comprises at least one fixed reference feature
Parameter.Owing to table 1 is with two shown in Fig. 5 to Fig. 7 adjacent wave peak dot A and trough point B, two adjacent wave peak dot C, E and two
Individual adjacent wave valley point D and wave crest point E sets up as 3 stack features points, and therefore, the present invention can be according to the ash of target scanning lines 50
Two adjacent wave peak dot A and trough point B, two adjacent wave peak dot C, E and two adjacent wave valley point D in the distribution of rank and crest
The relativeness (as shown in Figure 10) of some E, obtains three fixed reference feature parameters, that is, two adjacent wave peak dot A and trough point B
Pixel distance, the pixel distance of two adjacent wave peak dot C, E, and the grayscale difference of two adjacent wave valley point D and wave crest point E
Value.
After obtaining the image parameters of target image of target bar 5 in the above described manner, then, step S34, place are performed
According to this image parameters, reason unit judges whether the distance at present between bar code reader 3 with target bar 5 is relative middle distance.
In this embodiment, when the fixed reference feature parameter (that is, image parameters) obtained according to target bar 5 and first in table 1
When predetermined characteristic parameter is consistent, processing unit 34 i.e. can determine whether that the current distance between bar code reader 3 with target bar 5 is phase
To at a distance;When the fixed reference feature parameter (that is, image parameters) obtained according to target bar 5 makes a reservation for second in table 1
When characteristic parameter is consistent, processing unit 34 i.e. can determine whether that at present distance between bar code reader 3 with target bar 5 is in relative
Distance, i.e. efficient decoding distance;When the fixed reference feature parameter (that is, image parameters) obtained according to target bar 5 with in table 1
The 3rd predetermined characteristic parameter when being consistent, processing unit 34 i.e. can determine whether between bar code reader 3 and target bar 5 current away from
From for relative proximity distance.
When processing unit 34 judges the distance at present between bar code reader 3 with target bar 5 as relative middle distance, i.e.
This efficient decoding distance, performs step S36, and processing unit 34 controls luminescence unit 32 and sends guidance light in target bar 5
On.In this embodiment, when luminescence unit 32 send guidance light in target bar 5 time, processing unit 34 can be the most right
The target image of target bar 5 is decoded.In another embodiment, when luminescence unit 32 sends guidance light in target
Time on bar code 5, processing unit 34 can be just to target bar 5 after the switch that user triggers on bar code reader 3 further
Target image be decoded.Owing to target bar 5 is positioned in relatively in the range of distance, therefore, image acquisition unit 30
It is i.e. to carry out capture for target bar 5.In other words, even if with the presence of other bar code near target bar 5, working as use
Person sees when guidance light is beaten in target bar 5, just can determine that bar code reader 3 must be to carry out target bar 5
Decoding.Thereby, can effectively promote target bar 5 is decoded into power.
On the other hand, judge that the distance at present between bar code reader 3 with target bar 5 is not as relative when processing unit 34
During middle distance (such as, relatively remote or relative proximity distance), performing step S38, processing unit 34 controls alarm unit 36
Go out to warn message, to point out user that the current distance between bar code reader 3 with target bar 5 is adjusted to relative middle distance.
In this embodiment, warning message can be light, image, sound, vibration or a combination thereof, depending on actual application.Additionally, this
The bright luminescence unit 32 that also may utilize is as alarm unit, and now, above-mentioned alarm unit 36 can omit.
For example, the at present distance when between bar code reader 3 with target bar 5 be relative at a distance time (that is, bar
Code reader 3 distance objective bar code 5 is too far), the present invention can point out the user need to be by bar code reader 3 in quick-flash mode
Capture is carried out near target bar 5.Otherwise, the current distance when between bar code reader 3 and target bar 5 is relative proximity distance
Time (that is, bar code reader 3 distance objective bar code 5 is the nearest), the present invention can at a slow speed flash model prompting user need by
Bar code reader 3 wide bar code 5 carrys out capture.Certainly, the present invention also can directly pass through image display " too far ", " the nearest "
Or other word, symbol or image point out user.In other words, the presentation mode of warning message can be determined according to reality application
Fixed, it is not limited with above-described embodiment.
Additionally, in another embodiment, the image parameters obtained by above-mentioned steps S32 also can be image definition.Change
Yan Zhi, the present invention can analyze the target image of target bar 5 by image processing techniques, clear to obtain the image of target image
Clear degree, and using the image definition of target image as above-mentioned image parameters.When image definition falls in predetermined definition scope
Time interior, processing unit 34 i.e. can determine whether that the distance at present between bar code reader 3 with target bar 5 is relative middle distance, and works as
Image definition falls when predetermined definition scope is outer, and processing unit 34 i.e. can determine whether between bar code reader 3 and target bar 5
At present distance be relatively middle distance.It should be noted that, predetermined definition scope with relative in the corresponding relation of distance can root
Border is applied and is determined factually.
In sum, when reading bar code with bar code reader of the present invention, the present invention is judging bar code reader and mesh
During the distance during at present distance be relatively of mark bar shaped intersymbol, just control luminescence unit sends guidance light in target bar.
Now, the target image of target bar is just decoded by bar code reader.Owing to target bar is positioned at distance in relatively
In the range of, therefore, image acquisition unit is i.e. to carry out capture for target bar.In other words, even if target bar is attached
Closely with the presence of other bar code, when user sees that guidance light is beaten in target bar, just can determine that bar code reader
Must be that target bar is decoded.Thereby, can effectively promote target bar is decoded into power.Additionally, work as bar
When distance be relative middle distance at present of code reader and target bar intersymbol (such as, relatively at a distance or relative proximity away from
From), the present invention can send warning message from bar code reader, to point out user by the mesh of bar code reader Yu target bar intersymbol
Front distance is adjusted to distance in relatively.Thereby, it is possible to reduce user moves repeatedly bar code reader number of times, and then promotes decoding
Efficiency.
The present invention is been described by by above-mentioned related embodiment, but above-described embodiment is only the example implementing the present invention.
It must be noted that, the embodiment disclosed is not limiting as the scope of the present invention.On the contrary, without departing from the present invention spirit and
In the range of the change made and retouching, all belong to the scope of patent protection of the present invention.
Claims (14)
1. a bar code indicating means, it is characterised in that comprise the steps of
The target image of target bar is captured with bar code reader;
Analyze this target image, to obtain image parameters;
According to this image parameters judge the distance at present of this bar code reader and this target bar intersymbol be whether efficient decoding away from
From;And
When judging this current distance as this efficient decoding distance, send guidance light in this target bar from this bar code reader
On code.
2. bar code indicating means as claimed in claim 1, it is characterised in that also comprise the steps of
When judging that this, at present apart from during not as this efficient decoding distance, sends warning message from this bar code reader.
3. bar code indicating means as claimed in claim 1, it is characterised in that this image parameters is image definition, this
Shape code indicating means also comprises the steps of
When this image definition falls in the range of predetermined definition, it is judged that this current distance is this efficient decoding distance;And
When this image definition falls when this predetermined definition scope is outer, it is judged that this current distance is not this efficient decoding distance.
4. bar code indicating means as claimed in claim 1, it is characterised in that also comprise the steps of
The first interval upper target setting scan line in this target image;
The relativeness between at least two characteristic point in the gray-scale distribution of this target scanning lines is analyzed according to coding rule, with
To this image parameters, wherein this image parameters comprises at least one fixed reference feature parameter;
When this at least one fixed reference feature parameter is consistent with at least one corresponding first predetermined characteristic parameter, it is judged that this is current
Distance is the most remote;
When this at least one fixed reference feature parameter is consistent with at least one corresponding second predetermined characteristic parameter, it is judged that this is current
Distance is this efficient decoding distance;And
When this at least one fixed reference feature parameter is consistent with at least one corresponding the 3rd predetermined characteristic parameter, it is judged that this is current
Distance is relative proximity distance.
5. bar code indicating means as claimed in claim 4, it is characterised in that also comprise the steps of
Capture multiple sample images of sample strip shape code under multiple preset distances with this bar code reader, plurality of this makes a reservation for
Distance partly belongs to that this is relatively remote, partly belong to this relatively in distance, and remainder belongs to this relative proximity distance;
In the upper scan sample line that sets in the second interval of each this sample image, wherein, this first interval and this second interval
Decoding identical;And
That analyzes between at least two characteristic point in the gray-scale distribution of each this scan sample line according to this coding rule is relative
Relation, with obtain to should relatively at a distance this at least one first predetermined characteristic parameter, to should relatively in distance be somebody's turn to do
At least one second predetermined characteristic parameter and to should this at least one the 3rd predetermined characteristic parameter of relative proximity distance.
6. the bar code indicating means as described in claim 4 or 5, it is characterised in that the phase between this at least two characteristic point
It is pixel distance, grayscale difference value or a combination thereof to relation.
7. the bar code indicating means as described in claim 4 or 5, it is characterised in that this at least two characteristic point is two
Adjacent wave peak dot and trough point, two adjacent wave peak dots, two adjacent wave valley points or a combination thereof.
8. a bar code reader, it is characterised in that comprise:
Image acquisition unit, captures the target image of target bar;
Luminescence unit;And
Processing unit, is electrically connected at this image acquisition unit and this luminescence unit, and this processing unit analyzes this target image, with
Obtain image parameters, this processing unit according to this image parameters judge this bar code reader and this target bar intersymbol current away from
From whether being efficient decoding distance, when this processing unit judges this current distance as this efficient decoding distance, this processing unit
Control this luminescence unit and send guidance light in this target bar.
9. bar code reader as claimed in claim 8, it is characterised in that also comprise alarm unit, be electrically connected at this process
Unit, when this processing unit judges this current distance not as this efficient decoding distance, this processing unit controls this alarm unit
Send warning message.
10. bar code reader as claimed in claim 8, it is characterised in that this image parameters is image definition, when this image
When definition falls in the range of predetermined definition, this processing unit judge this current distance as this efficient decoding distance, when this shadow
Image sharpness falls when this predetermined definition scope is outer, and this processing unit judges that this is not at present apart from as this efficient decoding distance.
11. bar code readers as claimed in claim 8, it is characterised in that this processing unit is in the firstth district of this target image
Target setting scan line between, this processing unit analyzes at least two in the gray-scale distribution of this target scanning lines according to coding rule
Relativeness between individual characteristic point, to obtain this image parameters, this image parameters comprises at least one fixed reference feature parameter, when this
When at least one fixed reference feature parameter is consistent with at least one corresponding first predetermined characteristic parameter, this processing unit judges should
Distance is relatively remote, when this at least one fixed reference feature parameter and at least one corresponding second predetermined characteristic parameter at present
When being consistent, this processing unit judge this current distance as this efficient decoding distance, when this at least one fixed reference feature parameter is with right
When at least one answered the 3rd predetermined characteristic parameter is consistent, this processing unit judges that this current distance is as relative proximity distance.
12. bar code readers as claimed in claim 11, it is characterised in that also comprise mnemon, be electrically connected at this
Reason unit, this mnemon stores synopsis, this synopsis record to should relatively at a distance this at least one first make a reservation for
Characteristic parameter, to should this at least one second predetermined characteristic parameter of efficient decoding distance, and to should relative proximity distance
This at least one the 3rd predetermined characteristic parameter.
13. bar code readers as claimed in claim 11, it is characterised in that the relativeness between this at least two characteristic point is
Pixel distance, grayscale difference value or a combination thereof.
14. bar code readers as claimed in claim 11, it is characterised in that this at least two characteristic point is two adjacent peaks
Point and trough point, two adjacent wave peak dots, two adjacent wave valley points or a combination thereof.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610647272.XA CN106295455B (en) | 2016-08-09 | 2016-08-09 | Bar code indicating method and bar code reader |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610647272.XA CN106295455B (en) | 2016-08-09 | 2016-08-09 | Bar code indicating method and bar code reader |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106295455A true CN106295455A (en) | 2017-01-04 |
CN106295455B CN106295455B (en) | 2021-08-03 |
Family
ID=57666798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610647272.XA Expired - Fee Related CN106295455B (en) | 2016-08-09 | 2016-08-09 | Bar code indicating method and bar code reader |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106295455B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109615360A (en) * | 2018-09-29 | 2019-04-12 | 阿里巴巴集团控股有限公司 | A kind of encoding of graphs methods of exhibiting and device |
CN109670362A (en) * | 2017-10-16 | 2019-04-23 | 上海商米科技有限公司 | Bar code scanning method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030116628A1 (en) * | 2001-11-30 | 2003-06-26 | Sanyo Electric Co., Ltd. | Reading method of the two-dimensional bar code |
CN101419481A (en) * | 2007-10-25 | 2009-04-29 | 达方电子股份有限公司 | Pose reminding method and device thereof |
CN102034072A (en) * | 2009-09-25 | 2011-04-27 | 神基科技股份有限公司 | Method for identifying barcode image |
CN102096797A (en) * | 2011-01-18 | 2011-06-15 | 深圳市民德电子科技有限公司 | Position prompting device and method for read bar code and bar code reading equipment |
CN102480587A (en) * | 2010-11-23 | 2012-05-30 | 英业达股份有限公司 | Network camera device and method for operating the same |
CN103336938A (en) * | 2013-06-05 | 2013-10-02 | 华南理工大学 | Recognition method based one-dimensional bar code image |
CN103491307A (en) * | 2013-10-07 | 2014-01-01 | 厦门美图网科技有限公司 | Intelligent selfie method through rear camera |
CN105279490A (en) * | 2015-10-21 | 2016-01-27 | 北京无线电计量测试研究所 | Man-machine interaction type iris image automatic acquisition apparatus |
-
2016
- 2016-08-09 CN CN201610647272.XA patent/CN106295455B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030116628A1 (en) * | 2001-11-30 | 2003-06-26 | Sanyo Electric Co., Ltd. | Reading method of the two-dimensional bar code |
CN101419481A (en) * | 2007-10-25 | 2009-04-29 | 达方电子股份有限公司 | Pose reminding method and device thereof |
CN102034072A (en) * | 2009-09-25 | 2011-04-27 | 神基科技股份有限公司 | Method for identifying barcode image |
CN102480587A (en) * | 2010-11-23 | 2012-05-30 | 英业达股份有限公司 | Network camera device and method for operating the same |
CN102096797A (en) * | 2011-01-18 | 2011-06-15 | 深圳市民德电子科技有限公司 | Position prompting device and method for read bar code and bar code reading equipment |
CN103336938A (en) * | 2013-06-05 | 2013-10-02 | 华南理工大学 | Recognition method based one-dimensional bar code image |
CN103491307A (en) * | 2013-10-07 | 2014-01-01 | 厦门美图网科技有限公司 | Intelligent selfie method through rear camera |
CN105279490A (en) * | 2015-10-21 | 2016-01-27 | 北京无线电计量测试研究所 | Man-machine interaction type iris image automatic acquisition apparatus |
Non-Patent Citations (3)
Title |
---|
HEE IL HAHN等: "Implementation of algorithm to decode two-dimensional barcode PDF-417", 《6TH INTERNATIONAL CONFERENCE ON SIGNAL PROCESSING, 2002》 * |
刘宁钟等: "基于波形分析的二维条码识别", 《计算机研究与发展》 * |
范哲意等: "基于拍摄图像的PDF417条码识别", 《北京理工大学学报》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109670362A (en) * | 2017-10-16 | 2019-04-23 | 上海商米科技有限公司 | Bar code scanning method and device |
CN109615360A (en) * | 2018-09-29 | 2019-04-12 | 阿里巴巴集团控股有限公司 | A kind of encoding of graphs methods of exhibiting and device |
US11170188B2 (en) | 2018-09-29 | 2021-11-09 | Alibaba Group Holding Limited | Method and apparatus for presenting graphic codes |
Also Published As
Publication number | Publication date |
---|---|
CN106295455B (en) | 2021-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11954930B2 (en) | Decoding 1D-barcodes in digital capture systems | |
US10311274B2 (en) | Reader for optical indicia presented under two or more imaging conditions within a single frame time | |
US10013591B2 (en) | Code symbol reading system having adaptive autofocus | |
Liu et al. | Recognition of QR Code with mobile phones | |
US10853903B1 (en) | Detection of encoded signals and icons | |
EP2568412B1 (en) | Apparatus for recognizing character and barcode simultaneously and method for controlling the same | |
CN102034073B (en) | Bar code identification method and bar code identification device | |
EP2093697A1 (en) | Method and arrangement for retrieving information comprised in a barcode | |
US10540532B2 (en) | System and method for detecting optical codes with damaged or incomplete finder patterns | |
US10803272B1 (en) | Detection of encoded signals and icons | |
EP2507741B1 (en) | Imaging-based scanner including border searching for image acquisition | |
JP2008511919A (en) | System and method for aiming an optical code scanning device | |
US11257198B1 (en) | Detection of encoded signals and icons | |
CN110443237B (en) | Certificate identification method, device, electronic equipment and computer readable storage medium | |
US8083149B2 (en) | Annotation of optical images on a mobile device | |
US8814047B2 (en) | Expedited image processing method | |
CN106295455A (en) | Bar code indicating means and bar code reader | |
EP2779023A1 (en) | Systems and methods for pattern stitching and decoding using multiple captured images | |
KR101259004B1 (en) | calibration device for Deformation of QR-code using camera and thereof. | |
WO2018185574A1 (en) | Apparatus and method for documents and/or personal identities recognition and validation | |
JP2008250818A (en) | Program for portable terminal device and portable terminal device | |
US9104935B1 (en) | Mark reader configured to prioritize images | |
JP5561331B2 (en) | Program for portable terminal device and portable terminal device | |
CN106250792B (en) | Bar code acquisition method and bar code reader | |
US20110142278A1 (en) | Visual-Based Contactless Communication Device and Method Thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
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: 20210803 |