public abstract class

ImageProcessingView

extends FrameLayout
implements ImageReadyForDetectionListener<T>
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ com.sap.cloud.mobile.fiori.ocr.ImageProcessingView
Known Direct Subclasses

Class Overview

A base class for orchestrating FioriCamera and CameraConfigurator for providing support for showing the camera preview, receiving camera frames on separate thread, converts the image to RGB, rotates the image if required and crops the image. This class uses YuvCameraConfigurator as CameraConfigurator.

Summary

[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
ImageProcessingView(Context context)
ImageProcessingView(Context context, AttributeSet attrs)
ImageProcessingView(Context context, AttributeSet attrs, int defStyleAttr)
ImageProcessingView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
void cropImageUsing(Rect crop, Rect original)
Crop the image using given cropped rect and original rect.
FioriCamera getFioriCamera()
get the FioriCamera used
void start()
open the camera and start image processing
void stop()
stop the camera and image processing
Protected Methods
Size getImageSize()
get the size of the image of YuvCameraConfigurator's surface
void onDetachedFromWindow()
[Expand]
Inherited Methods
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource
From interface com.sap.cloud.mobile.fiori.ocr.ImageReadyForDetectionListener

Public Constructors

public ImageProcessingView (Context context)

public ImageProcessingView (Context context, AttributeSet attrs)

public ImageProcessingView (Context context, AttributeSet attrs, int defStyleAttr)

public ImageProcessingView (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Public Methods

public void cropImageUsing (Rect crop, Rect original)

Crop the image using given cropped rect and original rect.

Parameters
crop rect to be cropped
original rect of the original image.

public FioriCamera getFioriCamera ()

get the FioriCamera used

public void start ()

open the camera and start image processing

public void stop ()

stop the camera and image processing

Protected Methods

protected Size getImageSize ()

get the size of the image of YuvCameraConfigurator's surface

protected void onDetachedFromWindow ()