Blue Iris and CodeProject.AI ALPR

I sent v3.0.3 to CodeProject.AI so they can add it. I will see where they are at adding it. Also I am almost done with v3.0.4.

Thank you Mike,

I am glad to hear this. I am having issues with 3.0.3 missing a few tags every now and then. When I pull and look at the video of the missed tag the tag was clearly visible. I hope 3.0.3 or 3.0.4 fixes this.

Thank again,

Rick
 
Thank you Mike,

I am glad to hear this. I am having issues with 3.0.3 missing a few tags every now and then. When I pull and look at the video of the missed tag the tag was clearly visible. I hope 3.0.3 or 3.0.4 fixes this.

Thank again,

Rick
Can you send me an images of the missing tags
 
With your RTX 2070 you should be using using CUDA 11.8 not CUDA 12.4.

View attachment 189038

Thanks Mike I did all of that and I am still stuck with "Error - 1" when looking up the plate?
 
Thanks Mike I did all of that and I am still stuck with "Error - 1" when looking up the plate?
Can you copy the module info and post it

1710187889013.png

Module 'License Plate Reader' 3.0.3 (ID: ALPR)
Valid: True
Module Path: <root>\modules\ALPR
AutoStart: True
Queue: alpr_queue
Runtime: python3.9
Runtime Loc: Local
FilePath: ALPR_adapter.py
Pre installed: False
Start pause: 3 sec
Parallelism: 0
LogVerbosity:
Platforms: all
GPU Libraries: installed if available
GPU Enabled: enabled
Accelerator:
Half Precis.: enable
Environment Variables
APPDIR = <root>\modules\ALPR
AUTO_PLATE_ROTATE = false
CROPPED_PLATE_DIR = <root>\Server\wwwroot
MIN_COMPUTE_CAPABILITY = 6
MIN_CUDNN_VERSION = 7
OCR_OPTIMAL_CHARACTER_HEIGHT = 60
OCR_OPTIMAL_CHARACTER_WIDTH = 30
OCR_OPTIMIZATION = True
PLATE_CONFIDENCE = 0.7
PLATE_RESCALE_FACTOR = 2
PLATE_ROTATE_DEG = 0
PLATE_TRAINING_IMAGE_COUNT = 0
REMOVE_SPACES = False
ROOT_PATH = <root>
SAVE_CROPPED_PLATE = true
TRAINING_DATASET_DIR = <root>\modules\ALPR\training-dataset
TRAINING_IMAGES_DIR = <root>\modules\ALPR\training-images
Status Data: {
"inferenceDevice": "GPU",
"inferenceLibrary": "CUDA",
"canUseGPU": "true",
"successfulInferences": 58037,
"failedInferences": 4,
"numInferences": 58041,
"averageInferenceMs": 236.5604700449713
}
Started: 10 Mar 2024 2:46:31 PM Eastern Standard Time
LastSeen: 11 Mar 2024 4:11:41 PM Eastern Standard Time
Status: Started
Requests: 58055 (includes status calls)



Installation Log
2024-02-18 22:00:58: Installing CodeProject.AI Analysis Module
2024-02-18 22:00:58: ======================================================================
2024-02-18 22:00:58: CodeProject.AI Installer
2024-02-18 22:00:58: ======================================================================
2024-02-18 22:00:58: 926.5Gb of 1907Gb available on
2024-02-18 22:00:58: os, arch = windows x86_64
2024-02-18 22:00:59: systemName, platform = Windows, windows
2024-02-18 22:00:59: setupMode = InstallModule
2024-02-18 22:00:59: executionEnvironment = Production
2024-02-18 22:00:59: rootDirPath = C:\Program Files\CodeProject\AI
2024-02-18 22:00:59: appRootDirPath = C:\Program Files\CodeProject\AI\
2024-02-18 22:00:59: setupScriptDirPath = C:\Program Files\CodeProject\AI\
2024-02-18 22:00:59: sdkScriptsDirPath = C:\Program Files\CodeProject\AI\SDK\Scripts
2024-02-18 22:00:59: runtimesDirPath = C:\Program Files\CodeProject\AI\runtimes
2024-02-18 22:00:59: modulesDirPath = C:\Program Files\CodeProject\AI\modules
2024-02-18 22:00:59: downloadDirPath = C:\Program Files\CodeProject\AI\downloads
2024-02-18 22:00:59: General CodeProject.AI setup
2024-02-18 22:00:59: Creating Directories...Done
2024-02-18 22:00:59: GPU support
2024-02-18 22:01:00: CUDA Present...Yes (CUDA 12.3, cuDNN 8.9)
2024-02-18 22:01:00: ROCm Present...No
2024-02-18 22:01:01: Reading ALPR settingsUsed modulesettings.json to get value License Plate Reader
2024-02-18 22:01:01: .Used modulesettings.json to get value 3.0.2
2024-02-18 22:01:01: .Used modulesettings.windows.json to get value python3.9
2024-02-18 22:01:02: .Used modulesettings.json to get value Local
2024-02-18 22:01:02: .Used modulesettings.json to get value ALPR_adapter.py
2024-02-18 22:01:02: .Used modulesettings.windows.json to get value true
2024-02-18 22:01:03: .Used modulesettings.json to get value ["all"]
2024-02-18 22:01:03: .Done
2024-02-18 22:01:03: Installing module License Plate Reader 3.0.2
2024-02-18 22:01:03: Variable Dump
2024-02-18 22:01:03: moduleName = License Plate Reader
2024-02-18 22:01:03: moduleVersion = 3.0.2
2024-02-18 22:01:03: runtime = python3.9
2024-02-18 22:01:03: runtimeLocation = Local
2024-02-18 22:01:03: installGPU = true
2024-02-18 22:01:03: pythonVersion = 3.9
2024-02-18 22:01:03: virtualEnvDirPath = C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python39\venv
2024-02-18 22:01:03: venvPythonCmdPath = C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python39\venv\Scripts\python.exe
2024-02-18 22:01:03: packagesDirPath = C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python39\venv\Lib\site-packages
2024-02-18 22:01:03: moduleStartFilePath = ALPR_adapter.py
2024-02-18 22:01:03: Installing Python 3.9
2024-02-18 22:01:03: Installing python39 in C:\Program Files\CodeProject\AI\runtimes\bin\windows\python39
2024-02-18 22:01:03: Python 3.9 is already installed
2024-02-18 22:01:04: Creating Virtual Environment (Local)...Virtual Environment doesn't exist. Creating at C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python39\venv
2024-02-18 22:01:09: Done
2024-02-18 22:01:09: Confirming we have Python 3.9 in our virtual environment...present
2024-02-18 22:01:09: Downloading ocr-en-pp_ocrv4-paddle.zip to C:\Program Files\CodeProject\AI\downloads\ALPR\paddleocr
2024-02-18 22:01:09: Downloading ALPR models...Checking 'C:\Program Files\CodeProject\AI\downloads\ALPR\ocr-en-pp_ocrv4-paddle.zip'
2024-02-18 22:01:09: already exists...Expanding...Heading to C:\Program Files\CodeProject\AI\downloads\ALPR
2024-02-18 22:01:09: Extracting ocr-en-pp_ocrv4-paddle.zip
2024-02-18 22:01:09: Done.
2024-02-18 22:01:09: Copying contents of ocr-en-pp_ocrv4-paddle.zip to paddleocr...done
2024-02-18 22:01:09: Installing Python packages for License Plate Reader
2024-02-18 22:01:09: [0;Installing GPU-enabled libraries: If available
2024-02-18 22:01:11: Ensuring Python package manager (pip) is installed...Looking in links: c:\Windows\TEMP\tmp3s77ku9f
2024-02-18 22:01:11: Requirement already satisfied: setuptools in c:\program files\codeproject\ai\modules\alpr\bin\windows\python39\venv\lib\site-packages (56.0.0)
2024-02-18 22:01:11: Requirement already satisfied: pip in c:\program files\codeproject\ai\modules\alpr\bin\windows\python39\venv\lib\site-packages (21.1.3)
2024-02-18 22:01:11: Done
2024-02-18 22:01:12: Ensuring Python package manager (pip) is up to date...Looking in indexes: , 2024-02-18 22:01:12: Requirement already satisfied: setuptools in c:\program files\codeproject\ai\modules\alpr\bin\windows\python39\venv\lib\site-packages (56.0.0)
2024-02-18 22:01:13: Collecting setuptools
2024-02-18 22:01:13: Downloading setuptools-69.1.0-py3-none-any.whl (819 kB)
2024-02-18 22:01:13: Installing collected packages: setuptools
2024-02-18 22:01:13: Attempting uninstall: setuptools
2024-02-18 22:01:13: Found existing installation: setuptools 56.0.0
2024-02-18 22:01:13: Uninstalling setuptools-56.0.0:
2024-02-18 22:01:13: Successfully uninstalled setuptools-56.0.0
2024-02-18 22:01:15: Successfully installed setuptools-69.1.0
2024-02-18 22:01:15: WARNING: You are using pip version 21.1.3; however, version 24.0 is available.
2024-02-18 22:01:15: You should consider upgrading via the 'C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python39\venv\Scripts\python.exe -m pip install --upgrade pip' command.
2024-02-18 22:01:16: Looking in indexes: , 2024-02-18 22:01:16: Requirement already satisfied: pip in c:\program files\codeproject\ai\modules\alpr\bin\windows\python39\venv\lib\site-packages (21.1.3)
2024-02-18 22:01:16: Collecting pip
2024-02-18 22:01:16: Downloading pip-24.0-py3-none-any.whl (2.1 MB)
2024-02-18 22:01:17: Installing collected packages: pip
2024-02-18 22:01:17: Attempting uninstall: pip
2024-02-18 22:01:17: Found existing installation: pip 21.1.3
2024-02-18 22:01:18: Uninstalling pip-21.1.3:
2024-02-18 22:01:18: Successfully uninstalled pip-21.1.3
2024-02-18 22:01:21: Successfully installed pip-24.0
2024-02-18 22:01:21: Done
2024-02-18 22:01:21: Requirements Search Path is C:\Program Files\CodeProject\AI\modules\ALPR
2024-02-18 22:01:21: Searching for a suitable requirements.txts file in C:\Program Files\CodeProject\AI\modules\ALPR
2024-02-18 22:01:21: CUDA version is 12.3 (12_3 / 12)
2024-02-18 22:01:21: Python packages specified by requirements.windows.cuda12.txt
2024-02-18 22:01:21: Choosing Python packages from C:\Program Files\CodeProject\AI\modules\ALPR\requirements.windows.cuda12.txt
2024-02-18 22:01:23: - Installing PaddlePaddle, Parallel Distributed Deep Learning...Looking in indexes: , 2024-02-18 22:01:23: Looking in links: 2024-02-18 22:01:27: Collecting paddlepaddle-gpu==2.6.0.post120
2024-02-18 22:01:28: Downloading (455.7 MB)
Timed out attempting to install Module 'ALPR'
 
  • Like
Reactions: looney2ns
With your RTX 2070 you should be using using CUDA 11.8 not CUDA 12.4.

View attachment 189038

Looking further I am still seeing this error in the logs when a car goes by and the LPR module is actually stopping itself:
15:16:11:ALPR_adapter.py: Could not locate cublasLt64_12.dll. Please make sure it is in your library path!

Here's the info you requested:

Module 'License Plate Reader' 3.0.2 (ID: ALPR)
Valid: True
Module Path: <root>\modules\ALPR
AutoStart: True
Queue: alpr_queue
Runtime: python3.9
Runtime Loc: Local
FilePath: ALPR_adapter.py
Pre installed: False
Start pause: 3 sec
Parallelism: 0
LogVerbosity:
Platforms: all
GPU Libraries: installed if available
GPU Enabled: enabled
Accelerator:
Half Precis.: enable
Environment Variables
AUTO_PLATE_ROTATE = True
MIN_COMPUTE_CAPABILITY = 6
MIN_CUDNN_VERSION = 7
OCR_OPTIMAL_CHARACTER_HEIGHT = 60
OCR_OPTIMAL_CHARACTER_WIDTH = 30
OCR_OPTIMIZATION = True
PLATE_CONFIDENCE = 0.7
PLATE_RESCALE_FACTOR = 2
PLATE_ROTATE_DEG = 0
Status Data: {
"inferenceDevice": "GPU",
"inferenceLibrary": "CUDA",
"canUseGPU": "true",
"successfulInferences": 0,
"failedInferences": 0,
"numInferences": 0,
"averageInferenceMs": 0
}
Started: 11 Mar 2024 3:14:15 PM Central Standard Time
LastSeen: 11 Mar 2024 3:16:11 PM Central Standard Time
Status: Stopped
Requests: 0 (includes status calls)
 
Looking further I am still seeing this error in the logs when a car goes by and the LPR module is actually stopping itself:
15:16:11:ALPR_adapter.py: Could not locate cublasLt64_12.dll. Please make sure it is in your library path!

Here's the info you requested:

Module 'License Plate Reader' 3.0.2 (ID: ALPR)
Valid: True
Module Path: <root>\modules\ALPR
AutoStart: True
Queue: alpr_queue
Runtime: python3.9
Runtime Loc: Local
FilePath: ALPR_adapter.py
Pre installed: False
Start pause: 3 sec
Parallelism: 0
LogVerbosity:
Platforms: all
GPU Libraries: installed if available
GPU Enabled: enabled
Accelerator:
Half Precis.: enable
Environment Variables
AUTO_PLATE_ROTATE = True
MIN_COMPUTE_CAPABILITY = 6
MIN_CUDNN_VERSION = 7
OCR_OPTIMAL_CHARACTER_HEIGHT = 60
OCR_OPTIMAL_CHARACTER_WIDTH = 30
OCR_OPTIMIZATION = True
PLATE_CONFIDENCE = 0.7
PLATE_RESCALE_FACTOR = 2
PLATE_ROTATE_DEG = 0
Status Data: {
"inferenceDevice": "GPU",
"inferenceLibrary": "CUDA",
"canUseGPU": "true",
"successfulInferences": 0,
"failedInferences": 0,
"numInferences": 0,
"averageInferenceMs": 0
}
Started: 11 Mar 2024 3:14:15 PM Central Standard Time
LastSeen: 11 Mar 2024 3:16:11 PM Central Standard Time
Status: Stopped
Requests: 0 (includes status calls)
It looks like the ALPR module is installed for CUDA 12. Run nvcc --version then post the results. Also did you uninstall and reinstall the ALPR module after installing CUDA 11.8?
 
It looks like the ALPR module is installed for CUDA 12. Run nvcc --version then post the results. Also did you uninstall and reinstall the ALPR module after installing CUDA 11.8?
Yes sir, uninstalled and reinstalled after rebooting...etc. I will uninstall and reinstall again.

C:\Users\rich_>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0
 
Yes sir, uninstalled and reinstalled after rebooting...etc. I will uninstall and reinstall again.

C:\Users\rich_>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0
When reinstalling enable Do not use download cache

1710192102724.png
 
2024-03-11 16:21:38: Installing CodeProject.AI Analysis Module
2024-03-11 16:21:39: ======================================================================
2024-03-11 16:21:39: CodeProject.AI Installer
2024-03-11 16:21:39: ======================================================================
2024-03-11 16:21:39: 679.0Gb of 953Gb available on
2024-03-11 16:21:39: General CodeProject.AI setup
2024-03-11 16:21:39: Creating Directories...Done
2024-03-11 16:21:39: GPU support
2024-03-11 16:21:39: CUDA Present...Yes (CUDA 11.8, cuDNN 8.9)
2024-03-11 16:21:39: ROCm Present...No
2024-03-11 16:21:41: Reading ALPR settings.......Done
2024-03-11 16:21:41: Installing module License Plate Reader 3.0.2
2024-03-11 16:21:41: Installing Python 3.9
2024-03-11 16:21:41: Python 3.9 is already installed
2024-03-11 16:21:47: Creating Virtual Environment (Local)...Done
2024-03-11 16:21:47: Confirming we have Python 3.9 in our virtual environment...present
2024-03-11 16:21:48: Downloading ALPR models...already exists...Expanding...Done.
2024-03-11 16:21:48: Copying contents of ocr-en-pp_ocrv4-paddle.zip to paddleocr...done
2024-03-11 16:21:48: Installing Python packages for License Plate Reader
2024-03-11 16:21:48: [0;Installing GPU-enabled libraries: If available
2024-03-11 16:21:49: Ensuring Python package manager (pip) is installed...Done
2024-03-11 16:21:59: Ensuring Python package manager (pip) is up to date...Done
2024-03-11 16:21:59: Python packages specified by requirements.windows.cuda11_8.txt
2024-03-11 16:22:56: - Installing PaddlePaddle, Parallel Distributed Deep Learning...(checked) Done
2024-03-11 16:24:29: - Installing PaddleOCR, the OCR toolkit based on PaddlePaddle...(checked) Done
2024-03-11 16:24:32: - Installing imutils, the image utilities library...(checked) Done
2024-03-11 16:24:33: - Installing Pillow, a Python Image Library...Already installed
2024-03-11 16:24:35: - Installing OpenCV, the Computer Vision library for Python...Already installed
2024-03-11 16:24:45: - Installing NumPy, a package for scientific computing...Already installed
2024-03-11 16:24:45: Installing Python packages for the CodeProject.AI Server SDK
2024-03-11 16:24:47: Ensuring Python package manager (pip) is installed...Done
2024-03-11 16:24:50: Ensuring Python package manager (pip) is up to date...Done
2024-03-11 16:24:50: Python packages specified by requirements.txt
2024-03-11 16:24:51: - Installing Pillow, a Python Image Library...Already installed
2024-03-11 16:24:52: - Installing Charset normalizer...Already installed
2024-03-11 16:24:58: - Installing aiohttp, the Async IO HTTP library...(checked) Done
2024-03-11 16:25:01: - Installing aiofiles, the Async IO Files library...(checked) Done
2024-03-11 16:25:04: - Installing py-cpuinfo to allow us to query CPU info...(checked) Done
2024-03-11 16:25:05: - Installing Requests, the HTTP library...Already installed
2024-03-11 16:25:05: Executing post-install script for License Plate Reader
2024-03-11 16:25:05: Applying PaddleOCR patch
2024-03-11 16:25:05: 1 file(s) copied.
2024-03-11 16:25:20: Self test: Self-test passed
2024-03-11 16:25:20: Module setup time 00:03:40.45
2024-03-11 16:25:20: Setup complete
2024-03-11 16:25:20: Total setup time 00:03:41.28
Installer exited with code 0
 
2024-03-11 16:21:38: Installing CodeProject.AI Analysis Module
2024-03-11 16:21:39: ======================================================================
2024-03-11 16:21:39: CodeProject.AI Installer
2024-03-11 16:21:39: ======================================================================
2024-03-11 16:21:39: 679.0Gb of 953Gb available on
2024-03-11 16:21:39: General CodeProject.AI setup
2024-03-11 16:21:39: Creating Directories...Done
2024-03-11 16:21:39: GPU support
2024-03-11 16:21:39: CUDA Present...Yes (CUDA 11.8, cuDNN 8.9)
2024-03-11 16:21:39: ROCm Present...No
2024-03-11 16:21:41: Reading ALPR settings.......Done
2024-03-11 16:21:41: Installing module License Plate Reader 3.0.2
2024-03-11 16:21:41: Installing Python 3.9
2024-03-11 16:21:41: Python 3.9 is already installed
2024-03-11 16:21:47: Creating Virtual Environment (Local)...Done
2024-03-11 16:21:47: Confirming we have Python 3.9 in our virtual environment...present
2024-03-11 16:21:48: Downloading ALPR models...already exists...Expanding...Done.
2024-03-11 16:21:48: Copying contents of ocr-en-pp_ocrv4-paddle.zip to paddleocr...done
2024-03-11 16:21:48: Installing Python packages for License Plate Reader
2024-03-11 16:21:48: [0;Installing GPU-enabled libraries: If available
2024-03-11 16:21:49: Ensuring Python package manager (pip) is installed...Done
2024-03-11 16:21:59: Ensuring Python package manager (pip) is up to date...Done
2024-03-11 16:21:59: Python packages specified by requirements.windows.cuda11_8.txt
2024-03-11 16:22:56: - Installing PaddlePaddle, Parallel Distributed Deep Learning...(checked) Done
2024-03-11 16:24:29: - Installing PaddleOCR, the OCR toolkit based on PaddlePaddle...(checked) Done
2024-03-11 16:24:32: - Installing imutils, the image utilities library...(checked) Done
2024-03-11 16:24:33: - Installing Pillow, a Python Image Library...Already installed
2024-03-11 16:24:35: - Installing OpenCV, the Computer Vision library for Python...Already installed
2024-03-11 16:24:45: - Installing NumPy, a package for scientific computing...Already installed
2024-03-11 16:24:45: Installing Python packages for the CodeProject.AI Server SDK
2024-03-11 16:24:47: Ensuring Python package manager (pip) is installed...Done
2024-03-11 16:24:50: Ensuring Python package manager (pip) is up to date...Done
2024-03-11 16:24:50: Python packages specified by requirements.txt
2024-03-11 16:24:51: - Installing Pillow, a Python Image Library...Already installed
2024-03-11 16:24:52: - Installing Charset normalizer...Already installed
2024-03-11 16:24:58: - Installing aiohttp, the Async IO HTTP library...(checked) Done
2024-03-11 16:25:01: - Installing aiofiles, the Async IO Files library...(checked) Done
2024-03-11 16:25:04: - Installing py-cpuinfo to allow us to query CPU info...(checked) Done
2024-03-11 16:25:05: - Installing Requests, the HTTP library...Already installed
2024-03-11 16:25:05: Executing post-install script for License Plate Reader
2024-03-11 16:25:05: Applying PaddleOCR patch
2024-03-11 16:25:05: 1 file(s) copied.
2024-03-11 16:25:20: Self test: Self-test passed
2024-03-11 16:25:20: Module setup time 00:03:40.45
2024-03-11 16:25:20: Setup complete
2024-03-11 16:25:20: Total setup time 00:03:41.28
Installer exited with code 0
Install looks good. What Object Detection module are you using? Also does it work if you run a test like the below screenshot.

1710195401093.png