-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ivelin
committed
Aug 30, 2021
1 parent
0593f83
commit ae52c98
Showing
5 changed files
with
140 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
###################################### | ||
# Ambianic main configuration file # | ||
###################################### | ||
version: '2021.08.30.test' | ||
|
||
# path to the data directory | ||
data_dir: ./data | ||
|
||
# Set logging level to one of DEBUG, INFO, WARNING, ERROR | ||
logging: | ||
file: ./data/ambianic-log.txt | ||
level: INFO | ||
# set a less noisy log level for the console output | ||
# console_level: WARNING | ||
|
||
# Store notifications provider configuration | ||
# see https://github.com/caronc/apprise#popular-notification-services for syntax examples | ||
# notifications: | ||
# catch_all_email: | ||
# include_attachments: true | ||
# providers: | ||
# - mailto://userid:[email protected] | ||
# alert_fall: | ||
# providers: | ||
# - mailto://userid:[email protected] | ||
# - json://hostname/a/path/to/post/to | ||
|
||
# Pipeline event timeline configuration | ||
timeline: | ||
event_log: ./data/timeline-event-log.yaml | ||
|
||
# Cameras and other input data sources | ||
# Using Home Assistant conventions to ease upcoming integration | ||
sources: | ||
|
||
# # direct support for raspberry picamera | ||
# picamera: | ||
# uri: picamera | ||
# type: video | ||
# live: true | ||
# | ||
# # local video device integration example | ||
# webcam: | ||
# uri: /dev/video0 | ||
# type: video | ||
# live: true | ||
|
||
recorded_cam_feed: | ||
uri: file:///workspace/tests/pipeline/avsource/test2-cam-person1.mkv | ||
type: video | ||
# live: true | ||
|
||
ai_models: | ||
image_detection: | ||
model: | ||
tflite: ai_models/mobilenet_ssd_v2_coco_quant_postprocess.tflite | ||
edgetpu: ai_models/mobilenet_ssd_v2_coco_quant_postprocess_edgetpu.tflite | ||
labels: ai_models/coco_labels.txt | ||
face_detection: | ||
model: | ||
tflite: ai_models/mobilenet_ssd_v2_face_quant_postprocess.tflite | ||
edgetpu: ai_models/mobilenet_ssd_v2_face_quant_postprocess_edgetpu.tflite | ||
labels: ai_models/coco_labels.txt | ||
top_k: 2 | ||
fall_detection: | ||
model: | ||
tflite: ai_models/posenet_mobilenet_v1_100_257x257_multi_kpt_stripped.tflite | ||
edgetpu: ai_models/posenet_mobilenet_v1_075_721_1281_quant_decoder_edgetpu.tflite | ||
labels: ai_models/pose_labels.txt | ||
|
||
# A named pipeline defines an ordered sequence of operations | ||
# such as reading from a data source, AI model inference, saving samples and others. | ||
pipelines: | ||
# Pipeline names could be descriptive, e.g. front_door_watch or entry_room_watch. | ||
area_watch: | ||
- source: recorded_cam_feed | ||
- detect_objects: # run ai inference on the input data | ||
ai_model: image_detection | ||
confidence_threshold: 0.6 | ||
# Watch for any of the labels listed below. The labels must be from the model trained label set. | ||
# If no labels are listed, then watch for all model trained labels. | ||
label_filter: | ||
- person | ||
- car | ||
- save_detections: # save samples from the inference results | ||
positive_interval: 300 # how often (in seconds) to save samples with ANY results above the confidence threshold | ||
idle_interval: 6000 # how often (in seconds) to save samples with NO results above the confidence threshold | ||
- detect_falls: # look for falls | ||
ai_model: fall_detection | ||
confidence_threshold: 0.6 | ||
- save_detections: # save samples from the inference results | ||
positive_interval: 10 | ||
idle_interval: 600000 | ||
# notify: # notify a thirdy party service | ||
# providers: | ||
# - alert_fall | ||
|
||
|
Oops, something went wrong.