Comments (7)
From git:
>where mkdir
c:\Program Files\Git\usr\bin\mkdir.exe
>echo %PATH%
C:\Program Files\Git\cmd;C:\Python\Python311\Scripts\;C:\Python\Python311\;c:\Program Files\Git\usr\bin;c:\Program Files\Git\mingw64\bin;...
I put git dirs at the beginning of PATH
variable, so I can use Linux tools on windows.
Readme covers this:
- Install Git SCM to Windows - it provides a lot of linux utilities on Windows (e.g. find, unzip, rm) and put C:\Program Files\Git\usr\bin to the beginning of your PATH variable (temporarily you can do it in cmd with set PATH=C:\Program Files\Git\usr\bin;%PATH% - unfortunately there are several Windows tools with the same name as on linux (find, sort) with different behavior/functionality and there is need to avoid them during training.
from tesstrain.
I'm afraid that this part of the Makefile never worked in the Windows command line. Either try to fetch the missing files manually (without make – you have to figure out how to do that for yourself). Or try to fix the problem with the Makefile. Or take the easy way and run the training in WSL.
from tesstrain.
It works for me on Windows:
> git clone --depth=1 https://github.com/tesseract-ocr/tesstrain
Cloning into 'tesstrain'...
remote: Enumerating objects: 34, done.
remote: Counting objects: 100% (34/34), done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 34 (delta 3), reused 12 (delta 0), pack-reused 0
Receiving objects: 100% (34/34), 5.29 MiB | 220.00 KiB/s, done.
Resolving deltas: 100% (3/3), done.
>cd tesstrain
>make tesseract-langdata
You are using make version: 4.4.1
wget -O data/langdata/radical-stroke.txt 'https://github.com/tesseract-ocr/langdata_lstm/raw/main/radical-stroke.txt'
--2024-04-25 09:12:49-- https://github.com/tesseract-ocr/langdata_lstm/raw/main/radical-stroke.txt
Connecting to 10.204.10.7:3128... connected.
Proxy request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/tesseract-ocr/langdata_lstm/main/radical-stroke.txt [following]
--2024-04-25 09:12:50-- https://raw.githubusercontent.com/tesseract-ocr/langdata_lstm/main/radical-stroke.txt
Connecting to 10.204.10.7:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 330874 (323K) [text/plain]
Saving to: 'data/langdata/radical-stroke.txt'
data/langdata/radical-stroke. 100%[=================================================>] 323,12K 1,54MB/s in 0,2s
2024-04-25 09:12:50 (1,54 MB/s) - 'data/langdata/radical-stroke.txt' saved [330874/330874]
wget -O data/langdata/Arabic.unicharset 'https://github.com/tesseract-ocr/langdata_lstm/raw/main/Arabic.unicharset'
--2024-04-25 09:12:50-- https://github.com/tesseract-ocr/langdata_lstm/raw/main/Arabic.unicharset
Connecting to 10.204.10.7:3128... connected.
Proxy request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/tesseract-ocr/langdata_lstm/main/Arabic.unicharset [following]
--2024-04-25 09:12:51-- https://raw.githubusercontent.com/tesseract-ocr/langdata_lstm/main/Arabic.unicharset
Connecting to 10.204.10.7:3128... connected.
Proxy request sent, awaiting response... 200 OK
...
from tesstrain.
I can reproduce the error. It is reported by a wrong mkdir
(the default one from DOS/Windows).
@zdenop, are you using the mkdir
from coreutils? How did you install it?
from tesstrain.
Из git:
>where mkdir c:\Program Files\Git\usr\bin\mkdir.exe >echo %PATH% C:\Program Files\Git\cmd;C:\Python\Python311\Scripts\;C:\Python\Python311\;c:\Program Files\Git\usr\bin;c:\Program Files\Git\mingw64\bin;...Я помещаю git dirs в начало переменной
PATH
, чтобы можно было использовать инструменты Linux в Windows.Readme охватывает это:
- Установите Git SCM в Windows — он предоставляет множество утилит Linux для Windows (например, find, unzip, rm) и поместите C:\Program Files\Git\usr\bin в начало переменной PATH (временно вы можете сделать это в cmd с набором PATH=C:\Program Files\Git\usr\bin;%PATH% - к сожалению, существует несколько инструментов Windows с тем же именем, что и в Linux (найти, сортировать), с различным поведением/функциональностью, и их необходимо избегать их во время тренировки.
Thank you very much for the tip!!!
This works great!!!
Problem solved!
Have a good day
from tesstrain.
(.venv) PS D:\ocr\tesstrain> make tesseract-langdata
You are using make version: 4.4.1
wget -O data/langdata/radical-stroke.txt 'https://github.com/tesseract-ocr/langdata_lstm/raw/main/radical-stroke.txt'
--2024-04-25 12:53:22-- https://github.com/tesseract-ocr/langdata_lstm/raw/main/radical-stroke.txt
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/tesseract-ocr/langdata_lstm/main/radical-stroke.txt [following]
--2024-04-25 12:53:23-- https://raw.githubusercontent.com/tesseract-ocr/langdata_lstm/main/radical-stroke.txt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 330874 (323K) [text/plain]
Saving to: 'data/langdata/radical-stroke.txt'
data/langdata/radical-stroke.txt 100%[===============================================================================>] 323,12K 1,63MB/s in 0,2s
2024-04-25 12:53:23 (1,63 MB/s) - 'data/langdata/radical-stroke.txt' saved [330874/330874]
......
(.venv) PS D:\ocr\tesstrain>
from tesstrain.
Can we close this issue?
from tesstrain.
Related Issues (20)
- Trying to train Tesseract for a different font, unable to get CER under 50%
- File not found - *.gt.txt HOT 3
- Error fine tuning new font for Thai Language
- What if my ground truth includes characters not found in a *.unicharset?
- Error generate text2image using khm.training_text HOT 1
- make training not building traineddata file HOT 1
- `make lists -j32` doesn't seem to be honoring the thread count. (Also happens when calling `make training -j32`) HOT 3
- deu_latf wordfile HOT 4
- unicharset_extractor stuck HOT 1
- How to train captcha? HOT 4
- winget install GnuWin32.Make error HOT 10
- A question about missing dependency warnings when compiling and installing tesseract on centos using source code HOT 1
- How to train Chinese tradtional vertical in Tesseract 5? HOT 1
- "Compute CTC targets failed for xyz.lstmf!" for custom NET_SPECs HOT 6
- How to do incremental-training on tesseract-ocr? HOT 5
- `--exposures` argument ignored
- Failed to read data/Assert failed HOT 4
- Tesseract trained on handwriting data - when being tested it only outputs the letter "e" HOT 4
- How to combine two trained data files : tam.traineddata and mal.traineddata
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tesstrain.