|
48 | 48 | {
|
49 | 49 | "data": {
|
50 | 50 | "text/plain": [
|
51 |
| - "<matplotlib.image.AxesImage at 0x1b29973b748>" |
| 51 | + "<matplotlib.image.AxesImage at 0x17fdca8d668>" |
52 | 52 | ]
|
53 | 53 | },
|
54 | 54 | "execution_count": 2,
|
|
90 | 90 | {
|
91 | 91 | "data": {
|
92 | 92 | "text/plain": [
|
93 |
| - "<matplotlib.image.AxesImage at 0x1b29a7cdf28>" |
| 93 | + "<matplotlib.image.AxesImage at 0x17fddb1bc50>" |
94 | 94 | ]
|
95 | 95 | },
|
96 | 96 | "execution_count": 3,
|
|
213 | 213 | {
|
214 | 214 | "data": {
|
215 | 215 | "text/plain": [
|
216 |
| - "<matplotlib.image.AxesImage at 0x1b29a841dd8>" |
| 216 | + "<matplotlib.image.AxesImage at 0x17fddbbe550>" |
217 | 217 | ]
|
218 | 218 | },
|
219 | 219 | "execution_count": 6,
|
|
234 | 234 | }
|
235 | 235 | ],
|
236 | 236 | "source": [
|
237 |
| - "Overlay = drawBoxes(image, listHit)\n", |
| 237 | + "Overlay = drawBoxes(image, listHit, showLabel=True)\n", |
238 | 238 | "plt.imshow(Overlay)"
|
239 | 239 | ]
|
240 | 240 | },
|
|
254 | 254 | {
|
255 | 255 | "data": {
|
256 | 256 | "text/plain": [
|
257 |
| - "<matplotlib.image.AxesImage at 0x1b29a8ac470>" |
| 257 | + "<matplotlib.image.AxesImage at 0x17fddc25940>" |
258 | 258 | ]
|
259 | 259 | },
|
260 | 260 | "execution_count": 7,
|
|
276 | 276 | ],
|
277 | 277 | "source": [
|
278 | 278 | "listHit = matchTemplates(listTemplate, image, score_threshold=0.4, method=cv2.TM_CCOEFF_NORMED, maxOverlap=0)\n",
|
279 |
| - "Overlay = drawBoxes(image, listHit)\n", |
| 279 | + "Overlay = drawBoxes(image, listHit, showLabel=True)\n", |
280 | 280 | "plt.imshow(Overlay)"
|
281 | 281 | ]
|
282 | 282 | },
|
|
292 | 292 | },
|
293 | 293 | {
|
294 | 294 | "cell_type": "code",
|
295 |
| - "execution_count": 10, |
| 295 | + "execution_count": 8, |
296 | 296 | "metadata": {},
|
297 | 297 | "outputs": [
|
298 | 298 | {
|
299 | 299 | "data": {
|
300 | 300 | "text/plain": [
|
301 |
| - "<matplotlib.image.AxesImage at 0x1b29aa38470>" |
| 301 | + "<matplotlib.image.AxesImage at 0x17fddcc4b38>" |
302 | 302 | ]
|
303 | 303 | },
|
304 |
| - "execution_count": 10, |
| 304 | + "execution_count": 8, |
305 | 305 | "metadata": {},
|
306 | 306 | "output_type": "execute_result"
|
307 | 307 | },
|
|
348 | 348 | },
|
349 | 349 | {
|
350 | 350 | "cell_type": "code",
|
351 |
| - "execution_count": 11, |
| 351 | + "execution_count": 9, |
352 | 352 | "metadata": {},
|
353 | 353 | "outputs": [
|
354 | 354 | {
|
355 | 355 | "data": {
|
356 | 356 | "text/plain": [
|
357 |
| - "<matplotlib.image.AxesImage at 0x1b29a921c88>" |
| 357 | + "<matplotlib.image.AxesImage at 0x17fddc02400>" |
358 | 358 | ]
|
359 | 359 | },
|
360 |
| - "execution_count": 11, |
| 360 | + "execution_count": 9, |
361 | 361 | "metadata": {},
|
362 | 362 | "output_type": "execute_result"
|
363 | 363 | },
|
|
377 | 377 | "source": [
|
378 | 378 | "listTemplate = [(\"small\", smallCoin), (\"large\", largeCoin)]\n",
|
379 | 379 | "listHit = matchTemplates(listTemplate, image, score_threshold=0.4, method=cv2.TM_CCOEFF_NORMED, maxOverlap=0)\n",
|
380 |
| - "Overlay = drawBoxes(image, listHit)\n", |
| 380 | + "Overlay = drawBoxes(image, listHit, showLabel=True)\n", |
381 | 381 | "plt.imshow(Overlay)"
|
382 | 382 | ]
|
383 | 383 | },
|
|
0 commit comments