Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
a7ad78b9
Commit
a7ad78b9
authored
Dec 02, 2016
by
Pavel Rojtberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cnn_3dobj: use ocv_add_testdata
parent
ba1973d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
CMakeLists.txt
modules/cnn_3dobj/CMakeLists.txt
+1
-0
test_cnn_3dobj_feature_extract.cpp
modules/cnn_3dobj/test/test_cnn_3dobj_feature_extract.cpp
+3
-3
No files found.
modules/cnn_3dobj/CMakeLists.txt
View file @
a7ad78b9
...
...
@@ -33,6 +33,7 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories
(
${
Caffe_INCLUDE_DIR
}
)
set
(
the_description
"CNN for 3D object recognition and pose estimation including a completed Sphere View on 3D objects"
)
ocv_define_module
(
cnn_3dobj opencv_core opencv_imgproc
${
Caffe_LIBS
}
${
Glog_LIBS
}
${
Protobuf_LIBS
}
OPTIONAL opencv_features2d opencv_viz opencv_calib3d WRAP python
)
ocv_add_testdata
(
testdata/cv contrib/cnn_3dobj
)
if
(
TARGET opencv_test_cnn_3dobj
)
target_link_libraries
(
opencv_test_cnn_3dobj boost_system
)
...
...
modules/cnn_3dobj/test/test_cnn_3dobj_feature_extract.cpp
View file @
a7ad78b9
...
...
@@ -26,11 +26,11 @@ CV_CNN_Feature_Test::CV_CNN_Feature_Test()
*/
void
CV_CNN_Feature_Test
::
run
(
int
)
{
String
caffemodel
=
String
(
ts
->
get_data_path
())
+
"3d_triplet_iter_30000.caffemodel"
;
String
network_forIMG
=
cvtest
::
TS
::
ptr
()
->
get_data_path
()
+
"3d_triplet_testIMG.prototxt"
;
String
caffemodel
=
cvtest
::
findDataFile
(
"contrib/cnn_3dobj/3d_triplet_iter_30000.caffemodel"
)
;
String
network_forIMG
=
cvtest
::
findDataFile
(
"contrib/cnn_3dobj/3d_triplet_testIMG.prototxt"
)
;
String
mean_file
=
"no"
;
std
::
vector
<
String
>
ref_img
;
String
target_img
=
String
(
ts
->
get_data_path
())
+
"4_78.png"
;
String
target_img
=
cvtest
::
findDataFile
(
"contrib/cnn_3dobj/4_78.png"
)
;
String
feature_blob
=
"feat"
;
String
device
=
"CPU"
;
int
dev_id
=
0
;
...
...
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