robertrndya wrote:So now I'm getting the different colors for values form 000-FFF and segregating them into the 8 colors(black,blue,green,cyan,red,pink,yellow,white). Then hopefully I'l get good results for any given picture.
I got the values from 000-FFF and segregated them into the 8 colors. But I got a LOT of values under 'Green'. I put all the other values in the code but when I put all the green values in the code and save the project VB just closes saying any unsaved matter will be lost . I still put in a few green values in the code and its working, but if I put any more green values then that same problem occurs again, and I don't understand why. Is it some code size issue?? or is it something to do with the size of the IF-ELSEIF condition(where the green values are for comparison)??
Also another thing is that after putting so many values I can recognize a lot more pixels. BUT, in 1 color I end up getting some pixels of some other color as well(for example I had 1st put some values in the code for comparison by extracting the values from the 'google' image itself so I was getting good accuracy for the "Google" image. But now, I replaced the old values, from the code, with the new set of values. And now some values which were under 'white' have come under 'blue' and 'yellow' and some values under 'blue' have come under 'pink' and 'green' and so on. So where I was getting perfect 'blue' for the 'G' and 'g' of "Google", now I'm getting a lil bit of 'cyan', 'pink', 'yellow' and the same thing happens for the rest of the colors as well).
Now where i get 'cyan' 'yellow' and 'pink' in the G's, if I put those values under 'Blue' in the code then if I scan another image it may detect those same values as 'blue' in spite of that image having 'cyan' 'yellow' or 'pink' at a particular position. What can I do now????