mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-30 13:48:07 +02:00
Small fixes and docs tweaks (#16595)
* don't clear url params if we're creating a new object mask * use correct threshold var in debug log * docs tweak for mjpeg cameras
This commit is contained in:
parent
6bb1a5dfd2
commit
5264a18dfa
@ -22,7 +22,7 @@ Note that mjpeg cameras require encoding the video into h264 for recording, and
|
|||||||
```yaml
|
```yaml
|
||||||
go2rtc:
|
go2rtc:
|
||||||
streams:
|
streams:
|
||||||
mjpeg_cam: "ffmpeg:{your_mjpeg_stream_url}#video=h264#hardware" # <- use hardware acceleration to create an h264 stream usable for other components.
|
mjpeg_cam: "ffmpeg:http://your_mjpeg_stream_url#video=h264#hardware" # <- use hardware acceleration to create an h264 stream usable for other components.
|
||||||
|
|
||||||
cameras:
|
cameras:
|
||||||
...
|
...
|
||||||
@ -85,7 +85,7 @@ This camera is H.265 only. To be able to play clips on some devices (like MacOs
|
|||||||
cameras:
|
cameras:
|
||||||
annkec800: # <------ Name the camera
|
annkec800: # <------ Name the camera
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
apple_compatibility: true # <- Adds compatibility with MacOS and iPhone
|
apple_compatibility: true # <- Adds compatibility with MacOS and iPhone
|
||||||
output_args:
|
output_args:
|
||||||
record: preset-record-generic-audio-aac
|
record: preset-record-generic-audio-aac
|
||||||
|
|
||||||
|
@ -1062,7 +1062,7 @@ class LicensePlateProcessor(RealTimeProcessorApi):
|
|||||||
# Check against minimum confidence threshold
|
# Check against minimum confidence threshold
|
||||||
if avg_confidence < self.lpr_config.recognition_threshold:
|
if avg_confidence < self.lpr_config.recognition_threshold:
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f"Average confidence {avg_confidence} is less than threshold ({self.lpr_config.threshold})"
|
f"Average confidence {avg_confidence} is less than threshold ({self.lpr_config.recognition_threshold})"
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@ import NotificationView from "@/views/settings/NotificationsSettingsView";
|
|||||||
import SearchSettingsView from "@/views/settings/SearchSettingsView";
|
import SearchSettingsView from "@/views/settings/SearchSettingsView";
|
||||||
import UiSettingsView from "@/views/settings/UiSettingsView";
|
import UiSettingsView from "@/views/settings/UiSettingsView";
|
||||||
import { useSearchEffect } from "@/hooks/use-overlay-state";
|
import { useSearchEffect } from "@/hooks/use-overlay-state";
|
||||||
|
import { useSearchParams } from "react-router-dom";
|
||||||
|
|
||||||
const allSettingsViews = [
|
const allSettingsViews = [
|
||||||
"UI settings",
|
"UI settings",
|
||||||
@ -58,6 +59,8 @@ export default function Settings() {
|
|||||||
|
|
||||||
const { data: config } = useSWR<FrigateConfig>("config");
|
const { data: config } = useSWR<FrigateConfig>("config");
|
||||||
|
|
||||||
|
const [searchParams] = useSearchParams();
|
||||||
|
|
||||||
// available settings views
|
// available settings views
|
||||||
|
|
||||||
const settingsViews = useMemo(() => {
|
const settingsViews = useMemo(() => {
|
||||||
@ -124,7 +127,8 @@ export default function Settings() {
|
|||||||
if (allSettingsViews.includes(page as SettingsType)) {
|
if (allSettingsViews.includes(page as SettingsType)) {
|
||||||
setPage(page as SettingsType);
|
setPage(page as SettingsType);
|
||||||
}
|
}
|
||||||
return false;
|
// don't clear url params if we're creating a new object mask
|
||||||
|
return !searchParams.has("object_mask");
|
||||||
});
|
});
|
||||||
|
|
||||||
useSearchEffect("camera", (camera: string) => {
|
useSearchEffect("camera", (camera: string) => {
|
||||||
@ -132,7 +136,8 @@ export default function Settings() {
|
|||||||
if (cameraNames.includes(camera)) {
|
if (cameraNames.includes(camera)) {
|
||||||
setSelectedCamera(camera);
|
setSelectedCamera(camera);
|
||||||
}
|
}
|
||||||
return false;
|
// don't clear url params if we're creating a new object mask
|
||||||
|
return !searchParams.has("object_mask");
|
||||||
});
|
});
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user