Neural Networks with Python - [Part 9] by cristi

View this thread on steempeak.com
· @cristi ·
$17.53
Neural Networks with Python - [Part 9]
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
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id27,991,620
authorcristi
permlinkneural-networks-with-python-part-9
categorymachine-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"]}"
created2018-01-25 13:04:51
last_update2018-01-25 13:04:51
depth0
children8
net_rshares1,873,060,272,601
last_payout2018-02-01 13:04:51
cashout_time1969-12-31 23:59:59
total_payout_value15.434 SBD
curator_payout_value2.091 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,788
author_reputation128,167,460,043,555
root_title"Neural Networks with Python - [Part 9]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (33)
@zoogataga ·
THAnk you for sharing that @cristi
👍  
properties (23)
post_id27,991,950
authorzoogataga
permlinkre-cristi-neural-networks-with-python-part-9-20180125t130632155z
categorymachine-learning
json_metadata"{"app": "steemit/0.1", "users": ["cristi"], "tags": ["machine-learning"]}"
created2018-01-25 13:06:36
last_update2018-01-25 13:06:36
depth1
children0
net_rshares475,878,986
last_payout2018-02-01 13:06:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length34
author_reputation131,152,863,700
root_title"Neural Networks with Python - [Part 9]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@venox ·
Tutorial at the level. good luck my friend
♥ thank you for sharing ♥ support you
👍  
properties (23)
post_id27,992,171
authorvenox
permlinkre-cristi-neural-networks-with-python-part-9-20180125t130731778z
categorymachine-learning
json_metadata"{"app": "steemit/0.1", "tags": ["machine-learning"]}"
created2018-01-25 13:07:36
last_update2018-01-25 13:07:36
depth1
children0
net_rshares262,163,896
last_payout2018-02-01 13:07:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length80
author_reputation459,433,037,961
root_title"Neural Networks with Python - [Part 9]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@rasel786 ·
i appreciate you dare.. thanks for sharing.keep it up
properties (22)
post_id27,993,335
authorrasel786
permlinkre-cristi-neural-networks-with-python-part-9-20180125t131308465z
categorymachine-learning
json_metadata"{"app": "steemit/0.1", "tags": ["machine-learning"]}"
created2018-01-25 13:14:00
last_update2018-01-25 13:14:00
depth1
children0
net_rshares0
last_payout2018-02-01 13:14:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length53
author_reputation55,377,498,415
root_title"Neural Networks with Python - [Part 9]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@mdraihanhkn ·
Looks amazing man thank you for sharing bro
properties (22)
post_id27,996,945
authormdraihanhkn
permlinkre-cristi-neural-networks-with-python-part-9-20180125t133218000z
categorymachine-learning
json_metadata"{"app": "steemit/0.1", "tags": ["machine-learning"]}"
created2018-01-25 13:32:24
last_update2018-01-25 13:32:24
depth1
children0
net_rshares0
last_payout2018-02-01 13:32:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length43
author_reputation283,284,114,896
root_title"Neural Networks with Python - [Part 9]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@josuhimovic ·
a good tutorial that you just uploaded brother. Greetings and keep loading information like this
properties (22)
post_id28,026,304
authorjosuhimovic
permlinkre-cristi-neural-networks-with-python-part-9-20180125t163455282z
categorymachine-learning
json_metadata"{"app": "steemit/0.1", "tags": ["machine-learning"]}"
created2018-01-25 16:06:27
last_update2018-01-25 16:06:27
depth1
children0
net_rshares0
last_payout2018-02-01 16:06:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length96
author_reputation146,404,880,873
root_title"Neural Networks with Python - [Part 9]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@marlongonzalezr7 ·
Great tutorial !good luck my friend, looks amazing man!
properties (22)
post_id28,046,287
authormarlongonzalezr7
permlinkre-cristi-neural-networks-with-python-part-9-20180125t183004154z
categorymachine-learning
json_metadata"{"app": "steemit/0.1", "tags": ["machine-learning"]}"
created2018-01-25 17:59:00
last_update2018-01-25 17:59:00
depth1
children0
net_rshares0
last_payout2018-02-01 17:59:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length55
author_reputation51,946,411,983
root_title"Neural Networks with Python - [Part 9]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@schattenjaeger ·
You're like a living, breathing information database. :D

Nutrition, workouts, python...
properties (22)
post_id28,075,089
authorschattenjaeger
permlinkre-cristi-neural-networks-with-python-part-9-20180125t205219179z
categorymachine-learning
json_metadata"{"app": "steemit/0.1", "tags": ["machine-learning"]}"
created2018-01-25 20:52:18
last_update2018-01-25 20:52:18
depth1
children0
net_rshares0
last_payout2018-02-01 20:52:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length88
author_reputation133,181,666,357,162
root_title"Neural Networks with Python - [Part 9]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@davidmaldonado ·
Interesting to see this type of information here in steemit, you can learn everything. Greetings from Venezuela
properties (22)
post_id28,240,335
authordavidmaldonado
permlinkre-cristi-neural-networks-with-python-part-9-20180126t140243860z
categorymachine-learning
json_metadata"{"app": "steemit/0.1", "tags": ["machine-learning"]}"
created2018-01-26 14:02:33
last_update2018-01-26 14:02:33
depth1
children0
net_rshares0
last_payout2018-02-02 14:02:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length111
author_reputation157,277,525,147
root_title"Neural Networks with Python - [Part 9]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000