{"id":23126509,"url":"https://github.com/wlongxiang/dutch_traffic_monitor","last_synced_at":"2025-08-04T05:38:20.559Z","repository":{"id":81676901,"uuid":"136307072","full_name":"wlongxiang/dutch_traffic_monitor","owner":"wlongxiang","description":"Visualize traffic on dutch high way A9 as an example","archived":false,"fork":false,"pushed_at":"2018-12-13T08:59:03.000Z","size":17810,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T00:51:15.643Z","etag":null,"topics":["computer-vision","data-science","deep-learning","object-detection","opencv","visualization"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/wlongxiang.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":"2018-06-06T09:39:37.000Z","updated_at":"2022-01-12T19:14:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"6dbaaed0-37b8-445f-a0e0-8f78ffef0248","html_url":"https://github.com/wlongxiang/dutch_traffic_monitor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wlongxiang/dutch_traffic_monitor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlongxiang%2Fdutch_traffic_monitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlongxiang%2Fdutch_traffic_monitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlongxiang%2Fdutch_traffic_monitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlongxiang%2Fdutch_traffic_monitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wlongxiang","download_url":"https://codeload.github.com/wlongxiang/dutch_traffic_monitor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlongxiang%2Fdutch_traffic_monitor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268655122,"owners_count":24285128,"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-08-04T02:00:09.867Z","response_time":79,"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":["computer-vision","data-science","deep-learning","object-detection","opencv","visualization"],"created_at":"2024-12-17T08:43:10.470Z","updated_at":"2025-08-04T05:38:20.551Z","avatar_url":"https://github.com/wlongxiang.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Demo results\n\n![](dutch_traffic_monitor/sample_images/predictions.png?raw=true)\n\n![](dutch_traffic_monitor/sample_images/predictions_day.png?raw=true)\n\n![](dutch_traffic_monitor/sample_images/predictions_night.png?raw=true)\n\n![](dutch_traffic_monitor/sample_images/a9_grafana.png?raw=true)\n\n## Intro\nTraffic on main dutch high ways is being monitored, and some live streaming cameras are\navailable to public on [www.vid.nl](www.vid.nl).\n\nMotivations for this project:\n - **time series data visualization** \n - **collecting dataset for traffic prediction**\n - **most importantly, for fun!**\n\nSteps:\n - crawl the website mentioned above to get videos clips every certain\namount of time\n - get real time traffic number by running deep learning based object (vehicle) detection algorithms\non video frames\n - visualize the data by using MySQL container for storage and grafana container for making graphs\n \n\n## How to run this code?\n\n1. Spin the enviroment\n```\ndocker-compose up --build\n```\n\n2. Run the detection code\n```\ndocker exec dutch_traffic_monitor_pydarknet_1 ./run.sh\n```\n\n\n3. Open you browser and go to [localhost:3000](localhost:3000), log in to\ngrafana with\n - username: admin\n - password: admin\n \n4. After log in, go to settings and add data source, choose MySQL in the dropdown list\n , and fill in the following information, you can ignore the user permission warning for now:\n  - Name: A9\n  - Type: MySQL\n  - Host: mysql:3306\n  - Database: traffic\n  - User: root\n  - Password: mysqladmin \n  \nClick \"save and test\", if you see connection ok, ready to go!\n\n5.  Now you have the data source, go to add a new graph dashboard in grafana, find the metrics tab under edit option of\nyour graph, choose dada source *A9*, then paste the following query:\n```dtd\nSELECT\n  time as time_sec,\n  NbofCars as value\nFROM traffic.A9\nORDER BY time ASC\n```\nClick **Query Inspector** to see if you get response, if yes, go to settings, change\ntimezone to UTC.\n\nHooray! Adjust the plot style, change your time range to *Today* or whatever your like to see your data.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwlongxiang%2Fdutch_traffic_monitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwlongxiang%2Fdutch_traffic_monitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwlongxiang%2Fdutch_traffic_monitor/lists"}