{"id":296835,"date":"2020-01-07T15:00:11","date_gmt":"2020-01-07T15:00:11","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=296835"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2020-01-07T15:00:11","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=296835","title":{"rendered":"\u041a\u0430\u043c\u0435\u0440\u0430 \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u0441\u043b\u0435\u0436\u0435\u043d\u0438\u044f \u0437\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/483084\/\">\u0425\u043e\u0447\u0443 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0433\u043e \u0434\u0440\u043e\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b \u0441\u0430\u043c \u043c\u043e\u0433 \u043d\u0430\u0439\u0442\u0438 \u0434\u043e\u0440\u043e\u0433\u0443 \u043a \u0446\u0435\u043b\u0438 \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0431\u043e\u0439\u0442\u0438 \u0432\u0441\u0435 \u043f\u0440\u0435\u043f\u044f\u0442\u0441\u0442\u0432\u0438\u044f \u043d\u0438 \u043a\u043e\u0433\u043e \u043d\u0435 \u0437\u0430\u0434\u0435\u0432. \u0420\u0435\u0448\u0438\u043b \u043d\u0430\u0447\u0430\u0442\u044c \u0441 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438 \u0438 \u0432\u0435\u0431\u043a\u0438. \u0422\u0430\u043a \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442<img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/c78\/440\/4f0\/c784404f0b5fa57378af9fb0e9242e01.jpg\" alt=\"image\"><a name=\"habracut\"><\/a><\/p>\n<p>  \u0421\u0443\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u2014 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c, \u0442\u043e\u0447\u043d\u0435\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a imageai \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u0435 \u043f\u043e\u0434 \u043a\u0435\u0440\u0430\u0441, \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0438 \u0432\u044b\u0434\u0430\u0435\u0442 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0435\u0433\u043e \u0431\u043e\u043a\u0441\u0430. \u0414\u0430\u043b\u0435\u0435 \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0446\u0435\u043d\u0442\u0440 \u0431\u043b\u043e\u043a\u0430 \u0438 \u0434\u0432\u0438\u0433\u0430\u0435\u043c \u0442\u0443\u0434\u0430 \u043a\u0430\u043c\u0435\u0440\u0443 (\u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u0434\u043b\u044f \u043a\u0430\u043c\u0435\u0440\u044b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u0438\u0441\u0442\u0435\u0440\u0435\u0437\u0438\u0441, \u0447\u0442\u043e \u0431\u044b \u043e\u043d\u0430 \u043d\u0435 \u0441\u043a\u0430\u043a\u0430\u043b\u0430 \u0442\u0443\u0434\u0430 \u0441\u044e\u0434\u0430). \u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0432\u0442\u043e\u0440\u043e\u0439 \u0446\u0435\u043d\u0442\u0440, \u043d\u043e \u0443\u0436\u0435 \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0435, \u043f\u0440\u0438\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a \u043d\u0435\u043c\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439, \u0447\u0442\u043e \u0431\u044b \u043a\u043e\u0433\u0434\u0430 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0441\u0442\u043e\u0438\u0442 \u043a\u0430\u043c\u0435\u0440\u0430 \u0437\u0430\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u043b\u043e \u0435\u0433\u043e \u043b\u0438\u0446\u043e. \u0425\u043e\u0442\u0435\u043b \u0435\u0449\u0435 \u043f\u0440\u0438\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u043b\u0438\u0446, \u043d\u043e \u0432\u0435\u0431\u043a\u0430 \u0434\u0435\u0448\u0435\u0432\u0430\u044f \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0430\u0432\u0442\u043e\u0444\u043e\u043a\u0443\u0441\u0438\u0440\u043e\u0432\u043a\u0438 \u043e\u043d\u0430 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442.<\/p>\n<h4>\u0414\u043b\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c <\/h4>\n<p>  STM32f4discovery \u2014 \u043e\u0442\u0430\u0434\u043e\u0447\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430<br \/>  MT415 \u043f\u0430\u0440\u0443 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u0432 \u0434\u0432\u0438\u0436\u043a\u043e\u0432<br \/>  2 \u0448\u0430\u0433\u043e\u0432\u044b\u0445 \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044f<br \/>  \u0411\u041f \u043d\u0430 24 \u0412 2,5 \u0410<br \/>  ImageAI<\/p>\n<h4>\u041a\u043e\u0440\u043e\u0442\u043a\u043e \u043e\u043f\u0438\u0448\u0443 \u043a\u043e\u0434 \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u0435 <\/h4>\n<p>  \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f imageai. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0442\u0438\u043f \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c \u2014 yolo \u0438 \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u2014 flash. \u041f\u0440\u0438 \u0444\u043b\u0435\u0448\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430( \u0443\u0436\u0435 \u043d\u0435 \u043f\u043e\u043c\u043d\u044e \u043a\u0430\u043a\u043e\u0433\u043e) \u0438 \u0437\u0430 \u0441\u0447\u0435\u0442 \u044d\u0442\u043e\u0433\u043e \u0443\u0441\u043a\u043e\u0440\u044f\u0435\u0442\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441\u0435\u0442\u0438.<\/p>\n<pre><code class=\"python\">detector = ObjectDetection() detector.setModelTypeAsYOLOv3() detector.setModelPath(\"yolo.h5\") detector.loadModel(detection_speed=\"flash\") <\/code><\/pre>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0434\u043b\u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0448\u0430\u0433\u0438 \u043f\u043e \u043e\u0441\u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0435 \u0438 \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438<\/p>\n<pre><code class=\"python\">def step():     i = 1     u = 0     while i:         while u!=1:              u = ser.write( b'v')          u=0          ff=ser.read(1)         print(1111)         if ff==b'B':             i=0 def step_y():     i = 1     u = 0     while i:         while u!=1:             u = ser.write( b'V')          u=0          ff=ser.read(1)         #print(1111)         if ff==b'B':             i=0 <\/code><\/pre>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043b\u0435\u0432\u043e\u0439 \u0438 \u043f\u0440\u0430\u0432\u043e\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0431\u043e\u043a\u0441\u0430, \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u0446\u0435\u043d\u0442\u0440 \u0438 \u0440\u0435\u0448\u0430\u0435\u0442 \u0432 \u043a\u0430\u043a\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043d\u0443\u0436\u043d\u043e \u043a\u0440\u0443\u0442\u0438\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u044a\u0435\u043a\u0442 \u0431\u044b\u043b \u0432 \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435 \u043a\u0430\u043c\u0435\u0440\u044b. \u041e\u043f\u044f\u0442\u044c \u0436\u0435 \u043d\u0430 \u043c\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b.<\/p>\n<pre><code class=\"python\"> def rotate_x(left, right):     center = (right - left)\/2 + left     u = 0     if center &lt; 320:         i=1         while i:             while u!=1:                  u = ser.write( b'r')              u=0              ff=ser.read(1)             #print(1111)             if ff==b'B':                 i=0        # print(\"right\")     if center &gt; 320:         i=1         while i:             while u!=1:                  u = ser.write( b'l')              u=0              ff=ser.read(1)             print(1111)             if ff==b'B':                i=0         #print(\"left\")     global step_right     global step_left     if center &gt; 360:                  step_right = step_right + 1         step_left = step_left - 1         if step_left &lt; 0:             step_left = 0         if step_right &lt; 30:             step()         else: step_right = 30     if (center &lt; 250 and center != 0):         step_right = step_right - 1         step_left = step_left + 1         if step_right &lt; 0:             step_right = 0         if step_left &lt; 30:             step()         else: step_left = 30 <\/code><\/pre>\n<p>  \u041f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0447\u0442\u0438 \u0442\u0430\u043a\u0430\u044f \u0436\u0435. \u041e\u0442\u043b\u0438\u0447\u0438\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432\u044b\u0448\u0435.<\/p>\n<p>  \u0412 \u043c\u044d\u0439\u043d\u0435 \u043c\u044b \u0443\u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0442 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438 \u0441\u0435\u0442\u0438 \u0434\u0432\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430. \u041f\u0435\u0440\u0432\u044b\u0439 \u044d\u0442\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0441 \u0440\u0430\u0437\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u044d\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0441 \u0438\u0445 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c\u0438.<\/p>\n<pre><code class=\"python\">    detected_copy, detections = detector.detectObjectsFromImage(input_image=frame, input_type =\"array\", output_type = \"array\")     for eachObject in detections:         if eachObject[\"name\"] == \"person\":             str1 = eachObject[\"box_points\"]             str2= str(str1)             n = 1             for i in range(5):                 if str2[i] in [\",\"]:                     detect1 = int(str2[1:i])                     #print(detect1)             print (eachObject[\"box_points\"]) <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0422\u0435\u043f\u0435\u0440\u044c \u043a\u043e\u0434 \u0434\u043b\u044f \u041c\u041a<\/h4>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043c \u043f\u043e\u0440\u0442. <\/p>\n<pre><code class=\"cpp\">static int8_t CDC_Receive_FS(uint8_t* Buf, uint32_t *Len) {   \/* USER CODE BEGIN 6 *\/    \/\/USBD_CDC_SetRxBuffer(&amp;hUsbDeviceFS, &amp;Buf[0]); \t  strncpy(buffer,(char*)Buf,*Len);  \t\/*  if ((buffer[0] == 0x76)&amp;&amp;(h == 0)) \t  { \t\t \/\/ h=1; \t\t  \/\/i=0; \t\t  CDC_Transmit_FS(\"B\", 1); \t  }*\/       if (buffer[0] == 0x76)\/\/v       {      \t step = 1; \t\t  CDC_Transmit_FS(\"B\", 1);       }       if (buffer[0] == 0x73)\/\/\/s       {      \t step = 0; \t\t  CDC_Transmit_FS(\"B\", 1);       }       if (buffer[0] == 0x6C)\/\/l       {      \t dir = 0; \t\t  CDC_Transmit_FS(\"B\", 1);       }       if (buffer[0] == 0x72)\/\/\/r       {      \t dir = 1; \t\t  CDC_Transmit_FS(\"B\", 1);       }         if (buffer[0] == 0x56)\/\/\/V       {      \t step1 = 1; \t\t  CDC_Transmit_FS(\"B\", 1);       }       if (buffer[0] == 0x53)\/\/\/\/S       {      \t step1 = 0; \t\t  CDC_Transmit_FS(\"B\", 1);       }       if (buffer[0] == 0x4c)\/\/\/\/L       {      \t dir1 = 0; \t\t  CDC_Transmit_FS(\"B\", 1);       }       if (buffer[0] == 0x52)\/\/\/R       {      \t dir1 = 1; \t\t  CDC_Transmit_FS(\"B\", 1);       } \t\/*  picture[i]=buffer[0]; \t  \/\/\/CDC_Transmit_FS(\"Z\", 1); \t  i ++; \t  if(i == 9599) \t  { \t\t  start = 1; \t  }*\/  \/\/\/ CDC_Transmit_FS((unsigned char*)str_rx, strlen(str_rx));   USBD_CDC_ReceivePacket(&amp;hUsbDeviceFS);   \/\/CDC_Transmit_FS((unsigned char*)str_rx, strlen(str_rx));   return (USBD_OK);   \/* USER CODE END 6 *\/ } <\/code><\/pre>\n<p>  \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430\u043c\u0438 \u0448\u0430\u0433\u043e\u0432\u0438\u043a\u043e\u0432. \u0415\u0441\u043b\u0438 \u0441\u0442\u0435\u043f == 1 \u0442\u043e \u0442\u043e\u0433\u0434\u0430 \u0434\u0435\u043b\u0430\u0435\u043c \u043e\u0434\u0438\u043d \u0438\u043c\u043f\u0443\u043b\u044c\u0441 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0434\u0438\u043d \u0448\u0430\u0433. \u041d\u0430\u043f\u0440f\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 dir<\/p>\n<pre><code class=\"cpp\">\t\t if(step == 1) \t\t { \t\t\t GPIOC-&gt;ODR &amp;= ~(1&lt;&lt;0); \t\t HAL_Delay(1); \t\t GPIOC-&gt;ODR |= 1&lt;&lt;0; \t\t HAL_Delay(1); \t\t i++; \t\t if(i == 1) \t\t { \t\t\t i = 0; \t\t\t step = 0; \t\t\t\/* if(dir == 0) \t\t\t { \t\t\t\t dir = 1; \t\t\t } \t\t\t else \t\t\t { \t\t\t\t dir = 0; \t\t\t } \t\t\t \/\/\/\/HAL_Delay(1000);*\/ \t\t } \t\t } \t\t if(dir == 1) \t\t { \t\t\t GPIOC-&gt;ODR |= 1&lt;&lt;1; \t\t } \t\t else \t\t { \t\t\t GPIOC-&gt;ODR &amp;= ~(1&lt;&lt;1); \t\t }  \t\t if(step1 == 1) \t\t { \t\t GPIOC-&gt;ODR &amp;= ~(1&lt;&lt;2); \t\t HAL_Delay(1); \t\t GPIOC-&gt;ODR |= 1&lt;&lt;2;  \t\t HAL_Delay(1); \t\t i1++; \t\t if(i1 == 1) \t\t { \t\t\t i1 = 0; \t\t\t step1 = 0; \t\t\t\/* if(dir1 == 0) \t\t\t { \t\t\t\t dir1 = 1; \t\t\t } \t\t\t else \t\t\t { \t\t\t\t dir1 = 0; \t\t\t } \t\t\t \/\/\/\/HAL_Delay(1000);*\/ \t\t } \t\t } \t\t if(dir1 == 1) \t\t { \t\t\t GPIOC-&gt;ODR |= 1&lt;&lt;3; \t\t } \t\t else \t\t { \t\t\t GPIOC-&gt;ODR &amp;= ~(1&lt;&lt;3); \t\t } <\/code><\/pre>\n<p>  \u041d\u0443 \u0432\u043e\u0442 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0438 \u0432\u0441\u0435.<\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.2493%;\"><iframe src=\"https:\/\/www.youtube.com\/embed\/BNVGYeWBBzU?rel=0&amp;showinfo=1&amp;hl=en-US\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  <a href=\"https:\/\/github.com\/beetlea\/camera_search\">C\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438<\/a><\/p>\n<p>  \u0411\u043e\u043b\u044c\u0448\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0410\u0440\u0442\u0435\u043c\u0443 \u041b\u0438\u0441\u0438\u043d\u0443 \u0437\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u0432 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u0435!<\/p><\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d() } } }t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>      <br \/> \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\/483084\/\"> https:\/\/habr.com\/ru\/post\/483084\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/483084\/\">\u0425\u043e\u0447\u0443 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0433\u043e \u0434\u0440\u043e\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b \u0441\u0430\u043c \u043c\u043e\u0433 \u043d\u0430\u0439\u0442\u0438 \u0434\u043e\u0440\u043e\u0433\u0443 \u043a \u0446\u0435\u043b\u0438 \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0431\u043e\u0439\u0442\u0438 \u0432\u0441\u0435 \u043f\u0440\u0435\u043f\u044f\u0442\u0441\u0442\u0432\u0438\u044f \u043d\u0438 \u043a\u043e\u0433\u043e \u043d\u0435 \u0437\u0430\u0434\u0435\u0432. \u0420\u0435\u0448\u0438\u043b \u043d\u0430\u0447\u0430\u0442\u044c \u0441 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438 \u0438 \u0432\u0435\u0431\u043a\u0438. \u0422\u0430\u043a \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442<img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/c78\/440\/4f0\/c784404f0b5fa57378af9fb0e9242e01.jpg\" alt=\"image\"><\/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-296835","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/296835","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=296835"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/296835\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=296835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=296835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=296835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}