mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
Fix some code comments
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
638868ed38
commit
688f8283c5
@ -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):"))) {
|
||||
|
@ -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.
|
||||
**********************************************************************/
|
||||
|
||||
|
@ -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.
|
||||
*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user