{"id":18633770,"url":"https://github.com/allisterb/trafficcv","last_synced_at":"2025-04-11T07:32:35.909Z","repository":{"id":61352694,"uuid":"314365215","full_name":"allisterb/TrafficCV","owner":"allisterb","description":"A small OpenCV-based cross-platform library and program that runs different computer vision and deep learning model inference on videos and live streams of traffic . ","archived":false,"fork":false,"pushed_at":"2025-01-01T17:48:44.000Z","size":138,"stargazers_count":15,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-25T11:04:05.498Z","etag":null,"topics":["cv","opencv-python","traffic-analysis"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allisterb.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}},"created_at":"2020-11-19T20:41:07.000Z","updated_at":"2025-01-01T17:48:48.000Z","dependencies_parsed_at":"2022-10-15T18:18:31.331Z","dependency_job_id":null,"html_url":"https://github.com/allisterb/TrafficCV","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allisterb%2FTrafficCV","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allisterb%2FTrafficCV/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allisterb%2FTrafficCV/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allisterb%2FTrafficCV/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allisterb","download_url":"https://codeload.github.com/allisterb/TrafficCV/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248358866,"owners_count":21090446,"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":["cv","opencv-python","traffic-analysis"],"created_at":"2024-11-07T05:16:12.378Z","updated_at":"2025-04-11T07:32:35.898Z","avatar_url":"https://github.com/allisterb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TrafficCV\nTrafficCV is a small OpenCV-based cross-platform program and library that runs different object detection models on live streams or videos of vehicle traffic to compute and estimate information such as vehicle speed, vehicle class, the number of vehicles passing through a Region of Interest (ROI) and so on. You specify the model to run using the `--model` parameter and the video source using the `--video` parameter together with an optional `--args` parameter that specifies a comma-delimited set of model or detector arguments in the form key=value. . \n  \nTrafficCV can run models on traffic videos from YouTube and other video hosting sites using VLC which is installed by default on the Raspberry Pi. The `vlc-stream` scripts accept as a parameter a file or URL and then creates a Multipart-JPEG (MPJPEG) stream on the current computer on port 18223. MPJPEG is a simple way to stream Motion-JPEG (M-JPEG) encoded videos over HTTP that can be processed by OpenCV. Any video source which can be decoded by VLC can be transcoded and streamed to OpenCV allowing you to analyze live-streamed videos in many different formats and locations.\n\n## Installation\nClone the repo and run pip install -r requirements.txt in the project folder. Models can be downloaded from [here](https://ajb.nyc3.cdn.digitaloceanspaces.com/models.zip), and demo videos [here](https://ajb.nyc3.cdn.digitaloceanspaces.com/demo_videos.zip). Expand the archive files in the project folder so you have a `models` and `demo_videos` folder. Depending on the models you want to use you should then install the [TensorFlow Lite runtime](https://www.tensorflow.org/lite/guide/python) or the [EdgeTPU runtime](https://coral.ai/software/#edgetpu-runtime).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallisterb%2Ftrafficcv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallisterb%2Ftrafficcv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallisterb%2Ftrafficcv/lists"}