{"id":2437,"date":"2018-01-13T12:44:25","date_gmt":"2018-01-13T04:44:25","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2437"},"modified":"2018-01-13T12:44:25","modified_gmt":"2018-01-13T04:44:25","slug":"%e7%a0%b4%e8%a7%a3-android-%e7%89%88%e3%80%8a%e7%99%be%e4%b8%87%e8%8b%b1%e9%9b%84%e3%80%8b","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2437","title":{"rendered":"\u7834\u89e3 Android \u7248\u300a\u767e\u4e07\u82f1\u96c4\u300b"},"content":{"rendered":"<p>\n\t\u300a\u767e\u4e07\u82f1\u96c4\u300b\u662f\u4e00\u6863\u5168\u6c11\u77e5\u8bc6\u4e92\u52a8\u6e38\u620f\uff0c\u6700\u8fd1\u6211\u7684\u540c\u4e8b\u5728\u4e0a\u9762\u8d62\u4e865\u5143\u94b1\uff0c\u518d\u6211\u9762\u524d\u70ab\u8000\u3002\u4eca\u5929\u6211\u4eec\u6765\u4f7f\u7528\u7834\u89e3\u7248\uff0c\u6765\u5b8c\u6210\u7b54\u9898\u3002\n<\/p>\n<p>\n\tMillionHero \u662f\u4e00\u6b3e\u51b2\u9876\u5927\u4f1a\u7b54\u9898\u52a9\u624b\u3002\u5b83\u53ef\u4ee5\u81ea\u52a8\u8bc6\u522b\u300a\u767e\u4e07\u82f1\u96c4\u300b\u4e0a\u7684\u95ee\u9898\u548c\u7b54\u6848\uff0c\u5e76\u501f\u52a9\u767e\u5ea6\u641c\u7d22\uff0c\u7ed3\u5408\u76f8\u5173\u7b97\u6cd5\u5728\u6700\u77ed\u65f6\u95f4\u4e3a\u4f60\u9009\u51fa\u7b54\u6848\uff0c\u74dc\u5206\u767e\u4e07\u4e0d\u5728\u8bdd\u4e0b\uff01\n<\/p>\n<h2>\n\t\u6e38\u620f\u6a21\u5f0f<br \/>\n<\/h2>\n<p>\n\t\u4e00\u517112\u9053\u9898\uff0c\u5168\u90e8\u7b54\u5bf9\u5c31\u53ef\u4ee5\u5e73\u5206\u5956\u91d1\u3002\n<\/p>\n<p>\n\t\u5982\u679c\u53ef\u4ee5\u628a\u76f4\u64ad\u4e2d\u7684\u95ee\u9898\u548c\u7b54\u6848\u63d0\u53d6\u51fa\u6765\uff0c\u7136\u540e\u767e\u5ea6\uff0c\u7136\u540e\u7edf\u8ba1\u4e00\u4e0b\u54ea\u4e2a\u66f4\u76f8\u5173\uff0c\u5c31\u53ef\u4ee5\u8f85\u52a9\u4f60\u7b54\u9898\u4e86\u3002 \u5f53\u7136\u4e5f\u53ef\u4ee5\u76f4\u63a5\u628a\u767e\u5ea6\u51fa\u6765\u9898\u76ee\u548c\u7b54\u6848\u90fd\u5c55\u793a\u51fa\u6765\u3002\n<\/p>\n<h2>\n\t\u5de5\u5177\u51c6\u5907<br \/>\n<\/h2>\n<ul>\n<li>\n\t\tJAVA8\n\t<\/li>\n<li>\n\t\tAndroid \u624b\u673a\n\t<\/li>\n<li>\n\t\tAdb \u9a71\u52a8\n\t<\/li>\n<\/ul>\n<h2>\n\t\u7834\u89e3\u65b9\u6cd5<br \/>\n<\/h2>\n<p>\n\t\u4e0b\u8f7d github \u4e0a\u7684\u6e90\u7801\uff1a<a href=\"https:\/\/github.com\/lingfengsan\/MillionHero\" name=\"\u767e\u4e07\u82f1\u96c4\/\u51b2\u9876\u5927\u4f1a\u7b54\u9898\u52a9\u624b\" target=\"_blank\" title=\"\u767e\u4e07\u82f1\u96c4\/\u51b2\u9876\u5927\u4f1a\u7b54\u9898\u52a9\u624b\">https:\/\/github.com\/lingfengsan\/MillionHero<\/a>\u3002\n<\/p>\n<p>\n\tIDE\u5efa\u8bae\u7528idea\uff0c\u4ecegithub\u5bfc\u5165\u6216\u4ece\u672c\u5730\u5bfc\u5165\u6e90\u7801\u540e\uff0c\u5728\u53f3\u4fa7\u7684Maven project\u4e2d\u6dfb\u52a0\u76ee\u5f55\u6839\u90e8\u7684 pom.xml\u6587\u4ef6\u5373\u53ef\u3002\n<\/p>\n<p>\n\t\u4f7f\u7528ADB\u9700\u8981\u5bf9\u5e94\u7684\u624b\u673a\u9a71\u52a8\u7684\u3002\u6700\u7b80\u5355\u9a8c\u8bc1ADB\u7684\u65b9\u6cd5\uff1a\n<\/p>\n<p>\n\t\u5728adb\u76ee\u5f55\u91cc\u9762\u6253\u5f00\u547d\u4ee4\u884c\u8f93\u5165 adb devices \u770b\u4e0b\u6709\u6ca1\u6709\u8bbe\u5907\uff0c\u6709\u7684\u8bdd\u5373\u53ef\u3002\n<\/p>\n<h2>\n\t\u539f\u7406\u8bf4\u660e<br \/>\n<\/h2>\n<p>\n\t\u5c06\u624b\u673a\u70b9\u51fb\u5230\u76f4\u64ad\u754c\u9762\u3002\n<\/p>\n<p>\n\t\u7528Adb \u5de5\u5177\u83b7\u53d6\u5f53\u524d\u624b\u673a\u622a\u56fe\uff0c\u5e76\u7528adb\u5c06\u622a\u56fepull\u4e0a\u6765\u3002\n<\/p>\n<pre class=\"brush:bash;\">\r\nadb shell screencap -p \/sdcard\/1.png\r\nadb pull \/sdcard\/1.png .<\/pre>\n<p>\n\t\u7528tessOCR\u8fdb\u884c\u56fe\u50cf\u8bc6\u522b\uff0c\u63d0\u53d6\u6587\u5b57\uff1b<br \/>\n\t\u5c06\u6587\u5b57\u4e2d\u7684\u95ee\u9898\u548c\u7b54\u6848\u63d0\u53d6\u51fa\u6765\uff1b<br \/>\n\t\u4f7f\u7528\u767e\u5ea6\u641c\u7d22\u5e76\u7edf\u8ba1\u641c\u7d22\u5f97\u5230\u7ed3\u679c\u6570\u91cf\u3002\n<\/p>\n<ol>\n<li>\n\t\t\u95ee\u9898+\u5404\u4e2a\u7b54\u6848count(q&amp;a)\uff1b\n\t<\/li>\n<li>\n\t\t\u95ee\u9898 count(q)\uff1b\n\t<\/li>\n<li>\n\t\t\u7b54\u6848 count(a)\uff1b\n\t<\/li>\n<\/ol>\n<p>\n\t\u8ba1\u7b97\u5339\u914d\u503cpmi: pmi[i]=count(q&amp;a[i])\/(count(q)*count(a[i]))\u3002\n<\/p>\n<p>\n\t\u9009\u62e9pmi\u503c\u6700\u9ad8\u7684\u4e3a\u7b54\u6848\u3002\n<\/p>\n<h2>\n\t\u4f7f\u7528\u6b65\u9aa4<br \/>\n<\/h2>\n<ol>\n<li>\n\t\t\u5b89\u5353\u624b\u673a\u6253\u5f00USB\u8c03\u8bd5\uff0c\u8bbe\u7f6e\u300b\u5f00\u53d1\u8005\u9009\u9879\u300bUSB\u8c03\u8bd5\n\t<\/li>\n<li>\n\t\t\u7535\u8111\u4e0e\u624b\u673aUSB\u7ebf\u8fde\u63a5\uff0c\u786e\u4fdd\u6267\u884cadb devices\u53ef\u4ee5\u627e\u5230\u8bbe\u5907id\n\t<\/li>\n<li>\n\t\t\u6253\u5f00\u767e\u4e07\u76f4\u64ad\n\t<\/li>\n<li>\n\t\t\u8fd0\u884c\u6211\u4eec\u7684java\u7a0b\u5e8f\uff0c\u5f53\u5f39\u51fa\u9898\u76ee\u65f6\uff0c\u8f93\u5165\u56de\u8f66\u5373\u53ef\n\t<\/li>\n<\/ol>\n<p>\n\t\u6d4b\u8bd5\u7684\u5c4f\u5e55\u662f1920*1080\uff0c\u5982\u679c\u662f\u522b\u7684\u5206\u8fa8\u7387\uff0c\u6682\u65f6\u9700\u8981\u4fee\u6539\u4e00\u4e0b\u4ee3\u7801\u4e2d\u7684\u56fe\u7247\u53c2\u6570\u7b49\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2437\">\u7834\u89e3 Android \u7248\u300a\u767e\u4e07\u82f1\u96c4\u300b<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u300a\u767e\u4e07\u82f1\u96c4\u300b\u662f\u4e00\u6863\u5168\u6c11\u77e5\u8bc6\u4e92\u52a8\u6e38\u620f\uff0c\u6700\u8fd1\u6211\u7684\u540c\u4e8b\u5728\u4e0a\u9762\u8d62\u4e865\u5143\u94b1\uff0c\u518d\u6211\u9762\u524d\u70ab\u8000\u3002\u4eca\u5929\u6211\u4eec\u6765\u4f7f\u7528\u7834\u89e3\u7248\uff0c\u6765\u5b8c\u6210\u7b54 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[891,1437,69,1018,1477],"class_list":["post-2437","post","type-post","status-publish","format-standard","hentry","category-java","tag-android","tag-github","tag-java","tag-ocr","tag-ocrad-js"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2437"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2437\/revisions"}],"predecessor-version":[{"id":2438,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2437\/revisions\/2438"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}