Ultralytics YOLO27: Join the waitlist.
License YOLO
Back to Ultralytics Glossary

Image Recognition

Image recognition identifies what an image contains, from one label for the whole picture to every object, face, or word in it. How it works and its forms.

Image recognition is the umbrella term for software identifying what an image contains: objects, people, places, text, or actions. In everyday use it is a synonym for image classification, assigning a label such as "golden retriever" or "pneumonia" to a whole image. In research, "visual recognition" covers the wider family of tasks that identify image content, as in the ImageNet Large Scale Visual Recognition Challenge, which ran from 2010 to 2017 with classification, localization, and object detection tracks.

How Image Recognition Works#

A recognition model turns pixels into a compact description and then compares that description with what it knows. A backbone, either a convolutional neural network (CNN) or a vision transformer (ViT), extracts features layer by layer, from edges and textures in early layers to object parts and whole objects in deeper ones, and pools them into a feature vector, or embedding. What happens next depends on how the set of possible answers is defined:

A classifier head trained with supervised learning on labeled images, such as the 1.28 million training images of ImageNet's 1,000 classes, picks the most probable of its fixed classes. Face and product recognition compare the embedding with a gallery of stored examples, so new people or products are added without retraining. Zero-shot models such as OpenAI's CLIP embed images and text in the same space and recognize any category that can be written as a text prompt.

Before deep learning, recognition systems fed hand-designed features, such as SIFT keypoints and histograms of oriented gradients, to classifiers such as support vector machines. In 2012, AlexNet cut the ImageNet top-5 error rate to 15.3% from the runner-up's 26.2%, and learned features have dominated since.

Forms of Image Recognition#

YOLO26 handles the first two forms: its -cls models assign one of the 1,000 ImageNet classes to a whole image, and its detection models name and locate each object. This example runs both on the same photo:

from ultralytics import YOLO

image = "https://ultralytics.com/images/bus.jpg"

# Image-level recognition: one label for the whole picture
classifier = YOLO("yolo26n-cls.pt")
results = classifier(image)
result = results[0]
print("Image label:", result.names[result.probs.top1])

# Object-level recognition: a label for every object found
detector = YOLO("yolo26n.pt")
results = detector(image)
result = results[0]
print("Objects:", [result.names[int(c)] for c in result.boxes.cls])

The classifier returns a single ImageNet label for the whole photo, and the detector returns one COCO label for each object it finds.

Real-World Applications#

  • Medical image analysis: Models sort chest X-rays, skin photos, and retinal scans into normal and abnormal so clinicians review urgent cases first.
  • Retail: Product recognition matches items on shelves or at checkout against a catalog of product images, including products added after the model was trained.
  • Manufacturing: Line cameras recognize defective parts and wrong or missing components before packaging.
  • Accessibility: Screen readers and phone apps describe photos and read signs aloud for people who are blind or have low vision.

Recognition Beyond Fixed Labels#

Fixed-label classifiers recognize only the classes they were trained on, and adding one means collecting labeled images and retraining. Models trained on image-text pairs remove that limit, and vision-language models extend it to describing scenes and answering questions about them. CLIP, trained on 400 million image-text pairs from the internet, matched the ImageNet accuracy of the original ResNet-50 zero-shot, without using any of the 1.28 million labeled images that ResNet-50 was trained on.

Explore solutions

Computer vision in sports

Computer vision in sports

Discover how Ultralytics YOLO powers sports vision with player and ball tracking, performance analytics, coaching insights, and athlete rehabilitation.
Learn more
Computer vision for aerial imagery

Computer vision for aerial imagery

Turn drone and aerial imagery into real-time insights for agriculture, aquaculture, conservation, and geospatial analysis with Ultralytics YOLO.
Learn more
Computer vision in aerospace

Computer vision in aerospace

Apply computer vision in aerospace with Ultralytics YOLO for aircraft inspection, runway FOD detection, airport ground operations, and composite defect detection.
Learn more
Computer vision in security

Computer vision in security

Protect every site with Ultralytics YOLO models. Vision AI powers perimeter monitoring, threat detection, license-plate recognition, and workplace safety.
Learn more
Computer vision in robotics

Computer vision in robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Computer vision in logistics

Computer vision in logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Computer vision in retail

Computer vision in retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Computer vision in healthcare

Computer vision in healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Computer vision in manufacturing

Computer vision in manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Computer vision in automotive

Computer vision in automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Computer vision in agriculture

Computer vision in agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning