Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 710525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:37:49+00:00 2026-05-14T04:37:49+00:00

Task: I have a camera mounted on the end of our assembly line, which

  • 0

Task: I have a camera mounted on the end of our assembly line, which
captures images of produced items. Let’s for example say, that we
produce tickets (with some text and pictures on them). So every
produced ticket is photographed and saved to disk as image. Now I
would like to check these saved images for anomalies (i.e. compare
them to an image (a template), which is OK). So if there is a problem
with a ticket on our assembly line (missing picture, a stain,…), my
application should find it (because its image differs too much from my
template).

Question: What is the easiest way to compare pictures and find
differences between them? Do I need to write my own methods, or can I
use existing ones? It would be great if I just set a tolerance value
(i.e. images can differ for 1%), put both images in a function and get
a return value of true or false 🙂

Tools: C# or VB.NET, Emgu.CV (.NET wrapper for OpenCV) or something similar

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:37:50+00:00Added an answer on May 14, 2026 at 4:37 am

    I’d recommend looking at AForge Imaging library as it has a lot of really useful functions in it for this type of work.

    There are several methods you could use:

    1. Simple subtraction (template image – current) and see how many pixels are different. You’d probably want to threshold the results, i.e. only include pixels that are different by 10 or more (for instance).
    2. If the tickets can move about in the field-of-view then item 1) isn’t going to work unless you can locate the ticket first. If for instance the ticket is white on a black background you could do a threshold on the image and that would give you a good idea of where the ticket was.
    3. Another technique I’ve used it before is "Model Finding" or "Pattern Matching", but I only know of a commercial library Matrox Imaging Library (or MIL) that contains these functions as they aren’t trivial.

    Also you need to make sure you know which parts of the ticket are more important. For instance I guess that a missing logo or watermark is a big problem. But some areas could have variable text, such as a serial number and so you’d expect them to be different. Basically you might need to treat some areas of the image differently from others.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this Task model: class Task < ActiveRecord::Base acts_as_tree :order => 'sort_order' end
I have written a little script which retrieves pictures and movies from my camera
Task: have a jailbroken iPhone need to write an application which would receive notifications
Google app engine task queues have configuration as (example) <queue> <name>mail-queue</name> <rate>5/m</rate> <bucket-size>10</bucket-size> </queue>
I have a task tracking application, which is very basic. It currently has a
I have a slow custom data source in a SSIS Dataa Flow Task.I have
I have a task and I want to generate some code using the CodeDom.
I have a Task object that has a collection of Label objects ... in
I'm relatively new to Nant, what i'd like to do is have a task
I have a Rakefile with a Rake task that I would normally call from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.