Basically in BI, take a snapshot from the camera you want to add a mask to. Then open that in Paint.net (free software). E.g.
View attachment 67919
Click "add new layer"
Increase the brush width to say 20 to 40 (if you have a lot to mask, obviously the wider the brush the better).
Click on the Colors tab on the screen and "More". Select a color (say dark blue), then select Opacity and choose say 30.
Color in the area you want the AITool/Deepstack to ignore with the brush.
Once done, click "go to layer below", then "Delete layer".
All you should be left with is something like this, which you then save as a "png" file into your "cameras" folder where your AITool is saved, and call it the same as the camera name in BI (you'll also see a .txt document file in that same folder with the same name).
View attachment 67920
When you open up AITools, if something is detected and it's in a masked area, the tool will show it. Eg., there is a lamp post across the street that Deepstack always sees as a person for some reason, and I want to mask that plus the road given I get motion triggers for car lights on my driveway that cause a motion trigger. So when AITools gets the picture from BI and then Deepstack analyses it and sends it back to AITools, if what Deepstack "sees" is in a masked area, it doesn't trigger my cameras even if it is listed as a "person" but in a masked area.
In the below shot on the left you can see it detects a "person", which in this case is the "4" in the time for some reason. But because I have that area masked it won't cause a trigger. If you look closely you can see in the middle pic below I've clicked "Show mask" and you'll notice I have masked the upper part of the picture from the edge of the driveway. I.e., see how the grass is a shade darker as is the sunlight on the street, I've used a grey color with an opacity of around 25 IIRC and masked the entire upper area.
I also copied the snip of what was left from Paint.net that I saved (the png snip I took doesn't perfectly line up to the snips from the AITool of the camera feed, but that gives you an idea of what it looks like after you delete the bottom layer).
View attachment 67921View attachment 67922View attachment 67924