Skip to content

Commit

Permalink
unifi-protect: document license plate api
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Apr 18, 2024
1 parent 3e7535c commit 94055d0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions plugins/unifi-protect/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,20 @@ export class UnifiProtect extends ScryptedDeviceBase implements Settings, Device

let detections: ObjectDetectionResult[] = [];

// const event = {
// type: 'smartDetectZone',
// start: 1713211066646,
// score: 80,
// smartDetectTypes: [ 'licensePlate', 'vehicle' ],
// smartDetectEvents: [],
// metadata: { licensePlate: { name: 'ABCDEFG', confidenceLevel: 90 } },
// camera: '64b2e59f0106eb03e4001210',
// partition: null,
// user: null,
// id: '661d86bf03e69c03e408d62a',
// modelKey: 'event'
// }

if (payload.type === 'smartDetectZone' || payload.type === 'smartDetectLine') {
unifiCamera.resetDetectionTimeout();

Expand Down

0 comments on commit 94055d0

Please sign in to comment.