yolov10 获取误检,漏检
目录
yolov10 获取误检,漏检
yolov10 获取异常样本转训练
yolov10 获取误检,漏检
import mathimport cv2
import timeimport numpy as np
import torchfrom ultralytics import YOLOv10
import json
import os
from PIL import Image, ImageDraw, ImageFont
import shutil
if 0:from seg_net.cls_seg import ImageSegmentationfrom direction.dao_direction_inference_class import ImageClassifier
import argparseclass DetectDao:def __init__(self, model_checkpoint, input_ruler_length=50, font_path="hyyj.ttf", sam_checkpoint=None):self.model = YOLOv10(model_checkpoint)self.input_ruler_length = input_ruler_lengthself.font_path =