Hi, I do have some problem with this, or I don’t understand…
I do get images processed:
see the log:
2020-01-24T07:36:58.113Z DEBUG tflite/detector.go:249 Got Image {"package": "detector.tflite", "name": "default", "id": "", "format": "jpeg", "width": 640, "height": 360}
2020-01-24T07:36:58.113Z DEBUG tflite/detector.go:251 Resizing Image {"package": "detector.tflite", "name": "default", "id": "", "format": "jpeg", "width": 300, "height": 300}
2020-01-24T07:36:58.919Z DEBUG tflite/detector.go:386 Detection {"package": "detector.tflite", "name": "default", "id": "", "label": "car", "confidence": 57.421875, "location": "0.280306,0.000000,0.990142,0.304017"}
2020-01-24T07:36:58.919Z DEBUG tflite/detector.go:386 Detection {"package": "detector.tflite", "name": "default", "id": "", "label": "car", "confidence": 50, "location": "0.325107,0.480231,0.371157,0.505891"}
2020-01-24T07:36:58.919Z DEBUG tflite/detector.go:386 Detection {"package": "detector.tflite", "name": "default", "id": "", "label": "person", "confidence": 43.75, "location": "0.362314,0.168602,0.403541,0.188846"}
2020-01-24T07:36:58.919Z DEBUG tflite/detector.go:386 Detection {"package": "detector.tflite", "name": "default", "id": "", "label": "car", "confidence": 41.40625, "location": "0.330578,0.435106,0.371805,0.466125"}
2020-01-24T07:36:58.919Z DEBUG tflite/detector.go:386 Detection {"package": "detector.tflite", "name": "default", "id": "", "label": "person", "confidence": 40.234375, "location": "0.296463,0.118346,0.384501,0.153546"}
2020-01-24T07:36:58.919Z DEBUG tflite/detector.go:386 Detection {"package": "detector.tflite", "name": "default", "id": "", "label": "person", "confidence": 39.0625, "location": "0.311188,0.158719,0.377427,0.186490"}
2020-01-24T07:36:58.919Z DEBUG tflite/detector.go:386 Detection {"package": "detector.tflite", "name": "default", "id": "", "label": "car", "confidence": 39.0625, "location": "0.304540,0.291635,0.371835,0.363321"}
2020-01-24T07:36:58.919Z DEBUG tflite/detector.go:386 Detection {"package": "detector.tflite", "name": "default", "id": "", "label": "person", "confidence": 37.890625, "location": "0.365978,0.216293,0.418236,0.252054"}
2020-01-24T07:36:58.919Z DEBUG tflite/detector.go:386 Detection {"package": "detector.tflite", "name": "default", "id": "", "label": "car", "confidence": 37.890625, "location": "0.317566,0.363860,0.348099,0.395875"}
2020-01-24T07:36:58.919Z DEBUG tflite/detector.go:386 Detection {"package": "detector.tflite", "name": "default", "id": "", "label": "person", "confidence": 35.546875, "location": "0.323988,0.214074,0.372275,0.245093"}
2020-01-24T07:36:58.919Z INFO tflite/detector.go:431 Detection Complete {"package": "detector.tflite", "name": "default", "id": "", "duration": 0.766470154, "detections": 10, "device": null}
2020-01-24T07:36:58.920Z INFO server/server.go:138 HTTP Request {"status": 200, "took": 0.826928864, "request": "/detect", "method": "POST", "package": "server.request", "request-id": "e86e6e6391fa/i41MoA2oOZ-004124", "remote": "192.168.200.30:57816"}
I addeed this to the configfile:
whitelist_external_dirs:
- /config/tmp
and the conf for doods:
image_processing:
- platform: doods
scan_interval: 5
url: "http://192.168.200.30:6915"
detector: default
file_out:
- "/tmp/{{ camera_entity.split('.')[1] }}_latest.jpg"
- "/tmp/{{ camera_entity.split('.')[1] }}_{{ now().strftime('%Y%m%d_%H%M%S') }}.jpg"
source:
# - entity_id: camera.baksidan
- entity_id: camera.groventre
# - entity_id: camera.stora_entren
confidence: 20
labels:
- name: person
- name: car
- name: truck
But when looking where I think the images files hould be I only have one file from 01:59