Skip to content

NVR with realtime local object detection for IP cameras

Merge remote-tracking branch 'origin/master' into dev

Blake Blackshear32875fb4cc3f
diff --cc docs/docs/configuration/genai.md
index 957922dbdd,6e1d42c344..55b61f9f3c
--- a/docs/docs/configuration/genai.md
+++ b/docs/docs/configuration/genai.md
@@@ -15,24 -15,23 +15,23 @@@ To use Generative AI, you must define
```yaml
genai:
- enabled: True
provider: gemini
api_key: "{FRIGATE_GEMINI_API_KEY}"
- model: gemini-1.5-flash
+ model: gemini-2.0-flash
cameras:
front_camera:
- objects:
genai:
- enabled: True # <- enable GenAI for your front camera
- use_snapshot: True
- objects:
- - person
- required_zones:
- - steps
+ enabled: True # <- enable GenAI for your front camera
+ use_snapshot: True
+ objects:
+ - person
+ required_zones:
+ - steps
indoor_camera:
- genai:
- enabled: False # <- disable GenAI for your indoor camera
+ objects:
+ genai:
+ enabled: False # <- disable GenAI for your indoor camera
```
By default, descriptions will be generated for all tracked objects and all zones. But you can also optionally specify `objects` and `required_zones` to only generate descriptions for certain tracked objects or zones.
@@@ -95,9 -93,10 +94,9 @@@ To start using Gemini, you must first g
```yaml
genai:
- enabled: True
provider: gemini
api_key: "{FRIGATE_GEMINI_API_KEY}"
- model: gemini-1.5-flash
+ model: gemini-2.0-flash
```
:::note
@@@ -149,8 -149,10 +148,9 @@@ To start using Azure OpenAI, you must f
```yaml
genai:
- enabled: True
provider: azure_openai
- base_url: https://example-endpoint.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2023-03-15-preview
+ base_url: https://instance.cognitiveservices.azure.com/openai/responses?api-version=2025-04-01-preview
+ model: gpt-5-mini
api_key: "{FRIGATE_OPENAI_API_KEY}"
```
@@@ -194,15 -196,14 +194,15 @@@ genai
provider: ollama
base_url: http://localhost:11434
model: llava
+
+objects:
- prompt: "Analyze the {label} in these images from the {camera} security camera. Focus on the actions, behavior, and potential intent of the {label}, rather than just describing its appearance."
- object_prompts:
- person: "Examine the main person in these images. What are they doing and what might their actions suggest about their intent (e.g., approaching a door, leaving an area, standing still)? Do not describe the surroundings or static details."
- car: "Observe the primary vehicle in these images. Focus on its movement, direction, or purpose (e.g., parking, approaching, circling). If it's a delivery vehicle, mention the company."
+ prompt: "Analyze the {label} in these images from the {camera} security camera. Focus on the actions, behavior, and potential intent of the {label}, rather than just describing its appearance."
+ object_prompts:
+ person: "Examine the main person in these images. What are they doing and what might their actions suggest about their intent (e.g., approaching a door, leaving an area, standing still)? Do not describe the surroundings or static details."
+ car: "Observe the primary vehicle in these images. Focus on its movement, direction, or purpose (e.g., parking, approaching, circling). If it's a delivery vehicle, mention the company."
```
-Prompts can also be overriden at the camera level to provide a more detailed prompt to the model about your specific camera, if you desire.
+Prompts can also be overridden at the camera level to provide a more detailed prompt to the model about your specific camera, if you desire.
```yaml
cameras:
diff --cc docs/docs/configuration/live.md
index 79802b3713,11339d5848..6f764ac9d5
--- a/docs/docs/configuration/live.md
+++ b/docs/docs/configuration/live.md
@@@ -174,10 -174,8 +174,10 @@@ For devices that support two way talk,
- Ensure you access Frigate via https (may require [opening port 8971](/frigate/installation/#ports)).
- For the Home Assistant Frigate card, [follow the docs](http://card.camera/#/usage/2-way-audio) for the correct source.
- To use the Reolink Doorbell with two way talk, you should use the [recommended Reolink configuration](/configuration/camera_specific#reolink-doorbell)
+ To use the Reolink Doorbell with two way talk, you should use the [recommended Reolink configuration](/configuration/camera_specific#reolink-cameras)
+As a starting point to check compatibility for your camera, view the list of cameras supported for two-way talk on the [go2rtc repository](https://github.com/AlexxIT/go2rtc?tab=readme-ov-file#two-way-audio). For cameras in the category `ONVIF Profile T`, you can use the [ONVIF Conformant Products Database](https://www.onvif.org/conformant-products/)'s FeatureList to check for the presence of `AudioOutput`. A camera that supports `ONVIF Profile T` _usually_ supports this, but due to inconsistent support, a camera that explicitly lists this feature may still not work. If no entry for your camera exists on the database, it is recommended not to buy it or to consult with the manufacturer's support on the feature availability.
+
### Streaming options on camera group dashboards
Frigate provides a dialog in the Camera Group Edit pane with several options for streaming on a camera group's dashboard. These settings are _per device_ and are saved in your device's local storage.
diff --cc frigate/api/export.py
index 2fbb891c20,44ec05c15b..42f0828463
--- a/frigate/api/export.py
+++ b/frigate/api/export.py
@@@ -12,21 -12,11 +13,21 @@@ from pathvalidate import sanitize_filep
from peewee import DoesNotExist
from playhouse.shortcuts import model_to_dict
-from frigate.api.auth import require_role
+from frigate.api.auth import (
+ get_allowed_cameras_for_filter,
+ require_camera_access,
+ require_role,
+)
from frigate.api.defs.request.export_recordings_body import ExportRecordingsBody
from frigate.api.defs.request.export_rename_body import ExportRenameBody
+from frigate.api.defs.response.export_response import (
+ ExportModel,
+ ExportsResponse,
+ StartExportResponse,
+)
+from frigate.api.defs.response.generic_response import GenericResponse
from frigate.api.defs.tags import Tags
- from frigate.const import EXPORT_DIR
+ from frigate.const import CLIPS_DIR, EXPORT_DIR
from frigate.models import Export, Previews, Recordings
from frigate.record.export import (
PlaybackFactorEnum,