473,394 Members | 1,802 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,394 software developers and data experts.

To programme in VB6 using Genetic algorithms for hand written character recognition??

i have already written my code using the neural network logic....and it works fine...
it is basically a hand written character recognition system...which accepts "bitmap" image files which i made through "windows Paint application" (from A to Z) and recognizes which character is it.

my logic is.....
open the "*.bmp" file using microsoft common dialog control....in the form then obtain the pixels using "getpixel " function...check if it is black then count no. of VBblack in the grid before which we.... divide the image into 5 * 5 grid if there is a black pixel in a grid
assign the value 1 else assign 0 for "non black pixel ".
check for all (A-Z) bmp files what matrix(0 or 1) we are getting on execution and print the character .

this code is working fine using the neural network logic discussed above, but i was asked to implement it with "genetic algorithms" a random optimization search technique , I have understand the concept of GA's already but i m unable to deduce a logic to implement on my character coding programme please help me!!!!
Attached Files
File Type: txt character coding.txt (24.5 KB, 1043 views)
Nov 6 '09 #1
3 4436
maxamis4
295 Expert 100+
Nice question!

I am still new two Genetic algorithm's. Here is my question:

What are the problems you are trying to resolve with the Genetic Algorithms? Are you trying to implement the character recognition using this Algorithms? My follow up to that is why?

Any how I am not sure I have helped you much, but I am interested in your progress. In the meantime here is a link to a very 101 code I used to create my own Genetic Algorithm

http://www.generation5.org/content/2...helloworld.asp

Another one I saw too

http://www.codeproject.com/KB/recipes/tspapp.aspx
Nov 7 '09 #2
I want to implement my character recognition program using genetic algorithm because i was asked to do so, i asked my supervisor scientist "G-level" who gave me this problem as my project that what is the need to implement it when it is running already smoothly using the neural networks, but he is too much determined that i implement this code(i have already attached the code in text file format,but the bitmap files folder i couldn't attach) using the genetic algorithms and told me this is quite possible as several people have already written the code using GA so why couldn't i...and also my project is Genetic Algorithms....so i have to implement it by the mid of December.

But despite several attempts (i did a lot of googling to get the concept) i hadn't succeeded much and i m looking forward for some guidance from you people....
to help me complete my project.....
Nov 7 '09 #3
Genetic algorithms are optimizers, not modeling algorithms. GAs iteratively adjust parameters of some unknown function in an effort to maximize (or, minimize, if that's what's needed) its output. For a GA to be used in modeling, you must have some sort of model architecture (decision tree, rule base, coefficients of a regression function, etc.) for the GA to optimize.
Feb 18 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Stephen.B | last post by:
Hi All, Many thanks to those who assisted with my previous posting regarding image file manipulation from a scanner - with your help, i have now put together a solid solution to that problem. ...
0
by: Jelle Feringa / EZCT Architecture & Design Researc | last post by:
Could anyone recommend me a genetic algorithm package? So far I have found a few, such as GAS, pyGP, Genetic, and of course scipy.ga My problem is that most of the development of these packages...
8
by: silly | last post by:
/* hello, I have some fairly naive queries here related to optimising code! I know the first answer is 'don't' but leave that to one side for the moment. 1) I'm looking for constructive comments...
2
by: madhuri.eerupula | last post by:
Hi Actually my task is to select some text in bitmap file and then copy paste somewhere else may in some word document or notepad or anything. My problem is how to read text from a bitmap file...
2
by: Xiao Jianfeng | last post by:
Hi all, I am looking for a genetic algorithms package for Python. I have googled the web before posting and found some links. The link of pygene(http://www.freenet.org.nz/python/pygene) cannot...
0
by: hgoren | last post by:
Hello Is there anyone who can help me in coding GAs using C++? I got stuck! Thanks....
21
by: sirimanna | last post by:
hello, is any one can tell me how to create a small artificial intelligent programme using vb06. Can i creatre a artificial intelligent programme using vb6. is that vb06 support to creat a...
1
by: alpareshamwala | last post by:
pl. help me if u are good in genetic algorithms to implement the individuals and chromosomes... Alpa
1
by: lionkng | last post by:
I need a simple code for finding roots in c programme using Newton-raphson method
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.