@@ -98,26 +98,25 @@ void AssociateUtils::ComputeStats(int col, int row,
98
98
if (col > 0 ) {
99
99
float left_gap = word_res->GetBlobsGap (col - 1 ) / normalizing_height;
100
100
SEAM *left_seam = word_res->seam_array [col - 1 ];
101
- if ((!end_row && left_gap < kMinGap ) || left_seam->priority > 0 .0f ) {
101
+ if ((!end_row && left_gap < kMinGap ) || left_seam->priority () > 0 .0f ) {
102
102
stats->bad_shape = true ;
103
103
}
104
104
if (debug) {
105
- tprintf (" left_gap %g, left_seam %g %s\n " , left_gap, left_seam-> priority ,
106
- stats->bad_shape ? " bad_shape" : " " );
105
+ tprintf (" left_gap %g, left_seam %g %s\n " , left_gap,
106
+ left_seam-> priority (), stats->bad_shape ? " bad_shape" : " " );
107
107
}
108
108
}
109
109
float right_gap = 0 .0f ;
110
110
if (!end_row) {
111
111
right_gap = word_res->GetBlobsGap (row) / normalizing_height;
112
112
SEAM *right_seam = word_res->seam_array [row];
113
- if (right_gap < kMinGap || right_seam->priority > 0 .0f ) {
113
+ if (right_gap < kMinGap || right_seam->priority () > 0 .0f ) {
114
114
stats->bad_shape = true ;
115
115
if (right_gap < kMinGap ) stats->bad_fixed_pitch_right_gap = true ;
116
116
}
117
117
if (debug) {
118
- tprintf (" right_gap %g right_seam %g %s\n " ,
119
- right_gap, right_seam->priority ,
120
- stats->bad_shape ? " bad_shape" : " " );
118
+ tprintf (" right_gap %g right_seam %g %s\n " , right_gap,
119
+ right_seam->priority (), stats->bad_shape ? " bad_shape" : " " );
121
120
}
122
121
}
123
122
0 commit comments