CodeProject.AI Version 2.0

AekaGSR

n3wb
Joined
May 31, 2021
Messages
1
Reaction score
0
Location
Riverside
2.24 with no problems until I switched to a coral-USB. Once an object is detected the CP server goes offline. "AI not responding" in the BlueIris logs and the CP server has no log of any event at the same timestamp.
At a loss after trying several configs and following tutorials.
 

Mast3r0fN0n3

Getting the hang of it
Joined
Sep 16, 2022
Messages
64
Reaction score
73
Location
Texas
Hey,
Ive got one of my cameras set up to only confirm people. I noticed when I get deliveries the camera picks up people as they leave my house. How can I get the initial trigger (vehicle) to continue analyzing and pick up the person exiting the vehicle? Would the issue be in the AI option for leading motion and or my Break time under triggers.

Thanks
What setting under : camera settings-Record (tab)-pre-trigger record time
 

Nunofya

Getting comfortable
Joined
Nov 8, 2021
Messages
356
Reaction score
274
Location
USA
Can someone give me the steps for upgrading cpai from 2.1.11 to 2.24? I don't see an uninstall option.
 

actran

Getting comfortable
Joined
May 8, 2016
Messages
806
Reaction score
732
@MikeLud1 I use ipcam-general model for most cam AI configs. When biking down the driveway, I noticed that it correctly identified me as person and the 10-speed bicycle as vehicle. Are images of bicycles included in the training set for this model?
 

jrbeddow

Getting comfortable
Joined
Oct 26, 2021
Messages
374
Reaction score
489
Location
USA
CodeProject.AI Update

Version 2.3.2 was just released.


View attachment 176501

View attachment 176502
I still have a smooth running installation of 2.1.8 that I have been running for about 6 months or so: I think I will let braver souls (with perhaps currently problematic installations) try this out and see if it is trouble-free and resolves anything for them. I hate to temp fate and wind up with a messed-up system in the name of looking for performance upgrades.
 

sewington

Getting the hang of it
Joined
Oct 25, 2022
Messages
25
Reaction score
51
Location
Alberta, Canada
Is anyone interested in being a CodeProject.AI Server beta tester? All you would need is an account on codeproject.com. Anyone is welcome, but testers with the following setup in priority are:
Windows users
Windows users with an NVIDIA GPU
Docker users
Linux / macOS native installer users

If anyone is interested please message me a link to your CodeProject profile, and I'll invite you to the testers group.
 

hopalong

Getting the hang of it
Joined
Apr 19, 2021
Messages
70
Reaction score
34
Location
California
I installed 2.3.2 on my unraid docker. Should I be running both the .NET and Coral or just one?

1698711020185.png


I also see some occasional errors pop up in the LPR and AI Tool logs

1698711090056.png


1698711281262.png
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,220
Reaction score
4,266
Location
Brooklyn, NY

hopalong

Getting the hang of it
Joined
Apr 19, 2021
Messages
70
Reaction score
34
Location
California
Only one Object Detection should be used and the LPR module only works with Object Detection (YOLOv5 .NET) or Object Detection (YOLOv5 6.2) or Object Detection (YOLOv5 3.1)
I tested a few things after I posted. After disabling the Coral module I don't get any more errors. I guess I don't need to keep the 2.0.8 docker container around any longer as the 2.3.2 seems to be working well.

Is there any way to best utilize the Coral at this time?
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,220
Reaction score
4,266
Location
Brooklyn, NY
I tested a few things after I posted. After disabling the Coral module I don't get any more errors. I guess I don't need to keep the 2.0.8 docker container around any longer as the 2.3.2 seems to be working well.

Is there any way to best utilize the Coral at this time?
The only way I can think of is to have two CodeProject.AI containers one for ObjectDetection (Coral) (port 32168) and one for License Plate Reader (port 32169)
 

tedrpi

Getting the hang of it
Joined
Sep 2, 2015
Messages
85
Reaction score
36
@MikeLud1 - anything special I should be doing to get LPR working with my GPU? Yolov5 6.2 shows GPU but LPR is defaulting to CPU and I don't see a way to get it to use the GPU (no settings gear). I'm still running CUDA 11.8.89 fwiw.

Under info I see:

Module 'License Plate Reader' 2.7.2 (ID: ALPR)
Module Path: <root>\modules\ALPR
AutoStart: True
Queue: alpr_queue
Platforms: windows,linux,linux-arm64,macos,macos-arm64,!orangepi,!jetson
GPU Libraries: installed if available
GPU Enabled: enabled
Parallelism: 0
Accelerator:
Half Precis.: enable
Runtime: python3.7
Runtime Loc: Local
FilePath: ALPR_adapter.py
Pre installed: False
Start pause: 1 sec
LogVerbosity:
Valid: True
Environment Variables
AUTO_PLATE_ROTATE = True
MIN_COMPUTE_CAPABILITY = 7
MIN_CUDNN_VERSION = 7
OCR_OPTIMAL_CHARACTER_HEIGHT = 60
OCR_OPTIMAL_CHARACTER_WIDTH = 36
OCR_OPTIMIZATION = True
PLATE_CONFIDENCE = 0.7
PLATE_RESCALE_FACTOR = 2
PLATE_ROTATE_DEG = 0
Started: 30 Oct 2023 9:33:37 PM Eastern Standard Time
LastSeen: 30 Oct 2023 9:36:37 PM Eastern Standard Time
Status: Started
Processed: 213
Provider:
CanUseGPU: False
HardwareType: CPU



CodeProject.AI Update

Version 2.3.2 was just released.


View attachment 176501

View attachment 176502
 
Last edited:

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,220
Reaction score
4,266
Location
Brooklyn, NY
@MikeLud1 - anything special I should be doing to get LPR working with my GPU? Yolov5 6.2 shows GPU but LPR is defaulting to CPU and I don't see a way to get it to use the GPU (no settings gear). I'm still running CUDA 11.8.89 fwiw.

Under info I see:

Module 'License Plate Reader' 2.7.2 (ID: ALPR)
Module Path: <root>\modules\ALPR
AutoStart: True
Queue: alpr_queue
Platforms: windows,linux,linux-arm64,macos,macos-arm64,!orangepi,!jetson
GPU Libraries: installed if available
GPU Enabled: enabled
Parallelism: 0
Accelerator:
Half Precis.: enable
Runtime: python3.7
Runtime Loc: Local
FilePath: ALPR_adapter.py
Pre installed: False
Start pause: 1 sec
LogVerbosity:
Valid: True
Environment Variables
AUTO_PLATE_ROTATE = True
MIN_COMPUTE_CAPABILITY = 7
MIN_CUDNN_VERSION = 7
OCR_OPTIMAL_CHARACTER_HEIGHT = 60
OCR_OPTIMAL_CHARACTER_WIDTH = 36
OCR_OPTIMIZATION = True
PLATE_CONFIDENCE = 0.7
PLATE_RESCALE_FACTOR = 2
PLATE_ROTATE_DEG = 0
Started: 30 Oct 2023 9:33:37 PM Eastern Standard Time
LastSeen: 30 Oct 2023 9:36:37 PM Eastern Standard Time
Status: Started
Processed: 213
Provider:
CanUseGPU: False
HardwareType: CPU
Post your System Info

1698717985986.png
 

tedrpi

Getting the hang of it
Joined
Sep 2, 2015
Messages
85
Reaction score
36
Sure:

Server version: 2.3.2-Beta
System: Windows
Operating System: Windows (Microsoft Windows 10.0.19045)
CPUs: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (Intel)
1 CPU x 4 cores. 8 logical processors (x64)
GPU: NVIDIA GeForce GT 1030 (2 GiB) (NVIDIA)
Driver: 536.23 CUDA: 11.8.89 (max supported: 12.2) Compute: 6.1
System RAM: 48 GiB
Target: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
.NET framework: .NET 7.0.5
Video adapter info:
NVIDIA GeForce GT 1030:
Driver Version 31.0.15.3623
Video Processor NVIDIA GeForce GT 1030
Intel(R) HD Graphics 530:
Driver Version 31.0.101.2111
Video Processor Intel(R) HD Graphics Family
System GPU info:
GPU 3D Usage 24%
GPU RAM Usage 630 MiB
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168







 

Skinny1

Getting the hang of it
Joined
Jul 10, 2016
Messages
271
Reaction score
49
I need help, Mike?? LOL

I just update Codeproject 2.3.2-Beta and get the following ALPR error in my logs and the LPR will not work. I have module 2.7.2 running and Object Detection (YPOLOv5.NET) Obect detection is working with no issues. installed. Any idea's?

15:41:20:ALPR_adapter.py: Traceback (most recent call last):
15:41:20:ALPR_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ALPR\ALPR_adapter.py", line 7, in
15:41:20:ALPR_adapter.py: from request_data import RequestData
15:41:20:ALPR_adapter.py: File "../../SDK/Python\request_data.py", line 7, in
15:41:20:ALPR_adapter.py: from PIL import Image
15:41:20:ALPR_adapter.py: ImportError: cannot import name 'Image' from 'PIL' (unknown location)

Thank you,

Rick
 

Skinny1

Getting the hang of it
Joined
Jul 10, 2016
Messages
271
Reaction score
49
I need help, Mike?? LOL

I just update Codeproject 2.3.2-Beta and get the following ALPR error in my logs and the LPR will not work. I have module 2.7.2 running and Object Detection (YPOLOv5.NET) Obect detection is working with no issues. installed. Any idea's?

15:41:20:ALPR_adapter.py: Traceback (most recent call last):
15:41:20:ALPR_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ALPR\ALPR_adapter.py", line 7, in
15:41:20:ALPR_adapter.py: from request_data import RequestData
15:41:20:ALPR_adapter.py: File "../../SDK/Python\request_data.py", line 7, in
15:41:20:ALPR_adapter.py: from PIL import Image
15:41:20:ALPR_adapter.py: ImportError: cannot import name 'Image' from 'PIL' (unknown location)

Thank you,

Rick
OK, I reinstalled Codeproject 2.3.2-Beta and fixed the above error message, now I am getting the folloowing error message. 15:49:32:ALPR_adapter.py: C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\python.exe: can't open file 'C:\Program Files\CodeProject\AI\modules\ALPR\ALPR_adapter.py': [Errno 2] No such file or directory.

Any idea's?

Thank you,

Rick
 

Skinny1

Getting the hang of it
Joined
Jul 10, 2016
Messages
271
Reaction score
49
OK, I reinstalled Codeproject 2.3.2-Beta and fixed the above error message, now I am getting the folloowing error message. 15:49:32:ALPR_adapter.py: C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\python.exe: can't open file 'C:\Program Files\CodeProject\AI\modules\ALPR\ALPR_adapter.py': [Errno 2] No such file or directory.

Any idea's?

Thank you,

Rick
Man, this should not be this complicated ! I am now getting part of the first error message again -

16:02:05:ALPR_adapter.py: Traceback (most recent call last):
16:02:05:ALPR_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ALPR\ALPR_adapter.py", line 7, in
16:02:05:ALPR_adapter.py: from request_data import RequestData
16:02:05:ALPR_adapter.py: File "../../SDK/Python\request_data.py", line 7, in
16:02:05:ALPR_adapter.py: from PIL import Image
16:02:05:ALPR_adapter.py: ModuleNotFoundError: No module named 'PIL'

Any idaea's?

Rick
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,220
Reaction score
4,266
Location
Brooklyn, NY
Man, this should not be this complicated ! I am now getting part of the first error message again -

16:02:05:ALPR_adapter.py: Traceback (most recent call last):
16:02:05:ALPR_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ALPR\ALPR_adapter.py", line 7, in
16:02:05:ALPR_adapter.py: from request_data import RequestData
16:02:05:ALPR_adapter.py: File "../../SDK/Python\request_data.py", line 7, in
16:02:05:ALPR_adapter.py: from PIL import Image
16:02:05:ALPR_adapter.py: ModuleNotFoundError: No module named 'PIL'

Any idaea's?

Rick
Try uninstall the ALPR module then reinstall the module using Do not use download cache.

1698789588715.png
 
Top