Skip to content

Commit 3d4f5d7

Browse files
committed
fix: Remove two empty blocks of code
1 parent 2cf8c1e commit 3d4f5d7

File tree

1 file changed

+32
-55
lines changed

1 file changed

+32
-55
lines changed

notebooks/3-Features.ipynb

Lines changed: 32 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
},
2222
"colab": {
2323
"name": "3-Features.ipynb",
24-
"provenance": [],
25-
"toc_visible": true
24+
"provenance": []
2625
}
2726
},
2827
"cells": [
@@ -50,15 +49,13 @@
5049
},
5150
{
5251
"cell_type": "code",
53-
"execution_count": 0,
5452
"metadata": {
55-
"colab": {},
5653
"colab_type": "code",
5754
"deletable": true,
5855
"editable": true,
59-
"id": "_8B7e-Rn5NY_"
56+
"id": "_8B7e-Rn5NY_",
57+
"colab": {}
6058
},
61-
"outputs": [],
6259
"source": [
6360
"# Download the test image and utils files\n",
6461
"!wget --no-check-certificate \\\n",
@@ -82,7 +79,9 @@
8279
"\n",
8380
"\n",
8481
"input_image=cv2.imread('noidea.jpg')"
85-
]
82+
],
83+
"execution_count": 0,
84+
"outputs": []
8685
},
8786
{
8887
"cell_type": "markdown",
@@ -99,15 +98,13 @@
9998
},
10099
{
101100
"cell_type": "code",
102-
"execution_count": 0,
103101
"metadata": {
104-
"colab": {},
105102
"colab_type": "code",
106103
"deletable": true,
107104
"editable": true,
108-
"id": "JdU2qm635NZC"
105+
"id": "JdU2qm635NZC",
106+
"colab": {}
109107
},
110-
"outputs": [],
111108
"source": [
112109
"harris_test=input_image.copy()\n",
113110
"#greyscale it\n",
@@ -125,7 +122,9 @@
125122
"#we then plot these on the input image for visualisation purposes, using bright red\n",
126123
"harris_test[dst>0.01*dst.max()]=[0,0,255]\n",
127124
"plt.imshow(cv2.cvtColor(harris_test, cv2.COLOR_BGR2RGB))"
128-
]
125+
],
126+
"execution_count": 0,
127+
"outputs": []
129128
},
130129
{
131130
"cell_type": "markdown",
@@ -142,18 +141,18 @@
142141
},
143142
{
144143
"cell_type": "code",
145-
"execution_count": 0,
146144
"metadata": {
147-
"colab": {},
148145
"colab_type": "code",
149146
"deletable": true,
150147
"editable": true,
151-
"id": "7z0RTbtO5NZF"
148+
"id": "7z0RTbtO5NZF",
149+
"colab": {}
152150
},
153-
"outputs": [],
154151
"source": [
155152
"plt.imshow(dst,cmap = 'gray') \n"
156-
]
153+
],
154+
"execution_count": 0,
155+
"outputs": []
157156
},
158157
{
159158
"cell_type": "markdown",
@@ -182,15 +181,13 @@
182181
},
183182
{
184183
"cell_type": "code",
185-
"execution_count": 0,
186184
"metadata": {
187-
"colab": {},
188185
"colab_type": "code",
189186
"deletable": true,
190187
"editable": true,
191-
"id": "DXu8K_FJ5NZI"
188+
"id": "DXu8K_FJ5NZI",
189+
"colab": {}
192190
},
193-
"outputs": [],
194191
"source": [
195192
"orbimg=input_image.copy()\n",
196193
"\n",
@@ -203,7 +200,9 @@
203200
"cv2.drawKeypoints(orbimg,kp,orbimg)\n",
204201
"\n",
205202
"plt.imshow(cv2.cvtColor(orbimg, cv2.COLOR_BGR2RGB))"
206-
]
203+
],
204+
"execution_count": 0,
205+
"outputs": []
207206
},
208207
{
209208
"cell_type": "markdown",
@@ -222,23 +221,23 @@
222221
},
223222
{
224223
"cell_type": "code",
225-
"execution_count": 0,
226224
"metadata": {
227-
"colab": {},
228225
"colab_type": "code",
229226
"deletable": true,
230227
"editable": true,
231-
"id": "xyjEKvnK5NZK"
228+
"id": "xyjEKvnK5NZK",
229+
"colab": {}
232230
},
233-
"outputs": [],
234231
"source": [
235232
"img2match=np.zeros(input_image.shape,np.uint8)\n",
236233
"dogface=input_image[60:250, 70:350] # copy out a bit\n",
237234
"img2match[60:250,70:350]=[0,0,0] # blank that region\n",
238235
"dogface=cv2.flip(dogface,0) #flip the copy\n",
239236
"img2match[200:200+dogface.shape[0], 200:200+dogface.shape[1]]=dogface # paste it back somewhere else\n",
240237
"plt.imshow(cv2.cvtColor(img2match, cv2.COLOR_BGR2RGB))"
241-
]
238+
],
239+
"execution_count": 0,
240+
"outputs": []
242241
},
243242
{
244243
"cell_type": "markdown",
@@ -258,15 +257,13 @@
258257
},
259258
{
260259
"cell_type": "code",
261-
"execution_count": 0,
262260
"metadata": {
263-
"colab": {},
264261
"colab_type": "code",
265262
"deletable": true,
266263
"editable": true,
267-
"id": "a8pk6NeP5NZN"
264+
"id": "a8pk6NeP5NZN",
265+
"colab": {}
268266
},
269-
"outputs": [],
270267
"source": [
271268
"\n",
272269
"kp2 = orb.detect(img2match,None)\n",
@@ -284,7 +281,9 @@
284281
"oimg = cv2.drawMatches(orbimg,kp,img2match,kp2,matches[:50], orbimg)\n",
285282
" \n",
286283
"plt.imshow(cv2.cvtColor(oimg, cv2.COLOR_BGR2RGB))\n"
287-
]
284+
],
285+
"execution_count": 0,
286+
"outputs": []
288287
},
289288
{
290289
"cell_type": "markdown",
@@ -301,21 +300,6 @@
301300
"[here](https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_feature2d/py_feature_homography/py_feature_homography.html)"
302301
]
303302
},
304-
{
305-
"cell_type": "code",
306-
"execution_count": 0,
307-
"metadata": {
308-
"colab": {},
309-
"colab_type": "code",
310-
"deletable": true,
311-
"editable": true,
312-
"id": "mfFgK2Ru5NZQ"
313-
},
314-
"outputs": [],
315-
"source": [
316-
""
317-
]
318-
},
319303
{
320304
"cell_type": "markdown",
321305
"metadata": {
@@ -325,13 +309,6 @@
325309
"source": [
326310
"[Previous](2-Image_stats_and_image_processing.ipynb) [Next](4-Cascade_classification.ipynb)"
327311
]
328-
},
329-
{
330-
"cell_type": "code",
331-
"execution_count": null,
332-
"metadata": {},
333-
"outputs": [],
334-
"source": []
335312
}
336313
]
337-
}
314+
}

0 commit comments

Comments
 (0)