wu

Dependencies:   mbed-rtos mbed

Fork of CCC by kao yi

Revision:
17:3dac99cf2b89
Parent:
16:b78dce5c0e98
--- a/camera_api.cpp	Sun Jun 29 14:32:30 2014 +0000
+++ b/camera_api.cpp	Mon Jun 30 03:37:05 2014 +0000
@@ -84,7 +84,7 @@
     int b_thr_dn=5;
     int b_w=0;
     
-     for(int i=r_care;i>l_care;i--){
+     for(int i=l_care;i<r_care;i++){
          
          
           if(l_f1==false&&sign_line_imageL[i]==' '){
@@ -98,7 +98,7 @@
            }
          
            if(l_f1==true && l_f2== true){
-               b_w=b_start-b_end;
+               b_w=b_end-b_start;
                if( b_thr_up>b_w&&b_w> b_thr_dn){
                    
                    find=true;