CN101916357A - Laser barcode reading device and barcode reading method - Google Patents

Laser barcode reading device and barcode reading method Download PDF

Info

Publication number
CN101916357A
CN101916357A CN 201010272715 CN201010272715A CN101916357A CN 101916357 A CN101916357 A CN 101916357A CN 201010272715 CN201010272715 CN 201010272715 CN 201010272715 A CN201010272715 A CN 201010272715A CN 101916357 A CN101916357 A CN 101916357A
Authority
CN
China
Prior art keywords
bar code
carried out
signal
laser
blue laser
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.)
Pending
Application number
CN 201010272715
Other languages
Chinese (zh)
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.)
XIAN CILICO MICROELECTRONICS CORP
Original Assignee
XIAN CILICO MICROELECTRONICS CORP
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 XIAN CILICO MICROELECTRONICS CORP filed Critical XIAN CILICO MICROELECTRONICS CORP
Priority to CN 201010272715 priority Critical patent/CN101916357A/en
Publication of CN101916357A publication Critical patent/CN101916357A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mechanical Optical Scanning Systems (AREA)

Abstract

The invention discloses a laser barcode reading device and a barcode reading method. The reading device comprises a blue light laser, a deflecting mirror, a swingable reflecting mirror, an optical collector, a light filter, a photoelectric receiver, an amplification processing circuit, a processor connected with the amplification processing circuit and controlling the blue light laser, and a power module. The reading method comprises the following steps of: receiving scanning optical signals; performing analog digital conversion and acquisition of the scanning optical signals; performing fast Fourier transform; removing high-frequency component; performing fourier inversion; calculating a threshold by using an Otsu method; performing binaryzation on barcode signals according to the threshold; and decoding according to various barcode standards. The laser barcode reading device has the advantages of reasonable design, simple and convenient operation, low input cost and good using effect and adopts the brand-new blue laser scanning source to scan one-dimensional barcodes; and the invention also provides a barcode reading method with high recognition performance, strong resolution and high recognition precision so as to simplify an electronic hardware part of the barcode reading device.

Description

A kind of laser bar code reading device and bar code reading method
Technical field
The invention belongs to laser bar code recognition technical field, especially relate to a kind of laser bar code reading device and bar code reading method.
Background technology
Along with the rise of logistic industry, bar code more and more is applied in efficient logistics and the retail trade, and wherein bar code is widely used.Correspondingly, bar code reader has also entered the stage of a high speed development, wherein the development of laser scanning device is also maked rapid progress day by day, and the principle of work of laser scanning device is to use laser as light source and information carrier, and the corresponding scanning operation of finishing bar code.But nowadays the laser that laser scanner adopted that uses on the market is the red laser of 620nm~700nm; And traditional signals collecting mode that laser scanner adopted all needs a large amount of hardware circuits that signal is carried out processing and amplifying, so just introduced the bad problem of hardware circuit consistance, made signal collected processing procedure of carrying out post-processed is become complicated, loaded down with trivial details more.
Summary of the invention
Technical matters to be solved by this invention is at above-mentioned deficiency of the prior art, provide a kind of simple in structure, reasonable in design, use is easy and simple to handle and result of use good, laser bar code reading device applied widely.
For solving the problems of the technologies described above, the technical solution used in the present invention is: a kind of laser bar code reading device, it is characterized in that: comprise and to send the blue laser that wavelength is the blue laser beams of 405nm~475nm, the light path of blue laser beams that blue laser sends is carried out the deflecting mirror of deflection, but will carry out direct reflection and folded light beam will be projected to the need scanning barcode carrying out diffuse reflection and will carrying out the swinging mirror of direct reflection through the diffuse reflection light beam that needs scanning barcode information that can reflect after the diffuse reflection of described need scanning barcode synchronously through the blue laser beams after the deflecting mirror deflection, but the diffuse reflection light beam after the swinging mirror direct reflection is carried out the optical collector of light harvesting and corresponding formation light harvesting bundle, the optical filtering that the light harvesting Shu Jinhang that optical collector is sent filters, light beam after optical filtering filtered receives and is the photelectric receiver of electric signal with institute's receiving beam conversion of signals, electric signal that photelectric receiver is exported is carried out the amplification treatment circuit of processing and amplifying, amplification treatment circuit institute output signal is carried out analog to digital conversion and the digital signal after analog to digital conversion is carried out analyzing and processing and processor that blue laser is controlled and respectively to blue laser, the power module that described processor and photelectric receiver are powered, described photelectric receiver and amplification treatment circuit join, described amplification treatment circuit and blue laser all join with described processor, described blue laser, described processor and photelectric receiver all join with power module; Described deflecting mirror is laid on the emission light path of blue laser, but swinging mirror is laid on the emission light path of deflecting mirror, but the described scanning barcode that needs is laid on the reflected light path of swinging mirror, optical collector is laid on the described diffuse reflection light path that needs scanning barcode, and optical filtering is corresponding to be laid on the receiving light path of the emission light path of optical collector and photelectric receiver; But described swinging mirror comprises catoptron and is installed on the described catoptron and drives the wobble drive mechanism that described catoptron swings up and down continuously.
Above-mentioned a kind of laser bar code reading device is characterized in that: described processor is a single-chip microcomputer.
Above-mentioned a kind of laser bar code reading device is characterized in that: also comprise the host computer that carries out two-way communication with described processor, described processor and host computer join.
Above-mentioned a kind of laser bar code reading device is characterized in that: also comprise the control button and the data storage cell that join with described processor.
Above-mentioned a kind of laser bar code reading device, it is characterized in that: the wavelength of blue laser beams that described blue laser sends is 473nm.
Simultaneously, the laser bar code reading device that the invention also discloses that a kind of operand is little, recognition speed is fast, the recognition accuracy rate is high and can effectively solves practical problemss such as reading device hardware circuit consistance is bad is characterized in that to the scanning barcode reading method this method may further comprise the steps:
Step 1, the scan light signal receives: at first, by deflecting mirror the light path of blue laser beams that blue laser sends is carried out deflection, but will carry out direct reflection and folded light beam will be projected to the need scanning barcode through the blue laser beams after the deflecting mirror deflection by swinging mirror again,, the reflection ray that swinging mirror throwed carries out direct reflection but but projecting swinging mirror with diffuse light synchronously once more after described need scanning barcode generation diffuse reflection, successively but the diffuse reflection light beam after the swinging mirror direct reflection is carried out light harvesting and filtration by optical collector and optical filtering more afterwards, and the light beam after will filtering is delivered to photelectric receiver and is received;
Step 2, the rough handling of scan light signal and collection: after photelectric receiver carries out opto-electronic conversion to the beam signal that receives, the corresponding electric signal of light intensity of corresponding acquisition and photelectric receiver institute receiving beam; By amplification treatment circuit the analog to digital conversion interface that described electric signal carries out delivering to after the processing and amplifying described processor is carried out analog to digital conversion again, and it is corresponding with the digital scanning signal of described electric signal corresponding conversion for dispersing, by the embedded data collecting card of described processor the described digital scanning signal after changing is gathered simultaneously, and the digital scanning signal of being gathered carried out stores synchronized, described digital scanning signal is and the described corresponding digitizing bar code image of bar code information that needs scanning barcode;
Step 3, the recognition of digital scanning signal: adopt described processor that described digital scanning signal is carried out analyzing and processing, and analysis processing result and the multiple bar code standard picture that is stored in the bar code information java standard library in advance mated, and this matching process is the recognition process that the bar code information of described need scanning barcode is distinguished, coupling finishes the back matching result that is drawn and is the recognition result that the bar code information of described need scanning barcode is distinguished, and its recognition process is as follows:
301, Filtering Processing: described processor calls the Fast Fourier Transform (FFT) program module described digital scanning signal is carried out Fast Fourier Transform (FFT), and the high fdrequency component in the frequency-region signal that described digital scanning signal is transformed into after Fast Fourier Transform (FFT) is removed; Afterwards, described processor calls the Fast Fourier Transform Inverse (FFTI) program module frequency-region signal of removing high fdrequency component is carried out Fast Fourier Transform Inverse (FFTI), the digital scanning signal of acquisition after Filtering Processing, described digital scanning signal after Filtering Processing is the digitizing bar code image after Filtering Processing;
302, binary conversion treatment: described processor calls the binary conversion treatment program module described digitizing bar code image after Filtering Processing is carried out binary conversion treatment, obtains and the described corresponding binary image of bar code information that needs scanning barcode;
303, images match: described processor calling graph mates binary image described in the step 302 and the multiple bar code standard picture that is stored in the bar code information java standard library in advance as the matcher module, and correspondingly find out the bar code standard picture that is complementary with binary image described in the step 302, thereby finish the described bar code information recognition process that needs scanning barcode.
Above-mentioned a kind of laser bar code recognition reading method, it is characterized in that: processor described in the step 302 calls the binary conversion treatment program module when described digitizing bar code image after Filtering Processing is carried out binary conversion treatment, described processor calls dynamic threshold earlier and divides module and according to big Tianjin method described digitizing bar code image after Filtering Processing is carried out the dynamic threshold division, and the corresponding optimal threshold t that draws *Afterwards, described processor calls the binary conversion treatment program module and with t *For threshold value is carried out binary conversion treatment to described digitizing bar code image after Filtering Processing.
Above-mentioned a kind of laser bar code recognition reading method, it is characterized in that: processor described in the step 302 calls dynamic threshold and divides module and according to big Tianjin method described digitizing bar code image after Filtering Processing is carried out dynamic threshold when dividing, and its dynamic threshold partition process is as follows:
3021, the one dimension histogram is represented: described processor is represented described digitizing bar code image after Filtering Processing with the one dimension histogram, note is made h (i), wherein i represents 256 gray values of pixel points and the i=0 in the described one dimension histogram, 1,2...255;
3022, optimal threshold t *Calculate, its computation process is as follows:
The classification of I, gray scale: described processor serves as that to divide that parameter divides and suppose to divide threshold value be t with the gray-scale value in the described one dimension histogram, and passing threshold t is divided into two classes, i.e. C with the gray scale of 256 pixels in the described one dimension histogram 0=(0,1,2 ..., t) and C 1=(t+1, t+2 ..., 255);
The probability of occurrence and the average gray of II, two gray scale classification calculate: described processor call parameters computing module calculates the probability of occurrence and the average gray of two gray scale classification, wherein C 0And C 1Two probability w that the gray scale classification occurs 0And w 1Be respectively:
Figure BSA00000257095300041
And C 0And C 1The average gray u of two gray scale classification 0And u 1Be respectively: u 0 = Σ i = 0 t i · p i / w 0 = u ( t ) / w 0 u 1 = Σ i = t + 1 255 i · p i / w 1 = [ u T - u ( t ) ] / 1 - w 0 , In the formula u ( t ) = Σ i = 0 t i · p i , u T = Σ i = t + 1 255 i · p i ;
The variance of III, the classification of two gray scales is calculated: described processor calls the variance computing module and according to formula
Figure BSA00000257095300054
Calculate C 0And C 1The variance of two gray scale classification
Figure BSA00000257095300055
With
Class internal variance, inter-class variance and the population variance of IV, the classification of two gray scales are calculated: described processor calls computing module and respectively according to formula
Figure BSA00000257095300058
With
Figure BSA00000257095300059
Calculate C 0And C 1The class internal variance of two gray scale classification
Figure BSA000002570953000510
Inter-class variance
Figure BSA000002570953000511
And population variance
V, draw optimal threshold: described processor call be worth most comparison module and with
Figure BSA000002570953000513
For judgement standard is tried to achieve optimal threshold t *, and work as
Figure BSA000002570953000514
The time, the t that is tried to achieve *Value is the optimal separation threshold value.
Above-mentioned a kind of laser bar code recognition reading method is characterized in that: when the high fdrequency component in the frequency-region signal that in the step 301 described digital scanning signal is transformed into after Fast Fourier Transform (FFT) is removed, with frequency 〉=k 0High fdrequency component remove and k 0=10KHz~30KHz.
The present invention compared with prior art has the following advantages:
1, device is reasonable in design, use is easy and simple to handle and input cost is low, does not need existing bar code scanner is done too much to adjust.
2, adopt the blue laser light source to carry out bar code scan as scanning pilot light and information acquisition carrier, the blue light photon energy more emitted than ruddiness is higher, wavelength is shorter, making can the stronger signal of reflected back, owing to adopted blue laser, when printing, bar code can print the bar code of some special colors simultaneously.
3, the blue laser that is adopted can effectively increase the scan depth of bar code scanner.
4, reading method is reasonable in design, needs to adopt software programming realization and consideration comprehensively, the signal that photelectric receiver received is carried out just delivering to after one-level is amplified the analog to digital conversion pin and the corresponding light intensity signal that obtains dispersing of single-chip microcomputer; Subsequently, discrete barcode signal is carried out Filtering Processing by Fast Fourier Transform (FFT), signal is transformed into frequency domain from time domain, and removes the high fdrequency component in the frequency-region signal; Carrying out Fourier inversion again, is time-domain signal with conversion of signals; Afterwards, adopt the method signal that filtering is later of dynamic threshold to carry out binaryzation, at last the signal after the binary conversion treatment is decoded according to the standard of all kinds of bar codes, thereby solve bar code information.To sum up, the present invention has replaced traditional simulating signal with digital signal, digital signal is carried out decode after the processing such as filter shape again, has realized good filtering and identification to barcode signal, and operand is little, speed is fast and accuracy rate is high, can satisfy the each side requirement of bar code scan.Owing to have various undesired signals in the light signal receiving course, then needing discrete barcode signal is carried out Filtering Processing, specifically is earlier discrete barcode signal to be carried out Fast Fourier Transform (FFT) successively, removes high fdrequency component and Fourier inversion in the frequency-region signal.Therefore simultaneously, when the signal that filtering is later carries out binaryzation,, adopt the method for dynamic threshold that signal is carried out binaryzation because the process light of bar code scan and distance might have bigger variation each time.And in the binaryzation process, according to the threshold value of calculating signal is carried out binaryzation, accordingly, this part work of traditional scanner relies on the circuit of hardware to realize, the present invention adopts software to realize this part work, the signal that is undertaken by the method for dynamic threshold after the binaryzation is decoded according to the standard of all kinds of bar codes again, thereby realized the scanning of bar code.
5, practical value height, the present invention is aspect signal Processing, replaced traditional simulating signal and digital signal carried out decode again after the processing such as filter shape with digital signal, efficiently solve the bad problem of traditional bar code scanner hardware circuit consistance, simplified the post-processed work of signal.
6, widely applicable and popularizing application prospect is extensive, the present invention not only can be applied in the logistics, and all use the place of bar code in work, life, all can read affirmation, affirmation circulation extensive stock that can be easily and effectively, card, ticket, certificate etc. to bar code informations such as any card, ticket, certificates; Simultaneously, because the characteristic of blue laser also can be used on the bar code scan of special occasions.
In sum, the present invention is reasonable in design, use is easy and simple to handle, input cost is low and result of use is good, adopt brand-new blue laser scanning light source that bar code is scanned, realization is to the scanning of the trickleer bar code of printing, and a kind of recognition performance height, resolution is strong and accuracy of identification is high bar code information reading method are provided, have simplified the electronic hardware part of laser bar code reading device.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Fig. 1 is the fundamental diagram of laser bar code reading device of the present invention.
Method flow diagram when Fig. 2 distinguishes bar code for the present invention.
Fig. 3 is the result of calculation synoptic diagram of laser beam scan depth.
Description of reference numerals:
The 1-blue laser; The 2-deflecting mirror; But 3-swinging mirror;
The 4-optical collector; The 5-optical filtering; The 6-photelectric receiver;
The 7-amplification treatment circuit; The 8-single-chip microcomputer; The 9-power module;
The 10-host computer; 11-controls button; The 12-data storage cell.
Embodiment
A kind of laser bar code reading device as shown in Figure 1, comprise and to send the blue laser 1 that wavelength is the blue laser beams of 405nm~475nm, the deflecting mirror 2 that the light path of blue laser 1 blue laser beams of sending is carried out deflection, but will carry out direct reflection and folded light beam will be projected to the need scanning barcode carrying out diffuse reflection and will carrying out the swinging mirror 3 of direct reflection through the diffuse reflection light beam that needs scanning barcode information that can reflect after the diffuse reflection of described need scanning barcode synchronously through the blue laser beams after deflecting mirror 2 deflections, but the diffuse reflection light beam after swinging mirror 3 direct reflections is carried out the optical collector 4 of light harvesting and corresponding formation light harvesting bundle, the optical filtering 5 that the light harvesting Shu Jinhang that optical collector 4 is sent filters, light beam after optical filtering 5 filtered receives and is the photelectric receiver 6 of electric signal with institute's receiving beam conversion of signals, photelectric receiver 6 electric signal of exporting is carried out the amplification treatment circuit 7 of processing and amplifying, 7 output signals of amplification treatment circuit are carried out analog to digital conversion and the digital signal after analog to digital conversion is carried out analyzing and processing and processor that blue laser 1 is controlled and respectively to blue laser 1, the power module 9 that described processor and photelectric receiver 6 are powered, described photelectric receiver 6 joins with amplification treatment circuit 7, described amplification treatment circuit 7 and blue laser 1 all join with described processor, described blue laser 1, described processor and photelectric receiver 6 all join with power module 9.Described deflecting mirror 2 is laid on the emission light path of blue laser 1, but swinging mirror 3 is laid on the emission light path of deflecting mirror 2, but the described scanning barcode that needs is laid on the reflected light path of swinging mirror 3, optical collector 4 is laid on the described diffuse reflection light path that needs scanning barcode, and optical filtering 5 is corresponding to be laid on the receiving light path of the emission light path of optical collector 4 and photelectric receiver 6.But described swinging mirror 3 comprises catoptron and is installed on the described catoptron and drives the wobble drive mechanism that described catoptron swings up and down continuously.
In the present embodiment, described processor is a single-chip microcomputer 8.Simultaneously, the utility model also comprises the host computer 10 that carries out two-way communication with described processor, and described processor and host computer 10 join.And the utility model also comprises control button 11 and the data storage cell 12 that joins with described processor.The wavelength of described blue laser 1 blue laser beams of sending is 473nm.
In the actual use, the course of work of described laser bar code reading device is: after power module 9 is opened, each assembly promptly begins operate as normal in the described laser bar code reading device, at first control and make blue laser 1 send the blue laser beams that wavelength is 405nm~475nm by 8 pairs of blue lasers 1 of single-chip microcomputer, the light path of the blue laser beams of being sent is after deflecting mirror 2 deflections, but but corresponding project on the swinging mirror 3 and through swinging mirror 3 direct reflections to the need scanning barcode and form a laser spots, but in the actual use when swinging mirror 3 continuously during swing, according to the optical reflection principle, projecting the laser spots position that needs on the scanning barcode constantly changes, and owing to need the surface of scanning barcode more coarse, thereby diffuse reflection then can take place in the laser spots that is incident upon on the need scanning barcode, and but the diffuse reflection light beam after the diffuse reflection projects on the deflection mirror 3 once more, but and by deflection mirror 3 reflection to optical collector 4, correspondingly undertaken injecting photelectric receiver 6 after light harvesting and optical filtering 5 filter spuious natural light contained in the light beam by optical collector 4 again, described photelectric receiver 6 is the beam signal opto-electronic conversion to being received again, obtains the corresponding discrete electric signals of light intensity with 6 receiving beams of photelectric receiver; Subsequently, photelectric receiver 6 is sent to single-chip microcomputer 8 with the discrete electric signals that is obtained and carries out further analyzing and processing, and single-chip microcomputer 8 is uploaded to host computer 10 synchronously with analysis processing result synchronously.In the actual use, single-chip microcomputer 8 receives the control signal that host computer 10 is sent, and tackles blue laser 1 mutually and control.
With the wavelength of sent blue laser beams is that the blue laser 1 of 473nm is an example, the well-known laser that uses in laser scanning can be subjected to the influence of diffraction, the result of calculation of laser beam scan depth is seen Fig. 2, and the diameter variation of laser beam is followed following formula
Figure BSA00000257095300091
Wherein, λ is the wavelength of laser light wave, W 0The size of laser beam " waist ", Z 0For Rayleigh (being Rayleigh) distance and its are that lasing beam diameter is
Figure BSA00000257095300092
With W 0Between distance.Owing to need the minimum cell size that the scanning spot size of scanning barcode should be equal to or slightly less than needs scan bar code symbol, then under the equal condition of laser beam " waist ", compare with the blue laser 1 that the normal wavelength 650nm that adopts of red laser and the used blue laser wavelength of the present invention are 473nm, according to formula Because the scan depth of laser scanner is 2Z 0, then the bar code scan depth of field of blue laser 1 is 1.37 times of the red laser bar code scan depth of field, thereby blue laser of the present invention 1 can effectively increase the scan depth of bar code scanner.
A kind of laser bar code reading method as shown in Figure 3 may further comprise the steps:
Step 1, the scan light signal receives: the light path by 2 pairs of blue lasers 1 of deflecting mirror blue laser beams of sending is carried out deflection, but will carry out direct reflection and folded light beam will be projected to the need scanning barcode through the blue laser beams after deflecting mirror 2 deflections by swinging mirror 3 again,, the reflection ray that swinging mirror 3 is throwed carries out direct reflection but but projecting diffuse light swinging mirror 3 synchronously once more after described need scanning barcode generation diffuse reflection, successively but the diffuse reflection light beam after swinging mirror 3 direct reflections is carried out light harvesting and filtration by optical collector 4 and optical filtering 5 more afterwards, and the light beam after will filtering is delivered to photelectric receiver 6 and is received.
Step 2, the rough handling of scan light signal and collection: after the beam signal of 6 pairs of receptions of photelectric receiver carries out opto-electronic conversion, the corresponding electric signal of light intensity of corresponding acquisition and 6 receiving beams of photelectric receiver; The analog to digital conversion interface that carries out delivering to after the processing and amplifying described processor by 7 pairs of described electric signal of amplification treatment circuit carries out analog to digital conversion again, and it is corresponding with the digital scanning signal of described electric signal corresponding conversion for dispersing, by the embedded data collecting card of described processor the described digital scanning signal after changing is gathered simultaneously, and the digital scanning signal of being gathered carried out stores synchronized, described digital scanning signal is and the described corresponding digitizing bar code image of bar code information that needs scanning barcode.
Step 3, the recognition of digital scanning signal: adopt described processor that described digital scanning signal is carried out analyzing and processing, and analysis processing result and the multiple bar code standard picture that is stored in the bar code information java standard library in advance mated, and this matching process is the recognition process that the bar code information of described need scanning barcode is distinguished, coupling finishes the back matching result that is drawn and is the recognition result that the bar code information of described need scanning barcode is distinguished, and its recognition process is as follows:
301, Filtering Processing: described processor calls the Fast Fourier Transform (FFT) program module described digital scanning signal is carried out Fast Fourier Transform (FFT), and the high fdrequency component in the frequency-region signal that described digital scanning signal is transformed into after Fast Fourier Transform (FFT) is removed; Afterwards, described processor calls the Fast Fourier Transform Inverse (FFTI) program module frequency-region signal of removing high fdrequency component is carried out Fast Fourier Transform Inverse (FFTI), the digital scanning signal of acquisition after Filtering Processing, described digital scanning signal after Filtering Processing is the digitizing bar code image after Filtering Processing.
Actual when carrying out Filtering Processing, when the high fdrequency component in the frequency-region signal that described digital scanning signal is transformed into after Fast Fourier Transform (FFT) is removed, with frequency 〉=k 0High fdrequency component remove and k 0=10KHz~30KHz.In the actual mechanical process, can be according to concrete need scanning barcode, with k 0In 10KHz~30KHz scope, adjust.
302, binary conversion treatment: described processor calls the binary conversion treatment program module described digitizing bar code image after Filtering Processing is carried out binary conversion treatment, obtains and the described corresponding binary image of bar code information that needs scanning barcode.
During practical application, described processor calls the binary conversion treatment program module when described digitizing bar code image after Filtering Processing is carried out binary conversion treatment, described processor calls dynamic threshold earlier and divides module and according to big Tianjin method described digitizing bar code image after Filtering Processing is carried out the dynamic threshold division, and the corresponding optimal threshold t that draws *Afterwards, described processor calls the binary conversion treatment program module and with t *For threshold value is carried out binary conversion treatment to described digitizing bar code image after Filtering Processing.
In the present embodiment, described processor calls dynamic threshold and divides module and according to big Tianjin method described digitizing bar code image after Filtering Processing is carried out dynamic threshold when dividing, and its dynamic threshold partition process is as follows:
3021, the one dimension histogram is represented: described processor is represented described digitizing bar code image after Filtering Processing with the one dimension histogram, note is made h (i), wherein i represents 256 gray values of pixel points and the i=0 in the described one dimension histogram, 1,2...255.
When reality is represented image, if the information of each pixel represents that with gray-scale value i (0≤i≤255) then the statistical information of all gray-scale values can be represented with the one dimension histogram in this image in the image, this histogram h (i) (i=0,1 ..., 255) represent.Suppose that the bar code image burst of gathering this moment is that N pixel arranged in the described digitizing bar code image, and gray scale is that the number of pixels of i is n in N pixel i, then can obtain the probability that each gray scale occurs
Figure BSA00000257095300111
Then h (i) can regard P as iA function to i.
3022, optimal threshold t *Calculate, its computation process is as follows:
The classification of I, gray scale: described processor serves as that to divide that parameter divides and suppose to divide threshold value be t with the gray-scale value in the described one dimension histogram, and passing threshold t is divided into two classes, i.e. C with the gray scale of 256 pixels in the described one dimension histogram 0=(0,1,2 ..., t) and C 1=(t+1, t+2 ..., 255);
The probability of occurrence and the average gray of II, two gray scale classification calculate: described processor call parameters computing module calculates the probability of occurrence and the average gray of two gray scale classification, wherein C 0And C 1Two probability w that the gray scale classification occurs 0And w 1Be respectively:
And C 0And C 1The average gray u of two gray scale classification 0And u 1Be respectively: u 0 = Σ i = 0 t i · p i / w 0 = u ( t ) / w 0 u 1 = Σ i = t + 1 255 i · p i / w 1 = [ u T - u ( t ) ] / 1 - w 0 , In the formula u ( t ) = Σ i = 0 t i · p i , u T = Σ i = t + 1 255 i · p i ;
The variance of III, the classification of two gray scales is calculated: described processor calls the variance computing module and according to formula
Figure BSA00000257095300116
Calculate C 0And C 1The variance of two gray scale classification
Figure BSA00000257095300117
With
Figure BSA00000257095300118
Class internal variance, inter-class variance and the population variance of IV, the classification of two gray scales are calculated: described processor calls computing module and respectively according to formula
Figure BSA00000257095300121
Figure BSA00000257095300122
With
Figure BSA00000257095300123
Calculate C 0And C 1The class internal variance of two gray scale classification
Figure BSA00000257095300124
Inter-class variance And population variance
Figure BSA00000257095300126
V, draw optimal threshold: described processor call be worth most comparison module and with
Figure BSA00000257095300127
For judgement standard is tried to achieve optimal threshold t *, and work as
Figure BSA00000257095300128
The time, the t that is tried to achieve *Value is the optimal separation threshold value.
303, images match: described processor calling graph mates binary image described in the step 302 and the multiple bar code standard picture that is stored in the bar code information java standard library in advance as the matcher module, and correspondingly find out the bar code standard picture that is complementary with binary image described in the step 302, thereby finish the described bar code information recognition process that needs scanning barcode.
The above; it only is preferred embodiment of the present invention; be not that the present invention is imposed any restrictions, everyly any simple modification that above embodiment did, change and equivalent structure changed, all still belong in the protection domain of technical solution of the present invention according to the technology of the present invention essence.

Claims (9)

1. laser bar code reading device, it is characterized in that: comprise and to send the blue laser that wavelength is the blue laser beams of 405nm~475nm (1), the deflecting mirror (2) that the light path of blue laser (1) blue laser beams of sending is carried out deflection, will be through deflecting mirror (2) but the blue laser beams after the deflection is carried out direct reflection and folded light beam is projected to needs scanning barcode generation diffuse reflection and will carry out the swinging mirror (3) of direct reflection through the described diffuse reflection light beam that can reflect need scanning barcode information after needing the scanning barcode diffuse reflection synchronously, but the diffuse reflection light beam after swinging mirror (3) direct reflection is carried out the optical collector (4) of light harvesting and corresponding formation light harvesting bundle, the optical filtering (5) that the light harvesting Shu Jinhang that optical collector (4) is sent filters, light beam after optical filtering (5) filtered receives and is the photelectric receiver (6) of electric signal with institute's receiving beam conversion of signals, photelectric receiver (6) electric signal of exporting is carried out the amplification treatment circuit (7) of processing and amplifying, amplification treatment circuit (7) institute output signal is carried out analog to digital conversion and the digital signal after analog to digital conversion is carried out analyzing and processing and processor that blue laser (1) is controlled and respectively to blue laser (1), the power module (9) that described processor and photelectric receiver (6) are powered, described photelectric receiver (6) joins with amplification treatment circuit (7), described amplification treatment circuit (7) and blue laser (1) all join with described processor, described blue laser (1), described processor and photelectric receiver (6) all join with power module (9); Described deflecting mirror (2) is laid on the emission light path of blue laser (1), but swinging mirror (3) is laid on the emission light path of deflecting mirror (2), but the described scanning barcode that needs is laid on the reflected light path of swinging mirror (3), optical collector (4) is laid on the described diffuse reflection light path that needs scanning barcode, and optical filtering (5) is corresponding to be laid on the receiving light path of the emission light path of optical collector (4) and photelectric receiver (6); But described swinging mirror (3) comprises catoptron and is installed on the described catoptron and drives the wobble drive mechanism that described catoptron swings up and down continuously.
2. according to the described a kind of laser bar code reading device of claim 1, it is characterized in that: described processor is single-chip microcomputer (8).
3. according to claim 1 or 2 described a kind of laser bar code reading devices, it is characterized in that: also comprise the host computer (10) that carries out two-way communication with described processor, described processor and host computer (10) join.
4. according to claim 1 or 2 described a kind of laser bar code reading devices, it is characterized in that: also comprise the control button (11) and the data storage cell (12) that join with described processor.
5. according to claim 1 or 2 described a kind of laser bar code reading devices, it is characterized in that: the wavelength of described blue laser (1) blue laser beams of sending is 473nm.
6. method that adopts laser bar code reading device according to claim 1 that the need scanning barcode is distinguished is characterized in that this method may further comprise the steps:
Step 1, the scan light signal receives: at first, by deflecting mirror (2) light path of blue laser (1) blue laser beams of sending is carried out deflection, but will carry out direct reflection and folded light beam will be projected to the need scanning barcode through the blue laser beams after deflecting mirror (2) deflection by swinging mirror (3) again, but swinging mirror (3) but the reflection ray that throwed synchronously diffuse light is projected once more swinging mirror (3) after needing scanning barcode generation diffuse reflection and carries out direct reflection described, afterwards again by optical collector (4) and optical filtering (5) but successively the diffuse reflection light beam after swinging mirror (3) direct reflection is carried out light harvesting and filtration, and the light beam after will filtering is delivered to photelectric receiver (6) and is received;
Step 2, the rough handling of scan light signal and collection: after photelectric receiver (6) carries out opto-electronic conversion to the beam signal that receives, the corresponding electric signal of light intensity of corresponding acquisition and photelectric receiver (6) institute receiving beam; By amplification treatment circuit (7) the analog to digital conversion interface that described electric signal carries out delivering to after the processing and amplifying described processor is carried out analog to digital conversion again, and it is corresponding with the digital scanning signal of described electric signal corresponding conversion for dispersing, by the embedded data collecting card of described processor the described digital scanning signal after changing is gathered simultaneously, and the digital scanning signal of being gathered carried out stores synchronized, described digital scanning signal is and the described corresponding digitizing bar code image of bar code information that needs scanning barcode;
Step 3, the recognition of digital scanning signal: adopt described processor that described digital scanning signal is carried out analyzing and processing, and analysis processing result and the multiple bar code standard picture that is stored in the bar code information java standard library in advance mated, and this matching process is the recognition process that the bar code information of described need scanning barcode is distinguished, coupling finishes the back matching result that is drawn and is the recognition result that the bar code information of described need scanning barcode is distinguished, and its recognition process is as follows:
301, Filtering Processing: described processor calls the Fast Fourier Transform (FFT) program module described digital scanning signal is carried out Fast Fourier Transform (FFT), and the high fdrequency component in the frequency-region signal that described digital scanning signal is transformed into after Fast Fourier Transform (FFT) is removed; Afterwards, described processor calls the Fast Fourier Transform Inverse (FFTI) program module frequency-region signal of removing high fdrequency component is carried out Fast Fourier Transform Inverse (FFTI), the digital scanning signal of acquisition after Filtering Processing, described digital scanning signal after Filtering Processing is the digitizing bar code image after Filtering Processing;
302, binary conversion treatment: described processor calls the binary conversion treatment program module described digitizing bar code image after Filtering Processing is carried out binary conversion treatment, obtains and the described corresponding binary image of bar code information that needs scanning barcode;
303, images match: described processor calling graph mates binary image described in the step 302 and the multiple bar code standard picture that is stored in the bar code information java standard library in advance as the matcher module, and correspondingly find out the bar code standard picture that is complementary with binary image described in the step 302, thereby finish the described bar code information recognition process that needs scanning barcode.
7. according to the described a kind of laser bar code recognition reading method of claim 6, it is characterized in that: processor described in the step 302 calls the binary conversion treatment program module when described digitizing bar code image after Filtering Processing is carried out binary conversion treatment, described processor calls dynamic threshold earlier and divides module and according to big Tianjin method described digitizing bar code image after Filtering Processing is carried out the dynamic threshold division, and the corresponding optimal threshold t that draws *Afterwards, described processor calls the binary conversion treatment program module and with t *Be threshold value, described digitizing bar code image after Filtering Processing is carried out binary conversion treatment.
8. according to the described a kind of laser bar code recognition reading method of claim 7, it is characterized in that: processor described in the step 302 calls dynamic threshold and divides module and according to big Tianjin method described digitizing bar code image after Filtering Processing is carried out dynamic threshold when dividing, and its dynamic threshold partition process is as follows:
3021, the one dimension histogram is represented: described processor is represented described digitizing bar code image after Filtering Processing with the one dimension histogram, note is made h (i), wherein i represents 256 gray values of pixel points and the i=0 in the described one dimension histogram, 1,2...255;
3022, optimal threshold t *Calculate, its computation process is as follows:
The classification of I, gray scale: described processor serves as that to divide that parameter divides and suppose to divide threshold value be t with the gray-scale value in the described one dimension histogram, and passing threshold t is divided into two classes, i.e. C with the gray scale of 256 pixels in the described one dimension histogram 0=(0,1,2 ..., t) and C 1=(t+1, t+2 ..., 255);
The probability of occurrence and the average gray of II, two gray scale classification calculate: described processor call parameters computing module calculates the probability of occurrence and the average gray of two gray scale classification, wherein C 0And C 1Two probability w that the gray scale classification occurs 0And w 1Be respectively:
Figure FSA00000257095200041
And C 0And C 1The average gray u of two gray scale classification 0And u 1Be respectively: u 0 = Σ i = 0 t i · p i / w 0 = u ( t ) / w 0 u 1 = Σ i = t + 1 255 i · p i / w 1 = [ u T - u ( t ) ] / 1 - w 0 , In the formula u ( t ) = Σ i = 0 t i · p i , u T = Σ i = t + 1 255 i · p i ;
The variance of III, the classification of two gray scales is calculated: described processor calls the variance computing module and according to formula
Figure FSA00000257095200045
Calculate C 0And C 1The variance of two gray scale classification
Figure FSA00000257095200046
With
Class internal variance, inter-class variance and the population variance of IV, the classification of two gray scales are calculated: described processor calls computing module and respectively according to formula
Figure FSA00000257095200048
Figure FSA00000257095200049
With
Figure FSA000002570952000410
Calculate C 0And C 1The class internal variance of two gray scale classification
Figure FSA000002570952000411
Inter-class variance
Figure FSA000002570952000412
And population variance
Figure FSA000002570952000413
V, draw optimal threshold: described processor call be worth most comparison module and with For judgement standard is tried to achieve optimal threshold t *, and work as The time, the t that is tried to achieve *Value is the optimal separation threshold value.
9. according to claim 6,7 or 8 described a kind of laser bar code recognition reading methods, it is characterized in that: when the high fdrequency component in the frequency-region signal that in the step 301 described digital scanning signal is transformed into after Fast Fourier Transform (FFT) is removed, frequency 〉=k 0High fdrequency component remove and k 0=10KHz~30KHz.
CN 201010272715 2010-09-03 2010-09-03 Laser barcode reading device and barcode reading method Pending CN101916357A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010272715 CN101916357A (en) 2010-09-03 2010-09-03 Laser barcode reading device and barcode reading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010272715 CN101916357A (en) 2010-09-03 2010-09-03 Laser barcode reading device and barcode reading method

Publications (1)

Publication Number Publication Date
CN101916357A true CN101916357A (en) 2010-12-15

Family

ID=43323867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010272715 Pending CN101916357A (en) 2010-09-03 2010-09-03 Laser barcode reading device and barcode reading method

Country Status (1)

Country Link
CN (1) CN101916357A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102693408A (en) * 2012-04-11 2012-09-26 广州市钛码电子科技有限公司 Micro laser scanning device and portable terminal thereof
CN102737214A (en) * 2011-04-15 2012-10-17 上海真石信息技术有限公司 Barcode image threshold frequency mobile phone recognition technology
CN103577823A (en) * 2012-08-02 2014-02-12 比亚迪股份有限公司 Method and device for achieving bar code binaryzation
CN103714310A (en) * 2013-12-18 2014-04-09 深圳市民德电子科技有限公司 Image recognition device
CN104463069A (en) * 2014-12-10 2015-03-25 福建新大陆电脑股份有限公司 Portable terminal with double-laser scanning device
CN106168785A (en) * 2016-09-13 2016-11-30 成都创慧科达科技有限公司 A kind of sensor-based centralized monitoring system and method
CN106446751A (en) * 2016-10-11 2017-02-22 福建中金在线信息科技有限公司 Bar code recognition method and apparatus
EP3246729A1 (en) * 2016-05-03 2017-11-22 Datalogic IP Tech S.r.l. Laser scanner and optical system
US9964437B2 (en) 2016-05-03 2018-05-08 Datalogic IP Tech, S.r.l. Laser scanner with reduced internal optical reflection comprising a light detector disposed between an interference filter and a collecting mirror
US10061021B2 (en) 2016-07-06 2018-08-28 Datalogic IP Tech, S.r.l. Clutter filter configuration for safety laser scanner
CN110824456A (en) * 2019-11-05 2020-02-21 广西大学 Self-adaptive resolution three-dimensional laser scanning method
CN111382586A (en) * 2018-12-28 2020-07-07 上海微电子装备(集团)股份有限公司 Mask plate bar code scanning device, mask plate library, transmission system and scanning method
CN113283266A (en) * 2021-07-22 2021-08-20 广州乐盈信息科技股份有限公司 Detection method of waterproof invisible bar code based on electrical detection mode
CN114417904A (en) * 2022-01-18 2022-04-29 南京信息职业技术学院 Bar code identification method based on deep learning and book retrieval system
US11585905B2 (en) 2016-05-03 2023-02-21 Datalogic Ip Tech S.R.L. Laser scanner

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010044743A (en) * 2001-03-21 2001-06-05 김지영 A method for recognizing 2D barcode information
CN1691048A (en) * 2004-04-20 2005-11-02 巨豪实业股份有限公司 Dynamic scan structure of bar code reader
CN101661553A (en) * 2009-09-11 2010-03-03 深圳市民德电子科技有限公司 Mini laser scanning device and portable terminal thereof
CN201548971U (en) * 2009-10-26 2010-08-11 茂森科技股份有限公司 Multi-wavelength barcode reader

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010044743A (en) * 2001-03-21 2001-06-05 김지영 A method for recognizing 2D barcode information
CN1691048A (en) * 2004-04-20 2005-11-02 巨豪实业股份有限公司 Dynamic scan structure of bar code reader
CN101661553A (en) * 2009-09-11 2010-03-03 深圳市民德电子科技有限公司 Mini laser scanning device and portable terminal thereof
CN201548971U (en) * 2009-10-26 2010-08-11 茂森科技股份有限公司 Multi-wavelength barcode reader

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《成都信息工程学院学报》 20061231 钟书成 等 一维条码识别***的设计与实现 第21卷, 2 *

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102737214A (en) * 2011-04-15 2012-10-17 上海真石信息技术有限公司 Barcode image threshold frequency mobile phone recognition technology
CN102693408A (en) * 2012-04-11 2012-09-26 广州市钛码电子科技有限公司 Micro laser scanning device and portable terminal thereof
CN103577823A (en) * 2012-08-02 2014-02-12 比亚迪股份有限公司 Method and device for achieving bar code binaryzation
CN103577823B (en) * 2012-08-02 2018-02-09 比亚迪股份有限公司 Binarization method and device are carried out to bar code
CN103714310A (en) * 2013-12-18 2014-04-09 深圳市民德电子科技有限公司 Image recognition device
CN103714310B (en) * 2013-12-18 2017-04-12 深圳市民德电子科技股份有限公司 Image recognition device
CN104463069B (en) * 2014-12-10 2017-09-12 福建新大陆电脑股份有限公司 Portable terminal with dual laser scanning device
CN104463069A (en) * 2014-12-10 2015-03-25 福建新大陆电脑股份有限公司 Portable terminal with double-laser scanning device
US11585905B2 (en) 2016-05-03 2023-02-21 Datalogic Ip Tech S.R.L. Laser scanner
EP3246729A1 (en) * 2016-05-03 2017-11-22 Datalogic IP Tech S.r.l. Laser scanner and optical system
US9964437B2 (en) 2016-05-03 2018-05-08 Datalogic IP Tech, S.r.l. Laser scanner with reduced internal optical reflection comprising a light detector disposed between an interference filter and a collecting mirror
US10048120B2 (en) 2016-05-03 2018-08-14 Datalogic IP Tech, S.r.l. Laser scanner and optical system
US10061021B2 (en) 2016-07-06 2018-08-28 Datalogic IP Tech, S.r.l. Clutter filter configuration for safety laser scanner
CN106168785A (en) * 2016-09-13 2016-11-30 成都创慧科达科技有限公司 A kind of sensor-based centralized monitoring system and method
CN106446751A (en) * 2016-10-11 2017-02-22 福建中金在线信息科技有限公司 Bar code recognition method and apparatus
CN111382586A (en) * 2018-12-28 2020-07-07 上海微电子装备(集团)股份有限公司 Mask plate bar code scanning device, mask plate library, transmission system and scanning method
CN111382586B (en) * 2018-12-28 2022-02-15 上海微电子装备(集团)股份有限公司 Mask plate bar code scanning device, mask plate library, transmission system and scanning method
CN110824456A (en) * 2019-11-05 2020-02-21 广西大学 Self-adaptive resolution three-dimensional laser scanning method
CN113283266A (en) * 2021-07-22 2021-08-20 广州乐盈信息科技股份有限公司 Detection method of waterproof invisible bar code based on electrical detection mode
CN113283266B (en) * 2021-07-22 2021-09-28 广州乐盈信息科技股份有限公司 Detection method of waterproof invisible bar code based on electrical detection mode
CN114417904A (en) * 2022-01-18 2022-04-29 南京信息职业技术学院 Bar code identification method based on deep learning and book retrieval system

Similar Documents

Publication Publication Date Title
CN101916357A (en) Laser barcode reading device and barcode reading method
CN102622569B (en) There is the enhanced bar code reader of rim detection
CN102629312B (en) Omnidirectional multiple line laser bar code reading device and method thereof
CN101874250B (en) Enhanced virtual scan line processing
CN107092849B (en) Method and apparatus for reading optical indicia using multiple data sources
US6145743A (en) Light collection systems in electro-optical readers
US6540139B1 (en) Multi-focal laser scanning bar code symbol reading system employing a variable second derivative signal pass-band filter structure having frequency characteristics that are controlled in a real-time manner by detecting bar code elements in analog scan data signals produced by said system
CN103793679A (en) One-dimensional bar code recognition method based on DaVinci technology
DE69636205T2 (en) Optical scanner
CN113341396B (en) Robot and charging pile identification method and device thereof
CN102289643B (en) Intelligent indicia reader
CN105160289A (en) Face identification method and terminal
CN108665603B (en) Method and device for identifying currency type of paper money and electronic equipment
US4985928A (en) Signature forgery detection device
CN201765595U (en) Blue laser bar code recognition apparatus
CN111738029B (en) Scanning data acquisition system and method
US6616040B1 (en) Analog scan data signal processor employing a time-domain substrate noise filter for non-linearly processing analog scan data signals and reducing substrate noise signal levels therein prior to first derivative signal generation and processing operations carried out within said analog scan data signal processor
CN209168136U (en) A kind of identifiable barcode reader
CN103559475A (en) Multi-wavelength laser modulation one-dimensional bar code reader and implementing mode thereof
US6572018B1 (en) Method of and apparatus for processing analog scan data signals derived by scanning bar code symbols using a laser beam, wherein a real-time bar code element detector is used to control the detection of zero-crossings occurring in the second derivative of said analog scan data signals
JP3711725B2 (en) Image recognition device
CN109002815A (en) Market checkout numerical identification mechanism
CN117332798A (en) Bar code scanning method, module, storage medium and bar code scanner
US6494377B1 (en) Method of and apparatus for processing analog scan data signals derived while scanning a bar code symbol using a laser beam, wherein the detected beam spot speed of said laser beam is used to dynamically switch into operation optimal pass-band filtering circuits
CN117521694A (en) Commodity bar code detecting system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20101215