mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-09-27 19:28:57 +03:00
* Migrate Hailo detector key and support hailo device * Fix missing check
18 lines
541 B
TypeScript
18 lines
541 B
TypeScript
/** Matching Frigate+ models against the hardware that can run them. */
|
|
|
|
type PlusModel = {
|
|
supportedDetectors: string[];
|
|
// which Hailo device a Hailo model was built for, absent on every other model
|
|
hailoDevice?: string;
|
|
};
|
|
|
|
/**
|
|
* The detectors to show for a model.
|
|
*
|
|
* Every Hailo model supports the one hailo detector, so the device it was
|
|
* built for is what the user needs to see.
|
|
*/
|
|
export function describeSupportedDetectors(model: PlusModel): string {
|
|
return model.hailoDevice ?? model.supportedDetectors.join(", ");
|
|
}
|