Skip to content

Conversation

SkalskiP
Copy link
Collaborator

@SkalskiP SkalskiP commented Feb 6, 2023

Description

🚀 Added

  • supervision.get_polygon_center function - takes in a polygon as a 2-dimensional numpy.ndarray and returns the center of the polygon as a Point object
  • supervision.draw_polygon function - draw a polygon on a scene
  • supervision.draw_text function - draw a text on a scene
  • supervision.ColorPalette.default() - class method - to generate default ColorPalette
  • supervision.generate_2d_mask function - generate a 2D mask from a polygon
  • supervision.PolygonZone class - to define polygon zones and validate if supervision.Detections are in the zone
  • supervision.PolygonZoneAnnotator class - to draw supervision.PolygonZone on scene

🌱 Changed

  • VideoInfo API - change the property name resolution -> resolution_wh to make it more descriptive; convert VideoInfo to dataclass
  • process_frame API - change argument name frame -> scene to make it consistent with other classes and methods
  • LineCounter API - rename class LineCounter -> LineZone to make it consistent with PolygonZone
  • LineCounterAnnotator API - rename class LineCounterAnnotator -> LineZoneAnnotator

🔧 Fixed

  • show_frame_in_notebook - clean up docstring

@SkalskiP SkalskiP merged commit 2e76e3d into main Feb 7, 2023
@SkalskiP SkalskiP deleted the feature/polygon-zone branch August 8, 2023 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant