开发者

Google OCR Api with OAuth 2

开发者 https://www.devze.com 2023-04-08 20:35 出处:网络
I try to upload image to google docs using code I setup access_token and access_token_secret $uri = \'https://docs.google.com/feeds/documents/private/full?ocr=true\';

I try to upload image to google docs using code

I setup access_token and access_token_secret

$uri = 'https://docs.google.com/feeds/documents/private/full?ocr=true'; $newDocumentEntry = $client->uploadFile($f开发者_StackOverflow社区ileLocation, $fileName, $mimeType, $uri); but i receive exception

"The field ocr is not supported in this request version"

without "?ocr=true" upload is correct

is there any way to upload image with ocr ?


OCR only works with version 3 of the API. Have you tried POSTing to .../full?v=3&ocr=true?

http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#Versioning

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号