Python tensorflow is used to predict the congestion types based on image object recognition
HOW TO TEST
1. Clone git repository and cd
into the directory
git clone https://github.com/taiwotman/TensorflowPredictCongestionTypes.git
cd TensorflowPredictCongestionTypes
2. Set up virtualenv with directory venv
virtualenv venv
3. Activate venv using:
source venv/bin/activate
4. Install tensorflow using:
pip install tensorflow
5. Use traffic congestion image(supports only jpeg/jpg format). For example:
python run.py test_image/Aut10_010.jpg
6. Example output:
high congestion (score = 0.70454)
TO DO
Create Flask REST API using (real-time) traffic image data for prediction.
You want to be a contributor?
-
Fork repository
and/or
-
Connect and chat me on LinkedIn.
FOR ACADEMIC PURPOSE; kindly, cite our related work:
T. Adetiloye, A. Awasthi(2017). Predicting Short-Term Congested Traffic Flow on Urban Motorway Networks.
In P. Samui, S.S Roy, V.E. Balas(Eds.), Handbook of Neural Computation(pg. 145–165).
doi: https://doi.org/10.1016/B978-0-12-811318-9.00008-9 . Academic Press.