Validating a saved config resolved {FRIGATE_*} placeholders against the environment_vars block from startup instead of the block being saved, so a newly added variable was reported as undefined and a removed one passed validation and then failed at the next start. The go2rtc stream check had the same problem and also skipped any source whose text was unchanged, even when its placeholder value changed. Config parses that don't install the block now resolve against the candidate's own environment_vars, and the go2rtc stream check does the same and only skips an unchanged source when it still resolves to the same value.
* Raise a rate limit error when Frigate+ returns 429
The shared session's urllib3 Retry honored Retry-After by default, so a
429 on a GET or PUT blocked the calling thread for up to ten times the
requested wait (and fell back to exponential backoff for Retry-After: 0)
before failing with a generic error.
Stop honoring Retry-After in urllib3 and raise PlusRateLimitError with
the parsed wait instead. Retry-After is parsed as either delay-seconds or
an HTTP date per RFC 9110. While the wait is in effect, further requests
are refused locally rather than sent to Frigate+ again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Don't save a failed Frigate+ model download as the model
The model download never checked the response status, so an error body
(a 429 from the download host, for example) was written to the model
cache. Only the file's existence is checked on later starts, so the
error page was loaded as the model from then on.
Raise a config error instead of writing the file, and explain a Frigate+
rate limit at startup with how long to wait when it is known.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Report a rate limited Frigate+ key validation
A 429 while validating the API key was reported as "unreachable". Add a
rate_limited status that records the Retry-After wait, skip asking the
server again while that wait is in effect, and include the remaining
seconds in the /plus/validate response.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Return 429 from the API when Frigate+ is rate limiting
Submitting an event, frame, or false positive reported a rate limit as a
generic 400 upload error, and listing models failed with a 500. Return a
429 with the wait in retry_after and the Retry-After header so the UI can
tell the user how long to wait.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Show Frigate+ rate limits in the UI
Tell the user Frigate+ is rate limiting requests, and how long to wait
when the server said, instead of a generic failure:
- submitting a tracked object or false positive (explore and the review
dialog), a frame from the player, or a frame from tracking details
- validating the API key in Frigate+ settings
- the Frigate+ model list in detection model settings and the setup
wizard
The frame upload from the player also showed failures with a success
toast, and since axios rejects on error statuses it never reached that
branch at all, so failed uploads showed nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Let a failed Frigate+ annotation be retried
send_to_plus saved plus_id as soon as the image uploaded, so when the
annotation then failed (a rate limit, for example) every retry was
refused with "Already submitted to plus" and the image stayed without
its annotation.
Keep the uploaded image id in the event's data until the annotation
succeeds, and only then set plus_id. A retry reuses that image instead
of uploading it again, and since plus_id is still unset the UI already
offers the retry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep the longest Frigate+ wait when replies overlap
Requests to Frigate+ run on several threads. When two were refused at
once, a reply with a shorter Retry-After that was handled last replaced
the longer wait, so requests were sent again before Frigate+ allowed it.
Only move the deadline later, under a lock.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Include days in Frigate+ rate limit waits
formatSecondsToDuration only formats hours, minutes and seconds, so a
wait of a day or more lost its days: 90000 seconds read as "1 hour".
Format the wait from whole days down instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep the Frigate+ rate limit lock out of the client
The config holds the Frigate+ client and is pickled to start worker
processes from the forkserver. The lock added to PlusApi can't be
pickled, so worker startup failed with "cannot pickle '_thread.lock'
object", with or without a Frigate+ key.
Use a module level lock instead. Rate limit state is per process, so one
lock per process is all that's needed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: frigate-agents[bot] <356735177+frigate-agents[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* limit config, stream, stats, and metrics data for non-admin users
Non-admin users received data they never use in the UI: credentials embedded in camera paths, ffmpeg args, and go2rtc settings that the masking regex missed, process command lines over the websocket stats topic, every camera's metrics, and custom classification names for objects their cameras don't track.
- /config drops input paths, ffmpeg args, ffmpeg_cmds, webui_url, genai base_url and provider_options, and go2rtc sections other than stream names and webrtc for non-admins, and redacts profile notification emails
- /go2rtc/streams returns only producer medias to non-admins
- websocket and REST stats share one helper that strips cmdline and bandwidth_usages for non-admins
- /metrics requires admin
- custom classification categories only attach to labels the allowed cameras track
* trim go2rtc stream metadata types to producer medias
* use server-generated tool call ids and drop remote images from chat messages
Chat write-tool approvals were keyed by the provider's tool call id, but Gemini uses the function name as the id and Ollama falls back to call_0, call_1, so a later or repeated write call in the same request reused an earlier approval and ran without a prompt. Each tool call the model returns now gets a unique server-generated id, and the Gemini plugin resolves a tool result's function name from the assistant's tool calls instead of from the id. Client message content now keeps only text parts and data:image/ image parts, so OpenAI-compatible servers and llama-server are never handed a remote URL to fetch.
* remove client image filter from chat messages
* deny proxy users whose role can't be resolved instead of falling back to viewer
Proxy role resolution fell back to viewer, which grants every camera, in several accidental cases. A default_role that was misspelled, null, or named a deleted role became viewer. A role_map group whose mapped role had been deleted (for example, emptied by a camera delete) got the default role. Direct role headers were lowercased but compared to case-sensitive role names, so a custom role like Garage never matched, and a custom role named Admin resolved to the built-in admin.
- match header values, default_role and role_map roles against configured roles regardless of case
- deny when default_role or a matched role_map role doesn't exist, and warn at config load for an unknown default_role
- reserve admin and viewer in every casing and reject role names that differ only by case, in config validation and the Create Role dialog
- show a null default_role as none in the settings widget
* normalize a null proxy default_role to none
/config drops null fields, so the settings form filled in viewer for a null default_role while /auth denied those users. The config now stores a null default_role as none, which the API returns and the widget shows, and the unreachable null branch in the widget is removed.
The custom export validator tokenized args on any whitespace, but the export command was built by splitting on single spaces, so repeated spaces, tabs, or newlines produced a different argv than the one that was validated. The exporter now rejoins custom args with single spaces so ffmpeg receives exactly the tokens the validator checked.
* match preview frames to the exact camera
Current-hour preview frames were selected with a "preview_{camera}-" prefix match, so a camera whose name extends another with "-" (front and front-door, cam and cam-2) had its frames included in the other camera's frame listing, preview GIF and MP4, and preview export. The frames listing, the GIF and MP4 routes, and the preview export now filter with is_camera_preview_frame.
* start preview frame tests ahead of now
Camera delete removed RECORD_DIR/<camera> and CLIPS_DIR/<camera>, but recordings live under RECORD_DIR/<date>/<hour>/<camera>, so the camera's segments stayed on disk after their rows were deleted and nothing reclaimed them. Neither path holds per-camera data, so they only matched when a camera name collided with something else, like a classification model's dataset, the thumbs or faces folders, or a date-named recordings folder. Delete now removes the <camera> and <camera>@sub folders under each recordings hour, plus the camera's thumbs, previews, lpr, and triggers folders.
* keep event cleanup running and fix storage usage keys
- Event cleanup ran with no exception handling inside its loop, so one error (a camera added or removed while it iterated the shared cameras dict, a DB error, a thumbnail unlink failure) ended event and snapshot retention until restart. Each cycle is now guarded, camera iterations use a snapshot, and thumbnail unlink errors are caught
- Camera keys were captured once at startup, so a camera added at runtime also matched the removed-camera branch and its events could expire early under the global retention. The keys are refreshed each cycle and the removed-camera label cache resets when they change
- Clip expiry had no has_clip filter and redid every past expiration each cycle. The queries now skip events already expired, and the dead clip unlink block is removed
- Storage usage was keyed by friendly name, so cameras sharing one merged into a single row. It is keyed by camera id and the storage graph resolves the display name
* docstring
- Keep the Birdseye restream flag from startup so enabling restream at runtime no longer writes a buffer that was never created and crashes the output loop
- Clear a runtime-disabled camera's Birdseye state once instead of re-arming it and forcing a render on every frame
- Advance the Birdseye output time after an idle heartbeat so it sends at the configured rate
- Keep the published replay camera in each config swapped in by a settings save, and send its remove on stop, so a save during a replay no longer leaves the replay camera running after stop
- Read the live config in the debug replay auto-stop watchdog
- Skip publishing the replay camera when the session was stopped during startup
- Rename a camera named with the reserved _replay_ prefix in the camera wizard and clone dialog, since debug replay deletes that camera's data
- Update the export job manager's config on every call so exports follow config saves
- Catch all httpx errors in the Ollama plugin so a dropped connection no longer ends the embeddings thread
- Strip only a trailing /v1 from the llama.cpp base_url
- Cap the timestamp top-up loop in state example generation, which looped forever on zero-length review items
- Run state example generation in a thread under the example collection lock
- Stage example frames in a system temp dir so a leftover dataset/temp folder can't become a training class
- Report face training success only after the image is written, and return 404 when the event has no face attributes or snapshot
- Move VLM watch setup inside the runner's try block, build the runner before claiming the watch slot, bound max_duration_minutes, and reject non-string labels and zones from the chat tool
GotoPreset, ContinuousMove and AbsoluteMove had no error handling, so a fault left the camera marked active and the exception ended the autotracker's maintenance thread or that camera's move queue. They now log and clear the active flag like the other movers. Init also raised a KeyError when GetVideoSources returned an empty list, because the token was only set on a non-empty result or an exception. It now defaults to None.
A download that raised or a lock that timed out ended the downloader thread before download_complete was set, so every wait_for_download() caller blocked forever and the file stayed marked as downloading. The thread now always sets download_complete and stops its requestor, and a lock failure reports the download failure notice and error state like a failed download.
* hand renewed tls keys to the runtime user and time out the go2rtc healthcheck
- Renewed certbot keys were owned by root with mode 0600, so the non-root nginx couldn't read them and every certsync reload failed until the cert expired. certsync now chowns a mounted key to the runtime user before each reload, under the same conditions as the nginx startup handover
- The go2rtc healthcheck curl had no total timeout, so a go2rtc that accepted connections but never answered blocked the check forever. It now gives up after 15 s
- The TLS and non-root docs now tell read-only mount users to set the key's group and group read, which certbot keeps on renewal
* stop chowning mounted tls keys and check they're readable instead
The root chown of a mounted key followed symlinks, so a runtime user that could write the cert folder could have any root file handed to it, and the chown never covered keys renewed after startup. Frigate no longer changes ownership of mounted certs. nginx startup logs an error naming the gid when the runtime user can't read the key, and the TLS docs have users grant group read once on the host, which certbot keeps on renewal. This also drops the certsync handover added earlier on this branch.
* skip the tls key check when tls is disabled and tighten its wording
* check fullchain.pem and folder access in the tls startup check
* bound per-request work in recordings, image, password and motion search endpoints
- /recordings/unavailable walked the requested span one scale bucket at a time on the event loop, so a huge or non-finite range hung the whole API, including /auth. It now walks the gaps between recordings and rejects non-finite bounds.
- latest, mjpeg, event snapshot and recording snapshot heights are capped at the source frame height, and recording frame grabs time out after 30 s.
- Password verify and hash run in a worker thread, so a password change no longer freezes the API while PBKDF2 runs.
- Motion search collected every decoded frame of a run before detecting, up to about 190 MB per run. Frames now stream through detection, and keyframe mode stops reading at the probed keyframe count before falling back to cadence.
* keep password hashing on the event loop
* run recording deletion off the event loop
* add default filters for labels tracked at runtime
Adding a tracked label through Debug Replay or a profile left it without an object filter, so the first detection raised a KeyError in the false positive check and killed detected_frames_processor, stopping detection on every camera. Runtime objects updates now create a default filter for each tracked label that lacks one, the same as startup.
* fix nginx header inheritance and ws proxy path
Locations that include auth_request.conf declare their own add_header lines, so nginx dropped the server-level nosniff and Referrer-Policy headers on /recordings/, /exports/, /ws, /live/*, and several /api/ routes. auth_request.conf now includes security_headers.conf itself, and the duplicate includes in /vod/, /stream/, /clips/, and /api/ are removed. The /ws proxy_pass no longer carries a trailing slash, so nginx forwards the original path instead of rewriting /ws to /, which closes the path normalization gap gixy flagged.
* don't end push notification titles with "detected in" when there are no zones
* include audio labels in push notification titles
* use a plain anchor for the camera webui_url link
react-router 7.18.6 throws during render when a Link target looks like a scheme URL but isn't scheme://, so a malformed webui_url such as http:/192.168.1.5 (which the camera form accepts) crashed the object debug view into the route error boundary. A plain anchor renders any value, and a URL with a leading space no longer becomes a relative link.
* catch all OSErrors when moving the preview restart cache
* add motion summary timeline to motion review and history
The summary strip draws motion as a canvas layer, with each pixel row's opacity set by the mean motion value over its time, so the full day is visible next to the 30s timeline. Dragging now converts strip pixels to timeline pixels directly instead of going through the drag box height, which no longer matches the box once it has borders. The strip is wider on mobile, and the drag box style is shared with the alerts and detections strips.
* hide summary timeline when motion only switch is on
* drag summary timeline from anywhere and keep a minimum box size
The drag box shrank to a few pixels when the timeline was zoomed in, and tapping the summary timeline on mobile read touches[0] on touchend, where the list is always empty. The box now has a minimum height centered on the visible range, and input goes through pointer events: a tap outside the box jumps there, and a press outside the box that moves snaps the box under the pointer and drags it.
* Fix GenAI structured response not handling optional fields correctly
* allow export thumbnails for camera-restricted roles
Export thumbnails under /clips/export/ weren't classified by media auth, so roles with a camera allow-list got a 403 on every thumbnail. The thumbnail now resolves to its export's camera through a thumb_path lookup, and the camera access check applies as usual.
* load i18n locales from the base url
The locale load path was relative, so any URL with a trailing slash or more than one segment (like /admin/) fetched locales from under that path, got index.html back from the nginx fallback, and broke every UI string. Locales now load from the same base url as the API, which also covers HA ingress and FRIGATE_BASE_PATH.
* make storage retained-segment test able to fail
The old test put the retained segments after 59 older unretained ones, so cleanup freed its hourly target and stopped before it ever reached them. It passed even with the retention check removed. Retained segments now come first, and cleanup needs every unretained segment after them, so it has to skip the retained ones to finish.
---------
Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
* don't crash review maintainer when a manual event ends with no active segment
The review maintainer read the label of every manual event message before checking its state, so an end message, which carries no label, raised a KeyError and killed the review process when the camera had no active segment. This happened when a recordings or enabled toggle, a completed manual event, or audio closed the segment of a still-open indefinite event, and on every plate expiry on dedicated LPR cameras with detections disabled. With the process dead, no review items were created and alert/detection-only retention deleted all new recordings until restart. End messages with no active segment now drop the event from the indefinite events and are otherwise ignored.
* Update the default timeout for detection subscriber to avoid blocking indefinitely
* run embeddings requests off the api event loop
set_description, regenerate_review_description, and the chat semantic search tools called the embeddings requestor directly from async handlers, so the API event loop waited on the embeddings process with no timeout. In normal operation the wait is short (about 80 to 140 ms of text embedding with Jina V1 on CPU, and only queue time for review regeneration), so this is mostly defensive. The cases it guards against are a request sent while the embeddings process is still downloading or loading models, which froze the whole UI until it finished, and the embeddings process dying with a request in flight, which left the API unresponsive until Frigate restarted. The requestor calls now run in asyncio.to_thread, matching the other blocking calls in the API.
* Handle other fields for context size from api providers
* fix stream checks missing non-aac audio
The ffprobe API never asked ffprobe for codec_type, so the stream checks could only spot audio and video by codec name. G.711, Opus, and other non-AAC audio showed as no audio, and H.265 detect streams showed an unknown resolution. ffprobe_stream now requests codec_type, and the stream check matches tracks on it alone.
* fix timezone-dependent http tests
The devcontainer mounts the host's /etc/localtime over zoneinfo/Etc/UTC, so the API's ZoneInfo("UTC") used the host's local zone and the recordings summary and event time_range tests failed at any hour. The review summary tests also built their expected day key from the local date, so they failed whenever the local day differed from the UTC day. BaseTestHttp now writes a minimal UTC zone file to a temp dir and puts it first on the zoneinfo search path, which works without the tzdata package, and the review tests convert their expected day keys to UTC.
---------
Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
* Add Gemini embeddings for semantic search
gemini-embedding-2 maps text and images into one space. Request 768 dimensions, send one input per call, and transcode WebP thumbnails to JPEG. Check model supported_actions for embedContent before advertising embeddings support, and raise ValueError on failure so the embeddings process stays up.
* Fix unreachable Gemini provider checks
* update nginx to 1.30.7 and backport nginx module changes from dev
nginx 1.27.4 was vulnerable to CVE-2026-123007 (HTTP/2 flow control heap overflow) and CVE-2026-123633 (HTTP/2 use-after-free), both reachable before auth on the internal and external ports because http2 is on for the whole server block. Kaltura also deleted the nginx-vod-module and nginx-secure-token-module repos, so the build could no longer download either module.
- Update nginx to 1.30.7
- Backport the switch to the maintained dio-az nginx-vod-module fork (#24123)
- Backport the nginx-secure-token-module removal (#24893)
* bump playwright to 1.65.0 for ubuntu 26.04 runners
* tweak agents file
* add serbian latin
* fix serbian latin components
weblate put them in the wrong directory (sr_Latn). the component style was updated in weblate itself so this shouldn't happen for any future translations
* raise on empty genai embedding response so the maintainer thread survives
* add kebab menu to export cases
* disable download while case exports are still encoding
* stop case menu clicks from opening the case
* check case download readiness against jobs on every camera
Currently translated at 100.0% (64 of 64 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (46 of 46 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (60 of 60 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (66 of 66 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (129 of 129 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (500 of 500 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (775 of 775 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (522 of 522 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (74 of 74 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (1409 of 1409 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (49 of 49 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (130 of 130 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (145 of 145 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (775 of 775 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (522 of 522 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (37 of 37 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (74 of 74 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (282 of 282 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (1409 of 1409 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (46 of 46 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (64 of 64 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (130 of 130 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (68 of 68 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (141 of 141 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (775 of 775 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (522 of 522 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (37 of 37 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (74 of 74 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (120 of 120 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (50 of 50 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (266 of 266 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (282 of 282 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 67.1% (946 of 1409 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (130 of 130 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (68 of 68 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (129 of 129 strings)
Translated using Weblate (Serbian (Latin script))
Currently translated at 100.0% (500 of 500 strings)
Co-authored-by: Branislav Maricic <b.n.maricic@users.noreply.hosted.weblate.org>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/audio/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/common/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/components-camera/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/components-dialog/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/components-filter/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/components-player/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/config-cameras/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/config-global/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/objects/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/views-chat/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/views-classificationmodel/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/views-events/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/views-explore/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/views-facelibrary/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/views-live/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/views-motionsearch/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/views-replay/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/views-search/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/views-settings/sr_Latn/
Translate-URL: https://hosted.weblate.org/projects/frigate-nvr/views-system/sr_Latn/
Translation: Frigate NVR/Config - Cameras
Translation: Frigate NVR/Config - Global
Translation: Frigate NVR/audio
Translation: Frigate NVR/common
Translation: Frigate NVR/components-camera
Translation: Frigate NVR/components-dialog
Translation: Frigate NVR/components-filter
Translation: Frigate NVR/components-player
Translation: Frigate NVR/objects
Translation: Frigate NVR/views-chat
Translation: Frigate NVR/views-classificationmodel
Translation: Frigate NVR/views-events
Translation: Frigate NVR/views-explore
Translation: Frigate NVR/views-facelibrary
Translation: Frigate NVR/views-live
Translation: Frigate NVR/views-motionSearch
Translation: Frigate NVR/views-replay
Translation: Frigate NVR/views-search
Translation: Frigate NVR/views-settings
Translation: Frigate NVR/views-system
* Resize classification training images the same way as inference
Training let Keras resize dataset images to 224x224, which uses nearest
neighbor by default. Inference resizes the crop with cv2.resize
(bilinear). For crops much smaller than 224 px the two results look very
different, so a model could fit its training images perfectly and still
report the same state for every live frame.
Add resize_classification_image() and use it everywhere an image is
resized for a classification model. Before training, the dataset is
copied to a temporary directory through that same function, so Keras is
given images that are already the model input size and does no resizing
of its own.
The new test runs a frame through the state processor and the crop it
saves through the training process (stopped at model.fit), and checks
the model receives the same pixels from both, for random frame and crop
sizes. Adds hypothesis as a dev dependency.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fail training when a prepared image cannot be written
cv2.imwrite returns False instead of raising, so a full temporary
directory would have dropped images from training without any error.
Raise with the file path instead; the training process already logs
the exception and fails.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Trim classification parity tests and drop hypothesis
Per review: the parity test is now a plain loop over fixed crop sizes
(64, 79, 224 and 600 px) on a fixed 1280x720 frame, which covers both
upscaled and downscaled crops. The 224x224 check and the failed-write
test are removed; the parity test already covers the prepared image
size. hypothesis is no longer a dev dependency.
The 64, 79 and 600 px cases still fail on dev and pass with the fix.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Victor Bajanov <victorb@spunmonkey.org>
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* only remove the deleted camera's media files
Camera deletion globbed snapshot, clean copy, and review thumbnail files by "{camera}-*", and camera names can contain "-", so deleting "front" also removed every one of those files for "front-door". Files are now matched on the full name, the camera followed by an event or review id.
* only use the camera's own preview frames for review descriptions
get_cache_frames matched cached preview frames by "preview_{camera}-", so when "front" had no frame after the review ended, the first "front-door" frame became the trailing frame and went into front's GenAI prompt. It now uses is_camera_preview_frame like the preview recorder and exports.
* keep cleaning up when a media directory can't be listed
* Update third_party_extensions.md with new integrations
Added new integrations for Auto Arm and Camera AutoNotify to the documentation.
* Enhance integration descriptions for clarity
Updated descriptions for Auto Arm and Camera AutoNotify integrations to include additional features and synchronization options.