Skip to content

Commit c453290

Browse files
committed
Updated readme
1 parent 092664b commit c453290

File tree

4 files changed

+45
-3
lines changed

4 files changed

+45
-3
lines changed

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ script
1616
#editor settings
1717
.idea
1818
.editorconfig
19+
20+
#document
21+
doc

README.md

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,41 @@
1-
# mode-menoh-yolo
2-
Object classification using Yolo powered by Menoh.
1+
# menoh-yolo
2+
Object classification using YOLO v2 powered by [Menoh](https://github.com/pfnet-research/menoh).
3+
4+
This module is made on top of npm module, [menoh](https://github.com/pfnet-research/node-menoh), which is a wrapper of Menoh (C/C++) core.
5+
The modules supports both command line interface and API.
6+
7+
## Installation (command line use)
8+
```
9+
npm install -g menoh-yolo
10+
```
11+
12+
## Usage
13+
14+
```
15+
$ menoh-yolo --help
16+
Usage: menoh-yolo [options]
17+
18+
Options:
19+
-v, --version output the version number
20+
-i, --input <pathname> Input file path.)
21+
-o, --output <pathname> Output file path.)
22+
-s, --score <number> Score threshold (0, 1.0] (defaults to 0.4)
23+
-x, --overlap <number> Overlap threshold (0, 1.0] (defaults to 0.7)
24+
-b, --browse Open output image with default viewer.
25+
-h, --help output usage information
26+
```
27+
28+
### Example
29+
```
30+
$ menoh-yolo -i ./dog.jpg -b
31+
```
32+
33+
By giving `-b` option, it will open up a viewer to show the output result like below:
34+
35+
![Alt text](./doc/output.png?raw=true "Output Image")
36+
37+
38+
## API
39+
(TODO)
40+
41+
> See `./bin/cli.js` as an example.

bin/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ program
4242
.version(yolo.version, '-v, --version')
4343
.option('-i, --input <pathname>', 'Input file path.)', resolve)
4444
.option('-o, --output <pathname>', 'Output file path.)', resolve)
45-
.option('-s, --score <number>', 'Score threshold (0, 1.0] (defaults to 0.7)', parseFloat)
45+
.option('-s, --score <number>', 'Score threshold (0, 1.0] (defaults to 0.4)', parseFloat)
4646
.option('-x, --overlap <number>', 'Overlap threshold (0, 1.0] (defaults to 0.7)', parseFloat)
4747
.option('-b, --browse', 'Open output image with default viewer.')
4848
.parse(process.argv);

doc/output.png

1.14 MB
Loading

0 commit comments

Comments
 (0)