{"id":300960,"date":"2020-03-30T15:00:13","date_gmt":"2020-03-30T15:00:13","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=300960"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=300960","title":{"rendered":"\u00ab\u0412\u044b \u0443\u0436 \u043f\u0440\u043e\u0441\u0442\u0438\u0442\u0435, \u043e\u0431\u043e\u0437\u043d\u0430\u043b\u0441\u044f&#8230;\u00bb \u0438\u043b\u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0435\u043c \u043c\u0430\u043b\u0438\u043d\u0443 \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Tensorflow Object Detection API"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/494804\/\">\u0412 \u043a\u043e\u043d\u0446\u0435 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0433\u043e\u0434\u0430, \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b <a href=\"https:\/\/habr.com\/ru\/post\/478208\/\">\u0441\u0442\u0430\u0442\u044c\u044e,<\/a> \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u0431\u044b\u043b \u0437\u0430\u0438\u043d\u0442\u0440\u0438\u0433\u043e\u0432\u0430\u043d \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439. \u0412 \u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e PyTorch \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e \u043b\u0438\u0431\u043e \u044f\u0433\u043e\u0434\u0443 \u043c\u0430\u043b\u0438\u043d\u0443, \u043b\u0438\u0431\u043e \u0430\u0440\u0434\u0443\u0438\u043d\u043e-\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440. \u0418 \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e PyTorch \u043c\u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0441\u044f, \u043e\u0431\u0440\u0430\u0442\u0438\u043b\u0441\u044f \u044f \u043a \u043d\u0435\u043c\u0443 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043d\u0435 \u0441\u043c\u043e\u0433 \u0441 \u043d\u0430\u0441\u043a\u043e\u043a\u0430 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 TensorFlow. \u041d\u043e \u044f \u043f\u043e\u043e\u0431\u0435\u0449\u0430\u043b, \u0447\u0442\u043e \u0435\u0449\u0451 \u0432\u0435\u0440\u043d\u0443\u0441\u044c \u043a \u0432\u043e\u043f\u0440\u043e\u0441\u0443 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e. \u041a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043e\u0431\u0435\u0449\u0430\u043d\u0438\u0435.<\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043d\u0430 \u0441\u0432\u043e\u0435\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0434\u043e\u043e\u0431\u0443\u0447\u0438\u0442\u044c \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0432 Tensorflow 1.13 \u0438 Object Detection API \u043d\u0430 \u043d\u0430\u0448\u0435\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u043d\u0430\u0431\u043e\u0440\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0430 \u043f\u043e\u0442\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0435\u0451 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u044f\u0433\u043e\u0434 \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432, \u0432 \u0432\u0438\u0434\u0435\u043e\u043f\u043e\u0442\u043e\u043a\u0435 \u0432\u0435\u0431-\u043a\u0430\u043c\u0435\u0440\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e OpenCV.<\/p>\n<p>  \u0425\u043e\u0442\u0438\u0442\u0435 \u043a \u043b\u0435\u0442\u0443 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u043d\u0430\u0432\u044b\u043a \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u044f\u0433\u043e\u0434? \u0422\u043e\u0433\u0434\u0430 \u043c\u0438\u043b\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fu\/do\/rd\/fudordve5xz-8gwdnbvlnkkjusm.png\"><br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435:<br \/>  <a href=\"#I\"> \u0427\u0430\u0441\u0442\u044c I: \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435 <\/a><br \/>  <a href=\"#II\"> \u0427\u0430\u0441\u0442\u044c II: \u043e\u0431\u0443\u0447\u0430\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u044c \u0432 TenosrFlow<\/a><br \/>  <a href=\"#III\"> \u0427\u0430\u0441\u0442\u044c III: \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u044c \u0432 OpenCV <\/a><br \/>  <a href=\"#IV\"> \u0427\u0430\u0441\u0442\u044c IV: \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 <\/a><br \/>  <a name=\"I\"><\/a>  <\/p>\n<h2>\u0427\u0430\u0441\u0442\u044c I: \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u0422\u0435 \u043a\u0442\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b\u0441\u044f \u0441 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u043f\u0440\u043e PyTorch, \u0443\u0436\u0435 \u0437\u043d\u0430\u044e\u0442, \u0447\u0442\u043e \u044f \u0434\u0438\u043b\u0435\u0442\u0430\u043d\u0442 \u0432 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u0445 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c, \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e, \u043a\u0430\u043a \u0438\u0441\u0442\u0438\u043d\u0443 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0438\u043d\u0441\u0442\u0430\u043d\u0446\u0438\u0438. \u041d\u043e \u0442\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u044f \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u0441\u043c\u043e\u0433\u0443 \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043c\u043e\u0447\u044c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u0430\u0437\u0430\u043c\u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0432\u0438\u0434\u0435\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Tensorflow Object Detection API.<\/p>\n<p>  <i>\u0412 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u044f \u043d\u0435 \u0441\u0442\u0440\u0435\u043c\u0438\u043b\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0442\u0430\u0442\u044c\u044f \u0432\u044b\u0439\u0434\u0435\u0442 \u043a\u043e\u0440\u043e\u0447\u0435 \u0447\u0435\u043c \u043e\u0431\u044b\u0447\u043d\u043e. <\/i><br \/>  \u041d\u0430\u0447\u043d\u0443 \u0441 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e <a href=\"https:\/\/github.com\/tensorflow\/models\/blob\/master\/research\/object_detection\/g3doc\/running_locally.md\" rel=\"nofollow\"> \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b <\/a> \u043f\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044e Object Detection API \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u043c\u044f\u0433\u043a\u043e \u0433\u043e\u0432\u043e\u0440\u044f \u0441\u043b\u043e\u0436\u043d\u043e \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u0438\u0441\u0447\u0435\u0440\u043f\u044b\u0432\u0430\u044e\u0449\u0438\u043c. \u041c\u043d\u0435, \u043a\u0430\u043a \u043d\u043e\u0432\u0438\u0447\u043a\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0431\u044b\u043b\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 \u0431\u043b\u043e\u0433\u0430\u0445.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0447\u0435\u0441\u0442\u043d\u043e \u043c\u043d\u0435 \u0431\u044b \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c TensorFlow 2.0, \u043d\u043e \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0439, \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u0431\u044b\u043b\u0438 \u043d\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0435\u0448\u0435\u043d\u044b \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0438\u0442\u043e\u0433\u0435 \u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u043d\u0430 TF 1.13.2. <br \/>  <a name=\"II\"><\/a>  <\/p>\n<h2>\u0427\u0430\u0441\u0442\u044c II: \u043e\u0431\u0443\u0447\u0430\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u044c \u0432 TensorFlow <\/h2>\n<p>  \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044e \u043c\u043e\u0434\u0435\u043b\u0438 \u044f \u0447\u0435\u0440\u043f\u0430\u043b <a href=\"https:\/\/towardsdatascience.com\/training-tensorflow-object-detection-api-with-custom-dataset-for-working-in-javascript-and-vue-js-6634e0f33e03\" rel=\"nofollow\">\u0438\u0437 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 <\/a>, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u0438\u0437 \u0435\u0451 \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u044b, \u0434\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f JavaScript <i>(\u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0432\u043b\u0430\u0434\u0435\u0435\u0442\u0435 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u043c, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e \u043d\u0430 \u044d\u0442\u0443 \u0436\u0435 \u0442\u0435\u043c\u0443 <a href=\"https:\/\/habr.com\/ru\/company\/nix\/blog\/422353\/\">\u043d\u0430 \u0425\u0430\u0431\u0440\u0435<\/a>)<\/i>.<\/p>\n<p>  \u041f\u0440\u0430\u0432\u0434\u0430 \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u043b\u0438\u0447\u0438\u0439:  <\/p>\n<ol>\n<li>\u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b Linux, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 Anaconda \u0434\u043b\u044f Linux \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 protobuf \u0438 pycocoapi, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043d\u0435 \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0445 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u043c\u0443.<\/li>\n<li>\u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0432\u0435\u0440\u0441\u0438\u044e TensorFlow 1.13.2, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u0435\u0442\u043a\u0443 <a href=\"https:\/\/github.com\/tensorflow\/models\/tree\/r1.13.0\" rel=\"nofollow\">Object Detection API 1.13<\/a> \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0442\u043a\u0430 \u0432\u044b\u0434\u0430\u0432\u0430\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0443 \u0441 TensorFlow 1.13.2. \u0422\u0435\u043a\u0443\u0449\u0443\u044e \u0432\u0435\u0442\u043a\u0443 master \u043c\u043d\u0435 \u0432\u0440\u043e\u0434\u0435 \u0431\u044b \u0443\u0434\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 TF 1.15, \u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u044f \u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u0438 1.13.<\/li>\n<li>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0440\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e numpy \u2014 1.17.5, \u0432\u0435\u0440\u0441\u0438\u044f 1.18 \u0432\u044b\u0437\u044b\u0432\u0430\u043b\u0430 \u0443 \u043c\u0435\u043d\u044f \u043e\u0448\u0438\u0431\u043a\u0443.<\/li>\n<li>\u0412\u043c\u0435\u0441\u0442\u043e \u043c\u043e\u0434\u0435\u043b\u0438 faster_rcnn_inception_v2_coco \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/github.com\/tensorflow\/models\/blob\/master\/research\/object_detection\/g3doc\/detection_model_zoo.md\" rel=\"nofollow\">ssd_mobilenet_v2_coco<\/a>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u0443\u0434\u0443\u0442 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043d\u043e \u0432\u0441\u0451 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438.<\/li>\n<\/ol>\n<p>   \u0422\u0430\u043a \u0436\u0435 \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439, \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u044f \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u0435\u043b\u044c. \u041e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u044f\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430.<\/p>\n<p>  \u041d\u0430\u0431\u043e\u0440 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b, \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0439 \u0433\u0440\u0430\u0444, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e OpenCV, \u043a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0441 <a href=\"https:\/\/github.com\/bosonbeard\/Funny-models-and-scripts\/tree\/master\/3.Machine_learning\/4.neural_networks\/2.%20tensorflow_object_detection_webcam\" rel=\"nofollow\">GitHub<\/a>.<\/p>\n<p>  \u041f\u0440\u043e\u0448\u043b\u0438 \u0434\u043e\u043b\u0433\u0438\u0435 23 \u0447\u0430\u0441\u0430 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0438, \u0432\u0435\u0441\u044c \u0447\u0430\u0439 \u0432 \u0434\u043e\u043c\u0435 \u0443\u0436\u0435 \u0432\u044b\u043f\u0438\u0442, \u201c\u0427\u0442\u043e? \u0413\u0434\u0435? \u041a\u043e\u0433\u0434\u0430?\u201d \u0434\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e \u0438 \u0432\u043e\u0442 \u043c\u043e\u0435 \u0442\u0435\u0440\u043f\u0435\u043d\u0438\u0435 \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u043e\u0448\u043b\u043e \u043a \u043a\u043e\u043d\u0446\u0443.<\/p>\n<p>  \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u044c.<\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0432 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u201c\u0410\u043d\u0430\u043a\u043e\u043d\u0434\u044b\u201d OpenCV, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<p>  <code>conda install -c conda-forge opencv<\/code><\/p>\n<p>  \u0423 \u043c\u0435\u043d\u044f \u0432 \u0438\u0442\u043e\u0433\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044f 4.2<\/p>\n<p>  \u0414\u0430\u043b\u044c\u0448\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 <a href=\"https:\/\/towardsdatascience.com\/training-tensorflow-object-detection-api-with-custom-dataset-for-working-in-javascript-and-vue-js-6634e0f33e03\" rel=\"nofollow\">\u0438\u0437 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 <\/a> \u043d\u0430\u043c \u0443\u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u043e\u0434\u043d\u0443 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u0443\u044e \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043e\u0448\u0438\u0431\u043a\u0443, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0440\u0430\u043d\u0435\u0435 \u0432 \u043f\u0430\u043f\u043a\u0435 training\/ \u0444\u0430\u0439\u043b graph.pbtxt \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n<pre><code class=\"python\">cv2.dnn.readNetFromTensorflow()<\/code><\/pre>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u044d\u0442\u043e \u0442\u0430\u043a \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u043d\u0443 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u044e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c graph.pbtxt \u0434\u043b\u044f OpenCV.<\/p>\n<p>  \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0442\u043e \u0447\u0442\u043e \u044f \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u043e\u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431, \u043d\u043e \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>  \u0421\u043a\u0430\u0447\u0430\u0435\u043c <a href=\"https:\/\/github.com\/opencv\/opencv\/blob\/master\/samples\/dnn\/tf_text_graph_ssd.py\" rel=\"nofollow\">tf_text_graph_ssd.py<\/a>, \u0430 \u0442\u0430\u043a\u0436\u0435 <a href=\"https:\/\/github.com\/opencv\/opencv\/blob\/master\/samples\/dnn\/tf_text_graph_common.py\" rel=\"nofollow\">tf_text_graph_common.py<\/a> \u043f\u043e\u043b\u043e\u0436\u0438\u043c \u0438\u0445 \u0432 \u043f\u0430\u043f\u043a\u0443, \u0433\u0434\u0435 \u043b\u0435\u0436\u0438\u0442 \u043d\u0430\u0448 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0439 \u0433\u0440\u0430\u0444 (\u0443 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u043f\u0430\u043f\u043a\u0430 inference_graph).<br \/>  \u0417\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0432 \u044d\u0442\u0443 \u043f\u0430\u043f\u043a\u0443 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0438\u0437 \u043d\u0435\u0451 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f:<\/p>\n<p>  <code>python tf_text_graph_ssd.py --input frozen_inference_graph.pb --config pipeline.config --output frozen\/graph.pbtxt<\/code><\/p>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0451 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043d\u0430\u0448\u0443 \u043c\u043e\u0434\u0435\u043b\u044c \u0432 OpenCV.<\/p>\n<p>  <a name=\"III\"><\/a>  <\/p>\n<h2>\u0427\u0430\u0441\u0442\u044c III: \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u044c \u0432 OpenCV <\/h2>\n<p>  \u041a\u0430\u043a \u0438 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u0440\u043e PyTorch \u0432 \u0447\u0430\u0441\u0442\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 OpenCV \u044f \u0431\u0440\u0430\u043b \u0437\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u043a\u043e\u0434 \u0438\u0437 <a href=\"https:\/\/proglib.io\/p\/real-time-object-detection\/\" rel=\"nofollow\">\u044d\u0442\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438<\/a>.<\/p>\n<p>  \u042f \u0432\u043d\u0435\u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u0435\u0433\u043e \u0435\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c, \u043d\u043e \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u044f \u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u043a\u043e\u0434, \u0442\u043e \u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0435 \u0431\u0443\u0434\u0443. \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u0441\u043b\u0430\u0432\u043d\u043e.<i>\u041f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u043a\u043e\u0434 \u043c\u043e\u0433 \u0431\u044b \u0431\u044b\u0442\u044c \u0438 \u043b\u0443\u0447\u0448\u0435, \u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043a\u0430 \u043d\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0441\u0435\u0441\u0442\u044c \u0437\u0430 \u0443\u0447\u0435\u0431\u043d\u0438\u043a\u0438 \u043f\u043e OpenCV <\/i>.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 OpenCV<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\"> # USAGE # based on this code https:\/\/proglib.io\/p\/real-time-object-detection\/ # import the necessary packages from imutils.video import VideoStream from imutils.video import FPS import numpy as np import imutils import time import cv2  prototxt=&quot;graph.pbtxt&quot; model=&quot;frozen_inference_graph.pb&quot; min_confidence = 0.5  # initialize the list of class labels MobileNet SSD was trained to # detect, then generate a set of bounding box colors for each class CLASSES = [&quot;background&quot;, &quot;duino&quot;,&quot;raspb&quot;] COLORS = [(40,50,60),((140,55,130)),(240,150,25)]  # load our serialized model from disk print(&quot;[INFO] loading model...&quot;)  net =cv2.dnn.readNetFromTensorflow(model,prototxt)  # initialize the video stream, allow the cammera sensor to warmup, # and initialize the FPS counter print(&quot;[INFO] starting video stream...&quot;) vs = VideoStream(src=0).start() time.sleep(0.5) fps = FPS().start()  # loop over the frames from the video stream while True: \t# grab the frame from the threaded video stream and resize it \t# to have a maximum width of 400 pixels \tframe = vs.read() \tframe = imutils.resize(frame, width=300)  \t# grab the frame dimensions and convert it to a blob \t(h, w) = frame.shape[:2] \tblob = cv2.dnn.blobFromImage(frame, size=(300, 300), swapRB=True)  \t# pass the blob through the network and obtain the detections and \t# predictions \tnet.setInput(blob) \tdetections = net.forward()  \t# loop over the detections \tfor i in np.arange(0, detections.shape[2]): \t\t# extract the confidence (i.e., probability) associated with \t\t# the prediction \t\tprint (detections) \t\tconfidence = detections[0, 0, i, 2]  \t\tif confidence &gt; min_confidence: \t\t\t# extract the index of the class label from the \t\t\t# `detections`, then compute the (x, y)-coordinates of \t\t\t# the bounding box for the object \t\t\tidx = int(detections[0, 0, i, 1]) \t\t\tbox = detections[0, 0, i, 3:7] * np.array([w, h, w, h]) \t\t\t(startX, startY, endX, endY) = box.astype(&quot;int&quot;)  \t\t\t# draw the prediction on the frame \t\t\tlabel = &quot;{}: {:.2f}%&quot;.format(CLASSES[idx], \t\t\t\tconfidence * 100) \t\t\tcv2.rectangle(frame, (startX, startY), (endX, endY), \t\t\t\tCOLORS[idx], 2) \t\t\ty = startY - 15 if startY - 15 &gt; 15 else startY + 15 \t\t\tcv2.putText(frame, label, (startX, y+3), \t\t\t\tcv2.FONT_HERSHEY_SIMPLEX, 0.5, COLORS[idx], 1)  \t# show the output frame \tcv2.imshow(&quot;Frame&quot;, frame) \tkey = cv2.waitKey(1) &amp; 0xFF  \t# if the `q` key was pressed, break from the loop \tif key == ord(&quot;q&quot;): \t\tbreak  \t# update the FPS counter \tfps.update()  # stop the timer and display FPS information fps.stop() print(&quot;[INFO] elapsed time: {:.2f}&quot;.format(fps.elapsed())) print(&quot;[INFO] approx. FPS: {:.2f}&quot;.format(fps.fps()))  # do a bit of cleanup cv2.destroyAllWindows() vs.stop() <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0418\u0442\u0430\u043a, \u0432\u0441\u0451 \u0433\u043e\u0442\u043e\u0432\u043e. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u044c, \u043d\u0430\u0432\u043e\u0434\u0438\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0438\u0432 \u043d\u0430 \u043c\u043e\u044e \u0441\u0442\u0430\u0440\u0435\u043d\u044c\u043a\u0443\u044e CraftDuino \u0438 \u0440\u0430\u0434\u0443\u0435\u043c\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/bw\/hj\/yd\/bwhjyd9pddoeop9yaz7fxbqozzo.png\"><\/p>\n<p>  \u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0434\u0443\u0440\u043d\u043e, \u043d\u043e \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434.<br \/>  \u041f\u043e\u0445\u043e\u0436\u0435 \u0437\u0430 23 \u0447\u0430\u0441\u0430, \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0435\u0440\u0435\u043e\u0431\u0443\u0447\u0438\u043b\u0430\u0441\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b\u0434\u0430\u0435\u0442 \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u0440\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. <\/p>\n<p>  \u0412\u043e\u0442 \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u0430\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/1w\/3y\/gf\/1w3ygfo-ufytpuyct1kaarpsgls.png\"><\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u043e\u0436\u0438\u043a, \u043d\u043e \u0434\u0430\u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0447\u0435\u0440\u043d\u044b\u0439 \u0444\u043e\u043d, \u044d\u0442\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043a\u0430\u043a \u0430\u0440\u0434\u0443\u0438\u043d\u043e-\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u0441\u0451 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0432 \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043e\u0447\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u044b\u043b\u0438 \u0442\u0435\u043c\u043d\u044b\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0441 Arduino \u0438 \u0435\u0433\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0430\u043c\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u044c \u0437\u0430 23 \u0447\u0430\u0441\u0430 \u0443\u0441\u043f\u0435\u043b\u0430 \u043d\u0430\u0442\u0430\u0441\u043a\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0435\u0449\u0435 \u043d\u0430 8 \u0447\u0430\u0441\u043e\u0432 \u0438 \u043e\u0431\u0443\u0447\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c.<\/p>\n<p>  \u0421 \u043d\u0435\u0439 \u0434\u0435\u043b\u0430 \u043e\u0431\u0441\u0442\u043e\u044f\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043b\u0443\u0447\u0448\u0435.<\/p>\n<p>  \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0441 CraftDuino:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/_c\/8m\/62\/_c8m62y2q6as-l8sun5ah5ivppk.png\"><\/p>\n<p>  \u0416\u0438\u0432\u043e\u0439 \u043c\u0430\u043b\u0438\u043d\u044b \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u0434 \u0440\u0443\u043a\u043e\u0439 \u043d\u0435\u0442. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438. \u0421 \u044d\u043a\u0440\u0430\u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0438\u043b\u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0430 \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c, \u043d\u043e \u0441 \u0431\u0443\u043c\u0430\u0433\u0438 \u0431\u044b\u043b\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0439.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/63\/_k\/ou\/63_koujmchte7jor0ulqzxcvgcs.png\"><\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u043a\u0430\u043a \u043c\u043e\u0434\u0435\u043b\u044c \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0435\u0442 Arduino nano, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432 \u0441\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f <a href=\"https:\/\/habr.com\/ru\/users\/drzugrik\/\" class=\"user_link\">DrZugrik<\/a> \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0432\u043f\u0430\u044f\u043b \u0432 \u0441\u0432\u043e\u0435 \u043c\u0435\u0433\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u0430\u043c\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ub\/33\/61\/ub3361ozwkiwvl2sosx6yldvsou.png\"><\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0435\u0442 \u0432\u043f\u043e\u043b\u043d\u0435 \u0445\u043e\u0440\u043e\u0448\u043e, \u043e\u0434\u043d\u0430\u043a\u043e \u043f\u0440\u0438 \u043e\u0447\u0435\u043d\u044c \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u043e\u043c \u0440\u0430\u043a\u0443\u0440\u0441\u0435 \u0438 \u043f\u0440\u0438 \u0442\u0435\u043f\u043b\u043e\u043c \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u0438\u0438, \u043c\u043e\u0436\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c, \u043a\u0430\u043a \u043c\u0430\u043b\u0438\u043d\u0443. \u041d\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043a\u0430\u0434\u0440 \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439 \u0431\u044b\u043b\u043e \u0442\u044f\u0436\u0435\u043b\u043e \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u0438\u0432.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u043a\u0430\u043a \u043e\u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 \u0442\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435 \u043e\u0431\u0443\u0447\u0430\u043b\u0430\u0441\u044c.<\/p>\n<p>  \u0421\u043d\u043e\u0432\u0430 \u043f\u0440\u0438\u043c\u0435\u0440 \u0441 \u043d\u043e\u0436\u043e\u043c \u0438 \u0447\u0435\u0440\u043d\u044b\u043c \u0444\u043e\u043d\u043e\u043c:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/io\/ja\/6a\/ioja6aexferclondu4228nsr06y.png\"><\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043a\u0430\u043a \u043d\u0430\u0434\u043e.<\/p>\n<p>  \u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043c \u043d\u0430\u0448\u0435\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 Canny 3 tiny, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044f \u043f\u0438\u0441\u0430\u043b \u0432 <a href=\"https:\/\/habr.com\/ru\/post\/489764\/\">\u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a>. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/xp\/ay\/14\/xpay14o7clhp1y1twu4vyltiay4.png\"><\/p>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0430\u0448\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u043d\u0438 \u043e \u0447\u0435\u043c, \u043a\u0440\u043e\u043c\u0435 \u044f\u0433\u043e\u0434\u044b \u043c\u0430\u043b\u0438\u043d\u044b \u0438 \u0430\u0440\u0434\u0443\u0438\u043d\u043e-\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043b\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 Canny \u0432\u043f\u043e\u043b\u043d\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e.<\/p>\n<p>  \u041f\u0440\u0430\u0432\u0434\u0430, \u043a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 Arduino nano, \u043c\u043d\u043e\u0433\u043e\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0440\u0430\u043a\u0443\u0440\u0441\u0430 \u0438 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u041f\u0440\u0438 \u0442\u0435\u043f\u043b\u043e\u043c \u0441\u0432\u0435\u0442\u0435 \u043b\u0430\u043c\u043f\u044b \u043d\u0430\u043a\u0430\u043b\u0438\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u0440\u0438 \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u043e\u043c \u0440\u0430\u043a\u0443\u0440\u0441\u0435, \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u044c\u0441\u044f, \u043d\u043e \u0434\u0430\u0436\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u043c\u0430\u043b\u0438\u043d\u0430. \u041f\u0440\u0430\u0432\u0434\u0430, \u043a\u0430\u043a \u0438 \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u044d\u0442\u0438 \u0440\u0430\u043a\u0443\u0440\u0441\u044b \u0435\u0449\u0435 \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0439\u043c\u0430\u0442\u044c \u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u0438\u0432. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/01\/ut\/h_\/01uth_-raiwnzasg7ypn-aoxezs.png\"><\/p>\n<p>  \u041d\u0443 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u2014 \u0441\u0432\u043e\u0435\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u0439 \u0440\u0435\u0432\u0435\u0440\u0430\u043d\u0441 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u0440\u043e <a href=\"https:\/\/habr.com\/ru\/post\/478208\/#V\">\u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0432 PyTorch<\/a>. \u041a\u0430\u043a \u0438 \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0432 \u043e\u0434\u043d\u043e\u043c \u043a\u0430\u0434\u0440\u0435 \u043e\u0434\u043d\u043e\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 Raspberry Pi 2 \u0438 \u0435\u0433\u043e \u043b\u043e\u0433\u043e\u0442\u0438\u043f. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u0440\u0435\u0448\u0430\u043b\u0438 \u0437\u0430\u0434\u0430\u0447\u0443 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u043b\u0438 \u043e\u0434\u0438\u043d \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u0434\u043b\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0435\u0442\u0441\u044f \u0438 \u043b\u043e\u0433\u043e\u0442\u0438\u043f \u0438 \u0441\u0430\u043c\u0430 \u00ab\u041c\u0430\u043b\u0438\u043d\u0430\u00bb.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vx\/fv\/us\/vxfvusfgitn6vk1pe6o4rvoen9i.png\"><\/p>\n<p>  <a name=\"IV\"><\/a>  <\/p>\n<h2> \u0427\u0430\u0441\u0442\u044c IV: \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 <\/h2>\n<p>  \u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043f\u043e \u043d\u0435\u043e\u043f\u044b\u0442\u043d\u043e\u0441\u0442\u0438 \u044d\u0442\u043e\u0442 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Tensorflow Object Detection API \u043e\u0442\u043d\u044f\u043b \u0443 \u043c\u0435\u043d\u044f \u043e\u0431\u0430 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0445 \u0438 \u0447\u0430\u0441\u0442\u044c \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a\u0430, \u044f \u043d\u0438 \u043e \u0447\u0435\u043c \u043d\u0435 \u0436\u0430\u043b\u0435\u044e. \u041a\u043e\u0433\u0434\u0430 \u0445\u043e\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u0448\u0441\u044f, \u043a\u0430\u043a \u044d\u0442\u0438\u043c \u0432\u0441\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0431\u0435\u0437\u0443\u043c\u043d\u043e \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u043e. \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0448\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u043c\u043e\u0434\u0435\u043b\u0438, \u043a\u0430\u043a \u043a \u0436\u0438\u0432\u043e\u0439, \u0441\u043b\u0435\u0434\u0438\u0448\u044c \u0437\u0430 \u0435\u0451 \u0443\u0441\u043f\u0435\u0445\u0430\u043c\u0438 \u0438 \u043d\u0435\u0443\u0434\u0430\u0447\u0430\u043c\u0438. <br \/>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0432\u0441\u0435\u043c \u043a\u0442\u043e \u0441 \u044d\u0442\u0438\u043c \u043d\u0435 \u0437\u043d\u0430\u043a\u043e\u043c \u0445 \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c, \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u0432\u043e\u0435.<\/p>\n<p>  \u0422\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u043a\u0430\u043a \u0432\u044b\u0441\u043d\u0438\u043b\u043e\u0441\u044c \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435, \u0432\u0430\u043c \u0434\u0430\u0436\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0443\u044e \u0432\u0435\u0431-\u043a\u0430\u043c\u0435\u0440\u0443. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u044f \u0443\u043c\u0443\u0434\u0440\u0438\u043b\u0441\u044f \u0434\u043e\u043b\u043e\u043c\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u0432\u0435\u0431-\u043a\u0430\u043c\u0435\u0440\u0443 (\u0441\u043b\u043e\u043c\u0430\u043b \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0444\u043e\u043a\u0443\u0441\u0438\u0440\u043e\u0432\u043a\u0438) \u0438 \u0443\u0436\u0435 \u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0432\u0441\u0451 \u0437\u0430\u0431\u0440\u043e\u0441\u0438\u0442\u044c. \u041d\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Droidcam \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d \u0432\u043c\u0435\u0441\u0442\u043e \u0432\u0435\u0431-\u043a\u0430\u043c\u0435\u0440\u044b (\u043d\u0435 \u0441\u043e\u0447\u0442\u0438\u0442\u0435 \u0437\u0430 \u0440\u0435\u043a\u043b\u0430\u043c\u0443). \u041f\u0440\u0438\u0447\u0435\u043c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u044a\u0435\u043c\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u0438\u043b\u044c\u043d\u043e \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u0443 \u0441\u043b\u043e\u043c\u0430\u0432\u0448\u0435\u0439\u0441\u044f \u043a\u0430\u043c\u0435\u0440\u044b, \u0430 \u044d\u0442\u043e \u0432\u0435\u0441\u044c\u043c\u0430 \u0432\u043b\u0438\u044f\u043b\u043e \u043d\u0430 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0438.<\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438 \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 Anaconda \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0431\u043e\u0440\u043a\u0443 <b>pycocotools<\/b> \u044f \u043d\u0430\u0448\u0435\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f Linux, \u0430 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u0435\u0436\u0434\u0443 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438 \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u043b\u0435\u043d\u044c, \u0442\u043e \u0432\u0441\u044e \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e \u044f \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c o\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c. \u041d\u0430\u0448\u043b\u0438\u0441\u044c \u0430\u043d\u0430\u043b\u043e\u0433\u0438 \u0438 Word \u0438 Photoshop \u0438 \u0434\u0430\u0436\u0435 \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0434\u043b\u044f \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0430. \u041f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 \u0432 \u043c\u043e\u0435\u0439 \u0436\u0438\u0437\u043d\u0438 \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0442\u0430\u043a\u043e\u0435, \u043a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u041e\u0421 Linux \u0438 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u043c, \u0434\u0430\u0436\u0435 \u0434\u043b\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0431\u043e\u043b\u0435\u0435 25 \u043b\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u041e\u0421 \u043e\u0442 Microsoft.<\/p>\n<p>  P.S. \u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u0437\u043d\u0430\u0435\u0442, \u043a\u0430\u043a \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Object Detection API<br \/>  \u0434\u043b\u044f Tensorflow \u0432\u0435\u0440\u0441\u0438\u0438 2 \u0438 \u0432\u044b\u0448\u0435, \u043e\u0442\u043f\u0438\u0448\u0438\u0442\u0435\u0441\u044c \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u0432 \u043b\u0438\u0447\u043a\u0443 \u0438\u043b\u0438 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438.<\/p>\n<p>  \u0412\u0441\u0435\u043c \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u0434\u043d\u044f \u0438 \u043a\u0440\u0435\u043f\u043a\u043e\u0433\u043e \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f!<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/494804\/\"> https:\/\/habr.com\/ru\/post\/494804\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/494804\/\">\u0412 \u043a\u043e\u043d\u0446\u0435 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0433\u043e\u0434\u0430, \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b <a href=\"https:\/\/habr.com\/ru\/post\/478208\/\">\u0441\u0442\u0430\u0442\u044c\u044e,<\/a> \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u0431\u044b\u043b \u0437\u0430\u0438\u043d\u0442\u0440\u0438\u0433\u043e\u0432\u0430\u043d \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439. \u0412 \u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e PyTorch \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e \u043b\u0438\u0431\u043e \u044f\u0433\u043e\u0434\u0443 \u043c\u0430\u043b\u0438\u043d\u0443, \u043b\u0438\u0431\u043e \u0430\u0440\u0434\u0443\u0438\u043d\u043e-\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440. \u0418 \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e PyTorch \u043c\u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0441\u044f, \u043e\u0431\u0440\u0430\u0442\u0438\u043b\u0441\u044f \u044f \u043a \u043d\u0435\u043c\u0443 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043d\u0435 \u0441\u043c\u043e\u0433 \u0441 \u043d\u0430\u0441\u043a\u043e\u043a\u0430 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 TensorFlow. \u041d\u043e \u044f \u043f\u043e\u043e\u0431\u0435\u0449\u0430\u043b, \u0447\u0442\u043e \u0435\u0449\u0451 \u0432\u0435\u0440\u043d\u0443\u0441\u044c \u043a \u0432\u043e\u043f\u0440\u043e\u0441\u0443 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e. \u041a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043e\u0431\u0435\u0449\u0430\u043d\u0438\u0435.<\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043d\u0430 \u0441\u0432\u043e\u0435\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0434\u043e\u043e\u0431\u0443\u0447\u0438\u0442\u044c \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0432 Tensorflow 1.13 \u0438 Object Detection API \u043d\u0430 \u043d\u0430\u0448\u0435\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u043d\u0430\u0431\u043e\u0440\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0430 \u043f\u043e\u0442\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0435\u0451 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u044f\u0433\u043e\u0434 \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432, \u0432 \u0432\u0438\u0434\u0435\u043e\u043f\u043e\u0442\u043e\u043a\u0435 \u0432\u0435\u0431-\u043a\u0430\u043c\u0435\u0440\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e OpenCV.<\/p>\n<p>  \u0425\u043e\u0442\u0438\u0442\u0435 \u043a \u043b\u0435\u0442\u0443 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u043d\u0430\u0432\u044b\u043a \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u044f\u0433\u043e\u0434? \u0422\u043e\u0433\u0434\u0430 \u043c\u0438\u043b\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fu\/do\/rd\/fudordve5xz-8gwdnbvlnkkjusm.png\">  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-300960","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/300960","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=300960"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/300960\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=300960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=300960"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=300960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}