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
50aa4f88
Commit
50aa4f88
authored
Sep 22, 2017
by
Suleyman TURKMEN
Committed by
Alexander Alekhin
Sep 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge pull request #9686 from sturkmen72:patch-1
Update planar_tracking.cpp (#9686)
parent
3f794cd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
planar_tracking.cpp
...torial_code/features2D/AKAZE_tracking/planar_tracking.cpp
+9
-7
No files found.
samples/cpp/tutorial_code/features2D/AKAZE_tracking/planar_tracking.cpp
View file @
50aa4f88
...
...
@@ -125,11 +125,8 @@ Mat Tracker::process(const Mat frame, Stats& stats)
int
main
(
int
argc
,
char
**
argv
)
{
cerr
<<
"Usage: "
<<
endl
<<
"akaze_track input_path"
<<
endl
<<
" (input_path can be a camera id, like 0,1,2 or a video filename)"
<<
endl
;
CommandLineParser
parser
(
argc
,
argv
,
"{@input_path |0|input path can be a camera id, like 0,1,2 or a video filename}"
);
parser
.
printMessage
();
string
input_path
=
parser
.
get
<
string
>
(
0
);
string
video_name
=
input_path
;
...
...
@@ -158,11 +155,16 @@ int main(int argc, char **argv)
example
::
Tracker
orb_tracker
(
orb
,
matcher
);
Mat
frame
;
video_in
>>
frame
;
namedWindow
(
video_name
,
WINDOW_NORMAL
);
cv
::
resizeWindow
(
video_name
,
frame
.
size
());
cout
<<
"
\n
Press any key to stop the video and select a bounding box"
<<
endl
;
while
(
waitKey
(
1
)
<
1
)
{
video_in
>>
frame
;
cv
::
resizeWindow
(
video_name
,
frame
.
size
());
imshow
(
video_name
,
frame
);
}
cout
<<
"Please select a bounding box, and press any key to continue."
<<
endl
;
vector
<
Point2f
>
bb
;
cv
::
Rect
uBox
=
cv
::
selectROI
(
video_name
,
frame
);
bb
.
push_back
(
cv
::
Point2f
(
static_cast
<
float
>
(
uBox
.
x
),
static_cast
<
float
>
(
uBox
.
y
)));
...
...
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