{"id":16428155,"url":"https://github.com/nazanin1369/sdcarslanedetection","last_synced_at":"2025-07-10T20:32:55.377Z","repository":{"id":77814633,"uuid":"82365345","full_name":"Nazanin1369/SDcarsLaneDetection","owner":"Nazanin1369","description":"Autonomous car lane detection","archived":false,"fork":false,"pushed_at":"2018-07-25T17:58:16.000Z","size":2104,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T06:32:43.142Z","etag":null,"topics":["autonomous-vehicles","image-processing","lane-detection"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nazanin1369.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-18T05:58:11.000Z","updated_at":"2018-07-25T17:58:17.000Z","dependencies_parsed_at":"2023-06-04T20:00:15.193Z","dependency_job_id":null,"html_url":"https://github.com/Nazanin1369/SDcarsLaneDetection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Nazanin1369/SDcarsLaneDetection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nazanin1369%2FSDcarsLaneDetection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nazanin1369%2FSDcarsLaneDetection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nazanin1369%2FSDcarsLaneDetection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nazanin1369%2FSDcarsLaneDetection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nazanin1369","download_url":"https://codeload.github.com/Nazanin1369/SDcarsLaneDetection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nazanin1369%2FSDcarsLaneDetection/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264652713,"owners_count":23644316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autonomous-vehicles","image-processing","lane-detection"],"created_at":"2024-10-11T08:15:18.855Z","updated_at":"2025-07-10T20:32:55.327Z","avatar_url":"https://github.com/Nazanin1369.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Autonomous car lane detection\n\n### Project Overview\n\nSelf-driving car needs percieve the world as humans do when they drive. Humans leverage their eyes to figure out how fast they go, where the lane lines are and where are the turns. Car does not have eyes but\nself-driving cars can use cameras and other sensors to keep the similar function. So what does cameras are seeing as we drive down\nthe road is not the same as what we perceive. We have to teach the car how to percieve lane lines and turns.\n\nSo in this project I have written code to identify and track the position of the lane lines in the series of images using image\nanalysis techniques.\n\n  ![alt tag](https://d17h27t6h515a5.cloudfront.net/topher/2016/August/57b4b3ff_test/test.jpg)\n\nFeatures of images to detect lane lines are:\n  * color\n  * shape\n  * orientation\n  * position of the image\n\n\n### Setup\n\nLanguage level and libraries used:\n  * Python 3\n  * Numpy\n  * Matplotlib\n\n\n### Run\nExecute the following command from the root directory:\n\n  ```\n    python3 main.py\n  ```\n\n\n### Results\n\nImage after color detection\n\n![alt tag](./imgs/color-lane-selection.jpg)\n\nImage after color and Region detection\n\n![alt tag](./imgs/region-lane-selection.jpg)\n\nImage after mixing color and region selection images:\n\n![alt tag](./imgs/region-color-lane-selection.jpg)\n\nAs it happens, lane lines are not always the same color, and even lines of the same color under different lighting conditions (day, night, etc) may fail to be detected by our simple color selection. What we need is to take our algorithm to the next level to detect lines of any color using sophisticated computer vision methods.\n\nOne way is using **Canny** function and fiddle with the parameters for the Gaussian smoothing and Edge Detection to optimize for detecting the lane lines well without detecting a lot of other stuff.\n\n![alt tag](./imgs/img2-edge-select-lane-selection.jpg)\n\n\nNow that we have all the edges it is time to compute the lane lines by using **Hough Transform** methodology and then only select lines which fell into our lane lines region.\n\n\n![alt tag](./imgs/img2-hough-transform-lane-selection.jpg)\n\n![alt tag](./imgs/img2-hough-transform-region-lane-selection.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazanin1369%2Fsdcarslanedetection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnazanin1369%2Fsdcarslanedetection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazanin1369%2Fsdcarslanedetection/lists"}