In this tutorial from the neural networks series we're going to look into OCR, or optical character recognition. Over the course of the next few videos we're going to work on building and OCR engine that will recognize handwritten digits. First things first though. We're going to use a public dataset from Stanford (available [here](http://ai.stanford.edu/~btaskar/ocr/)). We download and extract it. The Python libraries that we're using in this video are os and sys (from the standard library), numpy, and cv2 (an open source library for computer vision). We use a variable to store out dataset filename and we set a few parameters that we'll use with cv2 (a resize factor, the height and width of each sample, etc). Then we're gonna open our datafile and go through each row or each line (which represents the features for one digit). We're going to use cv2 and the 'imshow' method to visualize (inside a loop) the characters from the dataset. This visualization helps us get a better idea of what we're going to do next. We'll have to train an algorithm (a neural net in neurolab) to learn the features and the corresponding labels for each character in the dataset. After the learning process is complete, we asses the performance of the neural net. I guess it's much harder to simple narrate or describe what we're about to do in a programming tutorial, which is why I encourage you, if you're interested, to watch the video below for the full walk-through: <center><iframe width="560" height="315" src="https://www.youtube.com/embed/kpOFr7C4yJc" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></center> ___ ### <center>To stay in touch with me, follow @cristi</center> ___ [Cristi Vlad](http://cristivlad.com) Self-Experimenter and Author
post_id | 27,991,620 |
---|---|
author | cristi |
permlink | neural-networks-with-python-part-9 |
category | machine-learning |
json_metadata | "{"format": "markdown", "links": ["http://ai.stanford.edu/~btaskar/ocr/", "https://www.youtube.com/embed/kpOFr7C4yJc", "http://cristivlad.com"], "app": "steemit/0.1", "tags": ["machine-learning", "science", "programming", "python"], "users": ["cristi"], "image": ["https://img.youtube.com/vi/kpOFr7C4yJc/0.jpg"]}" |
created | 2018-01-25 13:04:51 |
last_update | 2018-01-25 13:04:51 |
depth | 0 |
children | 8 |
net_rshares | 1,873,060,272,601 |
last_payout | 2018-02-01 13:04:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 15.434 SBD |
curator_payout_value | 2.091 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 1,788 |
author_reputation | 128,167,460,043,555 |
root_title | "Neural Networks with Python - [Part 9]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
pharesim | 0 | 89,304,923,516 | 0.15% | ||
thecryptofiend | 0 | 18,959,873,946 | 25% | ||
coinbitgold | 0 | 48,300,445,925 | 100% | ||
hitmeasap | 0 | 8,184,193,970 | 5% | ||
jens84 | 0 | 35,775,956,574 | 25% | ||
team-leibniz | 0 | 31,845,998,287 | 40% | ||
ace108 | 0 | 139,310,501,218 | 15% | ||
sykochica | 0 | 75,556,843,049 | 20% | ||
cristi | 0 | 398,820,967,228 | 100% | ||
scaredycatguide | 0 | 66,137,539,364 | 20% | ||
mada | 0 | 27,768,831,276 | 100% | ||
elguille | 0 | 15,845,247,562 | 100% | ||
ionescur | 0 | 17,353,699,643 | 100% | ||
mcsvi | 0 | 157,504,689,861 | 100% | ||
geke | 0 | 41,843,177,791 | 50% | ||
schattenjaeger | 0 | 53,365,048,180 | 100% | ||
mrtv2 | 0 | 54,714,799,271 | 100% | ||
mitchelljaworski | 0 | 5,461,255,311 | 25% | ||
mangos | 0 | 511,093,969,998 | 15% | ||
anzirpasai | 0 | 1,530,239,507 | 100% | ||
jamhuery | 0 | 14,464,028,867 | 40% | ||
bendelgreco | 0 | 5,540,366,436 | 100% | ||
dber | 0 | 10,498,761,310 | 16% | ||
kramarenko | 0 | 138,526,052 | 100% | ||
veleje | 0 | 11,194,570,874 | 100% | ||
favcau | 0 | 29,526,054,265 | 100% | ||
nixon73 | 0 | 328,496,634 | 100% | ||
mdraihanhkn | 0 | 159,707,422 | 100% | ||
hxr | 0 | 605,637,100 | 100% | ||
davidmaldonado | 0 | 582,817,264 | 100% | ||
exaly | 0 | 534,999,484 | 100% | ||
luj1 | 0 | 559,245,908 | 100% | ||
budid | 0 | 248,859,508 | 100% |
THAnk you for sharing that @cristi
post_id | 27,991,950 |
---|---|
author | zoogataga |
permlink | re-cristi-neural-networks-with-python-part-9-20180125t130632155z |
category | machine-learning |
json_metadata | "{"app": "steemit/0.1", "users": ["cristi"], "tags": ["machine-learning"]}" |
created | 2018-01-25 13:06:36 |
last_update | 2018-01-25 13:06:36 |
depth | 1 |
children | 0 |
net_rshares | 475,878,986 |
last_payout | 2018-02-01 13:06:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 34 |
author_reputation | 131,152,863,700 |
root_title | "Neural Networks with Python - [Part 9]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
zoogataga | 0 | 475,878,986 | 100% |
Tutorial at the level. good luck my friend ♥ thank you for sharing ♥ support you
post_id | 27,992,171 |
---|---|
author | venox |
permlink | re-cristi-neural-networks-with-python-part-9-20180125t130731778z |
category | machine-learning |
json_metadata | "{"app": "steemit/0.1", "tags": ["machine-learning"]}" |
created | 2018-01-25 13:07:36 |
last_update | 2018-01-25 13:07:36 |
depth | 1 |
children | 0 |
net_rshares | 262,163,896 |
last_payout | 2018-02-01 13:07:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 80 |
author_reputation | 459,433,037,961 |
root_title | "Neural Networks with Python - [Part 9]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
venox | 0 | 262,163,896 | 100% |
i appreciate you dare.. thanks for sharing.keep it up
post_id | 27,993,335 |
---|---|
author | rasel786 |
permlink | re-cristi-neural-networks-with-python-part-9-20180125t131308465z |
category | machine-learning |
json_metadata | "{"app": "steemit/0.1", "tags": ["machine-learning"]}" |
created | 2018-01-25 13:14:00 |
last_update | 2018-01-25 13:14:00 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-02-01 13:14:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 53 |
author_reputation | 55,377,498,415 |
root_title | "Neural Networks with Python - [Part 9]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Looks amazing man thank you for sharing bro
post_id | 27,996,945 |
---|---|
author | mdraihanhkn |
permlink | re-cristi-neural-networks-with-python-part-9-20180125t133218000z |
category | machine-learning |
json_metadata | "{"app": "steemit/0.1", "tags": ["machine-learning"]}" |
created | 2018-01-25 13:32:24 |
last_update | 2018-01-25 13:32:24 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-02-01 13:32:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 43 |
author_reputation | 283,284,114,896 |
root_title | "Neural Networks with Python - [Part 9]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
a good tutorial that you just uploaded brother. Greetings and keep loading information like this
post_id | 28,026,304 |
---|---|
author | josuhimovic |
permlink | re-cristi-neural-networks-with-python-part-9-20180125t163455282z |
category | machine-learning |
json_metadata | "{"app": "steemit/0.1", "tags": ["machine-learning"]}" |
created | 2018-01-25 16:06:27 |
last_update | 2018-01-25 16:06:27 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-02-01 16:06:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 96 |
author_reputation | 146,404,880,873 |
root_title | "Neural Networks with Python - [Part 9]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Great tutorial !good luck my friend, looks amazing man!
post_id | 28,046,287 |
---|---|
author | marlongonzalezr7 |
permlink | re-cristi-neural-networks-with-python-part-9-20180125t183004154z |
category | machine-learning |
json_metadata | "{"app": "steemit/0.1", "tags": ["machine-learning"]}" |
created | 2018-01-25 17:59:00 |
last_update | 2018-01-25 17:59:00 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-02-01 17:59:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 55 |
author_reputation | 51,946,411,983 |
root_title | "Neural Networks with Python - [Part 9]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
You're like a living, breathing information database. :D Nutrition, workouts, python...
post_id | 28,075,089 |
---|---|
author | schattenjaeger |
permlink | re-cristi-neural-networks-with-python-part-9-20180125t205219179z |
category | machine-learning |
json_metadata | "{"app": "steemit/0.1", "tags": ["machine-learning"]}" |
created | 2018-01-25 20:52:18 |
last_update | 2018-01-25 20:52:18 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-02-01 20:52:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 88 |
author_reputation | 133,181,666,357,162 |
root_title | "Neural Networks with Python - [Part 9]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Interesting to see this type of information here in steemit, you can learn everything. Greetings from Venezuela
post_id | 28,240,335 |
---|---|
author | davidmaldonado |
permlink | re-cristi-neural-networks-with-python-part-9-20180126t140243860z |
category | machine-learning |
json_metadata | "{"app": "steemit/0.1", "tags": ["machine-learning"]}" |
created | 2018-01-26 14:02:33 |
last_update | 2018-01-26 14:02:33 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-02-02 14:02:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 111 |
author_reputation | 157,277,525,147 |
root_title | "Neural Networks with Python - [Part 9]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |