supervision-0.17.0
🚀 Added
sv.PixelateAnnotator
allowing to pixelate objects on images and videos. (#633)
walking-pixelate-corner-optimized.mp4
-
sv.TriangleAnnotator
allowing to annotate images and videos with triangle markers. (#652) -
sv.PolygonAnnotator
allowing to annotate images and videos with segmentation mask outline. (#602)>>> import supervision as sv >>> image = ... >>> detections = sv.Detections(...) >>> polygon_annotator = sv.PolygonAnnotator() >>> annotated_frame = polygon_annotator.annotate( ... scene=image.copy(), ... detections=detections ... )
walking-polygon-optimized.mp4
-
sv.assets
allowing download of video files that you can use in your demos. (#476)>>> from supervision.assets import download_assets, VideoAssets >>> download_assets(VideoAssets.VEHICLES) "vehicles.mp4"
-
Position.CENTER_OF_MASS
allowing to place labels in center of mass of segmentation masks. (#605) -
sv.scale_boxes
allowing to scalesv.Detections.xyxy
values. (#651) -
sv.calculate_dynamic_text_scale
andsv.calculate_dynamic_line_thickness
allowing text scale and line thickness to match image resolution. (#637) -
sv.Color.as_hex
allowing to extract color value in HEX format. (#620) -
sv.Classifications.from_timm
allowing to load classification result from timm models. (#572) -
sv.Classifications.from_clip
allowing to load classification result from clip model. (#478) -
sv.Detections.from_azure_analyze_image
allowing to load detection results from Azure Image Analysis. (#571)
🌱 Changed
-
sv.BoxMaskAnnotator
renaming it tosv.ColorAnnotator
. (#646) -
sv.MaskAnnotator
to make it 5x faster. (#606)
🛠️ Fixed
-
sv.DetectionDataset.from_yolo
to ignore empty lines in annotation files. (#584) -
sv.BlurAnnotator
to trim negative coordinates before bluring detections. (#555) -
sv.TraceAnnotator
to respect trace position. (#511)
🏆 Contributors
@onuralpszr (Onuralp SEZER), @hugoles (Hugo Dutra), @karanjakhar (Karan Jakhar), @kim-jeonghyun (Jeonghyun Kim), @fdloopes (
Felipe Lopes), @abhishek7kalra (Abhishek Kalra), @SummitStudiosDev, @xenteros @capjamesg (James Gallagher), @SkalskiP (Piotr Skalski)