Fix some code comments

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2024-10-23 14:59:15 +02:00
parent 638868ed38
commit 688f8283c5
3 changed files with 4 additions and 4 deletions

View File

@ -493,7 +493,7 @@ Pta *FitBaselineIntoLinePolygon(Pta *bottom_pts, Pta *baseline_pts,
}
num_pts = ptaGetCount(bottom_pts);
// Create a interpolated polygon with stepsize 1
// Create an interpolated polygon with stepsize 1.
for (int index = 0; index < num_pts - 1; ++index) {
ptaGetIPt(bottom_pts, index, &x0, &y0);
ptaGetIPt(bottom_pts, index + 1, &x1, &y1);
@ -636,7 +636,7 @@ bool TessPAGERenderer::AddImageHandler(TessBaseAPI *api) {
"pagecontent.xsd\">\n"
"\t<Metadata");
// If a URL is used to recognize a image add it as <Metadata
// If a URL is used to recognize an image add it as <Metadata
// externalRef="url">
if (std::regex_search(api->GetInputName(),
std::regex("^(https?|ftp|ssh):"))) {

View File

@ -883,7 +883,7 @@ void vertical_cblob_projection( // project outlines
/**********************************************************************
* vertical_coutline_projection
*
* Compute the vertical projection of a outline from its outlines
* Compute the vertical projection of an outline from its outlines
* and add to the given STATS.
**********************************************************************/

View File

@ -125,7 +125,7 @@ static void horizontal_cblob_projection( // project outlines
/**
* horizontal_coutline_projection
*
* Compute the horizontal projection of a outline from its outlines
* Compute the horizontal projection of an outline from its outlines
* and add to the given STATS.
*/