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
4a869007
Commit
4a869007
authored
Jul 30, 2014
by
edgarriba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added help()
parent
69f1ee87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
main_detection.cpp
.../calib3d/real_time_pose_estimation/src/main_detection.cpp
+14
-2
No files found.
samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/main_detection.cpp
View file @
4a869007
...
@@ -24,6 +24,19 @@ std::string yml_read_path = "../Data/cookies_ORB.yml"; // 3dpts + descriptors
...
@@ -24,6 +24,19 @@ std::string yml_read_path = "../Data/cookies_ORB.yml"; // 3dpts + descriptors
// COOKIES BOX MESH
// COOKIES BOX MESH
std
::
string
ply_read_path
=
"../Data/box.ply"
;
// mesh
std
::
string
ply_read_path
=
"../Data/box.ply"
;
// mesh
void
help
()
{
std
::
cout
<<
"--------------------------------------------------------------------------"
<<
std
::
endl
<<
"This program shows how to detect an object given its 3D textured model. You can choose to "
<<
"use a recorded video or the webcam."
<<
std
::
endl
<<
"Usage:"
<<
std
::
endl
<<
"./pnp_detection ~/path_to_video/box.mp4"
<<
std
::
endl
<<
"./pnp_detection "
<<
std
::
endl
<<
"--------------------------------------------------------------------------"
<<
std
::
endl
<<
std
::
endl
;
}
/*
/*
* Set up the intrinsic camera parameters: UVC WEBCAM
* Set up the intrinsic camera parameters: UVC WEBCAM
...
@@ -39,7 +52,6 @@ double params_WEBCAM[] = { width*f/sx, // fx
...
@@ -39,7 +52,6 @@ double params_WEBCAM[] = { width*f/sx, // fx
height
/
2
};
// cy
height
/
2
};
// cy
/*
/*
* Set up some basic colors
* Set up some basic colors
*/
*/
...
@@ -92,7 +104,7 @@ void fillMeasurements( cv::Mat &measurements,
...
@@ -92,7 +104,7 @@ void fillMeasurements( cv::Mat &measurements,
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
std
::
cout
<<
"!!!Hello Detection!!!"
<<
std
::
endl
;
help
()
;
PnPProblem
pnp_detection
(
params_WEBCAM
);
PnPProblem
pnp_detection
(
params_WEBCAM
);
PnPProblem
pnp_detection_est
(
params_WEBCAM
);
PnPProblem
pnp_detection_est
(
params_WEBCAM
);
...
...
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