Finally the barcode encoding for Qr Codes has beed fixed. Thanks to this commit da544f639d i have seen the error. Thank you @niallfraser!

This commit is contained in:
nikos.ftylitakis 2018-01-12 18:15:49 +02:00
parent 8d6d5b20d1
commit f4740d6e44
2 changed files with 1 additions and 2 deletions

View File

@ -59,7 +59,7 @@ int ECBlocks::getECCodewordsPerBloc()
int ECBlocks::getTotalECCodewords()
{
return ecBlocks_.size();
return ecCodewordsPerBloc_ * ecBlocks_.size();
}
std::vector<ECB*>& ECBlocks::getECBlocks() {

View File

@ -221,7 +221,6 @@ int Encoder::chooseMaskPattern(Ref<BitArray> bits,
minPenalty = penalty;
bestMaskPattern = maskPattern;
}
std::cout << std::string("i: ") << maskPattern << std::string(", penantly: ") << penalty << std::endl;
}
return bestMaskPattern;
}