254 lines
77 KiB
Plaintext
254 lines
77 KiB
Plaintext
|
{
|
|||
|
"nbformat": 4,
|
|||
|
"nbformat_minor": 0,
|
|||
|
"metadata": {
|
|||
|
"colab": {
|
|||
|
"name": "Inspecting_grayscale_images.ipynb",
|
|||
|
"provenance": [],
|
|||
|
"include_colab_link": true
|
|||
|
},
|
|||
|
"kernelspec": {
|
|||
|
"name": "python3",
|
|||
|
"display_name": "Python 3"
|
|||
|
}
|
|||
|
},
|
|||
|
"cells": [
|
|||
|
{
|
|||
|
"cell_type": "markdown",
|
|||
|
"metadata": {
|
|||
|
"id": "view-in-github",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"source": [
|
|||
|
"<a href=\"https://colab.research.google.com/github/PacktPublishing/Hands-On-Computer-Vision-with-PyTorch/blob/master/Chapter03/Inspecting_grayscale_images.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"metadata": {
|
|||
|
"id": "h1l86eapfFZL",
|
|||
|
"outputId": "c61302d0-6cdd-470c-aafb-c885cf872041",
|
|||
|
"colab": {
|
|||
|
"base_uri": "https://localhost:8080/",
|
|||
|
"height": 377
|
|||
|
}
|
|||
|
},
|
|||
|
"source": [
|
|||
|
"!wget https://www.dropbox.com/s/l98leemr7r5stnm/Hemanvi.jpeg"
|
|||
|
],
|
|||
|
"execution_count": null,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "stream",
|
|||
|
"text": [
|
|||
|
"--2020-09-24 05:01:20-- https://www.dropbox.com/s/l98leemr7r5stnm/Hemanvi.jpeg\n",
|
|||
|
"Resolving www.dropbox.com (www.dropbox.com)... 162.125.5.1, 2620:100:601d:1::a27d:501\n",
|
|||
|
"Connecting to www.dropbox.com (www.dropbox.com)|162.125.5.1|:443... connected.\n",
|
|||
|
"HTTP request sent, awaiting response... 301 Moved Permanently\n",
|
|||
|
"Location: /s/raw/l98leemr7r5stnm/Hemanvi.jpeg [following]\n",
|
|||
|
"--2020-09-24 05:01:20-- https://www.dropbox.com/s/raw/l98leemr7r5stnm/Hemanvi.jpeg\n",
|
|||
|
"Reusing existing connection to www.dropbox.com:443.\n",
|
|||
|
"HTTP request sent, awaiting response... 302 Found\n",
|
|||
|
"Location: https://uc5e32e2c709a61fb3a3974fb3a2.dl.dropboxusercontent.com/cd/0/inline/A_8kYWz6Ib0IHovWnkgWldxl-D9gQmZOoriI0tEfWqwWiIbOG6Kyb0PJpOtKovd3hvBKPJT0Lyy_vvok1iqFWG2GsfC1PklEYGWp237PyuNFxw/file# [following]\n",
|
|||
|
"--2020-09-24 05:01:20-- https://uc5e32e2c709a61fb3a3974fb3a2.dl.dropboxusercontent.com/cd/0/inline/A_8kYWz6Ib0IHovWnkgWldxl-D9gQmZOoriI0tEfWqwWiIbOG6Kyb0PJpOtKovd3hvBKPJT0Lyy_vvok1iqFWG2GsfC1PklEYGWp237PyuNFxw/file\n",
|
|||
|
"Resolving uc5e32e2c709a61fb3a3974fb3a2.dl.dropboxusercontent.com (uc5e32e2c709a61fb3a3974fb3a2.dl.dropboxusercontent.com)... 162.125.5.15, 2620:100:601d:15::a27d:50f\n",
|
|||
|
"Connecting to uc5e32e2c709a61fb3a3974fb3a2.dl.dropboxusercontent.com (uc5e32e2c709a61fb3a3974fb3a2.dl.dropboxusercontent.com)|162.125.5.15|:443... connected.\n",
|
|||
|
"HTTP request sent, awaiting response... 200 OK\n",
|
|||
|
"Length: 53839 (53K) [image/jpeg]\n",
|
|||
|
"Saving to: ‘Hemanvi.jpeg’\n",
|
|||
|
"\n",
|
|||
|
"Hemanvi.jpeg 100%[===================>] 52.58K --.-KB/s in 0.03s \n",
|
|||
|
"\n",
|
|||
|
"2020-09-24 05:01:21 (1.89 MB/s) - ‘Hemanvi.jpeg’ saved [53839/53839]\n",
|
|||
|
"\n"
|
|||
|
],
|
|||
|
"name": "stdout"
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"metadata": {
|
|||
|
"id": "0GelMzaXfGco"
|
|||
|
},
|
|||
|
"source": [
|
|||
|
"%matplotlib inline\n",
|
|||
|
"import cv2, matplotlib.pyplot as plt\n",
|
|||
|
"img = cv2.imread('Hemanvi.jpeg')"
|
|||
|
],
|
|||
|
"execution_count": null,
|
|||
|
"outputs": []
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"metadata": {
|
|||
|
"id": "e7082vwlfIO8",
|
|||
|
"outputId": "d53781be-c1d7-4e5e-c7db-150340ded8d7",
|
|||
|
"colab": {
|
|||
|
"base_uri": "https://localhost:8080/",
|
|||
|
"height": 286
|
|||
|
}
|
|||
|
},
|
|||
|
"source": [
|
|||
|
"img = img[50:250,40:240]\n",
|
|||
|
"img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)\n",
|
|||
|
"plt.imshow(img_gray, cmap='gray')"
|
|||
|
],
|
|||
|
"execution_count": null,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "execute_result",
|
|||
|
"data": {
|
|||
|
"text/plain": [
|
|||
|
"<matplotlib.image.AxesImage at 0x7f4ad2b752e8>"
|
|||
|
]
|
|||
|
},
|
|||
|
"metadata": {
|
|||
|
"tags": []
|
|||
|
},
|
|||
|
"execution_count": 3
|
|||
|
},
|
|||
|
{
|
|||
|
"output_type": "display_data",
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAQEAAAD8CAYAAAB3lxGOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAgAElEQVR4nOy9WYxkWXoe9t1YM/bcqjJr6eqqXmfhOotIQAQoYijBJgw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AE9zQl7lsUAJPJBLlcDsViEel02t2zXnpOON/p9/uo1Wpot9suZkxHGLXW0tIS0um0+/FBaUUDZDQrGHyw3Nc/tk8Lw5Tsg88PQG3O9/VZbUtcDrxqfz6XSqUi5hY1P8dBfQo2r4PCFIBjuCCYZhQCQLFYxHg8PuWfsWhI+2DRi7bbJ2B1bJQm7FhT0KXTaWci0Hx8Wrp9VmhgYYSA1fwsl9npOMGhKIAOKjp3qJGUCUm8ypDD4RDNZhNHR0doNpsu8YWCgd/J5XJYXV1FMpnE0tJSZMGM9lXDh0pwvuKLKFhUY73iWuI86yRY1fS23zb8pR5/NZeoDROJRMQUIlNmMpnImCmz2lDkaDRCp9OJJPswo7BSqWAwGCCXy6FUKrmcDu2rDc36lIo1xawA0DnyCWY1Pfi+5pHo+7MclHYun4UgWBghAMT7BVQz+p496wBZ+1uJiESRTCbR7XaRz+dRKpUiIS+1UWkfMzrQ7XZRrVbRbDZdsgsJP51OYzweO8dVLpdDKpVyWlDtbmU0X5/VCagErGOiYSi2V5mUxdd/1kMBwDbyukUmKkBU2GjUgWMXhqGLpABwzlZeV1jPMVP7WeeW48t1B4PBAMlkE
|
|||
|
"text/plain": [
|
|||
|
"<Figure size 432x288 with 1 Axes>"
|
|||
|
]
|
|||
|
},
|
|||
|
"metadata": {
|
|||
|
"tags": [],
|
|||
|
"needs_background": "light"
|
|||
|
}
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"metadata": {
|
|||
|
"id": "NRLnLc2ZfPWB",
|
|||
|
"outputId": "71f8f284-c72b-44d8-ba77-65aa98c31de5",
|
|||
|
"colab": {
|
|||
|
"base_uri": "https://localhost:8080/",
|
|||
|
"height": 282
|
|||
|
}
|
|||
|
},
|
|||
|
"source": [
|
|||
|
"img_gray_small = cv2.resize(img_gray,(25,25))\n",
|
|||
|
"plt.imshow(img_gray_small, cmap='gray')"
|
|||
|
],
|
|||
|
"execution_count": null,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "execute_result",
|
|||
|
"data": {
|
|||
|
"text/plain": [
|
|||
|
"<matplotlib.image.AxesImage at 0x7f4ad2b0fa90>"
|
|||
|
]
|
|||
|
},
|
|||
|
"metadata": {
|
|||
|
"tags": []
|
|||
|
},
|
|||
|
"execution_count": 4
|
|||
|
},
|
|||
|
{
|
|||
|
"output_type": "display_data",
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAPsAAAD4CAYAAAAq5pAIAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAATW0lEQVR4nO3dbWxVZbYH8P+iFEoLlbZcGukgKqkQPniLVDCRgOPEUeeDLzHBURP5cA18kESjMdGJLxOTa+4HZ+YanUyCsYrJyAQz40ii8WKQBG6iZMqLAwwSCKLYQkulYHlrKaz7oZtJRzl7Lbt3zzm96/9LSE/Ps/rs52zO6mnPXl2PqCqI6P+/caVeABEVB5OdKAgmO1EQTHaiIJjsREGML+bB6uvrtampqZiHzGTixImp44ODg+Yc48bZ30+tKyKeKyYikkvMxYsXM6/FmgMABgYGUsetc+/lOf/WeTl27Jg5x/Tp03NZS1aHDh1CT0/PZR9QUZO9qakJ69evT42xniieJ2xeT8jZs2enjn/77bfmHDU1NWZMf39/6viFCxfMOcaPt/8rPTHWWjzf4L777jszprOzM3XcOvdenm8alZWVqeOrV68251i1alUua/E8v9MsXLiw4FimbzUicoeI7BORAyLydJa5iGh0jTjZRaQCwO8B3AlgHoAHRGReXgsjonxleWVfCOCAqh5U1QEAfwJwdz7LIqK8ZUn2JgCHh33+TXLfvxCRFSLSLiLtx48fz3A4Ispi1N8eVNXVqtqqqq319fWjfTgiKiBLsncAmDns858k9xFRGcqS7H8D0Cwi14jIBAC/BJB+XY2ISmbE19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BZCcKgslOFASTnSiIoneqsTqhZB0HgI6ODjPmoYceMmN27NiROu4p8KmurjZj9u7dmzp+zTXXmHN4tpnyFBudO3cuddyz/VNXV5cZU1VVlTp+3XXXmXN0dnaaMf39/WaMVWzkKZ6yHg8AnDx50oxZuXJl6rhVdMNONUTEZCeKgslOFASTnSgIJjtREEx2oiCY7ERBFP06u9VkwfrjfOuaNADceuutZozn+uvEiRNTx+fPn2/O8fnnn5sxVvOEw4cPm3PcdtttZozHqVOnUsd3796dOg4AX375pRlz0003pY5fddVV5hyeZhzbtm0zY6znpKc+wXquAL5dbh555JHMaymEr+xEQTDZiYJgshMFwWQnCoLJThQEk50oCCY7URBMdqIgil5UY7EaNXgKWTw7b3iaYFiNAjyFFDfffHPmtXgaRlhrBXy7llhFNXPmzDHn8DTbmDZtWuq459xajTYAX+GNVcjl2YXFE7No0SIzJutx0sb5yk4UBJOdKAgmO1EQTHaiIJjsREEw2YmCYLITBcFkJwqi7HaEee2111LHPTufWIUhgK8IwlprbW2tOceUKVPMGKtTjVWAAgDjx+fzXzl16tTUcc/5HxgYMGOsc+cpmOnu7jZjPEU11v+zZ46amhoz5oknnjBjLFbBWKYdYUSkTUS6RWT3sPt+LSIdIrIz+feLH7NgIio+z4/xbwG44zL3/05VW5J/H+a7LCLKm5nsqroZwPEirIWIRlGWN+hWicjfkx/z6woFicgKEWkXkfbe3t4MhyOiLEaa7H8AMBtAC4AjAH5TKFBVV6tqq6q21tUV/J5ARKNsRMmuql2qekFVLwJ4HcDCfJdFRHkbUbKLyJXDPr0XgL1zABGVlHlxVkTWArgFwDQR+QbACwBuEZEWAArgEICVo7hGIsqBmeyq+sBl7n5jpAfM2pXF07XFUwRhFbIAdveX6upqcw5Pd5i+vr7UcU+RUENDgxkzODhoxmQp2rhkxowZZox17jxv5nrOi+cxWwVWVVVV5hwPP/ywGeMpNrI69Hg6EhXCclmiIJjsR
|
|||
|
"text/plain": [
|
|||
|
"<Figure size 432x288 with 1 Axes>"
|
|||
|
]
|
|||
|
},
|
|||
|
"metadata": {
|
|||
|
"tags": [],
|
|||
|
"needs_background": "light"
|
|||
|
}
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"metadata": {
|
|||
|
"id": "DpKPKOP8fRZQ",
|
|||
|
"outputId": "ee837888-e8fb-4844-bef6-3b650bd29c32",
|
|||
|
"colab": {
|
|||
|
"base_uri": "https://localhost:8080/",
|
|||
|
"height": 867
|
|||
|
}
|
|||
|
},
|
|||
|
"source": [
|
|||
|
"print(img_gray_small)"
|
|||
|
],
|
|||
|
"execution_count": null,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "stream",
|
|||
|
"text": [
|
|||
|
"[[222 220 221 220 218 253 234 245 238 235 239 243 236 232 218 193 228 228\n",
|
|||
|
" 234 239 139 245 252 253 253]\n",
|
|||
|
" [221 219 219 218 232 239 186 240 231 226 227 226 215 212 209 193 199 229\n",
|
|||
|
" 234 239 150 236 252 253 253]\n",
|
|||
|
" [219 218 218 218 251 163 224 241 234 238 236 231 224 204 188 166 173 180\n",
|
|||
|
" 234 236 159 219 252 252 253]\n",
|
|||
|
" [218 219 216 211 196 248 231 228 243 241 229 224 201 209 210 189 181 189\n",
|
|||
|
" 196 235 168 204 252 252 253]\n",
|
|||
|
" [218 214 213 240 195 242 223 246 246 249 238 211 203 196 177 168 179 176\n",
|
|||
|
" 179 231 175 191 252 252 253]\n",
|
|||
|
" [212 212 208 232 254 232 252 241 232 192 155 164 166 165 164 163 168 178\n",
|
|||
|
" 178 181 190 178 250 252 251]\n",
|
|||
|
" [211 209 205 232 240 251 208 191 217 158 161 166 169 169 170 170 171 169\n",
|
|||
|
" 176 177 206 166 250 252 251]\n",
|
|||
|
" [209 209 205 243 242 225 193 241 215 184 169 163 159 158 160 173 176 184\n",
|
|||
|
" 178 179 189 150 246 250 252]\n",
|
|||
|
" [210 207 203 232 229 236 246 214 213 196 199 185 179 179 181 172 179 180\n",
|
|||
|
" 180 181 177 136 246 251 252]\n",
|
|||
|
" [209 206 222 212 242 243 244 226 184 165 104 61 57 48 27 97 158 167\n",
|
|||
|
" 178 178 178 139 246 249 252]\n",
|
|||
|
" [208 206 225 243 249 254 209 82 85 105 109 100 98 95 65 43 28 24\n",
|
|||
|
" 109 156 169 175 242 248 251]\n",
|
|||
|
" [207 205 252 255 242 153 33 66 111 116 117 116 115 109 78 66 22 27\n",
|
|||
|
" 14 9 137 159 241 245 249]\n",
|
|||
|
" [205 204 250 225 63 15 42 77 71 104 115 118 110 101 56 64 60 34\n",
|
|||
|
" 20 20 17 25 145 246 246]\n",
|
|||
|
" [207 206 209 23 16 22 90 45 39 43 110 115 99 56 23 78 107 65\n",
|
|||
|
" 15 17 20 32 76 244 246]\n",
|
|||
|
" [207 239 37 22 14 19 97 102 100 90 108 133 104 94 88 108 114 57\n",
|
|||
|
" 21 22 23 33 130 243 247]\n",
|
|||
|
" [205 133 48 24 15 17 110 124 118 119 124 134 119 116 109 123 116 36\n",
|
|||
|
" 27 25 31 44 242 243 246]\n",
|
|||
|
" [204 124 38 30 19 16 120 146 133 121 142 138 118 114 135 145 128 24\n",
|
|||
|
" 20 21 33 136 236 243 244]\n",
|
|||
|
" [205 212 39 37 20 20 110 137 110 128 119 109 109 115 119 133 121 8\n",
|
|||
|
" 9 36 34 137 237 241 243]\n",
|
|||
|
" [203 206 101 31 29 21 22 132 108 102 91 97 101 111 113 122 118 11\n",
|
|||
|
" 14 38 222 139 233 240 242]\n",
|
|||
|
" [200 200 200 41 36 25 24 37 117 117 116 101 99 114 111 119 4 8\n",
|
|||
|
" 41 220 219 134 232 239 244]\n",
|
|||
|
" [197 196 196 199 92 37 26 25 8 127 125 118 122 116 67 31 13 11\n",
|
|||
|
" 150 173 220 131 231 238 242]\n",
|
|||
|
" [195 193 193 192 198 187 58 22 25 37 97 115 93 70 55 36 33 148\n",
|
|||
|
" 153 165 166 183 233 236 242]\n",
|
|||
|
" [192 190 189 240 237 202 180 147 140 66 36 52 64 61 51 150 146 138\n",
|
|||
|
" 134 157 159 166 189 237 240]\n",
|
|||
|
" [189 188 197 244 229 206 194 196 157 146 138 39 63 73 53 144 143 139\n",
|
|||
|
" 150 148 153 161 167 187 239]\n",
|
|||
|
" [184 220 225 245 221 167 173 209 183 157 143 116 53 74 49 144 150 150\n",
|
|||
|
" 148 153 153 158 162 165 178]]\n"
|
|||
|
],
|
|||
|
"name": "stdout"
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"metadata": {
|
|||
|
"id": "P6zvAbkJfTcu"
|
|||
|
},
|
|||
|
"source": [
|
|||
|
""
|
|||
|
],
|
|||
|
"execution_count": null,
|
|||
|
"outputs": []
|
|||
|
}
|
|||
|
]
|
|||
|
}
|