From 82f092179241d23b2836be46805acab3cd054c0c Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Mon, 22 Oct 2012 23:16:48 +0200 Subject: einige nutzlos edebugbilder entfernt --- mariokart01.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/mariokart01.cpp b/mariokart01.cpp index 7dc1ee5..88ffdce 100644 --- a/mariokart01.cpp +++ b/mariokart01.cpp @@ -400,10 +400,10 @@ int main(int argc, char* argv[]) if (fork()==0) system("mupen64plus --nogui --noask ~/MarioKart64.rom"); - sleep(2); + sleep(1); joystick.reset(); - cout << "reset joystick." << endl; + cout << "successfully reset joystick." << endl; /* cout << "press enter to steer left" << endl; getchar(); @@ -554,10 +554,14 @@ int main(int argc, char* argv[]) if (hist2[i]>hist_max) hist_max=hist2[i]; if ((hist2[i] < hist_max/2) && (i>x_begin)) { - thres=i; break; + thres=i; + break; } } + //thres-=thres/4; + + Mat img_hist(100,256, CV_8U); for (int row = 0; row