Skip to content

Commit

Permalink
update core
Browse files Browse the repository at this point in the history
  • Loading branch information
nar789 committed Sep 28, 2017
1 parent 8c2e0f6 commit 533f63f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 31 deletions.
Binary file modified jh/release/TeethAR.exe
Binary file not shown.
Binary file removed jh/release/image.jpg
Binary file not shown.
Binary file added jh/release/opencv_world330.dll
Binary file not shown.
38 changes: 7 additions & 31 deletions jh/source/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,49 +8,25 @@ using namespace cv;

int main(int argc,char** argv)
{
cout << "TeethAR [filename] [K;value of color] [D;reconginition dist] [DebugMode;1or0]" << endl;
cout << "TeethAR [K;value of color] [D;reconginition dist] [DebugMode;1or0]" << endl;
cout << CV_VERSION << endl;
Mat img;
int cnt = 0;
int K = 200;
int dist = 100;
bool debug = false;
/*
bool debug = true;

if (argc > 1)
{
string s = argv[0];
int x=s.find_last_of('\\');
string filename = s.substr(0, x + 1) + argv[1];
cout << filename << endl;
img = imread(filename);
if (!img.size().width) { cout << "This file is not exist." << endl; exit(1); }
}
if (argc > 2)
{
K = atoi(argv[2]);
K = atoi(argv[1]);
cout << "K=" << K << endl;
}
if (argc > 3)
if (argc > 2)
{
dist = atoi(argv[3]);
dist = atoi(argv[2]);
cout << "Dist=" << dist << endl;
}
if (argc > 4) {
if (atoi(argv[4]) > 0)
debug = true;
else
debug = false;
cout << "DebugMOde=" << debug << endl;
}
if(argc<2) {
do {
string filename = OpenFileDialogA();
cout << filename << endl;
if (filename != "") { img = imread(filename); break; }
else { cout << "arUkiddingMe?" << endl; if (++cnt > 2)exit(1); }
} while (1);
}
*/

VideoCapture cap;
if (!cap.open(0))return 0;
while (1) {
Expand Down

0 comments on commit 533f63f

Please sign in to comment.