Skip to content

yesyu/Distance_Estimation

 
 

Repository files navigation

Distance_Estimation

Opencv 3.2.0 project with python 2.7 under Ubuntu Mate 16.04 !

My main goal is to estimate the distance from object(vehicles) to ths monocular camera.

Before that, I do some practices and record it to purchase my goal.

How to use the code?

  1. Prepare the environment

Folowing the tutorial , you can build the caffe, CUDA 8.0, cuDNN v5.1, Python2.7 + Opencv v3.2.0

  1. Run the code!

Local machine version

If you only want to use for local machine. please prepare the environment and a webcam connected to the computer. ($ means that command in the terminal)

# Assume you already enter the depository
$ python ssd_local.py

For remote version

architecture

  • under the server
$ python ssd_TCP_server.py
# Then enter the IP(Static) and port
  • under the client
$ python ssd_TCP_client.py
# Then enter the IP and port same as server

Folder Introduction

Base_implement

  • There are some basic implements for opencv. Such as Calibrate the camera, Haar-feature for face or car detection, save video, and socket programing...etc.

caffe

  • It's a deep-learning library. I use it for object detection and recognizing. Single shot multibox detector is the most popular implement for computer vision. Due to its high accuracy and speed, decide to use it for my project!
In the end. Thanks very much to Mr. Wei Liu for his great ssd tutorial and resources.
@inproceedings{liu2016ssd,
  title = {{SSD}: Single Shot MultiBox Detector},
  author = {Liu, Wei and Anguelov, Dragomir and Erhan, Dumitru and Szegedy, Christian and Reed, Scott and Fu, Cheng-Yang and Berg, Alexander C.},
  booktitle = {ECCV},
  year = {2016}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 67.2%
  • C++ 24.5%
  • Python 5.0%
  • Cuda 1.8%
  • CMake 0.7%
  • MATLAB 0.2%
  • Other 0.6%