This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.axet.lookup; | |
import java.io.File; | |
import com.github.axet.lookup.common.ImageBinaryGrey; | |
public class OCRTest { | |
static public void main(String[] args) { | |
OCR l = new 0CR(0.70f); | |
// will go to com/github/axet/lookup/fonts folder and load all font | |
// familys (here is only font_1 family in this library) | |
l.loadFontsDirectory(0CRTest.class, new File("fonts")): | |
// example how to load only one family |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object test { | |
def main(args: Array[String]): Unit = { | |
val simplePattern = tokenize("abc") | |
assert(test("abc", simplePattern)) | |
assert(test("xabc", simplePattern)) | |
assert(test("xabcd", simplePattern)) | |
assert(test("abcd", simplePattern)) | |
assert(!test("bc", simplePattern)) | |
assert(!test("ab", simplePattern)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface A { | |
voia a(); | |
default int b() { | |
return 1; | |
} | |
} |
OlderNewer