Closed francoisduprez closed 11 months ago
It should still be {{label}} in the automation.
You just need to configure double take to pass the sublabel to frigate.
There are two lines you need in double take config, search the closed issues and you should find them.
If i found the lines (i think)
update_sub_labels: true stop_on_match: true
But i get errors, and i'm to noob to understand what to do with them. Hope you can help me a little bit closer at a solution.
23-10-10 23:19:33 verbose: api listening on :3000 23-10-10 23:19:33 info: MQTT: connected 23-10-10 23:19:33 info: MQTT: subscribed to frigate/events, frigate/voordeur/person/snapshot, frigate/tuinpoort/person/snapshot 23-10-10 23:20:03 verbose: Incoming event from frigate: {"before": {"id": "1696972801.58848-ul6qyt", "camera": "voordeur", "frame_time": 1696972801.58848, "snapshot": null, "label": "person", "sub_label": null, "top_score": 0.0, "false_positive": true, "start_time": 1696972801.58848, "end_time": null, "score": 0.6171875, "box": [0, 135, 291, 456], "area": 93411, "ratio": 0.9065420560747663, "region": [0, 56, 424, 480], "stationary": false, "motionless_count": 0, "position_changes": 0, "current_zones": [], "entered_zones": [], "has_clip": false, "has_snapshot": false, "attributes": {}, "current_attributes": []}, "after": {"id": "1696972801.58848-ul6qyt", "camera": "voordeur", "frame_time": 1696972803.575137, "snapshot": {"frame_time": 1696972803.575137, "box": [142, 94, 416, 472], "area": 103572, "region": [0, 0, 724, 724], "score": 0.84375, "attributes": []}, "label": "person", "sub_label": null, "top_score": 0.82421875, "false_positive": false, "start_time": 1696972801.58848, "end_time": null, "score": 0.84375, "box": [142, 94, 416, 472], "area": 103572, "ratio": 0.7248677248677249, "region": [0, 0, 724, 724], "stationary": false, "motionless_count": 5, "position_changes": 1, "current_zones": ["voordeur_stoep"], "entered_zones": ["voordeur_stoep"], "has_clip": true, "has_snapshot": true, "attributes": {}, "current_attributes": []}, "type": "new"} 23-10-10 23:20:03 info: processing voordeur: 1696972801.58848-ul6qyt 23-10-10 23:20:04 info: done processing voordeur: 1696972801.58848-ul6qyt in 0.5 sec 23-10-10 23:20:04 info: { id: '1696972801.58848-ul6qyt', duration: 0.5, timestamp: '2023-10-10T21:20:04.377Z', attempts: 2, camera: 'voordeur', zones: [ 'voordeur_stoep' ], counts: { person: 1, match: 1, miss: 0, unknown: 0 }, matches: [ { name: 'postbode', confidence: 76.29, match: true, box: [Object], type: 'latest', duration: 0.44, detector: 'aiserver', filename: '0609203d-56fb-49f7-affe-4809970c87fe.jpg' } ], misses: [], unknowns: [] } 23-10-10 23:20:04 error: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client at new NodeError (node:internal/errors:387:5) at ServerResponse.setHeader (node:_http_outgoing:644:11) at ServerResponse.header (/double-take/api/node_modules/express/lib/response.js:794:10) at ServerResponse.send (/double-take/api/node_modules/express/lib/response.js:174:12) at ServerResponse.res.send (/double-take/api/src/middlewares/respond.js:41:18) at ServerResponse.json (/double-take/api/node_modules/express/lib/response.js:278:15) at ServerResponse.send (/double-take/api/node_modules/express/lib/response.js:162:21) at ServerResponse.res.send (/double-take/api/src/middlewares/respond.js:41:18) at /double-take/api/src/app.js:46:38 at newFn (/double-take/api/node_modules/express-async-errors/index.js:16:20)
Sorry I'm no expert on it either.
You have those parameters on seperate lines I assume?
I don't think that error is explicitly related.
Thanks for your reaction,
The problem is at Double Take. I've downgraded to Double Take 1.13.10 and all the problems where gone.. The only thing i have now, is that at detection, i get "['francois', None] is gedetecteerd."
But i didn't look further in this problem...
That is a new update from frigate I need to address. I will try to get to it soon.
It works great for me, so no complains here... Keep up the good work..
Thanks.
Describe the problem you are having or the outcome you are trying to achieve.
I'm trying to get face detection from doubletake into Frigate Notifications 0.12.0.1r , but don't understand how. In the README.md i read Replace {{label}} in title and message of the notification with a persons name if double-take face match is detected. But tried different combinations without luck. How can i put multiple faces in??
It will print the name i put in, even when unknown or an other person is detected..
Version
0.12.0.1r
Automation config file
Frigate Config
Any other information that may be helpful
No response