roflcoopter / viseron

Self-hosted, local only NVR and AI Computer Vision software. With features such as object detection, motion detection, face recognition and more, it gives you the power to keep an eye on your home, office or any other place you want to monitor.
MIT License
1.76k stars 179 forks source link

Voluptuous error extra keys not allowed @ data['cameras'][0]['object_detection']['mask'] #301

Closed olekenneth closed 2 years ago

olekenneth commented 2 years ago

Why do I get the config parsing error, do you know?

cameras:
  - name: Ute
    mqtt_name: ute
    host: 192.168.0.*
    port: 554
    username: ***
    password: "***"
    path: '/h264'
    height: 2592
    width: 1944
    fps: 5
    publish_image: true
    filter_args:
      - '-vf'
      - "transpose=2"
    object_detection:
      interval: 1
      mask:
        - points:
          - x: 7
            y: 515
          - x: 152
            y: 453
    static_mjpeg_streams:
      small:
        width: 100
        height: 100

I moved it to the global object_detection and got no error.

edit: add static_mjpeg_streams:-config

olekenneth commented 2 years ago

but it seems to not do anything at the global object_detection

olekenneth commented 2 years ago

I also get this: voluptuous.error.MultipleInvalid: extra keys not allowed @ data['cameras'][0]['static_mjpeg_streams']

olekenneth commented 2 years ago

Found the root cause. I'm running this image: https://hub.docker.com/r/roflcoopter/viseron-cuda. Not updated in 8 months.

olekenneth commented 2 years ago

If you get this error use roflcoopter/amd64-cuda-viseron