From 685ab5e81027f8b35dbf94bac3bd76f317fca5c5 Mon Sep 17 00:00:00 2001 From: "Mohammad H. Sattarian" Date: Fri, 30 Mar 2018 19:02:49 +0430 Subject: [PATCH] Minor fixes + adding aznb badge --- 0-Beginning.ipynb | 33 ++++----- ...ading, writing and displaying images.ipynb | 32 ++++----- 02-Grayscaling.ipynb | 20 +++--- 03-Color Spaces.ipynb | 6 +- 03-extra.ipynb | 14 ++-- 04-Drawing Images.ipynb | 36 ++++------ 05-Translations.ipynb | 20 +++--- 06-Rotations.ipynb | 16 ++--- ...caling, re-sizing and interpolations.ipynb | 16 ++--- 08-Image Pyramids.ipynb | 16 ++--- 09-Cropping.ipynb | 25 +++---- 10-Arithmetic Operations.ipynb | 6 +- 11-Bitwise Operations and Masking.ipynb | 6 +- 12-Convolutions and Blurring.ipynb | 6 +- 13-Sharpening.ipynb | 6 +- ...Binarization & Adaptive Thresholding.ipynb | 6 +- ...lation, Erosion, Opening and Closing.ipynb | 6 +- 16-EdgeDetection&ImageGradients.ipynb | 16 ++--- 17-Perspective&AffineTransforms.ipynb | 20 +++--- 18-UsingWebcam.ipynb | 21 +++--- 19-Intro2ML-HodaDataset.ipynb | 29 +++----- 20-k-Nearest Neighbor classification.ipynb | 68 +++++++++---------- ...o Keras - Simple neural network(mlp).ipynb | 43 ++++-------- 23 files changed, 211 insertions(+), 256 deletions(-) diff --git a/0-Beginning.ipynb b/0-Beginning.ipynb index 4f2d224..b23d4ad 100644 --- a/0-Beginning.ipynb +++ b/0-Beginning.ipynb @@ -1,5 +1,14 @@ { "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -10,9 +19,7 @@ { "cell_type": "code", "execution_count": 1, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -37,9 +44,7 @@ { "cell_type": "code", "execution_count": 2, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -66,9 +71,7 @@ { "cell_type": "code", "execution_count": 3, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "import cv2\n", @@ -86,9 +89,7 @@ { "cell_type": "code", "execution_count": 4, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -119,9 +120,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [conda env:virtual_platform]", + "display_name": "Python 3", "language": "python", - "name": "conda-env-virtual_platform-py" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -133,9 +134,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" } }, "nbformat": 4, - "nbformat_minor": 0 + "nbformat_minor": 1 } diff --git a/01-Reading, writing and displaying images.ipynb b/01-Reading, writing and displaying images.ipynb index 307a028..aa8ba53 100644 --- a/01-Reading, writing and displaying images.ipynb +++ b/01-Reading, writing and displaying images.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -30,9 +32,7 @@ { "cell_type": "code", "execution_count": 1, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "# Press CTRL + ENTER to run this line\n", @@ -67,9 +67,7 @@ { "cell_type": "code", "execution_count": 3, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "# We don't need to do this again, but it's a good habit\n", @@ -138,9 +136,7 @@ { "cell_type": "code", "execution_count": 5, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -168,9 +164,7 @@ { "cell_type": "code", "execution_count": 6, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -198,9 +192,7 @@ { "cell_type": "code", "execution_count": 7, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "data": { @@ -254,9 +246,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [conda env:virtual_platform]", + "display_name": "Python 3", "language": "python", - "name": "conda-env-virtual_platform-py" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -268,9 +260,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" } }, "nbformat": 4, - "nbformat_minor": 0 + "nbformat_minor": 1 } diff --git a/02-Grayscaling.ipynb b/02-Grayscaling.ipynb index 2d43e4e..b44bb53 100644 --- a/02-Grayscaling.ipynb +++ b/02-Grayscaling.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -23,9 +25,7 @@ { "cell_type": "code", "execution_count": 7, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -55,9 +55,7 @@ { "cell_type": "code", "execution_count": 5, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -89,9 +87,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [conda env:virtual_platform]", + "display_name": "Python 3", "language": "python", - "name": "conda-env-virtual_platform-py" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -103,9 +101,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" } }, "nbformat": 4, - "nbformat_minor": 0 + "nbformat_minor": 1 } diff --git a/03-Color Spaces.ipynb b/03-Color Spaces.ipynb index 5af15bf..1cc1b3f 100644 --- a/03-Color Spaces.ipynb +++ b/03-Color Spaces.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -300,7 +302,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.1" + "version": "3.6.4" } }, "nbformat": 4, diff --git a/03-extra.ipynb b/03-extra.ipynb index 5a11e36..05ce924 100644 --- a/03-extra.ipynb +++ b/03-extra.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -22,9 +24,7 @@ { "cell_type": "code", "execution_count": 42, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "img = cv2.imread('./images/color.png')\n", @@ -61,9 +61,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [conda env:virtual_platform]", + "display_name": "Python 3", "language": "python", - "name": "conda-env-virtual_platform-py" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -75,7 +75,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" } }, "nbformat": 4, diff --git a/04-Drawing Images.ipynb b/04-Drawing Images.ipynb index 13af365..ef10a44 100644 --- a/04-Drawing Images.ipynb +++ b/04-Drawing Images.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -17,9 +19,7 @@ { "cell_type": "code", "execution_count": 1, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "import cv2\n", @@ -49,9 +49,7 @@ { "cell_type": "code", "execution_count": 2, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "# Draw a diagonal blue line of thickness of 5 pixels\n", @@ -91,9 +89,7 @@ { "cell_type": "code", "execution_count": 3, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "# Draw a Rectangle in\n", @@ -120,9 +116,7 @@ { "cell_type": "code", "execution_count": 4, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "image = np.zeros((512,512,3), np.uint8)\n", @@ -143,9 +137,7 @@ { "cell_type": "code", "execution_count": 5, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "image = np.zeros((512,512,3), np.uint8)\n", @@ -191,9 +183,7 @@ { "cell_type": "code", "execution_count": 6, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "image = np.zeros((512,512,3), np.uint8)\n", @@ -230,9 +220,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [conda env:virtual_platform]", + "display_name": "Python 3", "language": "python", - "name": "conda-env-virtual_platform-py" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -244,9 +234,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" } }, "nbformat": 4, - "nbformat_minor": 0 + "nbformat_minor": 1 } diff --git a/05-Translations.ipynb b/05-Translations.ipynb index 1874a7e..1c5f9d7 100644 --- a/05-Translations.ipynb +++ b/05-Translations.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -23,9 +25,7 @@ { "cell_type": "code", "execution_count": 6, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "import cv2\n", @@ -54,9 +54,7 @@ { "cell_type": "code", "execution_count": 2, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -97,9 +95,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [conda env:virtual_platform]", + "display_name": "Python 3", "language": "python", - "name": "conda-env-virtual_platform-py" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -111,9 +109,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" } }, "nbformat": 4, - "nbformat_minor": 0 + "nbformat_minor": 1 } diff --git a/06-Rotations.ipynb b/06-Rotations.ipynb index 515ac7e..2abcd82 100644 --- a/06-Rotations.ipynb +++ b/06-Rotations.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -18,9 +20,7 @@ { "cell_type": "code", "execution_count": 1, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -138,9 +138,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [conda env:virtual_platform]", + "display_name": "Python 3", "language": "python", - "name": "conda-env-virtual_platform-py" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -152,9 +152,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" } }, "nbformat": 4, - "nbformat_minor": 0 + "nbformat_minor": 1 } diff --git a/07-Scaling, re-sizing and interpolations.ipynb b/07-Scaling, re-sizing and interpolations.ipynb index aa9d6c5..4633f78 100644 --- a/07-Scaling, re-sizing and interpolations.ipynb +++ b/07-Scaling, re-sizing and interpolations.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -23,9 +25,7 @@ { "cell_type": "code", "execution_count": 1, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "import cv2\n", @@ -107,9 +107,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [conda env:virtual_platform]", + "display_name": "Python 3", "language": "python", - "name": "conda-env-virtual_platform-py" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -121,9 +121,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" } }, "nbformat": 4, - "nbformat_minor": 0 + "nbformat_minor": 1 } diff --git a/08-Image Pyramids.ipynb b/08-Image Pyramids.ipynb index 321eff5..30b4bfc 100644 --- a/08-Image Pyramids.ipynb +++ b/08-Image Pyramids.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -19,9 +21,7 @@ { "cell_type": "code", "execution_count": 1, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "import cv2\n", @@ -65,9 +65,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [conda env:virtual_platform]", + "display_name": "Python 3", "language": "python", - "name": "conda-env-virtual_platform-py" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -79,9 +79,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" } }, "nbformat": 4, - "nbformat_minor": 0 + "nbformat_minor": 1 } diff --git a/09-Cropping.ipynb b/09-Cropping.ipynb index b28dbc4..1e72013 100644 --- a/09-Cropping.ipynb +++ b/09-Cropping.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -23,7 +25,6 @@ "cell_type": "code", "execution_count": 16, "metadata": { - "collapsed": false, "nbpresent": { "id": "de829a92-1fb6-44ad-a2c6-fc1001e1f6e1" } @@ -54,9 +55,7 @@ { "cell_type": "code", "execution_count": 11, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "a=np.array([[100,200,400],[1,2,3]])" @@ -65,9 +64,7 @@ { "cell_type": "code", "execution_count": 14, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "data": { @@ -88,9 +85,7 @@ { "cell_type": "code", "execution_count": 15, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "data": { @@ -137,9 +132,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [conda env:virtual_platform]", + "display_name": "Python 3", "language": "python", - "name": "conda-env-virtual_platform-py" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -151,7 +146,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" }, "nbpresent": { "slides": { @@ -236,5 +231,5 @@ } }, "nbformat": 4, - "nbformat_minor": 0 + "nbformat_minor": 1 } diff --git a/10-Arithmetic Operations.ipynb b/10-Arithmetic Operations.ipynb index 030e51b..18e6ab6 100644 --- a/10-Arithmetic Operations.ipynb +++ b/10-Arithmetic Operations.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -278,7 +280,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" } }, "nbformat": 4, diff --git a/11-Bitwise Operations and Masking.ipynb b/11-Bitwise Operations and Masking.ipynb index 77c79c6..df6ddbe 100644 --- a/11-Bitwise Operations and Masking.ipynb +++ b/11-Bitwise Operations and Masking.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -255,7 +257,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" } }, "nbformat": 4, diff --git a/12-Convolutions and Blurring.ipynb b/12-Convolutions and Blurring.ipynb index b280e1e..e79269b 100644 --- a/12-Convolutions and Blurring.ipynb +++ b/12-Convolutions and Blurring.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -195,7 +197,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" } }, "nbformat": 4, diff --git a/13-Sharpening.ipynb b/13-Sharpening.ipynb index ad2d815..12f47aa 100644 --- a/13-Sharpening.ipynb +++ b/13-Sharpening.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -71,7 +73,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" } }, "nbformat": 4, diff --git a/14-Thresholding, Binarization & Adaptive Thresholding.ipynb b/14-Thresholding, Binarization & Adaptive Thresholding.ipynb index 628e1d1..60a1b53 100644 --- a/14-Thresholding, Binarization & Adaptive Thresholding.ipynb +++ b/14-Thresholding, Binarization & Adaptive Thresholding.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -261,7 +263,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" } }, "nbformat": 4, diff --git a/15-Dilation, Erosion, Opening and Closing.ipynb b/15-Dilation, Erosion, Opening and Closing.ipynb index edebd3c..9733def 100644 --- a/15-Dilation, Erosion, Opening and Closing.ipynb +++ b/15-Dilation, Erosion, Opening and Closing.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -108,7 +110,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" } }, "nbformat": 4, diff --git a/16-EdgeDetection&ImageGradients.ipynb b/16-EdgeDetection&ImageGradients.ipynb index f48706d..f23b086 100644 --- a/16-EdgeDetection&ImageGradients.ipynb +++ b/16-EdgeDetection&ImageGradients.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -17,9 +19,7 @@ { "cell_type": "code", "execution_count": 1, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "import cv2\n", @@ -84,9 +84,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [conda env:virtual_platform]", + "display_name": "Python 3", "language": "python", - "name": "conda-env-virtual_platform-py" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -98,9 +98,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" } }, "nbformat": 4, - "nbformat_minor": 0 + "nbformat_minor": 1 } diff --git a/17-Perspective&AffineTransforms.ipynb b/17-Perspective&AffineTransforms.ipynb index fc362e4..d550e0e 100644 --- a/17-Perspective&AffineTransforms.ipynb +++ b/17-Perspective&AffineTransforms.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -34,9 +36,7 @@ { "cell_type": "code", "execution_count": 1, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "import cv2\n", @@ -91,9 +91,7 @@ { "cell_type": "code", "execution_count": 2, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "import cv2\n", @@ -140,9 +138,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [conda env:virtual_platform]", + "display_name": "Python 3", "language": "python", - "name": "conda-env-virtual_platform-py" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -154,9 +152,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" } }, "nbformat": 4, - "nbformat_minor": 0 + "nbformat_minor": 1 } diff --git a/18-UsingWebcam.ipynb b/18-UsingWebcam.ipynb index 69b57a8..07ce9ef 100644 --- a/18-UsingWebcam.ipynb +++ b/18-UsingWebcam.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -23,7 +25,6 @@ "cell_type": "code", "execution_count": 1, "metadata": { - "collapsed": false, "nbpresent": { "id": "de829a92-1fb6-44ad-a2c6-fc1001e1f6e1" } @@ -59,9 +60,7 @@ { "cell_type": "code", "execution_count": 2, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "import cv2\n", @@ -90,9 +89,7 @@ { "cell_type": "code", "execution_count": 3, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "import cv2\n", @@ -135,9 +132,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [conda env:virtual_platform]", + "display_name": "Python 3", "language": "python", - "name": "conda-env-virtual_platform-py" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -149,7 +146,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" }, "nbpresent": { "slides": { @@ -234,5 +231,5 @@ } }, "nbformat": 4, - "nbformat_minor": 0 + "nbformat_minor": 1 } diff --git a/19-Intro2ML-HodaDataset.ipynb b/19-Intro2ML-HodaDataset.ipynb index b750771..6c9dd3c 100644 --- a/19-Intro2ML-HodaDataset.ipynb +++ b/19-Intro2ML-HodaDataset.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -56,7 +58,6 @@ "cell_type": "code", "execution_count": 1, "metadata": { - "collapsed": false, "nbpresent": { "id": "de829a92-1fb6-44ad-a2c6-fc1001e1f6e1" } @@ -82,9 +83,7 @@ { "cell_type": "code", "execution_count": 2, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "#load dataset\n", @@ -108,9 +107,7 @@ { "cell_type": "code", "execution_count": 3, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "#test and training set\n", @@ -132,9 +129,7 @@ { "cell_type": "code", "execution_count": 4, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "cv2.imshow('Hoda[0]',X_train_orginal[0])\n", @@ -154,9 +149,7 @@ { "cell_type": "code", "execution_count": 5, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "data": { @@ -257,9 +250,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [conda env:virtual_platform]", + "display_name": "Python 3", "language": "python", - "name": "conda-env-virtual_platform-py" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -271,7 +264,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" }, "nbpresent": { "slides": { @@ -356,5 +349,5 @@ } }, "nbformat": 4, - "nbformat_minor": 0 + "nbformat_minor": 1 } diff --git a/20-k-Nearest Neighbor classification.ipynb b/20-k-Nearest Neighbor classification.ipynb index d338527..d782b65 100644 --- a/20-k-Nearest Neighbor classification.ipynb +++ b/20-k-Nearest Neighbor classification.ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -39,9 +41,8 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, "metadata": { - "collapsed": false, "nbpresent": { "id": "de829a92-1fb6-44ad-a2c6-fc1001e1f6e1" } @@ -64,10 +65,8 @@ }, { "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, + "execution_count": 3, + "metadata": {}, "outputs": [], "source": [ "X_train, y_train, X_test, y_test = load_hoda()" @@ -84,10 +83,8 @@ }, { "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, + "execution_count": 4, + "metadata": {}, "outputs": [ { "data": { @@ -97,7 +94,7 @@ " weights='uniform')" ] }, - "execution_count": 3, + "execution_count": 4, "metadata": {}, "output_type": "execute_result" } @@ -118,10 +115,8 @@ }, { "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, + "execution_count": 7, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -143,16 +138,14 @@ }, { "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, + "execution_count": 8, + "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "[[ 0. 0. 1. 0. 0. 0. 0. 0. 0. 0.]]\n" + "[[0. 0. 1. 0. 0. 0. 0. 0. 0. 0.]]\n" ] } ], @@ -182,17 +175,20 @@ }, { "cell_type": "code", - "execution_count": 6, - "metadata": { - "collapsed": false - }, + "execution_count": 9, + "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Predicted classes:\n", - "[2]\n", + "[7 2 3 1 5 5 4 7 3 2 0 8 8 0 3 9 3 6 7 4 0 3 6 3 9 2 7 5 2 9 7 5 5 8 9 6 5\n", + " 1 4 8 8 4 2 7 1 2 7 9 0 3 7 4 7 5 2 9 8 2 9 8 8 6 6 6 7 6 2 4 1 4 4 5 9 1\n", + " 8 2 0 5 6 2 4 3 2 7 7 7 7 1 8 1 7 8 7 7 8 9 3 2 3 1 0 2 9 7 3 5 5 0 0 2 6\n", + " 7 9 3 9 9 8 7 9 2 5 2 5 5 9 6 9 2 0 3 7 6 5 2 9 0 4 1 8 2 2 3 0 2 9 3 8 6\n", + " 7 0 9 9 0 7 6 1 4 7 9 3 7 0 7 1 9 4 7 3 4 1 5 6 7 9 1 3 5 4 5 7 4 1 3 3 1\n", + " 2 5 3 8 9 6 7 7 2 3 0 1 4 9 5]\n", "True classes:\n", "[7 2 3 1 5 5 4 7 3 2 0 8 8 0 2 9 3 6 7 4 0 3 6 3 9 2 7 5 2 9 7 5 5 8 9 6 5\n", " 1 4 8 8 4 7 7 1 2 7 9 0 3 7 4 7 5 2 9 8 2 9 8 8 6 6 6 6 6 2 4 3 4 4 5 9 1\n", @@ -208,7 +204,7 @@ "true_classes = y_test\n", "\n", "print(\"Predicted classes:\")\n", - "print(predicted_class)\n", + "print(pred_classes)\n", "print(\"True classes:\")\n", "print(y_test)" ] @@ -222,22 +218,20 @@ }, { "cell_type": "code", - "execution_count": 7, - "metadata": { - "collapsed": false - }, + "execution_count": 13, + "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "Acuracy is 0.96 %\n" + "Accuracy is 96.00 %\n" ] } ], "source": [ "acc = neigh.score(X_test, y_test)\n", - "print (\"Acuracy is %.2f %%\"%acc)" + "print (\"Accuracy is %.2f %%\" %(acc*100))" ] }, { @@ -266,9 +260,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [conda env:virtual_platform]", + "display_name": "Python 3", "language": "python", - "name": "conda-env-virtual_platform-py" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -280,7 +274,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" }, "nbpresent": { "slides": { @@ -365,5 +359,5 @@ } }, "nbformat": 4, - "nbformat_minor": 0 + "nbformat_minor": 1 } diff --git a/21-a Gentle Introduction to Keras - Simple neural network(mlp).ipynb b/21-a Gentle Introduction to Keras - Simple neural network(mlp).ipynb index 1764939..82c5322 100644 --- a/21-a Gentle Introduction to Keras - Simple neural network(mlp).ipynb +++ b/21-a Gentle Introduction to Keras - Simple neural network(mlp).ipynb @@ -4,7 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "\"SRTTU\"" + "\"SRTTU\"\n", + "\n", + "[![Azure Notebooks](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/Alireza-Akhavan/class.vision)" ] }, { @@ -40,7 +42,6 @@ "cell_type": "code", "execution_count": 1, "metadata": { - "collapsed": false, "nbpresent": { "id": "de829a92-1fb6-44ad-a2c6-fc1001e1f6e1" } @@ -132,9 +133,7 @@ { "cell_type": "code", "execution_count": 4, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "def print_data_info(x_train, y_train, x_test, y_test):\n", @@ -155,9 +154,7 @@ { "cell_type": "code", "execution_count": 5, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "# Preprocess input data for Keras. \n", @@ -170,9 +167,7 @@ { "cell_type": "code", "execution_count": 6, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -239,9 +234,7 @@ { "cell_type": "code", "execution_count": 8, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [], "source": [ "model = Sequential()\n", @@ -279,9 +272,7 @@ { "cell_type": "code", "execution_count": 10, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -376,9 +367,7 @@ { "cell_type": "code", "execution_count": 11, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -405,9 +394,7 @@ { "cell_type": "code", "execution_count": 12, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -451,9 +438,7 @@ { "cell_type": "code", "execution_count": 13, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -589,9 +574,9 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [conda env:virtual_platform]", + "display_name": "Python 3", "language": "python", - "name": "conda-env-virtual_platform-py" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -603,7 +588,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.4" + "version": "3.6.4" }, "nbpresent": { "slides": {