The native addon makes sense, it definitely provides an easier entrypoint for users to get setup who aren’t as experienced. Once I release this version I can start to explore what’s involved in creating an addon.
I’ll get some sample docker-compose files added to the README as well to show what a more complete setup looks like.
HI, I was hoping someone could help me with some troubleshooting. I’ge googled around and searched the forum topic and I don’t see sililar issues. I am trying to run the docker container on a seporate rpi4 and this is the error I keep getting whether I use docker or docker-compose:
Creating double-take ... done
Attaching to double-take
double-take | /double-take/api/node_modules/sharp/lib/constructor.js:32
double-take | throw new Error(error);
double-take | ^
double-take |
double-take | Error:
double-take | Something went wrong installing the "sharp" module
double-take |
double-take | Error relocating /usr/lib/libvips.so.42: __ctime64: symbol not found
double-take |
double-take | - Remove the "node_modules/sharp" directory then run
double-take | "npm install --ignore-scripts=false --verbose sharp" and look for errors
double-take | - Consult the installation documentation at https://sharp.pixelplumbing.com/install
double-take | - Search for this error at https://github.com/lovell/sharp/issues
double-take |
double-take | at Object.<anonymous> (/double-take/api/node_modules/sharp/lib/constructor.js:32:9)
double-take | at Module._compile (internal/modules/cjs/loader.js:1072:14)
double-take | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
double-take | at Module.load (internal/modules/cjs/loader.js:937:32)
double-take | at Function.Module._load (internal/modules/cjs/loader.js:778:12)
double-take | at Module.require (internal/modules/cjs/loader.js:961:19)
double-take | at require (internal/modules/cjs/helpers.js:92:18)
double-take | at Object.<anonymous> (/double-take/api/node_modules/sharp/lib/index.js:3:15)
double-take | at Module._compile (internal/modules/cjs/loader.js:1072:14)
double-take | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
Hey, there is a issue right now with the Pi Docker images due to that sharp dependency. Do you mind opening up an issue on Github and we can track it from there. I have a pi at home I can do some debugging on. The amd arch builds should work fine though.
You are doing a great job David!
Decided to give your docker a shot today. Been a while since I tried and man… this have evolved a lot!
However… Have an issue
The images taken from Frigate is kinda small. I’ve set image height to 500 but the BOX is always a lite bit tiny for my confidence…
How to improve this?
Thank you! Let me know if you have any feature requests.
For those MQTT images you need to change the size from the Frigate config.yml file. You can always change the default min_area if you want to include smaller box sizes.
I have set up Double Take and trained on my familys faces so that most of the detections in the Double Take web-ui is successfull for all persons.
I have also created sensors as the instructions in this thread like:
And tried using the automation template from the github-page:
alias: Notify
trigger:
- platform: state
entity_id: sensor.double_take_cliff
- platform: state
entity_id: sensor.double_take_unknown
condition:
- condition: template
value_template: '{{ trigger.to_state.state != trigger.from_state.state }}'
action:
- service: notify.mobile_app
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://192.168.0.5: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://192.168.0.5: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://192.168.0.5: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://192.168.0.5:3000/api/storage/matches/{{trigger.to_state.attributes.unknown.filename}}?box=true&token={{trigger.to_state.attributes.token}}
{% endif %}
mode: parallel
max: 10
But nothing triggers. Do I need to do some additional configuration ?
Hi …
Having some issues with zones.
This is a snap from my yaml.
But the zone from camera: frigate_parkering is not used. It takes persons even from the street.
When people passing by the street it tryies to facematch even them…
cameras:
- frigate_dlink
- frigate_parkering
- frigate_entren
- frigate_lillstugan
- frigate_baksida
- frigate_inne_garage
- frigate_pathway
- frigate_pryttelverkstad
- frigate_tomten
# only process images from specific zones
zones:
- camera: frigate_entren
zone: entre_area
- camera: frigate_parkering
zone: parking_area
Try removing frigate_parkering from the cameras section. Because it’s defined in the zones you don’t need to have it in cameras. I believe this is the reason all zones are being processed for that camera. I can add in some additional logic in the next release to address this.
FYI - You also don’t need to define any cameras if you want to include all of them.
Thanks for a great project
What’s the recommendation for multiple detectors? any benefit of multple vs single?
Is the “Match” calculated from a single detector or only if all of them detect?