Yolo فيجن شنتشن
شنتشن
انضم الآن
مسرد المصطلحات

رأس الكشف

اكتشف الدور الحاسم لرؤوس الاكتشاف في الكشف عن الكائنات، وصقل خرائط الميزات لتحديد مواقع الكائنات وفئاتها بدقة.

A detection head acts as the final decision-making layer in an object detection neural network architecture. While the earlier layers of the model are responsible for understanding the shapes, textures, and features within an image, the detection head is the specific component that interprets this information to predict exactly what objects are present and where they are located. It transforms the abstract, high-level data produced by the feature extractor into actionable results, typically outputting a set of bounding boxes enclosing identified objects along with their corresponding class labels and confidence scores.

التمييز بين الرأس والعمود الفقري والرقبة

To fully grasp the function of a detection head, it is helpful to visualize modern detectors as being composed of three primary stages, each serving a distinct purpose in the computer vision (CV) pipeline:

  • Backbone: This is the initial part of the network, often a Convolutional Neural Network (CNN) like ResNet or CSPNet. It processes the raw input image to create feature maps that represent visual patterns.
  • Neck: Sitting between the backbone and the head, the neck refines and combines features from different scales. Architectures like the Feature Pyramid Network (FPN) ensure the model can detect objects of varying sizes by aggregating context.
  • Head: The final component that consumes the refined features from the neck. It performs the actual task of classification (what is it?) and regression (where is it?).

التطور: القائم على المرجع مقابل غير القائم على المرجع

The design of detection heads has evolved significantly to improve speed and accuracy, particularly with the transition from traditional methods to modern real-time inference models.

تطبيقات واقعية

The precision of the detection head is critical for deploying artificial intelligence (AI) in safety-critical and industrial environments. Users can easily annotate data and train these specialized heads using the Ultralytics Platform.

  • القيادة الذاتية: في الذكاء الاصطناعي للسيارات، يتولى رأس الكشف مسؤولية التمييز بين المشاة وإشارات المرور والمركبات الأخرى في الوقت الفعلي. ويضمن الرأس عالي التحسين أن يظل زمن الاستدلال منخفضًا بما يكفي لتمكين المركبة من الاستجابة على الفور.
  • التشخيص الطبي: في تحليل الصور الطبية، يتم ضبط رؤوس الكشف بدقة لتحديد الشذوذات مثل الأورام في فحوصات التصوير بالرنين المغناطيسي. يجب أن يكون فرع الانحدار دقيقًا للغاية لتحديد الحدود الدقيقة للآفة، مما يساعد الأطباء في تقديم حلول الرعاية الصحية.

مثال على الرمز

The following example demonstrates how to load a يولو26 model and inspect the output of its detection head. When inference runs, the head processes the image and returns the final boxes containing coordinates and class IDs.

from ultralytics import YOLO

# Load the YOLO26n model (nano version)
model = YOLO("yolo26n.pt")

# Run inference on an image to utilize the detection head
results = model("https://ultralytics.com/images/bus.jpg")

# The detection head outputs are stored in results[0].boxes
for box in results[0].boxes:
    # Print the bounding box coordinates and the predicted class
    print(f"Class: {int(box.cls)}, Coordinates: {box.xywh.numpy()}")

This interaction highlights how the detection head translates complex neural network activations into readable data that developers can use for downstream tasks like object tracking or counting.

انضم إلى مجتمع Ultralytics

انضم إلى مستقبل الذكاء الاصطناعي. تواصل وتعاون وانمو مع المبتكرين العالميين

انضم الآن