Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.

Allow list of ROI and give each a name #180

Open
robmarkcole opened this issue Jan 8, 2021 · 2 comments
Open

Allow list of ROI and give each a name #180

robmarkcole opened this issue Jan 8, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@robmarkcole
Copy link
Owner

robmarkcole commented Jan 8, 2021

A single camera might cover, e.g. a garden and a driveway. We might want both as distinct ROI. Furthermore we might have several cameras watching a single ROI and want to create an automation that fires when a target object is detected in the ROI by ANY camera. Naming the ROI will allow this.

Scope:

  • Allow a list of ROI to be created (see how zone is configured)
  • Add a name to each ROI
  • Include ROI name in events

Note: also update the entity state to count all objects in any ROI, since there can be many ROI. The events include the ROI location of objects and so the events should be used to trigger automations. The entity count per ROI can be exposed as an attribute. Note also that a single object can be in multiple ROI if the overlap, so will fire an event per ROI

@robmarkcole
Copy link
Owner Author

This is probably a feature to leave until an official integration, since it would be a breaking change

@robmarkcole
Copy link
Owner Author

Restrict to four point polygon - by combining multiple of these almost any desired shape can be created

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant