Page 1 of 1

Alarm, nothing found

Posted: Fri Jan 12, 2024 8:12 am
by mpl
Hello,

Iv try to enable CP AI, but iv got "nothing found" in my Alarms.

On static analys you see that the AI Server works. I have try several versions of the AI Server from 2.0.8 to 2.7

Can someone Help me?
Screenshot_2024-01-12-07-46-49-736_com.microsoft.rdc.androidx_copy_1023x460.jpg
Screenshot_2024-01-12-07-46-49-736_com.microsoft.rdc.androidx_copy_1023x460.jpg (241.48 KiB) Viewed 100928 times
Screenshot_2024-01-12-07-45-58-827_com.microsoft.rdc.androidx-edit_copy_807x969.jpg
Screenshot_2024-01-12-07-45-58-827_com.microsoft.rdc.androidx-edit_copy_807x969.jpg (243.35 KiB) Viewed 100928 times
Screenshot_2024-01-12-07-44-51-392_com.microsoft.rdc.androidx-edit_copy_429x1008.jpg
Screenshot_2024-01-12-07-44-51-392_com.microsoft.rdc.androidx-edit_copy_429x1008.jpg (241.99 KiB) Viewed 100928 times

Re: Alarm, nothing found

Posted: Fri Jan 12, 2024 2:16 pm
by louyo
In this camera, I only look for people, no static analysis.
Do not use mainstream, AI just reduces it. Do away with analysis when it works the way you want.
Note that my CP/AI is on another computer, 192.168.50.17.
cancel on unicorn ensures that it will examine the whole image.
What are you looking for in that camera, another car in that spot? Car entering the spot?

Re: Alarm, nothing found

Posted: Fri Jan 12, 2024 4:27 pm
by mpl
im lookig for everything in the spot.

Image

When i open the alert with "CTRL" iv got the Status. In the Status are 2 Objects dedectet, but the Alert says "Nothing found" ?! WHy?

Code: Select all

[
	{
		"api":"objects",
		"found":{
			"message":"Found car,
			car",
			"count":2,
			"predictions":[
				{
					"confidence":0.8828125,
					"label":"car",
					"x_min":211,
					"y_min":58,
					"x_max":837,
					"y_max":560}
				,
				{
					"confidence":0.56640625,
					"label":"car",
					"x_min":106,
					"y_min":44,
					"x_max":211,
					"y_max":111}
				]
			,
			"success":true,
			"processMs":1052,
			"inferenceMs":1036,
			"code":200,
			"command":"detect",
			"moduleId":"ObjectDetectionCoral",
			"executionProvider":"CPU",
			"canUseGPU":false,
			"analysisRoundTripMs":1059,
			"processedBy":"localhost"}
		}
	]


Re: Alarm, nothing found

Posted: Fri Jan 12, 2024 5:56 pm
by TimG
MPL,

1. You only put something in "To cancel" if you want CPAI to keep trying to identify things after the initial identification.
2. You would then increase the number in "+real-time images" to maybe 10+ so it has more images to check.
3. Your "To cancel" shows "Nothing found:0". That :0 is used to prevent other CPAI modules from running, and it isn't normally used in "To cancel" (Unless you know something we don't). If you put ANY word in "To cancel" it will keep checking, so use something that you will NOT see - Louyo has put "unicorn" but I have "boat" as I am in the middle of my country. Put something you won't see and don't use :0 as it may do something unexpected. Also do not have a space there as that may also stop it working. Use one single word.
4. Custom models is where the :0 usually works. In my working example below "alpr:0" prevents that model working on this camera, and then the camera does use "ipcam-combined", and "faces".

Screenshot 2024-01-12 174936.png
Screenshot 2024-01-12 174936.png (119.31 KiB) Viewed 99976 times

Re: Alarm, nothing found

Posted: Fri Jan 12, 2024 6:00 pm
by TimG
Also the asterisk * on your DAT file shows an identification so you are close.

Re: Alarm, nothing found

Posted: Sat Jan 13, 2024 6:34 pm
by mpl
thanks, it works now :)

what means "analyze on each:" ? iv selected now 333ms. is this the time which my CPAI analyzer need to analyze a picture? or can i say with this parameter that each 333ms one picture will be make and analyzed until "+ real-time images" is reached?

sorry for my bad english im from germany :D

Re: Alarm, nothing found

Posted: Sat Jan 13, 2024 6:55 pm
by TimG
Excellent news.

"Analyze one each" is the time it will take to analyse one image. Have a look in your log to see how long it takes and use that time. So "Analyse one image every 250ms" should make it more clear. Mine is set to 250ms.

Now if you are using "unicorn" in "To cancel", and you have 20 "+real-time images" you know it will take 250ms x 20 = 5 seconds to complete the identification before it can trigger an Alert. Only becomes a problem if you put 999 extra images.

Re: Alarm, nothing found

Posted: Sat Jan 13, 2024 7:18 pm
by mpl
i have choose "boat" to cancel. My daughter has a 1m plush unicorn :D this could be a problem in front of the cam :D

My USB Coral need 800-1300ms for the identification. Which hardware do you use for the idenification?

Re: Alarm, nothing found

Posted: Sat Jan 13, 2024 7:27 pm
by TimG
I'm using a Nvidia GTX1650 in GPU mode to speed up CPAI identification. Recommended by MikeLud and quite fast:

Screenshot 2024-01-13 192454.png
Screenshot 2024-01-13 192454.png (143.09 KiB) Viewed 98065 times

Re: Alarm, nothing found

Posted: Sat Jan 13, 2024 8:14 pm
by mpl
*want too* :x the electricity costs in germany are very high :( one day when the nuclear power plant a reactivated and the electricity costs fall down i will buy a GPU for the AI :)