Facial recognition & room presence using Double Take & Frigate

Wondering if we are the only persons with that problem …my opened issue on GitHub has even no comments

Hey, what resolution are you using ?

“box area too low: 3504 < 10000” means that the detected face area in pixel is too small for it to be considered a match AFAIK.
I had the same issue using the substream of my camera, moved detection over to the main stream and problem was gone.

I’m hoping someone can clear this up for me, I have been having trouble getting this working.

I installed Frigate on my server (not addon so I can use hw accel) along with double-take HASS addon. I installed frigate proxy as well and everything seems to be running pretty well. My issue is sending the notification. I receive the notification fine but there is no picture attached and view image link does not work.

I tried a view variations of my external URL instead of http://localhost but nothing I tried seems to work. What is the correct URL I should be passing so app notifications include image?

Thanks.

service: notify.mobile_app_brian_s_phone
data:
  message: |-
    {% if trigger.to_state.attributes.match is defined %}
      {{trigger.to_state.attributes.friendly_name}} is near the {{trigger.to_state.state}} @ {{trigger.to_state.attributes.match.confidence}}% by {{trigger.to_state.attributes.match.detector}}:{{trigger.to_state.attributes.match.type}} taking {{trigger.to_state.attributes.attempts}} attempt(s) @ {{trigger.to_state.attributes.duration}} sec
    {% elif trigger.to_state.attributes.unknown is defined %}
      unknown is near the {{trigger.to_state.state}} @ {{trigger.to_state.attributes.unknown.confidence}}% by {{trigger.to_state.attributes.unknown.detector}}:{{trigger.to_state.attributes.unknown.type}} taking {{trigger.to_state.attributes.attempts}} attempt(s) @ {{trigger.to_state.attributes.duration}} sec
    {% endif %}
  data:
    attachment:
      url: |-
        {% if trigger.to_state.attributes.match is defined %}
          http://localhost:3000/api/storage/matches/{{trigger.to_state.attributes.match.filename}}?box=true&token={{trigger.to_state.attributes.token}}
        {% elif trigger.to_state.attributes.unknown is defined %}
          http://localhost:3000/api/storage/matches/{{trigger.to_state.attributes.unknown.filename}}?box=true&token={{trigger.to_state.attributes.token}}
        {% endif %}
    actions:
      - action: URI
        title: View Image
        uri: |-
          {% if trigger.to_state.attributes.match is defined %}
            http://localhost:3000/api/storage/matches/{{trigger.to_state.attributes.match.filename}}?box=true&token={{trigger.to_state.attributes.token}}
          {% elif trigger.to_state.attributes.unknown is defined %}
             http://localhost:3000/api/storage/matches/{{trigger.to_state.attributes.unknown.filename}}?box=true&token={{trigger.to_state.attributes.token}}
          {% endif %}

For now, I just switched to Frigate URLs for snapshot/clip. This is good enough for now while I try to figure out the external urls for doubletake.

service: notify.mobile_app_brian_s_phone
data:
  title: '{{trigger.to_state.attributes.camera}} Camera Alert'
  message: |-
    {% if trigger.to_state.attributes.match is defined %}
      {{trigger.to_state.attributes.friendly_name}} was detected by the {{trigger.to_state.attributes.camera}} Camera @ {{trigger.to_state.attributes.match.confidence}}% by {{trigger.to_state.attributes.match.detector}}:{{trigger.to_state.attributes.match.type}} taking {{trigger.to_state.attributes.attempts}} attempt(s) @ {{trigger.to_state.attributes.duration}} sec
    {% elif trigger.to_state.attributes.unknown is defined %}
      An unknown Person was detected by the {{trigger.to_state.attributes.camera}} Camera @ {{trigger.to_state.attributes.unknown.confidence}}% by {{trigger.to_state.attributes.unknown.detector}}:{{trigger.to_state.attributes.unknown.type}} taking {{trigger.to_state.attributes.attempts}} attempt(s) @ {{trigger.to_state.attributes.duration}} sec
    {% endif %}
  data:
    tag: '{{trigger.to_state.attributes.id}}'
    group: 'doubletake-notifications-{{trigger.to_state.attributes.camera}}'
    image: '/api/frigate/notifications/{{trigger.to_state.attributes.id}}/thumbnail.jpg?format=android'
    clickAction: 'https://<external url>/api/frigate/notifications/{{trigger.to_state.attributes.id}}/{{trigger.to_state.state}}/clip.mp4'
    attachment:
      url: /api/frigate/notifications/{{trigger.to_state.attributes.id}}/thumbnail.jpg
    actions:
      - action: URI
        title: Image
        uri: https://<external url>/api/frigate/notifications/{{trigger.to_state.attributes.id}}/thumbnail.jpg
      - action: URI
        title: Clip
        uri: https://<external url>/api/frigate/notifications/{{trigger.to_state.attributes.id}}/{{trigger.to_state.state}}/clip.mp4

Hi all,
I installed Double Take via the HassIO addon store

However when I try to start the Double Take addon, it does not start, no entries in the log tab what so ever, I’ve tried different ports and made sure that they are available. Running HA on NUC via HassOS.

The only output I see is from the Supervisor Log file …

21-12-27 10:47:33 INFO (SyncWorker_13) [supervisor.docker.addon] Starting Docker add-on c7657554/amd64-addon-double-take with version 1.7.0
21-12-27 10:47:39 ERROR (SyncWorker_5) [supervisor.docker.interface] Container addon_c7657554_double-take is not running
21-12-27 10:47:42 ERROR (SyncWorker_15) [supervisor.docker.interface] Container addon_c7657554_double-take is not running

Does anyone know what the issue might be ?
Where can I find better log output for the HassIO Addon ?

Hey,
I’m trying to set up Double Take, and after I set the Config, I get green light (dots) on all 4:
Double Take, MQTT, Frigate, DeepStack.
Yet when I enter the main page of the UI I get a notification on the down corner: “Network Error”.
And no photos are added to dashboard. Frigate adds more ‘person’ detection to its UI, but nothing appear on Double Take.
What should I do?

Try checking the logfile i DoubleTake. It might show what goes wrong.

I think something not work good in my double take, I see the matches but I dont see the entities, I have just 2 entities…


I see something in log. maybe its can help up?

and this is the log from doubletake

  id: '859e74a1-f8a1-4b6b-9d0e-2257cc9b9474',
  duration: 0.03,
  timestamp: '2022-01-04T22:16:28.472Z',
  attempts: 1,
  camera: 'front',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 00:16:32 info: processing front: 753f411d-1429-4257-8ca4-b320a1c06783
22-01-05 00:16:32 info: processing Front: 1641334576.994638-fk9fpi
22-01-05 00:16:36 error: Error: deepstack process error: timeout of 15000ms exceeded
22-01-05 00:16:36 warn: sleeping for 0.5 second(s)
22-01-05 00:16:38 error: Error: deepstack process error: timeout of 15000ms exceeded
22-01-05 00:16:38 warn: sleeping for 0.5 second(s)
22-01-05 00:16:38 info: done processing door camera: 9b41400a-ffa9-43b5-b55a-54bf91349047 in 6.63 sec
22-01-05 00:16:38 info: {
  id: '9b41400a-ffa9-43b5-b55a-54bf91349047',
  duration: 6.63,
  timestamp: '2022-01-04T22:16:38.915Z',
  attempts: 1,
  camera: 'door camera',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 00:16:39 error: Error: deepstack process error: timeout of 15000ms exceeded
22-01-05 00:16:39 warn: sleeping for 0.5 second(s)
22-01-05 00:16:43 error: Error: deepstack process error: timeout of 15000ms exceeded
22-01-05 00:16:43 warn: sleeping for 0.5 second(s)
22-01-05 00:16:43 info: done processing front: ae40141a-81c7-4c0d-99b8-c63084a2ee68 in 11.67 sec
22-01-05 00:16:43 info: {
  id: 'ae40141a-81c7-4c0d-99b8-c63084a2ee68',
  duration: 11.67,
  timestamp: '2022-01-04T22:16:43.954Z',
  attempts: 1,
  camera: 'front',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 00:16:47 error: Error: deepstack process error: timeout of 15000ms exceeded
22-01-05 00:16:47 warn: sleeping for 0.5 second(s)
22-01-05 00:16:47 info: processing Door Camera: 1641334578.128923-nrgvj2
22-01-05 00:16:47 error: Error: deepstack process error: timeout of 15000ms exceeded
22-01-05 00:16:47 warn: sleeping for 0.5 second(s)
22-01-05 00:16:47 error: Error: deepstack process error: timeout of 15000ms exceeded
22-01-05 00:16:47 warn: sleeping for 0.5 second(s)
22-01-05 00:16:47 error: Error: deepstack process error: timeout of 15000ms exceeded
22-01-05 00:16:47 warn: sleeping for 0.5 second(s)
22-01-05 00:16:47 info: done processing front: 753f411d-1429-4257-8ca4-b320a1c06783 in 0.58 sec
22-01-05 00:16:47 info: {
  id: '753f411d-1429-4257-8ca4-b320a1c06783',
  duration: 0.58,
  timestamp: '2022-01-04T22:16:47.789Z',
  attempts: 1,
  camera: 'front',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 00:16:50 error: Error: deepstack process error: timeout of 15000ms exceeded
22-01-05 00:16:50 warn: sleeping for 0.5 second(s)
22-01-05 00:16:52 error: Error: deepstack process error: timeout of 15000ms exceeded
22-01-05 00:16:52 warn: sleeping for 1 second(s)
22-01-05 00:16:55 error: Error: deepstack process error: timeout of 15000ms exceeded
22-01-05 00:16:55 warn: sleeping for 1 second(s)
22-01-05 00:17:02 error: Error: deepstack process error: timeout of 15000ms exceeded
22-01-05 00:17:02 warn: sleeping for 0.5 second(s)
22-01-05 00:17:02 error: Error: deepstack process error: timeout of 15000ms exceeded
22-01-05 00:17:02 warn: sleeping for 0.5 second(s)
22-01-05 00:17:02 error: Error: deepstack process error: timeout of 15000ms exceeded
22-01-05 00:17:02 warn: sleeping for 1 second(s)
22-01-05 00:17:02 info: processing door camera: 1fe068c3-aa06-4db5-995d-928e860c3edf
22-01-05 00:17:03 error: Error: deepstack process error: timeout of 15000ms exceeded
22-01-05 00:17:03 warn: sleeping for 1 second(s)
22-01-05 00:17:06 info: done processing door camera: 1fe068c3-aa06-4db5-995d-928e860c3edf in 3.65 sec
22-01-05 00:17:06 info: {
  id: '1fe068c3-aa06-4db5-995d-928e860c3edf',
  duration: 3.65,
  timestamp: '2022-01-04T22:17:06.553Z',
  attempts: 1,
  camera: 'door camera',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 00:17:11 info: done processing Door Camera: 1641334575.414257-10vgtu in 8.77 sec
22-01-05 00:17:11 info: {
  id: '1641334575.414257-10vgtu',
  duration: 8.77,
  timestamp: '2022-01-04T22:17:11.671Z',
  attempts: 13,
  camera: 'Door Camera',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 00:17:12 info: done processing Front: 1641334576.994638-fk9fpi in 9.32 sec
22-01-05 00:17:12 info: {
  id: '1641334576.994638-fk9fpi',
  duration: 9.32,
  timestamp: '2022-01-04T22:17:12.226Z',
  attempts: 14,
  camera: 'Front',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 00:17:12 info: done processing Front: 1641334576.994638-fk9fpi in 9.72 sec
22-01-05 00:17:12 info: {
  id: '1641334576.994638-fk9fpi',
  duration: 9.72,
  timestamp: '2022-01-04T22:17:12.620Z',
  attempts: 11,
  camera: 'Front',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 00:17:12 info: done processing Door Camera: 1641334578.128923-nrgvj2 in 9.88 sec
22-01-05 00:17:12 info: {
  id: '1641334578.128923-nrgvj2',
  duration: 9.88,
  timestamp: '2022-01-04T22:17:12.782Z',
  attempts: 12,
  camera: 'Door Camera',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 00:19:30 info: processing Door Camera: 1641334769.389868-vn6bgb
22-01-05 00:19:30 info: processing door camera: 07f6978e-02b3-42c6-8523-cd295d53bedf
22-01-05 00:19:31 info: done processing door camera: 07f6978e-02b3-42c6-8523-cd295d53bedf in 1.74 sec
22-01-05 00:19:31 info: {
  id: '07f6978e-02b3-42c6-8523-cd295d53bedf',
  duration: 1.74,
  timestamp: '2022-01-04T22:19:31.768Z',
  attempts: 1,
  camera: 'door camera',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 00:19:36 info: processing front: 275e241c-56ea-4ad2-a39b-2710301f33a6
22-01-05 00:19:36 info: processing Front: 1641334769.644312-x04aqa
22-01-05 00:19:45 info: done processing front: 275e241c-56ea-4ad2-a39b-2710301f33a6 in 8.76 sec
22-01-05 00:19:45 info: {
  id: '275e241c-56ea-4ad2-a39b-2710301f33a6',
  duration: 8.76,
  timestamp: '2022-01-04T22:19:45.151Z',
  attempts: 1,
  camera: 'front',
  zones: [],
  matches: [],
  misses: [
    {
      name: 'noy',
      confidence: 79.49,
      match: false,
      box: [Object],
      checks: [Array],
      type: 'mqtt',
      duration: 3.22,
      detector: 'deepstack',
      filename: '63aa0e73-236c-4eea-a13f-77735f57bc3a.jpg'
    }
  ]
}
22-01-05 00:19:48 info: done processing Door Camera: 1641334769.389868-vn6bgb in 12.5 sec
22-01-05 00:19:48 info: {
  id: '1641334769.389868-vn6bgb',
  duration: 12.5,
  timestamp: '2022-01-04T22:19:48.894Z',
  attempts: 6,
  camera: 'Door Camera',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 00:19:49 info: done processing Front: 1641334769.644312-x04aqa in 13.29 sec
22-01-05 00:19:49 info: {
  id: '1641334769.644312-x04aqa',
  duration: 13.29,
  timestamp: '2022-01-04T22:19:49.682Z',
  attempts: 11,
  camera: 'Front',
  zones: [],
  matches: [],
  misses: [
    {
      name: 'noy',
      confidence: 76.17,
      match: false,
      box: [Object],
      checks: [Array],
      type: 'snapshot',
      duration: 5.11,
      detector: 'deepstack',
      filename: '01ed9713-d847-4496-ab5e-32b37277359e.jpg'
    }
  ]
}
22-01-05 00:21:48 info: processing door camera: a24e3860-0623-4d7d-a774-845582d8829a
22-01-05 00:21:48 info: processing Door Camera: 1641334907.698637-m8b9jc
22-01-05 00:21:50 info: processing front: 84544d71-71d9-40d9-bf00-1eec8e7345cd
22-01-05 00:21:51 info: done processing door camera: a24e3860-0623-4d7d-a774-845582d8829a in 0.82 sec
22-01-05 00:21:51 info: {
  id: 'a24e3860-0623-4d7d-a774-845582d8829a',
  duration: 0.82,
  timestamp: '2022-01-04T22:21:51.706Z',
  attempts: 1,
  camera: 'door camera',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 00:21:55 info: processing Front: 1641334909.007985-5r6i4a
22-01-05 00:21:59 info: done processing front: 84544d71-71d9-40d9-bf00-1eec8e7345cd in 3.85 sec
22-01-05 00:21:59 info: {
  id: '84544d71-71d9-40d9-bf00-1eec8e7345cd',
  duration: 3.85,
  timestamp: '2022-01-04T22:21:59.204Z',
  attempts: 1,
  camera: 'front',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 00:22:12 info: processing front: 0933404c-3fe5-4070-94b3-8ca0e373b703
22-01-05 00:22:13 info: done processing front: 0933404c-3fe5-4070-94b3-8ca0e373b703 in 1.16 sec
22-01-05 00:22:13 info: {
  id: '0933404c-3fe5-4070-94b3-8ca0e373b703',
  duration: 1.16,
  timestamp: '2022-01-04T22:22:13.602Z',
  attempts: 1,
  camera: 'front',
  zones: [],
  matches: [],
  misses: [
    {
      name: 'noy',
      confidence: 77.61,
      match: false,
      box: [Object],
      checks: [Array],
      type: 'mqtt',
      duration: 0.47,
      detector: 'deepstack',
      filename: '06492296-9bf7-4cdf-bb5e-6b87a8e2aad2.jpg'
    }
  ]
}
22-01-05 00:22:15 info: done processing Door Camera: 1641334907.698637-m8b9jc in 3.5 sec
22-01-05 00:22:15 info: {
  id: '1641334907.698637-m8b9jc',
  duration: 3.5,
  timestamp: '2022-01-04T22:22:15.944Z',
  attempts: 12,
  camera: 'Door Camera',
  zones: [],
  matches: [],
  misses: [
    {
      name: 'noy',
      confidence: 74.57,
      match: false,
      box: [Object],
      checks: [Array],
      type: 'latest',
      duration: 0.44,
      detector: 'deepstack',
      filename: '35171a1a-f6e2-4f75-ac60-cfbf719cb810.jpg'
    }
  ]
}
22-01-05 00:22:16 info: done processing Front: 1641334909.007985-5r6i4a in 3.68 sec
22-01-05 00:22:16 info: {
  id: '1641334909.007985-5r6i4a',
  duration: 3.68,
  timestamp: '2022-01-04T22:22:16.120Z',
  attempts: 11,
  camera: 'Front',
  zones: [],
  matches: [],
  misses: [
    {
      name: 'noy',
      confidence: 73.56,
      match: false,
      box: [Object],
      checks: [Array],
      type: 'snapshot',
      duration: 9.35,
      detector: 'deepstack',
      filename: '6d33ea0f-2313-43d1-9a9a-e247268041c5.jpg'
    }
  ]
}
22-01-05 00:22:16 info: processing door camera: e209f1d0-370f-4552-adb5-9469c1ce9221
22-01-05 00:22:16 info: done processing door camera: e209f1d0-370f-4552-adb5-9469c1ce9221 in 0.25 sec
22-01-05 00:22:16 info: {
  id: 'e209f1d0-370f-4552-adb5-9469c1ce9221',
  duration: 0.25,
  timestamp: '2022-01-04T22:22:16.971Z',
  attempts: 1,
  camera: 'door camera',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 00:59:00 info: purged 7 file(s)
22-01-05 01:00:00 info: purged 2 file(s)
22-01-05 01:01:00 info: purged 3 file(s)
22-01-05 01:08:00 info: purged 1 file(s)
22-01-05 01:09:00 info: purged 3 file(s)
22-01-05 01:28:00 info: purged 3 file(s)
22-01-05 01:29:00 info: purged 5 file(s)
22-01-05 02:51:00 info: purged 3 file(s)
22-01-05 02:52:00 info: purged 5 file(s)
22-01-05 02:53:00 info: purged 4 file(s)
22-01-05 02:57:00 info: purged 2 file(s)
22-01-05 03:16:00 info: purged 6 file(s)
22-01-05 03:28:00 info: purged 4 file(s)
22-01-05 04:19:00 info: purged 4 file(s)
22-01-05 04:20:00 info: purged 9 file(s)
22-01-05 08:04:10 info: processing Front: 1641362649.474125-mz1m1x
22-01-05 08:04:10 info: processing front: 4eb14eed-e43b-438d-a665-534651a99b42
22-01-05 08:04:11 info: processing door camera: ed30c345-ece7-4d10-a885-1a6708dede6f
22-01-05 08:04:12 info: done processing front: 4eb14eed-e43b-438d-a665-534651a99b42 in 1.33 sec
22-01-05 08:04:12 info: {
  id: '4eb14eed-e43b-438d-a665-534651a99b42',
  duration: 1.33,
  timestamp: '2022-01-05T06:04:12.545Z',
  attempts: 1,
  camera: 'front',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 08:04:17 info: processing Front: 1641362649.474125-mz1m1x
22-01-05 08:04:20 info: done processing door camera: ed30c345-ece7-4d10-a885-1a6708dede6f in 3.34 sec
22-01-05 08:04:20 info: {
  id: 'ed30c345-ece7-4d10-a885-1a6708dede6f',
  duration: 3.34,
  timestamp: '2022-01-05T06:04:20.928Z',
  attempts: 1,
  camera: 'door camera',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 08:04:24 info: processing front: 9ec6f689-4099-4ed2-b6a1-39ac22d6f8dc
22-01-05 08:04:24 info: done processing front: 9ec6f689-4099-4ed2-b6a1-39ac22d6f8dc in 0.44 sec
22-01-05 08:04:24 info: {
  id: '9ec6f689-4099-4ed2-b6a1-39ac22d6f8dc',
  duration: 0.44,
  timestamp: '2022-01-05T06:04:24.534Z',
  attempts: 1,
  camera: 'front',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 08:04:25 info: done processing Front: 1641362649.474125-mz1m1x in 1.86 sec
22-01-05 08:04:25 info: {
  id: '1641362649.474125-mz1m1x',
  duration: 1.86,
  timestamp: '2022-01-05T06:04:25.956Z',
  attempts: 12,
  camera: 'Front',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 08:04:26 info: done processing Front: 1641362649.474125-mz1m1x in 2.03 sec
22-01-05 08:04:26 info: {
  id: '1641362649.474125-mz1m1x',
  duration: 2.03,
  timestamp: '2022-01-05T06:04:26.125Z',
  attempts: 11,
  camera: 'Front',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 08:17:32 info: processing Door Camera: 1641363451.951447-vt1iga
22-01-05 08:17:32 info: processing door camera: b20d0e6c-4c5c-4999-a4fe-ae7a1fcfb3bf
22-01-05 08:17:33 info: processing front: a50589aa-6bbe-4916-bbc8-9018a3658435
22-01-05 08:17:34 info: done processing door camera: b20d0e6c-4c5c-4999-a4fe-ae7a1fcfb3bf in 0.22 sec
22-01-05 08:17:34 info: {
  id: 'b20d0e6c-4c5c-4999-a4fe-ae7a1fcfb3bf',
  duration: 0.22,
  timestamp: '2022-01-05T06:17:34.100Z',
  attempts: 1,
  camera: 'door camera',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 08:17:40 info: processing Front: 1641363452.370683-br83hu
22-01-05 08:17:41 info: done processing front: a50589aa-6bbe-4916-bbc8-9018a3658435 in 1.04 sec
22-01-05 08:17:41 info: {
  id: 'a50589aa-6bbe-4916-bbc8-9018a3658435',
  duration: 1.04,
  timestamp: '2022-01-05T06:17:41.444Z',
  attempts: 1,
  camera: 'front',
  zones: [],
  matches: [],
  misses: [
    {
      name: 'netta',
      confidence: 77.45,
      match: false,
      box: [Object],
      checks: [Array],
      type: 'mqtt',
      duration: 0.94,
      detector: 'deepstack',
      filename: '8b60172f-4b5c-4b49-aece-b89159e73c54.jpg'
    }
  ]
}
22-01-05 08:17:42 info: processing Door Camera: 1641363451.951447-vt1iga
22-01-05 08:17:53 info: processing door camera: cafcf46c-39c9-4076-873b-8a4862650d44
22-01-05 08:17:57 info: done processing door camera: cafcf46c-39c9-4076-873b-8a4862650d44 in 3.83 sec
22-01-05 08:17:57 info: {
  id: 'cafcf46c-39c9-4076-873b-8a4862650d44',
  duration: 3.83,
  timestamp: '2022-01-05T06:17:57.242Z',
  attempts: 1,
  camera: 'door camera',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 08:17:57 info: processing front: d309e764-f822-423d-9f53-29eca3063199
22-01-05 08:18:01 info: done processing front: d309e764-f822-423d-9f53-29eca3063199 in 3.76 sec
22-01-05 08:18:01 info: {
  id: 'd309e764-f822-423d-9f53-29eca3063199',
  duration: 3.76,
  timestamp: '2022-01-05T06:18:01.256Z',
  attempts: 1,
  camera: 'front',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 08:18:04 info: done processing Door Camera: 1641363451.951447-vt1iga in 7.38 sec
22-01-05 08:18:04 info: {
  id: '1641363451.951447-vt1iga',
  duration: 7.38,
  timestamp: '2022-01-05T06:18:04.877Z',
  attempts: 12,
  camera: 'Door Camera',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 08:18:05 info: done processing Front: 1641363452.370683-br83hu in 8.35 sec
22-01-05 08:18:05 info: {
  id: '1641363452.370683-br83hu',
  duration: 8.35,
  timestamp: '2022-01-05T06:18:05.849Z',
  attempts: 11,
  camera: 'Front',
  zones: [],
  matches: [],
  misses: []
}
22-01-05 08:18:06 info: done processing Door Camera: 1641363451.951447-vt1iga in 8.51 sec
22-01-05 08:18:06 info: {
  id: '1641363451.951447-vt1iga',
  duration: 8.51,
  timestamp: '2022-01-05T06:18:06.001Z',
  attempts: 12,
  camera: 'Door Camera',
  zones: [],
  matches: [],
  misses: [
    {
      name: 'noy',
      confidence: 68.49,
      match: false,
      box: [Object],
      checks: [Array],
      type: 'latest',
      duration: 1.69,
      detector: 'deepstack',
      filename: '02542010-a9bb-4ce1-889d-e041b5f30e5b.jpg'
    }

this is the url test you told me last time

The reason why these are not passed to homeassistant is because the box size is too small, and therefore not a valid match.

You can see this below each picture as the box size has red text. The default box size requirement is kinda large, which makes sense as very small pictures are not good large enough to get good results from.

You can set a lower requirement to the box size, but this can result in a lot of false identifications.

1 Like

oh ok. thank you!
how I can change the requirement to the box size?

It’s configured in the config, default is 1000 but you can set it as needed:

detect:
  match:
    # minimum area in pixels to consider a result a match
    min_area: 1000

you can tell me where exactly?
I’m already confused by all the configuration files

This is configured in the DoubleTake configuration. (Within the doubletake App, you press the config tab at the top)

Be aware, that lowering the box size, will make face recognition much more unreliable, due to the fact that the area of pixels to match, are much smaller.

Here is my config. (Which is still undergoing test)

# global detect settings (default: shown below)
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: 80
    # hours to keep match images until they are deleted
    purge: 168
    # minimum area in pixels to consider a result a match
    min_area: 1000

  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: 40
    # hours to keep unknown images until they are deleted
    purge: 8
    # minimum area in pixels to keep an unknown result
    min_area: 0
1 Like

I must warn you, that if you lower the “min_area” to much. It will not be able to identify persons correctly. You will simply have a system, that is going to ask you to constantly teach it, even though your human eyes are able to see who it is on the picture. Or it will simply make a lot of false positives.

My settings is currently “min_area: 1000”, but I am not able to get any good results as the box area is just to small.

An extra issue is when trying to identify pictures with night vision on. This is even worse. :slight_smile:

Hi, can I use doubletake without frigate? I’d like to use rstp flow. I have hikvision NVR with 12 cameras. Thanks

You don’t need Frigate but I don’t think you can configure a camera direct to double take. It would need to go through a detectors: GitHub - jakowenko/double-take: Unified UI and API for processing and training images for facial recognition.

I was actually wondering about that too. I have Ubiquiti cams, which have person and vehicle detection. And i know that many cameras have this feature today.

I use frigate now, and it works just fine. But I only have CPU as detector, as I cannot find a single Coral USB anywhere :frowning:

I think you might be able to make it work, if it was possible to simply have a folder to drop images into and then monitor this for processing. This way, you would be able to dump images based on events from cameras, which have their own “detectors”.

I thought the detectors / Frigate NVR does the detection and passes the information to double-take which then draws the boxes around a face so double-take doesn’t do the recognition itself so the camera would need to also dump that information into the folder of meta data in the image from the camera for double-take to pick up.

I’d suggest raising a feature request.

I have 6 hikvision cams and they working good with double take but I want to buy doorbell for only the faces recognize, someone know if this doorbell can integrate with HA and double ?

Hi All

Anyone getting the bellow ?

at RedirectableRequest.handleRequestTimeout (/double-take/api/node_modules/axios/lib/adapters/http.js:328:16)


at RedirectableRequest.emit (node:events:390:28)


at Timeout.<anonymous> (/double-take/api/node_modules/follow-redirects/index.js:164:12)


at listOnTimeout (node:internal/timers:557:17)


at processTimers (node:internal/timers:500:7)

error: Error: stream error: timeout of 5000ms exceeded

at createError (/double-take/api/node_modules/axios/lib/core/createError.js:16:15)


at RedirectableRequest.handleRequestTimeout (/double-take/api/node_modules/axios/lib/adapters/http.js:328:16)


at RedirectableRequest.emit (node:events:390:28)


at Timeout.<anonymous> (/double-take/api/node_modules/follow-redirects/index.js:164:12)


at listOnTimeout (node:internal/timers:557:17)


at processTimers (node:internal/timers:500:7)

error: Error: stream error: timeout of 5000ms exceeded

at createError (/double-take/api/node_modules/axios/lib/core/createError.js:16:15)


at RedirectableRequest.handleRequestTimeout (/double-take/api/node_modules/axios/lib/adapters/http.js:328:16)


at RedirectableRequest.emit (node:events:390:28)


at Timeout.<anonymous> (/double-take/api/node_modules/follow-redirects/index.js:164:12)


at listOnTimeout (node:internal/timers:557:17)


at processTimers (node:internal/timers:500:7)

error: Error: stream error: timeout of 5000ms exceeded

at createError (/double-take/api/node_modules/axios/lib/core/createError.js:16:15)


at RedirectableRequest.handleRequestTimeout (/double-take/api/node_modules/axios/lib/adapters/http.js:328:16)


at RedirectableRequest.emit (node:events:390:28)


at Timeout.<anonymous> (/double-take/api/node_modules/follow-redirects/index.js:164:12)


at listOnTimeout (node:internal/timers:557:17)


at processTimers (node:internal/timers:500:7)

error: Error: stream error: timeout of 5000ms exceeded

at createError (/double-take/api/node_modules/axios/lib/core/createError.js:16:15)


at RedirectableRequest.handleRequestTimeout (/double-take/api/node_modules/axios/lib/adapters/http.js:328:16)


at RedirectableRequest.emit (node:events:390:28)


at Timeout.<anonymous> (/double-take/api/node_modules/follow-redirects/index.js:164:12)


at listOnTimeout (node:internal/timers:557:17)


at processTimers (node:internal/timers:500:7)

error: Error: stream error: timeout of 5000ms exceeded

at createError (/double-take/api/node_modules/axios/lib/core/createError.js:16:15)


at RedirectableRequest.handleRequestTimeout (/double-take/api/node_modules/axios/lib/adapters/http.js:328:16)


at RedirectableRequest.emit (node:events:390:28)


at Timeout.<anonymous> (/double-take/api/node_modules/follow-redirects/index.js:164:12)


at listOnTimeout (node:internal/timers:557:17)


at processTimers (node:internal/timers:500:7)

error: Error: stream error: timeout of 5000ms exceeded

at createError (/double-take/api/node_modules/axios/lib/core/createError.js:16:15)


at RedirectableRequest.handleRequestTimeout (/double-take/api/node_modules/axios/lib/adapters/http.js:328:16)


at RedirectableRequest.emit (node:events:390:28)


at Timeout.<anonymous> (/double-take/api/node_modules/follow-redirects/index.js:164:12)


at listOnTimeout (node:internal/timers:557:17)


at processTimers (node:internal/timers:500:7)

error: Error: stream error: timeout of 5000ms exceeded

at createError (/double-take/api/node_modules/axios/lib/core/createError.js:16:15)


at RedirectableRequest.handleRequestTimeout (/double-take/api/node_modules/axios/lib/adapters/http.js:328:16)


at RedirectableRequest.emit (node:events:390:28)


at Timeout.<anonymous> (/double-take/api/node_modules/follow-redirects/index.js:164:12)


at listOnTimeout (node:internal/timers:557:17)


at processTimers (node:internal/timers:500:7)

error: Error: stream error: timeout of 5000ms exceeded

at createError (/double-take/api/node_modules/axios/lib/core/createError.js:16:15)


at RedirectableRequest.handleRequestTimeout (/double-take/api/node_modules/axios/lib/adapters/http.js:328:16)


at RedirectableRequest.emit (node:events:390:28)


at Timeout.<anonymous> (/double-take/api/node_modules/follow-redirects/index.js:164:12)


at listOnTimeout (node:internal/timers:557:17)


at processTimers (node:internal/timers:500:7)

error: Error: stream error: timeout of 5000ms exceeded

at createError (/double-take/api/node_modules/axios/lib/core/createError.js:16:15)


at RedirectableRequest.handleRequestTimeout (/double-take/api/node_modules/axios/lib/adapters/http.js:328:16)


at RedirectableRequest.emit (node:events:390:28)


at Timeout.<anonymous> (/double-take/api/node_modules/follow-redirects/index.js:164:12)


at listOnTimeout (node:internal/timers:557:17)


at processTimers (node:internal/timers:500:7)

info: processing living_room: f89650f6-fad7-494d-bd03-76f784ba97fe

error: SqliteError: too many SQL variables

at Database.prepare (/double-take/api/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)


at module.exports.get (/double-take/api/src/controllers/match.controller.js:97:6)


at newFn (/double-take/api/node_modules/express-async-errors/index.js:16:20)


at Layer.handle [as handle_request] (/double-take/api/node_modules/express/lib/router/layer.js:95:5)


at next (/double-take/api/node_modules/express/lib/router/route.js:137:13)


at /double-take/api/src/middlewares/index.js:42:5


at newFn (/double-take/api/node_modules/express-async-errors/index.js:16:20)


at Layer.handle [as handle_request] (/double-take/api/node_modules/express/lib/router/layer.js:95:5)


at next (/double-take/api/node_modules/express/lib/router/route.js:137:13)


at middleware (/double-take/api/node_modules/express-validator/src/middlewares/check.js:16:13)

info: processing living_room: 1642264300.787039-5w3qlf

error: Error: url validation error: timeout of 5000ms exceeded

at createError (/double-take/api/node_modules/axios/lib/core/createError.js:16:15)


at RedirectableRequest.handleRequestTimeout (/double-take/api/node_modules/axios/lib/adapters/http.js:328:16)


at RedirectableRequest.emit (node:events:390:28)


at Timeout.<anonymous> (/double-take/api/node_modules/follow-redirects/index.js:164:12)


at listOnTimeout (node:internal/timers:557:17)


at processTimers (node:internal/timers:500:7)

info: done processing living_room: f89650f6-fad7-494d-bd03-76f784ba97fe in 0.01 sec

info: {

id: ‘f89650f6-fad7-494d-bd03-76f784ba97fe’,

duration: 0.01,

timestamp: ‘2022-01-15T16:31:59.143Z’,

attempts: 0,

camera: ‘living_room’,

I keept getting before the SqliteError: too many SQL variables however double-take would still work when checking home assistant presence … but I couldn`t see any photos in the UI… so I just ignored the issue as I obviously want presence detection in HA if it works fine not botter about the sql error …

howevwer lately I noticed a slight delay in the detection and just went to check the containers logs and I get this … tried to force recreated … all looks green in config but these errors are persistent …

Any help would be greatly appreciated.