You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+65-13
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,7 @@
1
-
# LPReditor_ANPR_Lib
1
+
*# LPReditor_ANPR_Lib
2
2
C library that performs license plate recognition.
3
3
4
4
*Deep learning number plate recognition engine, based on  and . Operates on any latin license plate.*
5
-
-[LPReditor_ANPR_Lib](#lpreditor_anpr_lib)
6
5
-[C API](#c-api)
7
6
- [Building the API](#building-the-api)
8
7
- [(Common) Step 1 : Install !OpenCV and CUDA & cuDNN (Optional but recommended if you want to use CUDA Execution Provider)](#common-step-1--install--and-cuda--cudnn-optional-but-recommended-if-you-want-to-use-cuda-execution-provider)
@@ -19,8 +18,10 @@ C library that performs license plate recognition.
@@ -45,7 +46,7 @@ The code is standard c++ and relies on  Step 1 : Install  and CUDA & cuDNN (Optional but recommended if you want to use CUDA Execution Provider)
46
47
47
48
The installation process of CUDA is quite straightforward. You can Install CUDA v11.0 from
48
-
. Next, install cuDNN by downloading the installer from . You also need to download models files, that er too large to be accepted by my github account. Models are available on my drive account here . Download models.zip file and unzip in /data/ folder.
49
+
[here](https://developer.nvidia.com/cuda-11.0-download-archive). Next, install cuDNN by downloading the installer from [here](https://developer.nvidia.com/rdp/cudnn-archive). You also need to download models files, that er too large to be accepted by my github account. Models are available on my drive account here [here](https://drive.google.com/drive/folders/1NIU2EYfdzRbtgHvdRUY0yJmUzANIqEP9?usp=sharing). Download models.zip file and unzip in /data/ folder.
Download onnxruntime-win-x64-1.x.y.zip and decompress somewhere.
@@ -69,7 +70,7 @@ The use of the library decomposes in three distinct steps. At first, engine init
69
70
This id must be passed, as a parameter, to the two others functions. Second, call the *detect_with_lpn_detection* function, to recognize license plates in images. Parameters of the *detect_with_lpn_detection* function are :
70
71
71
72
- 4 parameters, to access the image, (preloaded) in memory.
72
-
- the ids of models returned by *init_yolo_detector*.
73
+
- the ids of models returned by *init_yolo_detector* and *init_plates_classifer*.
73
74
- a pointer to a (preallocated) c string (filled, in return, with the license plate number string)
74
75
75
76
Third, when reading images is ended, call the *close_detector* to free the memory, consumed by the detector (important : pass, as parameter, the id returnned by *init_yolo_detector*).
@brief initializes a new detector, by loading its model file and returns its unique id. The repo comes with two models namely lpreditor_anpr_focused_on_lp and lpreditor_anpr_global_view. So you have to call this function twice to initialize both models (note that it is possible, but not a good idea, to initialize just one model).
146
+
@brief initializes a new detector, by loading its model file and returns its unique id. The repo comes with two models namely lpreditor_anpr_focused_on_lp and lpreditor_anpr_global_view (these models have to be downloaded from [google drive] (https://drive.google.com/drive/folders/1NIU2EYfdzRbtgHvdRUY0yJmUzANIqEP9?usp=sharing)). So you have to call this function twice to initialize both models (note that it is possible, but not a good idea, to initialize just one model).
0 commit comments