{"id":19386008,"url":"https://github.com/zhengpeng7/detect_visual_limits","last_synced_at":"2025-10-13T10:35:59.023Z","repository":{"id":134376297,"uuid":"127135750","full_name":"ZhengPeng7/detect_visual_limits","owner":"ZhengPeng7","description":"detect the visual limits on the traffic roads","archived":false,"fork":false,"pushed_at":"2018-05-24T06:37:55.000Z","size":993,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-15T19:43:45.719Z","etag":null,"topics":["fog","image-processing","matlab","visibility-detection"],"latest_commit_sha":null,"homepage":"","language":"Matlab","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZhengPeng7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2018-03-28T12:19:10.000Z","updated_at":"2024-10-02T00:18:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d8bed6d-93d3-4f3f-9a68-8f793188d463","html_url":"https://github.com/ZhengPeng7/detect_visual_limits","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ZhengPeng7/detect_visual_limits","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZhengPeng7%2Fdetect_visual_limits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZhengPeng7%2Fdetect_visual_limits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZhengPeng7%2Fdetect_visual_limits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZhengPeng7%2Fdetect_visual_limits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZhengPeng7","download_url":"https://codeload.github.com/ZhengPeng7/detect_visual_limits/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZhengPeng7%2Fdetect_visual_limits/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014646,"owners_count":26085555,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fog","image-processing","matlab","visibility-detection"],"created_at":"2024-11-10T10:03:55.815Z","updated_at":"2025-10-13T10:35:59.014Z","avatar_url":"https://github.com/ZhengPeng7.png","language":"Matlab","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Detect visual limits of the road in foggy scene.\n\n1. Method 1: in the directory \"visibility_detection_by_contrast\", the contrast method is used. The code took the 4-nearest pixels to calculate the contrast value(In the paper\u003csup\u003e[1]\u003c/sup\u003e, it's said that use 2-nearest pixels can get the same effect while saving much time) -- ___if the contrast value of the pixel reaches the threshold and it's not a very isolated one, its y_axis value is perhaps the visual limit___. The paper referred is below.\n2. Method 2: in the directory \"visibility_detection_by_2nd_derivative_only_road_surface\", referred to paper\u003csup\u003e[2]\u003c/sup\u003ethe 2nd derivative method is used as: \n   1. ___Get the vector containing the mean of gray values of each line in a road scene image.___\n   2. ___Calculate the 2nd derivative of the gray values, and find where the 2nd derivative equals 0, of which the y_axis value is probably the visual limit. Besides, I restricted the visual limits in the road region, to get rid of the interference of the trees or other things around.___\n   3. ___However, the candidate y may exist a lot, so the code here took the result of method 1 -- select the y which is nearest to the result in method 1.___\n   4. ___It seems that method 2 is better than method 1 here, while referred on results of method 1.___\n\n### Results:\n- method 1:\n![method_1_res](https://raw.githubusercontent.com/ZhengPeng7/detect_visual_limits/master/visibility_detection_contrast/results/1_point_05/1.jpg)\n\n- method 2:\n![method_2_res](https://raw.githubusercontent.com/ZhengPeng7/detect_visual_limits/master/visibility_detection_by_2nd_derivative_only_road_surface/results/1_point_05/1.jpg)\n\n\u003e [Paper1](http://kns.cnki.net/KCMS/detail/detail.aspx?dbcode=CJFQ\u0026dbname=CJFD2009\u0026filename=JSJF200911010\u0026v=MTA5Mjl0ak5ybzlFWklSOGVYMUx1eFlTN0RoMVQzcVRyV00xRnJDVVJMS2ZaT1JuRkNua1c3eklMejdCYUxHNEg=) -- 李勃,董蓉,陈启美.无需人工标记的视频对比度道路能见度检测[J].计算机辅助设计与图形学学报,2009,21(11):1575-1582.\n\u003e\n\u003e [Paper2](https://www.researchgate.net/publication/220464605_Automatic_fog_detection_and_estimation_of_visibility_distance_through_use_of_an_onboard_camera) -- Hautière, Nicolas \u0026 Tarel, Jean-Philippe \u0026 Lavenant, Jean \u0026 Aubert, Didier. (2006). Automatic fog detection and estimation of visibility distance through use of an onboard camera. Mach. Vis. Appl.. 17. 8-20. 10.1007/s00138-005-0011-1. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhengpeng7%2Fdetect_visual_limits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhengpeng7%2Fdetect_visual_limits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhengpeng7%2Fdetect_visual_limits/lists"}