File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
SerialPrograms/Source/PokemonLZA/Inference/Boxes Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ bool BoxDetector::detect_at_cell(const ImageViewRGB32& image_crop){
107107
108108 int saved_object_id = 0 ;
109109 if (debug_switch){
110- cout << " detect_at_cell() area threshold " << min_area << " - " << max_area << endl;
110+ cout << " detect_at_cell() area threshold " << min_area << " - " << max_area << endl;
111111 cout << " input image size " << image_crop.width () << " x" << image_crop.height () << endl;
112112 }
113113
@@ -176,6 +176,7 @@ bool BoxDetector::detect(const ImageViewRGB32& screen){
176176 const uint8_t debug_cell_row = 255 , debug_cell_col = 255 ;
177177 if (row == debug_cell_row && col == debug_cell_col){
178178 debug_switch = true ;
179+ cout << " start debugging switch at " << int (row) << " , " << int (col) << endl;
179180 }
180181 bool detected = detect_at_cell (image_crop);
181182 if (row == debug_cell_row && col == debug_cell_col){
@@ -191,7 +192,9 @@ bool BoxDetector::detect(const ImageViewRGB32& screen){
191192 arrow_found = true ;
192193 m_found_row = row;
193194 m_found_col = col;
194- break ;
195+ if (!m_debug_mode){
196+ break ;
197+ }
195198 }
196199 }
197200 if (arrow_found && !m_debug_mode){
You can’t perform that action at this time.
0 commit comments