Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
3e77731f
Commit
3e77731f
authored
Jul 13, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6824 from dozyc:tapi_hog_sample
parents
525e04cf
6c4aae98
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
12 deletions
+10
-12
bgfg_segm.cpp
samples/tapi/bgfg_segm.cpp
+2
-2
clahe.cpp
samples/tapi/clahe.cpp
+1
-1
hog.cpp
samples/tapi/hog.cpp
+2
-4
pyrlk_optical_flow.cpp
samples/tapi/pyrlk_optical_flow.cpp
+1
-1
squares.cpp
samples/tapi/squares.cpp
+2
-2
tvl1_optical_flow.cpp
samples/tapi/tvl1_optical_flow.cpp
+2
-2
No files found.
samples/tapi/bgfg_segm.cpp
View file @
3e77731f
...
...
@@ -17,10 +17,10 @@ using namespace cv;
int
main
(
int
argc
,
const
char
**
argv
)
{
CommandLineParser
cmd
(
argc
,
argv
,
"{ c camera |
false
| use camera }"
"{ c camera |
| use camera }"
"{ f file | ../data/768x576.avi | input video file }"
"{ t type | mog2 | method's type (knn, mog2) }"
"{ h help |
false
| print help message }"
"{ h help |
| print help message }"
"{ m cpu_mode | false | press 'm' to switch OpenCL<->CPU}"
);
if
(
cmd
.
has
(
"help"
))
...
...
samples/tapi/clahe.cpp
View file @
3e77731f
...
...
@@ -33,7 +33,7 @@ int main(int argc, char** argv)
"{ i input | | specify input image }"
"{ c camera | 0 | specify camera id }"
"{ o output | clahe_output.jpg | specify output save path}"
"{ h help |
false
| print help message }"
;
"{ h help |
| print help message }"
;
cv
::
CommandLineParser
cmd
(
argc
,
argv
,
keys
);
if
(
cmd
.
has
(
"help"
))
...
...
samples/tapi/hog.cpp
View file @
3e77731f
...
...
@@ -68,18 +68,16 @@ private:
int
main
(
int
argc
,
char
**
argv
)
{
const
char
*
keys
=
"{ h help |
false
| print help message }"
"{ h help |
| print help message }"
"{ i input | | specify input image}"
"{ c camera | -1 | enable camera capturing }"
"{ v video | ../data/768x576.avi | use video as input }"
"{ g gray |
false
| convert image to gray one or not}"
"{ g gray |
| convert image to gray one or not}"
"{ s scale | 1.0 | resize the image before detect}"
"{ o output | | specify output path when input is images}"
;
CommandLineParser
cmd
(
argc
,
argv
,
keys
);
if
(
cmd
.
has
(
"help"
))
{
cout
<<
"Usage : hog [options]"
<<
endl
;
cout
<<
"Available options:"
<<
endl
;
cmd
.
printMessage
();
return
EXIT_SUCCESS
;
}
...
...
samples/tapi/pyrlk_optical_flow.cpp
View file @
3e77731f
...
...
@@ -75,7 +75,7 @@ static void drawArrows(UMat& _frame, const vector<Point2f>& prevPts, const vecto
int
main
(
int
argc
,
const
char
*
argv
[])
{
const
char
*
keys
=
"{ h help |
false
| print help message }"
"{ h help |
| print help message }"
"{ l left | | specify left image }"
"{ r right | | specify right image }"
"{ c camera | 0 | enable camera capturing }"
...
...
samples/tapi/squares.cpp
View file @
3e77731f
...
...
@@ -143,8 +143,8 @@ int main(int argc, char** argv)
const
char
*
keys
=
"{ i input | ../data/pic1.png | specify input image }"
"{ o output | squares_output.jpg | specify output save path}"
"{ h help |
false
| print help message }"
"{ m cpu_mode |
false
| run without OpenCL }"
;
"{ h help |
| print help message }"
"{ m cpu_mode |
| run without OpenCL }"
;
CommandLineParser
cmd
(
argc
,
argv
,
keys
);
...
...
samples/tapi/tvl1_optical_flow.cpp
View file @
3e77731f
...
...
@@ -83,12 +83,12 @@ static void getFlowField(const Mat& u, const Mat& v, Mat& flowField)
int
main
(
int
argc
,
const
char
*
argv
[])
{
const
char
*
keys
=
"{ h help |
false
| print help message }"
"{ h help |
| print help message }"
"{ l left | | specify left image }"
"{ r right | | specify right image }"
"{ o output | tvl1_output.jpg | specify output save path }"
"{ c camera | 0 | enable camera capturing }"
"{ m cpu_mode |
false
| run without OpenCL }"
"{ m cpu_mode |
| run without OpenCL }"
"{ v video | | use video as input }"
;
CommandLineParser
cmd
(
argc
,
argv
,
keys
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment