Click here to Skip to main content
15,908,906 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Copy Excel Data into Access Database Table. Pin
DaveAuld22-May-10 5:02
professionalDaveAuld22-May-10 5:02 
GeneralRe: Copy Excel Data into Access Database Table. Pin
jeshra27922-May-10 5:40
jeshra27922-May-10 5:40 
GeneralRe: Copy Excel Data into Access Database Table. Pin
DaveAuld22-May-10 20:48
professionalDaveAuld22-May-10 20:48 
GeneralRe: Copy Excel Data into Access Database Table. Pin
jeshra27923-May-10 18:53
jeshra27923-May-10 18:53 
QuestionCompare two scanned images! Pin
FeRtoll21-May-10 8:26
FeRtoll21-May-10 8:26 
AnswerRe: Compare two scanned images! Pin
Dave Kreskowiak21-May-10 9:15
mveDave Kreskowiak21-May-10 9:15 
GeneralRe: Compare two scanned images! Pin
FeRtoll21-May-10 11:42
FeRtoll21-May-10 11:42 
GeneralRe: Compare two scanned images! Pin
FeRtoll21-May-10 13:34
FeRtoll21-May-10 13:34 
Dave Kreskowiak wrote:
You have to account for the fact that no two scans of the exact same card will result in a pixel-by-pixel equality. Every pixel is going to be a slightly different color than the same pixel in the previous scan.


i know that and understand what you mean so i made:

Private Function CheckPixel(ByVal source_color As Color, ByVal search_color As Color, ByVal tolerancy As Integer) As Boolean
        Dim sense As Long
        sense = 255 - tolerancy * 5

        CheckPixel = (System.Math.Sqrt((Val(source_color.R.ToString) - Val(search_color.R.ToString)) * (Val(source_color.R.ToString) - Val(search_color.R.ToString)) + (Val(source_color.G.ToString) - Val(search_color.G.ToString)) * (Val(source_color.G.ToString) - Val(search_color.G.ToString)) + (Val(source_color.B.ToString) - Val(search_color.B.ToString)) * (Val(source_color.B.ToString) - Val(search_color.B.ToString))) > sense)
    End Function


wich is working ok for pixelbypixel search! but i dont want pixelbypixel search or do want i dont know thats why i posted a link to rapidshare file and application with source wich contains my needs!


Dave Kreskowiak wrote:
If all you're doing is OCR'ing the business cards, why even bother comparing two images of the cards and just compare the data that's coming off them?


no i am not doing ocr. i have button "start" and then i scan image and compare to an image that is stored to database and detect difference on those two images and pixelbypixel is slow and not good result but with the code for detect difference from link i posted would do what i want! Here are images you can try with the application i posted and see what i want!

ORIGINAL : http://img96.imageshack.us/img96/3540/originalsp.jpg[^]
SCANED : http://img717.imageshack.us/img717/3461/damaged.jpg[^]
COMPARED : http://img32.imageshack.us/img32/5895/comparator.jpg[^]


Dave Kreskowiak wrote:
If you have to compare the images, then you'll have to implement a filter (in C#, not VB.NET!) to process the image to equalize the colors. For example, if you look at the white part of a business card, you'll see a scattering of pixels of different colors, not an even white acrossed all of them. You have to implement a filter to remove all those color variations to generate the nice flat color acrossed all pixels.


yes i want compare... look at compared picture!

Dave Kreskowiak wrote:
Search the articles for "image processing for dummies" and you'll find some good examples by Christian Graus.


thanks i will! Poke tongue | ;-P
FeRtoll Software.net
------------
E-Mail me
WebPage

GeneralRe: Compare two scanned images! Pin
Dave Kreskowiak22-May-10 14:45
mveDave Kreskowiak22-May-10 14:45 
GeneralRe: Compare two scanned images! Pin
FeRtoll23-May-10 0:07
FeRtoll23-May-10 0:07 
GeneralRe: Compare two scanned images! Pin
FeRtoll23-May-10 10:33
FeRtoll23-May-10 10:33 
GeneralRe: Compare two scanned images! Pin
Dave Kreskowiak23-May-10 18:08
mveDave Kreskowiak23-May-10 18:08 
GeneralRe: Compare two scanned images! Pin
FeRtoll23-May-10 22:12
FeRtoll23-May-10 22:12 
Questioninfragistics ultrawingrid tabbing problem Pin
soterios21-May-10 3:22
soterios21-May-10 3:22 
AnswerRe: infragistics ultrawingrid tabbing problem Pin
Dave Kreskowiak21-May-10 6:57
mveDave Kreskowiak21-May-10 6:57 
QuestionCD (data or music) or DVD Pin
JR21221-May-10 0:10
JR21221-May-10 0:10 
AnswerRe: CD (data or music) or DVD Pin
JHizzle21-May-10 0:46
JHizzle21-May-10 0:46 
AnswerRe: CD (data or music) or DVD Pin
DaveAuld21-May-10 0:51
professionalDaveAuld21-May-10 0:51 
AnswerRe: CD (data or music) or DVD Pin
Baconbutty21-May-10 2:58
Baconbutty21-May-10 2:58 
GeneralRe: CD (data or music) or DVD Pin
Luc Pattyn21-May-10 3:08
sitebuilderLuc Pattyn21-May-10 3:08 
QuestionPercentage Pin
Syasyaaa20-May-10 19:52
Syasyaaa20-May-10 19:52 
AnswerRe: Percentage Pin
Andy_L_J20-May-10 20:12
Andy_L_J20-May-10 20:12 
AnswerRe: Percentage Pin
Dalek Dave20-May-10 21:10
professionalDalek Dave20-May-10 21:10 
AnswerRe: Percentage Pin
The Man from U.N.C.L.E.21-May-10 2:19
The Man from U.N.C.L.E.21-May-10 2:19 
QuestionText Not Showing Fine Pin
Anubhava Dimri20-May-10 19:32
Anubhava Dimri20-May-10 19:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.