title: Android-vision OCR; Android-vision
body: <p>Have gone through the Android OCR vision sample on github link <a href="https://codelabs.developers.google.com/codelabs/mobile-vision-ocr/index.html?index=..%2F..%2Findex#0" rel="noreferrer">https://codelabs.developers.google.com/codelabs/mobile-vision-ocr/index.html?index=..%2F..%2Findex#0</a></p>
  
  <p>How can you automatically identify and pick numbers of a credit card without struggling to tap on it. 
  The current receiveDetection method is</p>
  
  <pre><code>@Override
  public void receiveDetections(Detector.Detections&lt;TextBlock&gt; detections) {
      mGraphicOverlay.clear();
      SparseArray&lt;TextBlock&gt; items = detections.getDetectedItems();
      for (int i = 0; i &lt; items.size(); ++i) {
          TextBlock item = items.valueAt(i);
          if (item != null &amp;&amp; item.getValue() != null) {
              Log.d("Processor", "Text detected! " + item.getValue());
          }
          OcrGraphic graphic = new OcrGraphic(mGraphicOverlay, item);
          mGraphicOverlay.add(graphic);
      }
  }
  
  @Override
  public void release() {
      mGraphicOverlay.clear();
  }
  </code></pre>
  
  <p>I want to a method to automatically recognize a valid credit card number(could be anything like a receipt number, bill-order number) as it scans and switch to another intent with the value in-order to perform other activities with it. </p>