Skip to content

Commit 44784fa

Browse files
authored
Merge pull request spmallick#292 from gulshan-mittal/dev1
Updated README and change the file to README.md
2 parents 76263a3 + 8e109a6 commit 44784fa

File tree

3 files changed

+59
-21
lines changed

3 files changed

+59
-21
lines changed

ObjectDetection-YOLO/README

Lines changed: 0 additions & 21 deletions
This file was deleted.

ObjectDetection-YOLO/README.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
### Download the Models
2+
3+
Run the **getModels.sh** file from command line to download the needed model files
4+
5+
sudo chmod a+x getModels.sh
6+
./getModels.sh
7+
8+
9+
10+
### How to run the code
11+
12+
Command line usage for object detection using YOLOv3
13+
14+
* Python
15+
16+
* A single image:
17+
18+
19+
```bash
20+
python3 object_detection_yolo.py --image=bird.jpg
21+
```
22+
23+
* A video file:
24+
25+
```bash
26+
python3 object_detection_yolo.py --video=run.mp4
27+
```
28+
29+
30+
31+
* C++:
32+
33+
* A single image:
34+
35+
36+
```bash
37+
./object_detection_yolo.out --image=bird.jpg
38+
```
39+
40+
41+
42+
* A video file:
43+
44+
```bash
45+
./object_detection_yolo.out --video=run.mp4
46+
```
47+
48+
49+
50+
### Compilation examples
51+
52+
```bash
53+
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
54+
```
55+
56+
57+
58+
### Results of YOLOv3
59+
<img src = "https://github.com/gulshan-mittal/learnopencv/blob/dev1/ObjectDetection-YOLO/bird_yolo_out_py.jpg" width = 400 height = 300/>
236 KB
Loading

0 commit comments

Comments
 (0)