*天麻成功https://detail.tmall.com/item.htm?spm=a1z10.15-b-s.w4011-23782182240.96.67c86d70T4noUO&id=601054453304&rn=98b9b6283adfd8f5518d9de445677dba
药品条形码格式不一样;
分辨率也不一样;
提高对比度
https://www.cnblogs.com/xh6300/p/7512532.html
创建模型
查找
销毁
read_image (Image, 'C:/Users/Administrator/Desktop/tianma_001.png')
rgb1_to_gray(Image,GrayImage)
Max :=160
Min:=60
Mult:=255.0/(Max-Min)
Add:=-Mult*Min
scale_image(GrayImage,ImageScaled,Mult, Add)
create_bar_code_model ([], [], BarCodeHandle)
*find_bar_code (GrayImage, SymbolRegions, BarCodeHandle, '2/5 Industrial', DecodedDataStrings)
* find_bar_code (GrayImage, SymbolRegions1, BarCodeHandle, 'Codabar', DecodedDataStrings1)
find_bar_code (ImageScaled, SymbolRegions2, BarCodeHandle,'auto', DecodedDataStrings2)
*'EAN-13'---'6930821400809'
*天麻成功https://detail.tmall.com/item.htm?spm=a1z10.15-b-s.w4011-23782182240.96.67c86d70T4noUO&id=601054453304&rn=98b9b6283adfd8f5518d9de445677dba
clear_bar_code_model (BarCodeHandle)