Skip to content

Commit

Permalink
Merge pull request spmallick#292 from gulshan-mittal/dev1
Browse files Browse the repository at this point in the history
Updated README and change the file to README.md
  • Loading branch information
spmallick authored Apr 3, 2019
2 parents 76263a3 + 8e109a6 commit 44784fa
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 21 deletions.
21 changes: 0 additions & 21 deletions ObjectDetection-YOLO/README

This file was deleted.

59 changes: 59 additions & 0 deletions ObjectDetection-YOLO/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
### Download the Models

Run the **getModels.sh** file from command line to download the needed model files

sudo chmod a+x getModels.sh
./getModels.sh



### How to run the code

Command line usage for object detection using YOLOv3

* Python

* A single image:


```bash
python3 object_detection_yolo.py --image=bird.jpg
```

* A video file:

```bash
python3 object_detection_yolo.py --video=run.mp4
```



* C++:

* A single image:


```bash
./object_detection_yolo.out --image=bird.jpg
```



* A video file:

```bash
./object_detection_yolo.out --video=run.mp4
```



### Compilation examples

```bash
g++ -ggdb pkg-config --cflags --libs /usr/local/Cellar/opencv3/3.4.2/lib/pkgconfig/opencv.pc object_detection_yolo.cpp -o object_detection_yolo.out
```



### Results of YOLOv3
<img src = "https://github.com/gulshan-mittal/learnopencv/blob/dev1/ObjectDetection-YOLO/bird_yolo_out_py.jpg" width = 400 height = 300/>
Binary file added ObjectDetection-YOLO/bird_yolo_out_py.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 44784fa

Please sign in to comment.