Created
July 15, 2024 01:47
-
-
Save baudneo/e74748b69a079358b973c5e7c7bb2d11 to your computer and use it in GitHub Desktop.
Build OpenALPR with CUDA
This file contains 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
# Install prerequisites | |
# this includes all the ones missing from OpenALPR's guide. | |
sudo apt install libtesseract-dev git cmake build-essential libleptonica-dev -y | |
sudo apt install liblog4cplus-dev libcurl3-dev -y | |
sudo apt install libleptonica-dev -y | |
sudo apt install libcurl4-openssl-dev -y | |
sudo apt install liblog4cplus-dev -y | |
sudo apt install beanstalkd -y | |
sudo apt install openjdk-8-jdk -y | |
# Clone the latest code from GitHub | |
git clone https://github.com/openalpr/openalpr.git | |
# Setup the build directory | |
cd openalpr/src | |
mkdir build | |
cd build | |
# setup the compile environment | |
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc –DCOMPILE_GPU=1 -D WITH_GPU_DETECTOR=ON .. | |
# compile the library | |
make | |
# Install the binaries/libraries to your local system (prefix is /usr) | |
sudo make install | |
# Test the library | |
wget http://plates.openalpr.com/h786poj.jpg -O lp.jpg | |
alpr lp.jpg | |
rm lp.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment