Open AndroidDeveloperLB opened 7 years ago
BTW, the OCR feature isn't perfect at all. I tried it on one of your own images: https://cloud.google.com/images/products/artwork/insight-text.png Found from here: https://cloud.google.com/vision/
The result: +Page 1 +Block 1 +Paragraph 1 3 C A R S +Block 2 +Paragraph 1 1 o F L O W E R S +Block 3 +Paragraph 1 5 R A B B I T S 2 M O U N T A I N S +Block 4 +Paragraph 1 B I R D S
So instead of "0" it became "o" and the "7" is gone and 2 lines became one paragraph (rabbits and mountains)
@AndroidDeveloperLB to answer your questions:
Crop hints returns coordinates to detect the dominant object or face in an image. You can find code samples in a few languages for it here.
Here are some Android samples for the NL and Speech APIs. There's also Java samples for each of the APIs.
Each of the APIs has a free tier (Vision is 1000 requests / month). Details can be found on the pricing page for each API (vision here).
What about for Android? Isn't there a sample for it?
Both samples cannot be built. The "Speech" sample has this error:
Error:All flavors must now belong to a named flavor dimension. The flavor 'prod' is not assigned to a flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html
And the "NL" (what's NL exactly?) sample has this error:
D:\android\Android studio Projects\android-docs-samples\nl\Language\app\src\main\java\com\google\cloud\android\language\AccessTokenLoader.java Error:(70, 81) error: cannot find symbol variable raw Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
About this part in the lecture: https://youtu.be/w1xNTLH1zlA?t=462
I have a few questions: