Skip to content

Commit 0647264

Browse files
committed
tiny fixes to logging
1 parent a90ec5d commit 0647264

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/tesseract.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,9 @@ void TesseractDecoder::decode_to_errors(const std::vector<uint64_t>& detections,
457457
++num_pq_pushed;
458458

459459
if (num_pq_pushed > config.pqlimit) {
460+
if (config.verbose) {
461+
std::cout << "setting low confidence flag" << std::endl;
462+
}
460463
low_confidence_flag = true;
461464
return;
462465
}

src/visualization.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void Visualizer::write(const char* fpath) {
4545
FILE* fout = fopen(fpath, "w");
4646

4747
for (std::string& line : lines) {
48-
fprintf(fout, line.c_str());
48+
fprintf(fout, "%s", line.c_str());
4949
fputs("\n", fout);
5050
}
5151

0 commit comments

Comments
 (0)