Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

boehm-s/samaritain

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goal of the project

The goal of this project is to detect dangerous behaviour from video feeds, like fire, guns... To do this we are using the darknet library.

Prerequistes

You have two choices to compile this program:

  1. with CUDA The program will run faster (16gb ram / gtx 960 2gb => 15fps)

  2. without CUDA The program will run slower (16gb ram / gtx 960 2gb => < 1fps)

so we advise you to install CUDA (we are using cuda 8.0)

To install cuda :

Linux Windows

To install opencv2 :

In both cases (CUDA || !CUDA) you will need to install opencv we are using opencv2 so to install it :

Linux Mac Windows


Compile

You now have the required programs to run samaritain To compile our program, you first need to compile the darknet static library, to do so:

  • go to the darknet folder
  • edit the Makefile
  • set GPU, CUDNN and OPENCV to 1 (only OPENCV if you don't use CUDA)
  • run the Makefile
  • copy the darknet.a to app/lib/libdarknet.a
  • go to the app folder
  • run get_weights.sh script
  • run the Makefile
  • execute the program

So now in command line :

cd darknet
emacs -nw Makefile
    GPU=1
    CUDNN=1
    OPENCV=1
    DEBUG=0

make
cp darknet.a ../app/lib/libdarknet.a
cd ../app
cd weights
./get_weights.sh
cd ..
make
./samaritain detector demo cfg/coco.data cfg/yolo.cfg weights/yolo.weights

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 90.4%
  • Cuda 7.9%
  • Python 0.7%
  • Makefile 0.4%
  • C++ 0.3%
  • Roff 0.2%
  • Shell 0.1%