{"id":301442,"date":"2020-04-07T15:01:09","date_gmt":"2020-04-07T15:01:09","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=301442"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2020-04-07T15:01:09","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=301442","title":{"rendered":"\u041a\u0430\u043a \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u0440\u0430\u0437\u043c\u044b\u0442\u044b\u0445 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Python"},"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\/496134\/\"><i>\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0441\u0435\u0440\u0438\u044e \u0441\u043d\u0438\u043c\u043a\u043e\u0432, \u0447\u0430\u0441\u0442\u044c \u0438\u0437 \u043d\u0438\u0445 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u0447\u0435\u0442\u043a\u0438\u043c\u0438. \u0421 \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0430\u0441\u044c \u043a\u0440\u0443\u043f\u043d\u0430\u044f \u0430\u0432\u0442\u043e\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f. \u0427\u0430\u0441\u0442\u044c \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439 \u043f\u0440\u0438 \u043e\u0441\u043c\u043e\u0442\u0440\u0435 \u0430\u0432\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438\u0441\u044c \u0440\u0430\u0437\u043c\u044b\u0442\u043e\u0439, \u0447\u0442\u043e \u043c\u043e\u0433\u043b\u043e \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e \u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u0436\u0438. <\/p>\n<p>  \u041d\u0435\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0441\u043d\u0438\u043c\u043a\u0438 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0441\u043d\u0438\u0436\u0430\u044e\u0442 \u043f\u0440\u0438\u0431\u044b\u043b\u044c.<\/i><\/p>\n<ul>\n<li>\u041a\u0430\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u044c \u043d\u0435\u0447\u0435\u0442\u043a\u0438\u0435 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430?<\/li>\n<li>\u041a\u0430\u043a \u0438\u0437\u043c\u0435\u0440\u0438\u0442\u044c \u0447\u0435\u0442\u043a\u043e\u0441\u0442\u044c RGB-\u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f?<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/be\/p7\/1g\/bep71gaawmaf4thhfl5j7ig-1ze.jpeg\"\/><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/h3>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430\u044e \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u043e\u043c \u0432 \u043a\u0440\u0443\u043f\u043d\u043e\u0439 \u0430\u0432\u0442\u043e\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438. \u0418\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u044b \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043f\u0440\u0438 \u043e\u0441\u043c\u043e\u0442\u0440\u0435 \u0430\u0432\u0442\u043e\u043c\u043e\u0431\u0438\u043b\u044f \u0434\u0435\u043b\u0430\u044e\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043d\u043e\u0433\u043e \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0440\u0430\u0437\u0443 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043d\u0438\u043c\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u043d\u0435\u0447\u0435\u0442\u043a\u0438\u043c\u0438, \u0447\u0442\u043e \u043f\u043b\u043e\u0445\u043e \u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u0436\u0430\u0445.<\/p>\n<p>  \u041e\u0442\u0441\u044e\u0434\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0437\u0430\u0434\u0430\u0447\u0430: \u00ab\u043a\u0430\u043a \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u044c \u043d\u0435\u0447\u0435\u0442\u043a\u0438\u0435 \u0441\u043d\u0438\u043c\u043a\u0438?\u00bb<\/p>\n<p>  \u0420\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0432\u044b\u0431\u043e\u0440\u043a\u0438 \u0432 1200 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439 \u0440\u0430\u0437\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0430\u0432\u0442\u043e\u043c\u043e\u0431\u0438\u043b\u0435\u0439. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u044b\u0431\u043e\u0440\u043a\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u043e\u043d\u0430 \u043d\u0435 \u0440\u0430\u0437\u043c\u0435\u0447\u0435\u043d\u0430, \u0442.\u043a. \u0442\u0440\u0443\u0434\u043d\u043e \u0442\u043e\u0447\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u0441\u043d\u0438\u043c\u043a\u0438 \u0447\u0435\u0442\u043a\u0438\u0435, \u043a\u0430\u043a\u0438\u0435 \u043d\u0435\u0442.<\/p>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 ML-\u043c\u043e\u0434\u0435\u043b\u0438 \u00ab\u0441 \u0443\u0447\u0438\u0442\u0435\u043b\u0435\u043c\u00bb \u043a \u0440\u0435\u0448\u0435\u043d\u0438\u044e \u043d\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e.<\/p>\n<p>  \u0412 \u0445\u043e\u0434\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b:<\/p>\n<ul>\n<li><b>Python<\/b>. \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438: numpy, matplotlib, cv2;<\/li>\n<li><b>Jupyter<\/b> notebook.<\/li>\n<\/ul>\n<p>  \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043e\u043f\u0438\u0448\u0443 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u0435\u043b.<\/p>\n<h3>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u043a \u0440\u0435\u0448\u0435\u043d\u0438\u044e \u0437\u0430\u0434\u0430\u0447\u0438<\/h3>\n<p>  <\/p>\n<h4>\u042d\u0442\u0430\u043f 1. \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0433\u0440\u0430\u043d\u0438\u0446<\/h4>\n<p>  <i>\u041a\u0430\u043a\u0430\u044f \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0442\u043a\u043e\u0439?<\/i><br \/>  \u0422\u0430, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u044f\u0440\u043a\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u044b. \u0423 \u043d\u0435\u0447\u0435\u0442\u043a\u0438\u0445 \u0441\u043d\u0438\u043c\u043a\u043e\u0432 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0440\u0430\u0437\u043c\u044b\u0442\u044b. <\/p>\n<p>  <i>\u041a\u0430\u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 \u0441\u043d\u0438\u043c\u043a\u0435?<\/i><\/p>\n<p>  \u0413\u0440\u0430\u043d\u0438\u0446\u044b \u0442\u0430\u043c, \u0433\u0434\u0435 \u0432\u0438\u0434\u0438\u043c \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u043f\u0435\u0440\u0435\u043f\u0430\u0434 \u0446\u0432\u0435\u0442\u0430. <\/p>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0447\u0435\u0442\u043a\u043e\u0441\u0442\u0438 \u0441\u043d\u0438\u043c\u043a\u0430 \u0432\u043d\u0430\u0447\u0430\u043b\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439, \u043f\u043e\u0442\u043e\u043c \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u0438\u0445 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0443, \u0442\u043e\u043b\u0449\u0438\u043d\u0443, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438 \u0442.\u0434.<\/p>\n<p>  \u0424\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0442\u0440\u0435\u0445\u043c\u0435\u0440\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0447\u0438\u0441\u0435\u043b \u043e\u0442 0 \u0434\u043e 255: (\u0448\u0438\u0440\u0438\u043d\u0430, \u0432\u044b\u0441\u043e\u0442\u0430, 3 \u0446\u0432\u0435\u0442\u0430).<br \/>  \u0413\u0440\u0430\u043d\u0438\u0446\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b \u043d\u0430\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0444\u0438\u043b\u044c\u0442\u0440\u0430 \u043a\u0430\u043a \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0433\u043b\u0443\u0431\u043e\u043a\u043e\u0439 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438: \u043f\u0435\u0440\u0435\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0442\u0440\u0435\u0445\u043c\u0435\u0440\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b (\u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0446\u0432\u0435\u0442\u0443):<\/p>\n<pre><code class=\"plaintext\">    \u2502 1 -1 \u2502     \u2502 1 -1 \u2502 <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u043f\u0430\u0434\u0435 \u0446\u0432\u0435\u0442\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u0432\u044b\u0441\u043e\u043a\u043e\u0435 \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e \u0447\u0438\u0441\u043b\u043e.<br \/>  \u0422\u0430\u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0433\u0440\u0430\u043d\u0438\u0446\u044b. \u0421\u0440\u0435\u0434\u043d\u0435\u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043e\u0431\u0449\u0438\u0435 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438.<\/p>\n<h4>\u042d\u0442\u0430\u043f 2. \u0410\u043d\u0430\u043b\u0438\u0437 \u0433\u0440\u0430\u043d\u0438\u0446 \u043d\u0430 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u0447\u0435\u0442\u043a\u043e\u0441\u0442\u0438<\/h4>\n<p>  \u0413\u0440\u0430\u043d\u0438\u0446\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438. <\/p>\n<p>  <i>\u041a\u0430\u043a \u043e\u0442\u043b\u0438\u0447\u0438\u0442\u044c \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u043d\u0435\u0447\u0435\u0442\u043a\u043e\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043e\u0442 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0447\u0435\u0442\u043a\u043e\u0433\u043e?<\/i><\/p>\n<p>  \u041f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u044f \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b, \u043d\u0430\u0448\u0435\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434:<\/p>\n<ol>\n<li>\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 (\u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u044d\u0442\u0430\u043f\u0435 1);<\/li>\n<li>\u0440\u0430\u0437\u043c\u044b\u0432\u0430\u0435\u043c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435;<\/li>\n<li>\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0440\u0430\u0437\u043c\u044b\u0442\u043e\u0433\u043e \u0441\u043d\u0438\u043c\u043a\u0430 (\u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u044d\u0442\u0430\u043f\u0435 1);<\/li>\n<li>\u0441\u0447\u0438\u0442\u0430\u0435\u043c \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u043d\u0438\u0445 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0443\u043d\u043a\u0442\u0430 1 \u0438 \u043f\u0443\u043d\u043a\u0442\u0430 2;<\/li>\n<li>\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0437\u0443\u0435\u0442 \u0447\u0435\u0442\u043a\u043e\u0441\u0442\u044c \u0441\u043d\u0438\u043c\u043a\u0430.<\/li>\n<\/ol>\n<p>  \u041b\u043e\u0433\u0438\u043a\u0430 \u043f\u0440\u043e\u0441\u0442\u0430: \u0443 \u0447\u0435\u0442\u043a\u0438\u0445 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0433\u0440\u0430\u043d\u0438\u0446 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0435\u0435, \u0447\u0435\u043c \u0443 \u043d\u0435\u0447\u0435\u0442\u043a\u0438\u0445, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0448\u0435.<\/p>\n<h3>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0432 Python<\/h3>\n<p>  \u041d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:<\/p>\n<pre><code class=\"python\">import numpy as np import matplotlib.pyplot as plt import cv2 <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0433\u0440\u0430\u043d\u0438\u0446 \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u044b:<\/p>\n<pre><code class=\"python\">def edges(n, orient):     edges = np.ones((2*n, 2*n, 3))          if orient == 'vert':         for i in range(0, 2*n):             edges[i][n: 2*n] *= -1     elif orient == 'horiz':         edges[n: 2*n] *= -1          return edges <\/code><\/pre>\n<p>  \u041f\u043e\u0434 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c n \u0437\u0430\u0434\u0430\u0435\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432 \u043e\u0446\u0435\u043d\u043a\u0443 \u0433\u0440\u0430\u043d\u0438\u0446. \u041e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u043b\u0438 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0439.<\/p>\n<p>  \u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b \u0441\u043b\u043e\u044e \u0433\u043b\u0443\u0431\u043e\u043a\u043e\u0439 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438:<\/p>\n<pre><code class=\"python\"># Apply one filter defined by parameters W and single slice def conv_single_step(a_slice_prev, W):     s = W * a_slice_prev     Z = np.sum(s)     Z = np.abs(Z)          return Z     # Full edge filter def conv_forward(A_prev, W, hparameters):     m = len(A_prev)     (f, f, n_C) = W.shape     stride = hparameters['stride']     pad = hparameters['pad']          Z = list()     flag = 0     z_max = hparameters['z_max']          if len(z_max) == 0:         z_max = list()         flag = 1          for i in range(m):                  (x0, x1, x2) = A_prev[i].shape         A_prev_pad = A_prev[i][                              int(x0 \/ 4) : int(x0 * 3 \/ 4),                              int(x1 \/ 4) : int(x1 * 3 \/ 4),                              :]                  (n_H_prev, n_W_prev, n_C_prev) = A_prev_pad.shape         n_H = int((n_H_prev - f + 2*pad) \/ stride) + 1         n_W = int((n_W_prev - f + 2*pad) \/ stride) + 1         z = np.zeros((n_H, n_W))                  a_prev_pad = A_prev_pad                  for h in range(n_H):             vert_start = h * stride             vert_end = h * stride + f                          for w in range(n_W):                 horiz_start = w * stride                 horiz_end = w * stride + f                                                  a_slice_prev = a_prev_pad[vert_start: vert_end, horiz_start: horiz_end, :]                  weights = W[:, :, :]                 z[h, w] = conv_single_step(a_slice_prev, weights)                  if flag == 1:             z_max.append(np.max(z))         Z.append(z \/ z_max[i])              cache = (A_prev, W, hparameters)          return Z, z_max, cache  # pooling def pool_forward(A_prev, hparameters, mode = 'max'):     m = len(A_prev)     f = hparameters['f']     stride = hparameters['stride']          A = list()          for i in range(m):         (n_H_prev, n_W_prev) = A_prev[i].shape                  n_H = int(1 + (n_H_prev - f) \/ stride)         n_W = int(1 + (n_W_prev - f) \/ stride)                  a = np.zeros((n_H, n_W))                  for h in range(n_H):             vert_start = h * stride             vert_end = h * stride + f                          for w in range(n_W):                 horiz_start = w * stride                 horiz_end = w * stride + f                                  a_prev_slice = A_prev[i][vert_start: vert_end, horiz_start: horiz_end]                  if mode == 'max':                     a[h, w] = np.max(a_prev_slice)                 elif mode == 'avg':                     a[h, w] = np.mean(a_prev_slice)                                  A.append(a)      cache = (A_prev, hparameters)          return A, cache <\/code><\/pre>\n<p>  conv_single_step \u2014 \u043e\u0434\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u043e\u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b, \u0432\u044b\u044f\u0432\u043b\u044f\u044e\u0449\u0443\u044e \u0433\u0440\u0430\u043d\u0438\u0446\u0443.<br \/>  conv_forward \u2014 \u043f\u043e\u043b\u043d\u043e\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0433\u0440\u0430\u043d\u0438\u0446 \u043d\u0430 \u0432\u0441\u0435\u0439 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438.<br \/>  pool_forward \u2014 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430.<\/p>\n<p>  \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u043c\u0435\u0447\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u0447\u0435\u043a \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 conv_forward:<\/p>\n<pre><code class=\"python\">(x0, x1, x2) = A_prev[i].shape A_prev_pad = A_prev[i][      int(x0 \/ 4) : int(x0 * 3 \/ 4),      int(x1 \/ 4) : int(x1 * 3 \/ 4),      :]<\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u0435 \u0432\u0441\u0451 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c, \u0442.\u043a. \u0444\u043e\u043a\u0443\u0441 \u0444\u043e\u0442\u043e\u0430\u043f\u043f\u0430\u0440\u0430\u0442\u0430 \u0447\u0430\u0449\u0435 \u043d\u0430\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0446\u0435\u043d\u0442\u0440. \u0415\u0441\u043b\u0438 \u0441\u043d\u0438\u043c\u043e\u043a \u0447\u0435\u0442\u043a\u0438\u0439, \u0442\u043e \u0438 \u0446\u0435\u043d\u0442\u0440 \u0431\u0443\u0434\u0435\u0442 \u0447\u0435\u0442\u043a\u0438\u0439.<\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 \u0441\u043d\u0438\u043c\u043a\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n<pre><code class=\"python\"># main layer def borders(images, filter_size = 1, stride = 1, pool_stride = 2, pool_size = 2, z_max = []):     Wv = edges(filter_size, 'vert')     hparameters = {'pad': pad, 'stride': stride, 'pool_stride': pool_stride, 'f': pool_size, 'z_max': z_max}     Z, z_max_v, _ = conv_forward(images, Wv, hparameters)          print('edge filter applied')          hparameters_pool = {'stride': pool_stride, 'f': pool_size}     Av, _ = pool_forward(Z, hparameters_pool, mode = 'max')          print('vertical filter applied')          Wh = edges(filter_size, 'horiz')     hparameters = {'pad': pad, 'stride': stride, 'pool_stride': pool_stride, 'f': pool_size, 'z_max': z_max}     Z, z_max_h, _ = conv_forward(images, Wh, hparameters)          print('edge filter applied')          hparameters_pool = {'stride': pool_stride, 'f': pool_size}     Ah, _ = pool_forward(Z, hparameters_pool, mode = 'max')          print('horizontal filter applied')             return [(Av[i] + Ah[i]) \/ 2 for i in range(len(Av))], list(map(np.max, zip(z_max_v, z_max_h)))<\/code><\/pre>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0433\u0440\u0430\u043d\u0438\u0446\u044b, \u0437\u0430\u0442\u0435\u043c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0435, \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0431\u043e\u0438\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432.<\/p>\n<p>  \u0418 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u0434\u0430\u0447\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0447\u0435\u0442\u043a\u043e\u0441\u0442\u0438:<\/p>\n<pre><code class=\"python\"># calculate borders of original and blurred images def orig_blur(images, filter_size = 1, stride = 3, pool_stride = 2, pool_size = 2, blur = 57):     z_max = []      img, z_max = borders(images,                           filter_size = filter_size,                           stride = stride,                           pool_stride = pool_stride,                           pool_size = pool_size                         )     print('original image borders is calculated')          blurred_img = [cv2.GaussianBlur(x, (blur, blur), 0) for x in images]     print('images blurred')          blurred, z_max = borders(blurred_img,                               filter_size = filter_size,                               stride = stride,                               pool_stride = pool_stride,                               pool_size = pool_size,                               z_max = z_max                             )     print('blurred image borders is calculated')      return [np.mean(orig) \/ np.mean(blurred) for (orig, blurred) in zip(img, blurred)], img, blurred<\/code><\/pre>\n<p>  \u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u0437\u0430\u0442\u0435\u043c \u0440\u0430\u0437\u043c\u044b\u0432\u0430\u0435\u043c \u0441\u043d\u0438\u043c\u043e\u043a, \u043f\u043e\u0442\u043e\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0440\u0430\u0437\u043c\u044b\u0442\u043e\u0439 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u0438, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0441\u0447\u0438\u0442\u0430\u0435\u043c \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u043d\u0438\u0445 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0433\u0440\u0430\u043d\u0438\u0446 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438 \u0440\u0430\u0437\u043c\u044b\u0442\u043e\u0433\u043e.<\/p>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u0447\u0435\u0442\u043a\u043e\u0441\u0442\u0438, \u043c\u0430\u0441\u0441\u0438\u0432 \u0433\u0440\u0430\u043d\u0438\u0446 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043d\u0438\u043c\u043a\u0430 \u0438 \u043c\u0430\u0441\u0441\u0438\u0432 \u0433\u0440\u0430\u043d\u0438\u0446 \u0440\u0430\u0437\u043c\u044b\u0442\u043e\u0433\u043e.<\/p>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430<\/h3>\n<p>  \u0414\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0432\u0437\u044f\u043b \u0441\u043d\u0438\u043c\u043a\u0438 \u0441 \u0444\u043e\u0442\u043e\u0441\u0442\u043e\u043a\u0430 freepik.com.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/be\/p7\/1g\/bep71gaawmaf4thhfl5j7ig-1ze.jpeg\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/bx\/q_\/zt\/bxq_ztaqhom_1utv10_fiik2qbw.jpeg\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/k_\/fa\/x4\/k_fax4jhbwyxzqhth0a7gdquwuk.jpeg\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/zw\/hc\/fo\/zwhcfoypmkq78gcvae5nxejwhkc.jpeg\"\/><\/p>\n<p>  \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u043d\u0438\u043c\u043a\u0430 \u0434\u043e \u0438 \u043f\u043e\u0441\u043b\u0435 \u0440\u0430\u0437\u043c\u044b\u0442\u0438\u044f:<\/p>\n<p>  <img decoding=\"async\" align=\"left\" src=\"https:\/\/habrastorage.org\/webt\/mu\/tz\/fw\/mutzfwpy7abfonej9aowhiffg1s.jpeg\"\/><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/z2\/3u\/xi\/z23uxi_ei9xh9ql1qnhf9zaoz4i.jpeg\"\/><\/p>\n<p>  \u0412\u0442\u043e\u0440\u043e\u0433\u043e:<\/p>\n<p>  <img decoding=\"async\" align=\"left\" src=\"https:\/\/habrastorage.org\/webt\/xi\/fj\/5c\/xifj5chec5sccukkrgg2rhjj73e.jpeg\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ye\/8n\/ei\/ye8neincmrszl7nf6cexjzmy6aa.jpeg\"\/><\/p>\n<p>  \u0422\u0440\u0435\u0442\u044c\u0435\u0433\u043e:<\/p>\n<p>  <img decoding=\"async\" align=\"left\" src=\"https:\/\/habrastorage.org\/webt\/x5\/1z\/js\/x51zjshztdvw40frgdzknx09tic.jpeg\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/r6\/l6\/uu\/r6l6uum_2u9oee8vqacw0s5fvgo.jpeg\"\/><\/p>\n<p>  \u0427\u0435\u0442\u0432\u0435\u0440\u0442\u043e\u0433\u043e:<\/p>\n<p>  <img decoding=\"async\" align=\"left\" src=\"https:\/\/habrastorage.org\/webt\/yp\/4n\/jy\/yp4njywmsdj9p-wi7syid1srtgq.jpeg\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jc\/dn\/mv\/jcdnmv7t8nontgodlfjd4robqaw.jpeg\"\/><\/p>\n<p>  \u041d\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0433\u0440\u0430\u043d\u0438\u0446 \u0443 \u0447\u0435\u0442\u043a\u0438\u0445 \u0441\u043d\u0438\u043c\u043a\u043e\u0432 (3\u0439 \u0438 4\u0439) \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u0438\u043b\u044c\u043d\u0435\u0435, \u0447\u0435\u043c \u0443 \u043d\u0435\u0447\u0435\u0442\u043a\u0438\u0445 (1\u0439 \u0438 2\u0439).<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0440\u0430\u0441\u0447\u0435\u0442\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u044b:<\/p>\n<p>  [5.92918651681958, <br \/>  2.672756123184502, <br \/>  10.695051017699232, <br \/>  11.901115749698139]<\/p>\n<p>  \u041a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u044b \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044e\u0442 \u0432\u044b\u0432\u043e\u0434\u044b: \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442, \u0442\u0435\u043c \u0447\u0435\u0442\u0447\u0435 \u0444\u043e\u0442\u043e.<br \/>  \u041f\u0440\u0438\u0447\u0435\u043c, \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043d\u0438\u043c\u043e\u043a \u043c\u0435\u043d\u0435\u0435 \u0447\u0435\u0442\u043a\u0438\u0445, \u0447\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439, \u0447\u0442\u043e \u0438 \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430\u0445.<\/p>\n<h3>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u0430<\/h3>\n<p>  <\/p>\n<ul>\n<li>\u0447\u0435\u043c \u0441\u043d\u0438\u043c\u043e\u043a \u0447\u0435\u0442\u0447\u0435, \u0442\u0435\u043c \u0441\u0438\u043b\u044c\u043d\u0435\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0442\u0435\u043c \u0432\u044b\u0448\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440;<\/li>\n<li>\u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u043d\u0443\u0436\u0434 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0440\u0430\u0437\u043d\u0430\u044f \u0447\u0435\u0442\u043a\u043e\u0441\u0442\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0447\u0435\u0442\u043a\u043e\u0441\u0442\u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e: \u0433\u0434\u0435-\u0442\u043e \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0439 \u0447\u0435\u0442\u043a\u0438\u0445 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0448\u0435 7, \u0433\u0434\u0435-\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0448\u0435 10;<\/li>\n<li>\u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u044f\u0440\u043a\u043e\u0441\u0442\u0438 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438. \u0413\u0440\u0430\u043d\u0438\u0446\u044b \u0442\u0435\u043c\u043d\u044b\u0445 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439 \u0431\u0443\u0434\u0443\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0441\u043b\u0430\u0431\u0435\u0435, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0438 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0447\u0435\u0442\u043a\u043e\u0441\u0442\u0438 \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u0438\u044f, \u0442\u043e \u0435\u0441\u0442\u044c \u0434\u043b\u044f \u0442\u0438\u043f\u043e\u0432\u044b\u0445 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439;<\/li>\n<\/ul>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 \u043c\u043e\u0435\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435 \u0432 <a href=\"http:\/\/github.com\/dmitry-data-science\/clarity\">github<\/a>.<\/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\/496134\/\"> https:\/\/habr.com\/ru\/post\/496134\/<\/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\/496134\/\"><i>\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0441\u0435\u0440\u0438\u044e \u0441\u043d\u0438\u043c\u043a\u043e\u0432, \u0447\u0430\u0441\u0442\u044c \u0438\u0437 \u043d\u0438\u0445 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u0447\u0435\u0442\u043a\u0438\u043c\u0438. \u0421 \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0430\u0441\u044c \u043a\u0440\u0443\u043f\u043d\u0430\u044f \u0430\u0432\u0442\u043e\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f. \u0427\u0430\u0441\u0442\u044c \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439 \u043f\u0440\u0438 \u043e\u0441\u043c\u043e\u0442\u0440\u0435 \u0430\u0432\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438\u0441\u044c \u0440\u0430\u0437\u043c\u044b\u0442\u043e\u0439, \u0447\u0442\u043e \u043c\u043e\u0433\u043b\u043e \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e \u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u0436\u0438. <\/p>\n<p>  \u041d\u0435\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0441\u043d\u0438\u043c\u043a\u0438 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0441\u043d\u0438\u0436\u0430\u044e\u0442 \u043f\u0440\u0438\u0431\u044b\u043b\u044c.<\/i><\/p>\n<ul>\n<li>\u041a\u0430\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u044c \u043d\u0435\u0447\u0435\u0442\u043a\u0438\u0435 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430?<\/li>\n<li>\u041a\u0430\u043a \u0438\u0437\u043c\u0435\u0440\u0438\u0442\u044c \u0447\u0435\u0442\u043a\u043e\u0441\u0442\u044c RGB-\u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f?<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/be\/p7\/1g\/bep71gaawmaf4thhfl5j7ig-1ze.jpeg\"\/>  <\/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-301442","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/301442","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=301442"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/301442\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=301442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=301442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=301442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}