-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
Is your feature request related to a problem? Please describe.
Along with virtual line virtual polygon are needed.
They can give us:
- Traffic "lane" control
- Monitoring area of interests
- Estimating how much time object were in certain area (well, it could be analyzed in postprocess via track information also)
Describe the solution you'd like
Implement VirtualPolygon:
- Constructor
- Determine if polygon either convex or concave
- Check if point in polygon (well, for convex and concave polygons algorithms may differ)
- Check if blob has entered polygon
- Check if blob has left polygon
- Scale function
Describe alternatives you've considered
nope
Additional context
We need also:
- Option to configure polygons
- Match polygons' Euclidean coordinates to WGS84
- Write test for math calculations (determine if point is inside of polygon is not easy task for some types of polygon)