An advanced driver-assistance system on Jetson Nano embedded computer with four main functions: forward collision warning, lane departure warning, traffic sign recognition and overspeed warning. This repository contains source code for Jetson Nano, not including the source code for model training and conversion.
Blog posts:
- https://aicurious.io/posts/adas-jetson-nano-intro-and-hardware/.
- https://aicurious.io/posts/adas-jetson-nano-software/.
- https://aicurious.io/posts/adas-jetson-nano-deep-neural-networks/.
-
CMake >= 3.10
-
Qt 5
-
OpenCV >= 4.0.1
-
C++ 17 compiler
-
CUDA 10.1
-
TensorRT 5.1.5-1+cuda10.1
- Install QT:
sudo apt-get install build-essential
sudo apt-get install qtcreator
sudo apt-get install qt5-default
sudo apt-get install qt5-doc
sudo apt-get install qt5-doc-html qtbase5-doc-html
sudo apt-get install qtbase5-examples
sudo /sbin/ldconfig -v
- Install OpenCV
https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/
- Install protobuf 3.6.1
https://github.com/protocolbuffers/protobuf
- Download models and testing data here and put into root folder of this project.
- Compile
cd <project directory>
mkdir build
cd build
cmake -DCUDA_INCLUDE_DIRS=/usr/local/cuda-10.0/include ..
make
- Run
./CarSmartCam
/usr/bin/ld: cannot find -lcudart
:
sudo ln -s /usr/local/cuda/lib64/libcudart.so /usr/lib/libcudart.so
/usr/bin/ld: cannot find -lcublas
:
sudo ln -s /usr/local/cuda/lib64/libcublas.so /usr/lib/libcublas.so
-
In this project, we use code from:
- Dark Theme for Qt5 by Juergen Skrotzky: https://github.com/Jorgen-VikingGod/Qt-Frameless-Window-DarkStyle.
-
ICSim