public void surfaceDestroyed(SurfaceHolder holder) {
    hasSurface = false;
  }
Initializes the camera and starts the handler to begin previewing.
OCRTest/src/main/java/edu/sfsu/cs/orange/ocr/CaptureActivity.java