{"id":371,"date":"2020-02-28T11:10:00","date_gmt":"2020-02-28T03:10:00","guid":{"rendered":"http:\/\/124.244.86.40:8080\/wordpress\/?p=371"},"modified":"2020-02-25T23:22:09","modified_gmt":"2020-02-25T15:22:09","slug":"open-vtuber-studio-%e4%b9%8b%e9%96%8b%e7%99%bc1","status":"publish","type":"post","link":"https:\/\/imuslab.com\/wordpress\/2020\/02\/28\/open-vtuber-studio-%e4%b9%8b%e9%96%8b%e7%99%bc1\/","title":{"rendered":"Open Vtuber Studio \u4e4b\u958b\u767c(1)"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"563\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-20_13-48-18-1024x563.png\" alt=\"\" class=\"wp-image-374\" srcset=\"https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-20_13-48-18-1024x563.png 1024w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-20_13-48-18-300x165.png 300w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-20_13-48-18-768x422.png 768w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-20_13-48-18-1536x844.png 1536w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-20_13-48-18-1200x659.png 1200w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-20_13-48-18.png 1547w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Open Vtuber Studio \u5148\u66ab\u5b9a\u5728 2021 \u5e74\u59cb\u6625\u516c\u958b\u597d\u4e86\u3002<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u7531\u982d\u90e8\u958b\u59cb<\/h2>\n\n\n\n<p>\u7531\u65bc\u5f88\u591a\u73fe\u6642\u7684 Vtuber \u4e26\u4e0d\u80fd\u50cf\u56db\u5927\u5929\u738b\u90a3\u6a23\u6295\u5165\u9019\u9ebc\u591a\u9322\u5230\u5168\u8eab\u8ffd\u8e64\u7684 \u6355\u6349\u6280\u8853\uff0c\u6240\u4ee5\u5f88\u5927\u90e8\u5206\u73fe\u5728\u7684 Vtuber \u90fd\u53ea\u662f\u4f9d\u8cf4\u81c9\u90e8\u8868\u60c5\u6355\u6349 + \u624b\u52d5\u66f4\u6539\u81c9\u90e8\u8868\u60c5\u800c\u6210\u7684\u534a 3D Vtuber \u7cfb\u7d71\u3002\u7576\u7136\uff0c\u9019\u7a2e\u6771\u897f\u8981\u505a\u7684\u8a71\u5f88\u7c21\u55ae\uff0c\u96a8\u4fbf\u8cb7\u4e00\u500b Face Tracking \u7684 SDK \u4f86\u7528\u5c31\u597d\u3002\u7136\u800c\uff0c\u57fa\u65bc\u958b\u6e90\u8a08\u5283\u7684\u539f\u5247\uff0c\u9019\u65b9\u6cd5\u884c\u4e0d\u901a\u3002\u9019\u500b\u6642\u5019\u6211\u5011\u5c31\u8981\u81ea\u5df2\u5e79\u4e00\u5957\u51fa\u4f86\u4e86\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Face-api.js<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/justadudewhohacks\/face-api.js\/\">https:\/\/github.com\/justadudewhohacks\/face-api.js\/<\/a><\/p>\n\n\n\n<p>FaceAPI.js \u662f\u4e00\u500b\u4f7f\u7528 Neural Network \uff08\u795e\u7d93\u7db2\u7d61\uff09\u800c\u7de8\u5beb\u7684\u81c9\u90e8\u6355\u6349 API\u3002\u8a71\u96d6\u5982\u6b64\uff0c\u5b83\u537b\u5167\u7f6e\u4e86\u5f88\u591a\u4e0d\u540c\u7684 Network Model \uff08\u6a21\u578b\uff09\u4f86\u505a\u540c\u4e00\u4ef6\u4e8b\u60c5\u3002\u800c\u5728\u9019\u500b\u958b\u6e90\u8a08\u5283\u4e2d\u6211\u770b\u4e0a\u4e86\u9019\u500b\u529f\u80fd\uff1aFace Landmark Detection<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"715\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-41-00-1024x715.png\" alt=\"\" class=\"wp-image-375\" srcset=\"https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-41-00-1024x715.png 1024w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-41-00-300x209.png 300w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-41-00-768x536.png 768w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-41-00.png 1093w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>\u539f\u5716\uff1ahttps:\/\/github.com\/justadudewhohacks\/face-api.js\/<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u52d5\u614b\u6355\u6349\u53ca VRM \u6a21\u578b\u52d5\u4f5c \u6620\u5c04\u6f14\u7b97\u6cd5<\/h3>\n\n\n\n<p>\u7c21\u55ae\u4f86\u8aaa\uff0c\u9019\u529f\u80fd\u628a\u6355\u6349\u5230\u7684\u81c9\u90e8\u4e00\u4e9b\u91cd\u8981\u7684\u9ede\u627e\u51fa\u4f86\uff0c\u4e4b\u5f8c\u6211\u5011\u4fbf\u53ef\u4ee5\u5c0d\u9019\u4e9b\u9ede\u9032\u884c\u5f8c\u8655\u7406\u3002\u7576\u7136\uff0c\u9019\u6a21\u578b\u53ea\u6703\u56de\u50b3\u5e73\u9762\u7684\u4f4d\u7f6e\u6216\uff08x, y\uff09\u503c\uff0c\u56e0\u6b64\uff0c\u6211\u5011\u9700\u8981\u628a\u5b83\u8f49\u6210 3D \u4f4d\u7f6e\uff0c\u9019\u5c31\u9700\u8981\u4e00\u9ede\u6f14\u7b97\u6cd5\u4e86\u3002<\/p>\n\n\n\n<p>\u9996\u5148\uff0c\u6211\u5011\u5148\u770b\u770b FaceLandmarks68 \u6a21\u578b\u7684\u56de\u50b3\u503c<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"825\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/05uIT-1024x825.jpg\" alt=\"\" class=\"wp-image-377\" srcset=\"https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/05uIT-1024x825.jpg 1024w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/05uIT-300x242.jpg 300w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/05uIT-768x619.jpg 768w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/05uIT-1536x1238.jpg 1536w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/05uIT-1200x967.jpg 1200w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/05uIT.jpg 1856w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u7136\u5f8c\u5c0d\u6bd4\u4e00\u4e0b\u81c9\u90e8\u79fb\u52d5\u7684\u6642\u5019\u7684\u6355\u6349\u4f4d\u7f6e\uff0c\u6211\u5011\u5f88\u5bb9\u6613\u6703\u767c\u73fe\u5e7e\u500b\u7279\u9ede<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u7b2c 1\u9ede\u8ddf\u7b2c 17\u9ede\u4e4b\u9593\u7684\u8ddd\u96e2\u9664\u4e86\u524d\u5f8c\u79fb\u52d5\u4e4b\u5916\u57fa\u672c\u4e0a\u4e0d\u6703\u6539\u8b8a<\/li><li>\u7b2c 1\u9ede\u8ddf\u7b2c 9\u9ede\u4e4b\u9593\u7684\u5782\u76f4\u8ddd\u96e2\u6703\u8ddf\u64da\u4f60\u982d\u90e8\u4e0a\u4e0b\u671b\u800c\u7522\u751f\u7dda\u6027\u8b8a\u5316<\/li><li>\u7b2c\u5728\u7b2c 3\u8ddf 15\u9ede\u9593\u756b\u4e00\u689d\u76f4\u7dda\uff0c\u5728\u982d\u90e8\u65cb\u8f49\u7684\u6642\u5019\u7b2c 31\u9ede\u6703\u6309\u6bd4\u4f8b\u7684\u5728\u9019\u689d\u76f4\u7dda\u4e0a\u6ed1\u52d5<\/li><\/ol>\n\n\n\n<p>\u5c31\u662f\u9019\u6a23\uff0c\u57fa\u672c\u4e0a\u6211\u5011\u5c31\u80fd\u78ba\u5b9a\u600e\u6a23\u5224\u65b7\u982d\u90e8\u79fb\u52d5\u548c\u65cb\u8f49\u7684\u65b9\u5411\u4e86\u3002<br>\u6211\u5011\u5728\u53d6\u5f97\u6bd4\u8f03\u9ede\u5728\u6700\u9ad8\u53ca\u6700\u4f4e\u503c\u7684\u4f4d\u7f6e\u4e4b\u5f8c\u628a\u5176 \u6b78\u4e00\u5316 (Normalize)\uff0c\u5c31\u80fd\u5f97\u51fa\u982d\u90e8\u7684  \u8b8a\u63db\/\u65cb\u8f49\u77e9\u9663 (Transformation \/ Rotation Matrix)\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"873\" height=\"395\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/compare.png\" alt=\"\" class=\"wp-image-379\" srcset=\"https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/compare.png 873w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/compare-300x136.png 300w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/compare-768x347.png 768w\" sizes=\"auto, (max-width: 873px) 100vw, 873px\" \/><figcaption>\u5411\u4e0a\u5411\u4e0b\u770b\u7684\u8a08\u7b97\u65b9\u5f0f<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"461\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-57-07-1024x461.png\" alt=\"\" class=\"wp-image-380\" srcset=\"https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-57-07-1024x461.png 1024w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-57-07-300x135.png 300w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-57-07-768x346.png 768w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-57-07-1200x540.png 1200w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-57-07.png 1533w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>\u5411\u5de6\u5411\u53f3\u770b\u7684\u8a08\u7b97\u65b9\u5f0f<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"460\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-59-21-1024x460.png\" alt=\"\" class=\"wp-image-381\" srcset=\"https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-59-21-1024x460.png 1024w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-59-21-300x135.png 300w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-59-21-768x345.png 768w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-59-21-1200x539.png 1200w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-59-21.png 1383w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>\u5411\u5de6\u50be\u8ddf\u5411\u53f3\u50be\u7684\u8a08\u7b97\u65b9\u6cd5<\/figcaption><\/figure>\n\n\n\n<p>\u6240\u724c\u7d50\u5408\u4e0a\u8ff0\u591a\u500b\u8a08\u7b97\u65b9\u6cd5\uff0c\u982d\u90e8\u7684 3D\u79fb\u52d5\u53ca\u65cb\u8f49\u5c31\u88ab\u8a08\u7b97\u51fa\u4f86\u4e86\u3002\u6839\u64da\u6355\u6349\u5230\u7684\u982d\u90e8\u52d5\u614b\uff0c\u4f7f VRM \u6a21\u578b\u7684\u982d\u90e8\u9aa8\u67b6\u4e5f\u8ddf\u96a8\u8457\u79fb\u52d5\uff0c\u6700\u5f8c\u4fbf\u5f62\u6210\u4ee5\u4e0b\u7684\u6548\u679c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-3 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"931\" height=\"534\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-54-55.png\" alt=\"\" data-id=\"382\" data-full-url=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-54-55.png\" data-link=\"http:\/\/124.244.86.40:8080\/wordpress\/?attachment_id=382\" class=\"wp-image-382\" srcset=\"https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-54-55.png 931w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-54-55-300x172.png 300w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-54-55-768x441.png 768w\" sizes=\"auto, (max-width: 931px) 100vw, 931px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"924\" height=\"520\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-54-51.png\" alt=\"\" data-id=\"383\" data-full-url=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-54-51.png\" data-link=\"http:\/\/124.244.86.40:8080\/wordpress\/?attachment_id=383\" class=\"wp-image-383\" srcset=\"https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-54-51.png 924w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-54-51-300x169.png 300w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-54-51-768x432.png 768w\" sizes=\"auto, (max-width: 924px) 100vw, 924px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"889\" height=\"643\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-54-47.png\" alt=\"\" data-id=\"384\" data-full-url=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-54-47.png\" data-link=\"http:\/\/124.244.86.40:8080\/wordpress\/?attachment_id=384\" class=\"wp-image-384\" srcset=\"https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-54-47.png 889w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-54-47-300x217.png 300w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-54-47-768x555.png 768w\" sizes=\"auto, (max-width: 889px) 100vw, 889px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"902\" height=\"423\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-55-10.png\" alt=\"\" data-id=\"385\" data-full-url=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-55-10.png\" data-link=\"http:\/\/124.244.86.40:8080\/wordpress\/?attachment_id=385\" class=\"wp-image-385\" srcset=\"https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-55-10.png 902w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-55-10-300x141.png 300w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-55-10-768x360.png 768w\" sizes=\"auto, (max-width: 902px) 100vw, 902px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"915\" height=\"446\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-55-06.png\" alt=\"\" data-id=\"386\" data-full-url=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-55-06.png\" data-link=\"http:\/\/124.244.86.40:8080\/wordpress\/?attachment_id=386\" class=\"wp-image-386\" srcset=\"https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-55-06.png 915w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-55-06-300x146.png 300w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-55-06-768x374.png 768w\" sizes=\"auto, (max-width: 915px) 100vw, 915px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"938\" height=\"478\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-55-01.png\" alt=\"\" data-id=\"387\" data-full-url=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-55-01.png\" data-link=\"http:\/\/124.244.86.40:8080\/wordpress\/?attachment_id=387\" class=\"wp-image-387\" srcset=\"https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-55-01.png 938w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-55-01-300x153.png 300w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-25_22-55-01-768x391.png 768w\" sizes=\"auto, (max-width: 938px) 100vw, 938px\" \/><\/figure><\/li><\/ul><figcaption class=\"blocks-gallery-caption\">\u7d50\u5408\u4e09\u8ef8\u6f14\u7b97\u6cd5\u4e4b\u5f8c\u7684\u982d\u90e8\u904b\u52d5<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u81ea\u52d5\u7728\u773c<\/h3>\n\n\n\n<p>\u4ee5 FaceAPI \u7684\u6e96\u78ba\u7387\u4f86\u8aaa\u8981\u6aa2\u6e2c\u5230\u8cb6\u773c\u5be6\u5728\u4e0d\u592a\u53ef\u80fd\u4e86\u3002\u6240\u4ee5\u9019\u88e1\u5c31\u4f7f\u7528\u4e86\u81ea\u52d5\u7728\u773c\u529f\u80fd\u3002\u7136\u800c\u4f60\u53ef\u80fd\u60f3\uff0c\u9019\u8981\u5beb\u61c9\u8a72\u4e0d\u96e3\u5427\uff1f\u5c31\u9019\u6a23\u52a0\u500b setInterval() \u5c31\u597d\u4e86\uff1f\u4e0d\uff0c\u4f60\u592a\u5c11\u770b VRM \u7684\u9ebb\u7169\u7a0b\u5ea6\u4e86\u3002<br>\u6211\u9019\u88e1\u7d66\u5927\u5bb6\u770b\u4e00\u4e0b\u53ea\u662f\u63a7\u5236\u4e00\u500b VRM \u6a21\u578b\u7728\u773c\u7684\u90e8\u5206<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function createEyeBlinkBlendValueFromCycle(s){\n\t\/\/Eclipse time to sin function\n\tconst scaleRatio = 2;\n\tconst eyeCloseIntervalScale = 0.18;\n\tif (eyeBlinking){\n\t\tif (eyeBlinkingTimer&#91;0] == 0){\n\t\t\t\/\/Start to blink\n\t\t\teyeBlinkingTimer&#91;0] = s;\n\t\t\treturn 0;\n\t\t}else{\n\t\t\t\/\/Blinking in progress\n\t\t\teyeBlinkingTimer&#91;1] += s - eyeBlinkingTimer&#91;0] \n\t\t\teyeBlinkingTimer&#91;0] = s;\n\t\t}\n\t\t\n\t\ts = Math.sin( Math.PI * eyeBlinkingTimer&#91;1] * scaleRatio);\n\t\ts = s * 3;\n\t\tvar baseFormula = Math.min(s, 1);\n\t\t\/\/console.log(&#91;baseFormula,s, eyeBlinkingTimer&#91;1]]);\n\t\tif (baseFormula &lt; 0){\n\t\t\teyeBlinking = false;\n\t\t\teyeBlinkingTimer = &#91;0,0];\n\t\t}else if (s > 1){\n\t\t\t\/\/Eye closed. Give it a blink interval skip\n\t\t\teyeBlinkingTimer&#91;1] += eyeCloseIntervalScale;\n\t\t}\n\t\treturn baseFormula;\n\t}else{\n\t\treturn 0;\n\t}\t\n}<\/code><\/pre>\n\n\n\n<p>\u7136\u5f8c\u4eba\u985e\u4e00\u822c\u7728\u773c\u6642\u9593\u9593\u8ddd\u70ba 2 &#8211; 10\u79d2\uff0c\u70ba\u4e86\u505a\u5230\u8b93 VRM \u6a21\u578b\u7728\u773c\u66f4\u771f\u5be6\uff0c\u9019\u500b\u96a8\u6a5f\u7728\u773c\u7684\u529f\u80fd\u4e5f\u662f\u5fc5\u9808\u7684\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function blinkEye(){\n\teyeBlinking = true;\n\tsetTimeout(function(){\n\t\tblinkEye();\n\t},getRandomInt(2000,10000));\n}\nfunction getRandomInt(min, max) {\n\tmin = Math.ceil(min);\n\tmax = Math.floor(max);\n\treturn Math.floor(Math.random() * (max - min + 1)) + min;\n}<\/code><\/pre>\n\n\n\n<p>\u6c92\u932f\uff0c\u8981\u505a\u5230\u771f\u5be6\u7684\u7728\u773c\u662f\u4e00\u9ede\u90fd\u4e0d\u5bb9\u6613\u7684\u3002\u5c31\u53ea\u662f\u8981\u7728\u500b\u773c\u800c\u5df2\u5c31\u5df2\u7d93\u78b0\u5230\u597d\u5e7e\u500b timer \u8ddf radian \u89d2\u5ea6\u7684\u904b\u7b97\uff0c\u771f\u662f\u5c11\u4e00\u9ede\u6578\u5b78\u6839\u57fa\u90fd\u4e0d\u884c\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5c0f\u7d50<\/h3>\n\n\n\n<p>\u600e\u6a23\uff0c\u662f\u4e0d\u662f\u958b\u59cb\u6709\u4e00\u9ede\u50cf\u771f\u5462\uff1f<br>\u7136\u800c\uff0c\u9019\u53ef\u662f\u6709\u4e00\u500b\u554f\u984c\uff1a\u904b\u7b97\u9700\u6c42\u592a\u5927\u4e86\u3002<br> \u6c92\u932f\uff0c\u4e00\u584a\u7b46\u96fb\u7684 i7 \u8655\u7406\u5668\u7684\u986f\u5361\u5c45\u7136\u88ab\u5403\u5230 100% \u4f7f\u7528\u7387\uff0c\u6563\u71b1\u53e3\u5674\u8457\u5feb\u8981\u80fd\u628a\u96de\u86cb\u716e\u719f\u7684\u71b1\u98a8\uff0c\u5be6\u5728\u592a\u6050\u6016\u4e86\u5566\uff01 <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-23_14-17-13.png\" alt=\"\" class=\"wp-image-388\" width=\"393\" height=\"274\" srcset=\"https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-23_14-17-13.png 513w, https:\/\/imuslab.com\/wordpress\/wp-content\/uploads\/2020\/02\/2020-02-23_14-17-13-300x209.png 300w\" sizes=\"auto, (max-width: 393px) 100vw, 393px\" \/><figcaption>\u67d0\u4f4d\u540c\u70ba\u8edf\u4ef6\u5de5\u7a0b\u5e2b\u7684\u670b\u53cb\u5982\u662f\u8aaa<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"319\" src=\"http:\/\/124.244.86.40:8080\/wordpress\/wp-content\/uploads\/2020\/02\/ezgif.com-video-to-gif.gif\" alt=\"\" class=\"wp-image-391\"\/><figcaption>\u6548\u679c\u5982\u5716<\/figcaption><\/figure>\n\n\n\n<p>\u90a3\u982d\u90e8\u7684\u63a7\u5236\u90e8\u5206\u5c31\u5148\u5230\u88e1\u4e86\uff0c\u4e4b\u5f8c\u5c31\u662f\u66f4\u56f0\u96e3\u7684\u8eab\u9ad4\u6355\u6349\u90e8\u5206\u5594~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u982d\u90e8\u958b\u59cb \u7531\u65bc\u5f88\u591a\u73fe\u6642\u7684 Vtuber \u4e26\u4e0d\u80fd\u50cf\u56db\u5927\u5929\u738b\u90a3\u6a23\u6295\u5165\u9019\u9ebc\u591a\u9322\u5230\u5168\u8eab\u8ffd\u8e64\u7684 \u6355\u6349\u6280\u8853\uff0c\u6240\u4ee5\u5f88\u5927\u90e8\u5206\u73fe\u5728\u7684 Vtuber \u90fd\u53ea\u662f\u4f9d\u8cf4\u81c9\u90e8\u8868\u60c5\u6355\u6349 + \u624b\u52d5\u66f4\u6539\u81c9\u90e8\u8868\u60c5\u800c\u6210\u7684\u534a 3D Vtuber \u7cfb\u7d71\u3002\u7576\u7136\uff0c\u9019\u7a2e\u6771\u897f\u8981\u505a\u7684\u8a71\u5f88\u7c21\u55ae\uff0c\u96a8\u4fbf\u8cb7\u4e00\u500b Face Tracking \u7684 SDK \u4f86\u7528\u5c31\u597d\u3002\u7136\u800c\uff0c\u57fa\u65bc\u958b\u6e90\u8a08\u5283\u7684\u539f\u5247\uff0c\u9019\u65b9\u6cd5\u884c\u4e0d\u901a\u3002\u9019\u500b\u6642\u5019\u6211\u5011\u5c31\u8981\u81ea\u5df2\u5e79\u4e00\u5957\u51fa\u4f86\u4e86\u3002 Face-api.js https:\/\/github.com\/justadudewhohacks\/face-api.js\/ FaceAPI.js \u662f\u4e00\u500b\u4f7f\u7528 Neural Network \uff08\u795e\u7d93\u7db2\u7d61\uff09\u800c\u7de8\u5beb\u7684\u81c9\u90e8\u6355\u6349 API\u3002\u8a71\u96d6\u5982\u6b64\uff0c\u5b83\u537b\u5167\u7f6e\u4e86\u5f88\u591a\u4e0d\u540c\u7684 Network Model \uff08\u6a21\u578b\uff09\u4f86\u505a\u540c\u4e00\u4ef6\u4e8b\u60c5\u3002\u800c\u5728\u9019\u500b\u958b\u6e90\u8a08\u5283\u4e2d\u6211\u770b\u4e0a\u4e86\u9019\u500b\u529f\u80fd\uff1aFace Landmark Detection \u52d5\u614b\u6355\u6349\u53ca VRM \u6a21\u578b\u52d5\u4f5c \u6620\u5c04\u6f14\u7b97\u6cd5 \u7c21\u55ae\u4f86\u8aaa\uff0c\u9019\u529f\u80fd\u628a\u6355\u6349\u5230\u7684\u81c9\u90e8\u4e00\u4e9b\u91cd\u8981\u7684\u9ede\u627e\u51fa\u4f86\uff0c\u4e4b\u5f8c\u6211\u5011\u4fbf\u53ef\u4ee5\u5c0d\u9019\u4e9b\u9ede\u9032\u884c\u5f8c\u8655\u7406\u3002\u7576\u7136\uff0c\u9019\u6a21\u578b\u53ea\u6703\u56de\u50b3\u5e73\u9762\u7684\u4f4d\u7f6e\u6216\uff08x, y\uff09\u503c\uff0c\u56e0\u6b64\uff0c\u6211\u5011\u9700\u8981\u628a\u5b83\u8f49\u6210 3D \u4f4d\u7f6e\uff0c\u9019\u5c31\u9700\u8981\u4e00\u9ede\u6f14\u7b97\u6cd5\u4e86\u3002 \u9996\u5148\uff0c\u6211\u5011\u5148\u770b\u770b FaceLandmarks68 \u6a21\u578b\u7684\u56de\u50b3\u503c \u7136\u5f8c\u5c0d\u6bd4\u4e00\u4e0b\u81c9\u90e8\u79fb\u52d5\u7684\u6642\u5019\u7684\u6355\u6349\u4f4d\u7f6e\uff0c\u6211\u5011\u5f88\u5bb9\u6613\u6703\u767c\u73fe\u5e7e\u500b\u7279\u9ede \u7b2c 1\u9ede\u8ddf\u7b2c 17\u9ede\u4e4b\u9593\u7684\u8ddd\u96e2\u9664\u4e86\u524d\u5f8c\u79fb\u52d5\u4e4b\u5916\u57fa\u672c\u4e0a\u4e0d\u6703\u6539\u8b8a \u7b2c 1\u9ede\u8ddf\u7b2c 9\u9ede\u4e4b\u9593\u7684\u5782\u76f4\u8ddd\u96e2\u6703\u8ddf\u64da\u4f60\u982d\u90e8\u4e0a\u4e0b\u671b\u800c\u7522\u751f\u7dda\u6027\u8b8a\u5316 \u7b2c\u5728\u7b2c 3\u8ddf 15\u9ede\u9593\u756b\u4e00\u689d\u76f4\u7dda\uff0c\u5728\u982d\u90e8\u65cb\u8f49\u7684\u6642\u5019\u7b2c 31\u9ede\u6703\u6309\u6bd4\u4f8b\u7684\u5728\u9019\u689d\u76f4\u7dda\u4e0a\u6ed1\u52d5 \u5c31\u662f\u9019\u6a23\uff0c\u57fa\u672c\u4e0a\u6211\u5011\u5c31\u80fd\u78ba\u5b9a\u600e\u6a23\u5224\u65b7\u982d\u90e8\u79fb\u52d5\u548c\u65cb\u8f49\u7684\u65b9\u5411\u4e86\u3002\u6211\u5011\u5728\u53d6\u5f97\u6bd4\u8f03\u9ede\u5728\u6700\u9ad8\u53ca\u6700\u4f4e\u503c\u7684\u4f4d\u7f6e\u4e4b\u5f8c\u628a\u5176 \u6b78\u4e00\u5316 (Normalize)\uff0c\u5c31\u80fd\u5f97\u51fa\u982d\u90e8\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,17],"tags":[22,21,27,18,26,24,25],"class_list":["post-371","post","type-post","status-publish","format-standard","hentry","category-development-logs","category-open-vtuber-studio","tag-face-recognition","tag-face-api-js","tag-open-source","tag-open-vtuber-studio","tag-virtual-youtuber","tag-vrm","tag-vtuber"],"_links":{"self":[{"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/posts\/371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/comments?post=371"}],"version-history":[{"count":5,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/posts\/371\/revisions"}],"predecessor-version":[{"id":394,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/posts\/371\/revisions\/394"}],"wp:attachment":[{"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/media?parent=371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/categories?post=371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/tags?post=371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}