CodeProject.AI Version 2.0

Thank you for the info.

I made the changes like you suggested.

This is my current reaction time now

AI: [Objects] car:66% [690,334 1095,485] 5667ms

This is far from 6.2 and 17ms

May I ask if I am doing anything wrong?

I have 2 IPC-Color4K-T and a MINI PTZ. I don't think camera models matters, but just in case.

Please see attached picture of my pc spec and a confirmation that I have enable the correct one.

Thank you for your help.
Did you make the below changes to all your cameras

1686705221439.png
 
  • Like
Reactions: David L
Is this what you're looking for?

Please let me know if I miss something or not the right screenshots.
Everything looks fine, try running a test using Explorer and see what detection time you are getting there. You can also run the Benchmark. When running the first test you should see about 300ms to 400ms and the Benchmark at about 10 operations per a second.

1686719709038.png
1686719811452.png
 
  • Like
Reactions: David L
Please see below test results. This is using chrome. Not sure if that makes any difference vs IE

When I was performing benchmark test, I sometimes see "Unable to contact AI server"

CPAI 2.jpg


Everything looks fine, try running a test using Explorer and see what detection time you are getting there. You can also run the Benchmark. When running the first test you should see about 300ms to 400ms and the Benchmark at about 10 operations per a second.

View attachment 165449
View attachment 165450
 
Please see below test results. This is using chrome. Not sure if that makes any difference vs IE

When I was performing benchmark test, I sometimes see "Unable to contact AI server"

View attachment 165454
Can you provide this for us/Mike?

1686736623116.png

Also, make sure your Anti-Virus/Firewall is not causing issues. I have mine Off on my BI PC. You may want to Turn it Off to test...just not sure what Exclusions are needed with CPAI. When mine was running I Excluded my Blue Iris folders...
 
Last edited:
I'm also getting a lot of "AI: Alert cancelled [occupied] 4896ms"

I have excluded BI folders already from firewall.

View attachment 165458
What Video Card do you have? I notice the GPU is using Intel HD but showing AMD Radeon Processor. Forgive my ignorance, does Intel use AMD GPU Procs?


EDIT: Actually it looks like you have two GPUs...you may need to turn off the Intel Graphics in your BIOS if you have a Radeon Video Card installed...

EDIT2: Are you running BI on a Laptop?

 
Last edited:
What Video Card do you have? I notice the GPU is using Intel HD but showing AMD Radeon Processor. Forgive my ignorance, does Intel use AMD GPU Procs?


EDIT: Actually it looks like you have two GPUs...you may need to turn off the Intel Graphics in your BIOS if you have a Radeon Video Card installed...

EDIT2: Are you running BI on a Laptop?


Will having dual video cards, one built in and one "external" cause these types of issues?

No I'm not using a laptop. I have dell 7050
 
  • Like
Reactions: David L
Will having dual video cards, one built in and one "external" cause these types of issues?

No I'm not using a laptop. I have dell 7050
Not sure I am just observing. If it were me I would turn off the Intel HD graphics...
 
Will having dual video cards, one built in and one "external" cause these types of issues?

No I'm not using a laptop. I have dell 7050
Here is my thought, of your two GPUs, you would want the AMD Radeon to be the one CPAI uses...
 
  • Like
Reactions: dubber
Will having dual video cards, one built in and one "external" cause these types of issues?

No I'm not using a laptop. I have dell 7050
 
@dubber In addition to @MikeLud1 original advice about "unchecking" main stream, make sure you configured the substream for every camera. That way, CP.AI will use substream image for analysis and will be faster. See screenshot below for example---your camera settings may differ from mine.

Also, uncheck "Static object analysis". Unless you need to check for a parked car, turn off this option. If you have this option enabled, you are telling BI5 to send images to CP.AI at regular intervals, increasing load on CP.AI.

There are other ways to increase AI speed like turning off default object detection and using Mike's custom model like ipcam-general for example.

Screenshot 2023-06-14 at 6.16.26 AM.png
 
Last edited:
  • Like
Reactions: David L and dubber
AI: [Objects] car:69% [343,380 785,552] 438ms
0 6/15/2023 4:54:17.147 AM DrivewayRight AI: [Objects] car:57% [735,343 1294,456] 438ms
0 6/14/2023 11:24:12.468 PM DrivewayRight AI: [Objects] car:73% [362,378 783,550] 1351ms
0 6/14/2023 11:18:38.607 PM DrivewayRight AI: [Objects] car:66% [363,379 781,551] 3355ms

I don't think it did


Did disabling the Intel GPU help
 
  • Sad
Reactions: David L
How can i get CPAI to use GPU instead of CPU, do i need to replace my custom models with ones that support GPU?

I do not have a Nvidia GPU and would like to make use of my Intel iGPU.

Code:
24:20:11:
24:20:11:Module 'Object Detection (YOLOv5 .NET)' (ID: ObjectDetectionNet)
24:20:11:Active:      True
24:20:11:GPU:         Support enabled
24:20:11:Parallelism: 0
24:20:11:Platforms:   windows,linux,linux-arm64,macos,macos-arm64
24:20:11:FilePath:    ObjectDetectionNet.exe
24:20:11:ModulePath:  ObjectDetectionNet
24:20:11:Install:     PreInstalled
24:20:11:Runtime:     execute
24:20:11:Queue:       objectdetection_queue
24:20:11:Start pause: 1 sec
24:20:11:Valid:       True
24:20:11:Environment Variables
24:20:11:CPAI_MODULE_SUPPORT_GPU = False
24:20:11:CUSTOM_MODELS_DIR       = %CURRENT_MODULE_PATH%\custom-models
24:20:11:MODELS_DIR              = %CURRENT_MODULE_PATH%\assets
24:20:11:MODEL_SIZE              = MEDIUM
24:20:11:USE_CUDA                = False
24:20:11: