Skip to content

Commit 8606849

Browse files
added comments
1 parent 3dd4c90 commit 8606849

File tree

2 files changed

+142
-2
lines changed

2 files changed

+142
-2
lines changed

‎.ipynb_checkpoints/P2-checkpoint.ipynb‎

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,13 @@
360360
" plt.imshow(combined_binary, cmap='gray')\n"
361361
]
362362
},
363+
{
364+
"cell_type": "markdown",
365+
"metadata": {},
366+
"source": [
367+
"## Defining Important parameters"
368+
]
369+
},
363370
{
364371
"cell_type": "code",
365372
"execution_count": 7,
@@ -384,7 +391,7 @@
384391
"cell_type": "markdown",
385392
"metadata": {},
386393
"source": [
387-
"## Performing"
394+
"## Performing Perspective Transform on binary images to get warped images"
388395
]
389396
},
390397
{
@@ -491,6 +498,13 @@
491498
" binary_warped_images.append(warped_image)"
492499
]
493500
},
501+
{
502+
"cell_type": "markdown",
503+
"metadata": {},
504+
"source": [
505+
"## Finding Lane Pixels and fitting a polynomial using Sliding Window"
506+
]
507+
},
494508
{
495509
"cell_type": "code",
496510
"execution_count": 10,
@@ -703,6 +717,13 @@
703717
" plt.figure()"
704718
]
705719
},
720+
{
721+
"cell_type": "markdown",
722+
"metadata": {},
723+
"source": [
724+
"## Function for finding the radius of curvature"
725+
]
726+
},
706727
{
707728
"cell_type": "code",
708729
"execution_count": 11,
@@ -724,6 +745,13 @@
724745
" return curverad"
725746
]
726747
},
748+
{
749+
"cell_type": "markdown",
750+
"metadata": {},
751+
"source": [
752+
"## Finding the Lines: Search from Prior"
753+
]
754+
},
727755
{
728756
"cell_type": "code",
729757
"execution_count": 12,
@@ -936,6 +964,13 @@
936964
" "
937965
]
938966
},
967+
{
968+
"cell_type": "markdown",
969+
"metadata": {},
970+
"source": [
971+
"## Function for calculating the radius and offset"
972+
]
973+
},
939974
{
940975
"cell_type": "code",
941976
"execution_count": 13,
@@ -977,6 +1012,13 @@
9771012
" return curvature_string, offset"
9781013
]
9791014
},
1015+
{
1016+
"cell_type": "markdown",
1017+
"metadata": {},
1018+
"source": [
1019+
"## Drawing the Lane Area over final image"
1020+
]
1021+
},
9801022
{
9811023
"cell_type": "code",
9821024
"execution_count": 14,
@@ -1048,6 +1090,13 @@
10481090
"from IPython.display import HTML"
10491091
]
10501092
},
1093+
{
1094+
"cell_type": "markdown",
1095+
"metadata": {},
1096+
"source": [
1097+
"# Final Pipeline Function"
1098+
]
1099+
},
10511100
{
10521101
"cell_type": "code",
10531102
"execution_count": 16,
@@ -1136,6 +1185,13 @@
11361185
"plt.imshow(result_image, cmap='gray')"
11371186
]
11381187
},
1188+
{
1189+
"cell_type": "markdown",
1190+
"metadata": {},
1191+
"source": [
1192+
"# Project Video Output"
1193+
]
1194+
},
11391195
{
11401196
"cell_type": "code",
11411197
"execution_count": 21,
@@ -1205,6 +1261,13 @@
12051261
"\"\"\".format(white_output))"
12061262
]
12071263
},
1264+
{
1265+
"cell_type": "markdown",
1266+
"metadata": {},
1267+
"source": [
1268+
"## Challenge Video Output"
1269+
]
1270+
},
12081271
{
12091272
"cell_type": "code",
12101273
"execution_count": 70,
@@ -2254,6 +2317,13 @@
22542317
"\"\"\".format(yellow_output))"
22552318
]
22562319
},
2320+
{
2321+
"cell_type": "markdown",
2322+
"metadata": {},
2323+
"source": [
2324+
"## Output for harder challenge video"
2325+
]
2326+
},
22572327
{
22582328
"cell_type": "code",
22592329
"execution_count": 18,

‎P2.ipynb‎

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,13 @@
360360
" plt.imshow(combined_binary, cmap='gray')\n"
361361
]
362362
},
363+
{
364+
"cell_type": "markdown",
365+
"metadata": {},
366+
"source": [
367+
"## Defining Important parameters"
368+
]
369+
},
363370
{
364371
"cell_type": "code",
365372
"execution_count": 7,
@@ -384,7 +391,7 @@
384391
"cell_type": "markdown",
385392
"metadata": {},
386393
"source": [
387-
"## Performing"
394+
"## Performing Perspective Transform on binary images to get warped images"
388395
]
389396
},
390397
{
@@ -491,6 +498,13 @@
491498
" binary_warped_images.append(warped_image)"
492499
]
493500
},
501+
{
502+
"cell_type": "markdown",
503+
"metadata": {},
504+
"source": [
505+
"## Finding Lane Pixels and fitting a polynomial using Sliding Window"
506+
]
507+
},
494508
{
495509
"cell_type": "code",
496510
"execution_count": 10,
@@ -703,6 +717,13 @@
703717
" plt.figure()"
704718
]
705719
},
720+
{
721+
"cell_type": "markdown",
722+
"metadata": {},
723+
"source": [
724+
"## Function for finding the radius of curvature"
725+
]
726+
},
706727
{
707728
"cell_type": "code",
708729
"execution_count": 11,
@@ -724,6 +745,13 @@
724745
" return curverad"
725746
]
726747
},
748+
{
749+
"cell_type": "markdown",
750+
"metadata": {},
751+
"source": [
752+
"## Finding the Lines: Search from Prior"
753+
]
754+
},
727755
{
728756
"cell_type": "code",
729757
"execution_count": 12,
@@ -936,6 +964,13 @@
936964
" "
937965
]
938966
},
967+
{
968+
"cell_type": "markdown",
969+
"metadata": {},
970+
"source": [
971+
"## Function for calculating the radius and offset"
972+
]
973+
},
939974
{
940975
"cell_type": "code",
941976
"execution_count": 13,
@@ -977,6 +1012,13 @@
9771012
" return curvature_string, offset"
9781013
]
9791014
},
1015+
{
1016+
"cell_type": "markdown",
1017+
"metadata": {},
1018+
"source": [
1019+
"## Drawing the Lane Area over final image"
1020+
]
1021+
},
9801022
{
9811023
"cell_type": "code",
9821024
"execution_count": 14,
@@ -1048,6 +1090,13 @@
10481090
"from IPython.display import HTML"
10491091
]
10501092
},
1093+
{
1094+
"cell_type": "markdown",
1095+
"metadata": {},
1096+
"source": [
1097+
"# Final Pipeline Function"
1098+
]
1099+
},
10511100
{
10521101
"cell_type": "code",
10531102
"execution_count": 16,
@@ -1136,6 +1185,13 @@
11361185
"plt.imshow(result_image, cmap='gray')"
11371186
]
11381187
},
1188+
{
1189+
"cell_type": "markdown",
1190+
"metadata": {},
1191+
"source": [
1192+
"# Project Video Output"
1193+
]
1194+
},
11391195
{
11401196
"cell_type": "code",
11411197
"execution_count": 21,
@@ -1205,6 +1261,13 @@
12051261
"\"\"\".format(white_output))"
12061262
]
12071263
},
1264+
{
1265+
"cell_type": "markdown",
1266+
"metadata": {},
1267+
"source": [
1268+
"## Challenge Video Output"
1269+
]
1270+
},
12081271
{
12091272
"cell_type": "code",
12101273
"execution_count": 70,
@@ -2254,6 +2317,13 @@
22542317
"\"\"\".format(yellow_output))"
22552318
]
22562319
},
2320+
{
2321+
"cell_type": "markdown",
2322+
"metadata": {},
2323+
"source": [
2324+
"## Output for harder challenge video"
2325+
]
2326+
},
22572327
{
22582328
"cell_type": "code",
22592329
"execution_count": 18,

0 commit comments

Comments
 (0)