Sagitto uses machine vision to measure colour
Machine Vision

The Power of Machine Vision

October 8, 2025
  •  
George Hill
Sagitto Ltd

Whether it is spotting subtle differences between nearly identical objects, counting and classifying many items, or searching image databases for visual matches - machine vision works quickly and tirelessly. In this post, we’ll walk through several examples using buttons to demonstrate how machine vision might be applied in your business.

Let's See What We've Got

For the purposes of this blog post, we purchased buttons1 from an auction site. The auction listing showed a single image of a pile of buttons on a carpeted floor, with the description  “couple hundred, not exactly sure”.

"couple hundred, not exactly sure."

For ease of handling, we divided the pile into two groups based on size.

The pile divided by size

To see exactly what we'd bought, we further separated the pile into random groups of buttons, each given a unique reference number. Then we took digital images of each group.

Groups 68 and 53

Running a machine vision model trained to identify buttons against all these images, within a few seconds we learn that there were a total of 1,837 buttons in the pile. Now we could clearly see their distribution by number of holes, size and colour.

The pile contained 1,837 buttons

As the common guess-the-number-of-jelly-beans challenge often shows, we humans find it difficult to accurately count large piles of items. So it's not surprising that the seller guessed "couple of hundred" buttons.

Button size distribution
The pile had many small buttons

And there were relatively few blue or green buttons

Purple, Green and Blue were less popular than Pink and Orange in this pile

By creating digital copies of the physical buttons, and applying machine vision techniques, we now have a set of data that we can examine and manage with ease.

Spot The Odd One Out

Machine vision can be ideal for quality control in manufacturing, especially where visual defects are subtle and human inspection is slow or error-prone. Machines don't tire of looking at complex images as items pass along a production line at speed, hour after hour.

Let’s try an example : see if you can spot the unusual button in this image? (A clue - focus on the button holes.) How long did it take you? Could you do this all day, every day?

Machine vision can instantly identify misfits
Spot the odd one out

Now let's query the machine vision model to find any buttons which do not have two or four holes.  In a few seconds we get a visual representation of every button in the image, with its colour, dimensions, and number of holes. The 3-holed button stands out immediately, its exact location known so that it can be retrieved either manually or by a robotic hand. And a machine vision system can perform this task continuously, without getting tired or bored or distracted.

The button with three holes is clearly visible now

Visual Search

We're all familiar now with number plate recognition on toll roads, and facial recognition to unlock our phones. But visual search (also known as Content Based Image Retrieval) has many other uses.

E-commerce customers might upload a photo of an item to find the exact or visually similar products within the online store's catalogue. This dramatically improves product discovery and the shopping experience, especially when a user doesn't know the name of an item.

In a manufacturing environment, and engineer might search a database of production images to find past examples of a specific type of product defect or anomaly.

Are there any more like this?

Using our button example once more, suppose that we see one button in particular that we like. A group of the same buttons would be much more valuable than just this one button by itself. How can we find out if there are any more?

We could do a physical search of our whole inventory of buttons - but that could take a long time, and we don't know if the effort will be worthwhile. By contrast, we can perform a digital search of our image database with just a few mouse clicks. Lets try that.

There are eight other buttons that are just the same

Great! There are eight other buttons that are just the same. And with just a few more mouse clicks, we can generate a 'pick list' of labels so that we can easily retrieve them from storage.

Each group of buttons is uniquely labeled for easy retrieval

Whether you're matching spare parts, identifying fashion accessories, or organising visual collections, machine vision can streamline the process and improve accuracy.

Conclusion

While our demo uses buttons as a fun example, the underlying technology is anything but trivial. The machine vision capabilities that we've demonstrated - spotting subtle differences, classifying visual data, and searching for similar items - can be applied to a wide range of industries and use cases.

Sagitto not only has expertise in applying machine learning to spectroscopy data - we are also expert at building custom machine vision solutions that are tailored to your particular business needs. If you're curious about how machine vision could streamline your operations or unlock new opportunities then we'd love to talk.

Notes

  1. We chose buttons because they're things that we're all familiar with - and (I confess) because as a child I was fascinated by the buttons in my mother's sewing basket.

Subscribe to Sagitto's Blog

Get industry insights that you won't delete, straight in your inbox.
We use contact information you provide to us to contact you about our relevant content, products, and services. You may unsubscribe from these communications at any time. For information, check out our Privacy Policy.
George Hill
Sagitto Ltd
Sagitto's founder, George Hill, first started working with artificial intelligence during the 1980s, while developing 'expert systems' within Bank of America in London. On returning to New Zealand, he undertook part-time study with the University of Waikato's Machine Learning Group while working for Hill Laboratories, a well-known New Zealand commercial testing laboratory. This led to the formation of Sagitto Limited, dedicated to combining the power of artificial intelligence and machine learning with spectroscopy.

More news

Authentication

From Bee Or Not From Bee

That is the question. Is this pure honey, produced only by honey bees? Or has it been adulterated with cheaper sugar syrups? This blog post explores some of the methods that can be used for testing honey for adulteration with syrups. We start with NIR analysis, then look at the C4 Sugars test, Spatial Offset Raman Spectroscopy (SORS), and Nuclear Magnetic Resonance Spectroscopy (NMR)

Read Article
Food

Just Peanuts?

Peanuts are a hugely valuable food crop, with worldwide production of more than 50 million tonnes. This blog post looks at how NIR spectroscopy can help peanut breeders and manufacturers of peanut products. We focus on what NIR can tell us about the composition of peanut kernels and peanut butter; and as an example we use NIR to measure sucrose when added to peanut butter.

Read Article
Data Science

Learning From Durum Flour

Good pasta is made from durum wheat flour rather than the softer wheat varieties used in bread. However being more expensive, durum flour ('semola rimacinata') is sometimes adulterated with other wheat flour. For a bit of fun, we've created a model that has the potential to detect adulteration of durum wheat flour. And we use this to demonstrate how Sagitto evaluates calibration models.

Read Article