Line | |
---|
1 | package org.atea.nlptools.ocr.abstractions.services;
|
---|
2 |
|
---|
3 | import java.io.File;
|
---|
4 |
|
---|
5 | import org.atea.nlptools.ocr.abstractions.objects.IOcrOptions;
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * Represents a service for performing OCR on files.
|
---|
9 | */
|
---|
10 | public interface IOcrService
|
---|
11 | {
|
---|
12 | /**
|
---|
13 | * Runs optical character recognition on a file.
|
---|
14 | * @param file The file to perform OCR on.
|
---|
15 | * @param language The language/s of the file. Separate multiple with a '+'.
|
---|
16 | * @return The recognised content of the file.
|
---|
17 | */
|
---|
18 | String run(File file, IOcrOptions options) throws Exception;
|
---|
19 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.