Skip to content
Snippets Groups Projects
Commit 1cf9cdfe authored by Yonatan's avatar Yonatan
Browse files

Minor changes

parent 08a63918
No related branches found
No related tags found
1 merge request!1Final merge
......@@ -40,6 +40,8 @@ public class PostProcessor implements IImagePostProcessor {
public @Nullable BufferedImage processImage(@NotNull BufferedImage image, @NotNull Collection<? extends UnitGroup> groups) {
var img = bufferedImageToMat(image);
if (img == null) return null;
var textMask = createTextMask(img, groups);
Photo.inpaint(img, textMask, img, 1, Photo.INPAINT_NS);
......
......@@ -49,6 +49,7 @@ public final class TesseractRecognizer implements IUnitRecognizer<Unit> {
return units;
}
@SuppressWarnings("unused")
public static final class Builder {
private File dataPath;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment