mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-20 03:56:43 +03:00
Compare commits
5 Commits
2339b5f35d
...
303ebff4e3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
303ebff4e3 | ||
|
|
3af47d63ea | ||
|
|
b68ddc39c4 | ||
|
|
136836fe86 | ||
|
|
894f9d06dd |
@ -810,6 +810,8 @@ cameras:
|
|||||||
# NOTE: This must be different than any camera names, but can match with another zone on another
|
# NOTE: This must be different than any camera names, but can match with another zone on another
|
||||||
# camera.
|
# camera.
|
||||||
front_steps:
|
front_steps:
|
||||||
|
# Optional: A friendly name or descriptive text for the zones
|
||||||
|
friendly_name: ""
|
||||||
# Required: List of x,y coordinates to define the polygon of the zone.
|
# Required: List of x,y coordinates to define the polygon of the zone.
|
||||||
# NOTE: Presence in a zone is evaluated only based on the bottom center of the objects bounding box.
|
# NOTE: Presence in a zone is evaluated only based on the bottom center of the objects bounding box.
|
||||||
coordinates: 0.033,0.306,0.324,0.138,0.439,0.185,0.042,0.428
|
coordinates: 0.033,0.306,0.324,0.138,0.439,0.185,0.042,0.428
|
||||||
|
|||||||
@ -16,7 +16,15 @@ To create a zone, follow [the steps for a "Motion mask"](masks.md), but use the
|
|||||||
|
|
||||||
### Restricting alerts and detections to specific zones
|
### Restricting alerts and detections to specific zones
|
||||||
|
|
||||||
Often you will only want alerts to be created when an object enters areas of interest. This is done using zones along with setting required_zones. Let's say you only want to have an alert created when an object enters your entire_yard zone, the config would be:
|
You can flexibly define alert or detection zones, allowing you to focus on what matters most.
|
||||||
|
|
||||||
|
Often you will only want alerts to be created when an object enters areas of interest. This is done using zones along with setting review classification.
|
||||||
|
|
||||||
|
For example, you only want to have an alert created when an object enters your `Entire Yard` zone. Simply go to the `Camera → Review → Alerts` settings, check the `Entire Yard` zone you just created, and save the changes.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
the config would be:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
cameras:
|
cameras:
|
||||||
@ -27,10 +35,13 @@ cameras:
|
|||||||
- entire_yard
|
- entire_yard
|
||||||
zones:
|
zones:
|
||||||
entire_yard:
|
entire_yard:
|
||||||
|
friendly_name: Entire yard🏡 # You can use characters from any language, including emojis.
|
||||||
coordinates: ...
|
coordinates: ...
|
||||||
```
|
```
|
||||||
|
|
||||||
You may also want to filter detections to only be created when an object enters a secondary area of interest. This is done using zones along with setting required_zones. Let's say you want alerts when an object enters the inner area of the yard but detections when an object enters the edge of the yard, the config would be
|
You may also want to filter detections to only be created when an object enters a secondary area of interest. This is done using zones along with setting required_zones. Let's say you want alerts when an object enters the inner area of the yard but detections when an object enters the edge of the yard. Simply go to the `Detections` option on the previous page, check `Limit detections to specific zones`, and then select the desired zones.
|
||||||
|
|
||||||
|
the config would be
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
cameras:
|
cameras:
|
||||||
@ -44,8 +55,10 @@ cameras:
|
|||||||
- edge_yard
|
- edge_yard
|
||||||
zones:
|
zones:
|
||||||
edge_yard:
|
edge_yard:
|
||||||
|
friendly_name: Edge yard🚗 # You can use characters from any language, including emojis.
|
||||||
coordinates: ...
|
coordinates: ...
|
||||||
inner_yard:
|
inner_yard:
|
||||||
|
friendly_name: Inner yard🪵 # You can use characters from any language, including emojis.
|
||||||
coordinates: ...
|
coordinates: ...
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -59,6 +72,7 @@ cameras:
|
|||||||
- entire_yard
|
- entire_yard
|
||||||
zones:
|
zones:
|
||||||
entire_yard:
|
entire_yard:
|
||||||
|
friendly_name: Entire yard🏡
|
||||||
coordinates: ...
|
coordinates: ...
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -82,6 +96,8 @@ cameras:
|
|||||||
|
|
||||||
Only car objects can trigger the `front_yard_street` zone and only person can trigger the `entire_yard`. Objects will be tracked for any `person` that enter anywhere in the yard, and for cars only if they enter the street.
|
Only car objects can trigger the `front_yard_street` zone and only person can trigger the `entire_yard`. Objects will be tracked for any `person` that enter anywhere in the yard, and for cars only if they enter the street.
|
||||||
|
|
||||||
|
Of course, you can also manually select the desired tracked Object when editing zones on the `Masks / Zones` page.
|
||||||
|
|
||||||
### Zone Loitering
|
### Zone Loitering
|
||||||
|
|
||||||
Sometimes objects are expected to be passing through a zone, but an object loitering in an area is unexpected. Zones can be configured to have a minimum loitering time after which the object will be considered in the zone.
|
Sometimes objects are expected to be passing through a zone, but an object loitering in an area is unexpected. Zones can be configured to have a minimum loitering time after which the object will be considered in the zone.
|
||||||
@ -89,6 +105,7 @@ Sometimes objects are expected to be passing through a zone, but an object loite
|
|||||||
:::note
|
:::note
|
||||||
|
|
||||||
When using loitering zones, a review item will behave in the following way:
|
When using loitering zones, a review item will behave in the following way:
|
||||||
|
|
||||||
- When a person is in a loitering zone, the review item will remain active until the person leaves the loitering zone, regardless of if they are stationary.
|
- When a person is in a loitering zone, the review item will remain active until the person leaves the loitering zone, regardless of if they are stationary.
|
||||||
- When any other object is in a loitering zone, the review item will remain active until the loitering time is met. Then if the object is stationary the review item will end.
|
- When any other object is in a loitering zone, the review item will remain active until the loitering time is met. Then if the object is stationary the review item will end.
|
||||||
|
|
||||||
|
|||||||
BIN
docs/static/img/zones-review.png
vendored
Normal file
BIN
docs/static/img/zones-review.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 108 KiB |
@ -270,7 +270,7 @@ export function PolygonCanvas({
|
|||||||
const activePolygon = updatedPolygons[activePolygonIndex];
|
const activePolygon = updatedPolygons[activePolygonIndex];
|
||||||
|
|
||||||
// add default points order for already completed polygons
|
// add default points order for already completed polygons
|
||||||
if (!activePolygon.pointsOrder && activePolygon.isFinished) {
|
if (!activePolygon?.pointsOrder && activePolygon?.isFinished) {
|
||||||
updatedPolygons[activePolygonIndex] = {
|
updatedPolygons[activePolygonIndex] = {
|
||||||
...activePolygon,
|
...activePolygon,
|
||||||
pointsOrder: activePolygon.points.map((_, index) => index),
|
pointsOrder: activePolygon.points.map((_, index) => index),
|
||||||
|
|||||||
@ -155,7 +155,6 @@ export default function ZoneEditPane({
|
|||||||
"masksAndZones.form.zoneName.error.mustBeAtLeastTwoCharacters",
|
"masksAndZones.form.zoneName.error.mustBeAtLeastTwoCharacters",
|
||||||
),
|
),
|
||||||
})
|
})
|
||||||
.transform((val: string) => val.trim().replace(/\s+/g, "_"))
|
|
||||||
.refine(
|
.refine(
|
||||||
(value: string) => {
|
(value: string) => {
|
||||||
return !cameras.map((cam) => cam.name).includes(value);
|
return !cameras.map((cam) => cam.name).includes(value);
|
||||||
@ -271,7 +270,7 @@ export default function ZoneEditPane({
|
|||||||
mode: "onBlur",
|
mode: "onBlur",
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
name: polygon?.name ?? "",
|
name: polygon?.name ?? "",
|
||||||
friendly_name: polygon?.friendly_name ?? "",
|
friendly_name: polygon?.friendly_name ?? polygon?.name ?? "",
|
||||||
inertia:
|
inertia:
|
||||||
polygon?.camera &&
|
polygon?.camera &&
|
||||||
polygon?.name &&
|
polygon?.name &&
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user