سؤال

I know that it is possible to manually convert(OCR) jpeg images stored on Google Drive to text (when we open the jpeg images using Google Docs). What I wish to know is whether the same is possible via scripting.

The reason for this is that it would help me convert a bulk of images with text (around 400) into text files at one go.

Any help is appreciated.

هل كانت مفيدة؟

المحلول

I presume that your problem is now resolved one way or the other, but for the reference of others who may find this question, I believe that the Google DocumentsList API will do what you need.

نصائح أخرى

This other answer is not correct. Blob.getdataasstring will NOT work. It will produce garbage text (it simply converts the binary blob to string data NOT ocr. Its not possible to do this with apps script. In drive its not possible either even thou you say its possible in your summary. Drive will Index the ocr text but you cant get to that text.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top