当前位置:首页 >> 计算机软件及应用 >>

ocr训练与读取HACION


dev_close_window ()
count_seconds (Start)
read_image (Image, 'C:/Users/Administrator/Desktop/121203/xiao130_3.bmp')
dev_open_window (0, 0, 512, 400, 'black', WindowHandle)
dev_set_draw ('margin')
dev_set_line_width (3)
dev_display (Image)
threshold (Image, Region, 84, 255)
connection (Region, ConnectedRegions)
select_shape (ConnectedRegions, SelectedRegions, 'area', 'and', 300, 1000)
median_image (Image, ImageMedian, 'square', 1, 'continued')
mean_image (ImageMedian, ImageMean,25, 30)
dyn_threshold (Image, ImageMean, RegionDynThresh, 190, 'light')
threshold (ImageMean, Region1, 65, 255)
connection (Region1, ConnectedRegions1)
select_shape (ConnectedRegions1, SelectedRegions1, 'area', 'and', 150, 99999)
select_shape (SelectedRegions1, Chars, ['height','width'], 'and', [20,20], [180,180])
sort_region (Chars, SortedChars, 'character', 'true', 'row')
count_obj (SortedChars, Number)
Classes := ['3','0','1','1']
write_ocr_trainf (SortedChars, Image, Classes, 'D:/dc.trf')
read_ocr_trainf_names ('dc.trf', CharacterNames, CharacterCount)
create_ocr_class_mlp (8, 10, 'constant', 'default', CharacterNames, 20, \
'none', 81, 42, OCRHandle)
trainf_ocr_class_mlp (OCRHandle, 'dc.trf', 100, 0.01, 0.01, Error, \
ErrorLog)
do_ocr_multi_class_mlp (SortedChars, Image, OCRHandle, Class, Confidence)
shape_trans (SortedChars, CharsArea, 'rectangle1')
dilation_rectangle1 (CharsArea, CharsAreaBig, 5, 5)
gen_rectangle2 (Rectangle, 0, 0, rad(60), 2, 1)
area_center (Rectangle, Area, Row, Column)
Str := ''
for i := 0 to |Class| - 1 by 1
Str := Str + Class
endfor
dev_display (Image)
dev_set_colored (12)
dev_set_draw ('margin')
dev_display (Chars)
count_seconds (End)
time := End - Start
disp_message (WindowHandle, 'Number is: ' + Str + ' ' + 'Time is:' + time + 'ms', 'window', 5, 10, 'black', 'true')

相关文章:
Modbus vb源程序(可以读写寄存器)_信息与通信_工程科技_专业资料.doc
(bisend, 6, btLoCRC, btHiCRC) bisend(6) = "&h" + Hex(btLoCRC)...&HAC, &HAD, &H6D, &HAF, &H6F, _ &H6E, &HAE, &HAA, &H6A, &...
Web服务在对等网络中的应用_信息与通信_工程科技_专业资料.pdf
(olefopt,Ciaiei fnn dehog,Xuhu2 8haClg mueeoCrhn vrto ign cnlyUnsyMiaTozo 0,Ci)210n AsatPe- er(2ersseyoua dhr eny2eokdlhveo tr aul.boue...
Pd_C催化剂失活原因分析与改进措施_陈筱金.pdf
应严格控制原料 P X、 乙酸( HAc) 、 2 、 H...Pd/ C is a hy drog enat ion cat alyst used...ocry st al g row t h, act ivat ed car ...
高效液相色谱法测定滴眼剂中的硝酸毛果芸香碱及其水解....pdf
ZxanzxuoCroaohhn Hu eguFnz,Nrhet PaeuIsttotw...XnnIsttfr302HaCnhaiig tue hnioDrgota,100uCnr...本文中 Te ttopoainrtadshcnes icpnianionf rete ...
ECAP变形对超低碳钢组织与性能的影响_图文.pdf
irsrcueadMehaclua esn nMcotutr n cnia Prpriso...lr-ocr te;ganrfmeton 1引 言 近年来 ,径弯 ...IonVikf ade c~shrn~ 04m1 次变形后 . 条状...
河北卢龙地区青蒿挥发性化学成分的气相色谱-质谱分析_论文.pdf
(prn hmsy,sa rlUiesy.nh 05hn)DeattfeitAnhNomanvrtAsa140,iameoCrn in1C AbtatThoai iwaxrcc oteArmiaaieaHac fln lai birvneb sn ilni i src:evlt...
合肥市职业技能计算机中级(理论试题)2016-01-09.doc
49、光学字符识别的英文缩写为( )。 A.OAW B.OEM C.OLE D.OCR 50、ARP ...A.BINAC B.INCAIC C.BCH D.BOISHAC 52、复杂指令集计算机用( )表示。 A...
VB编写的modbus研究11111.txt
'btLoCRC 算出的CRC高字节 'btHiCRC 算出的CRC...&HAC, &HAD, &H6D, &HAF, &H6F, &H6E, &..."读取IB0" Height = 495 Left = 2760 TabIndex ...
马鞍石隧道掘进围岩稳定性数值模拟分析_论文.pdf
sn erwn rtro ocnim okfrc cai rmeesa casfcto frc nier elguigHokboiceint ofrrc imehacprmees,ai LAC3Docryoncni aatrtkngF t ar n umeiailto n ...
局灶亚低温及全脑亚低温治疗大鼠创伤性脑损伤的实验研....pdf
ocrepni yohn,llrihpte t21wtrc nmih2eirrtjd r uOdahacrigtorodnsg t....男 主治 医生 , 在博 士研究 生。 jr,B)uyTI 是美 国 神经 外科医生...
更多相关标签: