You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 19, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,16 +27,19 @@ image_processing:
27
27
port: 80
28
28
api_key: mysecretkey
29
29
# custom_model: mask
30
+
# confidence: 80
30
31
save_file_folder: /config/snapshots/
31
32
save_timestamped_file: True
32
33
# roi_x_min: 0.35
33
34
roi_x_max: 0.8
34
35
#roi_y_min: 0.4
35
36
roi_y_max: 0.8
36
37
targets:
37
-
- person
38
-
- vehicle
39
-
- dog
38
+
- target: person
39
+
- target: vehicle
40
+
confidence: 60
41
+
- target: car
42
+
confidence: 40
40
43
source:
41
44
- entity_id: camera.local_file
42
45
```
@@ -47,6 +50,7 @@ Configuration variables:
47
50
- **api_key**: (Optional) Any API key you have set.
48
51
- **timeout**: (Optional, default 10 seconds) The timeout for requests to deepstack.
49
52
- **custom_model**: (Optional) The name of a custom model if you are using one. Don't forget to add the targets from the custom model below
53
+
- **confidence**: (Optional) The confidence (in %) above which detected targets are counted in the sensor state. Default value: 80
50
54
- **save_file_folder**: (Optional) The folder to save processed images to. Note that folder path should be added to [whitelist_external_dirs](https://www.home-assistant.io/docs/configuration/basic/)
51
55
- **save_timestamped_file**: (Optional, default `False`, requires `save_file_folder` to be configured) Save the processed image with the time of detection in the filename.
52
56
- **show_boxes**: (optional, default `True`), if `False` bounding boxes are not shown on saved images
@@ -55,8 +59,7 @@ Configuration variables:
55
59
- **roi_y_min**: (optional, default 0), range 0-1, must be less than roi_y_max
56
60
- **roi_y_max**: (optional, default 1), range 0-1, must be more than roi_y_min
57
61
- **source**: Must be a camera.
58
-
- **targets**: The list of target object names and/or `object_type`, default `person`.
59
-
- **confidence**: (Optional) The confidence (in %) above which detected targets are counted in the sensor state. Default value: 80
62
+
- **targets**: The list of target object names and/or `object_type`, default `person`. Optionally a `confidence` can be set for this target, if not the default confidence is used. Note the minimum possible confidence is 10%.
60
63
61
64
For the ROI, the (x=0,y=0) position is the top left pixel of the image, and the (x=1,y=1) position is the bottom right pixel of the image. It might seem a bit odd to have y running from top to bottom of the image, but that is the coordinate system used by pillow.
0 commit comments