Commit 80273566 for tesseract
commit 802735664c6c3f3c0d4a0c6d8a1ba90abe40a8e7
Author: Stefan Weil <sw@weilnetz.de>
Date: Tue Jul 21 14:24:00 2026 +0200
Fix Leptonica URLs
Signed-off-by: Stefan Weil <sw@weilnetz.de>
diff --git a/README.md b/README.md
index c6f4a35f..8225f4ae 100644
--- a/README.md
+++ b/README.md
@@ -114,8 +114,8 @@ Please report an issue only for a **bug**, not for asking questions.
**NOTE**: This software depends on other packages that may be licensed under different open source licenses.
-Tesseract uses [Leptonica library](http://leptonica.com/) which essentially
-uses a [BSD 2-clause license](http://leptonica.com/about-the-license.html).
+Tesseract uses the [Leptonica library](http://www.leptonica.org/) which essentially
+uses a [BSD 2-clause license](http://www.leptonica.org/about-the-license.html).
## Dependencies
diff --git a/src/training/degradeimage.cpp b/src/training/degradeimage.cpp
index 344ecee0..94e52d8e 100644
--- a/src/training/degradeimage.cpp
+++ b/src/training/degradeimage.cpp
@@ -96,7 +96,7 @@ Image DegradeImage(Image input, int exposure, TRand *randomizer, float *rotation
if (exposure >= 2) {
// An erosion simulates the spreading darkening of a dark copy.
// This is backwards to binary morphology,
- // see http://www.leptonica.com/grayscale-morphology.html
+ // see http://www.leptonica.org/grayscale-morphology.html
pix = input;
input = pixErodeGray(pix, 3, 3);
pix.destroy();
@@ -126,7 +126,7 @@ Image DegradeImage(Image input, int exposure, TRand *randomizer, float *rotation
// Erosion after the convolution is not as heavy as before, so it is
// good for level 1 and in addition as a level 3.
// This is backwards to binary morphology,
- // see http://www.leptonica.com/grayscale-morphology.html
+ // see http://www.leptonica.org/grayscale-morphology.html
pix = input;
input = pixErodeGray(pix, 3, 3);
pix.destroy();