To solve that problem, I wonder can the AI Tool be updated to also add something similar to the "Confidence limit" but a "Size limit" (min & max, maybe a per Object value) since we already have the coordinates of each object detected it should be easy to get that value. Therefore, it will only give a positive result if the "size is > min" but "< than max". Then you can make sure it doesn't give a positive result for "small" people in the background.
And if you wanted to go another level, you could have a new value (maybe called Zone like Blue Iris), could be just something simple first like a text field with the coordinates that you want to monitor and then only give a positive result if that object is located in it, maybe if its only partly in it, or maybe give a % of the object that needs to be located inside in that area. Future bonus feature would be a UI drag box to create the coordinates to monitor using an existing image.
If we were to add these 2 new features then maybe turn the Object checkboxes into a list that you add each monitored Object (like how adding cameras work) and then add the Confidence limit, size limit & maybe the Zone coordinates too so it's all per object. Id be ok for Zone to be per Camera and not per Object. But ideally it could be both and it can fallback to the Camera Zone value if its not specified on the object. Then we can do: if there is a car spotted here or a person spotted there then give a positive result. We could also then monitor for 2 car objects in different areas of different sizes with different confidence limits so having it as a list will make it more flexible.
And since my brain is in overdrive thinking about making this awesome tool even better, we could add a tag field to each Object and send them in the trigger urls as a parameter (e.g:
http://myip?foo=bar&tags={tags}
) and maybe in the Telegram alerts. Then I could do something in Home Assistant based on the exact type of alert.
Cooldown, Trigger URLs & Send alert images to Telegram values could be also be per Object and fallback to the parent camera values but we just need to be careful not to spam the actions so this would be lower priority (for me). But having a value per Object to opt in to Telegram alerts would be nice as maybe I want to call the trigger URL to tell Blue Iris to record if its any of my Objects but I only want Telegram alerts for a person object.
BTW,
@GentlePumpkin I am really loving the tool. It has helped a lot with reducing my false positives so a big thanks for that. I might jump in and help with the code (c# dev myself) if I get the free time.