I am trying to evalute ABBYY but every time I get this exception
I have modified only a couple of lines in TestApp.java
There're several problems in your code.
First, this loop
has no delay in the body. This loop will slam into our service several times per second. Our Developer Agreement contains a clause against abuse. No delay -> abuse clause -> you're banned.
Second, the code makes absolutely no sense. Yes, I mean exactly that. This loop
asks our service to reprocess the same task over and over again and your code never cares of the processing result. That makes no sense.
The Java sample we ship illustrates all the main concepts of using our service.
answered 11 Feb '13, 11:18
Dmitry Me ♦♦
thanks for the reply. The supplied Java code does not illustrates how to Process a sample or any Image. Even the API documentation present on ABBYY's website is not enough. There is not any running simple application. That can show a simple thing: This is the sample image and this is the output. This is your custom image and this is the output.
The reason I have used do while loop in the code, I was trying to figure out the problem. What I understand is :
1) Submit an image to the ABBY's server. File filePath = new File("C:\Users\nali\Desktop\Tiff Image\testImage.PNG"); restClient.submitImage(filePath.getAbsolutePath(), null);
2) The Abbyy's server will make a task for this image, process the image and return the result. ProcessingSettings settings = new ProcessingSettings(); settings.setOutputFormat(OutputFormat.txt); Task task = restClient.processImage(filePath.getAbsolutePath(), settings);
but I am not receiving any result. The task status is "Processing" for three times "responseCode == 200" and on third turn it returns "Respond Code 450", and the message is "Invalid task state".
Could you please provide a simple sample code or any proper documentation(I have already view API documentation) ?
answered 12 Feb '13, 01:23