Urgent.News

What's breaking now, across hundreds of outlets.

AI

My First Steps into Computer Vision: Teaching a Computer to Understand Images

My First Steps into Computer Vision: Teaching a Computer to Understand Images Have you ever looked at a photograph and immediately recognised a person, a car, or a tree? Humans do this so naturally that we rarely stop to think about it. But how does a computer recognise the same things? That was one of the questions I explored while learning about computer vision. Computer vision is a field of…

Computer vision is a branch of artificial intelligence that enables computers to understand and interpret images and videos. It has numerous applications, ranging from identifying objects in photographs to assisting doctors in analysing medical images. This article aims to delve into the core concepts of computer vision and the challenges involved in teaching computers to understand visual data.

To process an image, a computer first needs to represent it in a numerical format that it can handle. A digital image consists of countless tiny units called pixels, each storing information about colour and brightness. For a colour image, the common RGB colour model is used, where each pixel has values for red, green, and blue channels. By loading an image using Python and inspecting its dimensions and pixel values, one can gain insight into how a computer perceives an image.

Image filters play a crucial role in highlighting and emphasising specific elements within an image, making it easier for certain tasks to be performed. Common filters include blur filters, which smooth an image and reduce small details, edge detection filters that highlight boundaries between areas with varying brightness, and sharpening filters that make specific details and boundaries more noticeable.

One popular edge-detection technique is the Sobel filter, which measures changes in pixel intensity in horizontal and vertical directions, revealing object boundaries such as vehicle outlines or building edges.

Convolutional Neural Networks (CNNs) are a type of deep learning model that excels at handling image-related tasks. CNNs learn visual patterns from examples, with early layers identifying simple features like edges and textures, while deeper layers combine those patterns into more complex features. During training, the model adjusts its internal parameters to improve its predictions based on the quality and variety of the examples used.

For instance, if a CNN is trained with numerous labelled images of buses and cars, it can learn to distinguish between the two categories.

In computer vision, there are several approaches to recognising objects within an image. Image classification predicts a label for an entire image or an image region. Object detection identifies objects and estimates their locations using rectangular bounding boxes. Image segmentation assigns labels to individual pixels or regions based on the task, such as determining which pixels belong to a road, vehicle, person, or surrounding environment.

Despite the advancements in computer vision, models can still make mistakes. They may confuse objects that appear similar, struggle with poor lighting conditions, blurry images, unusual camera angles, or objects that were not adequately represented in their training data. Moreover, the confidence score assigned to each prediction is crucial, as a lower threshold might lead to more detections, including incorrect ones, while a higher threshold could remove some false detections but also miss genuine objects.

The accuracy of computer vision models can be greatly influenced by the data they are trained on. A model trained primarily on images from one region may not perform as well when applied to images from another region due to differences in lighting, road conditions, clothing, building styles, crop varieties, and camera quality. To build more reliable systems, especially in sensitive applications like healthcare, it is essential to collect representative local data and test models in the environments where they will be used.

This approach ensures that computer vision models can effectively support various applications and empower qualified professionals in African communities.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

Cosine Similarity Said 0.92. The Payload Was Already Dead.

An agent retrieves something from memory. Its next action looks different. Someone writes a blog post: the agent was poisoned by persistent memory. Maybe.

  • Agent retrieves information from memory and changes behavior
  • Counterfactual estimator measures impact of removing carrier
  • Validation shows non-existent carrier removal has no effect

AI Product Listing Writer for Small Business Sellers 🛍️

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle What I Built I built the AI Product Listing Writer , a simple web application that helps small e-commerce…

  • AI Product Listing Writer aids small e-commerce sellers
  • Streamlit-built tool creates SEO-optimized product descriptions
  • Open-weight models provide transparency and cost savings

Teaching a Computer to See: My First Week of Computer Vision

After weeks of teaching computers to read in NLP, our course moved on to teaching them to see. Here’s what I learned, and what happened when I tested real models on my own photos from Rwanda.

  • An image is a grid of numbers with height, width, and color values
  • Filters identify patterns by multiplying and adding pixel values
  • Models struggle with things not present in their training data

More from Tuesday 13 October →