Image text decoder using ML(machine learning) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Image text decoder using ML(machine learning)

make a program to take multiple image file as test data in test data dir and learn from it and scrape text from image also

22nd Jul 2018, 6:27 AM
Aryan Singh
Aryan Singh - avatar
12 Answers
+ 2
I prefer pillow (PIL) than cv as it's simpler to install and it handles files adequately well. You can read the files in a loop or a list expression, iterating through the elements of an os.listdir() for example. If you need any reference to a similar project, with rich comments and explanations, feel free to check out my image classifier, link in my bio code: https://code.sololearn.com/W2nvcMqTRi4q/?ref=app A direct link: https://github.com/kuba-siekierzynski/CarL-CNN
22nd Jul 2018, 1:13 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 4
Do you have your data labeled already? If so, you should make it into two sets: a training set and a test set. Then, using one of the algorithms of your choice (for image recognition I recommend convolutional neural networks) you should fit your model to the data. Properly constructed CNNs are great because they append different filters to the data and try to capture most significant common patterns in all As, Bs and so on... It's literally "learning" what is a "concept" or a "blueprint" of a letter to be recognized. I recommend using keras library with tensorflow backend. It makes constructing neural network's layers easy as cake :)
22nd Jul 2018, 12:58 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
Since there's no code being posted, we're sort of stuck speaking in general terms... What does your ML algorithm do so far?
22nd Jul 2018, 8:10 AM
Janning⭐
Janning⭐ - avatar
+ 1
you saved me to do tons of code ..thnks buddy for support
22nd Jul 2018, 1:15 PM
Aryan Singh
Aryan Singh - avatar
0
Hi, I'm not seeing the question. Would you mind posting your code in the Code Playground so we can help troubleshoot any specific issues you might have?
22nd Jul 2018, 7:42 AM
Janning⭐
Janning⭐ - avatar
0
i have completed the code upto taking image data and storing it to lists
22nd Jul 2018, 7:48 AM
Aryan Singh
Aryan Singh - avatar
0
Congratulations! ☺👍
22nd Jul 2018, 7:49 AM
Janning⭐
Janning⭐ - avatar
0
i want to add ml in my program but how do i implement it or initiate it
22nd Jul 2018, 7:49 AM
Aryan Singh
Aryan Singh - avatar
0
how do i add ml through the image data
22nd Jul 2018, 7:51 AM
Aryan Singh
Aryan Singh - avatar
0
i have created test data list so i have to do following things 1.create a training set of image data 2.i have to create a algorithm for neural network 3.train it 4.test it
22nd Jul 2018, 1:01 PM
Aryan Singh
Aryan Singh - avatar
0
hey what about using cv for image recognition
22nd Jul 2018, 1:02 PM
Aryan Singh
Aryan Singh - avatar
0
but i am facing an issue in file reading from test directory how do i read all of the file from a particular dir
22nd Jul 2018, 1:04 PM
Aryan Singh
Aryan Singh - avatar