Comments (7)
Did you build text2image yourself (if yes: how)? And how did you install it?
from tesseract.
Yes, I build it for Android.
I din't give you the reproduce steps, because it is very clear if you look at the source code https://github.com/tesseract-ocr/tesseract/blob/main/src/training/CMakeLists.txt#L405-L412
My build instuctions:
cmake \
-Wno-dev \
-DBUILD_TESTING=OFF \
-DCMAKE_INSTALL_LIBDIR='/github/home/.ndk-pkg/installed/android-21-arm64-v8a/e485a3cff7749b1b6d89b185304b1ff469c336fb646f1b164b65578e9bad7ccd/lib' \
-DCMAKE_INSTALL_PREFIX='/github/home/.ndk-pkg/installed/android-21-arm64-v8a/e485a3cff7749b1b6d89b185304b1ff469c336fb646f1b164b65578e9bad7ccd' \
-DCMAKE_TOOLCHAIN_FILE='/github/home/.ndk-pkg/run/750/android-21-arm64-v8a/tesseract/android.toolchain.cmake' \
-DCMAKE_VERBOSE_MAKEFILE='ON' \
-DCMAKE_COLOR_MAKEFILE='ON' \
-S /github/home/.ndk-pkg/run/750/android-21-arm64-v8a/tesseract/src \
-B /github/home/.ndk-pkg/run/750/android-21-arm64-v8a/tesseract/src/_ \
-DENABLE_LTO=OFF \
-DUSE_SYSTEM_ICU=ON \
-DDISABLE_ARCHIVE=OFF \
-DDISABLE_CURL=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_TRAINING_TOOLS=ON \
-DOPENMP_BUILD=ON \
-DLEPT_TIFF_RESULT=0
from tesseract.
I am curious:
Are there useful applications for training on Android?
And how did you create that nice dependency diagram?
from tesseract.
Are there useful applications for training on Android?
I found this when I built it for Android, I think this problem is nothing to do with specific platform.
And how did you create that nice dependency diagram?
I create it in dot https://graphviz.org/doc/info/command.html
from tesseract.
I found this when I built it for Android, I think this problem has nothing to do with a specific platform.
Why do you try to build training tools if you are not able/want to use them on your platform? Just to get extra issues?
I din't give you the reproduce steps, because it is very clear if you look at the source code https://github.com/tesseract-ocr/tesseract/blob/main/src/training/CMakeLists.txt#L405-L412
I see no reason why to install pango_training
:
$ ldd build/bin/text2image | grep -i pango
libpangocairo-1.0.so.0 => /lib/arm-linux-gnueabihf/libpangocairo-1.0.so.0 (0xb6660000)
libpango-1.0.so.0 => /lib/arm-linux-gnueabihf/libpango-1.0.so.0 (0xb65f0000)
libpangoft2-1.0.so.0 => /lib/arm-linux-gnueabihf/libpangoft2-1.0.so.0 (0xb3980000)
The reason is very simple - the official build process for training tools uses static linking.
from tesseract.
If you want to static linking, you should change add_library(pango_training ${pango_training_src})
to add_library(pango_training STATIC ${pango_training_src})
from tesseract.
It a feature not a bug, so I'm closing.
from tesseract.
Related Issues (20)
- Native Crash in otsuthr.cpp HOT 2
- CI: vcpkg failure due to missing xz tarball HOT 4
- link error LNK1120 with text2image.exe
- Mac m1, not able to compile HOT 2
- OCR of Indian Currency Sign " ₹" HOT 2
- please support linux binary , like fzf HOT 1
- Infinite recursion for `tesseract --list-langs` with conda-forge binary HOT 16
- SW Pipeline for Ubuntu failed HOT 2
- Can not read input file in /tmp HOT 3
- Tesseract can not recognize grey text in black background HOT 1
- Multiple language detection within an image HOT 1
- Floating-point exception (SIGFPE) due to out-of-range input to asinf in Wordrec::angle_change HOT 4
- Potential Null Pointer Dereference in Function `RecodeBeamSearch::ContinueContext` HOT 10
- Openmp cannot be disabled HOT 4
- Dropout layers for Tesseract HOT 5
- Build system drags in "avx512" support on setup that does not support this instructions HOT 2
- Inconsistencies in detection and extraction of text using tesseract HOT 3
- Floating point exception with tessdata models since version 5.4.0 HOT 6
- Differences in image contrast, brightness, and sharpness can lead to different directions of ocr recognition HOT 3
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 tesseract.