Skip to content

Commit

Permalink
Merge branch '4.x' into coordinate
Browse files Browse the repository at this point in the history
  • Loading branch information
Ginkgo-Biloba committed Oct 17, 2024
2 parents 2ddf790 + 80f1ca2 commit 011692b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/text/src/ocr_beamsearch_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,12 @@ class OCRBeamSearchDecoderImpl CV_FINAL : public OCRBeamSearchDecoder
double lp = score_segmentation( beam[0].segmentation, out_sequence );

// fill other (dummy) output parameters
component_rects->push_back(Rect(0,0,src.cols,src.rows));
component_texts->push_back(out_sequence);
component_confidences->push_back((float)exp(lp));
if (component_rects != NULL)
component_rects->push_back(Rect(0,0,src.cols,src.rows));
if (component_texts != NULL)
component_texts->push_back(out_sequence);
if (component_confidences != NULL)
component_confidences->push_back((float)exp(lp));

return;
}
Expand Down

0 comments on commit 011692b

Please sign in to comment.