{"id":235681,"date":"2020-12-29T02:15:51","date_gmt":"2020-12-28T18:15:51","guid":{"rendered":"http:\/\/4563.org\/?p=235681"},"modified":"2020-12-29T02:15:51","modified_gmt":"2020-12-28T18:15:51","slug":"beauty-%e8%ba%ab%e4%bd%93%e7%9a%84%e5%85%b3%e9%94%ae%e7%82%b9%e7%ae%97%e6%b3%95","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=235681","title":{"rendered":"beauty \u8eab\u4f53\u7684\u5173\u952e\u70b9\u7b97\u6cd5"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  beauty \u8eab\u4f53\u7684\u5173\u952e\u70b9\u7b97\u6cd5               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : crusoekidd <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u4e00\u4e2a\u597d\u7528\u7684\u5728 Android \u624b\u673a\u4e0a\u7684\u8eab\u4f53\u68c0\u6d4b\u548c\u5173\u952e\u70b9\u3002\u5148\u6765\u770b\u6548\u679c\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/12\/20201231_5fed6b1234ae6.gif\" alt=\"beauty \u8eab\u4f53\u7684\u5173\u952e\u70b9\u7b97\u6cd5\" \/><\/p>\n<p>\u9879\u76ee\u540d\u5b57\u53eb\uff1aTengineKit<\/p>\n<p>\u5982\u4f55\u4f7f\u7528\u8fd9\u4e2a\u9879\u76ee\u5462\uff1f \u9996\u5148\uff0c\u8981\u5728 Android \u7684 build.gradle \u91cc\u9762\u5f15\u7528\u5e93<\/p>\n<pre><code>implementation 'com.tengine.tenginekit:core:0.0.1' implementation 'com.tengine.tenginekit:body:0.0.1' <\/code><\/pre>\n<p>\u7b2c\u4e8c\u6b65\u5462\uff0c\u521d\u59cb\u5316 Tengine-Kit\uff1a<\/p>\n<pre><code>KitCore.init(this,     AndroidConfig             .create()             .setCameraMode()             .openFunc(AndroidConfig.Func.BlazePose).openFunc(AndroidConfig.Func.BlazePoseLandmark)             .setDefaultInputImageFormat()             .setInputImageSize(previewWidth, previewHeight)             .setOutputImageSize((int) ScreenWidth, (int) ScreenHeight) ); <\/code><\/pre>\n<p>\u7b2c\u4e09\u6b65\u5462\uff0c\u8c03\u7528 api\uff1a<\/p>\n<pre><code>Body.BodyDetect bodyDetect = Body.detect(mNV21Bytes); List&lt;BodyDetectInfo&gt; bodyDetectInfos = new ArrayList&lt;&gt;(); List&lt;BodyLandmarkInfo&gt; landmarkInfos = new ArrayList&lt;&gt;(); if (bodyDetect.getBodyCount() &gt; 0) {     bodyDetectInfos = bodyDetect.getDetectInfos();     landmarkInfos = bodyDetect.landmark2d(); } <\/code><\/pre>\n<p>\u7b2c\u56db\u6b65\u5462\uff0c\u5c31\u662f\u6839\u636e\u5f97\u5230\u7684\u8eab\u4f53\u6846\u548c\u5173\u952e\u70b9\u8fdb\u884c\u7ed8\u5236\u3002<\/p>\n<p>\u7b2c\u4e94\u6b65\u5462\uff0c\u80af\u5b9a\u5c31\u662f\u91ca\u653e\u4e86\u3002<\/p>\n<pre><code>KitCore.release(); <\/code><\/pre>\n<p>\u8fd9\u6837\u4f60\u53ef\u4ee5\u5f97\u5230\u7f8e\u5973\u8df3\u821e\u7684\u5173\u952e\u70b9\u62c9\u3002\u6839\u636e\u5173\u952e\u70b9\u518d\u8fdb\u884c\u76f8\u5e94\u7684\u5904\u7406\uff0c\u5c31\u53ef\u4ee5\u53d8\u6210\u706b\u67f4\u4eba\u8df3\u821e\u62c9\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4753336\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Lemeng <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u70b9\u610f\u601d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4753337\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhangchunjiiw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             +1                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4753338\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : JinTianYi456 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u811a\u600e\u4e48\u4e0d\u89c1\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4753339\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : janssenkm <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @JinTianYi456 \u5173\u952e\u7684\u5c31\u4e09\u4e2a\u70b9\uff0c\u5012\u4e09\u89d2                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>beauty \u8eab\u4f53\u7684\u5173\u952e\u70b9\u7b97\u6cd5 \u8cc7&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/235681"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=235681"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/235681\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=235681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=235681"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=235681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}