When i'm trying to connect Abbyy Cloud OCR SDK to send the image to be processed by the API, i get the following error: "Temporary failure in name resolution".
http://GoldenReader:...MyPassword...@cloud.ocrsdk.com
application_id = CGI.escape("GoldenReader")
password = CGI.escape("...MyPassword...")
language = "PortugueseBrazilian"
base_url = "http://#{application_id}:#{password}@cloud.ocrsdk.com"
begin
response = RestClient.post("#{base_url}/processImage?language=#{language}&exportFormat=txt", :upload => {
:file => File.new(image, 'rb')
})
rescue RestClient::ExceptionWithResponse => e
# Show processImage errors
output_response_error(e.response)
raise
else
# Get task id from response xml to check task status later
xml_data = REXML::Document.new(response)
task_id = xml_data.elements["response/task"].attributes["id"]
end
コメント
1件のコメント
Could the issue be reproduced with our code sample http://ocrsdk.com/documentation/code-samples/ ?
サインインしてコメントを残してください。