Home

WEB サービスを利用した顔認識アプリケーションの構築

image

Contents

1. WEB 00000000000000000000 HOU SOAPOOUUUO lu li S 0000000000000000000000000000000 2 3 65800 0000 00 0 L 2 3 1 1 0 0000000000000000000000000000012300000 00000 weg
2. Customer Relationship Management uultu t tli EE 310 OO000 OU 32 3 21 Unified Modeling Language 10001 1993 01997 Object Management Group D D C D DL D D D D UU L
3. 0 00 00 0 0 0 0 0000 iL 5 1100 3000000000000 1 10 Nicos 820 0000 MERO EE a Lan 27 Nn 0 000000000000000000000000000 1210000000000000000000000000 NT 2 V 0000 000 O00 ON Q 000
4. 0 ph qi Bo BOBO a hl 3500000 10000000 7 4 fq 00000 21 E Ug 360 0000 20000000 0 000000 HU p
5. 412300 000 0 0 0 0 00 00000 00 0 0 0 0 0 0 0 00 0000 0 0 0 4 1 2 3 556 000000000000000000 556 000000000000 HOU 4 33 000000000000000000000 SO SOs HR Eee sm ao ROME oe Co d ori n Fu ds 8 OM TM 8 ee EN dba OE n 4125 OQ00000000000 000000003 3 1
6. 56 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 CPerson CFaceBase GetPerson const int amp index ASSERT index gt 0 POSITION pos m base Findl ndex index return pos m_base GetAt pos 0 000000000000000000000 CPERSONQ TIT LI CPerson CF aceBase FindPersonByPersonID const long amp Personl D POSITION pos m_base GetH eadPosition while pos CPerson person 2m base GetN ext pos if person amp amp Personl D person gt GetPersonl D return person return 0 CPERSON CPerson CF aceBase FindPersonByName const CString amp name POSITION pos m_base GetH eadPosition while pos 57 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160
7. 4100 PERHSSONID ILE mM Hi Charis ord ege ege MTA 050 0 0 100 TTE li OCHO WINDOWS 0000000000000 O0 1000000000000000000000000000000000 WEB WINDOWS 00000 Unified Modeling Language 000000000000000 LE ihhh
8. 287000 MEBE 0000000 O UO UO 0000000 weoi 00000 200000000000000000000000000000000000000 SOAPI WSDLIIUDDIII 0 Ug 232 eXtended Markingup Language WEB SGMUJ Standard Generalized Markingup Languagd 00012 100 0000 19808 000000000 HOUUUURTME lilin 0 000000000000000000000
9. E 0000000000000 75 HOU 1 000000000000000000000000000000 HOU 0 SOAP SOAP DI UU U U D 0 2 20 000 5 5 HHUH ul Java Cryptography Extensions 000000000000000000000000000000000000 KSOAP 00 0 0 0 00 e 00 000 0 00 0 0 0 EE 36 4124 41241 000000000000000000 2
10. 00 34 412 4121 000 0000000 WINDOWSII 10MB KSOAP III I L JAVAQUUUU 0 4122 OOOO SOAP OOL 2 Pil
11. lt WebM ethod gt Public Function GetPersonl nfo ByVal key As Integer As String 114 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 Dim information As String Dim result As String Dim i As Integer 00000000000 GetP ersonl nfo PersonL oader key End Function JfJ_JUUDDDUDUDDUDDDDUDUDUDUDUUUDUDUDUDUDUDDUDUUUDUUUU lt WebM ethod gt Public Function PutPersonl nfo ByVal key Integer ByVal name As String ByVal belong As String ByVal relation As String ByVal address As String ByVal tel As String As String 0000000000000 Dim data As Human Dim result As String Dim i As Integer data setValue name belong relation address tel PutPersonl nfo 2 PersonWriter key data End Function 74uuuuuulliututiututltiututulluttutltLututtutLttulLt gO BEER BED U 00000000000000000000000000 lt WebM ethod gt Public Function SetNewPerson ByVal name As String ByVal belong As String ByVal relation As String ByVal address As St
12. 251 00000 unum 000 15 Internet Informatio n Service IIS Internet Informatio n Service v f COM OU 000 000 lt 0 ASPNET ISAPI DLL ASPX HTMLI ASMX XML e Y ASPXVBITI gt i ASPNET ISAPI DLL Y 5 ASMX XML er Y ASPXVBIT 0 COM 00 0000000000 COM OO 0 10100000000000000000000000 2 gt 0 00000000000000000000000000 10 2 2
13. CF aceBase CF aceBase default parameters m stnum 0 5 m stnum 1 3 m stnum 2 6 m stnum 3 6 m stnum 4 6 m stnum 5 3 for inti 20 1 128 i m mixnumyti 3 m_modified false m trained index 1 Setl mageSize CSize 100 120 m delta cvSize 4 4 m obsSize cvSize 3 3 m dctSize cvSize 12 12 m useWidth FALSE m useHeight FALSE m scaleWidth 0 m scaleHeight 0 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 m_suppress intensity FALSE image_load false CF aceBase CF aceBase HRESULT gt 5 nfo const CString amp PROVIDER const CString amp SOURCE const CString amp DB const CString amp USER const CString amp PASSWD HRESULT hr nfo SetDBI nfo PROVIDER SOURCE DB USER PASSWD if FAILED hr return hr SetM odified return hr HRESULT JCFaceBase SeTABLEInfo const CString amp info const CString amp image const CString amp config HRESULT hr baselnf
14. Microsoft 410 TLBIMP 00000 11 gt OL 10 gt ASPNETISAPI 0 BL go oo 90000000 uu EOM 000000000 A 00 00000 000006 DELE B DL BL O D D DB 0000 COM 0000000000 00000000000020000000000 PINVOKE 000000000 000000000000000000000 0000000000000000000000000000000000 XML
15. 00 0 0 0 0 0 U EEFE O U EEE EDE A A e e e E 0000 HOU 000000000 2000000000 HOU ls bili 0000 000000000000000 1 000000000000010 000000000 3i 00000000 00000
16. cPPERSONI B B DL 7L EE BL 7 E B E D HI 060 E EE EUH HRESULT CFaceBase Load Colnitialize NULL HRESULT hr _ConnectionPtr m_pConnection basel nfo get_ConnectionPtr CPersonList 000000000000000000 000 m_base RemoveAll 00000 try CString basename nfo B aseN ame 48 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 _RecordsetPtr m_pRecordSet ADODB Recordset TESTHR m pRecordSet Createl nstance __uuidof Recordset hr m pRecordSet 2Open LPCSTR basename variant t IDispatch m pConnection true adOpenStatic ockReadOnly adCmdtTable FAILED hr return hr basename nfo mageB aseN ame _RecordsetPtr m_pRecordSet_image ADODB Recordset TESTHR m_pRecordSet_image Createl nstance __uuidof Recordset hr m_pRecordSet_image gt Open LPCSTR basename variant 1 Dispatch m pConnection true adOpenStatic ockReadOnl y adCmdT able if FAI LED hr r
17. namespace FACE BASE S CPerson CPerson CF aceBase parent m_modified false m trained false m parent parent m hmm NULL ASSERT parent 0 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 CPerson CPerson Unload void CPerson SetName const CString amp name m name SetM odifi ed void CPerson SetPersonl D long Personl D m Personl D Personl D SetM odifi ed EE a DUDUDUUUDUUDUUDUDUDUDDDDnInILI HRESULT CPerson Load RecordsetPtr m pRecSet img 0000000000 CPersonl mage pl mage Cvvl mage i mage new mage HRESULT hr RECT roi 61 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 23
18. 5 64 5 64 0001 48 5 00000000000000000000 WEB BUDE EET EEG DELE 4 12 3 Oe E E a E
19. ASP Active Server Page 0 00000000000000000000000 2 40 0 00 000000 00000000000 0000 1900 Microsoft ATL Active Template Library O O O O D O Visual 000000000000000000 Microsoft 000000000000000 DBUUOUOUUUUUUWINDOWSOQUUUUUUU 8 2 13 Microsoft Microsoft 0 20000 7 0 0 670 00 1 00 50000000000000000 2 0000 L 950000000 COMO 00000000000000000000
20. Microsoft 00000 1151000000000 0 000 6 70 0000 ASPNET Windows O0 000000000 Web d d d d a D O D D U U D D 000000000000000000 0000000000 0 4 41 00000 IIS Internet 72119 ASPNET ISAPLD 790 Uo Inforrratio LL p 0000 DLL n Service enn ADO NET Y 5 ASPX HIMLLII EROOOOOO ASMX XML 0000000 Y ASPXVBITI J 000 00 lt gt 4 5 o eamm NES GE DCUM Lr SD bea ays HEAD gt MAS ECRMid fory seva eps sp
21. 20 EDGE OS E Elo 0000000000000100000000000 555 0000000000000000000 41900000000000000000 000000000 4 1 2 421 50 1 1 NTTDOCOMO I mode JAVA LH http www nttdocomo co jp p s imode Java index html for 1909 3 0 00000000000 Dg a 3 0 50515 00 00 HTML IJ J D U 1 2 DoCoMo Profile 2 0 TUT E 00000000 http godwood allnet ne jp vi oret dojaapi 2 com nttdocomo
22. 4 2000000000000000 4 20 000060 000000000000000004 9000000000000000000000 0421 00000000000000001 100000 x uud 320x 249 T0VGA AONGA 1280x 9601S XGA TH utu JPEGO 0000000000000 000000000 320x 240 WAT BD DIL 0000 0060 00600 0660 D 7 00 D E D ii 000000000000000000000000000000000 10000 1280000000 0 200000 320x 240 10 FEU MEO EDOR ROTEAMENTO ETO 00060 e 0 00 0 4124200000 a a 192x144 4 1 3 ASPNET ADONET I OOO WEB 00000 WINDOWS ASPNET
23. ASP NET Cookieless 0000000000 37 20030 10 0000000 233000000 5 KSOAP O
24. O0 BOOL aceLibrary TrainPerson System nt64 Person D pDataBase gt TrainPerson Personl D return S OK BOOL indF aceLibrary TrainAll void pDataBase gt TrainAll 10 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 return S OK F WEB BL HL HL BL EL EL D E E D EE EE D EE EE DO EE EE DE EE HEEL OE 7E ULU DI HRESULT MgdFindFaceLibrary LoadCvvl mage System Byte imageData Cvvl mage image CRect rect Uu Dt using namespace FACE BASE HRESULT hr CString errorTextH ere SAFEARRAY BYTE SafeArray 77878 TARGET 77864 NOW SAFEARRAY FAR psa SAFEARRAY BOUND rgsabound 1 rgsabound 0 Lbound 0 rgsabound 0 cE lements imageData gt get_Length psa SafeArrayCreate VT UI 1 1 rgsabound if psa NULL return false byte pb hr SafeArrayAccessData psa void amp pb if FAILED hr return NULL else if pb return
25. 40000 0 0 0 0 0 00000 0 06 00000 HOU Toh TE DBBOOUWUUUOUUUUO 5800000000000000000 58000000000 HOUUU 332 3 3 1 3 3 2 1 00000000000000000000000000000000 30000000 ELI EI B T bb a 10 1000000 322
26. 0000000000 Micosot JAVAD D UO D D CL D D D U D U L HE EE ER EDT 00 00 60 0 00 00 000 0000 0 00 0 0 00 00 0 0 0 0 0 00 0 00 VBO C von 0000 DELPHI II COBOL JAVAQ OOO Microsoft Microsoft ASPNET WINDOWS ADONETOOOUUUUUUUUUUUO _90 PLLOUUUU 000000200000000000000
27. BOOL indF aceLibrary RecognizePerson Checked System B yte imageDatal System String remove key System String result System String probresult i using namespace FACE BASE long key REGNZ NUMBER 1 float likelihood REGNZ NUMBER 1 Cvvl mage i mage new Cvvl mage CRec CRect HRESULT hr hr LoadCvvl mage imageData image rect FAI LED hr return false System String remove 1 remove key CString removeString CString remove 1 J CString resToken int curPos 0 long remove key data 100 for int 20 i 100 i uuu tu remove key datal i 0 if removeString l sE mpty for int i 0 curPos lt removeString GetL ength 8 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 resToken removeString Tokenize curPos sscanf resToken remove key data if removeString l SE mpty pDataBase RecognizeP erson image CRect 0 0 0 0 key remove key data likelihood else pDataBase RecognizeP erson image C
28. 23 99 7 38 00 17 50 080000 00000 0 0 0 0 0 00 00 0 0 0 00 Visionis 0 0 17 590 0800 2 38 0000000000000 0 1730 0000 SDK 0 ___ 00 000 00 00000 00 00 0 0000 00 0 0 00 00 00 0 00 0 E 00 00 0 00 0 0 0 0 00 00 Ll 240 7 30 00 17 40 00060 0000000 0000000 00000 00000 00 oon DD 95800000 19 130 31
29. 1980 0000 00 0 00 0 00 00000 00000 0 0 0 0 0 00 0 0 0 0 00000000000000000 19890000000000000000000 WINDOWSII 00000000000000 0 lu 00 0000 000 0 0 0 322 30000000000000000 3100000000000 310 0000000 00 000 0 000 00 0 00 0 0 0 0000 0000 3 40 UML ED D OLD D D D D 200000 _ 1 000000 00000 0000000000 0000 0000000 000000000 00000 0000000 0000 0000000000000 33
30. 5 WEB ADO NET ActiveX Database NET lU LUE Lt HOUUUUUUOUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUo uuuiuiubluldsululuutuiiiiuiliultuiiiiiiiiili8titii iiti iuuuiubilbluluiuliililblulu t Ll 41 42 421 0 0 4211 String BOOL Objet 0 0 4600 471 LL ET ET D D LI E LL ET ET DE D LI LH LL E ET UE D LI LH LL E ET D LI LH 000000
31. 3059 3060 3061 void CF aceBase TrainPerson long Personl D 3062 3063 CPerson person FindPersonB yPersonl D Personl D 3064 ASSERT person 3065 If person return 3066 5 gt sTrained return 3067 CPersonl mgL ist amp imgs person gt Getl ist 3068 if imgs GetCount 0 return 3069 3070 3071 Image load true 82 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 Load image_load false MOOUUUUUU person gt TrainHMM person gt SetM odified SetM odified void CF aceBase TrainAll sizeof int int end 0 I int member int malloc m base GetCount POSITION pos m_base GetH eadPosition while pos i CPerson person base GetN ext pos if person m trained i member end person gt GetPersonl D end image_load true Load Image load false for int j
32. MBPS import java io import java util import com nttdocomo io import com nttdocomo ui import com nttdocomo devi ce Camera IA DUututttutt import com nttdocomo opt devi ce Camera2 import javax microedition io import org ksoap import org ksoap transport import org ksoap marshal import org kobjects user import org kobjects serialization public dass KSOAP 1 extends Application String w_url http localhost Webservicel Servicel asmx String ww HttpConnection wi connect public void start 125 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 UD UD KSOAP1 new AE EE EEE EDS EEE Ga BT InputStream w in myapp imageP if w_in null terminate byte data 2 oadl mage w in String ret myapp F aceRecognize url data L1 System out println O D ret U E E
33. 43 UUDDUDUUDUDUUDUUDUDUUDUUDUDUDUUDUDUDBDDUDUDUDUUDUUDUDUDUUU 490 DIIDBBBBULL 00000 prr HBBDB HEB D B B ED CL D UB DT D U 0310000000000 000000000 01000000000 06100000000 000000 00000 0100000000 lt gt 1000000000000 0971000000 010000000000 por 00000000 0000000 4900000000 410 000000000000000000 MER FACELIBRARY re mmm pr 4 41 Eh iini NE m yT 71 T EIL AB a i nT Ast 1 J unie ped ILL
34. 22 000000000000000000 _ olf E c pi Le 3 000 000000000 0000 000000 e 000000 HOCH 6 27 DU 9 2 1 2 Component Object Model 0 Microsoft 6 70 5 U 2300000000 15 40 000000 Main Main exe Main Main exe
35. 20 Webservicel 3 1 GUI 3 2 2 GUI 3 3 ul 3 4 HttpTransportjava 2 56 ON UW BP WYN HG UJ J U U UJ N NS NY NY NN MN DN NN e E e MO d UN O WAN OD Ui WAN HD gt FY o FaceLibrary2 000000000 inte LicenseAgreement 0 Intel ED D L E lt Intel LicenseAgreement 00000000 D D DL EL DO EE D EE D DE D 0 D LI l LU LL DELETED LIU LI highgui dll cv dll cvaux dll OPENCV P
36. 4 10 JPEG 42000000000 FaceLibrary 0 000 000 DD FaceLibrary DO BU UTIEI 0 00000000000 32 ee dates iam ___035 1 4 1030110 1010000 09 os rer 24 1114m 0 30 0000 00010 04 Loo __ 00000 __ osa _ 083 numum _ 204 ASP NET 0 413000000 Activex Database 0 00 ASP NET O COMDBDBDDDBEBEUBULULULUEDEULUUUULULULU 00
37. SMTPO CO C E DE 7E 0 HOUOUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUo 5 Single Object Access Protocol 0 290 2 30 0000 fey gL eeu 6 BR 345 725 fey tg HL fe RSS EMBs TU TI a 15 SOAP 0000000000 5 2 100 5 230 0000 0 2 SOAP ENV Envelope SOAPA 8 SOAP ENV Header SOAPHS SOAP ENV Body 21100 0 soAPDHDDUDULU LC CU LU D LL U C 12 30 0000 POST zetEstimate HTTP 1 1 Host Content Type application soasivml 1 charset utf 8 Content Length nnnn 1 0 7 7 amp soapenv Envelopse soapeny Header amp q Info SOAPIL n 4 qiref g
38. NITE TEILS Se m m pP eet 1 1 SS cL 000 ALD 00 0 000 0 00 0 00 2000000000000000000000000000 33 3 0 E 00 00 0 0000 0 0 0 0 00 3 11 0000000000 0000 000000 ea 0000 000000 0000 0000 0000 0000 1 1 0000000000000 wr E TE 1 000000 ha a 000000 0000 000000 00 0000 000000 0000000000 00000000 2 2280 F SS SS SS n s 00000000 p O0 40 00000000000000 41 5 411
39. http www intel comn OPENCV H1 BH B HL BL B HL HL E B HL B B E HE D DH http www cvmt ds hn l mages install I PL IPL 1 D D LH http www ntel co jp IPL L E E E E E E E EL DD 53 9 00 00000000000 6 1 9 0000000000000000009 000000000 http www atmarkit co jp fjava rensai 2 websysO3 6 2 DOU 120 0000 http www atmarkit co jp fjava devs renew 6 31 00 0000000000000000000000 0000 http www atmarkit co jp fjava devs obj ect 6 4 0 00000 19991 601 6 5 O0 00000000 000 000000000 0000000 20030 6 6 eearning 00000000000 000 000000000 140000000 20030 6 7 ewords http e words j p wznet 7 1 000000000 20030 190 10000 http www nttdocomo co j p p s imode im i moti on02 html http foma nttdocomo co j p fee fee packetpack html http www au kddi com ezweb ryokin course kanto chubu html 7 2 20030 190 10000 http www au kddi com ezfactory tec spec ezplus html 2 http www au kddi com ezfactory tec specbrew html EZBREW http www nttdocomo co jp p s imode java index html DOJ 7 3 00000000000000000 000 2003 190 80000 http www cgc co j p h
40. DUDUDUDUDUDUDUDUUDUDUDUUDUDUDUH 2130 0000 000 00 00 00 00 00 0 0 000 0 0 00 00 0 00000000000000000000000000000000 2140 00000000000000 MM UU UU MMI UU UU 7 2 P 4 NS actu T 0000 0 Uu 10000200 00 000 00000 00000 0 0 0001 18 242 10 00000900000 2000000000000000000000000000
41. if dctSize height 2m dctSize height dctSize width m dctSize width obsSize height l m_obsSize height obsSize width m_obsSize width delta height m delta height delta width m_delta width m suppress intensity intens 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 dearHMM TRUE m_dctSize dctSize m_obsSize obsSize m delta delta m suppress intensity suppress intens IMMMI D D BBBEBUBULEBEDLDEELLULUL BOOL dochange FALSE for int i 20 i states O i if m stnumy i states i dochange TRUE break if mix m_mixnum 0 dochange TRUE if dochange MMMI Ij HL DB B E BL E HL E B HE B HE B 0000 Int counter 0 for int i 20 i lt states 0 i m_stnumli statesfi for int j 0 j states i j counter m mixnum counter mix clearH dochange 9 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 use height if m useWidth use width
42. KSOAP3 new KSOAP3 String ret myapp SetNewPerson w url list 151 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 System out println O D ret if ret equals PROBLEM re 0 000 else ret 0 000 mypanel finish panel new mypanel finish ret w panel setSoftL abel w panel SOFT KEY 1 w panel setSoftL abel w panel SOFT KEY 2 Display setCurrent w panel if param this SOFT KEY 1 Iti B uuuuutututut mypanel finish panel new mypanel_finish w panel setSoftL abel w panel SOFT KEY 1 w panel setSoftL abel w panel SOFT KEY 2 Display setCurrent w panel public void softK eyPressed int param Ih 00000000000 ComponentListener UBULLLLL L public void componentAction Component w component int type int w param 152 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 Iti B uuuuuutututtLt I GUT 1 LH HL B BD E E ELD D OE EE OLET ETE EE
43. void TrainAIIl void TrainPerson long Personl D Int GetTrainedl ndex return m trained index 18 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 7 736 737 738 739 740 UJ Ul void SetTrainedl ndex int index trained index index 00060 00060 00000 0006 00060 000 0 00 7 modified DeleteH MMI nfo 0000000000000 void SetM odified bool modified true m modified F B bool IsModified return m modified EL mage GetTrainedl mage return m trained image DU LD void mageSize CSize size 00000000 CSize mageSize return m basel mgSize CString reportError 0000 public int m_stnum 32 U U HMMJELE ELE U UU D D int m mixnum 128 CvSize m delta 1100000 CvSize m_obsSize CvSize m dctSize BOOL m suppress intensity 0000000 00000000000 19 741 742 743 744 745 74
44. 431 D DL BL DO DL EE UE U D DE 7 U LU 0 00000000 WEB 0 O L 441 00000000 46700000 E SDOAP EH mine http f Pv vr Orgy 2001 Scharma instance ui ang XML Schema seriis 2 udis soap mncading enims SOAP 5 gt SOAP ENV Bndy SOAP ENV encodingStyle http schemas misoap orgs snap hti tam ari neg idis EospP ENC ricis i mage xu tyne z goAR gt 44A05h I ABAGEAT AEA 2 c Facesigcognize c AIEO Body SDAP ENY Erreg 432 0000 0000 0 00 00 000 00 00 0 0 0 000 4100000000 47 433 IH H BL DL E EE EE E DE D DE DE EE DE D DI PERSON
45. 0000000000000000000000000000000 2 7 0 2 0300000 iP aT E a Fan bbe ScratchPad ae Fra dE car Machine Tiree Pere TA Ta Apelication 0000 00 0 0 00 0 0 000 Ul 000000000000000000000 219000000000000000000000000 I1 1N0000 0000000000000 2004000000000 2500000000000000 00000000000000000000000000000000000000000 0000000000000000000000000000000000 000250000000000000000000000000000000000 GPs 000000000000000000000000000000 3 20000000000000000 20030 100000 0017 20000 C je JA bluetooth OK 0000 00000000000000000000000 00 0 0 00 0 00 00 0 000 0 00 0 0 0
46. 2000 SoftKeyListener 000000000000000000000000000 public void softK eyReleased int param i MUOQUUUUD if param this SOFT KEY 1 i termi nate if param this SOFT KEY 2 i showPersonl nfo personList key value key public void softK eyPressed int param i 132 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 componentListener L1 public void componentAction Component w_component int w_type int w_param if w component w listbox amp amp w SELECTION CHANGED if w_param 0 w param 1 key value 0 else w param 2 param 3 key value 1 else if w_param 4 w_param 5 value 2 public void keyPressed Panel w_panel int w_param if w_param Display KEY 1 showPersonl nfo personL ist O key if w_param Display KEY 2 showPersonl nfo personL ist 1 key 133 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4
47. 12 1300000 130 NN ca uut CJ 0000 a mE lt 4 1400 0 0 0 0000000000000 00000 300000000 HOU 0000000000 000 000000 GUI 20 0000000000 HOU 000000000 wEBTT LL LL 140
48. 7 67 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 m_pRecordSet gt F ields gt tem PERSONI D 2PutValue m Personl D hr mageU pLoader m pRecordSet IMAGE amp pl mage Getl mage pl mage gt SetM odifi ed false hr m_pRecordSet gt U pdate FAILE D hr return CTL E DEVICEIOERROR errorText AppendF ormat T ED D J BH DL catch com error amp e throw return hr 000000 SetM odified false return S OK HRESULT mageU pLoader RecordsetPtr m_pRecordSet LPCSTR datarow mage newl mage V _variant_t varChunk long IngOffSet 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 IngOffSet 0 HRESULT hr S SAFEARRAY m pl mageData SafeArrayF romCvvl mage newl mage
49. 4111 Computer Visionf 00000 Inte Intel Primitive Library 00000000000000000000000 COM 10000000000 2000000000 00000 000 0 0 0 00 000 0000 0 0 0 006 0 060 320 240 L HOU HMMDEMO FEET sm X Bene i a m 30 4 1 1 2 5 0 00 41000000 0 410 0000000 1000000000 000000 000000 00000 0000000000 000000000000000000000000
50. CPersonl mage virtual CPersonl mage void Unload return m img void Setlmage mage image m img image void SetRoil nFile CRect CRect GetRoilnFile return m roi in file 22 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 967 968 969 8 0 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 V void Set ImagelD long ImagelD m_ImagelD magel D long Get_ImagelD return m Image D void SetModified bool modified true modified modified bool IsModified return m modified protected F A long m Imagel D Cvvl mage m img CRect m roi in file bool m modified inline TESTHR HRESULT hr HRESULT errorSQLInside com error void errorSQLProvider ConnectionPtr m pConnection HRESULT CreateStreamF romSafeArray SAFEARRAY pvSafeArray Stream pplStream HRESULT CopySafeArrayToHMem SAFEARRAY pvSafeArray HANDLE hMem 0000000 HRESULT SafeArrayToCvvlmage SAFEARRAY pvSafeArray mage newl mage 0000000 SAFEARRAY SafeArrayF romCvvl mage Cvvl mage newl mage Itiuuluiuiuiulii
51. BOOL MgdFindF aceLibrary Load Config void return pDataBase 1oad config return true BOOL indF aceLibrary Save Config void return pDataBase gt save_config return true E WG BOOL MggdFindF ibrary SetDBI nfo System String Provider System String Source System String DB Name System String UserName System String PassWord TODO LH HL E HL B B E B B EE EE BO B 7E 7 7 EC System String Provider1 Provider System String Sourcel Source System String pin DB Namel DB System String UserNamel UserN ame System String PassWord1 PassWord HRESULT info pDataBase gt SetDBI nfo CString P rovider 1 CString Sourcel CString DB Namel CString U serN amel 4 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 213 214 215 216 217 218 219 220 222 CString PassWord1 return true BOOL MggdFindF aceLibrary SetTABLE Info System String info System String image System String config System String infol info System String imagel image System String pin configl config pDataBase SetTABLEInfo CString infol CString imagel CStrin g confi g1 return true 0000000000000000000000000000 B
52. for i 20 i num img i cvReleaseObsl nfo amp obs_info_array i obs_info RemoveAll segmentation Destroy Iti B uuuuututuututututLutututLtut m trained true errorText AppendF ormat 1 O E O E 0 0 ae AGIT Bh kikikipa CPersonl mage class a DEEP namespace FACE BASE 000 0000 CPersonl mage m modified false m roi in file CRect 0 0 0 0 81 3035 CPersonl mage CP ersonl mage 3036 3037 Unload 3038 3039 3040 void CPersonl nload 3041 3042 m_img Destroy 3043 3044 3045 void CPersonl mage SetRoil nFile CRect r 3046 1 3047 m roi in file r 3048 SetM odified m img Width 0 3049 3050 3051 3052 3053 3054 00000000000 1 3055 3056 3057 a a ae a a a 3058
53. lt _ gt 0000 Ut J 0 0000 00 00000 gt LEE BIET E OOOO O0 20 21 WINDOWS D D D UO EL U D DE 7 UE 7 D LI UI E 2411 Microsoft Foundation 55 1 0 O WINDOWS I Hd E EB E E E D EE EE HE LH Microsoft 00000000000000000000000000 0000000000000000000000000000000000000 9500 210 0000000000000000000 00000 S 220021 0000 E 5 5 0 00000 WINDOWSHUUUUUUUU 9500000000000000000000000 5
54. HOU 3000000000 iii 4000 0 00000 0 0 0 00 00 L HOU UOUUUU HEBES 3320 0 0 0 0 0 0 0 0 0 HL LIH EE TEL LEE gt DB HOUUUUUUU 41010 00000 0 0 00000 0 01 HOU gt DB 25 000000 00000000000 40000000000000000000000000000 330 0000000000 ES p p pc l l __ 256565858 AN AN 000000 000008 00000000 00000000 Pp 3 3 2 2
55. cPERSONITI D D LI LI CPERSONIMG V void CF aceBase Addl mage long personl D Cvvl mage image bool loaded 0 0 FALSE EI CPerson Person FindPersonByPersonl D personl D if loaded mage data new mage data gt CopyOf m trained image gt Getlmage TEE U Person gt Addl mage data NULL else Person gt Addl mage image NULL Person gt SetM odified SetM odified true 59 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 ERE UDHR void CFaceBase Removel mage long personl D POSITION pos CPerson Person FindPersonByPersonl D personl D Person m imgs RemoveAt pos void CFaceBase Setl mageSize CSize size m_basel mgSize size SetM odified Re te non i bn JOKGEGREGEGR Boh on CPerson dass
56. 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 errorText AppendF ormat 1 E E E E ED D 0 n return hr errorText AppendF ormat Yn m pRecordSet F ields gt tem PERSONID 2PutValue 5 gt GetP ersonl D m pRecordSet F ields gt l tem NAME gt PutValue variant t LP CSTR person gt GetN ame if person m hmm NULL m_pRecordSet gt F ields gt tem HMM gt PutValue NULL else CString temp new CString if person gt n_hmm gt Save temp m pRecordSet F ields gt tem H M M 2PutValue NULL else m pRecordSet F ields gt tem HMM 2PutValue LPCSTR tem p errorText Append person m hmm gt error Text 54 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 person gt Save m pRecordSet image person gt SetM odifi ed false if pRecordSet E ndOfF m_pRecordSet gt M oveN
57. ElementT ype type new ElementT ype String soapAction http tempuri org HttpTransport http new HttpTransport w url soapAction Transport KSOAP E D E E UE ET D ClassM classM new ClassM ap Soap VER 11 ClassMap http setClassM ap d assM http debug false 136 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 SOAP 00000000L 00000 U UsoapActionQ 0000000000 SoapObject method new SoapObject soapAction PutPersonl nfo method addP roperty key soapAction Object key method addP roperty name SoapAction Object data N ame method addP roperty bel ong soapAction Object data B el ong method addP roperty relati on SoapAction Object data Relati on method addP roperty tel SoapAction Object data TEL method addP roperty address SoapA tion Object data Address ret Object http call method catch E xception e System err println e toStri ng return ret toString Iti B utuuuuutututtLt public void showResult long key String data Iti uutuutt mypanel w panel mypanel w panel setSoftL abel panel SOFT KEY 1 pane
58. Redistribution and use in source and binary forms with or without modification are permitted provided that the following conditions are met Redistribution s of source code must retain the above copyright notice this list of conditions and the following disclaimer Redistribution s in binary form must reproduce the above copyright notice this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 Thename of Intel Corporation may not be used to endorse or promote products derived from this software without specific prior written permission This software is provided by the copyright holders and contributors as is and any express or implied warranties induding but not limited to the implied warranties of merchantability and fitness for a particular purpose are disclaimed n no event shall the Intel Corporation or contributors be liable for any direct indirect incidental special exemplary or consequential damages including but not limited to procurement of substitute goods or services 1055 of use data or profits or business interruption however caused
59. resToken source Tokenize n curPos sscanf resToken s f n temp char amp state gt log_var_val m transition probability matrix O source Tokenize curPos float prob float malloc hmm gt num states hmm num states sizeof float hmm transP prob for int j 20 j hmm num states 4 curPos2 0 source Tokenize for 20 k hmm num states k if curPos2 lt resToken GetLength resToken2 resToken Tokenize curPos2 sscanf resToken2 f prob hmm num states k 10 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 source Tokenize Xn curPos hmm amp m_hmm gt u ehmni i return true BOOL CContEHMM Release if m hmm cvRelease2DH hmm m hmm 0 return TRUE 00000000 Intel LicenseAgreement 00 Inta 0000000 A 00000000 Intel LicenseAgreement 7 2 00000 highgui dll cv dll cvaux dl
60. BOOL use width int width BOOL use height int height BOOL suppress intens BOOL leave hmm alive FALSE HRESULT Load void Unload HRESULT Save HRESULT load_config ca HRESULT save config 00900 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 7 UJ S loaded 200190000 long AddPerson void RemovePerson const long amp Personl D CPersonList amp GetPersonList return m_base i i void long Cvvl mage image bool ee void Removelmage long personl D POSITION pos ag a CPerson const int amp index 006 00066 00600 600 00060 0000 60000 CPerson FindPersonByName const CString amp name CPerson FindPersonByPersonl D const long amp Personl D int GetPersonl ndex CPerson person DEED PEE int RecognizePerson Cvvl mage image CRect rect long key long remove key float likelihood
61. CvEHMM hmm m hmm int temp int for i 20 i num states 0 1 i source Tokenize curPos source Tokenize curPos lerrorText AppendF ormat _T LOAD MESSGAE s n resToken j sscanf resToken 96s d n temp char amp temp int if temp int states i 104 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 errorText AppendF ormat _T ERROR IN LOADINGXn return false if i 0 for j 0 num states i j CvEHMMState state amp hmm gt u statelj 1 resToken sourceTokenize Xn curPos sscanf resToken S d n temp char amp temp int temp int return false resToken sourceTokenize Xn curPos sscanf resToken 9es d n temp char amp temp int if temp int state gt num mix errorText AppendF ormat _T d n state gt num_mix errorText AppendF ormat _T ERROR IN LOADING3X n return false float mu float malloc state gt num_mix m_vectSize sizeof float float inv var 105 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938
62. Main exe LoadLibrary LoadLibrary LoadLibrary GetProcAddress GetProcAddress GetProcAddress subfuc subfuc ubfuc FreeLibrary FreeLibrary 0000 FreeLibrery 2 0 subfuc Subdi O OO L subfuc N 0000000 Uo Microsoft 1 00 500000000000000000000000000000000 HOU 0 Microsoft WINDOWS 5 0000 0095000000000 2 41 000 2 00000 cow nn 0000 E 00000 S HU UB 0000 a 5 00000 0000 0000000 0 0000000000000000000000000000000000 WORD
63. String ret myapp GetPersonl nfo w url data myapp showResult data l ongVal ue ret terminate lt 10 D D U B D U B E D DT EE DU private String GetPersonl nfo String w url Long data Object ret null try ElementT ype type new ElementT ype String soapAction http tempuri org HttpTransport http new HttpTransport w url soapAction Transport ClassM classM new ClassM ap Soap VER11 ClassMap 135 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 http setClassM ap classM ap http debug false SOAP D EH D B 7B E EE EE 060 SoapObject method new SoapObject soapAction GetP ersonl nfo method addP roperty key soapA tion Object data ret Object http call method catch E xception e System err println e toStri ng return ret toString NEB O00 SetPersonI 00000000000000 private String PutPersonl nfo String w url PersonData data Object ret null Long key new Long data key try
64. 000000 OOOO 200000947 0000 Ug 00000000000000000000000000000000 hii WINDOWS WEB 100 OUUU 0000 0000 00000 000000 10000 200000947 UU UU 0 2004 10 28000 010 11 wEBmngmgmnmunmugmgmaru dtrr tiis 12 4 0 20 21 6 22 000000000000000 11 23 13 24 0000000000000
65. 0 18 0 30 31 0D00000000000000000000 AM 20 32 0 AMAT 21 33 UMLOOOOOOOO000000000000 22 0 40 41 411 30 412 35 41 3 ASPNETQ ADONETQ OOO LEEEEEEEEEEEEEEEEEEEEEEE 40 42 42 43 000000000000000 45 1050 50 RP 51 56 000 10 FaceLibrary2n 1 00000000 20 Webservicel gt O 10 11 00 DNS
66. 1 3 01000 00000000 0000000000 http www geocities co jp SilliconValley Bay 2972 1 4 JAVA PROGRAMING for 0000000000000 http www mdn co jp webcre avaprog 1 5 ITI SOFTBANK Publishing 20010 40 1 6 000000 00 000 000000 1999 801 2 1 http www atmarkit co jp fxml tanpatsu 21websvd 22 0000 http www atmarkit co jp fxml tanpatsu 25websvg 01 html 2 3 http www atmarkit co j p fxml rensai soap01 soap01 html 2 4 http www wakhok ac jp sakamoto WS 2 5 0000000000 William 00000 20020 1000 2 6 DOU http www utj co jp xml dev svg 2 7 0000000000000 XSLT http www utj co jp xml dev xslt XSLT DOM I 1 I B Ll E E D 2 8 NanoXML ava 2 2 10000000 5 2 9 ApacheAxis 00 0 KSOAP tH E HU DD DU http Piembers jcom home ne j p hitumabushi wserv axis html 2 10 HTML WEB SGML 000000000 1998 611 ER TEE http kso
67. and on any theory of liability whether in contract strict liability or tort induding negligence or otherwise arising in any way out of the use of this software even if advised of the possibility of such damage Intel LicenseAgreement Intel L EL E L EET Te EE EE ETE 000000000000000000000000000000 lt Intel LicenseAgreement 00000000 ContEHMM cpp O 1000000000000 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 highgui dll cv dll IPL dll IPLa6 dll IPL defined AFX CONTEHMM 078 09 40 421A 8422 C420970 7657 INCLUDED 078
68. has Pra E eU EH Fr E ita 43 41000 HOU 0000000000 60 HOU 000000 GUI HOU 000000000 A E E E D ll Lil 44000000000 14000000000 0000 Ut 2 UD a LL ETE BIET E OOOO OOU L 000000000000000000000000 691000000000000 0 0 000
69. mage System l nt64 Personl D System Byte imageData BOOL loaded BOOL RecognizePerson System Byte imageDatal System String result System String probresult BOOL RecognizePerson Checked System B yte imageData System String remove key System String result System String probresult 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 BOOL RecognizePerson2 System Byte imageDatal System I nt64 result System Single probresult BOOL TrainPerson System nt64 Personl D BOOL TrainAll void private HRESULT oadCvvl mage System Byte imageDatal mage image CRect rect ATTI Intel LicenseAgreement 1000 ntel E UD L LH 0 Intel LicenseAgreement L D 1 D D DU 00000000000 HUUDUDUUU 00000000000 DLLUUUUL highgui dll cvaux dll OPENCV PL dll Fa
70. 0 dst img CopyOf import image O image gt SetRoil nFile CRect 0 0 import image 2Width import image Height image gt SetM odifi ed m imgs AddTail image SetM odifi ed m trained false 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 void CPerson Removel mage POSITION CPersonl mage image m_imgs GetAt pos if image m_imgs RemoveAt pos image gt U nload delete image SetM odified void CPerson MoveToTop POSITION pos CPersonl mage image m_imgs GetAt pos if image m_imgs RemoveAt pos CPersonl mage old head m imgs GetH ead if old head old_head gt U nload m imgs AddH ead image SetM odified true void LightingCorrection l pll mage ipl
71. 331 3 311 B 3 4 0000000059000 3 3 1 2 Be 000 00 Od d 0 BO 0 0 000 0 me ae ili l ibu l HOU rt HOUUUU
72. errorText AppendF ormat return hr catch com error amp e PEE D Di S throw return hr return hr void CPerson Unload 1 while imgs l sSEmpty i CPersonl mage image 2m imgs RemoveH ead delete image UD 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 HRESULT CPerson Save RecordsetPtr m pRecordSet CPersonl mage pl mage NULL 0 00000 00000 0000 HRESULT hr if ISModified i try i Yn B BI POSITION pos m_imgs GetH eadPosition m_pRecordSet gt M ovel ast while pos pl mage m_imgs GetN ext pos pl gt sM odified continue gg hr m_pRecordSet gt AddN ew if FAI LED hr i errorText AppendF ormat T return hr errorText AppendF ormat T O P We
73. for int 20 k obs obs y k 1 for int 0 m lt obs obs x m 4 counter cvCirde ipl segm 79 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 cvPoint parent gt m_dctSize width gt gt 1 parent gt m_delta width parent gt m_dctSize height gt gt 1 parent gt m_delta height k 3 color obs gt state counter 2 1 1 parent gt SetTrainedl ndex j parent gt U pdateTrai nedl mage sti mateH M StateP arams obs info array num img hmm cvEstimateTransProb obs info array img hmm float likelihood 0 for j 20 num img j cvE sti mateObsP rob obs info arrayl j hmm likelihood cvEViterbi obs info hmm likelihood num_img obs info array O gt obs size cvMixSegmL 2 obs info array num img hmm trained fabs likelihood old likelihood 0 01 J 80 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 old likelihood likelihood
74. int newval level mean newval newval 0 0 newval newval newval 255 255 newval 2newval void Normalizel mageF orHMM Ipllmage scaled Ipli mage normalized_image ixedF ilter scaled normalized_image 3x3 void ExtractDCT float src float dst int num vec int dst len float src src 1 float dst dst for int i 20 i num i memcpy dst_ src_ dst_len sizeof float 36 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 src dst len 1 dst 4 dst len CBaselnfo class TEE HHH HHUH HTH a E AEE RAC ACC ERE ED ENED ERE BSED EET EM EI CBasel nfo CB asel nfo m_pConnection gt Close HRESULT CBaselnfo SetDBInfo const CString amp PROVIDER const CString amp SOURCE const
75. 0 errorText AppendF ormat _T 1IS BROKEN 45 n break 87 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 MUQUODUUODUUUU hmm person gt GetHMM GetlppiEHMM if Amm code 0 errorText AppendF ormat _T IS BROKEN 45 n break AMM 0000006060 CVE sti mateObsP rob info hmm like array i cvEViterbi info hmm Zi E E BEBE BD BERT cvReleaseObsl nfo amp info if code return code define REGNZ NUMBER MMM EL ELEBLEL EL BE EE EE DF EE EE DT ET 7 7 UI HU CPerson person int 0 remove number 0 if remove key NULL i for remove number 0 remove key remove number 1 remove number errorText AppendF ormat T remove number d n remove number remove_number 0 for i 0 i lt MIN REGNZ NUMBER m baseGetCount i 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 float maxl FLT MAX Int maxind 1 Iti Buuutuututututt for in
76. 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 CPerson person m_base GetNext pos if person amp amp name CompareN oCase person gt GetN ame 0 return person return 0 BEBE a IH 000 FindPersonByPersonlD O O FindPersonByName int CFaceBase GetPersonl ndex CPerson person POSITION pos m_base GetH eadPosition int i for i 0 pos 0 i CPerson p m base GetN ext pos person return i return 1 4MMInfo 00000000000000000 void CFaceBase DeleteH nfo 1 POSITION pos m_base GetH eadPosition while pos i CPerson person 2m base GetN ext pos if person 58 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 person gt DeleteH MMInfo P BE BE BUE BOUES CString CF aceBase reportE return errorText H 0000000000000000000000000000
77. 5864 catch nterruptedl OE xception iie 5865 5866 System out println T E E E E E E UD D D 5867 5868 catch ConnectionE xception ce 5869 5870 System out printin T D D D B UO 2 0000000 5871 recei ve IF LU D EU UL E DI HU 5872 5873 finally 5874 5875 if connected throw new nterruptedl OE xception 5876 reset 5877 5878 5879 5880 5881 5882 public void receive throws IOException 4 5883 158 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 ByteArrayOutputStream bos ByteArrayOutputStream 15 nputStream bos new ByteArrayOutputStream OQOUUUO byte buf new byte 256 while true int rd buf 0 256 If rd 1 break bos write buf 0 rd buf bos toByteArray is close is new ByteArrayl nputStream buf connecti on cl ose is ByteArrayl nputStream buf reader BufferedReader new nputStreamReader is XmlParser xp new XmlParser reader responseE nvel ope parse Executes a SOAP Method and returns a response param method the remote soap method to be
78. DU myapp showResult ret terminate 0 O O FaceRecogniza i private String F aceRecognize String w url byte data Object ret null try ElementT ype type ElementT ype String soapAction http tempuri org 00000000000000000000 HttpTransport http new HttpTransport w url Transport ClassM ap dassMap new ClassMap Soap ClassMap http setClassM ap d assM http debug false 126 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 SoapObject method new SoapObject soapAction F aceR ecognize Object data method addP roperty i mage ret Object http call method catch E xception e System err println e toStri ng String convert ret toString return ret toString td B Uuutuuututut public InputStream imageP InputStream image in null mage w_image Camera w_camera Id UU LU Ww camera Camera2 getCamera 0 w_camera setl mageSize 192 144 try w camera takePi
79. FAILED hr return hr else if pb return E UNEXPECTED byte pbStm byte GlobalL ock hM em pbStm pb ulSize GlobalU nlock hM em SafeArrayU naccessData psa return S OK HRESULT CreateStreamF romSafeArray SAFEARRAY pvSafeArray Stream pplStream HRESULT hr S OK HGLOBAL hMem Stream NULL hr CopySafeArrayToH M em pvSafeArray em if FAILED hr return hr 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 hr CreateStreamOnHGlobal hM em TRUE pplStream return hr 0000000 DD BO BD ELE B BE EE B D EE 7E 7 B EE J PEG 2B8MP 2CVVIMAGE el HRESULT SafeArrayToCvvlmage SAFEARRAY pvSafeArray Cvvl mage newl mage CComPtr lt Stream imageStream imageStream2 LPPICTURE m pJ PEG HRESULT hr HGLOBAL hM em hM em2 long fileSize HBITMAP m hJ PEG
80. float f 1 h2 k float y2 width yl yl width float hei ght a 0 float f O float width hei ght float y1 a 1 float nei ght float x1 a 2 fl oat wi dth for i 0 height i for j 20 j width j correction a 0 al 1 float i a 2 float j float img i width j imgl i step j correction if float img i width j lt min min float img i width if float img i width j gt max max float img i width rescaling to the range 0 255 C2 0 joe 2 39 2 40 2 41 2 42 2 43 2 44 2 45 2 46 2 47 2 48 2 49 2 50 2 51 2 52 2 53 2 54 2 55 2 56 2 5 2 58 2 59 2 60 2 61 2 62 2 63 2 64 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 If max C2 255 0f else C2 255 0f float max min cl float min c2 for i 0 1 height i for j 0 j width j int value int floor C2 float img i width j c1 value lt 0 value O If value gt 255 value 255 img i step j uchar value free float imo 0 0 0 0 0 0 0 0 0 0 0000 void CPerson TrainHM M i int color 24 4 RGB 255 128 128 RGB 255 255 128 RGB 128 255 128 RGB 128 255 255 RGB 0 128 255 255 128 255 RGB 255 0 0 RGB 255 128 0 RGB 0 128 0 RGB 0 0 0 RGB 255 255 128 RGB 255 0 128 RGB 255 128 128 RGB 255 255 128 12
81. return S OK HRESULT CFaceBase save config i Col nitialize NULL HRESULT hr basel nfo openDB 45 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 if FAILED hr return hr _ConnectionPtr m_pConnection basel nfo get_ConnectionPtr CString temp Gi O0 00000 try HEB 7 CString basename basel nfo ConfigB aseN ame _RecordsetPtr m pRecordSet ADODB R ecordset TESTHR m pRecordSet Createl nstance uuidof Recordset m pRecordSet 2Open LPCSTR basename variant t IDispatch m pConnection true adOpenStatic adL ockOpti mistic adCmdrT able P DEI 7 m_pRecordSet gt F ields gt tem WI NDOW_HEIGHT gt PutValue m _dctSize height m_pRecordSet gt F ields gt tem WINDOW_WIDTH gt PutValue dctSize width m_pRecordSet gt F ields gt tem DELTA_X gt PutValue m delta wid th m_pRecordSet gt F ields gt l tem DELTA_Y gt PutValue m delta heig ht m_pRecordSet gt F ields gt ltem DCT COEFF_X gt PutValue m obs Size width 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 17
82. variable to get result int i 0 dib LPBITMAPINFO GlobalL em2 dibh BITMAPINFOHEADER dib rgb RGBQUAD char dib sizeof BITMAPINFOHEADER 256 data unsigned char char rgb sizeof RGBQUAD I dibh gt biSize sizeof BI TMAPINFOHEADE R dibh gt biWidth imageData gt GetWidth 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 dibh gt biH eight imageData gt GetH eight dibh gt biPlanes 1 dibh gt biBitCount 8 dibh gt biCompression BI_RGB dibh gt biSizel mage pvSafeArray gt rgsabound 0 cE ements dibh 2bi CIrU sed 256 dibh 2biClrl mportant 0 uiuuul liuilill for i 0 i 256 i rob il rgbBlue rgb i rgbGreen rgbli rgoRed unsigned char i img iplTranslateDI B dibh amp doneData IplROI roi img roi amp roi roi RectToROI CRect 15 0 imageData gt GetWidth 15 ImageData gt GetH eight CVVIMAGE 000000000 newl mage gt CopyOf img nlock hM em2 GlobalF ree hM em2 return S OK PF CVVIMAGE gt B
83. 0 bool 4 0 000000000 400 5 0000 0 String m EE 0000000 00000000 42 4 2 1 2 HL HL BL EL EE UE EE EE UE D D UT 100000 JAVA 0000000000000000000000000000 480 0000000000 0000 000000 EC 0000 00 000 0 string 0000 byte 0000 1000 0 string 000 string 1 1 00000000000000 __ _ en 1 000000 1 000000 0000 000000 ee ee E et IE 0 0 0 0 000 0 42 22 i Dil a P D E EEG 0000 00 00 0 00 000 00 000 0 00 0 0 0 D
84. 09 40E3 421A 8422 C4209707657A CLUDED MSC VER gt 1000 oragma once endif MSC gt 1000 include stdafx2 h namespace FACE BASE dass CContEHMM public BOOL Release CContEHMM virtual CContEHMM bool CreateHMM int num states num mix int vect size AppiEHMM Getl ppiEHMM return m hmm CvEHMM Getl ppiEHMM return m hmm int GetVectSize return m_vectSize bool Save CString source 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 bool L oad CString source public CString errorText protected m hmm CvEHMM m hmm OPENCV Hj HMM int m_vectSize endif defined AFX_CONTEHMM_H_AO78FO9B 40E3 421A 8422 C4209707 657A INCLUDED FPEM MH WW I IMPORTANT READ BEFORE DOWNLOADING COPYING INSTALLING OR USING By downloading copying installing or using the software you agree to this license f you not agree to this license do not download install copy or use the software Intel License Agreement For Op
85. 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 rgsabound 0 cE lements ogoSi ze m pl mageData SafeArrayCreate VT UI 1 1 rgsabound if m pl mageData NULL return E OUTOFMEMORY Gechunk O00 0000000000000000 long index1 0 while IngOffSet lt IngL ogoSize varChunk m_pRecordSet gt F ields gt l tem LPCSTR dataROW gt GetChunk CHUNKSI ZE ICopy the data only upto the Actual Size of Field for long index 0 index lt CH UN KSI ZE 1 index 4 SafeArrayGetE lement varChunk parray amp index amp chData if SUCCEEDED hr BYTE by BYTE and advance M emory L ocation hr SafeArrayPutElement m pl mageData amp index1 amp chData Index1 else break IngOffSet IngOffSet CHUNKSIZE 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 IngOffSet 0 We Bi DU ferrorText AppendF ormat T size d n m pl mageData rgsabound 0 cE lements hr SafeArrayToCvvImage m plmageData newl mage if FAILE D hr
86. 4 4 ADONET ADONET J lJ LU lJ http ww gotdotnet com japan team fieldevangelist fusaito 52 4 5 4 6 4 7 4 8 ASP EID LH U L http www sqlpassj org ounkai Aweb series ado ASPNETIJASPIJUIUU L http www atmarkit co jp fdotnet aspnet aspnetOl aspnetO1 02 html Microsoft http ja gotdotnet com qui ckstart asppl us doc 1 ASP NET 0000 00000 0000000 20030 1901 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 http www sm rim or jp shishiido readbmp html CreateDI BSection 20 http www microsoft com japan developer library jpodipf VC Tips About Library 00000 1 http www bc wakwak com wmasayoshi prog buil der ti ps HUO H DEL JT T HHI 2 http Avww microsoft com japan developer library vccore 000000000 http www mi crosoft com Jj apan msdn tabl etpc techart bi nkchat asp COM OUUU WINDOWS ED DEO DUELO 00 00 7E 0 LU http www5 plala or jp atata com Intel Image Processing Library BMP I LH L D http www mapletown net nekora soft howto i pl html TU HE D UI 0 0 7T O DI U yuuich k2is aist nara ac jp
87. 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 include ipl h define ASSERT ATLASSERT endif 112 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 2L Webservicel WEB J E E D D ATTI 20040 50000 JF OPE BEP E 00000000000 0000 highgui dll cv dll cvaux dll OPENCV DLL PL dll IPLa6 dll IPL JP Imports System Web Services Imports System O mports System Drawing Imports System Data SqiClientt Imports System Text UUNICODE lt gt SSHIFTJ ISO 000000 lt
88. 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 Try sqlAdpt F ill dSet table Catch ex As Exception sqlConn Close errMsg ex Message DBLOADER zNothing Exit Function End Try sqlConn Close DBLOADER dSet End Function Private Function DBUPLOADER ByRef dSet As DataSet ByRef table As String As String Dim cBuild AS SqlCommanaB uilder New SqlCommandB uilder sqlAdpt Try sqlAdpt U pdate dSet table INSERT 0 00000 H 00000 dSet AcceptChanges OOOO sqlConn Close Catch err As Exception sqlConn Close DBUPLOADER err M essage Exit Function End Try 122 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 DBUPLOADER OK End Function 0000000000000 Private Function DBREQUIRE ByRef comString As String As String 000 BE Eo sgl Conn New SqlConnection connString1 Dim sqlReader As Sal DataReader Dim As SqlCommand New Sql Commanda With sql Cmd CommandText comString
89. 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 import java io import java util import com nttdocomo io import com nttdocomo ui import org ksoap import org ksoap transport import org ksoap marshal import org kobjects user import org kobjects serialization public dass KSOAP3 extends Application WEB FD D EL U DU DE D String w url http localhost Webservicel Servicel asmx String ww name public void start mypanel w_panel mypanel w panel setSoftL abel w_panel SOFT KEY 1 w panel setSoftL abel w panel SOFT KEY 2 Display setCurrent w panel fterminate SetNewPerson TI 1 E E 00000 000 E U private String SetNewPerson String w url PersonData data Object ret null 145 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 Long key new Long data key try ElementT ype type new ElementT ype S
90. 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 include ContEHMM h define TRAIN ALL 1 define TRAIN UNTRAINED 2 10000000000 0 FACEBASEQ namespace FACE BASE dass CF aceBase class CBasel nfo class CPerson 60000 dass CPersonTrait class CPersonl mage dass 0000000000000 00 MUUUOUUUUUUOU typedef CAtIList lt CPersonl mage CP ersonl ist typedef CAtIList CPerson CPersonL ist class CBasel nfo public OOUUUUUO HRESULT SetDBInfo const CString amp PROVIDER const CString amp SOURCE const CString amp DB const CString amp USER const CString amp PASSWD HRESULT SetTABLEInfo const CString amp info const CString amp image const CString amp config 0000000000 CString makeup destination 15 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 HRESULT openDB 1 0000 CString BaseName return m_infoBase CString mageBaseN ame return m imageBase CString ConfigBaseName return m
91. 7 D 7E 7T UE L Ut if w component w listbox amp amp w type SELECTION CHANGED w_textbox requestF ocus Iti B uuuuutututututtul I GUT 1 if w component w textbox amp amp w type TEXT CHANGED 1 w_textbox getText KSOAP int select key listbox getSelectedl ndex list setData select key w listbox removeAIl showValue w listbox requestF ocus if select key lt 4 listbox select select key 1 J else w listbox select 0 Display setCurrent this The contents of this file are subject to the Enhydra Public License 153 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 Version 1 1 the License you may not use this file except in compliance with the License You may obtain a copy of the License on the Enhydra web site http www enhydra org Software distributed under the License is distributed an AS IS basis WITHOUT WARRANTY OF ANY KIND either express or implied See theLicense for the specific terms governing rights and limitations under theLicense The Initial Developer of KSOAP is Stefan Haustein Copyright C 2000 2001 Stefan Hau
92. CommandType CommandType Text Connection sqlConn End With Try Conn Open 5 sql Cmd E xecuteReader DBREQUIRE sqlReader GetString 0 Catch ex As E xcepti on sqlConn Close DBREQUIRE ex Message Exit Function End Try sqlConn Close End Function End Class Public Class Human Public nameAs String Public belong As String 123 4589 Public relation As String 4590 Public address As String 4591 Public tel As String 4592 Public key As String 4593 4594 4595 Public Sub setValue ByVal names As String ByVal belongs As String 4596 ByVal relations As String ByVal addresss As String ByVal tels As String 4597 name names 4598 belong belongs 4599 relation relations 4600 address addresss 4601 tel tels 4602 End Sub 4603 End Class 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 124 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 HOO PEA KSOAP L java 2004 01 18 0 16 00 00
93. FILE J FILE define new DEBUG NEW endif namespace FACEBASE MATT Construction Destructi on CContEHMM CContEHMM m hmm NULL m vectSize 0 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 CContEHMM CContEHMM 1 if m hmm cvRelease2DHMM hmm m vectSize 0 bool CContEHMM CreateHMM int num states num mix int size if m hmm cvRelease2DHMM amp m hmm m hmm 0 m hmm cvCreate2DHMM num states num mix vect size m vectSize vect size return true else return false I 00 MSXML MI OPENCV OO bool CContE HM M Save CString source 9 0000000 if Im hmm return false if Source NULL return false 9 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3
94. NULL Marshal Copy imageData 0 pb 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 imageData gt get_Length SafeArrayU naccessData psa 0000000 hr SafeArrayToCvvl mage psa image if FAI LED hr errorTextH ere AppendF ormat _T TROUBLES CreateStreamF romSafeArray in DLL X n return E FAIL ROV DB E E U E E 7 EE ET D LI EI rect gt SetRect 0 0 image gt Height image gt Width errorTextF errorTextHere AllocSysString return S OK PEM MH WII I IMPORTANT READ BEFORE DOWNLOADING COPYING INSTALLING OR USING By downloading copying installing or using the software you agree to this license f you not agree to this license do not download install copy or use the software Intel License Agreement For Open Source Computer Vision Library Copyright C 2000 Intel Corporation all rights reserved 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 Third party copyrights are property of their respective owners Redistribution and use in source
95. O j end j CPerson person 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 FindPersonByPersonl D member j errorText AppendF ormat d n person gt GetPersonl D person gt TrainHMM REFEREED SSS ai i 2 E derepente 00000000000000000000000000000 H BH E key likelihood T remove int CF aceBase RecognizePerson Cvvl mage image CRect rect long key long remove key float likelihood A 00 if 0 0 0 0 rect bottom image gt H eight rect right image gt Width 00000000000 float like 1000 ASSERT m_base GetCount lt 1000 int three first REGNZ NUMBER pll mage ipl image NULL ipl m_trained_image gt Getl mage 94 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 31
96. WebService N amespace http tempuri org gt _ Public Class Servicel Inherits System Web Services WebService Dim connStringl As String Data 1 Catalog H MM DEM O uid test01 pwd bike0512 Dim As String Nothing 113 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 Dim As Connection Nothing Dim sqlAdpt As SqlDataAdapter Nothing UUUUUUUUUUUUUUUUUUUUUUUUUUUUO 0000000000000 lt WebM ethod gt Public Function F aceRecognize B yVal image As Byte As String Dim mStream As System O MemoryStream System l emoryStream i mage Dim imageData As Bitmap New Bitmap mStream Dim person As Long 4 2 3 4 5 6 Dim likelihood As Single 10 54 0 57 0 59 Diminformation As String Dim result As String Dim i As Integer Information dataL oader person Fori 0 To 2 result information result likelihood i ToString result N ext FaceRecognize result End Function
97. and binary forms with or without modification are permitted provided that the following conditions are met Redistribution s of source code must retain the above copyright notice this list of conditions and the following disclaimer Redistribution s in binary form must reproduce the above copyright notice this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution The name of Intel Corporation may not be used to endorse or promote products derived from this software without specific prior written permission This software is provided by the copyright holders and contributors as is and any express or implied warranties including but not limited to the implied warranties of merchantability and fitness for a particular purpose are disclaimed n no event shall the Intel Corporation or contributors be liable for any direct indirect incidental special exemplary or consequential damages including but not limited to procurement of substitute goods or services 1055 of use data or profits or business interruption however caused and on any theory of liability whether in contract strict liability or tort including negligence or otherwise arising in any way out of the use of this software even if advised of the possibility of such damage 00000
98. ext FH BE hr m_pRecordSet gt U pdate if FAI LED hr errorText AppendF ormat T 0 com error e com error hr errorText AppendF ormat T 96s n e ErrorM essage return hr errorText AppendF ormat catch com error amp e m_pConnection gt RollbackTrans errorSQL Provider m pConnection return errorSQLI nside e SetM odified false return S_OK CoU ninitialize 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 return S OK xii void CFaceBase RemovePerson const long amp Personl D POSITION pos m_base GetH eadPosition CPerson person while pos person m_base GetN ext pos if person amp amp Personl D person gt GetPersonl D break if person i person gt U nload m_base RemoveAt pos delete person SetM odifi ed CPERSONLIST 1H HL B U BH E UO B E UO B EE UO 0600 EE 7E 000 00 7E
99. height CvSize num obs mgObsl nfo info CV COUNT OBS amp cvroi delta amp num obs int vect len 2m obsSize height m obsSize width if m suppress intensity vect_len info cvCreateObsl nfo num obs vect len if m suppress intensity float observations float malloc num_obs height num_obs width 1 sizeof float cvlimgToObs DCT normalized image ipl scaled observations m dctSize m obsSize m delta ExtractDCT observations info gt obs num_obs height num_obs width vect_len free observations 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 else N pll mage normalized image cvCreatel mage cvroi DEPTH 80 1 N ormalizel mageF orH scaled normalized_image cvimgToObs DCT normalized image ipl scaled info gt obs m dctSize m obsSize m delta cvReleasel mage amp normalized image If doRescale cvReleasel mage amp ipl scaled MOOUOUUUUUUUOUOU AMM 1000000000000 float max like 100000000 int recognized 1 for int 0 i lt m_base GetCount i CPerson person m base GetAt m base F indl ndex i CvEHMM hmm 0 if person gt sTrained 000000000 000000000 code
100. i 21 i lt 0 resToken i sscanf resToken 4 amp numbers i resToken tempString Tokenize curPos FixedWidth int m_pRecordSet gt F ields gt tem FlXED_WIDTH gt GetValue if FixedWidth 0 m_useWidth TRUE FixedH eight int m_pRecordSet gt F ields gt tem F Il XED_HEIGHT gt GetValue FixedH eight 0 m useHeight TRUE if dctSizewidth lt obsSize width dctSize height lt obsSize height errorText AppendF ormat _T Wrong parameters in config file n errorText AppendF ormat _T New parameters were not loaded n return E INVALIDARG 44 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 0000000000000000 SetParams sampling params dctSize obsSize delta MMM params numbers NumMix mage scaling params m_useWidth FixedWidth m useHeight FixedHeight intensity suppression Suppressl ntensity TRUE if i lt 0 return CTL E INVALIDPROPERTYVALUE catch com error amp e errorSQL Provider m pConnection return errorSQL nside CoU ninitialize
101. if m pl mageData NULL return E FAIL errorText AppendF ormat T size d N m_plmageData gt rgsabound 0 cElements varChunk vt VT_ARRAY VT UIT varChunk parray m pl mageData hr m_pRecordSet gt F ields gt tem datarow gt A ppendChunk varChunk catch com error amp e throw e return hr return hr void CPerson DeleteH MI nfo m trained 5 ClearHMM m hmm NULL CIMAGELIST 69 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 LEE EE DE EE EE DE EE EE EE LI E MOOUUOUOUOUUOUUOUUOUUUUUUUUUUUUUUUUOO ATTI 0000000000000 CIMAGELISTE ENE void CPerson Addl mage Cvvl mage import image CRect rect if import image NULL return CPersonimage 6 00000000 Hy CPersonl mage image image new CPersonl mage mage amp dst img image gt Getl mage pli mage src img import_image gt Getl mage ASSERT src img
102. image CvSize roi 2665 Int step 2666 uchar img 2667 2668 cvGetl mageRawData ipl_image amp step 2669 2670 int i j 2671 int width roi width 2672 int height roi height 2673 2674 float x1 x2 y1 y2 2675 int f 3 0 0 O 2676 float 3 0 0 0 2677 26 8 float h1 2679 float h2 2680 2681 float c1 c2 2682 2683 float min ZFLT MAX 2684 float max FLT MAX 2685 float correction 2686 2687 float float img float malloc width height 2688 sizeof float 2689 2690 1 width width 1 2 0f Sum 1 width 2691 x2 width width 1 2 width 1 6 0f Sum 2692 1 2 Width 2 2693 yl height height 1 2 0f Sum 1 width 2694 y2 height height 1 2 height 1 6 0f Sum 2695 172 width 2 2696 2697 2698 extract grayvalues 2699 for i 0 i height i 2700 2701 for j 0 j width j 2 02 2 03 2 04 2705 2706 2 07 2 08 2 09 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 2 24 2 25 2 26 2727 2728 2729 2730 2 31 2732 2733 2734 2735 2736 2737 2738 2 f 2 j img i step j 11 f 1 i img i step j f 0 2f 0 imgl i step j h1 float f O float x1 float width h2 float y1 float height 2 float f 2 hl float b2 height x1 xl height float wi dth all
103. lt id usar ruret serva gt Spies sim A ee lt esoButtomruet seruar gt pe s dan types mrt gt pos ASP U HM O 00000000 ASPNET UO WINbOWS 00000000000000000000000 0 0 00000 00 0 000 00 00 0 0 0 0 00 00 6600 0000000 00 0 iau Si 14 IER bao Ab ra T 000 14 60 0000 ASP NET 000 0 0 0 0 0 Microsoft 000 E Microsoft NETO 1000
104. m useHeight TRUE else if m_useWidth amp amp width m_scaleWidth useHeight amp amp height 2m scaleH eight dearHMM m_useWidth use width m_useH eight use height m_scaleWidth width m_scaleH eight height if dearHMM amp amp hmm alive for int i 0 lt m_base GetCount i CPerson person GetPerson i person gt ClearH M M person gt SetM odifi ed true return dearHMM void CPerson ClearH m_hmm gt Release m trained 5 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 CContEHMM amp CPerson GetH MM return m_hmm PEM ITT IMPORTANT READ BEFORE DOWNLOADING COPYING INSTALLING OR USING By downloading copying installing or using the software you agree to this license f you do not agree to this license do not download install copy or use the software Intel License Agreement For Open Source Computer Vision Library Copyright 2000 Intel Corporation all rights reserved Third party copyrights are property of their respective owners
105. mage errorText AppendFormat _T ERROR in append image to CI magelist n continue m_imgs AddTail pl mage catch com error amp e 00000 throw return hr return S OK HRESULT 5 mageDownL oader RecordsetPtr m pRecordSet LPCSTR dataROW Cvvl mage newl mage 63 2369 23 0 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 UD Lut RECT rol _variant_t varChunk long IngOffSet IngL ogoSi ze IngOffSet 0 UCHAR chData HRESULT hr S SAFEARRAY FAR plmageData 800000000 SAFEARRAY BOUND rgsabound 1 0 bound 0 rgsabound 0 cE lements CHUNKSIZE CComPtr Stream gt imageStream try E ERE IngLogoSize m_pRecordSet gt F 45 4 tem LPCSTR dataROW gt ActualSize if IngLogoSize return E_FAIL 00000 0 00 BYTEQ SafeArray 0000 00006 0006 00606 00660 00 0 00 5 2406
106. new Labe O 2217 Muu 140 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 label setF ont Font getF ont Font SIZE MEDIUM add w label w listbox new ListBox ListBox SINGLE 5 w listbox setF ont Font getF ont Font SIZE MEDIUM add w listbox w_label2 Labea 0 O Xn w label2 setF ont F ont getF ont Font SIZE MEDIUM add w label2 w_textbox new TextBox 32 TextBox DISPLAY ANY w_textbox setF ont F ont getF ont 512 MEDIUM add textbox I uuututututitLutulut button new Button 000 MUU 1 add w button w button2 new Button add w button2 setSoftKeyListener this setComponentListener this MUUUUUUUUO public void setValue long key String data 141 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 Iti B UULULLUL list new PersonData key data public voi
107. 00 Intel LicenseAgreement Intel E E E E D LH LEE EE EE EE EE DE ET EE EE LI E 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 QOUQUUUUUUUUUUUUUUUUUUUUUUUUUUUU lt Intel facebase h 0 CFaseBase CPerson CPersonl mg E E E E E E DU LI 00000000000 DLLUUUUL highgui dll cvaux dll OPENCV PL dll V INCLUDE FACEBASE define INCLUDE FACEBASE defined AFX FACEBASE 76CC3F61 DOC7 4CF8 8479 84950282 0632 INCLUDED 76CC3F61 DOC7 4CF8 8479 849502820632 INC LUDED MSC gt 1000 oragma once endif MSC VER gt 1000 ContEHMM 0000000000 include stdafx2 h 14 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575
108. 0000000 0 00000000000000000000000000000 HIML 0 0 UU XML 00 E lt H 1 gt 200000947 lt H 1 gt 000 29909644 D 0 0 gt 00 0000 00 000 0000 00 000 00 0 0 00 0 0 00 9 00000 000 000 0000 0 0 0 000 0 0 0 0000 00 00000000000000000000 HOHUUUAMEL JU 2 100 0000 14 2 3 3 SOAP Single Object Access Protocol O Vb 00012 300 00 00 00 0 0 00 00 00000 0 0000
109. 077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 ifndef FACELIBRARYS define FACELIBRARYS ifndef WINVER Windows 95 WindowsNT4 define WINVER 0 0400 000 Windows 98 O Windows 2000 00 00000 00 0 00 00 0 0 0 0 0 0 0 0000 0 U Ll JZendif ifndef WIN32 WINNT Windows 4000000000 define WIN32 WINNT 0 0400 Windows 2000 7000 D endif ifndef WIN32 WINDOWS Windows 968 1 E E E E E E 00 define WIN32 WINDOWS 0 0410 0 0 Windows Me Q OOOO endif ifndef WIN32 IE 1 400000000000000 define_WIN32_1E 0 0400 7000 IE 50 endif define ATL APARTMENT THREADED define ATL NO AUTOMATIC NAMESPACE define_ATL_CSTRING_EXPLICIT CONSTRUCTORS 0 D D CString 110 4108 4109 4110 4111 4112 4
110. 113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 00000000000 ULL ATL ALL WARNINGS Active Template Library EL 00000000000 V include atlbaseh include atl com h nclude atl win h nclude lt atitypes h gt ATL CIMAGE LH EH B LE HB OE E E EE E E OE C LI include atlctl h2 nclude atlhost h zindude lt aticoll h gt CATLLIST E B E D D nclude atlimage h2 ATL CIMAGE 1 LH EL L 0 include lt atisafeah gt CCOMSAFEARRAY EH 000 using namespace ATL ATL ED E E E E E E E E EH ADO ActiveX Database 00 0 0 MICROSOFT DB import d Program Common Files System ADO msadol15 dll Y no namespace rename E EndOfF ile include lt icrsint hn gt include lt stdio h gt mage F include include vfw h include highgui h define Cl mage ATLIMAGE F 7 OPENCV_INCLUDE 1 111 4145 4146 4147 4148
111. 26 2327 2328 2329 2330 2331 m_imgs RemoveAl lerrorText AppendF ormat Y n try 00000000000 m_pRecSet_img gt M oveF irst while m_pRecSet_img gt E ndOfF ile 000 100 5 long m_pRecSet_img gt Fields gt tem PERSONID gt GetValue m_PersonlD lerrorText AppendF ormat _T d m_pRecordSet gt F 45 tem PE RSONI D gt GetValue m_pRecSet_img gt EndOfF ile m pRecSet gt oveN ext continue hr ImageDownLoader m pRecSet img IMAGE image FAILED hr errorText AppendF ormat T 0 m pRecSet img 2M oveN ext continue 62 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 if pRecSet gt m pRecSet img gt MoveN ext 0000000 v pl mage new CPersonl pl mage gt SetM odified false pll mage src_data image gt Getl mage pl mage Getl mage CopyOf src data HUD image NULL 1 delete pl
112. 263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 for i 0 i 256 i rob il rgbBlue rgb i rgbGreen rgbli rgoRed unsigned char i 000000000 000000 hdc HDC GetDC NULL LPBYTE pBits HBITMAP m_hBitmap CreateDIlBSection hdc BITMAPINFO bM apHead DIB RGB COLORS VOID amp pBits NULL 0 ipl ConvertToDIBSep image bMapHead char pBits IPL DITHER NONE IPL PALCONV NONE 10000000 HGLOBAL hMem1 GlobalAlloc dataSize hr zCreateStreamOnHGlobal TRUE amp imageStream CI mage imagel nfo new imagel nfo gt Attach m_hBitmap if FAILED hr errorText AppendF ormat _T ERROR IN imageStreamY n hr imagel nfo gt Save imageStream Gdiplus l mageF ormat PEG imagel nfo gt Detach DeleteObject m hBitmap 1 ree hM em BYTE SafeArray 77878 TARGET 77864 NOW SAFEARRAY FAR m pl mageData SAFEARRAY BOUND rgsabound 1 rgsabound 0 Lbound 0 34 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 132
113. 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 UD Cvl mgObsl nfo obs info array lt 005 info GetData CPersonl mage personi mg POSITION pos m imgs GetTailPosition for inti 20 i num img i BE EE BERE HE HS D BH d 8 LIMIT RECOGNIZE 1000 POSITION pos m imgs F indl ndex i mage ipl m_imgs GetAt pos gt Getl mage Getl mage new height new width CPersonl mage personl mg m imgs GetPrev pos pli mage ipl personl mg 2Getl mage Getl mage 0 0 000000 000000 bool doRescale false int new height O int new width 0 if parent gt m_useWidth doRescale true new width parent gt m_scaleWidth if parent gt m_useH eight doRescale true new_height parent gt m_scaleH eight ferrorText A ppendF ormat T new height d n errorText AppendF ormat T new width d n 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2960 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 ferrorText AppendF ormat T I mage Height 0 m imgs GetAt pos Getl mage H ei ght continue imageData gt GetH e
114. 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 hmm gt num states if hmm level 0 for int j 0 j lt hmm gt num states CvEHMM State state amp hmm u statelj source gt AppendF ormat T 96s 9odX lt State gt j source gt AppendF ormat _T s d N lt NumMixes gt state gt num_mix float mu state gt mu inv var state inv var int m 0 m state num mix m 4 1 lt gt 1 00000 source gt AppendF ormat T 9es d 905 lt gt m lt Weight gt state gt weight m source gt A ppendF ormat _T s n lt M ean gt for int k 20 k m vectSize k source gt AppendF ormat _T f m m vectSize k nverted Deviation source gt A ppendF ormat T X n source gt A ppendF ormat T 9osX 4 Deviation for 0 k lt m_vectSize k source gt AppendF ormat _T 9 inv var m m vectSize k 101 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 source gt AppendF ormat _T n source gt A ppendF ormat T s lt ogVarVal gt s
115. 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 float malloc state gt num_mix m vectSize sizeof float state gt mu state gt inv var inv_var for int m 0 m lt state gt num mix m Int temp int resToken source Tokenize curPos sscanf resToken 5 d 5 temp char amp temp int temp char amp state gt weight m assert temp int m lt Mean gt l 00000 062 0 resToken source Tokenize n curPos resToken source Tokenize X n curPos for int 20 k lt m_vectSize k If curPos2 lt resToken GetL ength resToken2 resToken Tokenize curPos2 sscanf resToken2 f mu m m vectSize k dnverted Deviation 0100000000000 curPos2 0 resToken source Tokenize n curPos 106 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 resToken source Tokenize n curPos for 0 k lt m_vectSize k curPos2 lt resToken GetL ength resToken2 resToken Tokenize curPos2 sscanf LPCSTR resToken2 f inv var m m k
116. 410 000 0 00 0 00 0 0 00 0 0 0 0 00 410000000000000000000000000000000000 3 3 1 2 3500 aun 000000000000 41242 0 0000000000000000 00000000000000000 OEP 00000000000000000000000000000 Cookie
117. 41000000000000000000000000000000000000 HOU 000 HOU 3 0 00 18 2100 00 WEB O T E 4 20 00000000000 FacelibraryQOOOOUO00U00 0000000000000000000000000000000 0000000000000000000000 4201000
118. 460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 LPCSTR m_userName destination AppendF ormat T pwd s LPCSTR m_passWord return destination HRESULT CBasel nfo openDB m pConnection _ConnectionPtr ADODB Connection _bstr_t strMissing L HRESULT hr F SQL Server 00000 00000 00000 v CString destination makeup_destination try TESTHR m pConnection Createl nstance ADODB Connection m pConnection 2Open LPCSTR desti nation strMissing adConnectU nspecifi ed return S OK catch com error amp e hr errorSQLInside errorSQL Provider m pConnection return hr ee he ckiki Tia k hon 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 5 CFaceBase class ED ENG EP ED TEL Te EE ED HOUUUUO AAA AAC AER
119. 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 label setF ont F ont getF ont Font SIZE MEDIUM add w label w listbox new ListBox ListBox SINGLE SELECT 000000 w listbox setF ont Font getF ont Font SIZE MEDIUM add w listbox 1 setSoftK eyL istener this setK eyL istener this setComponentL istener this Itl uuiuiuiuliiiill public void setValue String data StringTokenizer St new StringTokenizer data personList new PersonData 3 for int 0 i 3 amp amp st hasM oreTokens i personL ist i new PersonData st nextToken public void showValue OUUU for inti 20 i 3 i w_listbox append personL ist i N ame 131 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 w_listbox append personL ist i Bel ong 0 0 691000 void showPersonl nfo int key String args new String 3 args 0 http localhost K SOAP 2 args 1 getK ey args 2 nteger toString key Application getCurrentA pp launch lApplication LAUNCH LI args
120. 5 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 m_pConnection gt rrors gt Count gt 0 errorText AppendF ormat _T Provider Error r n long nCount gt rrors gt Count for long 0 lt nCount i pErr m gt rrors gt Getl errorText AppendF ormat T Error number x 5 pErr gt N umber LPCSTR pErr gt Description HRESULT CopySafeArrayToHMem SAFEARRAY pvSafeArray HANDLE hMem SAFEARRAY psa pvSafeArray ULONG ulSize psa gt rgsabound 0 cElements if ulSize 0 pvSafeArray NULL errorText AppendF ormat _T TROUBLES n7 return E POINTER hMem GlobalAlloc ulSize if hMem NULL 28 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 errorText AppendF ormat T 5 n AttachSafeArrayToHM em MEMORYSHORT return E OUTOFMEMORY 0 ATTACH 0 0 byte pb HRESULT hr SafeArrayAccessData psa void amp pb if
121. 5 1326 1327 1328 1329 1330 1331 1332 Final n rgsabound 0 cElements dataSize 1 m pl mageData SafeArrayCreate VT UI 1 1 rgsabound if m pl mageData NULL return NULL byte pb hr SafeArrayAccessData m pl mageData void amp pb if FAILED hr return NULL else if pb return NULL byte pb2 byte GlobalL ock hM em1 memcpy pb pb2 dataSize GlobalU nlock hM em1 GlobalF ree hM em1 SafeArrayU naccessData m pl mageData mage test mage hr SafeArrayToCvvl mage m pl mageData mage if FAILED hr errorText AppendF ormat _T ERROR IN return m pl mageData 00000 8000000000000 void Normalizel ntensity l mage image int level CvSize roi Int step uchar img 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 ASSERT level gt 0 amp amp level lt 255 cvGetl mageRawData ipl_image amp step int width roi width int height roi height int mean int cvMean image normalize to 128 for int 20 i height i img sstep for int j 20 j width j
122. 56 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 m pRecordSet Fields 2Item DCT COEFF_Y gt PutValue m obs Size height 0 0 m_pRecordSet gt F ields gt tem NUM_ MIXTURE 2PutValue m m ixnum 0 m_pRecordSet gt F 45 tem SUPER_ STATES 2PutValue m st num 0 for int 1 i lt 0 i temp AppendF ormat _T d m_stnun i m_pRecordSet gt F ields gt l tem STATE gt PutValue variant t LP CSTR temp if m useWidth TRUE m_pRecordSet gt F ields gt tem FlXED_WIDTH gt PutValue m scal eWidth if m useHeight TRUE m pRecordSet F ields gt tem FIXED HEIGHT 2PutValue m sc aleH eight if m suppress intensity m pRecordSet gt F ields gt tem SUPPRESS INTENSITY 2PutVal ue 1 m_pRecordSet gt U pdate catch com error amp e 47 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 errorSQL Provider m pConnection return errorSQLI nside CoU ninitialize return S OK
123. 6 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 77 BOOL m useWidth 00001 LU DEELU LE LIE LI E BOOL m useHeight int m scaleWidth int m scaleH eight protected CBasel nfo basel nfo F EE ee ED T CPersonList m_ base 0000000060 CSize basel mgSize 0000000 bool m modified int m trained index mage m trained image nS bool image load Bg class CPerson public CPerson CF aceBase parent virtual CPerson void SetN ame const CString amp name HUU FOO void SetPersonl D long Personl D const CString amp GetName return m_name long GetPersonl D return m_PersonlD 20 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 HRESULT Load _ RecordsetPtr m pRecordSet void Unload HRESULT Save _RecordsetPtr m_pRecordSet CPersonl ist amp mgList return m_imgs HRESULT mageDownL oader _RecordsetPtr m pRecordSet LPCSTR dataROW Cvvl
124. 61 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 else image gt Getl mage mageROI ipl RectToCvRect rect Int code 1 bool doRescale false int new height O int new width O if m useWidth doRescale true new_width m scaleWidth if m useH eight doRescale true new height 2m scaleH eight Ihi Buuumiuutuututututt mage scaled if doRescale i Im ULL if new width i new width pl gt roi gt height else if new height i new height pl gt roi gt width new height new width ipl gt roi gt width ipl roi height 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 ipl scaled cvCreatel mage cvSize new width new height IPL DEPTH 8U 1 cvResize ipl scaled ipl scaled width ipl width scaled height ipl height CV INTER else scaled ipl SEE EO EB TET AS Fe ETE UU CvSize cvroi cvSize scaled roi scaled roi 2width scaled gt width scaled roi scaled 2roi height scaled
125. 7 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 m base AddTail person m pRecordSet 2M oveN ext catch com error amp e 00 errorSQL Provider m pConnection return errorSQL I nside P IH B ninitialize return S OK void CFaceBase U nload Save save_contig 006 00600 000 0 0 0 0 while base sE mpty CPerson person m_base RemoveH ead delete person a LL HRESULT CFaceBase Save _ConnectionPtr m pConnection 51 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 HRESULT hr bool is eof false Colnitialize NULL 000000000000000000000000000 If ISModified i try 00000000000 hr basel nfo openDB if FAILED hr return hr _ConnectionPtr m_pCon
126. 726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 source gt AppendF ormat _T s d n lt NumSuperStates gt m hmm num states source gt AppendF ormat T 96s lt NumStates gt for int O i m hmm num states i source gt A ppendF ormat _T d m hmm gt u ehmm i num states source gt AppendF ormat _T n source gt AppendF ormat _T s lt N umM ixtures gt for i 20 i m hmm num states i CvEHMM ehmm amp m_hmm gt u ehmn i for int j 20 j ehmm num states j source gt A ppendF ormat T 96d ehmm u statelj npum mix source gt A ppendF ormat _T n source gt A ppendF ormat _T 905 Jed n lt VecSize gt m vectSize 0000 lerrorText AppendF ormat T 96s d lt 2 gt m_vectSize return false CvEHMM hmm m hmm for i 0 i m hmm num states 1 i if hmm level 0 source gt A ppendF ormat _T s n BeginE mbeddedH M M gt else source gt A ppendF ormat T s BeginE xternal H M M gt source gt AppendF ormat T 9es d n lt NumStates gt 100 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757
127. 8 255 128 RGB 128 255 255 RGB 0 128 255 RGB 255 128 255 RGB 255 0 0 RGB 255 128 0 RGB 0 12 9 0 0 0 0 255 255 129 74 2776 2 77 2778 2779 2780 2781 2782 2783 2784 2785 2786 2 87 2 88 2 89 2 90 2 91 2 92 2 93 2 94 2 95 2 96 2 97 2 98 2 99 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 RGB 255 0 128 Iti B utuuuuututututututtt const int max iterations 80 MOUUUUUOUUUUUUUUUUUUUO CF aceBase parent GetParentBase if parent NULL j UUUUUUUUUUUUOU return CI mage amp segmentation parent gt GetTrainedl mage segmentation Create 320 320 24 1 DCT Int vect_len parent gt m_obsSize height parent gt m obsSize width if parent gt m suppress intensity vect_len MMM 00000000000 CvEHMM hmm m hmm Getl ppiEHMM if hmm m hmm CreateHMM stnum parent m mixnum vect len hmm m hmm Getl ppiE HM M int num_img_real m_imgs GetCount int num img 0 if num img real gt RECOGNIZE num img LIMIT RECOGNIZE else num img num img real CAtlArray mgObsl nfo gt obs info obs info SetCount num img 75 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824
128. 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 Intel License Agreement For Open Source Computer Vision Library Copyright 2000 Intel Corporation all rights reserved Third party copyrights are property of their respective owners Redistribution and use in source and binary forms with or without modification are permitted provided that the following conditions are met Redistribution s of source code must retain the above copyright notice this list of conditions and the following disclaimer Redistribution s in binary form must reproduce the above copyright notice this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Thename of Intel Corporation may not be used to endorse or promote products derived from this software without specific prior written permission This software is provided by the copyright holders and contributors as 15 and any express or implied warranties induding but not limited to the implied warranties of merchantability and fitness for a particular purpose are disclaimed n no event shall the Intel Corporation or contributors be liable for any direct indirect incidental special exemplary or consequential damages including but not limited to procurement of substitute g
129. 981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 if w param Display KEY 3 showPersonlI nfo ist 2 key public void keyReleased Panel w panel int w_param PET KSOAP2 java 2004 01 19 05 36 00 00 000 000000000000000000000000000 MBPS HEY EE ET EE TEE BEBE EP EE ELE ETE import java io import java util import com nttdocomo io LI import com nttdocomo ui import org ksoap import org ksoap transport import org ksoap marshal import org kobjects user import org kobjects serializati on public dass KSOAP2 extends Application 134 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 String w_url http localhost Webservicel Servicel asmx String ww public void start Itiu uiuliiuiuiuiutiliiiiiututibiit Lr KSOAP2 new KSOAPO2 000000000000000000000000 Long data new ong L ong parseL ono l A pplication getCurrentA pp getP arameter getK ey
130. CString amp DB const CString amp USER const CString amp PASSWD 00000 00 0000 PROVIDER GetLength 0 SOURCE GetLength DB GetLength 0 USER GetLength 0 return CTL E INVALIDPROPERTYVALUE m Provider PROVIDER 37 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 m DataSource SOURCE m dbName DB m userName USER m passWord PASSWD return S OK 00000000 HRESULT CBaselnfo SetTABLEInfo const CString amp info const CString amp image const CString amp config info GetLength 0 image GetL ength 0 config GetLength 0 return CTL_E_INVALIDPROPERTY VALUE m configBase config m infoBase info m_imageB ase image return S OK TH CString CBasel nfo makeup destination CString destination desti nation AppendF ormat T Provider J6s LPCSTR m Provider destination AppendF ormat T Data Source s LPCSTR m_DataSource destination AppendF ormat T Initial Catalog s LPCSTR m_dbName destination AppendF ormat T User D s 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1
131. ClassM classM ap Sends the requestE nvelope and fills the responseE nvelope nterruptedl OE xception if transport was closed async exception OE xception if an error occurs public void call throws IOException 4 ByteArrayOutputStream bos new ByteArrayOutputStream XmlWriter xw new XmlWriter new OutputStreamWriter bos String ww name requestE nvelope write xw xw flush bos write X r bos write n byte requestData bos toByteArray bos null xw null requestDump debug new String requestData null responseDump try MTML 00 0000 connection HttpConnection Connector open url URLEncoder encode ww name Connector RGEAD WRITE true connecti on setRequestM ethod HttpConnecti on P OST 15 5847 connecti on setRequestP roperty Content Type text xml 5848 charset Shift ISX rx nSOAPAction soapAction r n 5849 os connection openOutputStream 5850 5851 SOAP 1 E B E EE DO B LET LU 5852 os write requestData 0 requestData length BASE64 5853 5854 5855 os flush removed in order to avoid chunked encoding 5856 os close 5857 requestData null 5858 connecti on connect 5859 connected true 5860 5861 5862 recei ve 5863
132. End Function 00060 000 0 0 0 Private Function PersonWriter ByRef key Long ByRef data As Human As String Dim comStringAs String SELECT FROM INFORMATION Dim infoString As String infostring WHERE INFORMATIONID infoString key ToString comString infoString WHERE PERSONID 1 or PERSONID 4 Dim dSet As DataSet dSet DBLOADE R comString INFORMATION DataRow 100000000800 dSet Tables I NFORMATI ON Rows 0 tem data name dSet Tables I NFORMATI ON Rows 0 I tem data belong dSet Tables I NFORMATION Rows 0 Itemi 0 0 2 116 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 data relation dSet Tables INFORMATION J Rows 0 tem 0 0 data address dSet Tables INFORMATION Rows O tem 0 0 0 0 data tel 4 a it PersonWriter DBUPLOADE R dSet INFORMATION End Function Private Function PersonLoader ByRef key As Long As String QUUOUUUOUO Dim comString As String SELECT FROM INFORMATION Dim infoString As String infoString WHE
133. F orH M M ipl scaled normalized image parent gt m_suppress intensity float observations float malloc num_obs height obs width vect_len l sizeof float cvlimgToObs DCT normalized image ipl scaled observations parent gt m_dctSize parent gt m_obsSize parent gt m delta ExtractDCT observations info gt obs num_obs height num_obs width vect_len free observations else cvimgToObs DCT normalized_image ipl scaled info gt obs parent gt m_dctSize parent gt m_obsSize parent gt m delta if doRescale 78 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 cvReleasel mage scaled cvReleasel mage amp normalized image cvU niforml mgSegm info hmm MMM 1 1 B HL EL BL B HL EE B BH EE 7E HE E nitMixSegm obs info array img hmm bool trained false float old likelihood 0 int counter O Iti B UU while trained amp amp counter lt max iterations counter Int j segment images for j 0 lt 1 j pll mage segm segmentati on Getl mage mgObsl nfo obs lt lt 005 info arrayl j int counter 0
134. L dll IPLao dli IPL O MgdFindFaceLibrary oragma once PO include stdafx2 h include facebase h 00000000 000000000000000000000 using namespace System using namespace System Runtime nteropServi ces using namespace FACE BASE 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 namespace F aceLibrary3 public gc class indF aceLibrary private L We FACE BASE CF aceBase pDataBase O0 0 O CFacegase O EU U LU DU l System String errorTextF ace i UL public BD PE GB BE B EL EP ED BE 7 M gdF indF ibrary pDataBase FACEBASE CF aceBase BOOL Load void BOOL Save void BOOL Unload void BOOL Load_Config void BOOL Save Config void BOOL nfo System String Provider System String Source System String DB Name System String UserName System String PassWord BOOL SetTABLEI nfo System String info System String image System String config BOOL errorReport System String errorText BOOL
135. MP gt PEG HL H BEL HL BO B 7E 7B 7 7T DU SAFEARRAY SafeArrayF romCvvl mage Cvvl mage newl mage CComPtr lt Stream gt imageStream p 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 HRESULT hr Int i mage image newl mage Getl mage if image imageSize lt 0 return NULL int dataSize gt 512 sizeof RGBQUAD 256 sizeof BITMAPINFOHEADER 14 HGLOBAL hM em GlobalAlloc dataSize iff hMem NULL errorText AppendF ormat _T s s n AttachSafeArrayToHM em MEMORYSHORT return NULL BITMAPINFOHEADER ead BITMAPINFOHEADER GlobalLock hM em I Ui uuu uuu BITMAPINFOHEADER dibh BITMAPINFOHEADER bM apH ead RGBQUAD RGBQUAD char bM apH ead sizeof BITMAPINFOHEADER MOUUUUUUUUUUUUO dibh gt biSize sizeof BITMAPINFOHEADER dibh gt biWidth image gt width dibh gt biH eight image gt height dibh gt biPlanes 1 dibh 2biBitCount 8 dibh gt biCompression dibh gt biSizel mage dataSize dibh gt biClrU sed 256 dibh gt biClrl mportant 0 mE e 1259 1260 1261 1262 1
136. OOL indF ibrary errorReport System String errorText CString errorTextE dit pDataBase gt reportE rror ferrorTextE dit error TextF ace if errorTextE dit SEmpty errorTextE dit All is fine System String pin errorTextE dit AllocSysString errorText 1 gt errorText errorText gt nsert 0 errorTextE dit return true 223 224 226 227 228 229 230 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 252 253 254 255 257 258 259 BOOL ModFindFaceLibrary Addl mage System l nt64 PersonID System B yte imageData BOOL loaded loaded TRUE L1 LI D H B FAESE D D EL E U D LI EH uuuututututu using namespace FACEBASE HRESULT hr 5 OK CRec CString errorTextH ere errorTextHere AppendFormat _T LOADED d n if loaded 0 pDataBase gt Addl mage Personl D NULL true return true lY DO D BU mage i mage new mage hr LoadCvvl mage imageData image amp rect FAI LED hr return false pDataBase gt Addl mage Personl D image
137. ORMATION NewRow dRow l tem data name dRow Item PERSONID key dRow l tem O data belong dRow l tem 2data relation dRow l tem 2data address tem data tel dSet Tables I NFORMATION Rows Add dRow DBUPLOADE R dSet INFORMATION End Function 0000000000000000000000000000000 HUUUDUUDUUUL 1 5 5 9 000000000 Private Function SetPersonOnPerson As Long 000 59000000000 Dim i As Integer SetPersonOnPerson 1 QUUOUUUUUO Dim dSet As DataSet DBLOADER SELECT FROM PERSON PERSON 000 bateRow 11 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 Dim dRow As DataRow dSet Tables PERSON NewRow dRow ltem NAM E String dSet Tables PERSON Rows Add dRow DBUPLOADE R dSet PERSON QUUOUUUUO dSet DBLOADER SELECT FROM PERSON ORDER PERSONID DESC PERSON SetPersonOnPerson dSet Tables PERSON Rows 0 tem PERSONID
138. RE INFORMATIONID infoString key ToString comString infoString WHERE PERSONID 1 PERSONID t B EB DEO LI D Dim sqlAdpt As SqlDataAdapter New SqlDataAdapter Dim dSet As DataSet dSet DBLOADER comString INFORMATION DataSet L1 D L1 D E L PersonLoader dSet Tables I NFORMATI ON Rows 0 I tem ToStrino PersonL oader PersonLoader dSet Tables I NFORMATION Rows 0 I tem T ToString PersonLoader PersonLoader dSet Tables I NFORMATION Rows 0 I tem T ToString 119 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 PersonLoader PersonLoader dSet Tables I NFORMATI ON Rows 0 I tem ToString PersonL PersonLoader dSet Tables I NF ORMATI ON Rows key l tem HH E ToString End Function 4uuiutiuiliuilututibiiliiltiiit Private Function dataL oader ByRef person As Long As String Dim result 3 As String Dim i As Integer For i O To 2 result i Nothing Next Dim comString As String SELECT PERSONID FROM INFORMATION DiminfoStringAs String WHERE For i O To 2 infoString PERSONID infoSt
139. Rect 0 0 0 0 key NULL likelihood 0000000 0000000000000000000 CString text1 text2 for int i 0 i lt REGNZ NUMBER i text1 AppendF ormat _T d key i text2 AppendF ormat _T f likelihood i result text1 AllocSysString probresult text2 AllocSysString return true BOOL M gdF indF aceL ibrary RecognizeP erson2 System B yte imageDatal System l nt64 result System Single probresult 1H HE BU 00000 00 0 0 0 0 7E EE L using namespace FACE BASE _9 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 long key REGNZ 1 float likelihood REGNZ NUMBER 1 mage i mage new Cvvl mage CRec rect 2new CRect HRESULT hr hr LoadCvvl mage imageData image rect if FAI LED hr return false OOUUUUUO pDataBase gt RecognizePerson image CRect 0 0 0 0 key NULL likelihood arshal Copy key result 0 REGNZ NUMBER M arshal Copy likelihood probresult 0 REGNZ NUMBER41 return true
140. Set gt Open variant t IDispatch m_pConnection true m useWidth FALSE FixedWidth O m_useHeight FALSE FixedH eight 0 Suppressl ntensity FALSE f EB E g m pRecordSet 2M oveF irst dctSize height LPCSTR basename adOpenStatic ockReadOnly adCmdtT able m_pRecordSet gt F ields gt tem WI NDOW HEIGHT 2GetValue dctSize width m_pRecordSet gt F ields gt tem WINDOW_WIDTH gt GetValue delta width m_pRecordSet gt F ields gt tem DELTA_X gt GetValue delta height m_pRecordSet gt F ields gt tem DELTA_Y gt GetValue obsSize width m_pRecordSet gt F ields gt tem DCT COEFF_X gt GetValue obsSize height m_pRecordSet gt F ields gt tem DCT_COEFF_Y gt GetValue 00 m_pRecordSet gt F ields gt l tem NUM_MIXTURE gt GetValue numbers O m pRecordSet F ields 21tem SUPER STATES 2GetValuer 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 CString tempString m_pRecordSet gt F ields gt tem STATE 2GetValue CString resToken int curPos 0 resToken tempString Tokenize curP os for int
141. _configBase _ConnectionPtr get_ConnectionPtr return m pConnection protected UBuuutut CString m Provider ODBC 0 000000 SQLSERVER MYSQL CString m DataSource 0000000000000 CString m dbName CString m_userName B uultu CString m passWord utl CString m infoBase CString m_imageBase CString m_configBase _ConnectionPtr m pConnection Itd B uuuulutt dass CF aceBase public CF aceBase virtual CF aceB ase 000 HRESULT SetDBI nfo const CString amp PROVIDER 16 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 const CString amp SOURCE const CString amp DB const CString amp USER const CString amp PASSWD HRESULT SetTABLE Info const CString amp info const CString amp image const CString amp CString nfoBase 4 return nfo B aseN ame CString Getl mageB ase return basel mageB aseN ame HEB int SetParams Q 00000000000000 CvSize dctSize CvSize obsSize CvSize delta MMM params int states int mix
142. abel 5161 5162 public mypanel finish String data 5163 1 5164 w label new Label data 5165 5166 label setF ont Font getF ont Font SIZE LARGE 5167 add w label 5168 5169 5170 setSoftK eyL istener this 5171 5172 5173 2000 SoftkeyListener 5174 5175 VEL Na EISE 5176 5177 public void softK eyReleased int param 5178 5179 MUUOUUUU 5180 param this SOFT KEY 2 139 5181 terminate 5182 if param this SOFT KEY 1 5183 5184 String args new String 1 5185 args 0 http localhost K SOAP jam 5186 5187 Application getCurrentA pp launch lApplication LAUNCH 5188 LI args 5189 5190 5191 5192 public void softK eyPressed int param 5193 1 5194 5195 5196 5197 5198 5199 5200 00 000000000000000000000000 5201 5202 dass mypanel extends Panel 5203 implements ComponentListener SoftK eyListener 5204 5205 MUOQOUUUODUUODO 5206 private Label w_label w label2 5207 private Button w button w button2 5208 private ListBox w listbox 5209 private TextBox w textbox 5210 PersonData list 5211 5212 0000 00000000000000 5213 public mypanel 5214 5215 5216 w label
143. ap enhydra org KSOAP COM NETO J 3 1 MSDN O O J J http www microsoft com japan msdn CHION OUOU HEU COM OHH EHE Dr GUI Microsoft Visual 0 0 0 0 0 0000 3 2 http www 02 246 ne jp tor utk cxx file neader html 3 3 000000000 C0000 http www utj co jp xml dev dom dxdom html 3 4 00000 Framework 0 00 B http www atmarkit co jp fdotnet technol ogy idnfw11 index index html Sl DATED DATE BIG 3 61 00000000000 0000000 VISUAL CH 000000000000 20030 500 3 7 0000000 590 000 0000 00000 20010 1900 ASPNET 4 1 Visual http wWww sis otsuma ac jp tsutsumi lecture graphi cs 4 2 http www mi crosoft com japan msdn net vbnetref 4 3 Multi Web UI D D D D D C CI CI CI D C 0 ASPNET 1 I I CI L http ww gotdotnet com japan team fieldevangelist ryon
144. ceLibrary3 h 7 NET 1000000000100 MgdFindF aceLibrary j 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 include stdafx h include F aceLibrary3 h namespace ibrary3 BOOL MggdFindF aceLibrary L oad void return pDataBase gt L oad return true 7 BOOL indF aceLibrary Save void return pDataBase gt Save return true 000000000000000000000000 BOOL ModF aceLibrary U nload void pDataB ase gt U nload return S OK 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 BETTE
145. cture catch Exception ie Interrupted System out println LH 0000 127 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 try MOUOQUOUUUUUUUUUUUO M edial mage w_media M edi aM anager getl mage resource test041 jpg image in Connector openl nputStream resource test041 j pg System out println L 000 w media use w_image w_media getl mage catch Exception e System out printIn L 000000000000 System out printiIn OF D OQ e getM essage return image in MUUUUOUUUUUUUUO public bytel Loadl mage InputStream w 1 byte w data new byte 1 Iti B uuuuuututututututLtt try 1 w data new byte 5000 w in read data catch IOException 128 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 System out printin L 000 0 return w_data Iti uuiuiuiutiiiiiutl public void showResult String data Ituiutiuututt mypanel w panel mypanel w panel setSoftL abel w panel SOFT KEY 1 pa
146. d showValue w_listbox append list Name w_listbox append O list Belong w_listbox append O list Relation listbox append TEL list TEL w_listbox append O list Address 2000 SoftKeyListener EE TEN ETE BITE EE EB EET E P EAS public void softK eyReleased int param MUUUUUUU if param this SOFT KEY 1 mypanel finish w panel new mypanel finish O00 w_panel setSoftLabel w_panel SOFT KEY 1 w panel setSoftL abel w panel SOFT KEY 2 Display setCurrent w panel if param this SOFT KEY 2 KSOAP2 myapp new KSOAP2 142 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 String value myapp PutPersonl nfo w url list if value equals OK Itu uiuiuiutut mypanel finish w panel new mypanel finish 0 w panel setSoftL abel w panel SOFT KEY 1 w panel setSoftL abel w panel SOFT KEY 2 Display setCurrent w panel public void softK eyPressed int param ComponentListener 000 public void componentAction Componen
147. en Source Computer Vision Library Copyright C 2000 Intel Corporation all rights reserved Third party copyrights are property of their respective owners Redistribution and use in source and binary forms with or without modification are permitted provided that the following conditions are met 96 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 Redistribution s of source code must retain the above copyright notice this list of conditions and the following disclaimer Redistribution s in binary form must reproduce the above copyright notice this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution The name of Intel Corporation may not be used to endorse or promote products derived from this software without specific prior written permission This software is provided by the copyright holders and contributors as is and any express or implied warranties including but not limited to the implied warranties of merchantability and fitness for a particular purpose are disclaimed n no event shall the Intel Corporation or contributors be liable for any direct indirect incidental special exemp
148. eturn hr errorText AppendF ormat l Xn DIEI m_pRecordSet gt M oveF irst while m pRecordSet E ndOfF i CPerson person new CPerson this Personl D m_pRecordSet gt GetCollect L Person 49 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 person gt m name m pRecordSet gt GetCollect L N ame CString temp m_pRecordSet gt GetCollect L HMM if temp CompareNoCase NULL 0 amp amp 15 mpty person gt m hmm new CContEHMM if person m hmm L oad LPCSTR temp person m trained true errorText Append person m hmm gt error Text if image load true person gt Load m pRecordSet image person gt SetM odified false qj person m trained true if person m lt 0 delete person errorText AppendF ormat _T FAILED ADD PERSON TO CPERSONLIST Xn continue 50 1888 1889 1890 1891 1892 1893 1894 1895 1896 189
149. ew PersonData showValue add w listbox label2 Label O Xn label2 setF ont Font getFont Font SIZE MEDIUM add w label2 w_textbox new TextBox 32 TextBox DISPLAY ANY w_textbox setF ont F ont getF ont Font SIZE MEDIUM add textbox setSoftKeyListener this setComponentListener this GUI LI 0 150 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 public void setValue long key String data list new PersonData key data public void showValue w_listbox append O list Name w_listbox append O O list Belong w_listbox append O list Relation listbox append TEL list TEL w_listbox append O list Address 2000 SoftKeyListener Be 000000000000000000000000000 LEE EE EE EE EE EE EE EE EE EE EE E public void softK eyReleased int param if param this SOFT KEY 2 PEE BE E
150. executed areturn the result of the soap method gexception IOException if an error occurs y public Object call SoapObject method throws IOException requestE nvelope setB ody method 159 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 soapAction method getN amespace method getN ame AVEB call if responseE nvelope getB ody instanceof SoapF ault throw SoapF ault responseE nvelope getB ody System out printin DO L E D return responseE nvelope getR esult public void call XmllO request Xmll result throws OE xception 1 requestE nvelope setB ody request responseE nvelope setBody result If responseE nvelope getB ody instanceof SoapF throw SoapF ault responseE nvel ope get B ody Closes the connection and associated streams This method does not need to be explictly called since the uderlying connections and streams are only opened and valid inside of the call method Close can be called ansynchronously from another thread to potentially release another thread that is hung up doing network io inside of call Caution should be taken h
151. false errorTextF ace errorTextF gt nsert 0 errorTextH ere AllocSysString return true 06000 60606 00006 0000 0 00 0 0 5 6 260 261 BOOL M gdF indF ibrary RecognizeP erson System B yte 262 imageDatal System String result System String probresult 263 264 265 using namespace FACE BASE 266 267 long key REGNZ NUMBER 1 268 float likelihoodi REGNZ 1 269 mage image new mage 270 271 CRec rect new CRect 272 HRESULT hr 273 274 275 uult 276 hr LoadCvvl mage imageData image rect 277 if FAI LED hr 278 return false 279 280 uU uultu 281 pDataBase gt RecognizePerson image CRect 0 0 0 0 key 282 NULL likelihood 283 284 0000000 0000000000000000000 285 CString text1 text2 286 for int i 0 lt REGNZ NUMBER i 287 288 text1 AppendF ormat _T d 289 text2 AppendF ormat _T f likelihood i 290 291 292 result text1 AllocSysString 293 probresult text2 AllocSysString 294 return true 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
152. h h gt nclude lt float h gt include lt process h gt namespace FACE BASE 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 CStringerrorText NULL H utu tl BE 57 notel inline void TESTHR HRESULT hr if FAILED hr com issue error hr HRESULT errorSQLInside com error amp e e Error 00000000 _bstr_t bstrSource e Source _bstr_t bstrDescription e Descri pti on 000000000000000000 errorText AppendF ormat T Xnlnside Error n errorText AppendF ormat T Code 9o08l x rX errorText AppendF ormat T Code meaning s r n e ErrorM essage errorText AppendF ormat T Source S r n LPCSTR bstrSource errorText AppendF ormat _T Description s r n LPCSTR bstrDescri pti on return e Error 5 void errorSQLProvider ConnectionPtr m pConnection 000000 V ErrorPtr pErr NULL Connection DBMS 000000000 27 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 105
153. i ght pll scaled CvSize image roi cvSize ipl gt roi ipl gt roi gt width ipl 2width ipl 2roi pl gt roi gt height ipl gt height if doRescale 10000000000 if Inew_width new width new height image roi width image roi height else if new_height new_height new width image roi height image roi width Itl utut ipl scaled cvCreatel mage cvSize new width new height DEPTH 80 1 cvResize ipl ipl scaled ipl scaled gt width ipl 2width scaled height ipl 2height CV INTER else scaled ipl LU uut EU 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 CvSize roi wsSize scaled 2 roi ipl_scaled gt roi gt width scaled gt width scaled gt roi scaled gt roi gt height ipl_scaled gt height CvSize num obs CV COUNT OBS amp parent m dctSize amp parent 2m delta obs obs info cvCreateObsl nfo num obs vect len Cvi mgObsl nfo info obs info arrayl i pl mage normalized image cvCreatel mage roi IPL DEPTH 8U 1 N ormalizel mage
154. id eyReleased int param 5519 5520 5521 if param this SOFT KEY 2 5522 termi nate 5523 if param this SOFT KEY 1 5524 5525 String args new String 1 5526 args 0 http localhost K SOAP jam 5527 5528 Application getCurrentA pp launch lApplication LAUNCH 5529 5 5530 5531 5532 5533 public void softK eyPressed int param 5534 5535 5536 5537 5538 ATTI 5539 5540 5541 5542 5543 dass mypanel extends Panel 5544 implements ComponentListener SoftK eyL istener 5545 5546 MUUUUUUUUUOD 5547 private Label w_label w label2 5548 private ListBox w listbox 5549 private TextBox w_textbox 5550 PersonData list 149 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 0 public mypanel Id uuuuutuutiitiiltiilliLt label Label 00 O00 Xn label setF ont F ont getF ont Font SIZE MEDIUM add w label w listbox new ListBox ListBox SINGLE SELECT w listbox setF ont Font getF ont Font SIZE MEDIUM list n
155. ize X n curPos ferrorText AppendF ormat _T LOAD MESSGAE s n resToken2 resToken Tokenize curPos2 for i 20 i num states OJ i if curPos2 lt resToken GetLength resToken Tokenize sscanf resToken2 num states i 1 Ii uuluttutiutultututttitLbrL tL Ll int total states 0 for i 20 i num states 0 i total states num_states i 1 MIXTURE I curPos2 0 source Tokenize Xn curPos 103 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 ferrorText AppendF ormat _T LOAD MESSGAE s n resToken resToken2 resToken Tokenize curPos2 for i O i total states i if curPos2 lt resToken GetLength resToken2 resToken Tokenize curPos2 sscanf resToken2 4 amp num mixli SIZE OQ source Tokenize Xn curPos sscanf resToken 96s d n temp char amp m vectSize MMM m hmm cvCreate2DHMM states mix m vectSize cvCreate2DHMM hmm num states num mix m vectSize if im hmm return false return false
156. l OPENCV IPLa6 dll IPL stdatx h MicroSoft 108 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 III oragma once using lt mscorlib dll gt AMITTIT 0000000 Intel LicenseAgreement 1000 Intel E E E E D LH lt Inte LicenseAgreement 00000000 0000 000 00 00 00 0 0 0 0 0 00 0 0000 00000000000 DELI ULL highgui dll cvaux dll OPENCV PL dll IPLao dll IPL 0 0 5 Active Template Library E E E E E E E E E E E D EH com 000000000000000000 HUUDUDUUU oragma once 000000000 fndef STRICT define STRICT endif 109 4071 4072 4073 4074 4075 4076 4
157. l setSoftL abel w panel SOFT KEY 2 Iti B UULULLUL w panel setValue key data panel showValue 13 5107 5108 Ita UU Dutulutlu 5109 w panel w listbox requestF ocus 5110 Display setCurrent w panel 5111 5112 5113 5114 5115 00000000000 5116 5117 class PersonData 5118 5119 5120 long key 0 Mou 5121 String Name null 5122 String Belong null 5123 String Relation null 5124 String TEL null 5125 String Address null 5126 5127 5128 PersonData long key input String data 5129 4 5130 key input 5131 5132 StringTokenizer St2 new 5133 StringTokenizer data 5134 Name st2 nextToken 5135 Belong st2 nextToken 5136 Relation st2 nextToken 5137 Address st2 nextToken 5138 TEL st2 nextToken 5139 5140 5141 Id U BO LU LL 5142 void setData int key String value 5143 138 5144 switch key 5145 case 0 Name value break 5146 case 1 Belong value break 5147 case 2 Relation value break 5148 case 3 TEL value break 5149 case 4 Address value break 5150 5151 5152 5153 5154 5155 6910000000000 5156 5157 dass mypanel finish extends Panel implements SoftK eyL istener 5158 5159 5160 private Label w l
158. lary or consequential damages including but not limited to procurement of substitute goods or services 1055 of use data or profits or business interruption however caused and on any theory of liability whether in contract strict liability or tort including negligence or otherwise arising in any way out of the use of this software even if advised of the possibility of such damage Intel LicenseAgreement Intel EL EL E L i 00000000000000000000000000000 Intel 00000000 97 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 00000 00 0000 0 00 0 0 0 0 6 0000000000 ContEHMM h 0000000000000000000000 Q ContEHMM D D D 00 highgui dll cv dil cvaux dll OPENCV IPL dll IPLa6 dll IPL LLL a gO nclude stdafx2 h nclude ContEHMM h nclude lt stdio h gt assert h ifdef DEBUG undef THIS FILE static char THIS
159. mage newl mage HRESULT ImageUpLoader RecordsetPtr m pRecordSet LPCSTR datarow Cvvl mage newl mage void Addl mage Cvvl mage import image CRect rect void Removel mage POSITION pos void MoveToTop POSITION pos void SetM odified bool modified true m modified modified if modified m trained false bool IsModified return m modified CF aceBase GetParentB ase 1 return m parent FAMMQOOUUUUUUO void TrainHMM bool IsTrained 4 return m trained 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 84 7 848 849 850 851 void DeleteH nfo void ClearHMM CContEHMM amp public bool m trained long m PersonlD 00000000 1 CString m name 000000 CContEHMM m_ hmm 0 moList m imgs 10000 protected CF aceBase m parent E EPEDELEE bool m modified dass CPersonl mage public
160. map OLE HANDLE m pHandle hr CopySafeArrayToH pvSafeArray if FAI LE D hr return hr fileSize pvSafeArray rgsabound 0 cE ements BMP I CI mage imageData new CI mage hr zCreateStreamOnHGlobal TRUE amp imageStream if FAILED hr return hr imageData gt L oad imageStream 30 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 hr OleLoadPicture imageStream fileSize FALSE IPicture LPVOID amp m PEG if FAILED hr m PEG NULL return hr m pJ PEG gt get_Handle amp m pHandle imageData Attach H BITMAP m pHandle 2 GlobalAlloc GHND fileSize hr zCreateStreamOnHGlobal 2 TRUE amp imageStream2 ImageData gt Save imageStream2 Gdiplus l mageF ormatBMP GlobalF ree hM em imagel nfo gt Save test041 jpg Gdiplus I mageF ormat PEG bitmap colors beginning 00 BITMAPINFO dib pointer to bitmap RGBQUAD rgb pointer to unsigned char data pointer to bitmap data BITMAPINFOHEADER dibh header pll mage img NULL BOOL cloneData false
161. nection basel nfo get_ConnectionPtr CString basename basel nfo B aseN ame _RecordsetPtr m pRecordSet ADODB Recordset TESTHR m pRecordSet Createl nstance uuidof Recordset m pRecordSet 2Open LPCSTR basename variant t IDispatch m pConnection true adOpenStatic adL ockOpti mistic adCmdT able if FAI LED hr return hr basename mageB aseN ame E ae 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 _RecordsetPtr m pRecordSet image ADODB Recordset TESTHR m pRecordSet image Createl nstance 3 uuidof Recordset hr m_pRecordSet_image gt Open LPCSTR basename variant 1 Dispatch m pConnection true adOpenStatic adL ockOpti mistic adCmdrT able FAI LE D hr return hr POSITION pos m_base GetH eadPosition m_pRecordSet gt M oveF irst while true 0000000000000000 CPerson person m_base GetN ext pos if break 000000000 000000 if m pRecordSet E ndOfF 000000000600 hr m_pRecordSet gt AddN ew if FAILED hr
162. nel setSoftL abel w panel SOFT KEY 2 10100 I UUUUDLULULULUL w panel setValue data panel showValue w panel w listbox requestF ocus Display setCurrent w panel MATT T 00000000000 TT class PersonData IA li dubut int key Muu String Name String Belong Itb dubitutut 129 4811 PersonData String data 4812 4813 try 4814 StringTokenizer St2 new 4815 StringTokenizer data 4816 Name st2 nextToken 4817 Belong st2 nextToken 4818 1 4819 key nteger parsel nt st2 nextToken 4820 4821 catch E xception e 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 dass mypanel extends Panel 4832 implements ComponentL istener SoftK eyL istener 4833 KeyListener 4834 4835 4836 private Label w label 4837 private ListBox w listbox 4838 private TextBox w_textbox 4839 PersonData personL ist 4840 int key value 4841 4842 4843 public mypanel 4844 4845 1 4846 w label new Label T O O D ED n 4847 Mou 130 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872
163. ng Relation NULL 5463 String TEL NULL 5464 String NULL 5465 5466 5467 Ida UU DULL 5468 PersonData long key input String data 5469 5470 key input 5471 5472 StringTokenizer St2 new 5473 StringTokenizer data 5474 Name st2 nextToken 5475 Belong st2 nextToken 5476 Relation st2 nextToken 147 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 Address st2 nextToken TEL st2 nextToken 00000 setData int key String value switch key case 0 Name value break case 1 Belong value break case 2 Relation value break case 3 TEL value break case 4 Address value break HTT 6910000000000 TTT dass mypanel finish extends Panel implements SoftK istener i private Label w label public mypanel finish String data w_label new Label data label setF ont F ont getF ont Font SIZE LARGE add w label setSoftK eyL istener this 148 5514 2000 SoftKeyListener 5515 0000000000000 5516 i 517 5518 public vo
164. oSetTABLEInfo info image config if FAILED hr return hr SetM odified return hr A 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 UD Lt HRESULT CF aceBase load_config Colnitialize NULL CvSize dctSize delta obsSize Int value Int numbers 8 int NumM ix int FixedWidth bool m_useWidth Int FixedH eight bool m useH eight bool Suppressl ntensity HRESULT hr nfo openDB if FAILED hr return hr _ConnectionPtr m_pConnection basel nfo get_ConnectionPtr CString temp try CString basename basel nfo ConfigB aseN ame 42 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 _RecordsetPtr m_pRecordSet ADODB Recordset TESTHR m_pRecordSet Createl nstance __uuidof Recordset m_pRecord
165. oods or services Voss of use data or profits or business interruption however caused and on any theory of liability whether in contract strict liability or tort including negligence or otherwise arising in any way out of 25 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 the use of this software even if advised of the possibility of such damage 0000000 Intel LicenseAgreement Intel E E E E E LH L lt 4 Inte LicenseAgreement 1 000000 0000 00 0 00 00 00 0 0 0 0 0 00 0 0000 0 facebase cpp CFaseBase CPerson CPersonl EL E EL DELI DL LI LI highgui dll cvaux dll OPENCV PL dll IPLa6 dll IPL 0000000000000000000 Andude stdab2 h 0000000000000000 include facebase h include direct h 00 00000 00000 00000 000 nclude lt mat
166. owever when using this as a psedu timeout mechanism itis a valid and suggested approach for the motorola handsets oh and it works in the emulator public void reset connected false 160 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 if reader 1 try reader close catch Throwable e reader null if is null try is close catch Throwable IS null If connection 2 null try connection close catch Throwable connection null 161
167. ring person i ToString If i lt gt 2 Then infoString End If N ext comString infoString Dim sqlAdpt As SqlDataAdapter SqlDataAdapter Dim dSet As DataSet dSet DBLOADER comString INFORMATION 120 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 DataSet Dim resultString As String For i O 2 Dim rowSTringAs String rowSTring dSet Tables INFORMATION Rows i tem ToString rowS Tring rowSTring dSet Tables I NFORMATION Rows i tem ToString rowSTring rowSTring dSet Tables l NFORMATI ON Rows i Item PERSONID ToString rowSTring result i rowSTring Next System Text U TF 8E ncoding Convert dataL oader result End Function Private Function DBLOADER ByRef comString As String ByRef table As String As DataSet 000 9 000000000 Conn New 5 5 11191 sqlAdpt New SqlDataAdapter Dim dSet As DataSet New DataSet sqlAdpt SelectCommand N ew Sqi Command With sqlAdpt SelectCommand CommandText comString CommandtType Text Connection 541 End With 121 4515
168. ring ByVal tel As String As String 115 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 0000000600000 Dim data As Human New Dim result As String Dim key As Long data setValue name belong relation address tel key SetPersonOnPerson SetNewPerson PersonSetter key data End Function 0000000000 0000 000 0 000 L Private Function PersonSetter ByVal key As Integer ByRef data As Human As String 000 59 000000000 Dim i As Integer Dim word As String PersonSetter OK 0 Dim dSet As DataSet DBLOADER SELECT FROM INFORMATION INFORMATION 0000000 00000000000 Dim length As Long dSet Tables IlINFORMATION Columns 0 M ength For i 0 To length word dSet Tables INFORMATION Rows 0 Item 0 ToString If word data name Then PersonSetter PROBLEM Exit Function 116 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 End If Next 000 DataRow 10000000000 Dim dRow As DataRow dSet Tables I NF
169. stein D 46045 Oberhausen Rhid Germany All Rights Reserved Contributor s J ohn D Beatty Dave Dash F Hunter Renaud Tognelli Thomas Strang Alexander Krebs Sean McDaniel 00000 000000 060 9 0000000000 0000000 HttpTransport java 0 0000 5 HEB D D U LI L 2004 01 19 05 36 package org ksoap transport 000 import java io import javax microedition io import com nttdocomo net import com nttdocomo io V import org kxml import org kxml io 154 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 Import org kxml parser import org ksoap public dass HttpTransport 1 String url String soapAction SoapE nvelope requestE nvel ope new SoapE nvelope SoapE nvelope responseE nvelope new SoapE HttpConnection connection OutputStream os InputStream is state info private boolean connected false Set to true if debugging public boolean debug String dump of request for debugging p
170. t j 20 j m base GetCount if like array j gt MUUUUOUUUUUUUUO person GetPerson j if remove number 0 int m 0 m lt remove number m if person gt GetPersonl D remove key m break if m remove number continue Itl utut maxl maxind j three first i maxind likelihood i like array maxind like_array maxind FLT for i 0 i lt REGNZ NUMBER i 89 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 person GetPerson three first i key i person gt GetPersoni D return MIN REGNZ NUMBER m_base GetCount Jika kick k kk T i pik iki i i k hee ene PEEVE OE E int CF aceBase SetParams sampling params CvSize dctSize CvSize obsSize CvSize delta MMM params Int states int mix scaling params BOOL use width int width BOOL use height int height BOOL suppress intens BOOL leave hmm alive BOOL dearHMM FALSE
171. t uuid 3678abl SOAP 4 22 lt gt lt soapenv lt soapenv gt amp m zetEst 36 3k lt migetEst gt lt Body Z soapenviEnvelope 16 2 3 4 WSDL UDDI SOAPHUUUUUUWEBOUOUOUUUUUUUU 200000 E E G E Universal Description Discovery and Integration WSDL Web Services Description Language 11 D E LI WSbBLOUUUYDDIGUOUUUYDDIQDUOUOUUUUUUUUUUUUUUD 2 12 WSDL UDDI II ED D E2310 U 0 nsn WebtU Ez amp med H EAOPUEY 24 00000000000 241 00000000000
172. t w_component int w_type int w_param if w component w button2 amp amp w type BUTTON PRESSED String args String 1 args 0 http localhost K SOAP3 jam Application getCurrentA pp launch lApplication LAUNCH LI args 143 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 MOUUUUUUUUUUUO 16910000000000000000000000 w component w listbox amp amp w type SELECTION CHANGED w textbox requestF ocus GUI HH HH B D H E HE 00000 00000000 if w component w textbox amp amp w type TEXT CHANGED i System out println w textbox getText System out println w listbox getSelectedl ndex list setData listbox getSelectedl ndex w_textbox getText w_listbox removeAl showValue w_listbox requestF ocus Display setCurrent this PELL KSOAP3 java 2004 01 19 05 36 00 MOU JU 144 5366 5367
173. tate 2log transition probability matrix O D source AppendF ormat T 9osY n TransP gt prob hmm stransP for int j 20 j hmm num states j for int k 20 k hmm num states k source gt AppendF ormat T 96f prob j hmm num states k source gt A ppendF ormat _T n if hmm level 0 source gt AppendF ormat _T s n lt EndEmbeddedH gt else source gt A ppendF ormat _T s n lt ndE xternalHMM gt hmm amp m hmm u ehmnn i return true OPENCV 102 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 bool CContEH MM Load CString source int num_states 128 int num_mix 128 char temp_char 128 CString resToken resToken2 Iti B BUULULLL resToken curP os2 int curPos O curPos2 O i O j O AMMQOUUUUUL if m hmm cvRelease2DHMM hmm if source I sEmpty source GetL ength lt 5 return false source Tokenize n curPos sscanf resToken 905 d X n temp char num states resToken source Token
174. tring soapAction http tempuri org HttpTransport http new HttpTransport w url soapAction Transport 6 ClassM ap dassMap new ClassMap Soap VER11 IClassMap http setClassM ap classM ap http debug false SoapObject method new SoapObject soapAction SetN ewPerson method addP roperty name String data N ame method addP roperty bel ong soapAction String data B el ong method addP roperty relati on SoapAction String data Relation method addProperty tel soapA ction String data TEL method addP roperty address SoapA tion String data Address ret Object http call method catch E xception e System err println e toStri ng return ret toString 146 5440 5441 5442 5443 5444 LLL 5445 class PersonData 5446 5447 5448 long key 0 IM L 5449 String Name null 5450 String Belong null 5451 String Relation null 5452 String TEL null 5453 String Address null 5454 5455 5456 PersonData 5457 5458 Itl ddubilut 5459 long key 0 5460 String Name NULL Ih 5461 String Belong2 NULL 5462 Stri
175. tw npi 060 N EC 021024 html http www njp co jp Gi ken 1giju2 htm http www face id jp s11 hogo s11 html http www netscience ne jp N etSci ence products software B D 2126 http ascii24 com news inside 2002 08 08 print 637794 html http www zdnet co j p mobile 0309 11 bi oauto html http www mri co jp SOF TWARE SOF T malib html 7 4 HP http www fmworld net biz fmv product hard security fs210 54 eN http www hotwired co jp news news culture story 20010810205 html http www hotwired co jp news news culture story 20020108205 html http www wired com news privacy 0 1848 52563 00 html 8 2 http www nicos co j p infrared about index html DO E E E E E E D 8 3 http www atmarkit co j p fmobile rensai hdml 0O4 hdml OA html 4 a 84 1300000000 000000 00 00 020031 200 10 000000000 1 1 FaceLibrary3 cop h 1 2 FaseBase cpp h HA 13 ContEHMM cpp h 1 4 StdAfx2 h 000000000 15 Stdafx h
176. ublic String requestDump f String dump of response for debugging public String responseDump default constructor public HttpTransport 1 Creates instance of HttpTransport with set url and SoapAction 155 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 aparam url the destination to POST SOAP data aparam soapAction the desired SOAP action for HTTP headers public HttpTransport String url String soapAction 1 this url url this soapAction soapActi on Set the target url url the target url public void setU rl String url this url url set the desired soapAction header field soapAction the desired soapAction public void setSoapAction String soapAction this soapAction soapAction set the desired ClassM ap for the SOAP Envelopes aparam classM ap the desired ClassM 156 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 public void setClassMap ClassMap classMap requestE nvelope setClassM ap classM ap responseE nvelope set
177. utuliiititubittu void LightingCorrection l mage image void Normalizel ntensity l mage image int level void Normalizel mageF orHMM Ipllmage scaled Ipli mage PNE 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 normalized_image void ExtractDCT float src float dst int num vec int dst len endif defined AFX_FACEBASE 76CC3F61 DOC7 4 8 8479 84950282D 632 INCLUDED define 0 0000000000000 00 define FILENOTREAD T1 0100000000000 define FILENOTOPEN I B DB B B BB BB UO UO 7 define TROUBLES defineATTACHFAIL 00000 defineISVACANT 000 0 define CHUNKSIZE 10000 define BUFSIZE 200000 L E E E E E E E E 00 define REGNZ NUMBER E E E D defineLIMIT RECOGNIZE10 0000000000000000 endif MI IMPORTANT READ BEFORE DOWNLOADING COPYING INSTALLING OR USING By downloading copying installing or using the software you agree to this license f you do not agree to this license do not download install copy or use the software 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942

Download Pdf Manuals

image

Related Search

Related Contents

  Ford Nugget - NUGGET FORUM  Product User Manual Custom Microwave Oven Part No. 910883  User's Guide  Indesit IP 641 S C AN  CAR-4003 User`s Manual  Advantek Networks ALN-318C  SoundPLAN® essential 2.0  TA 1010-1k1 NEO manual_LO 612 manual.qxd  InLine 00243B mounting kit  

Copyright © All rights reserved.
Failed to retrieve file