Skip to content
Snippets Groups Projects
Commit 414dd841 authored by Yonatan's avatar Yonatan
Browse files

Added .gitignore

parent 29ac2623
Branches
No related tags found
1 merge request!1Final merge
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*
\ No newline at end of file
......@@ -5,7 +5,6 @@ import es.yonatan.tfg.boxing.Sentence;
import es.yonatan.tfg.boxing.Unit;
import es.yonatan.tfg.recognizer.TesseractRecognizer;
import es.yonatan.tfg.util.HashGrid2D;
import net.sourceforge.tess4j.TesseractException;
import net.sourceforge.tess4j.util.ImageHelper;
import javax.imageio.ImageIO;
......@@ -16,7 +15,7 @@ import java.io.IOException;
import java.util.HashSet;
public class Main {
public static void main(String[] args) throws TesseractException, IOException {
public static void main(String[] args) throws IOException {
var time = System.currentTimeMillis();
var originalImage = ImageIO.read(new File("C:/Users/Yonatan/Desktop/04.jpg"));
var image = ImageHelper.convertImageToBinary(originalImage);
......@@ -33,16 +32,6 @@ public class Main {
words.forEach(grid::insert);
var prevCount = grid.flatten().size();
var count = prevCount;
// do {
// System.out.println("MERGE!");
// prevCount = count;
// test(grid);
// count = grid.flatten().size();
// } while (prevCount != count);
merge(grid);
merge(grid);
merge(grid);
......
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment