{"id":319517,"date":"2021-03-13T15:01:00","date_gmt":"2021-03-13T15:01:00","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=319517"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=319517","title":{"rendered":"Tesseract vs \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u0420\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0446\u0438\u0444\u0440\u043e\u0432\u0438\u0437\u0430\u0446\u0438\u044e \u0432\u0441\u0435\u0433\u043e \u0438 \u0432\u0441\u044f, \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u0433\u0434\u0430 \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u043e\u0438\u0442 \u043d\u0430 \u043f\u043e\u0440\u043e\u0433\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u0435\u0439\u0440\u043e\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u043a\u043e\u0433\u0434\u0430 \u0418\u0418 \u0441\u0442\u0430\u043b\u043e \u043e\u0431\u044b\u0434\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e, \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e \u0441\u043a\u0430\u043d\u0430\/\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430.<\/p>\n<p>\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a. \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0410\u043b\u0435\u043a\u0441\u0435\u0439. \u0420\u0430\u0431\u043e\u0442\u0430\u044e 1\u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u043c \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043f\u043e \u043f\u0440\u043e\u0434\u0430\u0436\u0435 \u0442\u0435\u0445\u043d\u0438\u043a\u0438. \u0423 \u043c\u0435\u043d\u044f \u0431\u044b\u043b\u0438 \u0441\u0432\u043e\u0438 \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044e \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0443\u0447\u0451\u0442\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u0438 \u043a\u0430\u043a \u0440\u0430\u0437 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0437\u0430\u043d\u043e\u0441\u0438\u043b\u0438 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 pdf-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u0431\u044b\u043b\u043e \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0432 \u042d\u0414\u041e. \u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u0438\u043c \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0451 \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/p>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f ABBYY Cloud, \u043d\u043e \u043e\u043d \u043d\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439, \u0430 \u0442\u0440\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u0438\u043d\u043d\u044b\u0439. \u0420\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 API \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u0435, \u0433\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432\u0441\u044f \u043c\u043e\u0449\u044c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e tesseracta. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e tesseract &#8212; \u044d\u0442\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0435\u043a\u0441\u0442\u0430, \u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043e\u043d \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u043b\u043e\u043f\u043e\u043b\u0435\u0437\u043d\u0430\u044f \u043a\u0430\u0448\u0430. \u041a\u0430\u043a \u0440\u0430\u0437 \u043d\u0430\u043a\u0430\u043d\u0443\u043d\u0435 \u0447\u0438\u0442\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u044e https:\/\/vc.ru\/ml\/139816-povyshenie-kachestva-raspoznavaniya-skanov-dokumentov-s-tablicami-s-pomoshchyu-vychisleniya-koordinat-yacheek, \u0433\u0434\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e openCV \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0432\u0441\u0435 \u044f\u0447\u0435\u0439\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u043a\u0430\u0436\u0434\u0443\u044e \u044f\u0447\u0435\u0439\u043a\u0443 \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u044e\u0442 \u0447\u0435\u0440\u0435\u0437  tesseract \u0438 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u0420\u0435\u0448\u0438\u043b \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434. \u041e \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0442. <\/p>\n<p>\u0414\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u044f \u0432\u0437\u044f\u043b \u0438\u0437 \u0434\u0435\u043c\u043e \u0431\u0430\u0437\u044b 1\u0441 \u0422\u041e\u0420\u0413-12. \u0412 \u044d\u0442\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u043c\u043d\u043e\u0433\u043e \u0442\u0430\u0431\u043b\u0438\u0446, \u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430, \u043c\u043d\u043e\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0445. \u041a\u0430\u043a \u0440\u0430\u0437 \u0442\u043e \u0447\u0442\u043e \u043d\u0430\u0434\u043e. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0bc\/4b3\/11e\/0bc4b311e40c8d412cd43b6e546f3b0e.png\" width=\"1200\" height=\"809\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e pdf \u0444\u0430\u0439\u043b, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e gostscript \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u044e \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443. \u041f\u0440\u043e\u0431\u043e\u0432\u0430\u043b ImageMagick, \u043d\u043e \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u0431\u044b\u043b\u043e \u043e\u0442\u0432\u0440\u0430\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0447\u0435\u0440\u0435\u0437 \u043f\u0438\u0442\u043e\u043d.  \u0427\u0440\u0435\u0437 cmd \u043b\u0443\u0447\u0448\u0435, \u043d\u043e gostscript \u0432\u043d\u0435 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0446\u0438\u0438. <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0443\u0431\u0440\u0430\u0442\u044c \u0448\u0442\u0440\u0438\u0445 \u043a\u043e\u0434, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u0438 openCV \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0439\u0442\u0438 \u0442\u0430\u043c \u0442\u043e \u0447\u0435\u0433\u043e \u043d\u0435\u0442, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043d\u0430 QR-\u043a\u043e\u0434\u0430\u0445. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 pyzbar.<\/p>\n<p>\u0414\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430, \u0434\u0435\u043b\u0430\u044e \u043f\u0440\u0435\u0434\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e \u043a\u043e\u043d\u0442\u0440\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0431\u044b\u043b\u0438 \u0446\u0432\u0435\u0442\u043d\u044b\u0435 \u0448\u0430\u043f\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446. \u041f\u0440\u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u0441\u0435\u0440\u044b\u0439 \u0446\u0432\u0435\u0442, \u0448\u0430\u043f\u043a\u0430 \u0438 \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043b\u0438\u0432\u0430\u043b\u0438\u0441\u044c, \u0447\u0442\u043e \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043b\u0438\u044f\u043b\u043e \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u044e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u0447\u0435\u0440\u043d\u043e-\u0431\u0435\u043b\u043e\u0435 \u043f\u043e \u043f\u043e\u0440\u043e\u0433\u043e\u0432\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u044f\u0440\u043a\u043e\u0441\u0442\u0438 \u0438 \u0440\u0430\u0437\u043c\u044b\u0432\u0430\u044e. <\/p>\n<pre><code class=\"python\">clahe = cv2.createCLAHE(clipLimit=50, tileGridSize=(50, 50)) lab = cv2.cvtColor(img, cv2.COLOR_BGR2LAB)   l, a, b = cv2.split(lab)  l2 = clahe.apply(l)   lab = cv2.merge((l2, a, b))   img2 = cv2.cvtColor(lab, cv2.COLOR_LAB2BGR)   gray = cv2.cvtColor(img2, cv2.COLOR_BGR2GRAY) ret, thresh = cv2.threshold(gray, 75, 255, cv2.THRESH_BINARY_INV )  kernel = np.ones((2, 2), np.uint8) obr_img = cv2.erode(thresh, kernel, iterations=1)  obr_img = cv2.GaussianBlur(obr_img, (3,3), 0)<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e \u0438\u0449\u0443 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0443\u0440\u0430, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0442\u0441\u0435\u0438\u0432\u0430\u044f \u0441\u043e\u0432\u0441\u0435\u043c \u0443\u0436 \u043c\u0435\u043b\u043a\u0438\u0435. \u0422\u0430\u043a \u043a\u0430\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430, \u0442\u043e \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. \u0427\u0438\u0441\u0442\u043e \u044d\u043c\u043f\u0438\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u0448\u0435\u043b \u043d\u0430 5 \u043f\u0440\u043e\u043c\u0438\u043b\u043b\u0435, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e \u0432\u0430\u0436\u043d\u0435\u0439\u0448\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e delta.<\/p>\n<pre><code class=\"python\">contours, hierarchy = cv2.findContours(dilated_value, cv2.RETR_TREE, cv2.CHAIN_APPROX_TC89_L1) coordinates = [] ogr = round(max(img.shape[0], img.shape[1]) * 0.005) delta = round(ogr\/2 +0.5) ind = 1; for i in range(0, len(contours)): \tl, t, w, h = cv2.boundingRect(contours[i]) \tif (h &gt; ogr and w &gt; ogr):     #\u0418\u043d\u0434\u0435\u043a\u0441 \u0431\u043b\u043e\u043a\u0430     #\u0418\u043d\u0434\u0435\u043a\u0441 \u043a\u043e\u043d\u0442\u0443\u0440\u0430     #\u0418\u043d\u0434\u0435\u043a\u0441 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f     #\u0445     #\u0443     #\u0448\u0438\u0440\u0438\u043d\u0430     #\u0432\u044b\u0441\u043e\u0442\u0430     #\u0442\u0435\u043a\u0441\u0442   \tcoordinates.append((0, ind, 0, l, t, w, h, ''))     ind = ind + 1<\/code><\/pre>\n<p>\u041f\u043e \u0438\u0442\u043e\u0433\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043a\u0443\u0447\u0443 \u043a\u043e\u043d\u0442\u0443\u0440\u043e\u0432, \u0440\u0430\u0441\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044e. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e sqlite3 \u0434\u0435\u043b\u0430\u044e \u0411\u0414 \u0438 \u0437\u0430\u0433\u043e\u043d\u044f\u044e \u0442\u0443\u0434\u0430 coordinates. \u0417\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0439 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043e\u0442\u0431\u0438\u0440\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043f\u043e \u0438\u0434\u0435\u0435 \u0438\u043d\u0434\u0435\u043a\u0441 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0432 hierarchy, \u043d\u043e \u044f \u0435\u0433\u043e \u043d\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u044e, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u0441\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u043d\u0434\u0435\u043a\u0441 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0443\u0440\u0430 \u044f \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e \u0441\u0430\u043c  \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0435\u0445\u0438\u0442\u0440\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430. <\/p>\n<p>\u0414\u043b\u044f \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0433\u0434\u0435 \u0435\u0441\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u044d\u0442\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u0412\u0441\u0451 \u0447\u0442\u043e \u043a\u0440\u043e\u043c\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 &#8212; \u0442\u0435\u043a\u0441\u0442. \u041e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e \u0442\u0435\u043a\u0441\u0442, \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u044e \u0432\u0441\u0451 \u0432\u043c\u0435\u0441\u0442\u0435 \u0438 \u0433\u043e\u0442\u043e\u0432\u043e.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b7a\/b9d\/001\/b7ab9d0010a9b273faea91c3ff645aee.png\" width=\"1455\" height=\"992\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0438\u043d\u0438\u043c \u043a\u043e\u043d\u0442\u0443\u0440\u043e\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043e \u0442\u043e, \u0433\u0434\u0435 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043f\u0443\u0441\u0442\u043e\u0439, \u043a\u0440\u0430\u0441\u043d\u044b\u043c &#8212; \u0433\u0434\u0435 \u043e\u043d \u0435\u0441\u0442\u044c. \u041b\u0435\u0433\u043a\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u0441\u0432\u044f\u0437\u043d\u043e\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u0432, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0434\u0438\u043d \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c. \u041f\u043e \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0443 \u0438 \u0431\u0443\u0434\u0443 \u0438\u0445 \u0438\u0441\u043a\u0430\u0442\u044c. \u0410 \u0442\u0430\u043a\u0436\u0435 \u0441\u0442\u043e\u0438\u0442 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u041a\u041e \u0438 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u043e\u0439, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a. \u0422\u043e \u0435\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u043a\u0430\u043a\u0430\u044f \u0442\u043e \u043b\u0438\u043d\u0438\u044f \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0430\u0441\u044c, \u0438\u043b\u0438, \u043a\u0430\u043a \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043a\u043e\u0434\u043e\u0432 \u0438\u043c\u0435\u044e\u0442 \u043f\u0443\u0441\u0442\u044b\u0435 \u043c\u0435\u0441\u0442\u0430 , \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0442\u043e \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0434\u043e \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430. <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0443\u0436\u0435 2 \u043f\u043e\u0434\u0437\u0430\u0434\u0430\u0447\u0438:<\/p>\n<ol>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0441\u0432\u044f\u0437\u043d\u044b\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432 \u0434\u043e \u0433\u0440\u0430\u043d\u0438\u0446 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f<\/p>\n<\/li>\n<\/ol>\n<p>\u0421\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e. \u0415\u0441\u043b\u0438 \u0432 \u0434\u0435\u043b\u044c\u0442\u0430 \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u0435\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a, \u0442\u043e \u043e\u043d\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u044b. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b \u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u043f\u043e\u0433\u0440\u0435\u0448\u043d\u043e\u0441\u0442\u044c. \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043d\u0435 \u0441\u043b\u043e\u0436\u0435\u043d. \u0412\u044b\u0431\u0438\u0440\u0430\u044e \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u0441 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u043c, \u0441\u043c\u043e\u0442\u0440\u044e \u0435\u0441\u0442\u044c \u043b\u0438 \u0432 \u0441\u0432\u044f\u0437\u043d\u044b\u0435 \u0441 \u043d\u0438\u043c \u0441\u043b\u0435\u0432\u0430, \u0441\u043f\u0440\u0430\u0432\u0430, \u0441\u0432\u0435\u0440\u0445\u0443, \u0441\u043d\u0438\u0437\u0443. \u0415\u0441\u043b\u0438 \u0434\u0430 &#8212; \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e \u043a\u0430\u043a\u0438\u0435. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u0447\u0442\u043e \u0431\u044b\u0432\u0430\u044e\u0442 \u043a\u043e\u043d\u0442\u0443\u0440\u0430 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u0434\u0435\u043b\u044c\u0442\u0430 \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u043d\u043e \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u044f\u0447\u0435\u0439\u043a\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u0422\u0430\u043a\u0438\u0435 \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0442\u044c. \u0421\u0430\u043c\u044b\u0439 \u0434\u0435\u0439\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0445\u043e\u0434 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0442\u0430\u043a\u043e\u0439. \u0414\u0435\u043b\u0430\u044e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u044f\u0447\u0435\u0435\u043a \u043f\u043e \u0448\u0438\u0440\u0438\u043d\u0435 \u0438 \u0432\u044b\u0441\u043e\u0442\u0435. \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u0432\u044b\u0441\u043e\u0442\u0435\/\u0448\u0438\u0440\u0438\u043d\u0435 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u043c\u0435\u0436\u0434\u0443 \u043f\u0435\u0440\u0432\u044b\u043c \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 2*\u0434\u0435\u043b\u044c\u0442\u0430. \u0421\u043e\u0440\u0442\u0438\u0440\u0443\u044e \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044e. \u0415\u0441\u043b\u0438 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u0430 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u0445 \u0438 \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u0438 \u043c\u0435\u0436\u0434\u0443 \u043f\u0435\u0440\u0432\u044b\u043c \u0438 \u0432\u0442\u043e\u0440\u044b\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u043c, \u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 &#8212; \u043c\u0443\u0441\u043e\u0440, \u0443\u0434\u0430\u043b\u044f\u044e \u0435\u0433\u043e. \u041f\u043e\u043b\u0443\u0447\u0430\u044e \u0442\u0430\u043a\u0443\u044e \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8ba\/ca5\/fe3\/8baca5fe3ad5746ac07e52dce5f91472.png\" width=\"1429\" height=\"980\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043e\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0434\u043e \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u043d\u0443\u0436\u043d\u0430 \u0434\u043b\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043a\u043e\u0434\u043e\u0432 \u0438 \u0442\u043e\u0432\u0430\u0440\u043e\u0432. \u0418\u0434\u0435\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u0430. \u041e\u0442 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u043f\u043e 4 \u0441\u0442\u043e\u0440\u043e\u043d\u0430\u043c \u0441\u043c\u043e\u0442\u0440\u044e \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a. \u0415\u0441\u043b\u0438 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u043d\u0435 \u043b\u0435\u0436\u0438\u0442 \u0432 \u0434\u0435\u043b\u044c\u0442\u0430 \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u0438\u043b\u0438 \u0435\u0433\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435\u0442, \u0442\u043e \u044d\u0442\u043e &#171;\u0434\u044b\u0440\u043a\u0430&#187;. \u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044e \u0432\u0441\u0451 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0442\u0430\u043a\u0438\u0445 &#171;\u0434\u044b\u0440\u043e\u043a&#187; \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439, \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0442\u0441\u044f, \u0442\u043e \u044d\u0442\u043e \u0434\u0430\u0451\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043a\u0430\u043a\u0438\u0435 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0438 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c. \u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u043b\u0438 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0438 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432\u043d\u0443\u0442\u0440\u044c \u0434\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445, \u0438\u043b\u0438 \u043c\u0435\u043d\u044c\u0448\u0435 4 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0442\u043e \u0443\u0431\u0438\u0440\u0430\u044e.<\/p>\n<p>\u041f\u043e \u0438\u0442\u043e\u0433\u0443 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u0430<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/def\/8e0\/fe3\/def8e0fe3db3e520f63657fb43fc71de.png\" width=\"1435\" height=\"989\"><figcaption><\/figcaption><\/figure>\n<p>\u042f \u0437\u043d\u0430\u044e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043a\u0430\u0436\u0434\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u041c\u043e\u0436\u043d\u043e \u043d\u0430\u0440\u0435\u0437\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0438 \u043a\u0430\u0436\u0434\u0443\u044e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u044f\u0447\u0435\u0439\u043a\u0443 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c. \u0422\u0430\u043a \u043a\u0430\u043a tesseract \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u0435\u043d, \u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0434\u043d\u043e \u043f\u043e\u043b\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u044c 3 \u0440\u0430\u0437\u0430, \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0441\u043b\u043e\u0432\u043e &#171;\u043a\u043e\u043b-\u0432\u043e&#187;. \u0412 \u043e\u0434\u043d\u043e\u043c \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a &#171;\u043a\u043e\u043b-\u0432\u043e&#187;, \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043a\u0430\u043a &#171;&#8212;00&#187;, \u0432 \u0442\u0440\u0435\u0442\u044c\u0435\u043c \u0442\u0443\u043f\u043e \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432. \u0418 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0432 \u043a\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u043e\u043c\u0443 \u0432\u0435\u0440\u0438\u0442\u044c.<\/p>\n<pre><code class=\"python\">text1 = pytesseract.image_to_string(image[t1:t2,l1:l2], lang=lang, config='--psm 6') text2 = pytesseract.image_to_string(image[t1:t2,l1:l2], lang=lang, config='') text3 = pytesseract.image_to_string(image[t1+round(delta\/2):t2-round(delta\/2),l1+round(delta\/2):l2-round(delta\/2)], lang=lang, config='--psm 7') text1 = text1.replace(\"\\n\", \" \") text2 = text2.replace(\"\\n\", \" \") text3 = text3.replace(\"\\n\", \" \") text1 = re.sub(' *[^ \\(\\)\u0410-\u042f\u0430-\u044f\\d\\w\\\/\\\\\\.\\-,:; ]+ *', ' ', text1) text2 = re.sub(' *[^ \\(\\)\u0410-\u042f\u0430-\u044f\\d\\w\\\/\\\\\\.\\-,:; ]+ *', ' ', text2) text3 = re.sub(' *[^ \\(\\)\u0410-\u042f\u0430-\u044f\\d\\w\\\/\\\\\\.\\-,:; ]+ *', ' ', text3)  while text1.find('  ')!=-1:     text1 = text1.replace('  ',' ') while text2.find('  ') != -1:     text2 = text2.replace('  ', ' ') while text3.find('  ') != -1:     text3 = text3.replace('  ', ' ')<\/code><\/pre>\n<p>\u0418\u0442\u0430\u043a. \u0412\u0441\u0435 \u044f\u0447\u0435\u0439\u043a\u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043b\u0438\u0441\u044c, \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u0412\u0440\u043e\u0434\u0435 \u0432\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0448\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e \u0432\u044b\u0441\u043e\u0442\u0435 \u0438 \u0437\u0430\u043f\u0438\u0445\u0438\u0432\u0430\u0435\u0448\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e \u043b\u0435\u0432\u043e\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u0435. \u041d\u043e, \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0432\u044b\u0441\u043e\u0442\u0435, \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u043a\u0430\u043a\u0443\u044e \u0442\u043e \u0441\u0440\u0435\u0434\u043d\u044e\u044e \u0432\u044b\u0441\u043e\u0442\u0443. \u0412\u043e \u0432\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u044f\u0447\u0435\u0435\u043a, \u043a\u0430\u043a \u0432 \u0448\u0430\u043f\u043a\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0438 \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u0448\u044c. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u0431\u044b\u0432\u0430\u044e\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0442\u0440\u043e\u043a \u043d\u0435\u0442, \u0442\u0438\u043f\u0430 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432 \u0431\u0430\u043d\u043a\u0430 \u0432 \u0441\u0447\u0451\u0442\u0435 \u043d\u0430 \u043e\u043f\u043b\u0430\u0442\u0443. \u0412\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0432\u043e\u043f\u0440\u043e\u0441, \u043a\u0430\u043a \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0441 \u0443\u0447\u0451\u0442\u043e\u043c \u0435\u0451 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b? \u041a\u0430\u0436\u0434\u0443\u044e \u044f\u0447\u0435\u0439\u043a\u0443 \u0442\u0430\u0431\u043b\u0438\u0446\u044b  \u044f \u043f\u0440\u0438\u043d\u044f\u043b \u0437\u0430 \u0442\u043e\u0447\u043a\u0443, \u0435\u0441\u043b\u0438 2 \u044f\u0447\u0435\u0439\u043a\u0438 \u0440\u044f\u0434\u043e\u043c, \u0442\u043e\u0447\u043a\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0433\u0440\u0430\u0444. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0442\u0430\u043a\u043e\u043c\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044e, \u044f \u043c\u043e\u0433\u0443 \u0441 \u043b\u044e\u0431\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0438 \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u0440\u044f\u0434\u043e\u043c, \u0441 \u043a\u0430\u043a\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u043a\u0430\u043a\u0430\u044f \u0432 \u043d\u0438\u0445 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f. \u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0438, \u043a\u0430\u043a \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e; \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u0430\u043a\u0430\u044f \u043a\u043e\u043b\u043e\u043d\u043a\u0430 \u0448\u0430\u043f\u043a\u0438 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0438; \u0434\u0430\u0436\u0435 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0448\u0430\u043f\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u0430\u0440\u0441\u0435\u0440\u0430 \u0441\u0442\u0440\u043e\u043a, \u0435\u0441\u043b\u0438 \u043d\u0430\u0434\u043e. \u0418 \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0435.<\/p>\n<p>\u0412 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0435\u043a\u0441\u0442. \u0422\u0443\u0442 \u043f\u043e\u0434\u0445\u043e\u0434 \u0442\u0430\u043a\u043e\u0439 \u0436\u0435. \u041e\u0442 \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e 4 \u0441\u0442\u043e\u0440\u043e\u043d\u0430\u043c \u0441\u043c\u043e\u0442\u0440\u044e \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0438\u043b\u0438 \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430. \u0421\u043d\u043e\u0432\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e &#171;\u0434\u044b\u0440\u043e\u043a&#187;. \u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044e, \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u043f\u0435\u0440\u0435\u043a\u0440\u0435\u0441\u0442\u0438\u044f, \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u043d\u043e\u0432\u044b\u0435 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0438. \u0420\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u044e \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u0438 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0440\u0430\u0437. <\/p>\n<p>\u0418\u0437 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u043e\u044e \u0433\u0440\u0430\u0444, \u0432\u0435\u0440\u0448\u0438\u043d\u043e\u0439 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438\u0431\u043e \u0442\u0435\u043a\u0441\u0442, \u043b\u0438\u0431\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u0430. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u044f \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u043d\u0443\u0436\u043d\u0443\u044e \u043c\u043d\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0442\u0430\u0431\u043b\u0438\u0446. \u041e\u0442\u0432\u0435\u0442 API   \u043f\u0430\u043a\u0443\u044e \u0432 JSON, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 1\u0441 \u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e. \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b \u043f\u043e\u0447\u0442\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u044b. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0435 \u0441\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e. \u041e\u043d \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439. 1 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 pdf \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0442 20 \u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u043e \u043c\u0438\u043d\u0443\u0442\u044b, \u0432\u0441\u0451 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0442\u0430\u0431\u043b\u0438\u0446 \u0432 \u0444\u0430\u0439\u043b\u0435. \u0414\u0443\u043c\u0430\u044e, \u0440\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f Tesserocr \u0432\u043c\u0435\u0441\u0442\u043e Pytesseract, \u043d\u0443 \u0438 \u0440\u0430\u0441\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0442\u044c \u043c\u0435\u0441\u0442\u0430\u043c\u0438. <\/p>\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\/546824\/\"> https:\/\/habr.com\/ru\/post\/546824\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0446\u0438\u0444\u0440\u043e\u0432\u0438\u0437\u0430\u0446\u0438\u044e \u0432\u0441\u0435\u0433\u043e \u0438 \u0432\u0441\u044f, \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u0433\u0434\u0430 \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u043e\u0438\u0442 \u043d\u0430 \u043f\u043e\u0440\u043e\u0433\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u0435\u0439\u0440\u043e\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u043a\u043e\u0433\u0434\u0430 \u0418\u0418 \u0441\u0442\u0430\u043b\u043e \u043e\u0431\u044b\u0434\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e, \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e \u0441\u043a\u0430\u043d\u0430\/\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430.<\/p>\n<p>\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a. \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0410\u043b\u0435\u043a\u0441\u0435\u0439. \u0420\u0430\u0431\u043e\u0442\u0430\u044e 1\u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u043c \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043f\u043e \u043f\u0440\u043e\u0434\u0430\u0436\u0435 \u0442\u0435\u0445\u043d\u0438\u043a\u0438. \u0423 \u043c\u0435\u043d\u044f \u0431\u044b\u043b\u0438 \u0441\u0432\u043e\u0438 \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044e \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0443\u0447\u0451\u0442\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u0438 \u043a\u0430\u043a \u0440\u0430\u0437 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0437\u0430\u043d\u043e\u0441\u0438\u043b\u0438 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 pdf-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u0431\u044b\u043b\u043e \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0432 \u042d\u0414\u041e. \u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u0438\u043c \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0451 \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/p>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f ABBYY Cloud, \u043d\u043e \u043e\u043d \u043d\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439, \u0430 \u0442\u0440\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u0438\u043d\u043d\u044b\u0439. \u0420\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 API \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u0435, \u0433\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432\u0441\u044f \u043c\u043e\u0449\u044c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e tesseracta. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e tesseract &#8212; \u044d\u0442\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0435\u043a\u0441\u0442\u0430, \u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043e\u043d \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u043b\u043e\u043f\u043e\u043b\u0435\u0437\u043d\u0430\u044f \u043a\u0430\u0448\u0430. \u041a\u0430\u043a \u0440\u0430\u0437 \u043d\u0430\u043a\u0430\u043d\u0443\u043d\u0435 \u0447\u0438\u0442\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u044e https:\/\/vc.ru\/ml\/139816-povyshenie-kachestva-raspoznavaniya-skanov-dokumentov-s-tablicami-s-pomoshchyu-vychisleniya-koordinat-yacheek, \u0433\u0434\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e openCV \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0432\u0441\u0435 \u044f\u0447\u0435\u0439\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u043a\u0430\u0436\u0434\u0443\u044e \u044f\u0447\u0435\u0439\u043a\u0443 \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u044e\u0442 \u0447\u0435\u0440\u0435\u0437  tesseract \u0438 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u0420\u0435\u0448\u0438\u043b \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434. \u041e \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0442. <\/p>\n<p>\u0414\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u044f \u0432\u0437\u044f\u043b \u0438\u0437 \u0434\u0435\u043c\u043e \u0431\u0430\u0437\u044b 1\u0441 \u0422\u041e\u0420\u0413-12. \u0412 \u044d\u0442\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u043c\u043d\u043e\u0433\u043e \u0442\u0430\u0431\u043b\u0438\u0446, \u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430, \u043c\u043d\u043e\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0445. \u041a\u0430\u043a \u0440\u0430\u0437 \u0442\u043e \u0447\u0442\u043e \u043d\u0430\u0434\u043e. <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e pdf \u0444\u0430\u0439\u043b, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e gostscript \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u044e \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443. \u041f\u0440\u043e\u0431\u043e\u0432\u0430\u043b ImageMagick, \u043d\u043e \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u0431\u044b\u043b\u043e \u043e\u0442\u0432\u0440\u0430\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0447\u0435\u0440\u0435\u0437 \u043f\u0438\u0442\u043e\u043d.  \u0427\u0440\u0435\u0437 cmd \u043b\u0443\u0447\u0448\u0435, \u043d\u043e gostscript \u0432\u043d\u0435 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0446\u0438\u0438. <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0443\u0431\u0440\u0430\u0442\u044c \u0448\u0442\u0440\u0438\u0445 \u043a\u043e\u0434, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u0438 openCV \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0439\u0442\u0438 \u0442\u0430\u043c \u0442\u043e \u0447\u0435\u0433\u043e \u043d\u0435\u0442, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043d\u0430 QR-\u043a\u043e\u0434\u0430\u0445. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 pyzbar.<\/p>\n<p>\u0414\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430, \u0434\u0435\u043b\u0430\u044e \u043f\u0440\u0435\u0434\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e \u043a\u043e\u043d\u0442\u0440\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0431\u044b\u043b\u0438 \u0446\u0432\u0435\u0442\u043d\u044b\u0435 \u0448\u0430\u043f\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446. \u041f\u0440\u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u0441\u0435\u0440\u044b\u0439 \u0446\u0432\u0435\u0442, \u0448\u0430\u043f\u043a\u0430 \u0438 \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043b\u0438\u0432\u0430\u043b\u0438\u0441\u044c, \u0447\u0442\u043e \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043b\u0438\u044f\u043b\u043e \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u044e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u0447\u0435\u0440\u043d\u043e-\u0431\u0435\u043b\u043e\u0435 \u043f\u043e \u043f\u043e\u0440\u043e\u0433\u043e\u0432\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u044f\u0440\u043a\u043e\u0441\u0442\u0438 \u0438 \u0440\u0430\u0437\u043c\u044b\u0432\u0430\u044e. <\/p>\n<pre><code class=\"python\">clahe = cv2.createCLAHE(clipLimit=50, tileGridSize=(50, 50)) lab = cv2.cvtColor(img, cv2.COLOR_BGR2LAB)   l, a, b = cv2.split(lab)  l2 = clahe.apply(l)   lab = cv2.merge((l2, a, b))   img2 = cv2.cvtColor(lab, cv2.COLOR_LAB2BGR)   gray = cv2.cvtColor(img2, cv2.COLOR_BGR2GRAY) ret, thresh = cv2.threshold(gray, 75, 255, cv2.THRESH_BINARY_INV )  kernel = np.ones((2, 2), np.uint8) obr_img = cv2.erode(thresh, kernel, iterations=1)  obr_img = cv2.GaussianBlur(obr_img, (3,3), 0)<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e \u0438\u0449\u0443 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0443\u0440\u0430, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0442\u0441\u0435\u0438\u0432\u0430\u044f \u0441\u043e\u0432\u0441\u0435\u043c \u0443\u0436 \u043c\u0435\u043b\u043a\u0438\u0435. \u0422\u0430\u043a \u043a\u0430\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430, \u0442\u043e \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. \u0427\u0438\u0441\u0442\u043e \u044d\u043c\u043f\u0438\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u0448\u0435\u043b \u043d\u0430 5 \u043f\u0440\u043e\u043c\u0438\u043b\u043b\u0435, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e \u0432\u0430\u0436\u043d\u0435\u0439\u0448\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e delta.<\/p>\n<pre><code class=\"python\">contours, hierarchy = cv2.findContours(dilated_value, cv2.RETR_TREE, cv2.CHAIN_APPROX_TC89_L1) coordinates = [] ogr = round(max(img.shape[0], img.shape[1]) * 0.005) delta = round(ogr\/2 +0.5) ind = 1; for i in range(0, len(contours)): \tl, t, w, h = cv2.boundingRect(contours[i]) \tif (h &gt; ogr and w &gt; ogr):     #\u0418\u043d\u0434\u0435\u043a\u0441 \u0431\u043b\u043e\u043a\u0430     #\u0418\u043d\u0434\u0435\u043a\u0441 \u043a\u043e\u043d\u0442\u0443\u0440\u0430     #\u0418\u043d\u0434\u0435\u043a\u0441 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f     #\u0445     #\u0443     #\u0448\u0438\u0440\u0438\u043d\u0430     #\u0432\u044b\u0441\u043e\u0442\u0430     #\u0442\u0435\u043a\u0441\u0442   \tcoordinates.append((0, ind, 0, l, t, w, h, ''))     ind = ind + 1<\/code><\/pre>\n<p>\u041f\u043e \u0438\u0442\u043e\u0433\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043a\u0443\u0447\u0443 \u043a\u043e\u043d\u0442\u0443\u0440\u043e\u0432, \u0440\u0430\u0441\u043a\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044e. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e sqlite3 \u0434\u0435\u043b\u0430\u044e \u0411\u0414 \u0438 \u0437\u0430\u0433\u043e\u043d\u044f\u044e \u0442\u0443\u0434\u0430 coordinates. \u0417\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0439 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043e\u0442\u0431\u0438\u0440\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043f\u043e \u0438\u0434\u0435\u0435 \u0438\u043d\u0434\u0435\u043a\u0441 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0432 hierarchy, \u043d\u043e \u044f \u0435\u0433\u043e \u043d\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u044e, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u0441\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u043d\u0434\u0435\u043a\u0441 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0443\u0440\u0430 \u044f \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e \u0441\u0430\u043c  \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0435\u0445\u0438\u0442\u0440\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430. <\/p>\n<p>\u0414\u043b\u044f \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0433\u0434\u0435 \u0435\u0441\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u044d\u0442\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u0412\u0441\u0451 \u0447\u0442\u043e \u043a\u0440\u043e\u043c\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 &#8212; \u0442\u0435\u043a\u0441\u0442. \u041e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e \u0442\u0435\u043a\u0441\u0442, \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u044e \u0432\u0441\u0451 \u0432\u043c\u0435\u0441\u0442\u0435 \u0438 \u0433\u043e\u0442\u043e\u0432\u043e.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0438\u043d\u0438\u043c \u043a\u043e\u043d\u0442\u0443\u0440\u043e\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043e \u0442\u043e, \u0433\u0434\u0435 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043f\u0443\u0441\u0442\u043e\u0439, \u043a\u0440\u0430\u0441\u043d\u044b\u043c &#8212; \u0433\u0434\u0435 \u043e\u043d \u0435\u0441\u0442\u044c. \u041b\u0435\u0433\u043a\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u0441\u0432\u044f\u0437\u043d\u043e\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u0432, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0434\u0438\u043d \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c. \u041f\u043e \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0443 \u0438 \u0431\u0443\u0434\u0443 \u0438\u0445 \u0438\u0441\u043a\u0430\u0442\u044c. \u0410 \u0442\u0430\u043a\u0436\u0435 \u0441\u0442\u043e\u0438\u0442 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u041a\u041e \u0438 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u043e\u0439, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a. \u0422\u043e \u0435\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u043a\u0430\u043a\u0430\u044f \u0442\u043e \u043b\u0438\u043d\u0438\u044f \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0430\u0441\u044c, \u0438\u043b\u0438, \u043a\u0430\u043a \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043a\u043e\u0434\u043e\u0432 \u0438\u043c\u0435\u044e\u0442 \u043f\u0443\u0441\u0442\u044b\u0435 \u043c\u0435\u0441\u0442\u0430 , \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0442\u043e \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0434\u043e \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430. <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0443\u0436\u0435 2 \u043f\u043e\u0434\u0437\u0430\u0434\u0430\u0447\u0438:<\/p>\n<ol>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0441\u0432\u044f\u0437\u043d\u044b\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432 \u0434\u043e \u0433\u0440\u0430\u043d\u0438\u0446 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f<\/p>\n<\/li>\n<\/ol>\n<p>\u0421\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e. \u0415\u0441\u043b\u0438 \u0432 \u0434\u0435\u043b\u044c\u0442\u0430 \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u0435\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a, \u0442\u043e \u043e\u043d\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u044b. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b \u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u043f\u043e\u0433\u0440\u0435\u0448\u043d\u043e\u0441\u0442\u044c. \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043d\u0435 \u0441\u043b\u043e\u0436\u0435\u043d. \u0412\u044b\u0431\u0438\u0440\u0430\u044e \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u0441 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u043c, \u0441\u043c\u043e\u0442\u0440\u044e \u0435\u0441\u0442\u044c \u043b\u0438 \u0432 \u0441\u0432\u044f\u0437\u043d\u044b\u0435 \u0441 \u043d\u0438\u043c \u0441\u043b\u0435\u0432\u0430, \u0441\u043f\u0440\u0430\u0432\u0430, \u0441\u0432\u0435\u0440\u0445\u0443, \u0441\u043d\u0438\u0437\u0443. \u0415\u0441\u043b\u0438 \u0434\u0430 &#8212; \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e \u043a\u0430\u043a\u0438\u0435. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u0447\u0442\u043e \u0431\u044b\u0432\u0430\u044e\u0442 \u043a\u043e\u043d\u0442\u0443\u0440\u0430 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u0434\u0435\u043b\u044c\u0442\u0430 \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u043d\u043e \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u044f\u0447\u0435\u0439\u043a\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u0422\u0430\u043a\u0438\u0435 \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0442\u044c. \u0421\u0430\u043c\u044b\u0439 \u0434\u0435\u0439\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0445\u043e\u0434 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0442\u0430\u043a\u043e\u0439. \u0414\u0435\u043b\u0430\u044e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u044f\u0447\u0435\u0435\u043a \u043f\u043e \u0448\u0438\u0440\u0438\u043d\u0435 \u0438 \u0432\u044b\u0441\u043e\u0442\u0435. \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u0432\u044b\u0441\u043e\u0442\u0435\/\u0448\u0438\u0440\u0438\u043d\u0435 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u043c\u0435\u0436\u0434\u0443 \u043f\u0435\u0440\u0432\u044b\u043c \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 2*\u0434\u0435\u043b\u044c\u0442\u0430. \u0421\u043e\u0440\u0442\u0438\u0440\u0443\u044e \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044e. \u0415\u0441\u043b\u0438 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u0430 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u0445 \u0438 \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u0438 \u043c\u0435\u0436\u0434\u0443 \u043f\u0435\u0440\u0432\u044b\u043c \u0438 \u0432\u0442\u043e\u0440\u044b\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u043c, \u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 &#8212; \u043c\u0443\u0441\u043e\u0440, \u0443\u0434\u0430\u043b\u044f\u044e \u0435\u0433\u043e. \u041f\u043e\u043b\u0443\u0447\u0430\u044e \u0442\u0430\u043a\u0443\u044e \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043e\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0434\u043e \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u043d\u0443\u0436\u043d\u0430 \u0434\u043b\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043a\u043e\u0434\u043e\u0432 \u0438 \u0442\u043e\u0432\u0430\u0440\u043e\u0432. \u0418\u0434\u0435\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u0430. \u041e\u0442 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u043f\u043e 4 \u0441\u0442\u043e\u0440\u043e\u043d\u0430\u043c \u0441\u043c\u043e\u0442\u0440\u044e \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a. \u0415\u0441\u043b\u0438 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u043d\u0435 \u043b\u0435\u0436\u0438\u0442 \u0432 \u0434\u0435\u043b\u044c\u0442\u0430 \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u0438\u043b\u0438 \u0435\u0433\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435\u0442, \u0442\u043e \u044d\u0442\u043e &#171;\u0434\u044b\u0440\u043a\u0430&#187;. \u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044e \u0432\u0441\u0451 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0442\u0430\u043a\u0438\u0445 &#171;\u0434\u044b\u0440\u043e\u043a&#187; \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439, \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0442\u0441\u044f, \u0442\u043e \u044d\u0442\u043e \u0434\u0430\u0451\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043a\u0430\u043a\u0438\u0435 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0438 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c. \u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u043b\u0438 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0438 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432\u043d\u0443\u0442\u0440\u044c \u0434\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445, \u0438\u043b\u0438 \u043c\u0435\u043d\u044c\u0448\u0435 4 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0442\u043e \u0443\u0431\u0438\u0440\u0430\u044e.<\/p>\n<p>\u041f\u043e \u0438\u0442\u043e\u0433\u0443 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u0430<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u042f \u0437\u043d\u0430\u044e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043a\u0430\u0436\u0434\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u041c\u043e\u0436\u043d\u043e \u043d\u0430\u0440\u0435\u0437\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0438 \u043a\u0430\u0436\u0434\u0443\u044e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u044f\u0447\u0435\u0439\u043a\u0443 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c. \u0422\u0430\u043a \u043a\u0430\u043a tesseract \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u0435\u043d, \u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0434\u043d\u043e \u043f\u043e\u043b\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u044c 3 \u0440\u0430\u0437\u0430, \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0441\u043b\u043e\u0432\u043e &#171;\u043a\u043e\u043b-\u0432\u043e&#187;. \u0412 \u043e\u0434\u043d\u043e\u043c \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a &#171;\u043a\u043e\u043b-\u0432\u043e&#187;, \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043a\u0430\u043a &#171;&#8212;00&#187;, \u0432 \u0442\u0440\u0435\u0442\u044c\u0435\u043c \u0442\u0443\u043f\u043e \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432. \u0418 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0432 \u043a\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u043e\u043c\u0443 \u0432\u0435\u0440\u0438\u0442\u044c.<\/p>\n<pre><code class=\"python\">text1 = pytesseract.image_to_string(image[t1:t2,l1:l2], lang=lang, config='--psm 6') text2 = pytesseract.image_to_string(image[t1:t2,l1:l2], lang=lang, config='') text3 = pytesseract.image_to_string(image[t1+round(delta\/2):t2-round(delta\/2),l1+round(delta\/2):l2-round(delta\/2)], lang=lang, config='--psm 7') text1 = text1.replace(\"\\n\", \" \") text2 = text2.replace(\"\\n\", \" \") text3 = text3.replace(\"\\n\", \" \") text1 = re.sub(' *[^ \\(\\)\u0410-\u042f\u0430-\u044f\\d\\w\\\/\\\\\\.\\-,:; ]+ *', ' ', text1) text2 = re.sub(' *[^ \\(\\)\u0410-\u042f\u0430-\u044f\\d\\w\\\/\\\\\\.\\-,:; ]+ *', ' ', text2) text3 = re.sub(' *[^ \\(\\)\u0410-\u042f\u0430-\u044f\\d\\w\\\/\\\\\\.\\-,:; ]+ *', ' ', text3)  while text1.find('  ')!=-1:     text1 = text1.replace('  ',' ') while text2.find('  ') != -1:     text2 = text2.replace('  ', ' ') while text3.find('  ') != -1:     text3 = text3.replace('  ', ' ')<\/code><\/pre>\n<p>\u0418\u0442\u0430\u043a. \u0412\u0441\u0435 \u044f\u0447\u0435\u0439\u043a\u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043b\u0438\u0441\u044c, \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u0412\u0440\u043e\u0434\u0435 \u0432\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0448\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e \u0432\u044b\u0441\u043e\u0442\u0435 \u0438 \u0437\u0430\u043f\u0438\u0445\u0438\u0432\u0430\u0435\u0448\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e \u043b\u0435\u0432\u043e\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u0435. \u041d\u043e, \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0432\u044b\u0441\u043e\u0442\u0435, \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u043a\u0430\u043a\u0443\u044e \u0442\u043e \u0441\u0440\u0435\u0434\u043d\u044e\u044e \u0432\u044b\u0441\u043e\u0442\u0443. \u0412\u043e \u0432\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u044f\u0447\u0435\u0435\u043a, \u043a\u0430\u043a \u0432 \u0448\u0430\u043f\u043a\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0438 \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u0448\u044c. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u0431\u044b\u0432\u0430\u044e\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0442\u0440\u043e\u043a \u043d\u0435\u0442, \u0442\u0438\u043f\u0430 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432 \u0431\u0430\u043d\u043a\u0430 \u0432 \u0441\u0447\u0451\u0442\u0435 \u043d\u0430 \u043e\u043f\u043b\u0430\u0442\u0443. \u0412\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0432\u043e\u043f\u0440\u043e\u0441, \u043a\u0430\u043a \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0441 \u0443\u0447\u0451\u0442\u043e\u043c \u0435\u0451 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b? \u041a\u0430\u0436\u0434\u0443\u044e \u044f\u0447\u0435\u0439\u043a\u0443 \u0442\u0430\u0431\u043b\u0438\u0446\u044b  \u044f \u043f\u0440\u0438\u043d\u044f\u043b \u0437\u0430 \u0442\u043e\u0447\u043a\u0443, \u0435\u0441\u043b\u0438 2 \u044f\u0447\u0435\u0439\u043a\u0438 \u0440\u044f\u0434\u043e\u043c, \u0442\u043e\u0447\u043a\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0433\u0440\u0430\u0444. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0442\u0430\u043a\u043e\u043c\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044e, \u044f \u043c\u043e\u0433\u0443 \u0441 \u043b\u044e\u0431\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0438 \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u0440\u044f\u0434\u043e\u043c, \u0441 \u043a\u0430\u043a\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u043a\u0430\u043a\u0430\u044f \u0432 \u043d\u0438\u0445 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f. \u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0438, \u043a\u0430\u043a \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e; \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u0430\u043a\u0430\u044f \u043a\u043e\u043b\u043e\u043d\u043a\u0430 \u0448\u0430\u043f\u043a\u0438 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0438; \u0434\u0430\u0436\u0435 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0448\u0430\u043f\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u0430\u0440\u0441\u0435\u0440\u0430 \u0441\u0442\u0440\u043e\u043a, \u0435\u0441\u043b\u0438 \u043d\u0430\u0434\u043e. \u0418 \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0435.<\/p>\n<p>\u0412 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0435\u043a\u0441\u0442. \u0422\u0443\u0442 \u043f\u043e\u0434\u0445\u043e\u0434 \u0442\u0430\u043a\u043e\u0439 \u0436\u0435. \u041e\u0442 \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e 4 \u0441\u0442\u043e\u0440\u043e\u043d\u0430\u043c \u0441\u043c\u043e\u0442\u0440\u044e \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0438\u043b\u0438 \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430. \u0421\u043d\u043e\u0432\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e &#171;\u0434\u044b\u0440\u043e\u043a&#187;. \u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044e, \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u043f\u0435\u0440\u0435\u043a\u0440\u0435\u0441\u0442\u0438\u044f, \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u043d\u043e\u0432\u044b\u0435 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0438. \u0420\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u044e \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u0438 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0440\u0430\u0437. <\/p>\n<p>\u0418\u0437 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u043e\u044e \u0433\u0440\u0430\u0444, \u0432\u0435\u0440\u0448\u0438\u043d\u043e\u0439 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438\u0431\u043e \u0442\u0435\u043a\u0441\u0442, \u043b\u0438\u0431\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u0430. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u044f \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u043d\u0443\u0436\u043d\u0443\u044e \u043c\u043d\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0442\u0430\u0431\u043b\u0438\u0446. \u041e\u0442\u0432\u0435\u0442 API   \u043f\u0430\u043a\u0443\u044e \u0432 JSON, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 1\u0441 \u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e. \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b \u043f\u043e\u0447\u0442\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u044b. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0435 \u0441\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e. \u041e\u043d \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439. 1 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 pdf \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0442 20 \u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u043e \u043c\u0438\u043d\u0443\u0442\u044b, \u0432\u0441\u0451 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0442\u0430\u0431\u043b\u0438\u0446 \u0432 \u0444\u0430\u0439\u043b\u0435. \u0414\u0443\u043c\u0430\u044e, \u0440\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f Tesserocr \u0432\u043c\u0435\u0441\u0442\u043e Pytesseract, \u043d\u0443 \u0438 \u0440\u0430\u0441\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0442\u044c \u043c\u0435\u0441\u0442\u0430\u043c\u0438. <\/p>\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\/546824\/\"> https:\/\/habr.com\/ru\/post\/546824\/<\/a><br \/><\/br><\/br><\/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-319517","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/319517","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=319517"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/319517\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=319517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=319517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=319517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}