Hi all I use double take with compreface on a doorbird video intercom. the use I make of it is to recognize the faces of my family and in the case of a match greater than 98% I open the wicket and send an internal alert and on my smartphone. the problem is that I always have two events on homeassistant. The first after a few seconds and the second after about 10 minutes which relaunches the automation. I tried to figure out what it could be but I didn’t find a solution. Can anyone help me?
This Is my last double take log
24-07-16 11:08:00 info: purged 1 file(s)
24-07-16 11:11:08 info: processing Campanello: 1721128268.004785-29rmsu
24-07-16 11:11:08 info: processing campanello: a7250e69-11f8-47f3-8847-9f96d0f010a2
24-07-16 11:11:08 info: done processing campanello: a7250e69-11f8-47f3-8847-9f96d0f010a2 in 0.48 sec
24-07-16 11:11:08 info: {
id: 'a7250e69-11f8-47f3-8847-9f96d0f010a2',
duration: 0.48,
timestamp: '2024-07-16T11:11:08.936Z',
attempts: 1,
camera: 'campanello',
zones: [],
counts: { person: 1, match: 0, miss: 1, unknown: 0 },
matches: [],
misses: [
{
name: 'cesare',
confidence: 99.75,
match: false,
box: [Object],
checks: [Array],
type: 'mqtt',
duration: 0.37,
detector: 'compreface',
filename: '125e4c6f-81c5-48b1-a76f-470a8ff377c7.jpg'
}
],
unknowns: []
}
24-07-16 11:11:29 info: done processing Campanello: 1721128268.004785-29rmsu in 21.32 sec
24-07-16 11:11:29 info: {
id: '1721128268.004785-29rmsu',
duration: 21.32,
timestamp: '2024-07-16T11:11:29.771Z',
attempts: 4,
camera: 'Campanello',
zones: [],
counts: { person: 1, match: 1, miss: 1, unknown: -1 },
matches: [
{
name: 'cesare',
confidence: 99.86,
match: true,
box: [Object],
type: 'snapshot',
duration: 0.14,
detector: 'compreface',
filename: 'e2be432b-3634-465a-a77f-3538816ab3bf.jpg'
}
],
misses: [
{
name: 'cesare',
confidence: 99.74,
match: false,
box: [Object],
checks: [Array],
type: 'latest',
duration: 0.84,
detector: 'compreface',
filename: 'a246e8e8-30cb-40de-aeed-6df2e4cac7a2.jpg'
}
],
unknowns: []
}
}
24-07-16 11:11:43 info: processing campanello: 07bc2c49-4239-48c1-b566-05e0de485b93
24-07-16 11:11:43 info: done processing campanello: 07bc2c49-4239-48c1-b566-05e0de485b93 in 0.23 sec
24-07-16 11:11:43 info: {
id: '07bc2c49-4239-48c1-b566-05e0de485b93',
duration: 0.23,
timestamp: '2024-07-16T11:11:43.615Z',
attempts: 1,
camera: 'campanello',
zones: [],
counts: { person: 1, match: 0, miss: 1, unknown: 0 },
matches: [],
misses: [
{
name: 'cesare',
confidence: 99.31,
match: false,
box: [Object],
checks: [Array],
type: 'mqtt',
duration: 0.22,
detector: 'compreface',
filename: '3fc5c8c1-9644-4cbe-bbfa-45f1911d13af.jpg'
}
],
unknowns: []
}
24-07-16 11:30:42 info: processing Campanello: 1721129438.751905-camnz3
24-07-16 11:30:42 info: processing campanello: 0e4d4b38-a0b7-4cd7-b5c0-66a6cca48c32
24-07-16 11:30:43 info: done processing campanello: 0e4d4b38-a0b7-4cd7-b5c0-66a6cca48c32 in 0.21 sec
24-07-16 11:30:43 info: {
id: '0e4d4b38-a0b7-4cd7-b5c0-66a6cca48c32',
duration: 0.21,
timestamp: '2024-07-16T11:30:43.016Z',
attempts: 1,
camera: 'campanello',
zones: [],
counts: { person: 0, match: 0, miss: 0, unknown: 0 },
matches: [],
misses: [],
unknowns: []
}
24-07-16 11:30:53 error: stream error: Request failed with status code 404
AxiosError: Request failed with status code 404
at settle (/double-take/api/node_modules/axios/dist/node/axios.cjs:1966:12)
at IncomingMessage.handleStreamEnd (/double-take/api/node_modules/axios/dist/node/axios.cjs:3065:11)
at IncomingMessage.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1400:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at Axios.request (/double-take/api/node_modules/axios/dist/node/axios.cjs:3876:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async module.exports.stream (/double-take/api/src/util/process.util.js:233:22)
at async module.exports.polling (/double-take/api/src/util/process.util.js:34:22)
at async Promise.all (index 1)
at async module.exports.start (/double-take/api/src/controllers/recognize.controller.js:152:7)
24-07-16 11:31:03 error: stream error: Request failed with status code 404
AxiosError: Request failed with status code 404
at settle (/double-take/api/node_modules/axios/dist/node/axios.cjs:1966:12)
at IncomingMessage.handleStreamEnd (/double-take/api/node_modules/axios/dist/node/axios.cjs:3065:11)
at IncomingMessage.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1400:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at Axios.request (/double-take/api/node_modules/axios/dist/node/axios.cjs:3876:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async module.exports.stream (/double-take/api/src/util/process.util.js:233:22)
at async module.exports.polling (/double-take/api/src/util/process.util.js:34:22)
at async Promise.all (index 1)
at async module.exports.start (/double-take/api/src/controllers/recognize.controller.js:152:7)
24-07-16 11:31:13 error: stream error: Request failed with status code 404
AxiosError: Request failed with status code 404
at settle (/double-take/api/node_modules/axios/dist/node/axios.cjs:1966:12)
at
In this log i see one only match
my doubletake config:
mqtt:
host: xxx.xxx.xxx.xxx
username: mqtt
password: xxxxxxx
client_id: doubletake
topics:
# mqtt topic for frigate message subscription
frigate: frigate/events
# mqtt topic for home assistant discovery subscription
homeassistant: homeassistant
# mqtt topic where matches are published by name
matches: double-take/matches
# mqtt topic where matches are published by camera name
cameras: double-take/cameras
# Learn more at https://github.com/skrashevich/double-take/#configuration
detect:
match:
# save match images
save: true
# include base64 encoded string in api results and mqtt messages
# options: true, false, box
base64: false
# minimum confidence needed to consider a result a match
confidence: 98
# hours to keep match images until they are deleted
purge: 168
# minimum area in pixels to consider a result a match
min_area: 10000
unknown:
# save unknown images
save: true
# include base64 encoded string in api results and mqtt messages
# options: true, false, box
base64: false
# minimum confidence needed before classifying a name as unknown
confidence: 95
# hours to keep unknown images until they are deleted
purge: 8
# minimum area in pixels to keep an unknown result
min_area: 6000
frigate:
url: http://xxx.xxx.xxx.xxx:5000/
cameras:
- Campanello
attempts:
# number of times double take will request a frigate latest.jpg for facial recognition
latest: 5
# number of times double take will request a frigate snapshot.jpg for facial recognition
snapshot: 5
# process frigate images from frigate/+/person/snapshot topics
# add a delay expressed in seconds between each detection loop
delay: 10
labels:
- person
image:
# height of frigate image passed for facial recognition
height: 500
stop_on_match: true
detectors:
compreface:
url: http://xxx.xxx.xxx.xxx:8080/
key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
timeout: 15
opencv_face_required: false
det_prob_threshold: 0.9
opencv:
scale_factor: 1.05
min_neighbors: 4.5
min_size_width: 30
min_size_height: 30
this log of automations (homeassistant)
this:
entity_id: automation.doubletake
state: 'on'
attributes:
id: '1720357688434'
last_triggered: '2024-07-15T19:01:40.447822+00:00'
mode: single
current: 0
friendly_name: DoubleTake
last_changed: '2024-07-14T15:25:45.934456+00:00'
last_reported: '2024-07-15T19:01:40.454756+00:00'
last_updated: '2024-07-15T19:01:40.454756+00:00'
context:
id: 01J2VWB7YZ2QS20JR10MMR88KS
parent_id: 01J2VWB7YZ61M8EHN7QGT0YDNP
user_id: null
trigger:
id: Cesare
idx: '0'
alias: Rilevato Cesare
platform: state
entity_id: sensor.double_take_cesare
from_state:
entity_id: sensor.double_take_cesare
state: unavailable
attributes:
icon: mdi:account
friendly_name: cesare
last_changed: '2024-07-15T16:21:29.113441+00:00'
last_reported: '2024-07-15T16:21:29.113441+00:00'
last_updated: '2024-07-15T16:21:29.113441+00:00'
context:
id: 01J2VK5XWSJPQE5H5MVTFM7YKR
parent_id: null
user_id: null
to_state:
entity_id: sensor.double_take_cesare
state: campanello
attributes:
id: 1721128268.004785-29rmsu
duration: 21.32
timestamp: '2024-07-16T11:11:29.771Z'
attempts: 4
camera: campanello
zones: []
match:
name: cesare
confidence: 99.86
match: true
box:
top: 128
left: 288
width: 105
height: 126
type: snapshot
duration: 0.14
detector: compreface
filename: e2be432b-3634-465a-a77f-3538816ab3bf.jpg
base64: null
icon: mdi:account
friendly_name: cesare
last_changed: '2024-07-16T11:11:29.775722+00:00'
last_reported: '2024-07-16T11:11:29.775722+00:00'
last_updated: '2024-07-16T11:11:29.775722+00:00'
context:
id: 01J2XKV1FFZ3PY4K5CPAGRZQXP
parent_id: null
user_id: null
for: null
attribute: null
description: state of sensor.double_take_cesare
and last
trigger:
id: Cesare
idx: '0'
alias: Rilevato Cesare
platform: state
entity_id: sensor.double_take_cesare
from_state:
entity_id: sensor.double_take_cesare
state: campanello
attributes:
id: 1721128268.004785-29rmsu
duration: 21.32
timestamp: '2024-07-16T11:11:29.771Z'
attempts: 4
camera: campanello
zones: []
match:
name: cesare
confidence: 99.86
match: true
box:
top: 128
left: 288
width: 105
height: 126
type: snapshot
duration: 0.14
detector: compreface
filename: e2be432b-3634-465a-a77f-3538816ab3bf.jpg
base64: null
icon: mdi:account
friendly_name: cesare
last_changed: '2024-07-16T11:11:29.775722+00:00'
last_reported: '2024-07-16T11:11:29.775722+00:00'
last_updated: '2024-07-16T11:11:29.775722+00:00'
context:
id: 01J2XKV1FFZ3PY4K5CPAGRZQXP
parent_id: null
user_id: null
to_state:
entity_id: sensor.double_take_cesare
state: unavailable
attributes:
icon: mdi:account
friendly_name: cesare
last_changed: '2024-07-16T11:21:29.776231+00:00'
last_reported: '2024-07-16T11:21:29.776231+00:00'
last_updated: '2024-07-16T11:21:29.776231+00:00'
context:
id: 01J2XMDBDG7M5MG3EE5R7B57JY
parent_id: null
user_id: null
for: null
attribute: null
description: state of sensor.double_take_cesare