# example_9_2_1.yaml
image_processing:
  - platform: dlib_face_detect
    scan_interval: 1000000
    source:
      - entity_id: camera.cam_input
        name: face
script:
  dlib_face_detect:
    alias: 人脸探测并保存图片
    sequence:
      - service: image_processing.scan
        data:
          entity_id: image_processing.face
      - service: camera.snapshot
        data:
          entity_id: camera.cam_input
          filename: '/home/pi/Pictures/face.jpg'
camera:
  - platform: local_file
    name: image_to_be_processed
    file_path: /home/pi/Pictures/face.jpg
