Skip to content
Snippets Groups Projects
Commit d527f755 authored by yonrodr's avatar yonrodr
Browse files

Merge branch 'develop' into 'main'

Develop

See merge request !2
parents 5a99e735 0a51c896
No related branches found
No related tags found
1 merge request!2Develop
......@@ -69,7 +69,7 @@ public class PostProcessor implements IImagePostProcessor {
var g2d = ((Graphics2D) finalImage.getGraphics());
g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
g2d.setFont(new Font("Arial", Font.PLAIN, 18));
g2d.setFont(new Font("Times New Roman", Font.PLAIN, 22));
for (UnitGroup group : groups) {
g2d.setColor(Color.black);
......
......@@ -69,7 +69,7 @@ public final class TesseractRecognizer implements IUnitRecognizer<Unit> {
public Builder withDefaults() {
return this.setDataPath(LoadLibs.extractTessResources("tessdata")).
setSupportedLanguages(Set.of("latin")).
setSupportedLanguages(Set.of("latin", "es", "en")).
setLanguage("latin").
setCharWhitelist(null).
setCharBlacklist(null);
......
......@@ -84,7 +84,7 @@ public class TranslateRoute implements Route {
//-------------
var postprocessor = new PostProcessor();
var postProcessingResult = postprocessor.processImage(image, translationResult.units(), options.debug);
var postProcessingResult = postprocessor.processImage(decodeBase64(base64Img), translationResult.units(), options.debug);
if (postProcessingResult == null) return errorResponse("Error post-processing image");
//-------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment