An open API service indexing awesome lists of open source software.

https://github.com/rituyadav92/social_distancing_project


https://github.com/rituyadav92/social_distancing_project

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

# Social_Distancing_Project
Detect objects and check cases of social distancing violation.

#### Demo:

![.](Output_Demo1.gif)

## How to run?
### 1. Run .yml file to create the enviornment for this project.
```conda env create -f environment.yml```
### 2. Drop an email to download the pre-trained YOLO v3 weights on coco dataset.
### 3. Run the code using following command
```python social_distance_detector.py --input pedestrians.mp4 --output output.avi```

### 4. If X server error then

#### prevent any future commands in this session from connecting to your real X environment
```unset DISPLAY XAUTHORITY```

#### run yourcode.py with a fake X environment provided by xvfb-run
```xvfb-run python yourcode.py```