【正文】
二、條碼識(shí)別系統(tǒng)的組成-條形碼識(shí)別原理(條碼識(shí)別原理) 為了閱讀出條碼所代表的信息,需要一套條碼識(shí)別系統(tǒng),它由條碼掃描器、放大整形電路、譯碼接口電路和計(jì)算機(jī)系統(tǒng)等部分組成。隨著計(jì)算機(jī)應(yīng)用的不斷普及,條碼的應(yīng)用得到了很大的發(fā)展。條形碼是由寬度不同、反射率不同的條和空,按照一定的編碼規(guī)則(碼制)編制成的,用以表達(dá)一組數(shù)字或字母符號(hào)信息的圖形標(biāo)識(shí)符.即條形碼是一組粗細(xì)不同,按照一定的規(guī)則安排間距的平行線條圖形.常見(jiàn)的條形碼是由反射率相差很大的黑條(簡(jiǎn)稱條)和白條(簡(jiǎn)稱空)組成的。白條、黑條的寬度不同,相應(yīng)的電信號(hào)持續(xù)時(shí)間長(zhǎng)短也不同.但是,由光電轉(zhuǎn)換器輸出的與條形碼的條和空相應(yīng)的電信號(hào)一般僅10mV左右,不能直接使用,因而先要將光電轉(zhuǎn)換器輸出的電信號(hào)送放大器放大.放大后的電信號(hào)仍然是一個(gè)模擬電信號(hào),為了避免由條形碼中的疵點(diǎn)和污點(diǎn)導(dǎo)致錯(cuò)誤信號(hào),在放大電路后需加一整形電路,把模擬信號(hào)轉(zhuǎn)換成數(shù)字電信號(hào),以便計(jì)算機(jī)系統(tǒng)能準(zhǔn)確判讀。) stop()endforclear_bar_code_model (BarCodeHandle)clear_data_code_2d_model (DataCodeHandle)附錄2 英文文獻(xiàn)及翻譯Barcode recognition principleBecause objects of different colors, different wavelengths of visible light reflectance, white object that reflects all wavelengths of visible light, black object is absorbing all wavelengths of visible light, so when the light through the lens aperture and light emitted from the bar code scanner 1 when irradiated onto the black and white barcode, the reflected light focused by the lens 2, the exposure to the photoelectric converter, then the photoelectric converter receives and white bars and black bars corresponding reflected light intensity of different signals, and converted into the corresponding the electrical signal output to the amplification shaping circuit, shaping circuit converts the analog signals into digital signals, and then by the decoder interface circuit information translated into digital characters.Stripes, black stripes of different widths, corresponding to the length of the duration of the electrical signal is different. However, with the bar code bars and spaces corresponding electrical signal output from the photoelectric converter is generally only about 10mV, can not be used directly, thus first to send an electrical signal to the photoelectric converter output amplifier. The amplified electrical signal is still an analog electrical signal by the bar code in order to avoid defects and blemishes cause an error signal after amplification circuit need to add a shaping circuit, the analog signals into digital signals so that the puter system can accurately interpret .Pulse shaping circuit via the digital signal decoder translated into numbers, character information. It does this by identifying the start, to determine the termination character code system and scanning direction of the bar code symbol。, 39。, 130, 30, 39。 + |DecodedDataStrings1|, 39。) disp_message (3600, 39。, 39。, 80, 30, 39。 + |DecodedDataStrings|, 39。) disp_message (3600, 39。, 39。, 30, 30, 39。, 39。 + 39。 + Time$39。) endfor Time := 1000 * (T2T1) disp_message (3600, 39。, 39。, Row1[k], Column1[k], 39。) endfor area_center_xld (SymbolXLDs, Area1, Row1, Column1, PointOrder) for k:= 0 to |DecodedDataStrings1|1 by 1 disp_message (3600, DecodedDataStrings1[k], 39。, 39。, Row[j], Column[j], 39。, DecodedDataStrings) find_data_code_2d (ImageInvert, SymbolXLDs, DataCodeHandle, [], [], ResultHandles, DecodedDataStrings1) count_seconds (T2) area_center (SymbolRegions, Area, Row, Column) for j:= 0 to |DecodedDataStrings|1 by 1 disp_message (3600, DecodedDataStrings[j], 39。 + i) get_image_size (Image, Width, Height) rgb1_to_gray (Image, GrayImage) threshold (GrayImage, Region, 0, 100) closing_circle (Region, RegionClosing, ) region_to_bin (RegionClosing, BinImage, 255, 0, Width, Height) invert_image (BinImage, ImageInvert) dev_display (Image) stop() count_seconds (T1) find_bar_code (ImageInvert, SymbolRegions, BarCodeHandle, 39。, [], [], DataCodeHandle)for i:= 1 to 6 by 1 read_image (Image, 39。)create_bar_code_model ([], [], BarCodeHandle)create_data_code_2d_model (39。, 39。, 39。)dev_set_line_width (3)set_display_font (3600, 16, 39。 童海峰 二零一五年五月附錄1 部分關(guān)鍵源碼程序dev_set_draw (39。還有我的舍友們?cè)谶@四年來(lái)無(wú)私的包容與關(guān)愛(ài)。謹(jǐn)向各位老師表示誠(chéng)摯的敬意和謝忱。同時(shí),陳老師嚴(yán)謹(jǐn)?shù)膶W(xué)術(shù)作風(fēng)