0

I new the Android code side and I have a project.

I want text detection from ımage using google vision api, but I cannot.

I search the internet but I can't find enough information and I know I should use Json(AsynTack).

Just want this not face detection,logo detection.

How can I do this, can you suggest anything?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Emre Akbaki
  • 266
  • 1
  • 3
  • 14

3 Answers3

2

The Vision API consists of a single endpoint (https://vision.googleapis.com/v1/images) that supports one HTTP request method (annotate). Here is a sample JSON request:

POST https://vision.googleapis.com/v1/images:annotate

{
  "requests":[
    {
      "image":{
        "content":"change_this_to_the_path_of_your_image"
      },
      "features":[
        {
          "type":"LABEL_DETECTION",
          "maxResults":1
        }
      ]
    }
  ]
}
Kenworth
  • 593
  • 2
  • 9
1

Here is the fork of Google sample code, working mainly for text detection.

https://github.com/JackFan-Z/cloud-vision/tree/fda5e83447f9e69cf8a18112e0fced1da928f3d8

Just use Android Studio to open the project in the folder

cloud-vision/android/CloudVision/

Jack Fan
  • 2,143
  • 3
  • 18
  • 25
0

I think this is what you really need:

//Google code labs for mobile vision https://codelabs.developers.google.com/codelabs/mobile-vision-ocr/#0

Do let me know if this info helps.

Nishant Dubey
  • 2,802
  • 1
  • 13
  • 18
  • Yeah ı already see that even ı use but this app use Real-Time.I want this; for example ı send image to Cloud Api and response is a text.This like https://cloud.google.com/vision/docs/requests-and-responses but ı dont know so much json jobs – Emre Akbaki Oct 08 '16 at 18:08