|
If I already have cropped plates is it possible to bypass detecting what is a plate and just submit a cropped plate to the OCR part and return the plate?
|
|
|
|
|
Can you post some sample images at full resolution. I will try add the option to only run the OCR in the next release of the ALPR module.
|
|
|
|
|
System info:
Server version: 2.6.5
System: Windows
Operating System: Windows (Microsoft Windows 10.0.19045)
CPUs: Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz (Intel)
1 CPU x 4 cores. 4 logical processors (x64)
GPU (Primary): Intel(R) HD Graphics 630 (1,024 MiB) (Intel Corporation)
Driver: 31.0.101.2111
System RAM: 16 GiB
Platform: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.5
.NET SDK: Not found
Default Python: Not found
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
Intel(R) HD Graphics 630:
Driver Version 31.0.101.2111
Video Processor Intel(R) HD Graphics Family
System GPU info:
GPU 3D Usage 4%
GPU RAM Usage 0
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
I am assuming that I need to use the Default Objects setting in Blue Iris since there are no real models that reduce the number of objects that are found using the Coral module.
Blue Iris AI Settings:
Blue Iris Camera Settings:
Are there any recommended settings for the Coral Module that I can use to improve the accuracy of the results from the Coral Module?
Using what I assume are the default settings for the Coral module, I get this in Blue Iris.
The Coral module seems to return lots and lots of "persons". (Plus an Airplane?) Is there any Coral Model that is more accurate? I have changed the model size from small to medium, but this doesn't seem to have any affect.
I keep going back to the YOLOv5 .Net module, which is slower, but seems to be more accurate using the ipcam-* models.
Coral Module Info:
Module 'Object Detection (Coral)' 2.2.2 (ID: ObjectDetectionCoral)
Valid: True
Module Path: <root>\modules\ObjectDetectionCoral
Module Location: Internal
AutoStart: True
Queue: objectdetection_queue
Runtime: python3.9
Runtime Location: Local
FilePath: objectdetection_coral_adapter.py
Start pause: 1 sec
Parallelism: 16
LogVerbosity:
Platforms: all
GPU Libraries: installed if available
GPU: use if supported
Accelerator:
Half Precision: enable
Environment Variables
CPAI_CORAL_MODEL_NAME = MobileNet SSD
CPAI_CORAL_MULTI_TPU = True
MODELS_DIR = <root>\modules\ObjectDetectionCoral\assets
MODEL_SIZE = medium
Status Data: {
"inferenceDevice": "Multi-TPU",
"inferenceLibrary": "TF-Lite",
"canUseGPU": "false",
"successfulInferences": 297,
"failedInferences": 7,
"numInferences": 304,
"averageInferenceMs": 13.447811447811448
}
Started: 12 Jun 2024 9:08:09 AM Central Standard Time
LastSeen: 12 Jun 2024 9:19:16 AM Central Standard Time
Status: Stopped
Requests: 304 (includes status calls)
Installation Log
2024-06-06 08:00:39: Installing CodeProject.AI Analysis Module
2024-06-06 08:00:39: ======================================================================
2024-06-06 08:00:39: CodeProject.AI Installer
2024-06-06 08:00:39: ======================================================================
2024-06-06 08:00:39: 285.7Gb of 487Gb available on
2024-06-06 08:00:39: General CodeProject.AI setup
2024-06-06 08:00:39: Creating Directories...Done
2024-06-06 08:00:39: GPU support
2024-06-06 08:00:40: CUDA Present...No
2024-06-06 08:00:40: ROCm Present...No
2024-06-06 08:00:42: Reading ObjectDetectionCoral settings.......Done
2024-06-06 08:00:42: Installing module Object Detection (Coral) 2.1.6
2024-06-06 08:00:42: Installing Python 3.9
2024-06-06 08:00:49: Downloading Python 3.9 interpreter...Expanding...Done.
2024-06-06 08:00:57: Creating Virtual Environment (Local)...Done
2024-06-06 08:00:58: Confirming we have Python 3.9 in our virtual environment...present
2024-06-06 08:01:01: Downloading edge TPU runtime...Expanding...Done.
2024-06-06 08:01:01: Copying contents of edgetpu_runtime-20221024.zip to edgetpu_runtime...done
2024-06-06 08:01:01: Installing the edge TPU libraries...
2024-06-06 08:01:01: Installing UsbDk
2024-06-06 08:01:02: Installing Windows drivers
2024-06-06 08:01:02: Microsoft PnP Utility
2024-06-06 08:01:02: Adding driver package: coral.inf
2024-06-06 08:01:02: Driver package added successfully. (Already exists in the system)
2024-06-06 08:01:02: Published Name: oem40.inf
2024-06-06 08:01:02: Driver package is up-to-date on device: PCI\VEN_1AC1&DEV_089A&SUBSYS_089A1AC1&REV_00\4&6ba732e&0&00D8
2024-06-06 08:01:02: Adding driver package: Coral_USB_Accelerator.inf
2024-06-06 08:01:02: Driver package added successfully. (Already exists in the system)
2024-06-06 08:01:02: Published Name: oem43.inf
2024-06-06 08:01:02: Driver package installed on device: USB\VID_18D1&PID_9302\5&220fb38b&0&10
2024-06-06 08:01:02: Adding driver package: Coral_USB_Accelerator_(DFU).inf
2024-06-06 08:01:02: Driver package added successfully. (Already exists in the system)
2024-06-06 08:01:02: Published Name: oem55.inf
2024-06-06 08:01:02: Total driver packages: 3
2024-06-06 08:01:02: Added driver packages: 2
2024-06-06 08:01:02: Installing performance counters
2024-06-06 08:01:02: Info: Provider {aaa5bf9e-c44b-4177-af65-d3a06ba45fe7} defined in C:\Program Files\CodeProject\AI\modules\ObjectDetectionCoral\edgetpu_runtime\third_party\coral_accelerator_windows\coral.man is already installed in system repository.
2024-06-06 08:01:02: Info: Successfully installed performance counters in C:\Program Files\CodeProject\AI\modules\ObjectDetectionCoral\edgetpu_runtime\third_party\coral_accelerator_windows\coral.manCopying edgetpu and libusb to System32
2024-06-06 08:01:02: 1 file(s) copied.
2024-06-06 08:01:02: 1 file(s) copied.
2024-06-06 08:01:02: Install complete
2024-06-06 08:01:10: Downloading EfficientDet (large) models...Expanding...Done.
2024-06-06 08:01:10: Copying contents of objectdetection-efficientdet-large-edgetpu.zip to assets...done
2024-06-06 08:01:14: Downloading EfficientDet (medium) models...Expanding...Done.
2024-06-06 08:01:14: Copying contents of objectdetection-efficientdet-medium-edgetpu.zip to assets...done
2024-06-06 08:01:18: Downloading EfficientDet (small) models...Expanding...Done.
2024-06-06 08:01:19: Copying contents of objectdetection-efficientdet-small-edgetpu.zip to assets...done
2024-06-06 08:01:21: Downloading EfficientDet (tiny) models...Expanding...Done.
2024-06-06 08:01:21: Copying contents of objectdetection-efficientdet-tiny-edgetpu.zip to assets...done
2024-06-06 08:01:34: Downloading MobileNet (large) models...Expanding...Done.
2024-06-06 08:01:34: Copying contents of objectdetection-mobilenet-large-edgetpu.zip to assets...done
2024-06-06 08:01:37: Downloading MobileNet (medium) models...Expanding...Done.
2024-06-06 08:01:37: Copying contents of objectdetection-mobilenet-medium-edgetpu.zip to assets...done
2024-06-06 08:01:40: Downloading MobileNet (small) models...Expanding...Done.
2024-06-06 08:01:40: Copying contents of objectdetection-mobilenet-small-edgetpu.zip to assets...done
2024-06-06 08:01:43: Downloading MobileNet (tiny) models...Expanding...Done.
2024-06-06 08:01:43: Copying contents of objectdetection-mobilenet-tiny-edgetpu.zip to assets...done
2024-06-06 08:01:58: Downloading YOLOv8 (large) models...Expanding...Done.
2024-06-06 08:01:58: Copying contents of objectdetection-yolov8-large-edgetpu.zip to assets...done
2024-06-06 08:02:10: Downloading YOLOv8 (medium) models...Expanding...Done.
2024-06-06 08:02:13: Copying contents of objectdetection-yolov8-medium-edgetpu.zip to assets...done
2024-06-06 08:02:21: Downloading YOLOv8 (small) models...Expanding...Done.
2024-06-06 08:02:21: Copying contents of objectdetection-yolov8-small-edgetpu.zip to assets...done
2024-06-06 08:02:28: Downloading YOLOv8 (tiny) models...Expanding...Done.
2024-06-06 08:02:29: Copying contents of objectdetection-yolov8-tiny-edgetpu.zip to assets...done
2024-06-06 08:02:29: Installing Python packages for Object Detection (Coral)
2024-06-06 08:02:29: [0;Installing GPU-enabled libraries: If available
2024-06-06 08:02:34: Ensuring Python package manager (pip) is installed...Done
2024-06-06 08:02:44: Ensuring Python package manager (pip) is up to date...Done
2024-06-06 08:02:44: Python packages specified by requirements.windows.txt
2024-06-06 08:02:48: - Installing Pillow, a Python Image Library...(checked) Done
2024-06-06 08:02:54: - Installing Tensorflow Lite...(checked) Done
2024-06-06 08:03:02: - Installing PyCoral...(checked) Done
2024-06-06 08:03:21: - Installing NumPy, a package for scientific computing...Already installed
2024-06-06 08:03:21: Installing Python packages for the CodeProject.AI Server SDK
2024-06-06 08:03:23: Ensuring Python package manager (pip) is installed...Done
2024-06-06 08:03:25: Ensuring Python package manager (pip) is up to date...Done
2024-06-06 08:03:25: Python packages specified by requirements.txt
2024-06-06 08:03:26: - Installing Pillow, a Python Image Library...Already installed
2024-06-06 08:03:29: - Installing Charset normalizer...(checked) Done
2024-06-06 08:03:33: - Installing aiohttp, the Async IO HTTP library...(checked) Done
2024-06-06 08:03:35: - Installing aiofiles, the Async IO Files library...(checked) Done
2024-06-06 08:03:38: - Installing py-cpuinfo to allow us to query CPU info...(checked) Done
2024-06-06 08:03:41: - Installing Requests, the HTTP library...(checked) Done
2024-06-06 08:03:48: Self test: Self-test passed
2024-06-06 08:03:48: Module setup time 00:03:07.86
2024-06-06 08:03:48: Setup complete
2024-06-06 08:03:48: Total setup time 00:03:09.13
Installer exited with code 0
2024-06-10 17:22:48: Installing CodeProject.AI Analysis Module
2024-06-10 17:22:49: ======================================================================
2024-06-10 17:22:49: CodeProject.AI Installer
2024-06-10 17:22:49: ======================================================================
2024-06-10 17:22:50: 289.9Gb of 487Gb available on
2024-06-10 17:22:50: General CodeProject.AI setup
2024-06-10 17:22:50: Creating Directories...done
2024-06-10 17:22:50: GPU support
2024-06-10 17:22:51: CUDA Present...No
2024-06-10 17:22:51: ROCm Present...No
2024-06-10 17:22:51: Checking for .NET 7.0...Checking SDKs...Upgrading: .NET is 0
2024-06-10 17:22:51: Current version is 0. Installing newer version.
2024-06-10 17:22:51: 'winget' is not recognized as an internal or external command,
2024-06-10 17:22:51: operable program or batch file.
2024-06-10 17:22:54: Reading ObjectDetectionCoral settings.......done
2024-06-10 17:22:54: Installing module Object Detection (Coral) 2.2.2
2024-06-10 17:22:55: Installing Python 3.9
2024-06-10 17:22:55: Python 3.9 is already installed
2024-06-10 17:22:56: Creating Virtual Environment (Local)...Virtual Environment already present
2024-06-10 17:22:56: Confirming we have Python 3.9 in our virtual environment...present
2024-06-10 17:22:56: Installing the edge TPU libraries...
2024-06-10 17:22:56: Installing UsbDk
2024-06-10 17:22:57: Installing Windows drivers
2024-06-10 17:22:57: Microsoft PnP Utility
2024-06-10 17:22:57: Adding driver package: coral.inf
2024-06-10 17:22:57: Driver package added successfully. (Already exists in the system)
2024-06-10 17:22:57: Published Name: oem40.inf
2024-06-10 17:22:57: Driver package is up-to-date on device: PCI\VEN_1AC1&DEV_089A&SUBSYS_089A1AC1&REV_00\4&6ba732e&0&00D8
2024-06-10 17:22:57: Adding driver package: Coral_USB_Accelerator.inf
2024-06-10 17:22:57: Driver package added successfully. (Already exists in the system)
2024-06-10 17:22:57: Published Name: oem43.inf
2024-06-10 17:22:57: Driver package installed on device: USB\VID_18D1&PID_9302\5&220fb38b&0&10
2024-06-10 17:22:57: Adding driver package: Coral_USB_Accelerator_(DFU).inf
2024-06-10 17:22:57: Driver package added successfully. (Already exists in the system)
2024-06-10 17:22:57: Published Name: oem55.inf
2024-06-10 17:22:57: Total driver packages: 3
2024-06-10 17:22:57: Added driver packages: 2
2024-06-10 17:22:57: Installing performance counters
2024-06-10 17:22:57: Info: Provider {aaa5bf9e-c44b-4177-af65-d3a06ba45fe7} defined in C:\Program Files\CodeProject\AI\modules\ObjectDetectionCoral\edgetpu_runtime\third_party\coral_accelerator_windows\coral.man is already installed in system repository.
2024-06-10 17:22:57: Info: Successfully installed performance counters in C:\Program Files\CodeProject\AI\modules\ObjectDetectionCoral\edgetpu_runtime\third_party\coral_accelerator_windows\coral.manCopying edgetpu and libusb to System32
2024-06-10 17:22:57: 1 file(s) copied.
2024-06-10 17:22:57: 1 file(s) copied.
2024-06-10 17:22:57: Install complete
2024-06-10 17:23:07: Downloading EfficientDet (large) models...Expanding...done.
2024-06-10 17:23:07: Copying contents of objectdetection-efficientdet-large-edgetpu.zip to assets...done
2024-06-10 17:23:14: Downloading EfficientDet (medium) models...Expanding...done.
2024-06-10 17:23:14: Copying contents of objectdetection-efficientdet-medium-edgetpu.zip to assets...done
2024-06-10 17:23:21: Downloading EfficientDet (small) models...Expanding...done.
2024-06-10 17:23:21: Copying contents of objectdetection-efficientdet-small-edgetpu.zip to assets...done
2024-06-10 17:23:26: Downloading EfficientDet (tiny) models...Expanding...done.
2024-06-10 17:23:26: Copying contents of objectdetection-efficientdet-tiny-edgetpu.zip to assets...done
2024-06-10 17:23:44: Downloading MobileNet (large) models...Expanding...done.
2024-06-10 17:23:44: Copying contents of objectdetection-mobilenet-large-edgetpu.zip to assets...done
2024-06-10 17:23:47: Downloading MobileNet (medium) models...Expanding...done.
2024-06-10 17:23:47: Copying contents of objectdetection-mobilenet-medium-edgetpu.zip to assets...done
2024-06-10 17:23:51: Downloading MobileNet (small) models...Expanding...done.
2024-06-10 17:23:51: Copying contents of objectdetection-mobilenet-small-edgetpu.zip to assets...done
2024-06-10 17:23:55: Downloading MobileNet (tiny) models...Expanding...done.
2024-06-10 17:23:55: Copying contents of objectdetection-mobilenet-tiny-edgetpu.zip to assets...done
2024-06-10 17:24:15: Downloading YOLOv8 (large) models...Expanding...done.
2024-06-10 17:24:15: Copying contents of objectdetection-yolov8-large-edgetpu.zip to assets...done
2024-06-10 17:24:30: Downloading YOLOv8 (medium) models...Expanding...done.
2024-06-10 17:24:30: Copying contents of objectdetection-yolov8-medium-edgetpu.zip to assets...done
2024-06-10 17:24:34: Downloading YOLOv8 (small) models...Expanding...done.
2024-06-10 17:24:34: Copying contents of objectdetection-yolov8-small-edgetpu.zip to assets...done
2024-06-10 17:24:35: Downloading YOLOv8 (tiny) models...Expanding...done.
2024-06-10 17:24:35: Copying contents of objectdetection-yolov8-tiny-edgetpu.zip to assets...done
2024-06-10 17:24:35: Installing Python packages for Object Detection (Coral)
2024-06-10 17:24:35: [0;Installing GPU-enabled libraries: If available
2024-06-10 17:24:37: Ensuring Python package manager (pip) is installed...done
2024-06-10 17:24:40: Ensuring Python package manager (pip) is up to date...done
2024-06-10 17:24:40: Python packages specified by requirements.windows.txt
2024-06-10 17:24:41: - Installing Pillow, a Python Image Library...Already installed
2024-06-10 17:24:42: - Installing Tensorflow Lite...Already installed
2024-06-10 17:24:43: - Installing PyCoral...Already installed
2024-06-10 17:25:05: - Installing NumPy, a package for scientific computing...Already installed
2024-06-10 17:25:05: Installing Python packages for the CodeProject.AI Server SDK
2024-06-10 17:25:06: Ensuring Python package manager (pip) is installed...done
2024-06-10 17:25:09: Ensuring Python package manager (pip) is up to date...done
2024-06-10 17:25:09: Python packages specified by requirements.txt
2024-06-10 17:25:10: - Installing Pillow, a Python Image Library...Already installed
2024-06-10 17:25:11: - Installing Charset normalizer...Already installed
2024-06-10 17:25:12: - Installing aiohttp, the Async IO HTTP library...Already installed
2024-06-10 17:25:13: - Installing aiofiles, the Async IO Files library...Already installed
2024-06-10 17:25:14: - Installing py-cpuinfo to allow us to query CPU info...Already installed
2024-06-10 17:25:15: - Installing Requests, the HTTP library...Already installed
2024-06-10 17:25:16: Scanning modulesettings for downloadable models...Processing model list
2024-06-10 17:25:17: Downloading MobileNet Large...already exists...Expanding...done.
2024-06-10 17:25:17: Copying contents of objectdetection-mobilenet-large-edgetpu.zip to assets...done
2024-06-10 17:25:19: Downloading MobileNet Medium...already exists...Expanding...done.
2024-06-10 17:25:19: Copying contents of objectdetection-mobilenet-medium-edgetpu.zip to assets...done
2024-06-10 17:25:20: Downloading MobileNet Small...already exists...Expanding...done.
2024-06-10 17:25:20: Copying contents of objectdetection-mobilenet-small-edgetpu.zip to assets...done
2024-06-10 17:25:22: Downloading MobileNet Tiny...already exists...Expanding...done.
2024-06-10 17:25:22: Copying contents of objectdetection-mobilenet-tiny-edgetpu.zip to assets...done
2024-06-10 17:25:36: Self test: Self-test passed
2024-06-10 17:25:36: Module setup time 00:02:44.52
2024-06-10 17:25:36: Setup complete
2024-06-10 17:25:36: Total setup time 00:02:46.62
Installer exited with code 0
|
|
|
|
|
Someone else will need to get you the correct settings, but I suspect that yours are wrong because ‘IPcam-combined’ isn’t currently supported for Coral. Try using the default model first instead of a custom one. Also, your confidence threshold is low.
Edit: also, are you able to switch to YOLOv8 from MobileNet SSD?
|
|
|
|
|
Maybe I didn't explain completely.
I go back to YOLOv5 .NET because I get more accurate results with the YOLOv5.NET WITH the ipcam-* models.
I know those models are not available with the Coral modules.
That's why I use the Default Objects settings.
|
|
|
|
|
AFAIK the Use custom models and the use default objects options on the Settings AI page control how the request to CPAI is constructed.
The ipcam-combined model field in the camera page is ignored if the default objects checkbox is checked.
|
|
|
|
|
Also, confidence was set low because at one time I was missing things like persons, cars, busses etc. I eventually got tired of spending hours trying to find tune those settings. BTW, the YOLO modules work fine with those settings. Just Coral module produces those multiple "person" identifications.
I will try the YOLO8 model in the Coral module. (Again)
|
|
|
|
|
Changed to YOLO V8 Using Default Object Detection in Blue Iris.
Module 'Object Detection (Coral)' 2.2.2 (ID: ObjectDetectionCoral)
Valid: True
Module Path: <root>\modules\ObjectDetectionCoral
AutoStart: True
Queue: objectdetection_queue
Runtime: python3.9
Runtime Loc: Local
FilePath: objectdetection_coral_adapter.py
Start pause: 1 sec
Parallelism: 16
LogVerbosity:
Platforms: all
GPU Libraries: installed if available
GPU Enabled: enabled
Accelerator:
Half Precis.: enable
Environment Variables
CPAI_CORAL_MODEL_NAME = YOLOv8
CPAI_CORAL_MULTI_TPU = true
MODELS_DIR = <root>\modules\ObjectDetectionCoral\assets
MODEL_SIZE = medium
Status Data: {
"inferenceDevice": "Multi-TPU",
"inferenceLibrary": "TF-Lite",
"canUseGPU": "false",
"successfulInferences": 384,
"failedInferences": 0,
"numInferences": 384,
"averageInferenceMs": 14.434895833333334
}
Started: 12 Jun 2024 4:36:46 PM Central Standard Time
LastSeen: 12 Jun 2024 4:42:47 PM Central Standard Time
Status: Started
Requests: 445 (includes status calls)
Results:
I'm going to remove the "Banana" from the cancel textbox.
|
|
|
|
|
I'm done trying this for now.
I've also been trying to get a handle on a memory leak that started on 6/6 when I installed 2.6.5. Blue Iris goes from ~600 mBytes to ~9 gBytes over about 15 hours. Eventually Blue Iris shows only "nothing found".
Back to Old Faithful.
|
|
|
|
|
Hi,
Following upgrade to CPAI 2.6.5 on Ubuntu I have seen the Coral module crash several times, with the UI showing "Lost Contact" with the module and the following log messages:
09:02:11:Response rec'd from Object Detection (Coral) command 'detect' (...ee25ac) [''] took 21ms
09:03:17:objectdetection_coral_adapter.py: WARNING:root:Queue stalled; refreshing interpreters.
09:03:18:objectdetection_coral_adapter.py: WARNING:root:Queue stalled; refreshing interpreters.
09:04:13:objectdetection_coral_adapter.py: WARNING:root:Queue stalled; refreshing interpreters.
09:04:15:objectdetection_coral_adapter.py: WARNING:root:Queue stalled; refreshing interpreters.
09:04:17:objectdetection_coral_adapter.py: WARNING:root:Queue stalled; refreshing interpreters.
09:04:17:objectdetection_coral_adapter.py: WARNING:root:Pipe thread didn't join!
and again a few hours later:
11:48:52:Response rec'd from Object Detection (Coral) command 'detect' (...f1837e) [''] took 19ms
11:50:22:objectdetection_coral_adapter.py: WARNING:root:Queue stalled; refreshing interpreters.
11:51:22:objectdetection_coral_adapter.py: WARNING:root:Pipe thread didn't join!
I have a second instance that is still on 2.6.2 which has not exhibited this behaviour, so assume this to be an issue with the new code.
modified 11-Jun-24 8:34am.
|
|
|
|
|
Thanks very much for your report. Could you please share your System Info tab from your CodeProject.AI Server dashboard?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
sure..
Server version: 2.6.5
System: Linux
Operating System: Linux (Ubuntu 22.04)
CPUs: Intel(R) Xeon(R) CPU E3-1268L v3 @ 2.30GHz (Intel)
4 CPUs x 1 core. 1 logical processors (x64)
System RAM: 2 GiB
Platform: Linux
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.19
.NET SDK: 7.0.119
Default Python: 3.10.12
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
VMware SVGA II Adapter:
Driver Version
Video Processor
System GPU info:
GPU 3D Usage 0%
GPU RAM Usage 0
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
and from the other system thats not exhibiting the same behaviour:
Server version: 2.6.2
System: Linux
Operating System: Linux (Ubuntu 22.04)
CPUs: Intel(R) Xeon(R) CPU E3-1268L v3 @ 2.30GHz (Intel)
4 CPUs x 1 core. 1 logical processors (x64)
System RAM: 2 GiB
Platform: Linux
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.19
.NET SDK: 7.0.119
Default Python: 3.10.12
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
VMware SVGA II Adapter:
Driver Version
Video Processor
System GPU info:
GPU 3D Usage 0%
GPU RAM Usage 0
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
|
|
|
|
|
Thanks very much for that. We have an update to the module we are going to deploy. Stay tuned.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Sadly still broken
09:56:41:ObjectDetectionCoral went quietly
09:56:41:
09:56:41:Module 'Object Detection (Coral)' 2.3.1 (ID: ObjectDetectionCoral)
09:56:41:Valid: True
09:56:41:Module Path: <root>/modules/ObjectDetectionCoral
09:56:41:Module Location: Internal
09:56:41:AutoStart: True
09:56:41:Queue: objectdetection_queue
09:56:41:Runtime: python3.9
09:56:41:Runtime Location: Local
09:56:41:FilePath: objectdetection_coral_adapter.py
09:56:41:Start pause: 1 sec
09:56:41:Parallelism: 16
09:56:41:LogVerbosity:
09:56:41:Platforms: all
09:56:41:GPU Libraries: installed if available
09:56:41:GPU: use if supported
09:56:41:Accelerator:
09:56:41:Half Precision: enable
09:56:41:Environment Variables
09:56:41:CPAI_CORAL_MODEL_NAME = YOLOv8
09:56:41:CPAI_CORAL_MULTI_TPU = False
09:56:41:MODELS_DIR = <root>/modules/ObjectDetectionCoral/assets
09:56:41:MODEL_SIZE = Small
09:56:41:
09:56:41:Started Object Detection (Coral) module
09:56:42:objectdetection_coral_adapter.py: A module that was compiled using NumPy 1.x cannot be run in
09:56:42:objectdetection_coral_adapter.py: NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
09:56:42:objectdetection_coral_adapter.py: versions of NumPy, modules must be compiled with NumPy 2.0.
09:56:42:objectdetection_coral_adapter.py: Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
09:56:42:objectdetection_coral_adapter.py: If you are a user of the module, the easiest solution will be to
09:56:42:objectdetection_coral_adapter.py: downgrade to 'numpy<2' or try to upgrade the affected module.
09:56:42:objectdetection_coral_adapter.py: We expect that some modules will need time to support NumPy 2.
09:56:42:objectdetection_coral_adapter.py: Traceback (most recent call last): File "/usr/lib/python3.9/threading.py", line 937, in _bootstrap
09:56:42:objectdetection_coral_adapter.py: self._bootstrap_inner()
09:56:42:objectdetection_coral_adapter.py: File "/usr/lib/python3.9/threading.py", line 980, in _bootstrap_inner
09:56:42:objectdetection_coral_adapter.py: self.run()
09:56:42:objectdetection_coral_adapter.py: File "/usr/lib/python3.9/threading.py", line 917, in run
09:56:42:objectdetection_coral_adapter.py: self._target(*self._args, **self._kwargs)
09:56:42:objectdetection_coral_adapter.py: File "/usr/lib/python3.9/concurrent/futures/thread.py", line 83, in _worker
09:56:42:objectdetection_coral_adapter.py: work_item.run()
09:56:42:objectdetection_coral_adapter.py: File "/usr/lib/python3.9/concurrent/futures/thread.py", line 58, in run
09:56:42:objectdetection_coral_adapter.py: result = self.fn(*self.args, **self.kwargs)
09:56:42:objectdetection_coral_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 45, in initialise
09:56:42:objectdetection_coral_adapter.py: self.enable_GPU = self.system_info.hasCoralTPU
09:56:42:objectdetection_coral_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/codeproject_ai_sdk/system_info.py", line 344, in hasCoralTPU
09:56:42:objectdetection_coral_adapter.py: from pycoral.utils.edgetpu import list_edge_tpus
09:56:42:objectdetection_coral_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
09:56:42:objectdetection_coral_adapter.py: from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
09:56:42:objectdetection_coral_adapter.py: AttributeError: _ARRAY_API not found
09:56:45:Object Detection (Coral): [SystemError] : Error during main_loop: Traceback (most recent call last):
File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/codeproject_ai_sdk/module_runner.py", line 576, in main_loop
output = await callbacktask
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 90, in process
return self._list_models()
File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 161, in _list_models
from objectdetection_coral_singletpu import list_models
File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/objectdetection_coral_singletpu.py", line 65, in
from pycoral.utils.edgetpu import make_interpreter
File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
SystemError: initialization of _pywrap_coral raised unreported exception
09:56:45:objectdetection_coral_adapter.py: Unable to load OpenCV or numpy modules. Only using PIL.
09:56:39:objectdetection_coral_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/objectdetection_coral_singletpu.py", line 65, in
09:56:39:objectdetection_coral_adapter.py: from pycoral.utils.edgetpu import make_interpreter
09:56:39:objectdetection_coral_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
09:56:39:objectdetection_coral_adapter.py: from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
09:56:39:objectdetection_coral_adapter.py: AttributeError: _ARRAY_API not found
09:56:39:objectdetection_coral_adapter.py: TPU detected
09:56:39:objectdetection_coral_adapter.py: An exception occurred initialising the module: initialization of _pywrap_coral raised unreported exception
09:56:39:objectdetection_coral_adapter.py: A module that was compiled using NumPy 1.x cannot be run in
09:56:39:objectdetection_coral_adapter.py: NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
09:56:39:objectdetection_coral_adapter.py: versions of NumPy, modules must be compiled with NumPy 2.0.
09:56:39:objectdetection_coral_adapter.py: Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
09:56:39:objectdetection_coral_adapter.py: If you are a user of the module, the easiest solution will be to
09:56:39:objectdetection_coral_adapter.py: downgrade to 'numpy<2' or try to upgrade the affected module.
09:56:39:objectdetection_coral_adapter.py: We expect that some modules will need time to support NumPy 2.
09:56:39:objectdetection_coral_adapter.py: Traceback (most recent call last): File "/usr/lib/python3.9/threading.py", line 937, in _bootstrap
09:56:39:objectdetection_coral_adapter.py: self._bootstrap_inner()
09:56:39:objectdetection_coral_adapter.py: File "/usr/lib/python3.9/threading.py", line 980, in _bootstrap_inner
09:56:39:objectdetection_coral_adapter.py: self.run()
09:56:39:objectdetection_coral_adapter.py: File "/usr/lib/python3.9/threading.py", line 917, in run
09:56:39:objectdetection_coral_adapter.py: self._target(*self._args, **self._kwargs)
09:56:39:objectdetection_coral_adapter.py: File "/usr/lib/python3.9/concurrent/futures/thread.py", line 83, in _worker
09:56:39:objectdetection_coral_adapter.py: work_item.run()
09:56:39:objectdetection_coral_adapter.py: File "/usr/lib/python3.9/concurrent/futures/thread.py", line 58, in run
09:56:39:objectdetection_coral_adapter.py: result = self.fn(*self.args, **self.kwargs)
09:56:39:objectdetection_coral_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 90, in process
09:56:39:objectdetection_coral_adapter.py: return self._list_models()
09:56:39:objectdetection_coral_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 161, in _list_models
09:56:39:objectdetection_coral_adapter.py: from objectdetection_coral_singletpu import list_models
09:56:39:objectdetection_coral_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/objectdetection_coral_singletpu.py", line 65, in
09:56:39:objectdetection_coral_adapter.py: from pycoral.utils.edgetpu import make_interpreter
09:56:39:objectdetection_coral_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
09:56:39:objectdetection_coral_adapter.py: from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
09:56:39:objectdetection_coral_adapter.py: AttributeError: _ARRAY_API not found
09:56:39:Object Detection (Coral): [SystemError] : Error during main_loop: Traceback (most recent call last):
File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/codeproject_ai_sdk/module_runner.py", line 576, in main_loop
output = await callbacktask
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 90, in process
return self._list_models()
File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 161, in _list_models
from objectdetection_coral_singletpu import list_models
File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/objectdetection_coral_singletpu.py", line 65, in
from pycoral.utils.edgetpu import make_interpreter
File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
SystemError: initialization of _pywrap_coral raised unreported exception
09:56:41:ObjectDetectionCoral went quietly
13:15:25:
13:15:25:Started Object Detection (Coral) module
13:15:27:objectdetection_coral_adapter.py: A module that was compiled using NumPy 1.x cannot be run in
13:15:27:objectdetection_coral_adapter.py: NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
13:15:27:objectdetection_coral_adapter.py: versions of NumPy, modules must be compiled with NumPy 2.0.
13:15:27:objectdetection_coral_adapter.py: Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
13:15:27:objectdetection_coral_adapter.py: If you are a user of the module, the easiest solution will be to
13:15:27:objectdetection_coral_adapter.py: downgrade to 'numpy<2' or try to upgrade the affected module.
13:15:27:objectdetection_coral_adapter.py: We expect that some modules will need time to support NumPy 2.
13:15:27:objectdetection_coral_adapter.py: Traceback (most recent call last): File "/usr/lib/python3.9/threading.py", line 937, in _bootstrap
13:15:27:objectdetection_coral_adapter.py: self._bootstrap_inner()
13:15:27:objectdetection_coral_adapter.py: File "/usr/lib/python3.9/threading.py", line 980, in _bootstrap_inner
13:15:27:objectdetection_coral_adapter.py: self.run()
13:15:27:objectdetection_coral_adapter.py: File "/usr/lib/python3.9/threading.py", line 917, in run
13:15:27:objectdetection_coral_adapter.py: self._target(*self._args, **self._kwargs)
13:15:27:objectdetection_coral_adapter.py: File "/usr/lib/python3.9/concurrent/futures/thread.py", line 83, in _worker
13:15:27:objectdetection_coral_adapter.py: work_item.run()
13:15:27:objectdetection_coral_adapter.py: File "/usr/lib/python3.9/concurrent/futures/thread.py", line 58, in run
13:15:27:objectdetection_coral_adapter.py: result = self.fn(*self.args, **self.kwargs)
13:15:27:objectdetection_coral_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 45, in initialise
13:15:27:objectdetection_coral_adapter.py: self.enable_GPU = self.system_info.hasCoralTPU
13:15:27:objectdetection_coral_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/codeproject_ai_sdk/system_info.py", line 344, in hasCoralTPU
13:15:27:objectdetection_coral_adapter.py: from pycoral.utils.edgetpu import list_edge_tpus
13:15:27:objectdetection_coral_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
13:15:27:objectdetection_coral_adapter.py: from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
13:15:27:objectdetection_coral_adapter.py: AttributeError: _ARRAY_API not found
13:15:30:objectdetection_coral_adapter.py: A module that was compiled using NumPy 1.x cannot be run in
13:15:30:objectdetection_coral_adapter.py: NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
13:15:30:objectdetection_coral_adapter.py: Unable to load OpenCV or numpy modules. Only using PIL.
13:15:30:objectdetection_coral_adapter.py: TPU detected
13:15:30:objectdetection_coral_adapter.py: An exception occurred initialising the module: initialization of _pywrap_coral raised unreported exception
13:15:30:objectdetection_coral_adapter.py: versions of NumPy, modules must be compiled with NumPy 2.0.
13:15:30:objectdetection_coral_adapter.py: Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
13:15:30:objectdetection_coral_adapter.py: If you are a user of the module, the easiest solution will be to
13:15:30:objectdetection_coral_adapter.py: downgrade to 'numpy<2' or try to upgrade the affected module.
13:15:30:objectdetection_coral_adapter.py: We expect that some modules will need time to support NumPy 2.
13:15:30:objectdetection_coral_adapter.py: Traceback (most recent call last): File "/usr/lib/python3.9/threading.py", line 937, in _bootstrap
13:15:30:objectdetection_coral_adapter.py: self._bootstrap_inner()
13:15:30:objectdetection_coral_adapter.py: File "/usr/lib/python3.9/threading.py", line 980, in _bootstrap_inner
13:15:30:objectdetection_coral_adapter.py: self.run()
13:15:30:objectdetection_coral_adapter.py: File "/usr/lib/python3.9/threading.py", line 917, in run
13:15:30:objectdetection_coral_adapter.py: self._target(*self._args, **self._kwargs)
13:15:30:objectdetection_coral_adapter.py: File "/usr/lib/python3.9/concurrent/futures/thread.py", line 83, in _worker
13:15:30:objectdetection_coral_adapter.py: work_item.run()
13:15:30:objectdetection_coral_adapter.py: File "/usr/lib/python3.9/concurrent/futures/thread.py", line 58, in run
13:15:30:objectdetection_coral_adapter.py: result = self.fn(*self.args, **self.kwargs)
13:15:30:objectdetection_coral_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/objectdetection_coral_adapter.py", line 66, in initialise
13:15:30:objectdetection_coral_adapter.py: import objectdetection_coral_singletpu as odcs
13:15:30:objectdetection_coral_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/objectdetection_coral_singletpu.py", line 65, in
13:15:30:objectdetection_coral_adapter.py: from pycoral.utils.edgetpu import make_interpreter
13:15:30:objectdetection_coral_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.5/modules/ObjectDetectionCoral/bin/linux/python39/venv/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in
13:15:30:objectdetection_coral_adapter.py: from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
13:15:30:objectdetection_coral_adapter.py: AttributeError: _ARRAY_API not found
modified 26-Jun-24 8:17am.
|
|
|
|
|
We've updated to Coral module to 2.3.3, and I've tested it again. Could you please uninstall, and reinstall the module again, once more with feeling?
Thanks,
Sean Ewington
CodeProject
modified 27-Jun-24 13:52pm.
|
|
|
|
|
Thanks for the update, I have yet to see any errors from Coral 2.3.3 on CPAI 2.6.5...
Im now running one instance of this and another with Coral 2.2.2 on CPAI 2.6.2, both have run ~120k inferences with only a handful (15-20) failed inferences
|
|
|
|
|
Cool project. Thank you.
I've deployed it in an LXC under Proxmox, and another LXC with the full development project. FWIW I also have it running on an RPI 5 with NVME drive and a Coral TPU deployed to docker with the dockge interface.
I've successfully run the "Optical Character Recognition" against images of road signs and of a technical manual in .pdf form. Works very well.
For grins I ran the OCR against an image of my terrible cursive handwriting. Of three paragraphs it got two thirds of the Date correct as I had written it as "month d, yyyy" The remainder of the sample was gibberish.
In my investegations I've come across, among others;
* Transkribus[^]
* Pen2text.com
Pen2text blew me away in the ease to making a simple test on that same sample of my, horribly illegible, handwriting. It missed two words that frankly looked like a leaky pen.
At any rate for either of these projects I feel I'd have to hire legal representation to understand the ownership and use of the OCR'ed sources and results.
I'd sure appreciate any tips on open source, self hosted, trainable OCR software suitable for a collection of perhaps fifty cursive multipage letters written in the same hand six or more decades ago. Once processed the text would be fed to a model to allow for chat of that subject matter.
Bonus points for pointers to open source archival platforms to organize the letters, that has an api so that I could correlate the OCRed text to the collection of images. Why reinvent that, archiving, wheel so to speak.
Thanks for listening by way or your reading.
Jeff
KF7CRU @jhalbrecht
|
|
|
|
|
Since upgrading to 2.6.5 I get AI not responding and no detections. I have to enable the service to start with Blue Iris after every reboot. Also changing from enable GPU or disabling GPU doesn't seem to change anything. I am using an Intel CPU with integrated GPU and used to be able to select enable GPU. Also the Codeproject AI status does not indicate Direct ML even after several detections. I am using Yolo.Net. Please advise? Everything I mentioned seemed to work fine with 2.6.2.
|
|
|
|
|
Thanks very much for your report. Could you please share your System Info tab from your CodeProject.AI Server dashboard?
One thing, I recommend going to Blue Iris main AI settings and unchecking auto stop/start.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Here it is
Server version: 2.6.5
System: Windows
Operating System: Windows (Microsoft Windows 10.0.19045)
CPUs: Intel(R) Core(TM) i7-6700T CPU @ 2.80GHz (Intel)
1 CPU x 4 cores. 8 logical processors (x64)
GPU (Primary): Intel(R) HD Graphics 530 (1,024 MiB) (Intel Corporation)
Driver: 31.0.101.2111
System RAM: 16 GiB
Platform: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.20
.NET SDK: Not found
Default Python: Not found
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
Intel(R) HD Graphics 530:
Driver Version 31.0.101.2111
Video Processor Intel(R) HD Graphics Family
System GPU info:
GPU 3D Usage 0%
GPU RAM Usage 0
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
|
|
|
|
|
I unchecked Start/Stop in Blue Iris. Restarted Blue Iris PC. I have to manually start Codeproject in Codeproject Dashboard but at least I now see Direct ML after I do this. Only problem is that Custom Models are not displaying in AI Main settings. If I hit the three dots, I get the Refresh AI to display models. Looks like the custom models are not loading for some reason. How would I refresh AI? Please advise?
|
|
|
|
|
Restart the Blue Iris service and the custom model list should update
|
|
|
|
|
Looks like all these steps seem to make things work normally again. I'm assuming this is a temporary measure at the moment until further bugs are ironed out?
|
|
|
|
|
Hi,
Since the install of the latest version of CP on my Blue Iris server, I get the message "Alert Cancelled AI not responding".
Consequently I do not get any notification on my phone when someone triggers a camera because there is no analysis done.
I reinstalled CP, no success.
Any suggestion on whatto do next?
I am on Windows 10
Thanks,
Michel.
|
|
|
|
|
It works now
I uninstalled CP, then I used the software Everything from Voidtools to find every single file left that had CodeProject in it's name and deleted them all, then reinstalled CP and restarted the server and it works as it should.
Thanks
|
|
|
|
|