This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name _; | |
| return 301 https://$host$request_uri; | |
| } | |
| server { | |
| listen 443 ssl http2; | |
| listen [::]:443 ssl http2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://registry.astralinux.ru/browse/library/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Чтобы переустановить VSCode на Ubuntu, вы можете выполнить следующие шаги: | |
| **Метод 1: Удаление и переустановка через терминал** | |
| 1. Откройте терминал на вашем Ubuntu-системе. | |
| 2. Введите команду `sudo apt-get remove code` и нажмите Enter, чтобы удалить VSCode. | |
| 3. Введите команду `sudo apt-get autoremove` и нажмите Enter, чтобы удалить все зависимости, связанные с VSCode. | |
| 4. Введите команду `sudo apt-get update` и нажмите Enter, чтобы обновить список пакетов. | |
| 5. Введите команду `sudo apt-get install code` и нажмите Enter, чтобы переустановить VSCode. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Ctrl><Shift_L>']" | |
| gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Shift>Control_L']" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:20.04 | |
| USER root | |
| WORKDIR /root | |
| SHELL [ "/bin/bash", "-c" ] | |
| ARG PYTHON_VERSION_TAG=3.10.5 | |
| ARG LINK_PYTHON_TO_PYTHON3=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TESSDATA_PREFIX=../tesseract/tessdata make training MODEL_NAME=rus START_MODEL=rus TESSDATA=../tesseract/tessdata MAX_ITERATIONS=400 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget https://poppler.freedesktop.org/poppler-21.09.0.tar.xz | |
| tar -xvf poppler-21.09.0.tar.xz | |
| sudo apt-get install libnss3 libnss3-dev | |
| sudo apt-get install libcairo2-dev libjpeg-dev libgif-dev | |
| sudo apt-get install cmake libblkid-dev e2fslibs-dev libboost-all-dev libaudit-dev | |
| cd poppler-21.09.0/ | |
| mkdir build | |
| cd build/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Создание файла с разметкой | |
| D:\REP\projects\drawing_text_recognition\tesseract\tesseract.exe D:\REP\projects\drawing_text_recognition\teatch_img\1.png testfile --psm 6 -l rus+eng lstmbox | |
| после этого размертку можно поправить при необходимости | |
| Создание тренировочной БД | |
| D:\REP\projects\drawing_text_recognition\tesseract\tesseract.exe D:\REP\projects\drawing_text_recognition\teatch_img\1.png testfile.box --psm 6 -l rus+eng lstm.train |