{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/turning-traffic-monitoring-cameras-into","title":"Turning Traffic Monitoring Cameras into Intelligent Sensors for Traffic Density Estimation","arxiv_id":"2111.00941","date":"2021-10-29","proceeding":null,"authors":["Zijian Hu","William H. K. Lam","S. C. Wong","Andy H. F. Chow","Wei Ma"],"abstract":"Accurate traffic state information plays a pivotal role in the Intelligent Transportation Systems (ITS), and it is an essential input to various smart mobility applications such as signal coordination and traffic flow prediction. The current practice to obtain the traffic state information is through specialized sensors such as loop detectors and speed cameras. In most metropolitan areas, traffic monitoring cameras have been installed to monitor the traffic conditions on arterial roads and expressways, and the collected videos or images are mainly used for visual inspection by traffic engineers. Unfortunately, the data collected from traffic monitoring cameras are affected by the 4L characteristics: Low frame rate, Low resolution, Lack of annotated data, and Located in complex road environments. Therefore, despite the great potentials of the traffic monitoring cameras, the 4L characteristics hinder them from providing useful traffic state information (e.g., speed, flow, density). This paper focuses on the traffic density estimation problem as it is widely applicable to various traffic surveillance systems. To the best of our knowledge, there is a lack of the holistic framework for addressing the 4L characteristics and extracting the traffic density information from traffic monitoring camera data. In view of this, this paper proposes a framework for estimating traffic density using uncalibrated traffic monitoring cameras with 4L characteristics. The proposed framework consists of two major components: camera calibration and vehicle detection. The camera calibration method estimates the actual length between pixels in the images and videos, and the vehicle counts are extracted from the deep-learning-based vehicle detection method. Combining the two components, high-granular traffic density can be estimated. To validate the proposed framework, two case studies were conducted in Hong Kong and Sacramento. The results show that the Mean Absolute Error (MAE) in camera calibration is less than 0.2 meters out of 6 meters, and the accuracy of vehicle detection under various conditions is approximately 90%. Overall, the MAE for the estimated density is 9.04 veh/km/lane in Hong Kong and 1.30 veh/km/lane in Sacramento. The research outcomes can be used to calibrate the speed-density fundamental diagrams, and the proposed framework can provide accurate and real-time traffic information without installing additional sensors.","url_abs":"https://arxiv.org/abs/2111.00941v1","url_pdf":"https://arxiv.org/pdf/2111.00941v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"turning-traffic-monitoring-cameras-into","repo_url":"https://github.com/zijianhu/traffic_density_estimation","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"none","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"camera-calibration","task_name":"Camera Calibration"},{"task_slug":"density-estimation","task_name":"Density Estimation"},{"task_slug":"vehicle-detection","task_name":"vehicle detection"}],"methods":[{"method_slug":"speed","method_name":"SPEED"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2111.00941","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2111.00941"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/zijianhu/traffic_density_estimation","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":6},"by_repo_kind":{"official":{"samples":6,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"8e541a28971b48da","entry":"generate_polygon_mask","repo":"zijianhu/traffic_density_estimation","repo_kind":"official","path":"camera_calibration/util_files/process.py","file_url":"https://github.com/zijianhu/traffic_density_estimation/blob/HEAD/camera_calibration/util_files/process.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8e541a28971b48da"}},{"code_sha256_prefix":"eeeb4dab38eaadea","entry":"generate_weighted_distribution","repo":"zijianhu/traffic_density_estimation","repo_kind":"official","path":"camera_calibration/util_files/process.py","file_url":"https://github.com/zijianhu/traffic_density_estimation/blob/HEAD/camera_calibration/util_files/process.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"eeeb4dab38eaadea"}},{"code_sha256_prefix":"89a772d7569a0da7","entry":"load_image","repo":"zijianhu/traffic_density_estimation","repo_kind":"official","path":"camera_calibration/util_files/io.py","file_url":"https://github.com/zijianhu/traffic_density_estimation/blob/HEAD/camera_calibration/util_files/io.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"89a772d7569a0da7"}},{"code_sha256_prefix":"ff2616b5fb90e8bc","entry":"load_image_points","repo":"zijianhu/traffic_density_estimation","repo_kind":"official","path":"camera_calibration/util_files/io.py","file_url":"https://github.com/zijianhu/traffic_density_estimation/blob/HEAD/camera_calibration/util_files/io.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ff2616b5fb90e8bc"}},{"code_sha256_prefix":"8a1fa4e591a18d28","entry":"load_object_points","repo":"zijianhu/traffic_density_estimation","repo_kind":"official","path":"camera_calibration/util_files/io.py","file_url":"https://github.com/zijianhu/traffic_density_estimation/blob/HEAD/camera_calibration/util_files/io.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8a1fa4e591a18d28"}},{"code_sha256_prefix":"c2354886a9598fe0","entry":"softmax","repo":"zijianhu/traffic_density_estimation","repo_kind":"official","path":"camera_calibration/util_files/process.py","file_url":"https://github.com/zijianhu/traffic_density_estimation/blob/HEAD/camera_calibration/util_files/process.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c2354886a9598fe0"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}