| | |
| | | nps[9] = -1; |
| | | nps[10] = -1; |
| | | nps[11] = -1; |
| | | }else { |
| | | } |
| | | else { |
| | | //3个时间的坐标 |
| | | nps[0] = startx; |
| | | nps[1] = starty; |
| | |
| | | nps[5] = -1; |
| | | nps[6] = -1; |
| | | nps[7] = -1; |
| | | }else { |
| | | } |
| | | else { |
| | | nps[0] = startx; |
| | | nps[1] = starty; |
| | | nps[2] = startx + m_s - 1; |
| | |
| | | } |
| | | |
| | | } |
| | | //代码 |
| | | else if (type == 3) { |
| | | //代码与数字 |
| | | else if (type == 3 || type == 4) { |
| | | //手数 |
| | | nps[0] = startx; |
| | | nps[1] = starty; |
| | |
| | | } |
| | | |
| | | } |
| | | //代码 |
| | | else if (type == 3) { |
| | | //代码与数字 |
| | | else if (type == 3 || type == 4) { |
| | | //手数 |
| | | nps[0] = startx; |
| | | nps[1] = starty; |
| | |
| | | } |
| | | } |
| | | |
| | | //printf("index:%d unit_start:%d\n", index, unit_start); |
| | | |
| | | int count = 0; |
| | | if (unit_start > -1) |
| | | { |
| | | for (int c = unit_start;c <= endx;c++) { |
| | | for (int y = starty;y <= endy;y++) { |
| | | count+=(get_binary_value(imgs[get_one_level_position(width, c, y)]) > 0 ? 1 : 0); |
| | | } |
| | | } |
| | | } |
| | | if (count >= 48) { |
| | | result[index] = 0; |
| | | } |