Files
deflock-app/lib/models/camera_profile.dart

34 lines
815 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/// 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,
});
// Builtin ALPR profile (Flock Falconstyle).
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,
);
}