| | |
| | | public: |
| | | void init(); |
| | | void destory(); |
| | | unsigned char** recognition_numbers(unsigned char* data, unsigned char* template_num, const int rows, const int cols); |
| | | unsigned char** recognition_numbers(unsigned char* data, unsigned char* b_in, const int rows, const int cols, const int num_width, const int num_height, const int num_count); |
| | | |
| | | //分隔每一行需要识别的数字 |
| | | void splitNum(unsigned char* img, int img_width, int img_height, int* pos, int pos_count, unsigned char* zero, unsigned char* result); |
| | | void splitNum(unsigned char* img, int img_width, int img_height, int* pos, int pos_count, unsigned char* zero, int num_width, int num_height, int number_count, unsigned char* result); |
| | | |
| | | //创建识别的数字模板 |
| | | void createNumberTemplates(int lines, unsigned char* result); |
| | | void createNumberTemplates(int lines, int num_width, int num_height, int num_count, uchar* numsOneLevelData, unsigned char* result); |
| | | |
| | | //分隔行数据 |
| | | void splitRowData(unsigned char* imgs, int imgWidth, int imgHeight, int* rowIndexs, int lines, |