Coder Social home page Coder Social logo

traffic-sign-detection's Introduction

traffic-sign-detection

Real-time traffic sign detection using Gielis curves

System & dependencies

System requirements:

  • Ubuntu 14.04
  • CMake 2.8.12
  • Eigen 3.2.0
  • OpenCV 2.4.8
  • GTest 1.6.0

CMake Library

sudo apt-get install cmake

The version available in Ubuntu 14.04 repositories is CMake 3.2.2

Eigen Library

sudo apt-get install libeigen3-dev

The version available in Ubuntu 14.04 repositories is Eigen 3.2.0

OpenCV Library

sudo apt-get install libopencv-dev

The version available in Ubuntu 14.04 repositories is OpenCV 2.4.8

Google tests

sudo apt-get install libgtest-dev

The version available in Ubuntu 14.04 repositories is GTest 1.6.0

However, this command only downloads the source that you need to compile.

cd /usr/src/gtest
sudo cmake CMakeLists.txt
sudo make

# copy or symlink libgtest.a and libgtest_main.a to your /usr/lib folder
sudo cp *.a /usr/lib

The version available in Ubuntu 14.04 repositories is GTest 1.6.1

Compilation

  • Create a build folder:

mkdir build

  • Move to the created folder:

cd build

  • Create the MakeFile via cmake:

cmake ../src

  • Compile the code to generate the executable:

make or make -j n where n is the number of cores to use for the compilation

  • A folder bin will be created at the same level as the build directory.

  • In order to run the code:

../bin/main ../test-images/different0035.jpg

traffic-sign-detection's People

Contributors

eduherminio avatar glemaitre avatar massich avatar muddlebee avatar sashokbad avatar zomeck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

traffic-sign-detection's Issues

How to make it real-time and for video?

Awesome work! Here are several concerns from my using.

First, it said that the program runs in real-time. However, I run the sample test as the Readme said:
"../bin/main ../test-images/different0035.jpg"
but got a really long time to run:
"Elapsed time: 9864.11 ms"
Do you know how I can make it run in real-time?

Second, for real-time, it should be running on video or a webcam. Do you have any suggestions or code for video testing?

Thank you so much!

Make error

I'm getting this error when I try to run make. Any ideas why?

make:** No targets specified and no makefile found. Stop.
I'm running Mint 18
Any ideas why?

Thanks.

find_package(OpenCV REQUIRED)

Can anyone with OpenCV 2.x confirm that
find_package(OpenCV REQUIRED core highgui imgproc features2d calib3d)
instead of
find_package(OpenCV 2.4.8 REQUIRED core highgui imgproc features2d calib3d)
works for them, in /src/cmake/findDependencies.cmake?

Research Paper needed

Do you have any research paper or any article so that understanding code will be easy ?

make error for undefined references

Nice work! But one point is that I followed the installation for traffic-sign-detection and got a make error in the final step as follows.

Do you have any suggestions for what might be the reason of the error? Thank you so much!

chongzhaomao@ChongzhaoMao:~/Downloads/traffic-sign-detection-master/build$ make
[ 7%] Built target common
[ 22%] Built target img_processing
[ 29%] Built target optimization
Linking CXX executable /home/chongzhaomao/Downloads/traffic-sign-detection-master/bin/main
CMakeFiles/main.dir/main.cpp.o: In function main': main.cpp:(.text+0x116): undefined reference to cv::imread(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)'
main.cpp:(.text+0x215): undefined reference to cv::Exception::Exception(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' main.cpp:(.text+0x517): undefined reference to cv::imwrite(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, cv::_InputArray const&, std::vector<int, std::allocator > const&)'
main.cpp:(.text+0x1384): undefined reference to cv::namedWindow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' main.cpp:(.text+0x13fe): undefined reference to cv::imshow(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, cv::_InputArray const&)'
../img_processing/libimg_processing.a(segmentation.cpp.o): In function segmentation::seg_norm_hue(cv::Mat const&, cv::Mat&, int const&, int, int, int)': segmentation.cpp:(.text+0x3fe): undefined reference to cv::Exception::Exception(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)'
../img_processing/libimg_processing.a(colorConversion.cpp.o): In function colorconversion::convert_rgb_to_ihls(cv::Mat const&, cv::Mat&)': colorConversion.cpp:(.text+0x64e): undefined reference to cv::Exception::Exception(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)'
collect2: error: ld returned 1 exit status
apps/CMakeFiles/main.dir/build.make:98: recipe for target '/home/chongzhaomao/Downloads/traffic-sign-detection-master/bin/main' failed
make[2]: *** [/home/chongzhaomao/Downloads/traffic-sign-detection-master/bin/main] Error 1
CMakeFiles/Makefile2:227: recipe for target 'apps/CMakeFiles/main.dir/all' failed
make[1]: *** [apps/CMakeFiles/main.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2

Segmentation fault (core dumped)

Hi,
I am experiencing "Segmentation fault (core dumped)" on all input images.
I am beginner to the C++ (came from Java and Python) thus can't provide stack trace or whatever is equivalent in C++. However, by using std::cout I found that root source is in imageProcessing.cpp

cv::convertPointsToHomogeneous(contour, homogeneous_contour);

I am running on Ubuntu 16, Open CV 3.1.0. Compiled your code by make and in the QtCreator.
Both ways failed.
Describe me what information you do need for the analysis and how to get it.
I am more then interesting in your project.

log chromatic format

// Function to convert an RGB image (uchar) to log chromatic format (double)
void rgb_to_log_rb(const cv::Mat& rgbImage, std::vector< cv::Mat >& log_chromatic_image) {}

Could you tell me what the purpose of this funciton?And what is the log chromatic format ? I can not find any information about this .Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.