Cloud Vision API - PDF OCR -


i tested google cloud vision api read text, if exist, in image.

until installed maven server , redis server. follow instructions in page.

https://github.com/googlecloudplatform/cloud-vision/tree/master/java/text

until able tested .jpg files, possible tiff files or pdf??

i using following command:

java -cp target/text-1.0-snapshot-jar-with-dependencies.jar     com.google.cloud.vision.samples.text.textapp ../../data/text/ 

inside text directory, have files in jpg format.

then read converted file, don't know how that, run following command

java -cp target/text-1.0-snapshot-jar-with-dependencies.jar com.google.cloud.vision.samples.text.textapp 

and message enter word or phrase search in converted files. there way see whole document transformed?

thanks!

unfortunately pdf , tiff formats not supported cloud vision.

the accepted formats : (taken the doc)

  • jpeg
  • png8
  • png24
  • gif
  • animated gif (first frame only)
  • bmp
  • webp
  • raw
  • ico

Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -