getting the pattern on a JPEG file
how can i get the pattern on a JPEG file?
what is the syntax in getting the pattern in a JPEG file?
i am trying to compare the image on a JPEG file to another JPEG file.
its like finding the right JPEG file with the same pattern as the given JPEG file.
i have research on the internet. it seems like that the concept is to get a pixels of the image and store it in arrays.
but i dont know the syntax in vb. can someone help?
Re: getting the pattern on a JPEG file
What you're asking for is the concept behind optical character recognition. What you are suggesting would require that both original and new images are exactly the same for comparison to work.
If you're looking for a partial match (looking for a small image within a larger one) then things get a bit more difficult
I've played about with basic OCR in the past, and what you basically need to do is search the whole of the larger image for the top left pixel in the smaller image. When you find a match, you need to do an offset check for the next pixel (uses the location that matched top left pixel and checks one pixel to the right) and see if that matches...and repeat until all pixels are checked and match.
Re: getting the pattern on a JPEG file
This question has been asked before, do a search for compare picture image. ;)
http://www.vbforums.com/showthread.php?t=301085