|
|
The dashboard format was updated. The 3 little SVG icons to the left of the menu you show.
Stop, Pause, and Restart...
|
|
|
|
|
no models in model combobox!
|
|
|
|
|
Need a little more info please: which object detection module do you have enabled?
For the YOLO 6.2, YOLO 3.1 and .NET detectors, check in C:\Program Files\CodeProject\AI\modules[Module]\custom-models and let me know what you see.
For Coral, no custom models are provided.
cheers
Chris Maunder
|
|
|
|
|
Hello
2.2 has been giving me the non-json error.
I tried to go back to 2.1 but for some reason modules wouldnt install.
I saw 2.2.3 came out and it should have solved the issue, but I am still having it. I am using the Coral module.
I always do a clean install of codeproject. I uninstall, delete program files folder AND program data folders. Then I install new version
Thank you for your help!
|
|
|
|
|
The JSON error is something I'm waiting on Blue Iris to address.
cheers
Chris Maunder
|
|
|
|
|
Ken @ Blue Iris has been looking into the two issues raised with the latest release. We're aware of the hassle this is causing and between us we'll have a solution ASAP.
cheers
Chris Maunder
|
|
|
|
|
Thanks for all your work on this, Chris.
I'm sure it's not how you wanted to spend your weekend.
|
|
|
|
|
It's worth it.
cheers
Chris Maunder
|
|
|
|
|
For those keen enough to try our pre-release 2.2.x installer, you may notice there is an extra CodeProject.AI Server entry in your services list.
We inadvertently changed the service name which made our new installer unable to remove the old service.If you see multiple services in the Services manager in Windows, you can remove the extra services easily:
- Open a command prompt with admin rights (hit Start -> type "Command", right click on the Command Prompt and select "Run as Administrator")
- Enter the following commands and hit enter after each command
sc delete "CodeProject.AI-Server" sc delete "CodeProject AI Server"
(ignore any errors)
All done! Version 2.2.3 has the correct service name.
cheers
Chris Maunder
modified 17-Sep-23 20:46pm.
|
|
|
|
|
sc delete "CodeProject AI Server" will not delete the service name with spaces in it.
I went to the registry key and deleted the key...
|
|
|
|
|
If you put it between quotes and type EXACTLY as-is, then it works. That's how I got to remove the extra service.
|
|
|
|
|
According to API Reference - CodeProject.AI Server v2.1.11[^]
The response should be:
{
"success": (Boolean)
"predictions": (Object)
"inferenceMs": (int)
"processMs" : (int)
"analysisRoundTripMs": (int)
}
But instead with 2.2.2 I get:
laptop
chair
chair
chair
sink
chair
chair
chair
clock
chair
cat
chair
{'message': 'Found laptop, chair, chair...', 'count': 12, 'predictions': [{'confidence': 0.4091796875, 'label': 'laptop', 'x_min': 978, 'y_min': 130, 'x_max': 1058, 'y_max': 198}, {'confidence':
0.410888671875, 'label': 'chair', 'x_min': 977, 'y_min': 130, 'x_max': 1059, 'y_max': 199}, {'confidence': 0.41455078125, 'label': 'chair', 'x_min': 868, 'y_min': 125, 'x_max': 937, 'y_max': 17
4}, {'confidence': 0.505859375, 'label': 'chair', 'x_min': 0, 'y_min': 696, 'x_max': 465, 'y_max': 1068}, {'confidence': 0.55029296875, 'label': 'sink', 'x_min': 1659, 'y_min': 525, 'x_max': 179
4, 'y_max': 610}, {'confidence': 0.55908203125, 'label': 'chair', 'x_min': 1044, 'y_min': 151, 'x_max': 1159, 'y_max': 233}, {'confidence': 0.6064453125, 'label': 'chair', 'x_min': 771, 'y_min':
147, 'x_max': 885, 'y_max': 279}, {'confidence': 0.60986328125, 'label': 'chair', 'x_min': 609, 'y_min': 197, 'x_max': 813, 'y_max': 417}, {'confidence': 0.60986328125, 'label': 'clock', 'x_min
': 242, 'y_min': 37, 'x_max': 310, 'y_max': 175}, {'confidence': 0.7333984375, 'label': 'chair', 'x_min': 1046, 'y_min': 172, 'x_max': 1193, 'y_max': 345}, {'confidence': 0.798828125, 'label': '
cat', 'x_min': 636, 'y_min': 432, 'x_max': 1054, 'y_max': 746}, {'confidence': 0.814453125, 'label': 'chair', 'x_min': 874, 'y_min': 172, 'x_max': 1023, 'y_max': 356}], 'success': True, 'process
Ms': 113, 'inferenceMs': 104, 'code': 200, 'command': 'detect', 'moduleId': 'ObjectDetectionYolo', 'executionProvider': 'CUDA', 'analysisRoundTripMs': 156}
And is Probably why Blue Iris is throwing 200 errors.
|
|
|
|
|
How are you seeing that (ie what tool are you using?). When I do a raw dump using text() in the Explorer, I get
{
"message":"Found car",
"count":1,
"predictions": [{
"label":"car",
"confidence":0.5860529,
"y_min":1,
"x_min":622,
"y_max":89,
"x_max":770} ],
"success":true,
"code":200,
"command":"detect",
"moduleId":"ObjectDetectionNet",
"executionProvider":"CPU",
"canUseGPU":true,
"inferenceMs":219,
"processMs":219,
"analysisRoundTripMs":226
}
The docs need updating, for sure, but I'm not seeing the labels at the start of the package. Which module are you using?
cheers
Chris Maunder
|
|
|
|
|
I am just using the example from the API doc - just realized why there is a diff - sorry:
import requests
image_data = open("my_image.jpg","rb").read()
response = requests.post("http://localhost:32168/v1/vision/detection",
files={"image":image_data}).json()
for object in response["predictions"]:
print(object["label"])
print(response)
commenting out the "for object" part gives as expected (I think):
{'message': 'Found laptop, chair, chair...', 'count': 12, 'predictions': [{'confidence': 0.4091796875, 'label': 'laptop', 'x_min': 978, 'y_min': 130, 'x_max': 1058, 'y_max': 198}, {'confidence':
0.410888671875, 'label': 'chair', 'x_min': 977, 'y_min': 130, 'x_max': 1059, 'y_max': 199}, {'confidence': 0.41455078125, 'label': 'chair', 'x_min': 868, 'y_min': 125, 'x_max': 937, 'y_max': 17
4}, {'confidence': 0.505859375, 'label': 'chair', 'x_min': 0, 'y_min': 696, 'x_max': 465, 'y_max': 1068}, {'confidence': 0.55029296875, 'label': 'sink', 'x_min': 1659, 'y_min': 525, 'x_max': 179
4, 'y_max': 610}, {'confidence': 0.55908203125, 'label': 'chair', 'x_min': 1044, 'y_min': 151, 'x_max': 1159, 'y_max': 233}, {'confidence': 0.6064453125, 'label': 'chair', 'x_min': 771, 'y_min':
147, 'x_max': 885, 'y_max': 279}, {'confidence': 0.60986328125, 'label': 'chair', 'x_min': 609, 'y_min': 197, 'x_max': 813, 'y_max': 417}, {'confidence': 0.60986328125, 'label': 'clock', 'x_min
': 242, 'y_min': 37, 'x_max': 310, 'y_max': 175}, {'confidence': 0.7333984375, 'label': 'chair', 'x_min': 1046, 'y_min': 172, 'x_max': 1193, 'y_max': 345}, {'confidence': 0.798828125, 'label': '
cat', 'x_min': 636, 'y_min': 432, 'x_max': 1054, 'y_max': 746}, {'confidence': 0.814453125, 'label': 'chair', 'x_min': 874, 'y_min': 172, 'x_max': 1023, 'y_max': 356}], 'success': True, 'process
Ms': 123, 'inferenceMs': 113, 'code': 200, 'command': 'detect', 'moduleId': 'ObjectDetectionYolo', 'executionProvider': 'CUDA', 'analysisRoundTripMs': 183}
|
|
|
|
|
OK, that makes sense. With a JSON object, the ordering of properties doesn't matter, and the presence of extra properties should also not matter. They are typically just ignored. JSON is pretty chill.
cheers
Chris Maunder
|
|
|
|
|
BI log shows:
9/17/2023 11:03:39.291 AM <Camera Name> AI: error 200
9/17/2023 11:03:39.298 AM <Camera Name> AI: Alert canceled [AI: non-JSON response] 248ms
Error comes up when using both Object Detection (YOLOv5 .NET) and Object Detection (YOLOv5 6.2). The CPAI server log shows the detected objects but BI apparently has no idea what to do with the data it receives.
11:03:38:Object Detection (YOLOv5 .NET): Command completed in 202 ms.
11:03:38:Response received (...dbc60b): Found motorcycle, car
11:03:38:Client request 'detect' in queue 'objectdetection_queue' (...d0cba4)
11:03:38:Request 'detect' dequeued from 'objectdetection_queue' (...d0cba4)
11:03:38:Response received (...d0cba4): Found car
11:03:38:Object Detection (YOLOv5 .NET): Command completed in 242 ms.
11:03:39:Client request 'detect' in queue 'objectdetection_queue' (...9839a6)
11:03:39:Request 'detect' dequeued from 'objectdetection_queue' (...9839a6)
11:03:39:Object Detection (YOLOv5 .NET): Command completed in 197 ms.
11:03:39:Response received (...9839a6): Found car
|
|
|
|
|
Are you running the latest Blue Iris?
cheers
Chris Maunder
|
|
|
|
|
Running BI 5.7.9.10
|
|
|
|
|
Great, thanks for that
cheers
Chris Maunder
|
|
|
|
|
We found a regression in sending the responses to Blue Iris and have a fix that will be deployed very shortly.
"Mistakes are prevented by Experience. Experience is gained by making mistakes."
|
|
|
|
|
2.2.2 installs over 2.2.1 with one hitch. The service name change leaves the old service in place...
|
|
|
|
|
Yes - we just spotted this.
For now, open a command prompt with elevated privileges and type
sc delete CodeProject.AI-Server
cheers
Chris Maunder
|
|
|
|
|
Yep, did that.
side note: I have not been able to have the service start automatically with any version...
|
|
|
|
|
Have you gone into the Windows services app and checked the settings?
Can you run the CodeProject.AI Server manually (just double clicking the exe)?
Which OS?
cheers
Chris Maunder
|
|
|
|
|