mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-27 11:16:54 +00:00
Update tensorflow.markdown (#10183)
* Update tensorflow.markdown
Update with examples of scan interval and callng the scanning process based on state from an entity
* ✏️ Tweak
This commit is contained in:
parent
88b7e6ec92
commit
c27a7218bb
@ -160,3 +160,25 @@ image_processing:
|
||||
## Optimising resources
|
||||
|
||||
[Image processing components](/components/image_processing/) process the image from a camera at a fixed period given by the `scan_interval`. This leads to excessive processing if the image on the camera hasn't changed, as the default `scan_interval` is 10 seconds. You can override this by adding to your config `scan_interval: 10000` (setting the interval to 10,000 seconds), and then call the `image_processing.scan` service when you actually want to perform processing.
|
||||
|
||||
```yaml
|
||||
# Example advanced configuration.yaml entry
|
||||
image_processing:
|
||||
- platform: tensorflow
|
||||
scan_interval: 10000
|
||||
source:
|
||||
- entity_id: camera.driveway
|
||||
- entity_id: camera.backyard
|
||||
```
|
||||
|
||||
```yaml
|
||||
# Example advanced automations.yaml entry
|
||||
- alias: Tensorflow scanning
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.driveway
|
||||
action:
|
||||
- service: image_processing.scan
|
||||
entity_id: camera.driveway
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user