This repository was archived by the owner on Apr 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Separate zones for one camera #156
Copy link
Copy link
Open
Labels
Description
I'd like to be able to configure separate zones for the same camera. For instance, if I have a camera which sees the driveway and the garden, I'd like to be able to execute different actions based on what zone and what object has been detected.
It could look something like this:
"Cameras": [
{
"Name": "BackDoor",
"Types": [ "Person, Car" ],
"Threshold": 30,
"Zones": [
1: {
"Start": { "X": 0, "Y": 0 },
"End": { "X": 720, "Y": 1080},
"Mode": Intersect (optional),
"Types": [ "Car" ] (optional)
},
2: {
"Start": { "X": 721, "Y": 0 },
"End": { "X": 1920, "Y": 1080},
"Mode": Contains (optional),
"Types": [ "Person" ] (optional)
}
]
And the notifier would add the zone where the object was detected:
{
"camera": "BackDoor",
"foundTypes": [
"Car"
],
"predictions": [
{
"Label": "car",
"Confidence": 67.89117,
"MinX": 238,
"MinY": 420,
"MaxX": 804,
"MaxY": 844,
"SizeX": 566,
"SizeY": 424,
"Zone": 1
}
],
"message": "Motion detected on BackDoor Zone 1\n\nDetected 1 objects:\nCar"
}
Reactions are currently unavailable