{"id":265511,"date":"2015-09-13T04:00:03","date_gmt":"2015-09-13T00:00:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=265511"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=265511","title":{"rendered":"\u0413\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u0435\u043c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438\u0437 \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u043e\u0432 \u043f\u043e \u0438\u043a\u043e\u043d\u043a\u0435"},"content":{"rendered":"<p>       \u041e\u0434\u043d\u0430\u0436\u0434\u044b \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043c\u043d\u0435 \u043d\u0435\u0441\u0447\u0430\u0441\u0442\u044c\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0432\u0437\u043e\u0440 \u043d\u0430 \u043e\u0434\u043d\u0443 \u0437\u0430\u043c\u0430\u043d\u0447\u0438\u0432\u0443\u044e \u0432\u0430\u043a\u0430\u043d\u0441\u0438\u044e. \u0412\u0441\u0435 \u0431\u044b \u043d\u0438\u0447\u0435\u0433\u043e, \u043d\u043e, \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e, \u043f\u043e\u0434\u043a\u0438\u043d\u0443\u043b\u0438 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435. \u0415\u0441\u043b\u0438 \u043a\u0440\u0430\u0442\u043a\u043e, \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e \u0438 \u0442\u043e\u0436\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u0430\u0440\u043a\u0435\u0442\u0430\u0445. \u041f\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c \u0431\u044b\u043b\u0438 \u0442\u0430\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043a\u0430\u043a Skype, Skype WiFi, Skype Qik, Viber, \u0438 \u0434\u0432\u0435 \u0438\u0433\u0440\u044b \u0441 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c Skyward. \u0421\u0440\u0435\u0434\u0438 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u043e\u0432 \u0431\u044b\u043b\u0438 Google Play, App Store \u0438 \u043c\u0430\u0440\u043a\u0435\u0442 Windows Phone. \u0412 \u0437\u0430\u0434\u0430\u043d\u0438\u0438 \u0431\u044b\u043b\u043e \u0442\u0430\u043a \u0436\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0433\u0440\u0430\u0431\u043b\u0435\u0439, \u043c\u043e\u043b, \u043d\u0435 \u043d\u0430\u0434\u043e \u043e\u0441\u043e\u0431\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438 \u0442.\u0434. \u00ab\u041d\u043e \u0432\u0435\u0434\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043b\u0435\u0433\u043a\u043e \u0443\u0437\u043d\u0430\u0432\u0430\u0435\u043c\u044b \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445 \u0442\u0443\u043f\u043e \u043f\u043e \u0438\u043a\u043e\u043d\u043a\u0435\u00bb \u2014 \u043f\u043e\u0434\u0443\u043c\u0430\u043b \u044f, \u0438 \u043f\u043e\u043b\u0435\u0437 \u0432\u044b\u044f\u0441\u043d\u044f\u0442\u044c \u0434\u0435\u0442\u0430\u043b\u0438. \u041d\u043e \u043d\u0435 \u0432\u0441\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e.<a name=\"habracut\"><\/a><\/p>\n<p>  \u0422\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0438\u043a\u043e\u043d\u043a\u0438 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430\u0445 \u0434\u043b\u044f \u0432\u0438\u0431\u0435\u0440\u0430 \u0438 \u0441\u043a\u0430\u0439\u043f\u0430:<br \/>  <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/3d7\/4eb\/fff\/3d74ebfff71f4809aa91e543f507f6a6.gif\" width=\"100\" height=\"100\"\/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/083\/22c\/877\/08322c8775ec41138465c1542efeb33e.gif\" width=\"100\" height=\"100\"\/><\/p>\n<p>  \u0418\u043a\u043e\u043d\u043a\u0438, \u0443\u0432\u044b, \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u043c\u0443 \u043d\u0430\u0431\u043e\u0440\u0443 \u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u0443. \u041f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u0434\u0435\u044f \u0437\u0430\u0445\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043a\u043e\u043d\u043a\u0438 \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0445\u0435\u0448\u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0435\u0449\u0435 \u043f\u043e\u0441\u043b\u0443\u0436\u0438\u0442, \u043d\u043e \u043d\u0435 \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u043b \u043e\u0448\u0438\u0431\u043a\u0443, \u0432\u044b\u0442\u0430\u0449\u0438\u0432 \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438\u043a\u043e\u043d\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0443 \u043c\u0435\u043d\u044f \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435, \u0438 \u043e\u043d\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430. \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0437\u0436\u0435, \u043f\u043e\u043a\u043e\u043f\u0430\u0432\u0448\u0438\u0441\u044c, \u044f \u043d\u0430\u0448\u0435\u043b \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u043e\u0442 300 \u0434\u043e 350 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439, \u0447\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u043e \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0432 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u0445. \u0412\u043e\u043e\u0431\u0449\u0435, \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0442\u0430\u0449\u0430\u0442\u0441\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442.<\/p>\n<p>  \u0414\u043b\u044f \u043c\u043e\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u044f \u0441\u0433\u0443\u0433\u043b\u0438\u043b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 OpenCV. \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043d\u0430\u0432\u043e\u0440\u043e\u0447\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u044f \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0432\u043b\u0435\u043a\u0441\u044f, \u0447\u0442\u043e \u043f\u043e\u043b\u0435\u0437 \u0438\u0437\u0443\u0447\u0430\u0442\u044c feature matching, \u043d\u043e \u044d\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u0442\u043e, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u043d\u0443\u0436\u043d\u043e. \u0410 \u043d\u0443\u0436\u043d\u043e \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0443\u0440\u044b \u043d\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445 \u0438 \u043a\u0430\u043a-\u0442\u043e \u0438\u0445 \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0443\u0440\u044b, \u043d\u0430\u0434\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u2014 \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 \u043d\u0435\u043c \u0433\u0440\u0430\u043d\u0438\u0446\u044b. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440 \u0433\u0440\u0430\u043d\u0438\u0446 \u041a\u0435\u043d\u043d\u0438(Canny). \u041c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u041a\u0430\u043d\u043d\u0438, \u043d\u0435 \u0437\u043d\u0430\u044e. \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u043d \u0432\u043e\u0442 \u0442\u0430\u043a:<br \/>  <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/083\/ae9\/84b\/083ae984bdc44b0e99737046783686a7.jpg\" width=\"100\" height=\"150\"\/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/5fd\/9c5\/c08\/5fd9c5c08229492d87dc39a87906e7b7.jpg\" width=\"100\" height=\"150\"\/><\/p>\n<p>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u0438\u043a\u043e\u043d\u043a\u043e\u0439 \u0441\u043a\u0430\u0439\u043f\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b:<br \/>  <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/08a\/700\/184\/08a70018410b4d6797419696593f486a.jpg\" width=\"100\" height=\"100\"\/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1bd\/159\/e5d\/1bd159e5d2b3486d9f7bb2790b60860b.jpg\" width=\"100\" height=\"100\"\/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/06b\/ae9\/f48\/06bae9f482774ad0ad8e66ed512443a5.jpg\" width=\"100\" height=\"100\"\/><\/p>\n<p>  \u041c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0438\u0437 \u043e\u0442\u043b\u0438\u0447\u0438\u0439 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043c\u0435\u0440, \u043e\u0434\u043d\u0430\u043a\u043e \u044d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a. \u0412\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f, \u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0438\u043a\u043e\u043d\u043e\u043a \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0440\u0430\u0437\u043c\u0435\u0440\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0448\u0438\u0431\u043e\u043a.<br \/>  \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0437\u0430\u043c\u043e\u0440\u043e\u0447\u043a\u0430 \u2014 \u044d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u043e\u0440\u043e\u0433\u0438 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u0430 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0430 \u0434\u043b\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f 100 \u0438 200 \u043c\u0435\u043d\u044f \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0443\u0441\u0442\u0440\u043e\u0438\u043b\u0438.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u043a\u043e\u043d\u0442\u0443\u0440\u044b. \u0418\u0445 \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c, \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044f \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u043a\u043e\u043d\u0442\u0443\u0440\u043e\u0432 \u2014 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0435 \u0432 \u043c\u043e\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e. \u0415\u0441\u0442\u044c \u043d\u044e\u0430\u043d\u0441 \u2014 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442 \u0443\u0433\u043e\u043b \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430 \u043a\u043e\u043d\u0442\u0443\u0440\u0430, \u043d\u043e \u043f\u043e\u0433\u043e\u0434\u044b \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u0442. \u0414\u043b\u044f \u0441\u043a\u0430\u0439\u043f\u0430 \u0438\u0437 \u0433\u0443\u0433\u043b\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0443\u0440\u043e\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/558\/d82\/fd2\/558d82fd2dde423da183dc90f4a70a63.gif\"\/><\/p>\n<p>  \u0422\u0443\u0442 \u043d\u0435 \u0434\u0432\u0430 \u043a\u043e\u043d\u0442\u0443\u0440\u0430, \u0438\u0445 \u0447\u0435\u0442\u044b\u0440\u0435. \u041a\u043e\u043d\u0442\u0443\u0440 \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0441\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0440\u0430\u043d\u0435\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0433\u0440\u0430\u043d\u0438\u0446. \u041a\u043e\u043d\u0442\u0443\u0440\u044b \u044f \u0438\u0441\u043a\u0430\u043b \u0441 \u0444\u043b\u0430\u0433\u043e\u043c RETR_LIST, \u0442\u043e \u0435\u0441\u0442\u044c \u0431\u0435\u0437 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438, \u0430 \u043f\u043e\u0442\u043e\u043c \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u043e\u0442 \u043b\u0435\u0432\u043e\u0433\u043e \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u043a\u0440\u0430\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0414\u043b\u044f \u043c\u043e\u0435\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043e\u0431\u0449\u0443\u044e \u0434\u043b\u0438\u043d\u0443 \u043a\u043e\u043d\u0442\u0443\u0440\u043e\u0432 \u2014 \u0432 OpenCV \u0435\u0441\u0442\u044c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <i>arcLength<\/i>. \u0421\u0430\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0443 \u0434\u0432\u0443\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0441\u043e\u0432\u043f\u0430\u043b\u043e \u0431\u043e\u043b\u0435\u0435 80% \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u0438\u043d\u044b \u043a\u043e\u043d\u0442\u0443\u0440\u043e\u0432, \u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0435\u043c \u044d\u0442\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438\u043a\u043e\u043d\u043a\u043e\u0439 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0421\u0430\u043c\u0438 \u043a\u043e\u043d\u0442\u0443\u0440\u044b \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 <i>matchShapes<\/i>, \u0447\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u0435\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u2014 \u0442\u0435\u043c \u043b\u0443\u0447\u0448\u0435, \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u0435\u0439 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0443\u0440\u043e\u0432 \u0431\u044b\u043b\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 0.15.<\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u0432\u0442\u043e\u0440\u043e\u0439 \u0442\u0438\u043f \u0438\u043a\u043e\u043d\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u043f\u043e \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0443 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u2014 \u044d\u0442\u043e \u0438\u043a\u043e\u043d\u043a\u0438 \u0438\u0433\u0440\u044b Skyward:<br \/>  <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ccd\/159\/014\/ccd159014440409d90d0dc49fc4a66fb.jpg\" width=\"100\" height=\"100\"\/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/209\/a26\/17a\/209a2617aa594ecabba338531bddab24.jpg\" width=\"100\" height=\"100\"\/><\/p>\n<p>  \u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u044d\u0442\u0438 \u0438\u043a\u043e\u043d\u043a\u0438 \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0446\u0432\u0435\u0442\u0443, \u043d\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0437\u0430\u0434 \u0432 \u0434\u0432\u0443\u0445 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430\u0445 \u0431\u044b\u043b \u043f\u0435\u0440\u0432\u044b\u0439 \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442. \u0418\u043a\u043e\u043d\u043a\u0438 \u043e\u0442\u043b\u0438\u0447\u0430\u043b\u0438\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443, \u043d\u043e \u0438\u0437-\u0437\u0430 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0443\u0440\u044b \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u043b\u0438 \u0441\u043e\u0432\u0441\u0435\u043c, \u0438 \u043f\u043e \u043d\u0438\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u043e\u0441\u044c. \u041e\u0434\u043d\u0430\u043a\u043e, \u0442\u0443\u0442 \u043c\u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u043b\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <i>imagehash<\/i>. \u0414\u043b\u044f \u0438\u0433\u0440\u044b Skyward \u0445\u044d\u0448\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0432 \u043b\u043e\u0431. \u041e\u0434\u043d\u0430\u043a\u043e, \u0441 \u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430, \u043a\u0430\u043a \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0438\u043a\u043e\u043d\u043e\u043a \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u043e\u0441\u044c, \u0434\u0430\u043d\u043d\u0430\u044f \u0444\u0438\u0447\u0430 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>  \u041d\u0430 \u043c\u043e\u044e \u0438\u0434\u0435\u044e \u00ab\u0440\u0430\u0431\u043e\u0442\u043e\u0434\u0430\u0442\u0435\u043b\u044c\u00bb \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0441\u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u043b. \u0411\u044b\u0432\u0430\u0435\u0442.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">import numpy as np import cv2 import requests from collections import namedtuple from bs4 import BeautifulSoup import imagehash from PIL import Image  def itunes_find(content):     icon, name = None, None     soup = BeautifulSoup(content)     found = soup.find(id=&quot;title&quot;)     name = found.div.h1.get_text()     found = soup.find('img',{'class':'artwork', 'alt': name})     imageurl = found['src-swap-high-dpi']     icon_r = requests.get(imageurl)     if icon_r.status_code == 200:         img_array = np.asarray(bytearray(icon_r.content), dtype=np.uint8)         icon = cv2.imdecode(img_array, cv2.IMREAD_COLOR)     return name, icon  def google_find(content):     icon, name = None, None     soup = BeautifulSoup(content)     found = soup.find('div',{'class':'cover-container'})     imageurl = found('img')[0]['src']     icon_r = requests.get(imageurl)     if icon_r.status_code == 200:         img_array = np.asarray(bytearray(icon_r.content), dtype=np.uint8)         icon = cv2.imdecode(img_array, cv2.IMREAD_COLOR)     found = soup.find('div',{'class':'document-title'})     if not found:         found = soup.find('h1',{'class':'document-title'})     if not found:         with open('olala1.html', 'w') as f:             f.write(content)     name = found.get_text()     return name, icon  def windows_find(content):     icon, name = None, None     soup = BeautifulSoup(content)     found = soup.find('img', {'class':'appImage xlarge'})     imageurl = found['src']     icon_r = requests.get(imageurl)     if icon_r.status_code == 200:         img_array = np.asarray(bytearray(icon_r.content), dtype=np.uint8)         icon = cv2.imdecode(img_array, cv2.IMREAD_COLOR)     found = soup.find(id=&quot;application&quot;)     name = found('h1')[0].get_text()     return name, icon  class Entry:     def __init__(self, url, name, icon):         self.url = url         self.name = name         self.icon = icon         self.icon_hash = None         self.contours = None  items = {}  def _go(url):     r = requests.get(url, headers = {'User-agent': 'Mozilla\/5.0'}, verify=False)     if r.status_code == 200:         if url.startswith('https:\/\/itunes.apple.com'):             name, icon = itunes_find(r.content)         elif url.startswith('https:\/\/play.google.com'):             name, icon = google_find(r.content)         elif url.startswith('http:\/\/www.windowsphone.com'):             name, icon = windows_find(r.content)         if name and icon is not None:             items[url] = Entry(url, name, icon)  url_list = [ 'https:\/\/itunes.apple.com\/en\/app\/skype-for-iphone\/id304878510?mt=8', 'https:\/\/itunes.apple.com\/en\/app\/skype-for-ipad\/id442012681?mt=8', 'https:\/\/play.google.com\/store\/apps\/details?id=com.skype.raider&hl=en', 'http:\/\/www.windowsphone.com\/ru-ru\/store\/app\/skype\/c3f8e570-68b3-4d6a-bdbb-c0a3f4360a51', 'https:\/\/play.google.com\/store\/apps\/details?id=com.skype.android.access&hl=en', 'https:\/\/itunes.apple.com\/en\/app\/skype-wifi\/id444529922?mt=8', 'https:\/\/play.google.com\/store\/apps\/details?id=com.skype.android.qik&hl=en', 'https:\/\/itunes.apple.com\/us\/app\/skype-qik-group-video-messaging\/id893994044?mt=8', 'https:\/\/play.google.com\/store\/apps\/details?id=com.viber.voip&hl=en', 'https:\/\/itunes.apple.com\/en\/app\/viber\/id382617920?mt=8', 'https:\/\/play.google.com\/store\/apps\/details?id=com.viber.voip&hl=en', 'https:\/\/play.google.com\/store\/apps\/details?id=com.ketchapp.skyward&hl=en', 'https:\/\/itunes.apple.com\/us\/app\/skyward\/id943273841?mt=8', 'https:\/\/play.google.com\/store\/apps\/details?id=cz.george.mecheche&hl=en', ]  tr = 100 def _do():     for u in url_list:         _go(u)          for item in items.itervalues():         width = item.icon.shape[0]         height = item.icon.shape[1]         icon_c = cv2.cvtColor(item.icon, cv2.COLOR_BGR2RGB)         pil_im = Image.fromarray(icon_c)         item.icon_hash = imagehash.dhash(pil_im)         edges = cv2.Canny(item.icon, tr, tr*2)         def _s(x):             x,y,w,h = cv2.boundingRect(x)             return (x, y)         contours, hierarchy = cv2.findContours(edges, cv2.RETR_LIST, 1)         contours = sorted(contours, key = _s)         item.contours = contours         item.weight = sum([cv2.arcLength(cnt,True) for cnt in contours])      matches = []     ungrouped = []     items_copy = items.values()     while items_copy:         group   = []         item = items_copy[0]         current = items_copy[1:]         items_copy = []         for other in current:             if item.icon_hash == other.icon_hash:                 group.append(other.url)             else:                 rating = 0                 count = min(len(item.contours), len(other.contours))                 for v in range(count):                     result = cv2.matchShapes(item.contours[v], other.contours[v], 1, 0.0)                     if result &lt; 0.15:                         l = cv2.arcLength(item.contours[v],True)                         lo = cv2.arcLength(other.contours[v],True)                         rating += min(l\/item.weight, lo\/other.weight)                 if rating &gt; 0.8:                     group.append(other.url)                 else:                     items_copy.append(other)         if group:             group.append(item.url)             matches.append(group)         else:             ungrouped.append(item.url)      for v in matches:         print 'Found group: %s'%', '.join(set([items[u].name.strip() for u in v]))         print 'Urls:\\n%s\\n'%'\\n'.join(v)     print &quot;Ungrouped:&quot;     for v in ungrouped:         print 'Name %s'%items[v].name         print 'Url %s'%v  _do() <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<div class=\"clear\"><\/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=\"http:\/\/habrahabr.ru\/post\/266749\/\"> http:\/\/habrahabr.ru\/post\/266749\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u041e\u0434\u043d\u0430\u0436\u0434\u044b \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043c\u043d\u0435 \u043d\u0435\u0441\u0447\u0430\u0441\u0442\u044c\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0432\u0437\u043e\u0440 \u043d\u0430 \u043e\u0434\u043d\u0443 \u0437\u0430\u043c\u0430\u043d\u0447\u0438\u0432\u0443\u044e \u0432\u0430\u043a\u0430\u043d\u0441\u0438\u044e. \u0412\u0441\u0435 \u0431\u044b \u043d\u0438\u0447\u0435\u0433\u043e, \u043d\u043e, \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e, \u043f\u043e\u0434\u043a\u0438\u043d\u0443\u043b\u0438 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435. \u0415\u0441\u043b\u0438 \u043a\u0440\u0430\u0442\u043a\u043e, \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e \u0438 \u0442\u043e\u0436\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u0430\u0440\u043a\u0435\u0442\u0430\u0445. \u041f\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c \u0431\u044b\u043b\u0438 \u0442\u0430\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043a\u0430\u043a Skype, Skype WiFi, Skype Qik, Viber, \u0438 \u0434\u0432\u0435 \u0438\u0433\u0440\u044b \u0441 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c Skyward. \u0421\u0440\u0435\u0434\u0438 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u043e\u0432 \u0431\u044b\u043b\u0438 Google Play, App Store \u0438 \u043c\u0430\u0440\u043a\u0435\u0442 Windows Phone. \u0412 \u0437\u0430\u0434\u0430\u043d\u0438\u0438 \u0431\u044b\u043b\u043e \u0442\u0430\u043a \u0436\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0433\u0440\u0430\u0431\u043b\u0435\u0439, \u043c\u043e\u043b, \u043d\u0435 \u043d\u0430\u0434\u043e \u043e\u0441\u043e\u0431\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438 \u0442.\u0434. \u00ab\u041d\u043e \u0432\u0435\u0434\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043b\u0435\u0433\u043a\u043e \u0443\u0437\u043d\u0430\u0432\u0430\u0435\u043c\u044b \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445 \u0442\u0443\u043f\u043e \u043f\u043e \u0438\u043a\u043e\u043d\u043a\u0435\u00bb \u2014 \u043f\u043e\u0434\u0443\u043c\u0430\u043b \u044f, \u0438 \u043f\u043e\u043b\u0435\u0437 \u0432\u044b\u044f\u0441\u043d\u044f\u0442\u044c \u0434\u0435\u0442\u0430\u043b\u0438. \u041d\u043e \u043d\u0435 \u0432\u0441\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e.<\/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-265511","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/265511","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=265511"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/265511\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=265511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=265511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=265511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}