← 开源
ahmetozlu

vehicle_counting_tensorflow

:oncoming_automobile: "MORE THAN VEHICLE COUNTING!" This project provides prediction for speed, color and size of the vehicles with TensorFlow Object Counting API.

ApplicationsObject detectionPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
931
Star
360
Fork
+0
本周
3
贡献者
创建于 2018-01-25 · 更新于 2026-10-06 · 今日第 12562 名
主要开发者
ahmetozluOthellaenric1994

ahmetozlu/vehicle_counting_tensorflow 排名第 12,562,有 931 个星标。

同类别比较

ahmetozlu/vehicle_counting_tensorflow 排名第 12,562,此处有 8 个同类条目;plastic-labs/tutor-gpt 排名第 12,565。

同类别比较
名称排名指标
Renset/macai12,536
语言:
Swift
星标数:
935
分叉数:
76
简介:
All-in-one native macOS AI chat application for virtually any AI provider
dpressel/rude-carnie12,543
语言:
Python
星标数:
934
分叉数:
333
简介:
Age detection in Tensorflow
marcelo-earth/generative-manim12,548
语言:
Python
星标数:
933
分叉数:
137
简介:
🎨 GPT for video generation ⚡️
retentioneering/retentioneering-tools12,550
语言:
Python
星标数:
933
分叉数:
140
简介:
Python toolkit, MCP server, and agent skills for reproducible, auditable clickstream and event log analytics. Helps AI agents, data scientists and analysts build, validate, and cross-check product analytics, quantitative UX, customer journeys, graph-based user flows, behavioral segmentation, A/B tests, process mining models, Markov chain simulation
plastic-labs/tutor-gpt12,565
语言:
TypeScript
星标数:
931
分叉数:
97
简介:
AI tutor powered by Theory-of-Mind reasoning
THUDM/AutoWebGLM12,567
语言:
Python
星标数:
930
分叉数:
81
简介:
An LLM-based Web Navigating Agent (KDD'24)
krafton-ai/KIRA12,570
语言:
Python
星标数:
930
分叉数:
105
简介:
KIRA
yeahhe365/AMC-WebUI12,576
语言:
TypeScript
星标数:
930
分叉数:
189
简介:
面向 Gemini 的 Local-First AI 工作流 WebUI,集成多模态聊天、Canvas、文件处理、实时搜索、代码执行与高级推理。
关键参数与规格
关键参数与规格
参数值
语言Python
类别Applications
子类别Object detection
星标数931
分叉数360
贡献者3
创建日期2018-01-25
更新日期2026-10-06
1 天星标数0
7 天星标数0
排名12,562
上次排名12,480
排名变化-82
7 天星标排名13,487
上次 7 天星标排名13,497
7 天星标排名变化10
总星标排名11,763
上次总星标排名11,746
总星标排名变化-17
国家Belgium
README 摘录

VEHICLE DETECTION, TRACKING AND COUNTING This sample project focuses on "Vechicle Detection, Tracking and Counting" using **TensorFlow Object Counting API**. ***Please contact if you need professional vehicle detection & tracking & counting project with the super high accuracy! This sample project will be updated soon, the more talented traffic analyzer app will be available in this repo! csv file as an output (traffic_measurement. csv) which includes "Vehicle Type/Size", " Vehicle Color", " Vehicle Movement Direction", " Vehicle Speed (km/h)" rows, after the

end of the process for the source video file. ** ToDos: More powerful detection models will be shared. Sample codes will be developed to process different types of input videos (for different types of road traffics such as two way lane road). The input video can be accessible by this link. Theory System Architecture Vehicle detection and classification have been developed using TensorFlow Object Detection API, see for more info. Vehicle speed prediction has been developed using OpenCV via image pixel

manipulation and calculation, see for more info. Vehicle color prediction has been developed using OpenCV via K-Nearest Neighbors Machine Learning Classification Algorithm is Trained Color Histogram Features, see for more info. TensorFlow™ is an open source software library for numerical computation using data flow graphs. Nodes in the graph represent mathematical operations, while the graph edges represent the multidimensional data arrays (tensors) communicated between them. OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine

learning software library. OpenCV was built to provide a common infrastructure for computer vision applications and to accelerate the use of machine perception in the commercial products. Tracker Source video is read frame by frame with OpenCV. Each frames is processed by "SSD with Mobilenet" model is developed on TensorFlow. This is a loop that continue working till reaching end of the video. The main pipeline of the tracker is given at the above Figure. Model By default I use

an "SSD with Mobilenet" model in this project. You can find more information about SSD in here. See the detection model zoo for a list of other models that can be run out-of-the-box with varying speeds and accuracies. *The minimum vehicle detection threshold can be set in this line in terms of percentage. The default minimum vehicle detecion threshold is 0. * Project Demo Demo video of the project is available on My YouTube Channel. Installation **Docker setup

with Nvidia GPU:** Run the demo in the GPU without installing anything, just nvidia-docker. The command to set up this docker: Alternative for nvidia-docker, you can follow the installation steps are given below! ) Python and pip** Python is automatically installed on Ubuntu. Take a moment to confirm (by issuing a python -V command) that one of the following Python versions is already installed on your system: Python 3. 3+ The pip or pip3 package manager is usually installed

on Ubuntu. Take a moment to confirm (by issuing a *pip -V* or *pip3 -V* command) that pip or pip3

常见问题

记录了多少星标和分叉?

ahmetozlu/vehicle_counting_tensorflow 有 931 个星标和 360 个分叉。

仓库排名是多少?

ahmetozlu/vehicle_counting_tensorflow 排名第 12,562。

记录的语言和类别是什么?

ahmetozlu/vehicle_counting_tensorflow 有 931 个星标,语言为 Python,类别为 Applications。

哪个仓库排名最接近?

ahmetozlu/vehicle_counting_tensorflow 与 plastic-labs/tutor-gpt 比较,后者排名第 12,565,有 931 个星标。

README

VEHICLE DETECTION, TRACKING AND COUNTING

This sample project focuses on "Vechicle Detection, Tracking and Counting" using TensorFlow Object Counting API. Please contact if you need professional vehicle detection & tracking & counting project with the super high accuracy!


The TensorFlow Object Counting API is used as a base for object counting on this project, more info can be found on this repo.



The developing is on progress! This sample project will be updated soon, the more talented traffic analyzer app will be available in this repo!


General Capabilities of This Sample Project

This sample project has more than just counting vehicles, here are the additional capabilities of it:

  • Detection and classification of the vehicles (car, truck, bicycle, motorcycle, bus)
  • Recognition of approximate vehicle color
  • Detection of vehicle direction of travel
  • Prediction the speed of the vehicle
  • Prediction of approximate vehicle size
  • The images of detected vehicles are cropped from video frame and they are saved as new images under "detected_vehicles" folder path
  • The program gives a .csv file as an output (traffic_measurement.csv) which includes "Vehicle Type/Size", " Vehicle Color", " Vehicle Movement Direction", " Vehicle Speed (km/h)" rows, after the end of the process for the source video file.

ToDos:

  • More powerful detection models will be shared.
  • Sample codes will be developed to process different types of input videos (for different types of road traffics such as two way lane road).
  • Code cleanup will be performed.
  • UI will be developed.

The input video can be accessible by this link.

Theory

System Architecture

  • Vehicle detection and classification have been developed using TensorFlow Object Detection API, see for more info.
  • Vehicle speed prediction has been developed using OpenCV via image pixel manipulation and calculation, see for more info.
  • Vehicle color prediction has been developed using OpenCV via K-Nearest Neighbors Machine Learning Classification Algorithm is Trained Color Histogram Features, see for more info.

TensorFlow™ is an open source software library for numerical computation using data flow graphs. Nodes in the graph represent mathematical operations, while the graph edges represent the multidimensional data arrays (tensors) communicated between them.

OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning software library. OpenCV was built to provide a common infrastructure for computer vision applications and to accelerate the use of machine perception in the commercial products.

Tracker

Source video is read frame by frame with OpenCV. Each frames is processed by "SSD with Mobilenet" model is developed on TensorFlow. This is a loop that continue working till reaching end of the video. The main pipeline of the tracker is given at the above Figure.

Model

By default I use an "SSD with Mobilenet" model in this project. You can find more information about SSD in here. See the detection model zoo for a list of other models that can be run out-of-the-box with varying speeds and accuracies.

The minimum vehicle detection threshold can be set in this line in terms of percentage. The default minimum vehicle detecion threshold is 0.5!

Project Demo

Demo video of the project is available on My YouTube Channel.

Installation

Docker setup with Nvidia GPU: Run the demo in the GPU without installing anything, just nvidia-docker. The command to set up this docker:

docker-compose up

Alternative for nvidia-docker, you can follow the installation steps are given below!

1.) Python and pip

Python is automatically installed on Ubuntu. Take a moment to confirm (by issuing a python -V command) that one of the following Python versions is already installed on your system:

  • Python 3.3+

The pip or pip3 package manager is usually installed on Ubuntu. Take a moment to confirm (by issuing a pip -V or pip3 -V command) that pip or pip3 is installed. We strongly recommend version 8.1 or higher of pip or pip3. If Version 8.1 or later is not installed, issue the following command, which will either install or upgrade to the latest pip version:

$ sudo apt-get install python3-pip python3-dev # for Python 3.n

2.) OpenCV

See required commands to install OpenCV on Ubuntu in here.

3.) TensorFlow

Install TensorFlow by invoking one of the following commands:

$ pip3 install tensorflow     # Python 3.n; CPU support (no GPU support)
$ pip3 install tensorflow-gpu # Python 3.n; GPU support

Current program is compatible with TensorFlow 1.5.0 version. Please uncomment these lines to run the program with TensorFlow 2.x: #1, #2, #3, #4.

4.) TensorFlow Object Detection API

See required commands to install TensorFlow Object Detection API on Ubuntu in here.

If you are still getting problem about installation after completed the installation of the packet that are given above, please check that link out to get detailed info about installation.


How to run the program?

After completing these 4 installation steps that are given at above, you can test the project by one of these commands. Program takes an input argument 'imshow' or 'imwrite':

  python3 vehicle_detection_main.py imshow
  python3 vehicle_detection_main.py imwrite
  • imshow : shows the processed frames as an video on screen.
  • imwrite : saves the processed frames as an output video in the project root folder.

Citation

If you use this code for your publications, please cite it as:

@ONLINE{vdtct,
    author = "Ahmet Özlü",
    title  = "Vehicle Detection, Tracking and Counting by TensorFlow",
    year   = "2018",
    url    = "https://github.com/ahmetozlu/vehicle_counting_tensorflow"
}

Author

Ahmet Özlü

License

This system is available under the MIT license. See the LICENSE file for more info.

排名相邻
同类项目