https://github.com/sofwerx/assault-rifle-detection
https://github.com/sofwerx/assault-rifle-detection
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sofwerx/assault-rifle-detection
- Owner: sofwerx
- Created: 2018-07-19T13:59:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-01T15:28:41.000Z (over 6 years ago)
- Last Synced: 2025-01-20T05:40:57.990Z (4 months ago)
- Language: Python
- Size: 77 MB
- Stars: 1
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# assault-rifle-detection
```
git clone https://github.com/sofwerx/assault-rifle-detection.git $HOME/Documents/assault-rifle-detection
```
```
cd $HOME/Documents/assault-rifle-detection
``````
docker build -t gpu_tf .
``````
xhost +local:docker
``````
nvidia-docker run --rm --network host --privileged -it -v ~/.Xauthority:/root/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY --env="QT_X11_NO_MITSHM=1" -v /dev/video0:/dev/video0 -v $HOME/Documents/assault-rifle-detection/tf_files:/tf_files --device /dev/snd gpu_tf bash
``````
cd object_detection
``````
cp /tf_files/longgun-detection.py .
``````
wget http://download.tensorflow.org/models/object_detection/faster_rcnn_resnet101_coco_2017_11_08.tar.gz
``````
tar -xvf faster_rcnn_resnet101_coco_2017_11_08.tar.gz
```Select Camera and GPU Allocation
RECEPTION_EAST
RECEPTION_WEST
DIRTYWERX_NORTH
DIRTYWERX_SOUTH
THUNDERDRONE_INDOOR_EAST
THUNDERDRONE_INDOOR_WEST
OUTSIDE_WEST
OUTSIDE_NORTH_WEST
OUTSIDE_NORTH
OUTSIDE_NORTH_EAST
DIRTYWERX_RAMP```
python longgun-detection.py RECEPTION_EAST 100
```