[{"data":1,"prerenderedAt":4},["ShallowReactive",2],{"readme:supervision":3},"\u003Cdiv align=\"center\">\n  \u003Cp>\n    \u003Ca href=\"https:\u002F\u002Fsupervision.roboflow.com\" rel=\"nofollow ugc noopener\">\n      \u003Cimg width=\"100%\" src=\"https:\u002F\u002Fmedia.roboflow.com\u002Fopen-source\u002Fsupervision\u002Frf-supervision-banner.png?updatedAt=1678995927529\" \u002F>\n    \u003C\u002Fa>\n  \u003C\u002Fp>\u003Cbr \u002F>\u003Cp>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Froboflow\u002Fnotebooks\" rel=\"nofollow ugc noopener\">notebooks\u003C\u002Fa> | \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Froboflow\u002Finference\" rel=\"nofollow ugc noopener\">inference\u003C\u002Fa> | \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fautodistill\u002Fautodistill\" rel=\"nofollow ugc noopener\">autodistill\u003C\u002Fa> | \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Froboflow\u002Fmultimodal-maestro\" rel=\"nofollow ugc noopener\">maestro\u003C\u002Fa>\u003C\u002Fp>\n\u003Cbr \u002F>\u003Cp>\u003Ca href=\"https:\u002F\u002Fbadge.fury.io\u002Fpy\u002Fsupervision\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fbadge.fury.io\u002Fpy\u002Fsupervision.svg\" alt=\"version\" \u002F>\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fpypistats.org\u002Fpackages\u002Fsupervision\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fdm\u002Fsupervision\" alt=\"downloads\" \u002F>\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Froboflow\u002Fsupervision\u002Fblob\u002FHEAD\u002FLICENSE.md\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fl\u002Fsupervision\" alt=\"license\" \u002F>\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fbadge.fury.io\u002Fpy\u002Fsupervision\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fpyversions\u002Fsupervision\" alt=\"python-version\" \u002F>\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fcodecov.io\u002Fgh\u002Froboflow\u002Fsupervision\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fcodecov.io\u002Fgh\u002Froboflow\u002Fsupervision\u002Fgraph\u002Fbadge.svg?token=HMNJ5FVZ36\" alt=\"codecov\" \u002F>\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fsnyk.io\u002Fadvisor\u002Fpython\u002Fsupervision\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fsnyk.io\u002Fadvisor\u002Fpython\u002Fsupervision\u002Fbadge.svg\" alt=\"snyk\" \u002F>\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Froboflow\u002Fsupervision\u002Fblob\u002Fmain\u002Fdemo.ipynb\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fcolab.research.google.com\u002Fassets\u002Fcolab-badge.svg\" alt=\"colab\" \u002F>\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fspaces\u002FRoboflow\u002FAnnotators\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%A4%97%20Hugging%20Face-Spaces-blue\" alt=\"gradio\" \u002F>\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fdiscord.gg\u002FGbfgXGJ8Bk\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F1159501506232451173?logo=discord&amp;label=discord&amp;labelColor=fff&amp;color=5865f2&amp;link=https%3A%2F%2Fdiscord.gg%2FGbfgXGJ8Bk\" alt=\"discord\" \u002F>\u003C\u002Fa>\u003C\u002Fp>\n\u003Cdiv align=\"center\">\n    \u003Ca href=\"https:\u002F\u002Ftrendshift.io\u002Frepositories\u002F124\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Ftrendshift.io\u002Fapi\u002Fbadge\u002Frepositories\u002F124\" alt=\"roboflow%2Fsupervision | Trendshift\" width=\"250\" height=\"55\" \u002F>\u003C\u002Fa>\n  \u003C\u002Fdiv>\u003C\u002Fdiv>\u003Cdetails>\n\u003Csummary>\u003Cstrong>📑 Table of Contents\u003C\u002Fstrong>\u003C\u002Fsummary>\u003Cul>\n\u003Cli>\u003Ca href=\"#-hello\" rel=\"nofollow ugc noopener\">👋 Hello\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"#-install\" rel=\"nofollow ugc noopener\">💻 Install\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"#-quickstart\" rel=\"nofollow ugc noopener\">🔥 Quickstart\u003C\u002Fa>\u003Cul>\n\u003Cli>\u003Ca href=\"#models\" rel=\"nofollow ugc noopener\">Models\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"#annotators\" rel=\"nofollow ugc noopener\">Annotators\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"#datasets\" rel=\"nofollow ugc noopener\">Datasets\u003C\u002Fa>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"#-tutorials\" rel=\"nofollow ugc noopener\">🎬 Tutorials\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"#-built-with-supervision\" rel=\"nofollow ugc noopener\">💜 Built with Supervision\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"#-documentation\" rel=\"nofollow ugc noopener\">📚 Documentation\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"#-contribution\" rel=\"nofollow ugc noopener\">🏆 Contribution\u003C\u002Fa>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fdetails>\u003Ch2>👋 Hello\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>We are your essential toolkit for computer vision.\u003C\u002Fstrong> From data loading to real-time zone counting, we provide the building blocks so you can focus on building applications around your models. 🤝\u003C\u002Fp>\n\u003Ch2>💻 Install\u003C\u002Fh2>\n\u003Cp>Pip install the supervision package in a \u003Ca href=\"https:\u002F\u002Fwww.python.org\u002F\" rel=\"nofollow ugc noopener\">\u003Cstrong>Python&gt;=3.10\u003C\u002Fstrong>\u003C\u002Fa> environment.\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">pip install supervision\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Read more about conda, mamba, and installing from source in our \u003Ca href=\"https:\u002F\u002Froboflow.github.io\u002Fsupervision\u002F\" rel=\"nofollow ugc noopener\">guide\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch2>🔥 Quickstart\u003C\u002Fh2>\n\u003Ch3>Models\u003C\u002Fh3>\n\u003Cp>Supervision was designed to be model agnostic. Just plug in any classification, detection, or segmentation model. For your convenience, we have created \u003Ca href=\"https:\u002F\u002Fsupervision.roboflow.com\u002Flatest\u002Fdetection\u002Fcore\u002F#detections\" rel=\"nofollow ugc noopener\">connectors\u003C\u002Fa> for the most popular libraries like Ultralytics, Transformers, MMDetection, or Inference. Other integrations, like \u003Ccode>rfdetr\u003C\u002Fcode>, already return \u003Ccode>sv.Detections\u003C\u002Fcode> directly.\u003C\u002Fp>\n\u003Cp>Install the optional dependencies for this example with \u003Ccode>pip install pillow rfdetr\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-python\">import supervision as sv\nfrom PIL import Image\nfrom rfdetr import RFDETRSmall\n\nimage = Image.open(\"path\u002Fto\u002Fimage.jpg\")\nmodel = RFDETRSmall()\ndetections = model.predict(image, threshold=0.5)\n\nlen(detections)\n# 5\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cdetails>\n\u003Csummary>👉 more model connectors\u003C\u002Fsummary>\u003Cul>\n\u003Cli>\u003Cp>inference\u003C\u002Fp>\n\u003Cp>Running with \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Froboflow\u002Finference\" rel=\"nofollow ugc noopener\">Inference\u003C\u002Fa> requires a \u003Ca href=\"https:\u002F\u002Fdocs.roboflow.com\u002Fapi-reference\u002Fauthentication#retrieve-an-api-key\" rel=\"nofollow ugc noopener\">Roboflow API KEY\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-python\">import supervision as sv\nfrom PIL import Image\nfrom inference import get_model\n\nimage = Image.open(\"path\u002Fto\u002Fimage.jpg\")\nmodel = get_model(model_id=\"rfdetr-small\", api_key=\"ROBOFLOW_API_KEY\")\nresult = model.infer(image)[0]\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fdetails>",1784844296397]