Urgent.News

What's breaking now, across thousands of outlets.

AI

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. A photo is just numbers A computer doesn’t see people or objects, only numbers. My photo of people painting is 547 × 365 pixels, and each pixel has 3 values (red, green, blue) from 0 to 255: almost 600,000…

After weeks of training computers to read in natural language processing, our course shifted focus to teaching them to "see." Here are the insights I gained and what occurred when I applied real models to my own photos from Rwanda.

An image is essentially a grid of numbers, with dimensions of height, width, and three color values between 0 and 255. For example, my photo of people painting had 547 × 365 = 199,735 numbers representing various shades of red, green, and blue.

Filters are small grids of weights that move across an image, multiplying and adding pixel values. The Sobel filter, for instance, subtracts the left side from the right, producing 0 for flat areas and large numbers for edges. Convolutional neural networks (CNNs) use this principle, learning their own filters from data rather than having them pre-designed.

I tested three pretrained YOLO models on two photos: one of a painting, and another of agaseke baskets. Classification mistakenly labeled the painting as a "marimba" (39.8%), likely due to the wooden easels, and the agaseke as a "soap dispenser" (21%). Detection found four people in the painting photo when there were only three, and labeled the agaseke as "bottles" since there is no "basket" category within the model's training set. Segmentation revealed objects occupied 38% of the image area.

Next, I challenged the models further by presenting them with altered versions of the photos. Even when the image was very dark, upside down, blurry, or of low resolution, the model still identified three people, a horse, and nothing at all.

The primary takeaway is that a model only knows what it has been trained on. These models were primarily trained on photos taken outside of Africa, so they had never encountered an agaseke before. The solution lies in using local data to fine-tune a pretrained model, which is already being implemented across Africa. Organizations like Nuru detect cassava diseases using leaf photos, Smile ID verifies identities through selfies, Open Buildings maps buildings from satellite images, and BLAIVA, developed in Kigali, provides verbal descriptions of the world for the visually impaired.

In summary, an image consists of a grid of numbers (height × width × 3). Filters identify patterns, while CNNs learn these patterns. Classification, detection, and segmentation provide increasingly detailed information about the image. However, models struggle with things not present in their training data, emphasizing the importance of local data for improved performance.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

I Gave ChatGPT a Real Mortgage Calculator

Ask an AI assistant to compare two mortgage offers and you'll get a fast, confident answer. The catch is that a chatbot predicts words.

  • Jenny Tate develops six mortgage calculators for AI assistants.
  • Users compare mortgage offers by inputting figures in chat conversations.
  • Tools calculate differences in borrowing costs and remaining balances.

Are We Still Developers, or Just People Who Know How to Prompt Claude?

A developer from 2015 and a developer from 2026 might have the same job title, but are they developing the same skills? Today, you can open Claude Code, describe what you want, accept a few changes…

  • Debate questions if developers are just prompters for AI tools.
  • Claude Code enables entire feature generation with minimal manual work.
  • Concern that developers may lose problem-solving and technical decision-making skills.

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

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

More from Tuesday 13 October →