pull/1/head
Darrell Anderson 12 years ago
parent b606515636
commit a7b645e155

@ -775,7 +775,7 @@ TQValueVector<int> Decoder_EAN13::decode( TQValueVector< TQValueVector<int> > fi
MatchMakerResult Decoder_EAN13::recognizeNumber( TQValueVector< TQValueVector<int> > fields, int code_table_to_use)
{
// convert the pixel lenghts of the four black&white fields into
// convert the pixel lengths of the four black&white fields into
// normed values that have together a length of 70;
int pixel_sum = fields[0][1] + fields[1][1] + fields[2][1] + fields[3][1];
int b[4];
@ -789,7 +789,7 @@ MatchMakerResult Decoder_EAN13::recognizeNumber( TQValueVector< TQValueVector<in
fprintf( stderr, "normed lengths: %i %i %i %i\n", b[0], b[1], b[2], b[3] );
#endif
// try to detect the digit that is encoded by the set of four normed bar lenghts:
// try to detect the digit that is encoded by the set of four normed bar lengths:
int max_difference_for_acceptance = 60;
int temp;

Loading…
Cancel
Save