Facebookã§æ稿ãåçãªã©ããã§ãã¯ã§ãã¾ãã
Facebookã§æ稿ãåçãªã©ããã§ãã¯ã§ãã¾ãã
Thriftã§ãã¤ããªãã¼ã¿ãããã¨ãããæ¹æ³ã 以åãFlexã§XML-RPCãå©ç¨ãã¦ããæã¯ã確ãbase64ã«ã¨ã³ã³ã¼ããã¦è¿ãã¦ããã¨æãã®ã§ã Thriftã§ãåæ§ã«ãã¤ããªãã¼ã¿ã¯base64ã«ã¨ã³ã³ã¼ããã¦è¿ãããã«ãã¾ãã Thriftã®ã½ã¼ã¹ãæ¼ã£ã¦ãã㨠TBase64Utils ã¨ãããã®ãè¦ã¤ããã®ã§ããã ã©ããboostå¿ é ãªãã¬ã¼ã ã¯ã¼ã¯ãªã®ã§boostã使ã£ã¦ã¨ã³ã³ã¼ããã¦ã¿ã¾ãã ã¤ã³ã¿ãã§ã¼ã¹ã¨ãã¦ã ã»ãµã¼ãã¹åã Test ã»ããã·ã¼ã¸ã£åã returnImage ã»å¼æ°ã¯ç»åãã¡ã¤ã«åãæ»ãå¤ã¯base64ã¨ã³ã³ã¼ãæåå ãå®ç¾©ãã¾ãã
Thriftãå©ç¨ãã¦OpenCVã®é¢æ°ãã¹ã¯ãªããããå¼ãã§ã¿ã¾ãã ã¨ãã£ã¦ãRPCã§ç¹ããã ãã§ç¹å¥ãªãã¨ãããå¿ è¦ã¯ããã¾ããã ããã§ã¯ãç»åã®åãã£ã³ãã«ã®å¹³åå¤ã¨æ¨æºåå·®ãæ±ãã¦ã¿ã¾ãã ãµã¼ãå´ã§OpenCVã® cvAvgSvd() ãå©ç¨ããã°OKã ã¾ããæåã«RPCã®ã¤ã³ã¿ãã§ã¼ã¹ãThrift IDLã«æ¸ãã¾ãã ããã§ã¯ãå¹³åã¨æ¨æºåå·®ãæ±ããé¢æ°ã2ã¤ä½ããã¨ã«ãã¾ããã åãã£ã³ãã«ã®å¤ã欲ããã®ã§æ»ãå¤ã¯ list<double> ã«ã å¼æ°ã¯ç»åãã¡ã¤ã«åãæå®ãããã®ã§ string ã«ãã¦ããã¾ãã * cv.thrift (ãµã¼ãã¹å㯠CV) service CV { list<double> calcAvg(1: string img) list<double> calcSdv(1: string img) }
ããªæ¼¢åå¤æã¨ã³ã¸ã³ã®ãããªè¤éãªã½ããã¦ã§ã¢ã®éçºã«ã¯ãã·ã³ãã«ãªLAMPã®ã¢ããã¼ãã ãã§ã¯éçãããã¨æè¿ã¯æãã¦ãã¾ãã以åSWIGã使ã£ã¦Anthyã®ã©ã¤ãã©ãªãPHPãã使ããããã«ããã®ã§ãããSWIGã®ãããªæ¡å¼µã¢ã¸ã¥ã¼ã«ã«ããé£æºã§ã¯ã¹ã¯ãªãããå¼ã°ãããã³ã«åæåãå¿ è¦ã¨ãªããã¨ããåé¡ç¹ãããã¾ããã ã¨ããããã§å¤è¨èªRPCãã¬ã¼ã ã¯ã¼ã¯ã§ããã¨ããã®Thriftã使ã£ã¦ã¿ããã¨ã«ãã¾ãããã¾ãã¯ä»¥ä¸ã®ãã¼ã¸ããæ¬ä½ããã¦ã³ãã¼ããã¾ããApache Thrift次ã«å ¬å¼Wikiãåèã«ãæ¬ä½ã¨å©ç¨è¨èªãã¨ã®ã¤ã³ã¹ãã¼ã«ãè¡ãã¾ããFrontPage - Thrift Wiki以ä¸ã®ãã¼ã¸ã®ãµã³ãã«ãå®è¡ãã¦ã¿ã¾ããUbuntu 8.04 㧠Thrift ã試ãã¦ã¿ã - ãªãã¨ãªãæ¥è¨ããæ¹ã¯URLã®éãã§ãããPHPã®å ´åãç´¹ä»ããã¦ããªãã£ãã®ã§ãthrif
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}