Object Detection (YOLOv5 .NET) does not uses CUDA it uses DirectMLSo does this mean that the CUDA special sauce isn't in play?
Yes, you also need the License Plate Reader module installed to do ALPR, this module does use CUDA, It needs CUDA 12.4 for you GPUIs the custom model for the ALPR "license-plate"?
No, but you do need more zoom on the plate so the application can work.Do I need "Get your API key from Plate Recognizer"
Thanks for the help. It looks like you took the image that I uploaded and then put it through CPAI. I have never seen that before which is cool! One thing you might have missed is that CPAI gave this a confirmation for the DayPlate. I guess I assumed that if it does this then it should be able to "read" the plate. I might not have uploaded the image where it thought i (but I would think it should given it was from the AI inspector, but it does not have the orange outline in the image). This camera at this setting has worked in the past, but we had a crash on our machine and had to start from scratch and didn't have any of the info about how we set it up in the past so here we are trying again.
Could the image you use not be as high resolution as what is produced at the camera given I uploaded to a forum? Did you have a camera in the past that didn't work and you zoomed in and then it did? It looks like you used Yolo5.NET but it looks like this used ALPR module. Is that a correct comparison? Really appreciate the time you took to look into this and point me in the right direction.
That is because you have the custom license-plate model enabled . This will only tell you if a license plate was detected (DayPlate/NightPlate), it does not read the plate. It is not needed if you are doing ALPR.One thing you might have missed is that CPAI gave this a confirmation for the DayPlate
Care to enlighten us on what the error message is, or should we just try to guess!I have an error that seems to be with the ALPR_adapter.py. Does anyone know if this is a known things? Maybe my install was corrupted? Thank you again for the settings. That helps![]()
To get the ALPR module to work do the below steps.So Sorry. Yes. I'll post that ASAP. Thanks.
Sorry for the delay as I am coming down with a cold...
So I think that maybe the problem arises when I installed the module for ALPR. Note the error after executing post install script for License Plate Reader. I have removed it and tried to install again and checked that everything was deleted and checked the "Do not use download cache" to install again without luck. So I am thinking that this is the issue, but as always any help is much appreciated.
2025-09-25 13:15:47: Installing CodeProject.AI Analysis Module
2025-09-25 13:15:47: ======================================================================
2025-09-25 13:15:47: CodeProject.AI Installer
2025-09-25 13:15:47: ======================================================================
2025-09-25 13:15:48: 1646.6Gb of 1906Gb available on (No label) (Windows 11 x86_64 - windows)
2025-09-25 13:15:48: General CodeProject.AI setup
2025-09-25 13:15:48: Checking for VC++ Redist...v14 Present.
2025-09-25 13:15:48: Creating Directories...done
2025-09-25 13:15:48: GPU support
2025-09-25 13:15:49: CUDA Present...Yes (CUDA 12.2, No cuDNN found, CUDA Toolkit: true)
2025-09-25 13:15:49: ROCm Present...No
2025-09-25 13:15:49: Checking for .NET 9.0...Checking runtimes...All good. Found .NET aspnetcore 9
2025-09-25 13:15:50: Reading ALPR settings.......done
2025-09-25 13:15:50: Installing module License Plate Reader 3.3.4 (Internal)
2025-09-25 13:15:50: Installing Python 3.9
2025-09-25 13:15:50: Python 3.9 is already installed
2025-09-25 13:15:55: Creating Virtual Environment (Local)...done
2025-09-25 13:15:55: Confirming we have Python 3.9 in our virtual environment...present
2025-09-25 13:15:55: Downloading ALPR models...already exists...Expanding...done.
2025-09-25 13:15:55: Copying contents of ocr-en-pp_ocrv4-paddle.zip to paddleocr...done
2025-09-25 13:15:57: Checking CPU compatibility...All good
2025-09-25 13:15:57: Installing Python packages for License Plate Reader
2025-09-25 13:15:57: [0;Installing GPU-enabled libraries: If available
2025-09-25 13:15:58: Ensuring Python package manager (pip) is installed...done
2025-09-25 13:16:05: Ensuring Python package manager (pip) is up to date...done
2025-09-25 13:16:05: Python packages specified by requirements.windows.cuda12.txt
2025-09-25 13:16:10: - Installing NumPy, a package for scientific computing...(✅ checked) done
2025-09-25 13:16:41: - Installing PaddlePaddle, Parallel Distributed Deep Learning...(✅ checked) done
2025-09-25 13:17:36: - Installing PaddleOCR, the OCR toolkit based on PaddlePaddle...(✅ checked) done
2025-09-25 13:17:37: - Installing imutils, the image utilities library...(✅ checked) done
2025-09-25 13:17:43: - Installing the CodeProject.AI SDK...(✅ checked) done
2025-09-25 13:17:43: Scanning modulesettings for downloadable models...No models specified
2025-09-25 13:17:43: Executing post-install script for License Plate Reader
2025-09-25 13:17:52: Traceback (most recent call last):
2025-09-25 13:17:52: File "C:\Program Files\CodeProject\AI\modules\ALPR\ALPR_adapter.py", line 105, in <module>
2025-09-25 13:17:52: ALPR_adapter().start_loop()
2025-09-25 13:17:52: File "C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python39\venv\lib\site-packages\codeproject_ai_sdk\module_runner.py", line 278, in start_loop
2025-09-25 13:17:52: self.initialise()
2025-09-25 13:17:52: File "C:\Program Files\CodeProject\AI\modules\ALPR\ALPR_adapter.py", line 43, in initialise
2025-09-25 13:17:52: init_detect_platenumber(self.opts)
2025-09-25 13:17:52: File "C:\Program Files\CodeProject\AI\modules\ALPR\ALPR.py", line 40, in init_detect_platenumber
2025-09-25 13:17:52: ocr = PaddleOCR(lang = opts.language,
2025-09-25 13:17:52: File "C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python39\venv\lib\site-packages\paddleocr\pipelines\ocr.py", line 163, in __init_
2025-09-25 13:17:52: super().init(**base_params)
2025-09-25 13:17:52: File "C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python39\venv\lib\site-packages\paddleocr\pipelines\base.py", line 63, in __init_
2025-09-25 13:17:52: self._common_args = parse_common_args(
2025-09-25 13:17:52: File "C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python39\venv\lib\site-packages\paddleocr\_common_args.py", line 43, in parse_common_args
2025-09-25 13:17:52: raise ValueError(f"Unknown argument: {name}")
2025-09-25 13:17:52: ValueError: Unknown argument: use_gpu
2025-09-25 13:17:52: Self test: Self-test failed
2025-09-25 13:17:52: Module setup time 00:02:03.54
2025-09-25 13:17:52: Setup complete
2025-09-25 13:17:52: Total setup time 00:02:05.07
2025-09-25 13:17:52: SETUP FAILED:
2025-09-25 13:17:52: - [ALPR] Self test failed
The main issue is cuDNN is not installedThank you so much! I will give it a try this weekend and let you know. Thanks again. Can you make a guess as to why there is an issue. Just curious where I might have gone wrong with the install. Thanks.
Download CUDA 12.4 from the below link and run the exe fileHi Mike. The install_CUDnn.bat has these instructions.
:: CodeProject.AI Server
::
:: Windows cuDNN install script
::
:: BEFORE YOU START: Make sure you have
::
:: a) CUDA 11.7 drivers (Download The Latest Official NVIDIA Drivers) installed, and
:: b) CUDA Toolkit 11.7 (CUDA Toolkit 12.1 Downloads) installed.
I noted in your post that I need CUDA 12.4. Is there a bat file that is for 12.4 or will this work?
Thank you.
I think I have CUDA and cuDNN installed correctly, but when I install the ALRP, I am getting the ALPR Self test failed. Here is the install log
2025-09-27 13:59:59: Installing CodeProject.AI Analysis Module
2025-09-27 13:59:59: ======================================================================
2025-09-27 13:59:59: CodeProject.AI Installer
2025-09-27 13:59:59: ======================================================================
2025-09-27 14:00:00: 209.7Gb of 485Gb available on OS (Windows 11 x86_64 - windows)
2025-09-27 14:00:00: General CodeProject.AI setup
2025-09-27 14:00:00: Checking for VC++ Redist...v14 Present.
2025-09-27 14:00:00: Creating Directories...done
2025-09-27 14:00:00: GPU support
2025-09-27 14:00:00: CUDA Present...Yes (CUDA 12.4, cuDNN 8.9, CUDA Toolkit: true)
2025-09-27 14:00:00: Updating path to include cuDNN
2025-09-27 14:00:01: ROCm Present...No
2025-09-27 14:00:01: Checking for .NET 9.0...Checking runtimes...All good. Found .NET aspnetcore 9
2025-09-27 14:00:03: Reading ALPR settings.......done
2025-09-27 14:00:03: Installing module License Plate Reader 3.3.4 (Internal)
2025-09-27 14:00:03: Installing Python 3.9
2025-09-27 14:00:03: Python 3.9 is already installed
2025-09-27 14:00:12: Creating Virtual Environment (Local)...done
2025-09-27 14:00:12: Confirming we have Python 3.9 in our virtual environment...present
2025-09-27 14:00:12: Downloading ALPR models...already exists...Expanding...done.
2025-09-27 14:00:12: Copying contents of ocr-en-pp_ocrv4-paddle.zip to paddleocr...done
2025-09-27 14:00:13: Checking CPU compatibility...All good
2025-09-27 14:00:13: Installing Python packages for License Plate Reader
2025-09-27 14:00:14: [0;Installing GPU-enabled libraries: If available
2025-09-27 14:00:15: Ensuring Python package manager (pip) is installed...done
2025-09-27 14:00:28: Ensuring Python package manager (pip) is up to date...done
2025-09-27 14:00:28: Python packages specified by requirements.windows.cuda12.txt
2025-09-27 14:00:37: - Installing NumPy, a package for scientific computing...(✅ checked) done
2025-09-27 14:01:35: - Installing PaddlePaddle, Parallel Distributed Deep Learning...(✅ checked) done
2025-09-27 14:03:31: - Installing PaddleOCR, the OCR toolkit based on PaddlePaddle...(✅ checked) done
2025-09-27 14:03:34: - Installing imutils, the image utilities library...(✅ checked) done
2025-09-27 14:03:45: - Installing the CodeProject.AI SDK...(✅ checked) done
2025-09-27 14:03:45: Scanning modulesettings for downloadable models...No models specified
2025-09-27 14:03:45: Executing post-install script for License Plate Reader
2025-09-27 14:03:57: Traceback (most recent call last):
2025-09-27 14:03:57: File "C:\Program Files\CodeProject\AI\modules\ALPR\ALPR_adapter.py", line 105, in <module>
2025-09-27 14:03:57: ALPR_adapter().start_loop()
2025-09-27 14:03:57: File "C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python39\venv\lib\site-packages\codeproject_ai_sdk\module_runner.py", line 278, in start_loop
2025-09-27 14:03:57: self.initialise()
2025-09-27 14:03:57: File "C:\Program Files\CodeProject\AI\modules\ALPR\ALPR_adapter.py", line 43, in initialise
2025-09-27 14:03:57: init_detect_platenumber(self.opts)
2025-09-27 14:03:57: File "C:\Program Files\CodeProject\AI\modules\ALPR\ALPR.py", line 40, in init_detect_platenumber
2025-09-27 14:03:57: ocr = PaddleOCR(lang = opts.language,
2025-09-27 14:03:57: File "C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python39\venv\lib\site-packages\paddleocr\pipelines\ocr.py", line 163, in __init_
2025-09-27 14:03:57: super().init(**base_params)
2025-09-27 14:03:57: File "C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python39\venv\lib\site-packages\paddleocr\pipelines\base.py", line 63, in __init_
2025-09-27 14:03:57: self._common_args = parse_common_args(
2025-09-27 14:03:57: File "C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python39\venv\lib\site-packages\paddleocr\_common_args.py", line 43, in parse_common_args
2025-09-27 14:03:57: raise ValueError(f"Unknown argument: {name}")
2025-09-27 14:03:57: ValueError: Unknown argument: use_gpu
2025-09-27 14:03:57: Self test: Self-test failed
2025-09-27 14:03:58: Module setup time 00:03:56.52
2025-09-27 14:03:58: Setup complete
2025-09-27 14:03:58: Total setup time 00:03:58.18
2025-09-27 14:03:58: SETUP FAILED:
2025-09-27 14:03:58: - [ALPR] Self test failed
This is way beyond my skill set but when I ask ChatGPT it say this
Short version: your ALPR install pulled a new PaddleOCR that no longer accepts the rec_algorithm argument. The ALPR module still sends that arg, so PaddleOCR throws
ValueError: Unknown argument: rec_algorithm and the module’s self-test fails. PaddleOCR 3.0 changed its pipeline/API; ALPR expects the older 2.x API.
It offers some recommendations but again this is above my head and I think that if others are not running into problems, I am not sure what is happening with me.
Thoughts?