ไม่สามารถกําหนดค่าความเชื่อมั่นจากผลลัพธ์เอาต์พุตของแบ็คโบน MobileNetV2 ที่มีโมเดลหัว ATSS
ประเภทข้อมูล: การแก้ไขปัญหา | ID บทความ: 000098366 | การตรวจสอบครั้งล่าสุด: 13/04/2024
for i, detection in enumerate(detections):
class_id = labels[i]
xmin, ymin, xmax, ymax, confidence = detection
if confidence > 0.5:
label = int(labels[class_id])
xmin = int(xmin * w)
ymin = int(ymin * h)
xmax = int(xmax * w)
ymax = int(ymax * h)
log.info(f'Found: label = (label), confidence = (confidence:.2f), ' f'coords = ((xmin), (ymin)), ((xmax), (ymax)) ')