Book a free call

Image Recognition for Ecommerce: How It Works

Image recognition lets shoppers search with a photo, find matching products and check out faster. Here is how it works in an online store.

Hertiv engineering teamReviewed by a senior engineer
6 min read
Image Recognition for Ecommerce: How It Works
On this page

Short answer

Image recognition for ecommerce is the use of computer vision software to identify products in a photo, match them to items in a store catalogue, and show the shopper matching or similar products. It powers visual search, automatic product tagging and tools that let a customer photograph an item and buy the closest match.

What is image recognition in ecommerce?

Image recognition for ecommerce is the use of computer vision software to identify products in a photo, match them to items in a store catalogue, and show the shopper matching or similar products. It powers visual search, automatic product tagging and tools that let a customer photograph an item and buy the closest match.

The simplest example is visual search. A shopper sees a jacket on the street, photographs it, and the store shows jackets from its own catalogue that look similar. The shopper does not need to know the brand, the style name or the right search words.

The same technology works behind the scenes. When a seller uploads a product photo, image recognition can suggest a category, detect the colour and flag a photo that does not meet the store's standards. That saves staff time and keeps the catalogue consistent.

It is a practical use of computer vision, which is a broader field. See computer vision in retail for how the same technology is used in physical stores.

How does image recognition work in a store?

Image recognition in a store works in four steps: the photo is cleaned up, features are extracted, those features are compared with the catalogue, and the closest matches are shown. Each step runs in software, and the whole process usually takes a few seconds.

First, the photo is prepared. The software adjusts the size, crops the background and corrects the lighting so the product stands out. A photo taken in a dark room will not match well, so some stores guide the shopper to take a clearer shot.

Next, a model reads the photo and turns it into a set of numbers that describe what it sees: shapes, colours, patterns and textures. Two photos of the same jacket produce similar numbers, even if one was taken from a different angle.

Finally, the store compares those numbers with the numbers stored for every product photo in its catalogue, and shows the closest matches. The comparison is a search, not a guess, which is why the quality of the catalogue photos matters so much.

Shoppers use visual search to find products they cannot describe in words. A photo of a chair, a dress or a lamp becomes the search query, and the store returns matching or similar items. This helps most for fashion, furniture and home goods, where looks matter more than specifications.

It also helps when the shopper does not know the right words. A customer who wants "that kind of sofa" can photograph one instead of guessing at style names. Stores that add visual search often see shoppers explore more products, because the barrier to starting a search is lower.

UseWhat it doesWho it helps
Visual searchFinds products from a photoShoppers who cannot describe the item
Similar itemsShows lookalikes on a product pageShoppers comparing options
Automatic taggingLabels colour, category and styleStaff who manage the catalogue
Photo quality checksFlags blurry or off-standard photosSellers uploading products
Counterfeit checksSpots images reused from other listingsMarketplaces fighting fraud
Outfit matchingSuggests items that go togetherFashion shoppers

Similar-item suggestions are the easiest place to start. They need the same matching step as visual search, but they run on photos the store already has, so there is no need to handle photos from shoppers' phones.

How do you add it to an online store?

You add image recognition to a store in five steps: clean the catalogue photos, pick a tool or service, connect it to the store, test it with real photos, and watch what shoppers actually do with it.

  1. Clean the catalogue. One clear photo per product, on a plain background, with consistent size and lighting. Bad photos produce bad matches.
  2. Pick a tool. Use a visual search service or a computer vision API rather than building a model from scratch, unless the catalogue is very unusual.
  3. Connect it to the store. The tool needs access to product photos and prices, and a place in the search results to show matches.
  4. Test with real photos. Photograph products in real conditions, not just studio shots, and check whether the right product comes first.
  5. Measure and tune. Track how often shoppers tap a visual search result and buy, then fix the cases where the wrong product appears.

Building the model yourself is rarely the right first step. A computer vision development partner can help you judge whether a ready service covers your catalogue or whether a custom model is needed.

Example (hypothetical): a furniture store with 400 products adds visual search to its app. A shopper photographs a chair in a cafe, and the store shows the five closest chairs from its catalogue.

In the first month, 3,000 shoppers try visual search. Of those, 600 tap a result, which is 20% of the people who tried it, and 90 of the 600 buy something, which is 15% of the people who tapped a result. The store sells 90 extra orders from a feature that did not exist the month before.

The store also learns that photos taken in dim light match badly. It adds a hint in the app that asks shoppers to take the photo in good light, and the share of searches that return a useful first result rises from 6 in 10 to 8 in 10.

The lesson is that the feature is only as good as the photos on both sides. Clean catalogue photos and a little guidance for shoppers matter more than a more powerful model.

What are the common mistakes?

The most common mistakes are launching with messy catalogue photos, expecting the model to read minds, and ignoring the cases where it gets things wrong.

  • Messy catalogue photos. Different backgrounds, sizes and lighting make matching unreliable from day one.
  • Expecting exact matches. Image recognition finds similar products, not always the exact one, and stores should say so.
  • No fallback. When visual search finds nothing, the shopper should get a text search box, not a dead end.
  • Ignoring bad matches. If the wrong product keeps appearing first, shoppers stop trusting the feature.
  • Forgetting privacy. Photos uploaded by shoppers are personal data, so the store needs a clear policy on what it keeps and for how long.

Image recognition is not the same as a recommendation engine. See computer vision vs image recognition for how the two fields differ and where each one fits.

How to start with image recognition

You start with image recognition by proving it works on your own catalogue before you promise it to shoppers. Work through these steps in order.

  1. Pick one use. Similar items on product pages is the easiest, since it uses photos you already have.
  2. Clean 100 product photos. Fix the worst ones first and see how much the matches improve.
  3. Test a ready service. Run your own photos through it and check whether the right product comes first.
  4. Launch to a small group. Offer visual search to some shoppers and compare their behaviour with the rest.
  5. Fix the top failures. Look at the searches that returned the wrong product and fix the photos or the tags behind them.

If the test shows that the right product comes first in most cases, expand the feature. If it does not, the problem is usually the photos, not the model, and that is cheaper to fix.

Key takeaways

  • Image recognition matches a photo to products in a store catalogue
  • Visual search helps shoppers who cannot describe what they want in words
  • Clean, consistent catalogue photos matter more than a more powerful model
  • Start with similar items on product pages, then add full visual search
  • Photos shoppers upload are personal data and need a clear privacy policy

Frequently asked questions

What is the difference between image recognition and visual search?

Image recognition is the technology that identifies what is in a photo. Visual search is the feature that uses it: a shopper uploads a photo and the store shows matching products. One is the engine, the other is the experience built on top of it.

Does image recognition need a large catalogue?

No, but it needs a clean one. A small catalogue with consistent, well-lit photos will match better than a large catalogue with messy photos. Start with your best-selling products and expand once the matches look right.

Can image recognition work for any product?

It works best for products where looks matter, such as fashion, furniture and home goods. It works badly for products where the difference is in the specifications, such as electronics, where a photo cannot show the features that matter.

How accurate is image recognition for ecommerce?

It depends on the photos and the catalogue, so any single figure would be misleading. The honest measure is your own test: run real shopper photos through the tool and count how often the right product appears in the first few results.

Is building a model from scratch worth it?

Rarely, for a first version. Ready visual search services and computer vision APIs cover most catalogues. A custom model only makes sense when the products are unusual, the catalogue is very large, or the ready services fail your own tests.

What happens to photos shoppers upload?

That depends on the store's policy, and the store should say so clearly. Photos may be kept to improve the service or deleted after the search. Shoppers should know which one applies before they upload.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: software products in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Want visual search in your store? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Computer Vision service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call