Page 7 - MSDN Magazine, March 2018
P. 7
‘T V C . .0
" l g . 9 m4—— 5
LEADOOLS V2 e o C r
l ___
WEB MOBILE DESKTOP SERVER
Q SEARCH ocrdemoics X
ULUIR 5‘/stem:
unrlk Lcadtools:
using L:~adt<7ol:.n(r‘:
nslvlg Leatltools.Do(nment.wr'1ter;
namc-span» lFHDUCIfiiiiitlvlimiiit, >' I
{ . .
class l"i’.’v[1Fm‘l
l ,. "f '
slain vnir '~l4l'l(tl,' uuj; args)
( //Set the IFADTDOIK evaluatinn 1in=n<e _ I’ Mr»
llaxlr-v*‘~lIppov'1.85-llirI-n~e(@“Li:En5E\Ll:AD|DOLS.LIC", - ' _' ‘ ‘
System.ID.F1la.Rc:mAl1Tcxt((ul"|.ic:rIsc\|.EADTO0|.S.L1(.KEV")); ' " ' ' ' '
//SPt=«'i‘y input and nutput para/m=-ter*<
~lr‘ ill: lllpllll 119 : @“C:\User$\Pub1ic\Documen(s\Ll:ADl0OLS 1mages\ociu.v1r";
~:ti*;w: outputhlc = !fi"C:\UscI‘s\Public\D0cumcnt5\LEADTODl.S !magcs\0CRl.PDF“;
//can ()(RIiuage lllfiflirld
L)L|<Lmdp,e(1iiputlJ1e, uulpullile);
‘r
slain: mu l’,»‘J'v—;;-:{:‘_'J'i:; mpuuue, :l“1i_;uIitp\IU11e)
l
Ia|\=a1e.l»ll‘i(c-L1neL$“;r:adir\g and rrrngnx/ing {inp||tF1ls«)"),
//Inmate (ha LEADTOOLS DCR Ensunc
ukllig {IQ\l‘Englllr' m’i‘Engima = Ou'Ewgiiwemanagear.(r*9aleEi\gii\e-(D(i*Engins-Typ9.l_EAD, €a1<e))
i
//Sturtup the LEADTOOLS OCR Enizmc
ull‘[l.gHir.§lullll]l( l , l , , l ),
,/Imu Hie Autulletugii1ze’*l.4Hegel mm spa-tmy um ¢ovm.«t
oci*EnH1nc.AutoRcco§£r\1zc’-lanazcr.Rui\(1i\vutF1ic, outputF:lc, Da:un\cntFormat.Pdl, ill);
Cmisolo.l»li*it6Lino(‘£“DCR output saved to (outputFi1e)"),
} _.
Above IS an entire OCR application using LEADTOOLS
That's it. Clean and simple code that produces a fast and accurate OCR app
backed by the most powerful OCR SDK. Download our free evaluation and
see how easy it is to use LEADTOOLS for your document, medical, and
multimedia projects.
Nti on . .2: A o
"E!
DOWNLOAD OUR FREE EVALUATION WLEAD SALESQ7l_EADTCiOl_S.CC)M "'-5%.
WWW.LEADTOOLS.COM 7!-=i<=HNs>.Lo.Gn,-=5 800.637.1840 .- "3