Authors
------------------------------------------------
Stefanos Tsaklas (s.tsaklas@di.uoa.gr) 
National Kapodistrian University of Athens.
  

Version and Release Date
------------------------

1 July 2011
	*Second release (added language selection,bulk ocring on many pdfs,grid submission)
        
 
Different adaptors:
	To submit jobs with jdl  adaptor, set TestOCRService.subType = SubmissionType.jdlAdaptor
	To submit jobs with grid adaptor, set TestOCRService.subType = SubmissionType.gridAdaptor
 
Different ocring granularity:
	To submit jobs with single ocring, set TestOCRService.isBulk = false and give as input a .pdf file 
	To submit jobs with bulk   ocring, set TestOCRService.isBulk = true  and give as input a .zip file with many pdfs zipped in one file (no language support here, default English)


Usage: 	java org.gcube.execution.ocrservice.tests.TestOCRService <ocr factory address> <gcube scope> <resource key> <resource access> <value> <language> <optional job name in >=0 words >
		
				Example 1 (pdf with http reference)
					java org.gcube.execution.ocrservice.tests.TestOCRService http://jazzman.di.uoa.gr:8080/wsrf/services/gcube/execution/ocrservice/OCRServiceFactory /d4science.research-infrastructures.eu/INSPIRE NobelAnnounce.pdf Reference http://dl.dropbox.com/u/19792897/NobelAnnounce.pdf eng OCR on NobelAnnouce 2 page document
			 
			 	Example 1a (zipped pdfs for bulk submission -language is ignored)
			 		java org.gcube.execution.ocrservice.tests.TestOCRService http://jazzman.di.uoa.gr:8080/wsrf/services/gcube/execution/ocrservice/OCRServiceFactory /d4science.research-infrastructures.eu/INSPIRE NobelAnnounce.pdf Reference http://dl.dropbox.com/u/19792897/bulkpdfs.zip eng Bulk OCR on zipped pdfs
							 	
				Example 2:  (pdf in Content Management System)
					java org.gcube.execution.ocrservice.tests.TestOCRService http://jazzman.di.uoa.gr:8080/wsrf/services/gcube/execution/ocrservice/OCRServiceFactory /d4science.research-infrastructures.eu/INSPIRE bulk.zip CMSReference cms://ab2f4d80-87b1-21e0-9fbc-f078a392f5cc/b1beaf60-87b1-11e0-9fbc-f078a392f5cc nl OCR on NobelAnnouce 2 page document
				 
				Example 3a: (pdf read from local filesystem)
					java org.gcube.execution.ocrservice.tests.TestOCRService http://jazzman.di.uoa.gr:8080/wsrf/services/gcube/execution/ocrservice/OCRServiceFactory /d4science.research-infrastructures.eu/INSPIRE NobelAnnounce.pdf InMessageString /home/stefanos/NobelAnnounce.pdf ita OCR on NobelAnnouce 2 page document  
				
				Example 3b: (pdf read from local filesystem)
					java org.gcube.execution.ocrservice.tests.TestOCRService http://jazzman.di.uoa.gr:8080/wsrf/services/gcube/execution/ocrservice/OCRServiceFactory /d4science.research-infrastructures.eu/INSPIRE NobelAnnounce.pdf InMessageBytes /home/stefanos/NobelAnnounce.pdf eng OCR on NobelAnnouce 2 page document 
			
				 
Tests can be done through the java org.gcube.execution.ocrservice.tests.TestOCRService java client

For more see 
https://gcube.wiki.gcube-system.org/gcube/index.php/OCR_Service