forked from spmallick/learnopencv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request spmallick#292 from gulshan-mittal/dev1
Updated README and change the file to README.md
- Loading branch information
Showing
3 changed files
with
59 additions
and
21 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.