I'm uploading a project from Roboflow to my program. returns an error:
Supervision Warnings: BoxAnnotator is deprecated:
BoxAnnotator
is deprecated and will be removed insupervision-0.22.0
. UseBounding Box Annotation
andLabel Annotator
insteadvisit https://app.roboflow.com/auth-cli to get your authentication token.
program code:
import cv2import numpy as npimport tkinter as tkfrom PIL import Image, ImageTkimport roboflow from inference import get_modelroboflow.login()#export ROBOFLOW_API_KEY="my_key"rf = Roboflow(api_key="my_key")project = rf.workspace("bottle-ixxqe").project("bottle-al9vg")version = project.version(1)dataset = version.download("yolov8")model = get_model(model_id="yolov8n-640")results = model.infer("https://media.roboflow.com/inference/people-walking.jpg")
what's wrong?
recommendations about the BoxAnnotator
I didn't find it.