mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-02-12 16:52:51 +00:00
34 lines
815 B
Dart
34 lines
815 B
Dart
/// A bundle of preset OSM tags that describe a particular camera model/type.
|
||
class CameraProfile {
|
||
final String name;
|
||
final Map<String, String> tags;
|
||
|
||
const CameraProfile({
|
||
required this.name,
|
||
required this.tags,
|
||
});
|
||
|
||
// Built‑in ALPR profile (Flock Falcon‑style).
|
||
factory CameraProfile.alpr() => const CameraProfile(
|
||
name: 'ALPR Camera',
|
||
tags: {
|
||
'man_made': 'surveillance',
|
||
'surveillance:type': 'ALPR',
|
||
'surveillance': 'public',
|
||
'surveillance:zone': 'traffic',
|
||
'camera:type': 'fixed',
|
||
'camera:mount': 'pole',
|
||
},
|
||
);
|
||
|
||
CameraProfile copyWith({
|
||
String? name,
|
||
Map<String, String>? tags,
|
||
}) =>
|
||
CameraProfile(
|
||
name: name ?? this.name,
|
||
tags: tags ?? this.tags,
|
||
);
|
||
}
|
||
|