{"id":326566,"date":"2021-07-16T15:01:18","date_gmt":"2021-07-16T15:01:18","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=326566"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=326566","title":{"rendered":"\u041f\u0440\u0438\u044f\u0442\u043d\u0430\u044f \u043a\u0430\u043f\u0447\u0430 \u0438 \u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/od\/17\/uf\/od17uf8qplxm0ust4g2jrcfoptu.png\"><\/div>\n<p>  \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u0439\u0434\u0435\u0442 \u0440\u0435\u0447\u044c \u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043a\u0430\u043f\u0447\u0438, \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0441\u043b\u0430\u0431\u043b\u044f\u0435\u0442 \u0438 \u043f\u043e\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0432 \u0442\u0440\u0430\u043d\u0441 \u043c\u0435\u0434\u0438\u0442\u0430\u0446\u0438\u0438, \u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0440\u044f\u0445\u043d\u0443\u0442\u044c \u043f\u044b\u043b\u044c \u0441 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 selenium \u0434\u043b\u044f python, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 opencv. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0438 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043a\u0430\u043f\u0447\u0435, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u043e\u043c\u0443 \u0432\u0438\u0434\u0443 \u043a\u0430\u043f\u0447 \u00ab\u0441 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u0435\u043c\u00bb. \u041d\u043e, \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u043f\u0440\u0438\u0441\u043a\u0430\u0437\u043a\u0430.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>\u041f\u0440\u0438\u0441\u043a\u0430\u0437\u043a\u0430<\/h3>\n<p>  \u041f\u043e\u0441\u0435\u0449\u0430\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0438\u0445 \u0441\u0431\u043e\u0440\u0430 \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430, \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u0435\u043d \u0441\u0430\u0439\u0442 data.gov.ru. \u0418\u043c\u0435\u0435\u0442 \u043e\u0431\u0448\u0438\u0440\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0432\u043a\u0443\u0441 \u0438 \u0446\u0432\u0435\u0442. \u041d\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0438 \u0437\u0438\u044f\u044e\u0449\u0438\u0435 \u0434\u044b\u0440\u044b \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0441\u0430\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u0414\u044b\u0440\u044b(\u0438\u043b\u0438 \u0442\u0435\u0445\u043d\u043e\u043b\u0438\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u0442\u0432\u0435\u0440\u0441\u0442\u0438\u044f, \u043a\u043e\u043c\u0443 \u043a\u0430\u043a \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f) \u0432 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u044d\u0442\u0438\u0445 \u0441\u0430\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043b\u0438\u0431\u043e \u0438\u0445 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0430\u043d\u0438\u0435. \u041f\u0440\u0438\u0447\u0435\u043c \u044d\u0442\u043e \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e \u0432\u0441\u0435\u0445 \u0440\u0443\u0431\u0440\u0438\u043a\u0430\u0445, \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0445\u043e\u0434\u0438\u0442\u044c, \u043e\u0442\u043a\u0440\u043e\u0435\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0437\u0434\u0435\u043b \u00ab\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u0438\u043a\u0430\u00bb. \u0421\u0430\u043c\u043e\u0435 \u0441\u0432\u0435\u0436\u0435\u0435, \u0447\u0442\u043e \u0442\u0430\u043c \u0435\u0441\u0442\u044c \u2014 \u00ab\u041f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u043d\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0447\u0435\u043c\u043f\u0438\u043e\u043d\u043e\u0432\u00bb \u2014 <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/sj\/wl\/x0\/sjwlx0z7sltux_70vvz93crpnia.png\"><\/p>\n<p>  \u041d\u043e \u043d\u0435 \u0442\u0443\u0442 \u0442\u043e \u0431\u044b\u043b\u043e, \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u0442 \u2014  <a href=\"https:\/\/data.gov.in\/\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/n7\/u6\/e5\/n7u6e5ewx101_fe-vgsjktgyatc.png\"><\/a> <\/p>\n<p>  \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0430\u0431\u043e\u0440\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0445\u043e\u0442\u044f \u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u043d\u0443\u0448\u0438\u0442\u0435\u043b\u044c\u043d\u043e (23795), \u043d\u043e \u0432\u0441\u0435 \u0436\u0435 \u043c\u0430\u043b\u043e\u0432\u0430\u0442\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u0435 \u0418\u043d\u0434\u0438\u0438 \u043d\u0430\u0431\u043e\u0440\u043e\u0432 \u00ab\u043d\u0435\u043c\u043d\u043e\u0433\u043e\u00bb \u0431\u043e\u043b\u044c\u0448\u0435 \u2014 <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vz\/4m\/nr\/vz4mnrmprnu7orxxd5lb9g8rlng.png\"><br \/>  <a href=\"https:\/\/data.gov.in\/\" rel=\"nofollow noopener noreferrer\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a> <\/p>\n<p>  \u0412 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u043c, \u043f\u043e\u0440\u0442\u0430\u043b \u043f\u0440\u0438\u044f\u0442\u0435\u043d \u0432 \u0440\u0430\u0431\u043e\u0442\u0435 \u0438 \u0438\u043c\u0435\u0435\u0442 \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043f\u0440\u0438\u044f\u0442\u043d\u0443\u044e \u043a\u0430\u043f\u0447\u0443 \u043f\u0440\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435 \u043f\u0438\u0441\u044c\u043c\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438.<\/p>\n<h3>\u041a\u0430\u043f\u0447\u0430<\/h3>\n<p>  \u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u0430\u043f\u0447\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u0444\u043e\u0440\u043c\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438 \u043f\u043e\u0440\u0442\u0430\u043b\u0430. \u0421\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0435\u0441, \u043d\u0438\u0447\u0435\u0433\u043e \u0431\u043e\u043b\u0435\u0435.<\/p>\n<p>  \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b\u043c. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0441\u043b\u0435\u0432\u0430(\u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0435\u043d\u0442\u044b) \u043d\u0430 \u043f\u043e\u043b\u0435 (\u0442\u0430\u0440\u0433\u0435\u0442) \u0441\u043f\u0440\u0430\u0432\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/q_\/uz\/4b\/q_uz4bovhharrlovc9gy63mx1k0.gif\"><\/p>\n<p>  \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c.<\/p>\n<p>  \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c:<\/p>\n<ul>\n<li>\u0437\u0430\u0448\u043b\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442,<\/li>\n<li>\u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438-\u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0435\u043d\u0442\u044b \u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443-\u0442\u0430\u0440\u0433\u0435\u0442,<\/li>\n<li>\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438, \u0441\u0440\u0430\u0432\u043d\u0438\u0432 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0435\u043d\u0442\u043e\u0432 \u0441 \u0442\u0430\u0440\u0433\u0435\u0442\u043e\u043c ,<\/li>\n<li>\u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0435\u043d\u0442\u0430 \u043d\u0430 \u0442\u0430\u0440\u0433\u0435\u0442.<\/li>\n<\/ul>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0438\u043c\u043f\u043e\u0440\u0442\u043e\u0432 \u043f\u0430\u043a\u0435\u0442\u043e\u0432.<\/p>\n<pre><code class=\"python\">import webbrowser,time,os import cv2 from skimage import measure   from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains  from selenium.webdriver.firefox.firefox_profile import FirefoxProfile from selenium.webdriver.firefox.options import Options options = webdriver.FirefoxOptions() options.set_preference(&quot;general.useragent.override&quot;, &quot;Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko\/20100101 Firefox\/84.0&quot;) options.set_preference(&quot;dom.webdriver.enabled&quot;, False)  options.set_preference(&quot;browser.helperApps.neverAsk.saveToDisk&quot;, 'application\/octet-stream') options.set_preference(&quot;browser.download.folderList&quot;, 2);  options.set_preference(&quot;browser.download.dir&quot;, &quot;C:\\\\5&quot;); <\/code><\/pre>\n<p>  \u041d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043a\u0430\u043a selenium, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0432\u0441\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u043c \u043f\u043e web-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435. \u041a selenium \u0438\u0434\u0435\u0442 \u0446\u0435\u043b\u044b\u0439 \u0431\u0443\u043a\u0435\u0442 \u043e\u043f\u0446\u0438\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043d\u0430 \u0434\u0438\u0441\u043a \u0431\u0435\u0437 \u0432\u044b\u0431\u0440\u043e\u0441\u0430 \u043e\u043a\u043d\u0430 \u0441 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u043e \u00ab\u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u0430\u043a\u00bb, \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u2014 \u0434\u0438\u0441\u043a \u0441, \u043f\u0430\u043f\u043a\u0430 5.<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f opencv \u2014 cv2, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0430\u043a\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u00ab\u0431\u0443\u0434\u0435\u0442 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c\u00bb \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u043e\u0441\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u2014 measure.<\/p>\n<p>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0432 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0438 1200 \u043d\u0430 1300. <\/p>\n<p>  \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0443 \u043f\u0440\u043e\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u2014 20 \u0441\u0435\u043a, \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0441\u0430\u0439\u0442 \u0441 \u043a\u0430\u043f\u0447\u0435\u0439:<\/p>\n<pre><code class=\"python\">browser = webdriver.Firefox(firefox_binary=r'D:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe',options=options) browser.set_window_size(1200, 1030) browser.implicitly_wait(20) browser.get ('https:\/\/data.gov.ru\/feedback') <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u043a\u0440\u0443\u0442\u0438\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432\u043d\u0438\u0437, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043a\u0430\u043f\u0447\u0443 \u0438 \u043d\u0430\u0439\u0434\u0435\u043c \u043d\u0430 \u043d\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0435\u043d\u0442\u044b \u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0442\u0430\u0440\u0433\u0435\u0442:<\/p>\n<pre><code class=\"python\">act = browser.find_element_by_tag_name('html').send_keys(Keys.DOWN*9)  acts=browser.find_elements_by_class_name('draggable')#\u043d\u0430\u0448\u043b\u0438 4 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043a\u0430\u043f\u0447\u0438 act=browser.find_element_by_class_name('target')#\u0446\u0435\u043b\u044c, \u043a\u0443\u0434\u0430 \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044c <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0430\u043a\u043e\u0439 \u00ab\u0444\u043e\u043a\u0443\u0441\u00bb \u2014 \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0435\u0434\u043d\u044e\u044e \u0432\u043a\u043b\u0430\u0434\u043a\u0443, \u043f\u0440\u043e\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0432 \u043d\u0435\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043e\u0442\u0442\u0443\u0434\u0430. \u042d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u043b \u043a\u0430\u043f\u0447\u0443:<\/p>\n<pre><code class=\"python\">img_target=act.find_element_by_tag_name('img').get_attribute('src')#\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430-\u0442\u0430\u0440\u0433\u0435\u0442 browser.switch_to.window(browser.window_handles[0]) browser.execute_script(&quot;window.open()&quot;) browser.switch_to.window(browser.window_handles[-1]) <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043a\u0430\u0447\u0430\u0435\u043c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438-\u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0435\u043d\u0442\u044b \u0438 \u0442\u0430\u0440\u0433\u0435\u0442. \u041f\u0440\u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0438, selenium \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0441 \u043a\u0430\u043f\u0447\u0435\u0439:<\/p>\n<pre><code class=\"python\">#\u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443-\u0442\u0430\u0440\u0433\u0435\u0442 browser.get(str(img_target)+'.png')  with open('target.png', 'wb') as file:         file.write(browser.find_element_by_class_name('transparent').screenshot_as_png) browser.close() browser.switch_to.window(browser.window_handles[0])  #\u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438-\u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0435\u043d\u0442\u044b for x in range(len(acts)):                 with open(str(x)+'.png', 'wb') as f:                 f.write(acts[x].screenshot_as_png)   <\/code><\/pre>\n<p>  <\/p>\n<h3>\u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/h3>\n<p>  \u0418\u0442\u0430\u043a, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u043a\u043e\u0434\u0430, \u043f\u043e\u043b\u0443\u0447\u0438\u043c 5 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u043d\u0430 \u0434\u0438\u0441\u043a\u0435: \u043e\u0434\u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430-\u0442\u0430\u0440\u0433\u0435\u0442 \u0438 4 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438-\u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0435\u043d\u0442\u0430.<\/p>\n<p>  \u041d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0435\u043d\u0442\u0430 \u0441 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u043e\u0439-\u0442\u0430\u0440\u0433\u0435\u0442\u043e\u043c \u0438 \u0434\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438-\u0442\u0430\u0440\u0433\u0435\u0442\u0430. <\/p>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c opencv.<\/p>\n<p>  \u041f\u0440\u043e\u0447\u0438\u0442\u0430\u0435\u043c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0438\u0445 \u0432 \u0441\u043f\u0438\u0441\u043e\u043a.<\/p>\n<pre><code class=\"python\">#\u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f         images=[] imageA = cv2.imread('target.png') imageB = cv2.imread('0.png') #\u0442\u0430\u043a \u043a\u0430\u043a \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442 \u043f\u043e shape (target \u0438\u043c\u0435\u0435\u0442 \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u044b), \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043c \u0438\u0445 \u043a \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043c (H, W, x) = imageB.shape imageA = cv2.resize(imageA, (W, H)) imageC = cv2.imread('1.png') imageD = cv2.imread('2.png') imageE = cv2.imread('3.png') images.append(imageB) images.append(imageC) images.append(imageD) images.append(imageE) <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre><code class=\"python\">(H, W, x) = imageB.shape imageA = cv2.resize(imageA, (W, H)) <\/code><\/pre>\n<p>  imageA \u2014 \u044d\u0442\u043e \u043d\u0430\u0448\u0430 \u0442\u0430\u0440\u0433\u0435\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0438 \u043e\u043d\u0430, \u043a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443, \u043d\u0435\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u0445\u043e\u0434\u0441\u0442\u0432\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u00ab\u043f\u043e\u0434\u0433\u043e\u043d\u044f\u0435\u043c\u00bb \u0435\u0435 \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443 \u0441 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c\u0438-\u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0435\u043d\u0442\u0430\u043c\u0438.<\/p>\n<p>  <b>\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0432 \u00ab\u0441\u0435\u0440\u044b\u0435 \u0442\u043e\u043d\u0430\u00bb. <\/b><\/p>\n<p>  \u041d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430-\u0442\u0430\u0440\u0433\u0435\u0442 \u0438 \u0437\u0434\u0435\u0441\u044c \u0438\u0437 \u0440\u044f\u0434\u0430 \u0432\u043e\u043d, \u0435\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0435\u0449\u0435 \u0438 \u0432 \u043d\u0435\u0433\u0430\u0442\u0438\u0432:<\/p>\n<pre><code class=\"python\">grayA = cv2.cvtColor(imageA, cv2.COLOR_BGR2GRAY) grayA = 255 - grayA <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438, \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u043c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0446\u0438\u043a\u043b\u0435:<\/p>\n<pre><code class=\"python\">scores=[] for i in images:         b=cv2.cvtColor(i, cv2.COLOR_BGR2GRAY)         s = measure.compare_ssim(grayA, b, full=True)         (score, diff) = measure.compare_ssim(grayA, b, full=True)         diff = (diff * 255).astype(&quot;uint8&quot;)         print(&quot;SSIM: {}&quot;.format(score))         scores.append(score) <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043a\u0430\u0436\u0434\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430-\u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0435\u043d\u0442 (b) \u0432 \u00ab\u0441\u0435\u0440\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435\u00bb \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u043e\u0439-\u0442\u0430\u0440\u0433\u0435\u0442\u043e\u043c, \u0434\u0430\u043b\u0435\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442 \u0441\u043f\u0438\u0441\u043e\u043a.<\/p>\n<h3>\u0418\u0449\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0441\u0440\u0435\u0434\u0438 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0435\u043d\u0442\u043e\u0432<\/h3>\n<p>  \u0412 \u0441\u043f\u0438\u0441\u043a\u0435 scores 4 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0438\u0445 \u043d\u0430\u0434\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u0438 \u043d\u0430\u0439\u0442\u0438 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0435\u043d\u0442\u0430 \u0441 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c. \u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043f\u043e \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0432\u043e\u043f\u0440\u043e\u0441\u0443, \u043d\u043e \u043c\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u0435\u043d \u0438 \u0434\u043b\u044f \u0438\u043d\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0441 \u043b\u044e\u0431\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0447\u043b\u0435\u043d\u043e\u0432:<\/p>\n<pre><code class=\"python\">def my_max(scores):         it = iter(scores)           try:                 max_ = next(it)            except StopIteration:                  raise ValueError('max() arg has no items')         for item in it:                        if max_ &lt; item:                        max_ = item            print(max_)         return max_ <\/code><\/pre>\n<p>  \u0412\u044b\u0437\u043e\u0432\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u2014    <\/p>\n<pre><code class=\"python\">a=scores.index(my_max(scores))#0 - \u0442.\u0435. \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043f\u0438\u0441\u043a\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 <\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438\u0437 \u0447\u0438\u0441\u043b\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a-\u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443-\u0446\u0435\u043b\u044c.<br \/>  \u042d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u043e\u0439:<\/p>\n<pre><code class=\"python\">ActionChains(browser).drag_and_drop(acts[a], act).perform() <\/code><\/pre>\n<p>  <\/p>\n<h3>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c<\/h3>\n<p>  \u041a\u0430\u043a \u0443\u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c? \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u043d\u0430\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u0441\u043b\u043e\u0432\u043e \u00ab\u0443\u0441\u043f\u0435\u0445\u00bb!<\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0440\u0435\u0448\u0435\u043d\u043d\u043e\u0439 \u043a\u0430\u043f\u0447\u0438. \u041e\u043d \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0437\u0435\u043b\u0435\u043d\u044b\u043c. \u041d\u043e \u043f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435<br \/>  \u0440\u0435\u0448\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u043e\u0433\u043e \u0436\u0435 selenium.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043a\u0430\u043f\u0447\u0430 \u0440\u0435\u0448\u0435\u043d\u0430 \u0432\u0435\u0440\u043d\u043e, \u0442\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438-\u0442\u0430\u0440\u0433\u0435\u0442\u0430.<\/p>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0438\u043c:<\/p>\n<pre><code class=\"python\">act = browser.find_element_by_class_name('targetWrapper').get_attribute('class').split(' ')[-1] if act=='captchaSuccess':         print('\u0443\u0441\u043f\u0435\u0445') <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0435, \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.<\/p>\n<p>  \u0418 \u0434\u0430, \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438-\u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0435\u043d\u0442\u044b \u043f\u043e\u0445\u043e\u0436\u0438 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 \u0441\u0435\u0440\u0434\u0435\u0447\u043a\u0435-\u0440\u043e\u043c\u0431\u0438\u043a\u0435 \u043e\u0448\u0438\u0431\u0430\u0435\u0442\u0441\u044f, \u043f\u0443\u0442\u0430\u044f \u0438\u0445 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439. \u0422\u0430\u043a \u043a\u0430\u043a \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u044b similarity \u0443 \u043d\u0438\u0445 \u0431\u043b\u0438\u0437\u043a\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/6a\/ql\/em\/6aqlemzd_xgzfor5qsvy_eewqyq.gif\"><\/p>\n<p>  \u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u2014 <a href=\"https:\/\/disk.yandex.ru\/d\/untIR3E4qTgPlg\" rel=\"nofollow noopener noreferrer\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.<\/p>\n<p>  \u0422\u0430\u043a\u0441\u0438\u0434\u0435\u0440\u043c\u0438\u044f \u0438\u043d\u044b\u0445 \u043a\u0430\u043f\u0447:<\/p>\n<ul>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/549442\/\">\u042f\u043d\u0434\u0435\u043a\u0441-\u043a\u0430\u043f\u0447\u0430 vs tesseract<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/478578\/\">\u041a\u0430\u043a \u043e\u0431\u043e\u0439\u0442\u0438 \u043a\u0430\u043f\u0447\u0443 \u0413\u0443\u0433\u043b<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/466599\/\">\u041a\u0430\u043a \u043e\u0431\u043e\u0439\u0442\u0438 \u043a\u0430\u043f\u0447\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u0437\u0432\u0443\u043a\u0430<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/464337\/\">\u041a\u0430\u043a \u043e\u0431\u043e\u0439\u0442\u0438 \u043a\u0430\u043f\u0447\u0443: \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c \u043d\u0430 Tensorflow,Keras,python v \u0447\u0438\u0441\u043b\u043e\u0432\u0430\u044f \u0437\u0430\u0448\u0443\u043c\u043b\u0435\u043d\u043d\u0430\u044f \u043a\u0430\u043f\u0447\u0430<\/a><\/li>\n<\/ul>\n<\/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\/568036\/\"> https:\/\/habr.com\/ru\/post\/568036\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/od\/17\/uf\/od17uf8qplxm0ust4g2jrcfoptu.png\"><\/div>\n<p>  \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u0439\u0434\u0435\u0442 \u0440\u0435\u0447\u044c \u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043a\u0430\u043f\u0447\u0438, \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0441\u043b\u0430\u0431\u043b\u044f\u0435\u0442 \u0438 \u043f\u043e\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0432 \u0442\u0440\u0430\u043d\u0441 \u043c\u0435\u0434\u0438\u0442\u0430\u0446\u0438\u0438, \u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0440\u044f\u0445\u043d\u0443\u0442\u044c \u043f\u044b\u043b\u044c \u0441 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 selenium \u0434\u043b\u044f python, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 opencv. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0438 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043a\u0430\u043f\u0447\u0435, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u043e\u043c\u0443 \u0432\u0438\u0434\u0443 \u043a\u0430\u043f\u0447 \u00ab\u0441 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u0435\u043c\u00bb. \u041d\u043e, \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u043f\u0440\u0438\u0441\u043a\u0430\u0437\u043a\u0430.  <\/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-326566","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/326566","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=326566"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/326566\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=326566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=326566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=326566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}