Android Open Source - previewOCR Camera Interface






From Project

Back to project page previewOCR.

License

The source code is released under:

Apache License

If you think the Android project previewOCR listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.gmail.mplackowski.cameratool;
//from  w ww .  j  a  v  a  2s  . c o  m
import android.graphics.Bitmap;
import android.os.Environment;

public interface CameraInterface {
  
  public static final String OCR_TEXT = "OcrText";
  public static final String OCR_ACCURACY = "OcrAccuracy";
  public static final String DATA_PATH = Environment
      .getExternalStorageDirectory().toString() + "/PreviewOCR/";
  public static final String LANG = "eng";
  public static final int OCR_QUEUE_SIZE = 3;
  
  public static final int DEGREE_0 = 0;
  public static final int DEGREE_90 = 90;
  public static final int DEGREE_180 = 180;
  public static final int DEGREE_270 = 270;

  interface OCRListener {
    public void onTextRecognized(String text, float accuracy);
  }
  
  interface CropListener {
    public void onCropUpdate(Bitmap image);
  }
}




Java Source Code List

com.gmail.mplackowski.cameratool.CameraInterface.java
com.gmail.mplackowski.cameratool.CameraTool.java
com.gmail.mplackowski.cameratool.RectanglePicker.java
com.gmail.mplackowski.previewocr.MainActivity.java