Closed Rasantis closed 10 months ago
Hi, @Rasantis 👋🏻 ! Thanks a lot for your interest in supervision
. I am sorry that I have not been responsive for the last few days. Before Christmas, I was busy with duties unrelated to supervision, and I was off for the last few days.
Before we start, let's convert this issue into a discussion and move it to the Q&A section.
Search before asking
Question
I'm running this code on my raspberry pi 4 with picamera to detect and count people, using yolov8n, but sometimes it detects a class called none person, and then shows several boxes, when crossing the line it ends up counting these boxes with the class none person, and then, it ends up uncalibrating the count... I didn't find it in the documentation about this class called none person... how to disable it?
`import cv2 import json import numpy as np from picamera2 import Picamera2 from ultralytics import YOLO import supervision as sv import os
class PiLineCounter: def init(self, lines_json_path, model_path): with open(lines_json_path, 'r') as f: self.lines_data = json.load(f) self.model = YOLO(model_path)
if name == 'main': lines_json_path = "lines_with_doubled_data.json"
`
Additional
lines_with_doubled_data.json