Comments (3)
macOS not
gosseract/preprocessflags_x.go
Line 4 in ee227ad
// #cgo CXXFLAGS: -std=c++0x
// #cgo CPPFLAGS: -I/usr/local/include
// #cgo CPPFLAGS: -Wno-unused-result
// #cgo LDFLAGS: -L/usr/local/lib -lleptonica -ltesseract
from gosseract.
Same issue here. Were you able to fix it?
from gosseract.
@andyrodionov @otiai10
macos:
1. In the terminal, enter the following command to install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
2. Install the Leptonica library:
brew install leptonica
3. Verify whether the Leptonica library has been installed successfully:
brew list leptonica
sudo ln -s /usr/local/Cellar/leptonica/1.83.1 /usr/local/opt/leptonica
sudo ln -s /usr/local/opt/leptonica/lib/libleptonica.6.dylib /usr/local/opt/leptonica/lib/liblept.5.dylib
4. Check dependencies
otool -L /usr/local/opt/leptonica/lib/libleptonica.6.dylib
5. Which third-party libraries does gossipact depend on?
Tesseract: an open source OCR engine
Leptonica: an image processing library for processing and analyzing images
Jpeg: an image codec library for processing JPEG images
Gzip: a data compression library for compressing and decompressing data
Curl: a network library for accessing network resources
gosseract uses pkg-config to obtain dependencies of third-party libraries. When compiling gosseract, these third-party libraries need to be installed.
Here is a detailed description of gosseract dependencies:
Tesseract: gossiper uses Tesseract for OCR recognition. Tesseract is an open source OCR engine that supports multiple languages and fonts.
Leptonica: gossipact uses Leptonica to process and analyze images. Leptonica is an image processing library that supports multiple image formats.
Jpeg: gossiperact uses Jpeg to process JPEG images. Jpeg is an image codec library that supports the JPEG image format.
Gzip: gossipact uses Gzip to compress and decompress data. Gzip is a data compression library that supports the Gzip compression format.
Curl: gossipact uses Curl to access network resources. Curl is a network library that supports protocols such as HTTP and HTTPS.
In macOS, you can use the following command to install the third-party libraries that gosseract depends on:
brew install tesseract leptonica jpeg gzip curl
In Linux, you can use the following command to install the third-party libraries that gosseract depends on:
sudo apt install tesseract-ocr libleptonica-dev libjpeg-dev zlib1g-dev libcurl4-openssl-dev
from gosseract.
Related Issues (20)
- leptonica HOT 3
- Convert image to pdf HOT 1
- undefined: gosseract.NewClient HOT 15
- fatal error: leptonica/allheaders.h: No such file or directory HOT 2
- Fails to OCR file that CLI Tesseract handles perfectly HOT 2
- tessbridge.cpp:5:10: fatal error: 'leptonica/allheaders.h' file not found HOT 1
- `leptonica` a hundredth time! HOT 7
- does not recognize spaces as another found result
- how can i get Orientation in degrees
- Extracting text is not working correctly in v5.3.0-2 in Alpine
- build for windows arch fail HOT 1
- Linking and DLL runtime issues on Windows HOT 1
- library not found for -llept HOT 5
- undefined: gosseract.NewClient HOT 3
- ld: library 'leptonica' not found HOT 2
- Сrashes with concurrency (win11) HOT 2
- [Question] High CPU Usage
- undefined: gosseract.NewClient when CGO_ENABLED=0 HOT 2
- cannot find -lleptonica and -ltesseract HOT 1
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 gosseract.