|
-
Sep 2nd, 2006, 09:17 AM
#1
Thread Starter
New Member
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?
-
Sep 2nd, 2006, 09:24 AM
#2
PowerPoster
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.
Well, everyone else has been doing it :-)
Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
Expect more to come in future
If I have helped you, RATE ME! :-)
I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!
And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.
-
Sep 2nd, 2006, 11:03 AM
#3
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
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|