Skip to content

minlaxz/mm-alpr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Myanmar License Plate Detaction and Recogition

Setup

  1. Install CUDA
  2. Install CUDNN
  3. Install nvidia driver
  4. Build OPENCV with CUDA then Install
  5. Compile Darknet v4

CUDA Installation

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
sudo apt update
sudo apt install cuda

cuDNN installation

  • Note - cuda v11.0 need cudnn v8.0.3.33

sudo mv cuda/include/cudnn*.h /usr/local/cuda/include/

OPENCV Installation with CUDA

Please reference to this pyimagesearch guide.

TLDR;

git clone opencv
git clone opencv_contrib
mkdir build && cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local \
-D WITH_CUDA=ON -D ENABLE_FAST_MATH=1 -D CUDA_FAST_MATH=1 -D WITH_CUBLAS=1 \
-D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules -D BUILD_EXAMPLES=ON ..

About

No description yet.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published