473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

telling images apart with AI / image recognition ?

Has anyone worked with code that can look at two JPG images (I am
talking about relatively small ones, 40x40 pixels or less) and quickly
analyzing them to see how similar or different they are? Is bitmap
comparison supported by .net's graphics libraries? Initially I could
compare JPG or BMP file size to see if the images are different, but I
would like the code to be able to discern HOW different two images are
- ie image A and B are 50% different. Maybe to start it could look at
each pixel and depending on some threshold decide it is on or off
(monochromatic) and build a percentage of matches based on that. But
for a RGB image it would get more complicated. Has anyone done or seen
anything like this or have any ideas?

Jul 21 '05 #1
8 1881
I have the same interest, but have not started the project yet.
The first thing to consider is what you want to find.
I want to find identical images? similar images? the same image saved with
different compression levels?
One idea is to convert the image to gray scale first.
Another idea is take advantage of Jpeg compression. That is compress both
images a lot and compare the compressed images.
But you have to define first what you want to find.

Regards,
Alejandro Lapeyre.
"Mad Scientist Jr" <us*************@yahoo.com> escribió en el mensaje
news:11*********************@z14g2000cwz.googlegro ups.com...
Has anyone worked with code that can look at two JPG images (I am
talking about relatively small ones, 40x40 pixels or less) and quickly
analyzing them to see how similar or different they are? Is bitmap
comparison supported by .net's graphics libraries? Initially I could
compare JPG or BMP file size to see if the images are different, but I
would like the code to be able to discern HOW different two images are
- ie image A and B are 50% different. Maybe to start it could look at
each pixel and depending on some threshold decide it is on or off
(monochromatic) and build a percentage of matches based on that. But
for a RGB image it would get more complicated. Has anyone done or seen
anything like this or have any ideas?

Jul 21 '05 #2
What you describe would be suited to Beyesian or Support Vector Machine
software.

Have a search for these on google (plus "Kernal machines" or "machine
learning") and you should get plenty of hits.

There is a blog here that may be of interest too:
http://blogs.mit.edu/tsou

I downloaded a .NET sample app that demonstrated using SVM for
handwriting recognition (just digits but it may be enough for what you
need). Sorry I don't have a direct link to hand but it was from that
blog or a site linked from it.

Regards

- Simon Green
InteSoft.NET
http://www.intesoft.net

ASPAccelerator.NET - speed up your website and save bandwidth.
ASPRedirector.NET - put a friendly face on your website.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #3
Hi,

There was a post regarding image differention not too long ago, you can try
searching for it on Groups.

To reiterate I would use Exocortex.DSP - A Digital Signal Processing Library
for .NET.
http://www.exocortex.org/dsp/

Generate 2d FFT arrays from your base images and then compare against a
threshold. You can generate all kinds of statistics form the array sets. See
gamedev for more info:
http://www.gamedev.net/reference/art...rticle2007.asp

ok,
aq

"Mad Scientist Jr" <us*************@yahoo.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Has anyone worked with code that can look at two JPG images (I am
talking about relatively small ones, 40x40 pixels or less) and quickly
analyzing them to see how similar or different they are? Is bitmap
comparison supported by .net's graphics libraries? Initially I could
compare JPG or BMP file size to see if the images are different, but I
would like the code to be able to discern HOW different two images are
- ie image A and B are 50% different. Maybe to start it could look at
each pixel and depending on some threshold decide it is on or off
(monochromatic) and build a percentage of matches based on that. But
for a RGB image it would get more complicated. Has anyone done or seen
anything like this or have any ideas?

Jul 21 '05 #4

"Simon Green" <si***@intesoft.net> wrote in message
news:On**************@TK2MSFTNGP14.phx.gbl...
There is a blog here that may be of interest too:
http://blogs.mit.edu/tsou


Part of the MIT Intelligent Engineering Systems Laboratory.

They have lots of great projects, including grid computing, sensor aware
environments and machine learning, most using .NET! As can be "Spy'ed" from
their portal:

http://portals.mit.edu/DevShell/Desk...331&tabindex=0

ok,
aq
Jul 21 '05 #5

I was looking at some Postscript API software yesterday.

Perhaps by converting the image to Postscript, and then being able to do
textual analysis ( with Baysian, as others have suggested ) would be of
interest.

Here's a commercial product that can do the conversion

ImageGlue
http://www.websupergoo.com/helpig5ne...postscript.htm


Mad Scientist Jr wrote:
Has anyone worked with code that can look at two JPG images (I am
talking about relatively small ones, 40x40 pixels or less) and quickly
analyzing them to see how similar or different they are? Is bitmap
comparison supported by .net's graphics libraries? Initially I could
compare JPG or BMP file size to see if the images are different, but I
would like the code to be able to discern HOW different two images are
- ie image A and B are 50% different. Maybe to start it could look at
each pixel and depending on some threshold decide it is on or off
(monochromatic) and build a percentage of matches based on that. But
for a RGB image it would get more complicated. Has anyone done or seen
anything like this or have any ideas?

--
Texeme Textcasting Technology
http://texeme.com

Indie Pop Rocks @ SomaFM
http://somafm.com/

Jul 21 '05 #6
Thanks for your reply. I thought about the grayscale idea, and that
would be a good start. I don't need to compare colors too much -
although I would like the option of being able to tell that "image x is
mostly red" (say basic colors red,blue,green,yellow, orange,etc.) I
think 16 shades of gray would be fine. I'm new at .net graphics - to
start, can someone post code that can read the 8-bit grayscale value
(or luminescence) of a single pixel in a JPG file or bitmap at pixel
position x,y ? Thanks again.

Jul 21 '05 #7
I will try those search keys and the blog. Thanks.

Jul 21 '05 #8
Generating statistics - this sounds like some intense stuff. I will
give it a look. Thanks.

Jul 21 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: lawrence | last post by:
In my style sheet I've set the links like this: a:link{ text-decoration:none; } I did that for the pseudo classes and I also did that for the image tag. Yet there are still link lines...
7
by: codeslayer | last post by:
Greetings to everyone in ‘forum-land': I have a problem that has plaguing me to no end. It is a CSS-related question, and I have not seen this question posted anywhere in forums or through...
2
by: Marcus | last post by:
I am after what is probably very basic help. Below is the HTML including the bit of Java I am trying to understand why its not working. The idea is as the mouse moves over and off the "button"...
17
by: Stian Lund | last post by:
Hello, I've been struggling with this problem for a while now, so I though I'd get some input from anyone more skilled with CSS than I am. I'm actually trying to accomplish two things with this:...
16
by: Woodmon | last post by:
I want to flow text in an "irregular" column on the left and place a large image at the top of an "irregular" column to the right. Then after the bottom of the large image I want the text column on...
8
by: Dr John Stockton | last post by:
I have, in a div, four square images of different known sizes, displaying side-by-side. Three have transparent backgrounds. I wish to stack the images so that the centres coincide. Can someone...
3
by: Solitus | last post by:
Lets say i have 2 images, a.jpg and b.jpg Both are actually one same picture of a bear but have different filenames. is there anyway in .net that i can find out if the two pictures are actually...
8
by: Mad Scientist Jr | last post by:
Has anyone worked with code that can look at two JPG images (I am talking about relatively small ones, 40x40 pixels or less) and quickly analyzing them to see how similar or different they are? Is...
6
by: NutsAboutVB | last post by:
Hello, I am a .NET programmer and I have a JPEG image file (from digital camera) of about 109 KB's in size, when I open it and save it (without making any alterations at all, just going to File...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.