HASS-Deepstack-object icon indicating copy to clipboard operation
HASS-Deepstack-object copied to clipboard

Allow list of ROI and give each a name

Open robmarkcole opened this issue 4 years ago • 2 comments

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 avatar Jan 08 '21 08:01 robmarkcole

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

robmarkcole avatar Jan 09 '21 10:01 robmarkcole

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

robmarkcole avatar Feb 08 '21 05:02 robmarkcole