You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/cnn_3dobj/samples/demo_sphereview_data.cpp
+37-22Lines changed: 37 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -47,16 +47,19 @@ using namespace cv::cnn_3dobj;
47
47
intmain(int argc, char *argv[])
48
48
{
49
49
const String keys = "{help | | demo :$ ./sphereview_test -ite_depth=2 -plymodel=../data/3Dmodel/ape.ply -imagedir=../data/images_all/ -labeldir=../data/label_all.txt -num_class=6 -label_class=0, then press 'q' to run the demo for images generation when you see the gray background and a coordinate.}"
50
-
"{ite_depth | 3 | Iteration of sphere generation.}"
51
-
"{plymodel | ../data/3Dmodel/ape.ply | Path of the '.ply' file for image rendering. }"
52
-
"{imagedir | ../data/images_all/ | Path of the generated images for one particular .ply model. }"
53
-
"{labeldir | ../data/label_all.txt | Path of the generated images for one particular .ply model. }"
54
-
"{cam_head_x | 0 | Head of the camera. }"
55
-
"{cam_head_y | -1 | Head of the camera. }"
56
-
"{cam_head_z | 0 | Head of the camera. }"
57
-
"{num_class | 6 | Total number of classes of models}"
58
-
"{label_class | 0 | Class label of current .ply model}"
59
-
"{rgb_use | 0 | Use RGB image or grayscale}";
50
+
"{ite_depth | 2 | Iteration of sphere generation.}"
51
+
"{plymodel | ../data/3Dmodel/ape.ply | Path of the '.ply' file for image rendering. }"
52
+
"{imagedir | ../data/images_all/ | Path of the generated images for one particular .ply model. }"
53
+
"{labeldir | ../data/label_all.txt | Path of the generated images for one particular .ply model. }"
54
+
"{cam_head_x | 0 | Head of the camera. }"
55
+
"{cam_head_y | 0 | Head of the camera. }"
56
+
"{cam_head_z | -1 | Head of the camera. }"
57
+
"{image_size | 128 | Size of captured images. }"
58
+
"{label_class | 1 | Class label of current .ply model. }"
59
+
"{label_item | 1 | Item label of current .ply model. }"
60
+
"{rgb_use | 0 | Use RGB image or grayscale. }"
61
+
"{num_class | 6 | Total number of classes of models. }"
62
+
"{binary_out | 0 | Produce binaryfiles for images and label. }";
60
63
/* Get parameters from comand line. */
61
64
cv::CommandLineParser parser(argc, argv, keys);
62
65
parser.about("Generating training data for CNN with triplet loss");
@@ -69,12 +72,15 @@ int main(int argc, char *argv[])
0 commit comments