{"id":287,"date":"2019-09-11T03:34:54","date_gmt":"2019-09-10T20:34:54","guid":{"rendered":"http:\/\/ainoodle.tech\/?p=287"},"modified":"2019-09-11T03:34:54","modified_gmt":"2019-09-10T20:34:54","slug":"face-recog-2-0-nhan-dien-khuon-mat-trong-video-bang-mtcnn-va-facenet","status":"publish","type":"post","link":"https:\/\/miai.vn\/?p=287","title":{"rendered":"[Face Recog 2.0] Nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t trong video b\u1eb1ng MTCNN v\u00e0 Facenet"},"content":{"rendered":"\n<p>Hello xin ch\u00e0o c\u00e1c anh em M\u00ec AI Blog, sau b\u00e0i \u0111\u1ea7u ti\u00ean v\u1ec1 nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t t\u1ea1i \u0111\u00e2y <a rel=\"noreferrer noopener\" aria-label=\"https:\/\/miai.vn\/2019\/08\/13\/face-recognize-thu-lam-he-thong-cham-cong-bang-nhan-dang-khuon-mat\/ (opens in a new tab)\" href=\"https:\/\/miai.vn\/2019\/08\/13\/face-recognize-thu-lam-he-thong-cham-cong-bang-nhan-dang-khuon-mat\/\" target=\"_blank\">https:\/\/miai.vn\/2019\/08\/13\/face-recognize-thu-lam-he-thong-cham-cong-bang-nhan-dang-khuon-mat\/<\/a>, r\u1ea5t nhi\u1ec1u anh em c\u00f3 comment l\u00e0 ph\u01b0\u01a1ng ph\u00e1p tri\u1ec3n khai, thu\u1eadt to\u00e1n trong b\u00e0i \u0111\u00f3 c\u00f3 \u0111\u1ed9 ch\u00ednh x\u00e1c ch\u01b0a cao. <\/p>\n\n\n\n<p>M\u00ecnh x\u00e1c nh\u1eadn \u0111i\u1ec1u \u0111\u00f3, nh\u01b0ng khi m\u1edbi h\u1ecdc th\u00ec n\u00ean b\u1eaft \u0111\u00e2u t\u1eeb nh\u1eefng model \u0111\u01a1n gi\u1ea3n v\u00e0 d\u1ec5 hi\u1ec3u \u0111\u1ec3 n\u1eafm \u0111\u01b0\u1ee3c kh\u00e1i ni\u1ec7m, sau \u0111\u00f3 s\u1ebd n\u00e2ng d\u1ea7n l\u00ean.<\/p>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<!-- InPost_Ad -->\n<ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-5095883280136027\" data-ad-slot=\"7735063137\" data-ad-format=\"auto\" data-full-width-responsive=\"true\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<p>H\u00f4m nay m\u00ecnh s\u1ebd gi\u1edbi thi\u1ec7u c\u00f9ng c\u00e1c b\u1ea1n m\u1ed9t b\u00e0i to\u00e1n nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t n\u1eefa nh\u01b0ng s\u1ebd \u00e1p d\u1ee5ng nh\u1eefng c\u00f4ng ngh\u1ec7 m\u1edbi h\u01a1n nh\u01b0: ph\u00e1t hi\u1ec7n khu\u00f4n m\u1eb7t b\u1eb1ng MTCNN, tr\u00edch xu\u1ea5t \u0111\u1eb7c tr\u01b0ng b\u0103ng Facenet v\u00e0 d\u00f9ng SVM \u0111\u1ec3 classifier v\u00e0 nh\u1eadn di\u1ec7n m\u1eb7t. Nh\u1edd \u0111\u00f3, gi\u1ea3i ph\u00e1p l\u1ea7n n\u00e0y c\u00f3 nhi\u1ec1u \u01b0u \u0111i\u1ec3m so v\u1edbi l\u1ea7n tr\u01b0\u1edbc nh\u01b0: nh\u1eadn di\u1ec7n \u0111\u01b0\u1ee3c m\u1eb7t \u1edf nhi\u1ec1u g\u00f3c kh\u00e1c nhau, ko c\u1ea7n nh\u00ecn th\u1eb3ng, nh\u1eadn di\u1ec7n ch\u00ednh x\u00e1c h\u01a1n, tr\u00edch xu\u1ea5t \u0111\u01b0\u1ee3c nhi\u1ec1u \u0111\u1eb7c tr\u01b0ng khu\u00f4n m\u1eb7t h\u01a1n.<\/p>\n\n\n\n<p>C\u00f4ng ngh\u1ec7 n\u00e0y \u00e1p d\u1ee5ng nhi\u1ec1u trong th\u1ef1c t\u1ebf h\u01a1n c\u00e1c c\u00f4ng ngh\u1ec7 s\u1eed d\u1ee5ng trong b\u00e0i tr\u01b0\u1edbc. R\u1ed3i b\u00e2y gi\u1edd ch\u00fang ta s\u1ebd \u0111i ti\u1ebfp n\u00e0o.<\/p>\n\n\n\n<style>.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }<\/style><div class=\"embed-container\"><iframe src=\"https:\/\/www.youtube.com\/embed\/snmYELRQvME\" frameborder=\"0\" allowfullscreen=\"\"><\/iframe><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Ph\u1ea7n 1. T\u00ecm hi\u1ec3u kh\u00e1i ni\u1ec7m<\/h2>\n\n\n\n<p>Haiza, c\u1ee9 n\u00f3i \u0111\u1ebfn kh\u00e1i ni\u1ec7m tr\u00ean M\u00ec AI l\u00e0 l\u1ea1i th\u1ea5y sao sao. Nh\u01b0ng th\u00f4i, v\u1eabn ph\u1ea3i \u0111\u1ecbnh ngh\u0129a qua \u0111\u1ec3 c\u00e1c b\u1ea1n bi\u1ebft.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>MTCNN l\u00e0 vi\u1ebft t\u1eaft c\u1ee7a Multi-task Cascaded Convolutional Networks. N\u00f3 l\u00e0 bao g\u1ed3m 3 m\u1ea1ng CNN x\u1ebfp ch\u1ed3ng v\u00e0 \u0111\u1ed3ng th\u1eddi ho\u1ea1t \u0111\u1ed9ng khi detect khu\u00f4n m\u1eb7t. M\u1ed7i m\u1ea1ng c\u00f3 c\u1ea5u tr\u00fac kh\u00e1c nhau v\u00e0 \u0111\u1ea3m nhi\u1ec7m vai tr\u00f2 kh\u00e1c nhau trong task. \u0110\u1ea7u ra c\u1ee7a MTCNN l\u00e0 v\u1ecb tr\u00ed khu\u00f4n m\u1eb7t v\u00e0 c\u00e1c \u0111i\u1ec3m tr\u00ean m\u1eb7t nh\u01b0: m\u1eaft, m\u0169i, mi\u1ec7ng&#8230;<\/li><li>Facenet l\u00e0 c\u1ee7a \u00f4ng Google gi\u1edbi thi\u1ec7u n\u0103m 2015, v\u00e0 th\u1eb1ng model n\u00e0y th\u00ec m\u00ecnh c\u1ee9 nh\u00e9t \u1ea3nh v\u00e0o (\u0111\u00fang size c\u1ee7a n\u00f3) th\u00ec n\u00f3 tr\u1ea3 ra 1 vector 128 features cho 1 khu\u00f4n m\u1eb7t. Sau \u0111\u00f3 d\u00f9ng SVM \u0111\u1ec3 ph\u00e2n nh\u00f3m c\u00e1c vector \u0111\u00f3 v\u00e0o c\u00e1c nh\u00f3m \u0111\u1ec3 bi\u1ebft vector \u0111\u00f3 l\u00e0 m\u1eb7t c\u1ee7a ai.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.slidesharecdn.com\/fasterthanreal-timefacedetection-171018202250\/95\/faster-than-realtime-face-detection-67-638.jpg?cb=1508358262\" alt=\"\"\/><\/figure>\n\n\n\n<p>Th\u00f4i ch\u1eafc \u0111\u1ea1i kh\u00e1i th\u1ebf nh\u1ec9, anh em c\u1ea7n th\u00eam tin chi ti\u1ebft th\u00ec search google \u0111\u1ec3 t\u00ecm hi\u1ec3u th\u00eam ho\u1eb7c comment tr\u00ean group M\u00ec AI \u0111\u1ec3 c\u00f9ng trao \u0111\u1ed5i nh\u00e9.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ph\u1ea7n 2. Chu\u1ea9n b\u1ecb nguy\u00ean v\u1eadt li\u1ec7u<\/h2>\n\n\n\n<p><strong><span style=\"text-decoration: underline;\">T\u1ea1o th\u01b0 m\u1ee5c v\u00e0 clone git:<\/span><\/strong><\/p>\n\n\n\n<p>Nh\u01b0 th\u01b0\u1eddng l\u1ec7, anh em t\u1ea1o 1 th\u01b0 muc <strong>MiAI_FaceRecog_<\/strong>2 \u0111\u1ec3 l\u01b0u t\u1ea5t c\u1ea3 c\u00e1c m\u00f3n c\u1ee7a b\u00e0i n\u00e0y nh\u00e9. Sau khi t\u1ea1o xong, anh em g\u00f5 l\u1ec7nh sau \u0111\u1ec3 l\u1ea5y m\u00e3 ngu\u1ed3n v\u1ec1:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>git clone https:\/\/github.com\/thangnch\/MiAI_FaceRecog_3 .<\/code>\nM\u00ecnh edit l\u1ea1i th\u00e0nh MiAI_FaceRecog_3 \u0111\u1ec3 ch\u1ea1y t\u1ed1t tr\u00ean TF 2.x<\/pre>\n\n\n\n<p>Ch\u00fa \u00fd c\u00f3 d\u1ea5u ch\u1ea5m cu\u1ed1i d\u00f2ng nh\u00e9.<\/p>\n\n\n\n<p>B\u00e2y gi\u1edd c\u00e1c b\u1ea1n t\u1ea1o c\u00e1c th\u01b0 m\u1ee5c nh\u01b0 sau:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>T\u1ea1o th\u01b0 m\u1ee5c Dataset trong M\u00ecAI_FaceReg_2, trong \u0111\u00f3 t\u1ea1o ti\u1ebfp th\u01b0 m\u1ee5c FaceData v\u00e0 d\u01b0\u1edbi FaceData l\u00e0 t\u1ea1o ti\u1ebfp 2 th\u01b0 m\u1ee5c raw v\u00e0 processed. <\/li><li>T\u1ea1o th\u01b0 m\u1ee5c Models trong M\u00ecAI_FaceReg_2 \u0111\u1ec3 ch\u1edd s\u1eb5n t\u1eb9o l\u01b0u model sau.<\/li><\/ul>\n\n\n\n<p><strong><span style=\"text-decoration: underline;\">Chu\u1ea9n b\u1ecb \u1ea3nh khu\u00f4n m\u1eb7t \u0111\u1ec3 train<\/span><\/strong><\/p>\n\n\n\n<p>B\u00e2y gi\u1edd c\u00e1c b\u1ea1n s\u01b0u t\u1ea7m \u1ea3nh c\u1ee7a 2 ng\u01b0\u1eddi tr\u1edf l\u00ean, m\u1ed7i ng\u01b0\u1eddi 10 t\u1ea5m h\u00ecnh r\u00f5 m\u1eb7t (t\u1ea1m ch\u1ea5p nh\u1eadn y\u00eau c\u1ea7u hi\u1ec7n t\u1ea1i c\u1ee7a b\u00e0i n\u00e0y l\u00e0 at least 2 ng\u01b0\u1eddi nh\u00e9, m\u00ecnh s\u1ebd t\u00ecm hi\u1ec3u th\u00eam sau). M\u00ecnh v\u00ed d\u1ee5 2 ng\u01b0\u1eddi t\u00ean l\u00e0 NguyenVanA v\u00e0 LeThiB nh\u00e9. C\u00e1c b\u1ea1n t\u1ea1o 02 th\u01b0 m\u1ee5c NguyenVanA v\u00e0 LeThiB trong th\u01b0 m\u1ee5c raw v\u00e0 copy \u1ea3nh c\u1ee7a 2 ng\u01b0\u1eddi v\u00e0o ri\u00eang 2 th\u01b0 m\u1ee5c \u0111\u00f3, \u1ea3nh c\u1ee7a ai v\u00e0o th\u01b0 m\u1ee5c c\u1ee7a ng\u01b0\u1eddi \u0111\u00f3 nh\u00e9.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/1710\/1*JXHl6ZElK8oooC1aMxiH_g.png\" alt=\"face collection\"\/><figcaption>V\u00ed d\u1ee5 v\u1ec1 c\u00e1c \u1ea3nh c\u1ea7n s\u01b0u t\u1ea7m. Ngu\u1ed3n: <a href=\"https:\/\/towardsdatascience.com\/\">https:\/\/towardsdatascience.com<\/a><\/figcaption><\/figure>\n\n\n\n<p><span style=\"text-decoration: underline;\"><em>Ch\u00fa \u00fd<\/em><\/span>: Trong c\u00e1c \u1ea3nh b\u1ea1n s\u01b0u t\u1ea7m, ch\u1ec9 c\u00f3 \u0111\u00fang 1 khu\u00f4n m\u1eb7t c\u1ee7a ng\u01b0\u1eddi \u0111\u00f3, ko \u0111\u01b0\u1ee3c c\u00f3 qu\u00e1 1 khu\u00f4n m\u1eb7t\/\u1ea3nh nh\u00e9.<\/p>\n\n\n\n<p>V\u00ed d\u1ee5 c\u00e2y th\u01b0 m\u1ee5c c\u1ee7a m\u00ecnh \u0111\u1ec3 c\u00e1c b\u1ea1n tham kh\u1ea3o:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">|-FaceData\n   |---processed\n   |-----Hacd\n   |-----ThangnC\n   |---raw\n   |-----Hacd\n   |-----ThangnC<\/pre>\n\n\n\n<p><strong><span style=\"text-decoration: underline;\">C\u00e0i \u0111\u1eb7t c\u00e1c th\u01b0 vi\u1ec7n c\u1ea7n thi\u1ebft<\/span><\/strong><\/p>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<!-- InPost_Ad -->\n<ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-5095883280136027\" data-ad-slot=\"7735063137\" data-ad-format=\"auto\" data-full-width-responsive=\"true\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<p>C\u00e1c b\u1ea1n \u0111\u1ee9ng \u1edf th\u01b0 m\u1ee5c MiAI_FaceRecog_2 ch\u1ea1y l\u1ec7nh sau \u0111\u1ec3 c\u00e0i t\u1ea5t c\u1ea3 c\u00e1c th\u01b0 vi\u1ec7n c\u1ea7n thi\u1ebft:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>pip install -r requirements.txt<\/code><\/pre>\n\n\n\n<p><strong><span style=\"text-decoration: underline;\">Ti\u1ec1n x\u1eed l\u00fd d\u1eef li\u1ec7u \u0111\u1ec3 c\u1eaft khu\u00f4n m\u1eb7t t\u1eeb \u1ea3nh g\u1ed1c<\/span><\/strong><\/p>\n\n\n\n<p>V\u1edbi ch\u1ed7 \u1ea3nh m\u00e0 b\u1ea1n \u0111\u00e3 s\u01b0u t\u1ea7m b\u00ean tr\u00ean, c\u00f3 th\u1ec3 l\u00e0 \u1ea3nh c\u1ea3 ng\u01b0\u1eddi, b\u00e2y gi\u1edd ch\u00fang ta s\u1ebd c\u1eaft ri\u00eang khu\u00f4n m\u1eb7t ra \u0111\u1ec3 train nh\u00e9. C\u00e1c b\u1ea1n chuy\u1ec3n v\u1ec1 th\u01b0 m\u1ee5c MiAI_FaceRecog_2 v\u00e0 ch\u1ea1y l\u1ec7nh :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>python src\/align_dataset_mtcnn.py  Dataset\/FaceData\/raw Dataset\/FaceData\/processed --image_size 160 --margin 32  --random_order --gpu_memory_fraction 0.25<\/code><\/pre>\n\n\n\n<p>Ch\u1ea1y xong th\u1ea5y n\u00f3 hi\u1ec3n th\u1ecb d\u1ea1ng &#8220;Total number of images: &#8230;&#8221; l\u00e0 th\u00e0nh c\u00f4ng r\u1ed3i \u0111\u00f3. C\u00e1c b\u1ea1n \u0111\u1ec3 \u00fd s\u1ebd th\u1ea5y c\u00f3 th\u00eam th\u01b0 m\u1ee5c processed c\u00f3 c\u1ea5u tr\u00fac t\u01b0\u01a1ng t\u1ef1 th\u01b0 m\u1ee5c raw nh\u01b0ng ch\u1ec9 ch\u1ee9a d\u1eef li\u1ec7u khu\u00f4n m\u1eb7t d\u00e3 \u0111\u01b0\u1ee3c x\u1eed l\u00fd. V\u00ed d\u1ee5 nh\u01b0 \u1ea3nh d\u01b0\u1edbi:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/1250\/1*aJ_ia5QDYVgb530tVzgyFQ.png\" alt=\"face detection\"\/><figcaption>Ti\u1ec1n x\u1eed l\u00fd \u1ea3nh. Ngu\u1ed3n : <a href=\"https:\/\/towardsdatascience.com\/\">https:\/\/towardsdatascience.com<\/a><\/figcaption><\/figure>\n\n\n\n<p><strong><span style=\"text-decoration: underline;\">T\u1ea3i d\u1eef li\u1ec7u pretrain c\u1ee7a Facenet v\u1ec1 m\u00e1y:<\/span><\/strong><\/p>\n\n\n\n<p>C\u00e1c b\u1ea1n t\u1ea3i weights pretrain v\u1ec1 t\u1ea1i link n\u00e0y : <strong><a href=\"https:\/\/bit.ly\/3ixQH7o\" target=\"_blank\" rel=\"noreferrer noopener\">T\u1ea1i \u0111\u00e2y<\/a><\/strong> (n\u1ebfu c\u00f3 kh\u00f3 kh\u0103n khi t\u1ea3i, c\u00e1c b\u1ea1n b\u1ea5m <strong><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/youtu.be\/29fDVKAKS-8\" target=\"_blank\">v\u00e0o \u0111\u00e2y<\/a><\/strong> \u0111\u1ec3 xem h\u01b0\u1edbng d\u1eabn nh\u00e9). Sau khi t\u1ea3i xong v\u1ec1, c\u00e1c b\u1ea1n copy to\u00e0n b\u1ed9 file t\u1ea3i v\u1ec1 v\u00e0o th\u01b0 m\u1ee5c Models, <span style=\"text-decoration: underline;\"><strong>c<\/strong><\/span><strong><span style=\"text-decoration: underline;\">h\u00fa \u00fd ch\u1ec9 l\u1ea5y file, b\u1ecf h\u1ebft c\u00e1c th\u01b0 m\u1ee5c nh\u01b0 h\u00ecnh b\u00ean d\u01b0\u1edbi c\u1ee7a m\u00ecnh<\/span><\/strong> (kh\u00f4ng c\u00f3 file facemodel.pkl nh\u01b0 b\u00ean d\u01b0\u1edbi \u0111\u00e2u nh\u00e9, m\u00ecnh ch\u1ee5p nh\u1ea7m ch\u00fat). <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/XTjO0wy3hr6CAnbp_t0dcqNnURaeEPg5Xdr8uwilMhy38t8ef5gmpaIRsNiLHU4nfi2S3dfpcb01Ga4Vmz3V_fF0mGHQN8kDF5SMEeZ_s3PXBNseQVKReOfTHr8xBcj3eWKoMDjUDPhucGiO-MA2s-UxlykRSoy4l99aSJInbzqwMmRRJUHUvDBaa8Mjsjett8o6dV5PN86okTGRcf4vPgXGqO0o5zwGWLGYY_SISXoKB7D2W0YiwekxdTVUKI3NSCAp0RPWtDbvL8SgbkJVcyaaeOOmiIfhPminsjKeCxuZ1G51f39QFTHWE7UJFV-3gGacdcSrBmvTFpyUbUVU2og8IZ_tpitNeRgK681fBiEstYxXXeJG6-y9m6zfjsx0GYaunYj5EmLS71myqUdtHFLOr_KyQhdy5AI4GuG_fRnzFsnCwLzZMKDYS4Gwv5o7Wnla_Smbl2zRKJcP0j0jUTL66au23XGngIZD1GhGUz1nIqWmPGEYXLl4iWgyBTTQbCqnkeuGsfWXaE31JoX7NSLqm9HDrFPwzmLRaK-fOlSVirUf2PSvlMCWbuqKTgw80-eb3Vb4e_Q2ICAH1Ajs26tgqZoEfsT_58GAg3NYQGoWMfJg_By5bewBuiyPpnIjl4iPwF1yUPdZxcfiAhNX4pd4-HkHHfwaPIdvq_UKzo8QuH3x1g3QZe4fS-QC--NEAQu8qiUyMeVwhrKc5jBz7_DWaJJTXjF6Su1d1qYigTp6zxaz=w920-h260-no\" alt=\"model facenet pretrain\"\/><\/figure>\n\n\n\n<p>Okie r\u1ed3i, v\u1eady l\u00e0 c\u00e1c c\u00f4ng cu\u1ed9c chu\u1ea9n b\u1ecb nguy\u00ean li\u1ec7u v\u00e0 s\u01a1 ch\u1ebf \u0111\u00e3 xong. B\u00e2y gi\u1edd sang b\u01b0\u1edbc Train th\u00f4i n\u00e0o. N\u1ee9ng qu\u00e1 r\u1ed3i!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ph\u1ea7n 3. Ti\u1ebfn h\u00e0nh train model \u0111\u1ec3 nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t<\/h2>\n\n\n\n<p>B\u00e2y gi\u1edd c\u00e1c b\u1ea1n chuy\u1ec3n v\u1ec1 th\u01b0 m\u1ee5c <strong>MiAI_FaceRecog_2<\/strong> n\u1ebfu \u0111ang \u0111\u1ee9ng \u1edf th\u01b0 m\u1ee5c kh\u00e1c nh\u00e9. Sau \u0111\u00f3 ch\u1ea1y l\u1ec7nh train:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>python src\/classifier.py TRAIN Dataset\/FaceData\/processed Models\/20180402-114759.pb Models\/facemodel.pkl --batch_size 1000<\/code><\/pre>\n\n\n\n<p>B\u00e2y gi\u1edd c\u00e1c b\u1ea1n \u0111i l\u1ea5y m\u1ed9t t\u00e1ch tr\u00e0 v\u00e0 ng\u1ed3i \u0111\u1ee3i nh\u00e9, khi n\u00e0o m\u00e0n h\u00ecnh hi\u1ec7n l\u00ean ch\u1eef &#8220;Saved classifier model to file &#8220;Models\/facemodel.pkl&#8221; l\u00e0 done! Ch\u00fang ta \u0111\u00e3 train xong r\u1ed3i, t\u1eadn h\u01b0\u1edfng th\u00e0nh qu\u1ea3 th\u00f4i.<\/p>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<!-- InPost_Ad -->\n<ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-5095883280136027\" data-ad-slot=\"7735063137\" data-ad-format=\"auto\" data-full-width-responsive=\"true\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<h2 class=\"wp-block-heading\">Ph\u1ea7n 4. T\u1eadn h\u01b0\u1edfng th\u00e0nh qu\u1ea3<\/h2>\n\n\n\n<p>H\u00f4m nay ch\u00fang ta s\u1ebd ki\u1ec3m th\u1eed model \u0111\u00e3 train v\u1edbi 2 ngu\u1ed3n video: m\u1ed9t l\u00e0 t\u1eeb webcam v\u00e0 2 l\u00e0 nh\u1eadn di\u1ec7n trong m\u1ed9t file video c\u00f3 s\u1eb5n. B\u1eaft \u0111\u1ea7u nh\u00e9<\/p>\n\n\n\n<p>Ki\u1ec3m th\u1eed v\u1edbi webcam:<\/p>\n\n\n\n<p>C\u00e1c b\u1ea1n ch\u1ea1y file face_rec_cam.py b\u1eb1ng l\u1ec7nh sau:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>python src\/face_rec_cam.py <\/code><\/pre>\n\n\n\n<p>B\u1ea1n \u0111\u1ee3i model load 1 ch\u00fat v\u00e0 m\u00e0n h\u00ecnh webcam s\u1ebd hi\u1ec7n l\u00ean nh\u01b0 sau, nh\u1eadn chu\u1ea9n ra ph\u1ebft \ud83d\ude00<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/wu1fTiVBEpIHmHhuCAZJrB6gRv-57al47SuTRIDNUJIAJyWWsDSGoCUo7sS-O3wCqXb-TF7EU3y3tmxZmR9Le4EpsrRMbldKb1tG-3gLuVoec2TiFd2K7MBriyCTEsMW8fU0T5-fTGkdhlg_6U7IneBHk2f6duvcZg8kQ-MUuQmZNwITAvs1L5Oh044-SFRC7r5B3-U2o_G0ggfsJlI4RJfe9YRrgwkZKnmn7vYhq5Gd8RvyCM_NKjHQKSLu7LiGlVJDxWyzZ6JQK3bzJCoSLDyfVCWtj7X9SUnfYVTTEmjOxexA-5DyllGIjv9cTpfvWL65_o_O16Dqbzvs99oMpPo20wQomDmhlY-cThjlNG7n7srDs4vWYy8WK1-ZvPJTeoJnVLpPV0uVhdqDD7rcuFDTpZpk9qvNgwrufV4zbfCKOkye3SikWx8gW_lsadPWddrZOSjAsKzp7hd7PgHkbJiny4apezfdgzGE65UC1mUseRZi4T1If37YKeHXGE_dqTUGBKqvHascC5Cr5kYy1QpDOuh9CqTst9i3A6A2c0sVFGy90l_rxIUgXYbG52LMp-N-KUV0lf1hOC5ztig--Q9OmkO0vGiSOjvbMrnDjQEwecwRL4E1SECzlFL0de9EqmUIglPpdMd20ggckQ0c-1BNFgDSKfNtz1YJMyPszg5t7EkvC3ti6i8L1EBDtC3GQ-2HXQ24sq_OEwl7xYvqCDjp-8zl4AAjLTu68z_GJWAfU08q=w1632-h1088-no\" alt=\"\"\/><\/figure>\n\n\n\n<p>R\u1ed3i b\u00e2y gi\u1edd ch\u00fang ta th\u1eed nh\u1eadn di\u1ec7n qua video xem sao nh\u00e9. C\u00e1c b\u1ea1n ch\u1ea1y l\u1ec7nh:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>python src\/face_rec.py --path video\/camtest.mp4 <\/code><\/pre>\n\n\n\n<p>Ch\u00fa \u00fd \u1edf \u0111\u00e2y m\u00ecnh v\u00ed d\u1ee5 v\u1edbi file camtest.mp4 c\u1ee7a m\u00ecnh, c\u00e1c b\u1ea1n c\u00f3 th\u1ec3 th\u1eed v\u1edbi b\u1ea5t k\u00ec file video n\u00e0o c\u1ee7a c\u00e1c b\u1ea1n. Ch\u00fa \u00fd l\u00e0 gi\u1ea3m \u0111\u1ed9 ph\u00e2n gi\u1ea3i xu\u1ed1ng t\u1ea7m 320&#215;200 ho\u1eb7c 640&#215;480 n\u1ebfu m\u00e1y b\u1ea1n kh\u00f4ng c\u00f3 GPU ho\u1eb7c c\u1ea5u h\u00ecnh th\u1ea5p nh\u00e9, ko l\u00e0 gi\u1eadt tung l\u00ean \u0111\u1ea5y \ud83d\ude00<\/p>\n\n\n\n<p>V\u00e0 \u0111\u00e2y l\u00e0 th\u00e0nh qu\u1ea3 c\u1ee7a ch\u00fang ta, c\u00e1c b\u1ea1n h\u00e3y xem video b\u00ean d\u01b0\u1edbi nh\u00e9:<\/p>\n\n\n\n<style>.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }<\/style><div class=\"embed-container\"><iframe src=\"https:\/\/www.youtube.com\/embed\/\/hYkunu_2c7c\" frameborder=\"0\" allowfullscreen=\"\"><\/iframe><\/div>\n\n\n\n<p>R\u1ed3i nh\u01b0 v\u1eady c\u00e1c b\u1ea1n \u0111\u00e3 s\u1edf h\u1eefu c\u1ed9ng c\u1ee5 &#8220;g\u1ea7n nh\u01b0 m\u1ea1nh nh\u1ea5t&#8221; hi\u1ec7n nay \u0111\u1ec3 ph\u00e1t hi\u1ec7n khu\u00f4n m\u1eb7t, c\u00e1c h\u1ec7 th\u1ed1ng ch\u1ea5m c\u00f4ng \u0111\u01a1n gi\u1ea3n \u0111\u00e3 c\u00f3 th\u1ec3 ch\u1ea1y \u0111\u01b0\u1ee3c r\u1ed3i. M\u00ecnh r\u1ea5t mong c\u00f3 nhi\u1ec1u h\u1ec7 th\u1ed1ng th\u1ef1c \u0111\u01b0\u1ee3c c\u00e1c b\u1ea1n tri\u1ec3n khai t\u1eeb sample n\u00e0y. N\u1ebfu c\u00f3 th\u00e0nh qu\u1ea3 ho\u1eb7c c\u00f3 kh\u00f3 kh\u0103n g\u00ec, c\u00e1c b\u1ea1n c\u1ee9 chia s\u1ebb c\u00f9ng M\u00ec AI tr\u00ean group nh\u00e9: Group trao \u0111\u1ed5i, chia s\u1ebb: <a rel=\"noreferrer noopener\" aria-label=\"https:\/\/www.facebook.com\/groups\/miaigroup (opens in a new tab)\" href=\"https:\/\/www.facebook.com\/groups\/miaigroup\" target=\"_blank\">https:\/\/www.facebook.com\/groups\/miaigroup<\/a>&nbsp;.<\/p>\n\n\n\n<p>C\u00f2n b\u00e2y gi\u1edd, xin t\u1ea1m bi\u1ec7t. Trong b\u00e0i sau m\u00ecnh s\u1ebd vi\u1ebft v\u1ec1 1 v\u1ea5n \u0111\u1ec1 l\u00e0 ch\u1ed1ng gi\u1ea3 m\u1ea1o b\u1eb1ng h\u00ecnh \u1ea3nh\/video trong nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t nh\u00e9.<\/p>\n\n\n\n<p><strong>Ch\u00fac c\u00e1c b\u1ea1n vui v\u1ebb v\u00e0 th\u00e0nh c\u00f4ng!<\/strong><\/p>\n\n\n\n<p>Fanpage: <a rel=\"noreferrer noopener\" aria-label=\"http:\/\/facebook.com\/miaiblog (opens in a new tab)\" href=\"http:\/\/facebook.com\/miaiblog\" target=\"_blank\">http:\/\/facebook.com\/miaiblog<\/a><br>Group trao \u0111\u1ed5i, chia s\u1ebb: <a rel=\"noreferrer noopener\" aria-label=\"https:\/\/www.facebook.com\/groups\/miaigroup (opens in a new tab)\" href=\"https:\/\/www.facebook.com\/groups\/miaigroup\" target=\"_blank\">https:\/\/www.facebook.com\/groups\/miaigroup<\/a><br>Website: <a href=\"https:\/\/miai.vn\/\">https:\/\/miai.vn\/<\/a><br>Youtube: <a rel=\"noreferrer noopener\" aria-label=\"http:\/\/bit.ly\/miaiyoutube (opens in a new tab)\" href=\"http:\/\/bit.ly\/miaiyoutube\" target=\"_blank\">http:\/\/bit.ly\/miaiyoutube<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello xin ch\u00e0o c\u00e1c anh em M\u00ec AI Blog, sau b\u00e0i \u0111\u1ea7u ti\u00ean v\u1ec1 nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t t\u1ea1i \u0111\u00e2y https:\/\/miai.vn\/2019\/08\/13\/face-recognize-thu-lam-he-thong-cham-cong-bang-nhan-dang-khuon-mat\/, r\u1ea5t nhi\u1ec1u anh em c\u00f3 comment l\u00e0 ph\u01b0\u01a1ng ph\u00e1p tri\u1ec3n khai, thu\u1eadt to\u00e1n trong b\u00e0i \u0111\u00f3 c\u00f3 \u0111\u1ed9 ch\u00ednh x\u00e1c ch\u01b0a cao. M\u00ecnh x\u00e1c nh\u1eadn \u0111i\u1ec1u \u0111\u00f3, nh\u01b0ng khi m\u1edbi h\u1ecdc th\u00ec n\u00ean b\u1eaft [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[19,26,21,79,80,35,81,23,82],"class_list":["post-287","post","type-post","status-publish","format-standard","hentry","category-computer-vision","tag-ai","tag-computer-vision","tag-deep-learning","tag-face-detection","tag-face-recognition","tag-face-recognize","tag-facenet","tag-machine-learning","tag-mtcnn"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>M\u00ec AI - Nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t trong video b\u1eb1ng MTCNN v\u00e0 Facenet<\/title>\n<meta name=\"description\" content=\"H\u00f4m nay m\u00ecnh s\u1ebd gi\u1edbi thi\u1ec7u c\u00f9ng c\u00e1c b\u1ea1n m\u1ed9t b\u00e0i to\u00e1n nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t s\u1eed d\u1ee5ng c\u00f4ng ngh\u1ec7 m\u1edbi h\u01a1n nh\u01b0: ph\u00e1t hi\u1ec7n khu\u00f4n m\u1eb7t b\u1eb1ng MTCNN v\u00e0 Facenet.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/miai.vn\/?p=287\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"M\u00ec AI - Nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t trong video b\u1eb1ng MTCNN v\u00e0 Facenet\" \/>\n<meta property=\"og:description\" content=\"H\u00f4m nay m\u00ecnh s\u1ebd gi\u1edbi thi\u1ec7u c\u00f9ng c\u00e1c b\u1ea1n m\u1ed9t b\u00e0i to\u00e1n nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t s\u1eed d\u1ee5ng c\u00f4ng ngh\u1ec7 m\u1edbi h\u01a1n nh\u01b0: ph\u00e1t hi\u1ec7n khu\u00f4n m\u1eb7t b\u1eb1ng MTCNN v\u00e0 Facenet.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/miai.vn\/?p=287\" \/>\n<meta property=\"og:site_name\" content=\"M\u00ec AI\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-10T20:34:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/image.slidesharecdn.com\/fasterthanreal-timefacedetection-171018202250\/95\/faster-than-realtime-face-detection-67-638.jpg?cb=1508358262\" \/>\n<meta name=\"author\" content=\"Ch\u1ee7 ti\u1ec7m M\u00ec\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ch\u1ee7 ti\u1ec7m M\u00ec\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=287#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=287\"},\"author\":{\"name\":\"Ch\u1ee7 ti\u1ec7m M\u00ec\",\"@id\":\"https:\\\/\\\/miai.vn\\\/#\\\/schema\\\/person\\\/cc8bc24bb90bd3f596add82f3a59948c\"},\"headline\":\"[Face Recog 2.0] Nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t trong video b\u1eb1ng MTCNN v\u00e0 Facenet\",\"datePublished\":\"2019-09-10T20:34:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=287\"},\"wordCount\":1803,\"commentCount\":95,\"publisher\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=287#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/image.slidesharecdn.com\\\/fasterthanreal-timefacedetection-171018202250\\\/95\\\/faster-than-realtime-face-detection-67-638.jpg?cb=1508358262\",\"keywords\":[\"ai\",\"computer vision\",\"deep learning\",\"face detection\",\"face recognition\",\"face recognize\",\"Facenet\",\"machine learning\",\"MTCNN\"],\"articleSection\":[\"Computer Vision\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/miai.vn\\\/?p=287#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=287\",\"url\":\"https:\\\/\\\/miai.vn\\\/?p=287\",\"name\":\"M\u00ec AI - Nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t trong video b\u1eb1ng MTCNN v\u00e0 Facenet\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=287#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=287#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/image.slidesharecdn.com\\\/fasterthanreal-timefacedetection-171018202250\\\/95\\\/faster-than-realtime-face-detection-67-638.jpg?cb=1508358262\",\"datePublished\":\"2019-09-10T20:34:54+00:00\",\"description\":\"H\u00f4m nay m\u00ecnh s\u1ebd gi\u1edbi thi\u1ec7u c\u00f9ng c\u00e1c b\u1ea1n m\u1ed9t b\u00e0i to\u00e1n nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t s\u1eed d\u1ee5ng c\u00f4ng ngh\u1ec7 m\u1edbi h\u01a1n nh\u01b0: ph\u00e1t hi\u1ec7n khu\u00f4n m\u1eb7t b\u1eb1ng MTCNN v\u00e0 Facenet.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=287#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/miai.vn\\\/?p=287\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=287#primaryimage\",\"url\":\"https:\\\/\\\/image.slidesharecdn.com\\\/fasterthanreal-timefacedetection-171018202250\\\/95\\\/faster-than-realtime-face-detection-67-638.jpg?cb=1508358262\",\"contentUrl\":\"https:\\\/\\\/image.slidesharecdn.com\\\/fasterthanreal-timefacedetection-171018202250\\\/95\\\/faster-than-realtime-face-detection-67-638.jpg?cb=1508358262\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=287#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/miai.vn\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Face Recog 2.0] Nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t trong video b\u1eb1ng MTCNN v\u00e0 Facenet\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/miai.vn\\\/#website\",\"url\":\"https:\\\/\\\/miai.vn\\\/\",\"name\":\"M\u00ec AI\",\"description\":\"H\u1ecdc AI theo c\u00e1ch M\u00ec \u0103n li\u1ec1n!\",\"publisher\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/miai.vn\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/miai.vn\\\/#organization\",\"name\":\"M\u00ec AI\",\"url\":\"https:\\\/\\\/miai.vn\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/miai.vn\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/miai.vn\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/cropped-Logo_w_slogan.png\",\"contentUrl\":\"https:\\\/\\\/miai.vn\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/cropped-Logo_w_slogan.png\",\"width\":240,\"height\":193,\"caption\":\"M\u00ec AI\"},\"image\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/miai.vn\\\/#\\\/schema\\\/person\\\/cc8bc24bb90bd3f596add82f3a59948c\",\"name\":\"Ch\u1ee7 ti\u1ec7m M\u00ec\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b0b5124b0d2c0a8054d7127d2c236bdc3dc7a50e2d4e8728ab32eee5b122a8d1?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b0b5124b0d2c0a8054d7127d2c236bdc3dc7a50e2d4e8728ab32eee5b122a8d1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b0b5124b0d2c0a8054d7127d2c236bdc3dc7a50e2d4e8728ab32eee5b122a8d1?s=96&d=mm&r=g\",\"caption\":\"Ch\u1ee7 ti\u1ec7m M\u00ec\"},\"sameAs\":[\"https:\\\/\\\/miai.vn\"],\"url\":\"https:\\\/\\\/miai.vn\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"M\u00ec AI - Nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t trong video b\u1eb1ng MTCNN v\u00e0 Facenet","description":"H\u00f4m nay m\u00ecnh s\u1ebd gi\u1edbi thi\u1ec7u c\u00f9ng c\u00e1c b\u1ea1n m\u1ed9t b\u00e0i to\u00e1n nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t s\u1eed d\u1ee5ng c\u00f4ng ngh\u1ec7 m\u1edbi h\u01a1n nh\u01b0: ph\u00e1t hi\u1ec7n khu\u00f4n m\u1eb7t b\u1eb1ng MTCNN v\u00e0 Facenet.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/miai.vn\/?p=287","og_locale":"en_US","og_type":"article","og_title":"M\u00ec AI - Nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t trong video b\u1eb1ng MTCNN v\u00e0 Facenet","og_description":"H\u00f4m nay m\u00ecnh s\u1ebd gi\u1edbi thi\u1ec7u c\u00f9ng c\u00e1c b\u1ea1n m\u1ed9t b\u00e0i to\u00e1n nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t s\u1eed d\u1ee5ng c\u00f4ng ngh\u1ec7 m\u1edbi h\u01a1n nh\u01b0: ph\u00e1t hi\u1ec7n khu\u00f4n m\u1eb7t b\u1eb1ng MTCNN v\u00e0 Facenet.","og_url":"https:\/\/miai.vn\/?p=287","og_site_name":"M\u00ec AI","article_published_time":"2019-09-10T20:34:54+00:00","og_image":[{"url":"https:\/\/image.slidesharecdn.com\/fasterthanreal-timefacedetection-171018202250\/95\/faster-than-realtime-face-detection-67-638.jpg?cb=1508358262","type":"","width":"","height":""}],"author":"Ch\u1ee7 ti\u1ec7m M\u00ec","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ch\u1ee7 ti\u1ec7m M\u00ec","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/miai.vn\/?p=287#article","isPartOf":{"@id":"https:\/\/miai.vn\/?p=287"},"author":{"name":"Ch\u1ee7 ti\u1ec7m M\u00ec","@id":"https:\/\/miai.vn\/#\/schema\/person\/cc8bc24bb90bd3f596add82f3a59948c"},"headline":"[Face Recog 2.0] Nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t trong video b\u1eb1ng MTCNN v\u00e0 Facenet","datePublished":"2019-09-10T20:34:54+00:00","mainEntityOfPage":{"@id":"https:\/\/miai.vn\/?p=287"},"wordCount":1803,"commentCount":95,"publisher":{"@id":"https:\/\/miai.vn\/#organization"},"image":{"@id":"https:\/\/miai.vn\/?p=287#primaryimage"},"thumbnailUrl":"https:\/\/image.slidesharecdn.com\/fasterthanreal-timefacedetection-171018202250\/95\/faster-than-realtime-face-detection-67-638.jpg?cb=1508358262","keywords":["ai","computer vision","deep learning","face detection","face recognition","face recognize","Facenet","machine learning","MTCNN"],"articleSection":["Computer Vision"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/miai.vn\/?p=287#respond"]}]},{"@type":"WebPage","@id":"https:\/\/miai.vn\/?p=287","url":"https:\/\/miai.vn\/?p=287","name":"M\u00ec AI - Nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t trong video b\u1eb1ng MTCNN v\u00e0 Facenet","isPartOf":{"@id":"https:\/\/miai.vn\/#website"},"primaryImageOfPage":{"@id":"https:\/\/miai.vn\/?p=287#primaryimage"},"image":{"@id":"https:\/\/miai.vn\/?p=287#primaryimage"},"thumbnailUrl":"https:\/\/image.slidesharecdn.com\/fasterthanreal-timefacedetection-171018202250\/95\/faster-than-realtime-face-detection-67-638.jpg?cb=1508358262","datePublished":"2019-09-10T20:34:54+00:00","description":"H\u00f4m nay m\u00ecnh s\u1ebd gi\u1edbi thi\u1ec7u c\u00f9ng c\u00e1c b\u1ea1n m\u1ed9t b\u00e0i to\u00e1n nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t s\u1eed d\u1ee5ng c\u00f4ng ngh\u1ec7 m\u1edbi h\u01a1n nh\u01b0: ph\u00e1t hi\u1ec7n khu\u00f4n m\u1eb7t b\u1eb1ng MTCNN v\u00e0 Facenet.","breadcrumb":{"@id":"https:\/\/miai.vn\/?p=287#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/miai.vn\/?p=287"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/miai.vn\/?p=287#primaryimage","url":"https:\/\/image.slidesharecdn.com\/fasterthanreal-timefacedetection-171018202250\/95\/faster-than-realtime-face-detection-67-638.jpg?cb=1508358262","contentUrl":"https:\/\/image.slidesharecdn.com\/fasterthanreal-timefacedetection-171018202250\/95\/faster-than-realtime-face-detection-67-638.jpg?cb=1508358262"},{"@type":"BreadcrumbList","@id":"https:\/\/miai.vn\/?p=287#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/miai.vn\/"},{"@type":"ListItem","position":2,"name":"[Face Recog 2.0] Nh\u1eadn di\u1ec7n khu\u00f4n m\u1eb7t trong video b\u1eb1ng MTCNN v\u00e0 Facenet"}]},{"@type":"WebSite","@id":"https:\/\/miai.vn\/#website","url":"https:\/\/miai.vn\/","name":"M\u00ec AI","description":"H\u1ecdc AI theo c\u00e1ch M\u00ec \u0103n li\u1ec1n!","publisher":{"@id":"https:\/\/miai.vn\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/miai.vn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/miai.vn\/#organization","name":"M\u00ec AI","url":"https:\/\/miai.vn\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/miai.vn\/#\/schema\/logo\/image\/","url":"https:\/\/miai.vn\/wp-content\/uploads\/2026\/05\/cropped-Logo_w_slogan.png","contentUrl":"https:\/\/miai.vn\/wp-content\/uploads\/2026\/05\/cropped-Logo_w_slogan.png","width":240,"height":193,"caption":"M\u00ec AI"},"image":{"@id":"https:\/\/miai.vn\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/miai.vn\/#\/schema\/person\/cc8bc24bb90bd3f596add82f3a59948c","name":"Ch\u1ee7 ti\u1ec7m M\u00ec","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b0b5124b0d2c0a8054d7127d2c236bdc3dc7a50e2d4e8728ab32eee5b122a8d1?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b0b5124b0d2c0a8054d7127d2c236bdc3dc7a50e2d4e8728ab32eee5b122a8d1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b0b5124b0d2c0a8054d7127d2c236bdc3dc7a50e2d4e8728ab32eee5b122a8d1?s=96&d=mm&r=g","caption":"Ch\u1ee7 ti\u1ec7m M\u00ec"},"sameAs":["https:\/\/miai.vn"],"url":"https:\/\/miai.vn\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/miai.vn\/index.php?rest_route=\/wp\/v2\/posts\/287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/miai.vn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/miai.vn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/miai.vn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/miai.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=287"}],"version-history":[{"count":0,"href":"https:\/\/miai.vn\/index.php?rest_route=\/wp\/v2\/posts\/287\/revisions"}],"wp:attachment":[{"href":"https:\/\/miai.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/miai.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/miai.vn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}