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
3f5d3b2d
Commit
3f5d3b2d
authored
Aug 08, 2014
by
edgarriba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video opening path modified
parent
f8c5acee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
main_detection.cpp
.../calib3d/real_time_pose_estimation/src/main_detection.cpp
+8
-3
main_registration.cpp
...lib3d/real_time_pose_estimation/src/main_registration.cpp
+5
-3
No files found.
samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/main_detection.cpp
View file @
3f5d3b2d
...
@@ -14,11 +14,16 @@
...
@@ -14,11 +14,16 @@
#include "ModelRegistration.h"
#include "ModelRegistration.h"
#include "Utils.h"
#include "Utils.h"
std
::
string
tutorial_path
=
"../../samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/"
;
// COOKIES VIDEO
std
::
string
video_read_path
=
tutorial_path
+
"Data/box.mp4"
;
// mesh
// COOKIES BOX - ORB
// COOKIES BOX - ORB
std
::
string
yml_read_path
=
"../
Data/cookies_ORB.yml"
;
// 3dpts + descriptors
std
::
string
yml_read_path
=
tutorial_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
=
tutorial_path
+
"
Data/box.ply"
;
// mesh
void
help
()
void
help
()
{
{
...
@@ -156,7 +161,7 @@ int main(int argc, char *argv[])
...
@@ -156,7 +161,7 @@ int main(int argc, char *argv[])
cv
::
VideoCapture
cap
;
// instantiate VideoCapture
cv
::
VideoCapture
cap
;
// instantiate VideoCapture
(
argc
<
2
)
?
cap
.
open
(
1
)
:
cap
.
open
(
argv
[
1
]);
// open the default camera device
(
argc
<
2
)
?
cap
.
open
(
video_read_path
)
:
cap
.
open
(
argv
[
1
]);
// open the default camera device
// or a recorder video
// or a recorder video
if
(
!
cap
.
isOpened
())
// check if we succeeded
if
(
!
cap
.
isOpened
())
// check if we succeeded
...
...
samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/main_registration.cpp
View file @
3f5d3b2d
...
@@ -17,14 +17,16 @@
...
@@ -17,14 +17,16 @@
* Set up the images paths
* Set up the images paths
*/
*/
std
::
string
tutorial_path
=
"../../samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/"
;
// COOKIES BOX [718x480]
// COOKIES BOX [718x480]
std
::
string
img_path
=
"../
Data/resized_IMG_3875.JPG"
;
// f 55
std
::
string
img_path
=
tutorial_path
+
"
Data/resized_IMG_3875.JPG"
;
// f 55
// COOKIES BOX MESH
// COOKIES BOX MESH
std
::
string
ply_read_path
=
"../
Data/box.ply"
;
std
::
string
ply_read_path
=
tutorial_path
+
"
Data/box.ply"
;
// YAML writting path
// YAML writting path
std
::
string
write_path
=
"../
Data/cookies_ORB.yml"
;
std
::
string
write_path
=
tutorial_path
+
"
Data/cookies_ORB.yml"
;
void
help
()
void
help
()
{
{
...
...
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