I managed to update CP.AI (2.6.2) and ALPR (3.1.0) and now I do have one camera capturing cars going up and down the street.
The behavior didn't change.
If I go into CP.AI Project Explorer and use "Read License Plates" on an image where ALPR can't recognize anything, I get the expected output: "No predictions returned".
But if I choose any image which does have a license plate, the module shuts down.
Code:
19:53:29:Object Detection (YOLOv8): Detecting using license-plate
19:53:29:Response rec'd from Object Detection (YOLOv8) command 'custom' (...fcd391) ['Found Plate'] took 80ms
19:53:33:Module ALPR has shutdown
19:53:33:ALPR_adapter.py: has exited
This is what Event Viewer shows:
Code:
Faulting application name: python.exe, version: 3.9.6150.1013, time stamp: 0x60d9eb23
Faulting module name: cudnn_ops_infer64_8.dll, version: 6.14.11.11070, time stamp: 0x62e9c2eb
Exception code: 0xc0000409
Fault offset: 0x00000000003298d9
Faulting process id: 0x0xC7C
Faulting application start time: 0x0x1DA88420F6018A7
Faulting application path: C:\Program Files\CodeProject\AI247\runtimes\bin\windows\python39\python.exe
Faulting module path: C:\Program Files\NVIDIA\CUDNN\v8.5\bin\cudnn_ops_infer64_8.dll
Report Id: 4661917b-d50d-4c20-b5e8-8599152e0ca3
Faulting package full name:
Faulting package-relative application ID:
Windows 11, CP.AI 2.6.2, ALPR 3.1.0, latest Nvidia Drivers installed on RTX 3090 GPU, the works.
Using YOLOv8 for Object Detection.
ALPR data:
Code:
Module 'License Plate Reader' 3.1.0 (ID: ALPR)
Valid: True
Module Path: <root>\modules\ALPR
AutoStart: True
Queue: alpr_queue
Runtime: python3.9
Runtime Loc: Local
FilePath: ALPR_adapter.py
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
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
REMOVE_SPACES = False
ROOT_PATH = <root>
SAVE_CROPPED_PLATE = true
Status Data: {
"inferenceDevice": "GPU",
"inferenceLibrary": "CUDA",
"canUseGPU": "true",
"successfulInferences": 1,
"failedInferences": 0,
"numInferences": 1,
"averageInferenceMs": 124.0
}
Started: 06 Apr 2024 7:54:47 PM GTB Standard Time
LastSeen: 06 Apr 2024 8:02:17 PM GTB Standard Time
Status: Started
Requests: 2 (includes status calls)
Installation Log
2024-04-06 18:57:45: Installing CodeProject.AI Analysis Module
2024-04-06 18:57:45: ======================================================================
2024-04-06 18:57:45: CodeProject.AI Installer
2024-04-06 18:57:45: ======================================================================
2024-04-06 18:57:45: 522.0Gb of 857Gb available on
2024-04-06 18:57:45: General CodeProject.AI setup
2024-04-06 18:57:45: Creating Directories...done
2024-04-06 18:57:45: GPU support
2024-04-06 18:57:45: CUDA Present...Yes (CUDA 12.3, cuDNN 8.5)
2024-04-06 18:57:45: ROCm Present...No
2024-04-06 18:57:46: Reading ALPR settings.......done
2024-04-06 18:57:46: Installing module License Plate Reader 3.1.0
2024-04-06 18:57:46: Installing Python 3.9
2024-04-06 18:57:46: Python 3.9 is already installed
2024-04-06 18:57:48: Creating Virtual Environment (Local)...done
2024-04-06 18:57:48: Confirming we have Python 3.9 in our virtual environment...present
2024-04-06 18:57:52: Downloading ALPR models...Expanding...done.
2024-04-06 18:57:52: Copying contents of ocr-en-pp_ocrv4-paddle.zip to paddleocr...done
2024-04-06 18:57:52: Installing Python packages for License Plate Reader
2024-04-06 18:57:52: [0;Installing GPU-enabled libraries: If available
2024-04-06 18:57:53: Ensuring Python package manager (pip) is installed...done
2024-04-06 18:57:56: Ensuring Python package manager (pip) is up to date...done
2024-04-06 18:57:56: Python packages specified by requirements.windows.cuda12.txt
2024-04-06 18:58:31: - Installing PaddlePaddle, Parallel Distributed Deep Learning...(✅ checked) done
2024-04-06 18:58:59: - Installing PaddleOCR, the OCR toolkit based on PaddlePaddle...(✅ checked) done
2024-04-06 18:59:00: - Installing imutils, the image utilities library...(✅ checked) done
2024-04-06 18:59:01: - Installing Pillow, a Python Image Library...Already installed
2024-04-06 18:59:01: - Installing OpenCV, the Computer Vision library for Python...Already installed
2024-04-06 18:59:07: - Installing NumPy, a package for scientific computing...Already installed
2024-04-06 18:59:07: Installing Python packages for the CodeProject.AI Server SDK
2024-04-06 18:59:08: Ensuring Python package manager (pip) is installed...done
2024-04-06 18:59:10: Ensuring Python package manager (pip) is up to date...done
2024-04-06 18:59:10: Python packages specified by requirements.txt
2024-04-06 18:59:10: - Installing Pillow, a Python Image Library...Already installed
2024-04-06 18:59:11: - Installing Charset normalizer...Already installed
2024-04-06 18:59:13: - Installing aiohttp, the Async IO HTTP library...(✅ checked) done
2024-04-06 18:59:15: - Installing aiofiles, the Async IO Files library...(✅ checked) done
2024-04-06 18:59:16: - Installing py-cpuinfo to allow us to query CPU info...(✅ checked) done
2024-04-06 18:59:17: - Installing Requests, the HTTP library...Already installed
2024-04-06 18:59:17: Scanning modulesettings for downloadable models...No models specified
2024-04-06 18:59:17: Executing post-install script for License Plate Reader
2024-04-06 18:59:17: Applying PaddleOCR patch
2024-04-06 18:59:17: 1 file(s) copied.
2024-04-06 18:59:24: Self test: Self-test passed
2024-04-06 18:59:24: Module setup time 00:01:38.32
2024-04-06 18:59:24: Setup complete
2024-04-06 18:59:24: Total setup time 00:01:38.68
Installer exited with code 0
I don't know what else to do to troubleshoot it. Needless to say, the module never worked, even when checking known static images with clearly visible license plates.