-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.xml
More file actions
4505 lines (3371 loc) · 194 KB
/
index.xml
File metadata and controls
4505 lines (3371 loc) · 194 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Welcome to Xin's Homepage</title>
<link>http://xincoder.github.io/</link>
<atom:link href="http://xincoder.github.io/index.xml" rel="self" type="application/rss+xml" />
<description>Welcome to Xin's Homepage</description>
<generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><lastBuildDate>Sat, 01 May 2021 00:00:00 +0000</lastBuildDate>
<image>
<url>http://xincoder.github.io/media/icon_hufdd866d90d76849587aac6fbf27da1ac_464_512x512_fill_lanczos_center_3.png</url>
<title>Welcome to Xin's Homepage</title>
<link>http://xincoder.github.io/</link>
</image>
<item>
<title>SRNet: Spatial Relation Network for Efficient Single Stage Instance Segmentation in Videos</title>
<link>http://xincoder.github.io/publication/2021acmm_srnet/</link>
<pubDate>Sat, 01 May 2021 00:00:00 +0000</pubDate>
<guid>http://xincoder.github.io/publication/2021acmm_srnet/</guid>
<description><!-- <div class="alert alert-note">
<div>
Create your slides in Markdown - click the <em>Slides</em> button to check out the example.
</div>
</div>
Supplementary notes can be added here, including [code, math, and images](https://wowchemy.com/docs/writing-markdown-latex/). -->
</description>
</item>
<item>
<title>GPFS: A Graph-based Human Pose Forecasting System for Smart Home with Online Learning</title>
<link>http://xincoder.github.io/publication/2021tosn_gpfs/</link>
<pubDate>Mon, 01 Feb 2021 00:00:00 +0000</pubDate>
<guid>http://xincoder.github.io/publication/2021tosn_gpfs/</guid>
<description><!-- <div class="alert alert-note">
<div>
Create your slides in Markdown - click the <em>Slides</em> button to check out the example.
</div>
</div>
Supplementary notes can be added here, including [code, math, and images](https://wowchemy.com/docs/writing-markdown-latex/). -->
</description>
</item>
<item>
<title>Weakly-supervised Object Representation Learning for Few-shot Semantic Segmentation</title>
<link>http://xincoder.github.io/publication/2021wacv_segment/</link>
<pubDate>Sun, 10 Jan 2021 00:00:00 +0000</pubDate>
<guid>http://xincoder.github.io/publication/2021wacv_segment/</guid>
<description><!-- <div class="alert alert-note">
<div>
Create your slides in Markdown - click the <em>Slides</em> button to check out the example.
</div>
</div>
Supplementary notes can be added here, including [code, math, and images](https://wowchemy.com/docs/writing-markdown-latex/). -->
</description>
</item>
<item>
<title>GRIP++: Enhanced Graph-based Interaction-aware Trajectory Prediction for Autonomous Driving</title>
<link>http://xincoder.github.io/publication/2020arxiv_griplus/</link>
<pubDate>Tue, 19 May 2020 00:00:00 +0000</pubDate>
<guid>http://xincoder.github.io/publication/2020arxiv_griplus/</guid>
<description><p>GRIP++ ranked 1st on ApolloScape Trajectory Leaderboard at the time of publication.</p>
<!-- <div class="alert alert-note">
<div>
Create your slides in Markdown - click the <em>Slides</em> button to check out the example.
</div>
</div>
Supplementary notes can be added here, including [code, math, and images](https://wowchemy.com/docs/writing-markdown-latex/). -->
</description>
</item>
<item>
<title>Combining convolution and deconvolution for object detection</title>
<link>http://xincoder.github.io/publication/patent_2020combining_objectdetection/</link>
<pubDate>Mon, 20 Apr 2020 00:00:00 +0000</pubDate>
<guid>http://xincoder.github.io/publication/patent_2020combining_objectdetection/</guid>
<description><!-- <div class="alert alert-note">
<div>
Create your slides in Markdown - click the <em>Slides</em> button to check out the example.
</div>
</div>
Supplementary notes can be added here, including [code, math, and images](https://wowchemy.com/docs/writing-markdown-latex/). -->
</description>
</item>
<item>
<title>GRIP: Graph-based Interaction-aware Trajectory Prediction</title>
<link>http://xincoder.github.io/publication/2019itsc_grip/</link>
<pubDate>Sun, 28 Jul 2019 00:00:00 +0000</pubDate>
<guid>http://xincoder.github.io/publication/2019itsc_grip/</guid>
<description><!-- <div class="alert alert-note">
<div>
Create your slides in Markdown - click the <em>Slides</em> button to check out the example.
</div>
</div>
Supplementary notes can be added here, including [code, math, and images](https://wowchemy.com/docs/writing-markdown-latex/). -->
</description>
</item>
<item>
<title>DAC: Data-free Automatic Acceleration of Convolutional Networks</title>
<link>http://xincoder.github.io/publication/2019wacv_dac/</link>
<pubDate>Tue, 08 Jan 2019 00:00:00 +0000</pubDate>
<guid>http://xincoder.github.io/publication/2019wacv_dac/</guid>
<description><!-- <div class="alert alert-note">
<div>
Create your slides in Markdown - click the <em>Slides</em> button to check out the example.
</div>
</div>
Supplementary notes can be added here, including [code, math, and images](https://wowchemy.com/docs/writing-markdown-latex/). -->
</description>
</item>
<item>
<title>Data-free CNN acceleration [Research]</title>
<link>http://xincoder.github.io/project/research_dac/</link>
<pubDate>Mon, 05 Nov 2018 00:00:00 +0000</pubDate>
<guid>http://xincoder.github.io/project/research_dac/</guid>
<description><p>Programming Language:</p>
<ul>
<li>Python</li>
</ul>
<p>This is a prototype of our &ldquo;Data-free convolutional network acceleration&rdquo; scheme. In this demo, we demonstrate the performance of our scheme in the task of multi-person pose estimation model and object detection. Please refer to our paper for more results and details.</p>
<p>The following video shows a demo of our scheme.</p>
<video controls >
<source src="http://xincoder.github.io/project/research_dac/demo.mp4" type="video/mp4">
</video>
<hr>
<p>Published paper:</p>
<ul>
<li>Xin Li, Shuai Zhang, Bolan Jiang, Yingyong Qi, Mooi Choo Chuah, Ning Bi (2019). <a href="../../publication/2019wacv_dac/">DAC: Data-free Automatic Acceleration of Convolutional Networks</a>. IEEE Winter Conference on Applications of Computer Vision (WACV). 2019.</li>
</ul>
</description>
</item>
<item>
<title>LiveFace: A Multi-Task CNN for Fast Face-Authentication</title>
<link>http://xincoder.github.io/publication/2018icmla_liveface/</link>
<pubDate>Mon, 01 Oct 2018 00:00:00 +0000</pubDate>
<guid>http://xincoder.github.io/publication/2018icmla_liveface/</guid>
<description><!-- <div class="alert alert-note">
<div>
Create your slides in Markdown - click the <em>Slides</em> button to check out the example.
</div>
</div>
Supplementary notes can be added here, including [code, math, and images](https://wowchemy.com/docs/writing-markdown-latex/). -->
</description>
</item>
<item>
<title>Vehicle Detection[Self Driving]</title>
<link>http://xincoder.github.io/project/selfdriving_vehicle_detection/</link>
<pubDate>Sun, 02 Sep 2018 00:00:00 +0000</pubDate>
<guid>http://xincoder.github.io/project/selfdriving_vehicle_detection/</guid>
<description><h1 id="vehicle-detection-project"><strong>Vehicle Detection Project</strong></h1>
<p>Programming Language:</p>
<ul>
<li>Python</li>
</ul>
<p>The goals of this project are the following:</p>
<ul>
<li>Perform a Histogram of Oriented Gradients (HOG) feature extraction on a labeled training set of images and train a classifier Linear SVM classifier</li>
<li>Optionally, you can also apply a color transform and append binned color features, as well as histograms of color, to your HOG feature vector.</li>
<li>Note: for those first two steps don&rsquo;t forget to normalize your features and randomize a selection for training and testing.</li>
<li>Implement a sliding-window technique and use your trained classifier to search for vehicles in images.</li>
<li>Run your pipeline on a video stream (start with the test_video.mp4 and later implement on full project_video.mp4) and create a heat map of recurring detections frame by frame to reject outliers and follow detected vehicles.</li>
<li>Estimate a bounding box for vehicles detected.</li>
</ul>
<hr>
<h3 id="1-feature-extraction">1. Feature Extraction</h3>
<p>I extract the binned color, histogram of color and HOG as my feature and trained a SVC classifier using the concatenated feature.
The following shows the parameters that I used:</p>
<table>
<thead>
<tr>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">Feature</td>
<td style="text-align:center">Setting</td>
</tr>
<tr>
<td style="text-align:center">Color Space</td>
<td style="text-align:center">YUV</td>
</tr>
<tr>
<td style="text-align:center">orient</td>
<td style="text-align:center">9</td>
</tr>
<tr>
<td style="text-align:center">pix_per_cell</td>
<td style="text-align:center">8</td>
</tr>
<tr>
<td style="text-align:center">cell_per_block</td>
<td style="text-align:center">2</td>
</tr>
<tr>
<td style="text-align:center">hog_channel</td>
<td style="text-align:center">&lsquo;ALL&rsquo;</td>
</tr>
<tr>
<td style="text-align:center">spatial_size</td>
<td style="text-align:center">(16,16)</td>
</tr>
<tr>
<td style="text-align:center">hist_bins</td>
<td style="text-align:center">16</td>
</tr>
</tbody>
</table>
<p>The SVC classifier is used to predict a give image is a are or not. The following image shows a positive and a negative sample.
<figure >
<div class="d-flex justify-content-center">
<div class="w-100" ><img alt="sample.png" srcset="
/project/selfdriving_vehicle_detection/sample_hu4975a1962bb17d2ff5bd5f1c08ca7a1c_59581_1a9bb69455e94e85d2f0899a757c9d6b.webp 400w,
/project/selfdriving_vehicle_detection/sample_hu4975a1962bb17d2ff5bd5f1c08ca7a1c_59581_ae46e48a3332b59af1612a354f23d074.webp 760w,
/project/selfdriving_vehicle_detection/sample_hu4975a1962bb17d2ff5bd5f1c08ca7a1c_59581_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="http://xincoder.github.io/project/selfdriving_vehicle_detection/sample_hu4975a1962bb17d2ff5bd5f1c08ca7a1c_59581_1a9bb69455e94e85d2f0899a757c9d6b.webp"
width="512"
height="288"
loading="lazy" data-zoomable /></div>
</div></figure>
</p>
<hr>
<p>The computed histogram of color is shown as follow:
<figure >
<div class="d-flex justify-content-center">
<div class="w-100" ><img alt="color_hist.png" srcset="
/project/selfdriving_vehicle_detection/color_hist_hubb13abf26d88b75b75a81753379fbc2e_12171_c3239e6aa0b025a9a8f3ac070e5eeceb.webp 400w,
/project/selfdriving_vehicle_detection/color_hist_hubb13abf26d88b75b75a81753379fbc2e_12171_16d9f07515e42c86163acc6374490860.webp 760w,
/project/selfdriving_vehicle_detection/color_hist_hubb13abf26d88b75b75a81753379fbc2e_12171_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="http://xincoder.github.io/project/selfdriving_vehicle_detection/color_hist_hubb13abf26d88b75b75a81753379fbc2e_12171_c3239e6aa0b025a9a8f3ac070e5eeceb.webp"
width="512"
height="128"
loading="lazy" data-zoomable /></div>
</div></figure>
</p>
<hr>
<p>The below figure shows the visualized HOG featgure.
<figure >
<div class="d-flex justify-content-center">
<div class="w-100" ><img alt="hog.png" srcset="
/project/selfdriving_vehicle_detection/hog_hu239401ce6ddad2cae211aeab52917c98_71997_4838bc0665627f5176a6f0023d276cb6.webp 400w,
/project/selfdriving_vehicle_detection/hog_hu239401ce6ddad2cae211aeab52917c98_71997_df3f6c013aa4e74de58b6d6d9f7f35ae.webp 760w,
/project/selfdriving_vehicle_detection/hog_hu239401ce6ddad2cae211aeab52917c98_71997_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="http://xincoder.github.io/project/selfdriving_vehicle_detection/hog_hu239401ce6ddad2cae211aeab52917c98_71997_4838bc0665627f5176a6f0023d276cb6.webp"
width="512"
height="288"
loading="lazy" data-zoomable /></div>
</div></figure>
</p>
<hr>
<p>I applied sliding window on the bottom half part of the image.
<figure >
<div class="d-flex justify-content-center">
<div class="w-100" ><img alt="window.png" srcset="
/project/selfdriving_vehicle_detection/window_huc28e8406471c1c681b813622def959e9_119313_563497326ca28d17cab3f09a7e364683.webp 400w,
/project/selfdriving_vehicle_detection/window_huc28e8406471c1c681b813622def959e9_119313_16ec6135f324690d89413392475be628.webp 760w,
/project/selfdriving_vehicle_detection/window_huc28e8406471c1c681b813622def959e9_119313_1200x1200_fit_q75_h2_lanczos_3.webp 1200w"
src="http://xincoder.github.io/project/selfdriving_vehicle_detection/window_huc28e8406471c1c681b813622def959e9_119313_563497326ca28d17cab3f09a7e364683.webp"
width="460"
height="259"
loading="lazy" data-zoomable /></div>
</div></figure>
</p>
<hr>
<p>For each window, the chosen features are extracted and passed to the pre-trained SVC classifier to predict if the current location is a car or not. Then, we generate a heat map based on the detected results and filter low value out.
The following shows the visualized detected results.</p>
<table>
<thead>
<tr>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">Detected BBoxes</td>
<td style="text-align:center">Heat Map</td>
<td style="text-align:center">Final Detection</td>
</tr>
<tr>
<td style="text-align:center"><img width='640' src='detect_1.jpg'></td>
<td style="text-align:center"><img width='640' src='1.png'></td>
<td style="text-align:center">&lt;img width=&lsquo;640&rsquo;, src=&lsquo;img_1.jpg&rsquo;&gt;</td>
</tr>
<tr>
<td style="text-align:center"><img width='640' src='detect_2.jpg'></td>
<td style="text-align:center"><img width='640' src='2.png'></td>
<td style="text-align:center">&lt;img width=&lsquo;640&rsquo;, src=&lsquo;img_2.jpg&rsquo;&gt;</td>
</tr>
<tr>
<td style="text-align:center"><img width='640' src='detect_3.jpg'></td>
<td style="text-align:center"><img width='640' src='3.png'></td>
<td style="text-align:center">&lt;img width=&lsquo;640&rsquo;, src=&lsquo;img_3.jpg&rsquo;&gt;</td>
</tr>
<tr>
<td style="text-align:center"><img width='640' src='detect_4.jpg'></td>
<td style="text-align:center"><img width='640' src='4.png'></td>
<td style="text-align:center">&lt;img width=&lsquo;640&rsquo;, src=&lsquo;img_4.jpg&rsquo;&gt;</td>
</tr>
<tr>
<td style="text-align:center"><img width='640' src='detect_5.jpg'></td>
<td style="text-align:center"><img width='640' src='5.png'></td>
<td style="text-align:center">&lt;img width=&lsquo;640&rsquo;, src=&lsquo;img_5.jpg&rsquo;&gt;</td>
</tr>
<tr>
<td style="text-align:center"><img width='640' src='detect_6.jpg'></td>
<td style="text-align:center"><img width='640' src='6.png'></td>
<td style="text-align:center">&lt;img width=&lsquo;640&rsquo;, src=&lsquo;img_6.jpg&rsquo;&gt;</td>
</tr>
</tbody>
</table>
<h3 id="2-make-it-smooth">2. Make it smooth.</h3>
<p>Till now, the pipline works on single frame. However, there is no relationship between two continuous frames and the detected results are independent.
Thus, I came up with an idea that sonsidering several continuous frames to make the detected results more smoothly.
I record 3 latest heatmap and then sum them together before doing threshold. Using this way, the detected results become much more stable. Please refer the demo video.</p>
<h3 id="3-potential-issue">3. Potential Issue.</h3>
<p>The parameters of the current pipline are manually chosen, the trained model and chosen parameters may not work for all videos.</p>
<p>Potential solution: using deep learning object detection models, e.g. SSD.</p>
</description>
</item>
<item>
<title>Detect Lane [Self Driving]</title>
<link>http://xincoder.github.io/project/selfdriving_adv_findline/</link>
<pubDate>Mon, 20 Aug 2018 00:00:00 +0000</pubDate>
<guid>http://xincoder.github.io/project/selfdriving_adv_findline/</guid>
<description><h1 id="advanced-lane-finding-project"><strong>Advanced Lane Finding Project</strong></h1>
<p>Programming Language:</p>
<ul>
<li>Python</li>
</ul>
<video controls >
<source src="http://xincoder.github.io/project/selfdriving_adv_findline/demo.mp4" type="video/mp4">
</video>
<p>The goals of this project are the following:</p>
<ul>
<li>Compute the camera calibration matrix and distortion coefficients given a set of chessboard images.</li>
<li>Apply a distortion correction to raw images.</li>
<li>Use color transforms, gradients, etc., to create a thresholded binary image.</li>
<li>Apply a perspective transform to rectify binary image (&ldquo;birds-eye view&rdquo;).</li>
<li>Detect lane pixels and fit to find the lane boundary.</li>
<li>Determine the curvature of the lane and vehicle position with respect to center.</li>
<li>Warp the detected lane boundaries back onto the original image.</li>
<li>Output visual display of the lane boundaries and numerical estimation of lane curvature and vehicle position.</li>
</ul>
<hr>
<h3 id="a-pipeline">A. Pipeline.</h3>
<p>My pipline consists of 7 steps as follows:</p>
<ul>
<li>Step 1: Camera Calibration</li>
<li>Step 2: Distortion correction</li>
<li>Step 3: Detect lines based on color and gradient</li>
<li>Step 4: Perspective transform</li>
<li>Step 5: Detect lane lines</li>
<li>Step 6: Determine the lane curvature</li>
<li>Step 7: Determine vehicle offset from center</li>
</ul>
<hr>
<h3 id="b-visualized-results">B. Visualized Results</h3>
<p><strong>1. Camera calibration and Distortion correction:</strong>
Image distortion occurs when a camera looks at 3D objects in the real world and transforms them into a 2D image; this transformation isn’t perfect. Distortion changes what the shape and size of these 3D objects appear to be.
The following is a sample of the processed results:</p>
<table>
<thead>
<tr>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">Input image</td>
<td style="text-align:center">After Calibration</td>
</tr>
<tr>
<td style="text-align:center">
<figure >
<div class="d-flex justify-content-center">
<div class="w-100" ><img alt="0.Before_Calibration.jpg" srcset="
/project/selfdriving_adv_findline/Before_Calibration_hu5909208fb16d2109d0cdca2186f9358e_62300_9b41b4523f114eb4b92b93a4ac2581e2.webp 400w,
/project/selfdriving_adv_findline/Before_Calibration_hu5909208fb16d2109d0cdca2186f9358e_62300_5715871c6ed2e5a7b05d2cdcbce79b4b.webp 760w,
/project/selfdriving_adv_findline/Before_Calibration_hu5909208fb16d2109d0cdca2186f9358e_62300_1200x1200_fit_q75_h2_lanczos.webp 1200w"
src="http://xincoder.github.io/project/selfdriving_adv_findline/Before_Calibration_hu5909208fb16d2109d0cdca2186f9358e_62300_9b41b4523f114eb4b92b93a4ac2581e2.webp"
width="760"
height="428"
loading="lazy" data-zoomable /></div>
</div></figure>
</td>
<td style="text-align:center">
<figure >
<div class="d-flex justify-content-center">
<div class="w-100" ><img alt="1.After_Calibration.jpg" srcset="
/project/selfdriving_adv_findline/After_Calibration_hu4a7d233c13a18409b0b78ae5fc313105_130803_0329c9bae4400fb31543ab86510bdd9e.webp 400w,
/project/selfdriving_adv_findline/After_Calibration_hu4a7d233c13a18409b0b78ae5fc313105_130803_8b48f2b94210a4ccf41eacc0ddda65cb.webp 760w,
/project/selfdriving_adv_findline/After_Calibration_hu4a7d233c13a18409b0b78ae5fc313105_130803_1200x1200_fit_q75_h2_lanczos.webp 1200w"
src="http://xincoder.github.io/project/selfdriving_adv_findline/After_Calibration_hu4a7d233c13a18409b0b78ae5fc313105_130803_0329c9bae4400fb31543ab86510bdd9e.webp"
width="760"
height="428"
loading="lazy" data-zoomable /></div>
</div></figure>
</td>
</tr>
<tr>
<td style="text-align:center">One can see that the lines on the left side of the image become straight after distortion.</td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>2: Detect lines based on color and gradient:</strong> Detect lines of the current lane based on color and gradient.</p>
<ul>
<li>I first convert the image from RGB color space to HLS color space. The following shows the HLS color space.</li>
</ul>
<table>
<thead>
<tr>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">H channel</td>
<td style="text-align:center">L channel</td>
<td style="text-align:center">S channel</td>
</tr>
<tr>
<td style="text-align:center">
<figure >
<div class="d-flex justify-content-center">
<div class="w-100" ><img alt="2.HLS_h.jpg" srcset="
/project/selfdriving_adv_findline/HLS_h_hu58d88cff1baa750dd7a4e938ffd91c52_105428_6cb10ddb2ea20176adbc8c6b1c7b732e.webp 400w,
/project/selfdriving_adv_findline/HLS_h_hu58d88cff1baa750dd7a4e938ffd91c52_105428_393f71e25f88ff187cb62d6bd5f386f8.webp 760w,
/project/selfdriving_adv_findline/HLS_h_hu58d88cff1baa750dd7a4e938ffd91c52_105428_1200x1200_fit_q75_h2_lanczos.webp 1200w"
src="http://xincoder.github.io/project/selfdriving_adv_findline/HLS_h_hu58d88cff1baa750dd7a4e938ffd91c52_105428_6cb10ddb2ea20176adbc8c6b1c7b732e.webp"
width="760"
height="428"
loading="lazy" data-zoomable /></div>
</div></figure>
</td>
<td style="text-align:center">
<figure >
<div class="d-flex justify-content-center">
<div class="w-100" ><img alt="2.HLS_l.jpg" srcset="
/project/selfdriving_adv_findline/HLS_l_hu829c6fa94ec01f0d65bcece61c769ffb_170290_b20a252f599e75c129f4953e26978566.webp 400w,
/project/selfdriving_adv_findline/HLS_l_hu829c6fa94ec01f0d65bcece61c769ffb_170290_ef68c1c6c449aa4a74d4a692330eaa6c.webp 760w,
/project/selfdriving_adv_findline/HLS_l_hu829c6fa94ec01f0d65bcece61c769ffb_170290_1200x1200_fit_q75_h2_lanczos.webp 1200w"
src="http://xincoder.github.io/project/selfdriving_adv_findline/HLS_l_hu829c6fa94ec01f0d65bcece61c769ffb_170290_b20a252f599e75c129f4953e26978566.webp"
width="760"
height="428"
loading="lazy" data-zoomable /></div>
</div></figure>
</td>
<td style="text-align:center">
<figure >
<div class="d-flex justify-content-center">
<div class="w-100" ><img alt="2.HLS_s.jpg" srcset="
/project/selfdriving_adv_findline/HLS_s_hua1e8bc3b10460f621c6185659a6d1f70_160952_7247abdda4eab5ef70e07fb4da3a19ad.webp 400w,
/project/selfdriving_adv_findline/HLS_s_hua1e8bc3b10460f621c6185659a6d1f70_160952_48b41de8ca57d5188af7ebfe7c2ac426.webp 760w,
/project/selfdriving_adv_findline/HLS_s_hua1e8bc3b10460f621c6185659a6d1f70_160952_1200x1200_fit_q75_h2_lanczos.webp 1200w"
src="http://xincoder.github.io/project/selfdriving_adv_findline/HLS_s_hua1e8bc3b10460f621c6185659a6d1f70_160952_7247abdda4eab5ef70e07fb4da3a19ad.webp"
width="760"
height="428"
loading="lazy" data-zoomable /></div>
</div></figure>
</td>
</tr>
</tbody>
</table>
<ul>
<li>Then, I do color selection on S channel and x gradient on L channel. The following shows the combined result:</li>
</ul>
<table>
<thead>
<tr>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">Input Imgae</td>
<td style="text-align:center">Color_Gradient Result</td>
</tr>
<tr>
<td style="text-align:center">
<figure >
<div class="d-flex justify-content-center">
<div class="w-100" ><img alt="0straight_lines1.jpg" srcset="
/project/selfdriving_adv_findline/straight_lines1_hu9475e40123017607cf3e014e405fbc8c_155253_360217771e6d6044345bb328d7a64d9b.webp 400w,
/project/selfdriving_adv_findline/straight_lines1_hu9475e40123017607cf3e014e405fbc8c_155253_176bf5ade271534d4f08d9c27c1243ea.webp 760w,
/project/selfdriving_adv_findline/straight_lines1_hu9475e40123017607cf3e014e405fbc8c_155253_1200x1200_fit_q75_h2_lanczos.webp 1200w"
src="http://xincoder.github.io/project/selfdriving_adv_findline/straight_lines1_hu9475e40123017607cf3e014e405fbc8c_155253_360217771e6d6044345bb328d7a64d9b.webp"
width="760"
height="428"
loading="lazy" data-zoomable /></div>
</div></figure>
</td>
<td style="text-align:center">
<figure >
<div class="d-flex justify-content-center">
<div class="w-100" ><img alt="3.color_gradient_combine.jpg" srcset="
/project/selfdriving_adv_findline/color_gradient_hue1747a3e0f6e2f88771a88afb007e724_207073_489c6cec23df5a0729b8c165d0f4b0ad.webp 400w,
/project/selfdriving_adv_findline/color_gradient_hue1747a3e0f6e2f88771a88afb007e724_207073_e5e4e1c4f4883b077f58474e84964989.webp 760w,
/project/selfdriving_adv_findline/color_gradient_hue1747a3e0f6e2f88771a88afb007e724_207073_1200x1200_fit_q75_h2_lanczos.webp 1200w"
src="http://xincoder.github.io/project/selfdriving_adv_findline/color_gradient_hue1747a3e0f6e2f88771a88afb007e724_207073_489c6cec23df5a0729b8c165d0f4b0ad.webp"
width="760"
height="428"
loading="lazy" data-zoomable /></div>
</div></figure>
</td>
</tr>
</tbody>
</table>
<ul>
<li>After that, I do <a href="https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_imgproc/py_morphological_ops/py_morphological_ops.html" target="_blank" rel="noopener">open operation</a> on the previous result to remove noise. One can see that the tiny noise is remove.</li>
</ul>
<table>
<thead>
<tr>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">Input Imgae</td>
<td style="text-align:center">Open Operation</td>
</tr>
<tr>
<td style="text-align:center">
<figure >
<div class="d-flex justify-content-center">
<div class="w-100" ><img alt="3.color_gradient_combine.jpg" srcset="
/project/selfdriving_adv_findline/color_gradient_hue1747a3e0f6e2f88771a88afb007e724_207073_489c6cec23df5a0729b8c165d0f4b0ad.webp 400w,
/project/selfdriving_adv_findline/color_gradient_hue1747a3e0f6e2f88771a88afb007e724_207073_e5e4e1c4f4883b077f58474e84964989.webp 760w,
/project/selfdriving_adv_findline/color_gradient_hue1747a3e0f6e2f88771a88afb007e724_207073_1200x1200_fit_q75_h2_lanczos.webp 1200w"
src="http://xincoder.github.io/project/selfdriving_adv_findline/color_gradient_hue1747a3e0f6e2f88771a88afb007e724_207073_489c6cec23df5a0729b8c165d0f4b0ad.webp"
width="760"
height="428"
loading="lazy" data-zoomable /></div>
</div></figure>
</td>
<td style="text-align:center">
<figure >
<div class="d-flex justify-content-center">
<div class="w-100" ><img alt="3.open_operation.jpg" srcset="
/project/selfdriving_adv_findline/open_operation_hu08a859bdec93387bee731a63eaf2b693_166321_5f6495b0d6f611f33ad4b0ba74174b01.webp 400w,
/project/selfdriving_adv_findline/open_operation_hu08a859bdec93387bee731a63eaf2b693_166321_4f1d2c6ced323e24e6c5e979fb2908f1.webp 760w,
/project/selfdriving_adv_findline/open_operation_hu08a859bdec93387bee731a63eaf2b693_166321_1200x1200_fit_q75_h2_lanczos.webp 1200w"
src="http://xincoder.github.io/project/selfdriving_adv_findline/open_operation_hu08a859bdec93387bee731a63eaf2b693_166321_5f6495b0d6f611f33ad4b0ba74174b01.webp"
width="760"
height="428"
loading="lazy" data-zoomable /></div>
</div></figure>
</td>
</tr>
</tbody>
</table>
<p><strong>4. Perspective transform:</strong> To detect lines, I convert the image to birdeye view. I chose the following source and destination points:</p>
<table>
<thead>
<tr>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">Source Points</td>
<td style="text-align:center">Destination Points</td>
</tr>
<tr>
<td style="text-align:center">200, 200</td>
<td style="text-align:center">566, 470</td>
</tr>
<tr>
<td style="text-align:center">980, 200</td>
<td style="text-align:center">714, 470</td>
</tr>
<tr>
<td style="text-align:center">980, 700</td>
<td style="text-align:center">1055, 680</td>
</tr>
<tr>
<td style="text-align:center">200, 700</td>
<td style="text-align:center">253, 680</td>
</tr>
</tbody>
</table>
<p>The following shows a sample. It is clear that two lines are parallel.</p>
<table>
<thead>
<tr>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">Input Imgae</td>
<td style="text-align:center">Open Operation</td>
</tr>
<tr>
<td style="text-align:center">
<figure >
<div class="d-flex justify-content-center">
<div class="w-100" ><img alt="3.open_operation.jpg" srcset="
/project/selfdriving_adv_findline/open_operation_hu08a859bdec93387bee731a63eaf2b693_166321_5f6495b0d6f611f33ad4b0ba74174b01.webp 400w,
/project/selfdriving_adv_findline/open_operation_hu08a859bdec93387bee731a63eaf2b693_166321_4f1d2c6ced323e24e6c5e979fb2908f1.webp 760w,
/project/selfdriving_adv_findline/open_operation_hu08a859bdec93387bee731a63eaf2b693_166321_1200x1200_fit_q75_h2_lanczos.webp 1200w"
src="http://xincoder.github.io/project/selfdriving_adv_findline/open_operation_hu08a859bdec93387bee731a63eaf2b693_166321_5f6495b0d6f611f33ad4b0ba74174b01.webp"
width="760"
height="428"
loading="lazy" data-zoomable /></div>
</div></figure>
</td>
<td style="text-align:center">
<figure >
<div class="d-flex justify-content-center">
<div class="w-100" ><img alt="4.birds_eye_line.jpg" srcset="
/project/selfdriving_adv_findline/birds_eye_hu6033c61c9ea10d059a4e5392096d2869_75487_0fd17af6eb8f5d70b276e9d902b97d3b.webp 400w,
/project/selfdriving_adv_findline/birds_eye_hu6033c61c9ea10d059a4e5392096d2869_75487_b452b5fcf0cfa64b2e0e37919309c096.webp 760w,
/project/selfdriving_adv_findline/birds_eye_hu6033c61c9ea10d059a4e5392096d2869_75487_1200x1200_fit_q75_h2_lanczos.webp 1200w"
src="http://xincoder.github.io/project/selfdriving_adv_findline/birds_eye_hu6033c61c9ea10d059a4e5392096d2869_75487_0fd17af6eb8f5d70b276e9d902b97d3b.webp"
width="760"
height="428"
loading="lazy" data-zoomable /></div>
</div></figure>
</td>
</tr>
</tbody>
</table>
<p><strong>5. Detect lane lines:</strong></p>
<ul>
<li>First, I calculate histogram on vertical direction.</li>
</ul>
<table>
<thead>
<tr>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">Input Imgae</td>
<td style="text-align:center">Histogram</td>
</tr>
<tr>
<td style="text-align:center">
<figure >
<div class="d-flex justify-content-center">
<div class="w-100" ><img alt="4.birds_eye_line.jpg" srcset="
/project/selfdriving_adv_findline/birds_eye_hu6033c61c9ea10d059a4e5392096d2869_75487_0fd17af6eb8f5d70b276e9d902b97d3b.webp 400w,
/project/selfdriving_adv_findline/birds_eye_hu6033c61c9ea10d059a4e5392096d2869_75487_b452b5fcf0cfa64b2e0e37919309c096.webp 760w,
/project/selfdriving_adv_findline/birds_eye_hu6033c61c9ea10d059a4e5392096d2869_75487_1200x1200_fit_q75_h2_lanczos.webp 1200w"
src="http://xincoder.github.io/project/selfdriving_adv_findline/birds_eye_hu6033c61c9ea10d059a4e5392096d2869_75487_0fd17af6eb8f5d70b276e9d902b97d3b.webp"
width="760"
height="428"
loading="lazy" data-zoomable /></div>
</div></figure>
</td>
<td style="text-align:center">
<figure >
<div class="d-flex justify-content-center">
<div class="w-100" ><img alt="5.histogram.jpg" srcset="
/project/selfdriving_adv_findline/hist_hu520cb2412bad4e2ee7178972c29a4720_27226_ca14a79ba1922fc663939744cba6a44d.webp 400w,
/project/selfdriving_adv_findline/hist_hu520cb2412bad4e2ee7178972c29a4720_27226_c59e52eafa406fb0c804f2505b879730.webp 760w,
/project/selfdriving_adv_findline/hist_hu520cb2412bad4e2ee7178972c29a4720_27226_1200x1200_fit_q75_h2_lanczos.webp 1200w"
src="http://xincoder.github.io/project/selfdriving_adv_findline/hist_hu520cb2412bad4e2ee7178972c29a4720_27226_ca14a79ba1922fc663939744cba6a44d.webp"
width="640"
height="480"
loading="lazy" data-zoomable /></div>
</div></figure>
</td>
</tr>
</tbody>
</table>
<ul>
<li>Then, I detect lines and compute their polynomial functions.</li>
</ul>
<table>
<thead>
<tr>
<th style="text-align:center"></th>
<th style="text-align:center"></th>
</tr>