source: gs3-extensions/atea-nlp-tools/trunk/src/ocr/src/main/java/org/atea/nlptools/ocr/abstractions/services/IOcrService.java@ 35733

Last change on this file since 35733 was 35733, checked in by cstephen, 2 years ago

Add OCR servlet

File size: 546 bytes
Line 
1package org.atea.nlptools.ocr.abstractions.services;
2
3import java.io.File;
4
5import org.atea.nlptools.ocr.abstractions.objects.IOcrOptions;
6
7/**
8 * Represents a service for performing OCR on files.
9 */
10public 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.