diff --git a/BindingSource/AnylineXamarinSDK.Droid/Assets/tools/Generated.xml b/BindingSource/AnylineXamarinSDK.Droid/Assets/tools/Generated.xml
index cb0eaf6e5..7e4efe4e2 100644
--- a/BindingSource/AnylineXamarinSDK.Droid/Assets/tools/Generated.xml
+++ b/BindingSource/AnylineXamarinSDK.Droid/Assets/tools/Generated.xml
@@ -68,8 +68,18 @@
+
public class AnylineController
+extends java.lang.Object
+Constructor and Description | +
---|
AnylineController(android.content.Context context,
+ AnylineListener anylineListener,
+ java.lang.String moduleIdentifier,
+ java.lang.String id)
+Create a new AnylineController instance.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+cancel()
+
+ Cancel the image processing.
+ |
+
static java.lang.String |
+getLicenseExpirationDate() |
+
boolean |
+isDebug() |
+
boolean |
+isRunning() |
+
void |
+removeArgumentExceptionListener() |
+
void |
+reportIncludeValues(java.lang.String jsonString)
+
+ Adds the information in the json-string to the reporting model.
+ |
+
void |
+reportTriggerScanningCanceled()
+Notifies that the scanning process has been canceled from the user
+ This triggers a scanning-canceled-report
+ |
+
void |
+setArgumentExceptionListener(WorkerRunnableExceptionListener workerRunnableExceptionListener) |
+
void |
+setAssetJsonPaths(java.lang.String... assetJsonPaths)
+
+ Set all the relevant json file names (relative path within the assets).
+ |
+
void |
+setCancelOnResult(boolean isCancelOnResult)
+Set this to false if the thread should continue after a result was found (which is the default behaviour)
+ |
+
void |
+setCmdFile(java.lang.String cmdFileName)
+
+ Load the script file with the given name.
+ |
+
void |
+setCmdFile(java.lang.String cmdFileName,
+ java.lang.String pathInAssets)
+
+ Load the script file with the given name from the given path within the assets.
+ |
+
void |
+setCropRect(android.graphics.RectF cutoutRect) |
+
void |
+setDebug(boolean isDebug)
+Enable/Disables debug output.
+ |
+
void |
+setDelayScanTime(double delayScanTime,
+ double startTime) |
+
void |
+setId(java.lang.String id) |
+
void |
+setImageProvider(ImageProvider imageProvider)
+Set the image provider.
+ |
+
void |
+setIsFullFrameScanning(boolean b) |
+
void |
+setProductName(java.lang.String productName) |
+
void |
+setReportingEnabled(boolean isReportingEnabled)
+Enable the reporting of results, including the photo of a scanned item.
+ |
+
void |
+setScript(java.lang.String script)
+
+ Load the given script string (the actual script text, not the file name).
+ |
+
void |
+setScript(java.lang.String script,
+ java.lang.String bundlePath)
+
+ Load the given script string (the actual script text, not the file name).
+ |
+
void |
+setScript(java.lang.String scriptName,
+ java.lang.String script,
+ java.lang.String bundlePath)
+
+ Load the given script string (the actual script text, not the file name).
+ |
+
void |
+setStartVariable(java.lang.String key,
+ java.lang.Object value)
+Set the start variable with the given identifier to the given value.
+ |
+
void |
+setTrainerReportedValues(java.lang.String trainerReportedValues) |
+
void |
+setWorkerThreadUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler handler)
+Set a handler to catch exceptions from the background thread.
+ |
+
void |
+start()
+Starts the worker thread.
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public AnylineController(android.content.Context context, + AnylineListener anylineListener, + java.lang.String moduleIdentifier, + java.lang.String id)+
context
- the context (usually the activity)moduleIdentifier
- the module identifieranylineListener
- your callbackjava.lang.IllegalArgumentException
- if key or listener are null or emptypublic static java.lang.String getLicenseExpirationDate()+
public void setId(java.lang.String id)+
public void setScript(java.lang.String script)+
+ Load the given script string (the actual script text, not the file name). + Only one script can be active at a time (latest loaded). +
+ If a worker thread is already running, this will cancel it and create a new one. + Start has to be called after this in order to start the underlying worker. +
script
- the script to loadpublic void setScript(java.lang.String script, + java.lang.String bundlePath)+
+ Load the given script string (the actual script text, not the file name). + Only one script can be active at a time (latest loaded). +
+ If a worker thread is already running, this will cancel it and create a new one. + Start has to be called after this in order to start the underlying worker. +
script
- the script to loadbundlePath
- a relative path where additional resources, like the tessdata folder, residepublic void setScript(java.lang.String scriptName, + java.lang.String script, + java.lang.String bundlePath)+
+ Load the given script string (the actual script text, not the file name). + Only one script can be active at a time (latest loaded). +
+ If a worker thread is already running, this will cancel it and create a new one. + Start has to be called after this in order to start the underlying worker. +
scriptName
- the name of a script if loaded from a filescript
- the script to loadbundlePath
- a relative path where additional resources, like the tessdata folder, residepublic void setCmdFile(java.lang.String cmdFileName)+
+ Load the script file with the given name. + Only one script can be active at a time (latest loaded). + Make sure you auto generating the anyline_assets.json in your build.gradle when using this. +
+ If a worker thread is already running, this will cancel it and create a new one. + Start has to be called after this in order to start the underlying worker. +
cmdFileName
- the file name of the alc or ale config filepublic void setCmdFile(java.lang.String cmdFileName, + java.lang.String pathInAssets)+
+ Load the script file with the given name from the given path within the assets. + Only one script can be active at a time (latest loaded). + Make sure you auto generating the anyline_assets.json in your build.gradle when using this. +
+ If a worker thread is already running, this will cancel it and create a new one. + Start has to be called after this in order to start the underlying worker. +
cmdFileName
- the file name of the alc or ale config filepathInAssets
- the relative path within the assets
+ (all related assets must be specified in the config relative to this path)public void setStartVariable(java.lang.String key, + java.lang.Object value)+
key
- the name of the start variable to setvalue
- the value (only types Integer, Float, Double, Mat, AlImage, Rect, Scalar are supported here)public void setCancelOnResult(boolean isCancelOnResult)+
isCancelOnResult
- false if the thread should continue after a result was foundpublic void setDelayScanTime(double delayScanTime, + double startTime)+
delayScanTime
- public void setAssetJsonPaths(java.lang.String... assetJsonPaths)+
+ Set all the relevant json file names (relative path within the assets). +
+ Usually not required (because default is "anyline_assets.json"). +
+ This will only effect the current worker thread + (because assets can't change during runtime, so no need to check them all the time). +
assetJsonPaths
- the file names of the jsons containing the list of assetspublic void start()+
public void setProductName(java.lang.String productName)+
public void cancel()+
+ Cancel the image processing. This should always be called in onPause()
.
+ Calling start()
after this is possible (a new worker will be created and started).
+ Nothing happens here if start()
has not been called before.
+
public void setDebug(boolean isDebug)+
isDebug
- true if debug output should be enabled, false otherwisepublic void setTrainerReportedValues(java.lang.String trainerReportedValues)+
public boolean isDebug()+
public boolean isRunning()+
public void setImageProvider(ImageProvider imageProvider)+
imageProvider
- the image provider to receive the input images from.public void setReportingEnabled(boolean isReportingEnabled)+
+ This setting can be overruled by your license. If your license has reporting set to off, setting this flag + will have no effect. This is also the case if your license has reporting set to on. +
isReportingEnabled
- true to enable reporting (default for community edition)public void reportIncludeValues(java.lang.String jsonString)+
+ Adds the information in the json-string to the reporting model. + (Only if the identifier exists in a defined list of things expected to be reported.) +
+ Note: This must be called before or after every start (values will not be remembered for multiple runs) +
jsonString
- a Json as string, containing information that should be added to the
+ reporting modelpublic void reportTriggerScanningCanceled()+
public void setWorkerThreadUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler handler)+
handler
- the handler to be called on background exceptionspublic void setCropRect(android.graphics.RectF cutoutRect)+
public void setIsFullFrameScanning(boolean b)+
public void setArgumentExceptionListener(WorkerRunnableExceptionListener workerRunnableExceptionListener)+
public void removeArgumentExceptionListener()+
public interface AnylineDebugListener
+Modifier and Type | +Field and Description | +
---|---|
static java.lang.Class<java.lang.Double> |
+BRIGHTNESS_VARIABLE_CLASS
+The class for a reported brightness value
+ The name will be
+BRIGHTNESS_VARIABLE_NAME |
+
static java.lang.String |
+BRIGHTNESS_VARIABLE_NAME
+The name for a reported brightness value
+ The value will be of type
+BRIGHTNESS_VARIABLE_CLASS |
+
static java.lang.Class<Vector_Contour> |
+CONTOURS_VARIABLE_CLASS
+The class for a reported contours value
+ The name will be
+CONTOURS_VARIABLE_NAME |
+
static java.lang.String |
+CONTOURS_VARIABLE_NAME
+The name for a reported contour value
+ The value will be of type
+CONTOURS_VARIABLE_CLASS |
+
static java.lang.Class<java.lang.Float> |
+DEVICE_ACCELERATION_VARIABLE_CLASS
+The class for a reported device acceleration value
+ The name will be
+DEVICE_ACCELERATION_VARIABLE_NAME |
+
static java.lang.String |
+DEVICE_ACCELERATION_VARIABLE_NAME
+The name for a reported device acceleration value
+ The value will be of type
+DEVICE_ACCELERATION_VARIABLE_CLASS |
+
static java.lang.Class<java.lang.Boolean> |
+DEVICE_SHAKE_WARNING_VARIABLE_CLASS
+The class for a reported shake warning value.
+ |
+
static java.lang.String |
+DEVICE_SHAKE_WARNING_VARIABLE_NAME
+The name for a reported shake warning.
+ |
+
static java.lang.Class<java.util.List> |
+OUTLINE_VARIABLE_CLASS
+The class for a reported outline value
+ The name will be
+OUTLINE_VARIABLE_NAME |
+
static java.lang.String |
+OUTLINE_VARIABLE_NAME
+The name for a reported text outline value
+ The value will be of type
+OUTLINE_VARIABLE_CLASS |
+
static java.lang.Class<Polygon> |
+POLYGON_VARIABLE_CLASS
+The class for a reported polygon value
+ The name will be
+POLYGON_VARIABLE_NAME |
+
static java.lang.String |
+POLYGON_VARIABLE_NAME
+The name for a reported polygon value
+ The value will be of type
+POLYGON_VARIABLE_CLASS |
+
static java.lang.Class<java.lang.Integer> |
+SHARPNESS_VARIABLE_CLASS
+The class for a reported sharpness value
+ The name will be
+SHARPNESS_VARIABLE_NAME |
+
static java.lang.String |
+SHARPNESS_VARIABLE_NAME
+The name for a reported sharpness value
+ The value will be of type
+SHARPNESS_VARIABLE_CLASS |
+
static java.lang.Class<Square> |
+SQUARE_VARIABLE_CLASS
+The class for a reported square value
+ The name will be
+SQUARE_VARIABLE_NAME |
+
static java.lang.String |
+SQUARE_VARIABLE_NAME
+The name for a reported square value
+ The value will be of type
+SQUARE_VARIABLE_CLASS |
+
static java.lang.Class<AnylineImage> |
+THRESHOLD_IMAGE_VARIABLE_CLASS
+The class for a reported thresholded image value
+ The name will be
+THRESHOLD_IMAGE_VARIABLE_NAME |
+
static java.lang.String |
+THRESHOLD_IMAGE_VARIABLE_NAME
+The name for a reported thresholded image value
+ The value will be of type
+THRESHOLD_IMAGE_VARIABLE_CLASS |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+onDebug(java.lang.String name,
+ java.lang.Object value)
+Callback for reporting raw debug values from the scan run.
+ |
+
void |
+onRunSkipped(RunFailure runFailure)
+Callback informing about a run on a single image being skipped, with the reason being provided as a
+
+RunFailure . |
+
static final java.lang.String BRIGHTNESS_VARIABLE_NAME+
BRIGHTNESS_VARIABLE_CLASS
static final java.lang.String OUTLINE_VARIABLE_NAME+
OUTLINE_VARIABLE_CLASS
static final java.lang.String DEVICE_ACCELERATION_VARIABLE_NAME+
DEVICE_ACCELERATION_VARIABLE_CLASS
static final java.lang.String THRESHOLD_IMAGE_VARIABLE_NAME+
THRESHOLD_IMAGE_VARIABLE_CLASS
static final java.lang.String CONTOURS_VARIABLE_NAME+
CONTOURS_VARIABLE_CLASS
static final java.lang.String SQUARE_VARIABLE_NAME+
SQUARE_VARIABLE_CLASS
static final java.lang.String POLYGON_VARIABLE_NAME+
POLYGON_VARIABLE_CLASS
static final java.lang.String SHARPNESS_VARIABLE_NAME+
SHARPNESS_VARIABLE_CLASS
static final java.lang.String DEVICE_SHAKE_WARNING_VARIABLE_NAME+
+ The value will be of type DEVICE_SHAKE_WARNING_VARIABLE_CLASS
static final java.lang.Class<java.lang.Double> BRIGHTNESS_VARIABLE_CLASS+
BRIGHTNESS_VARIABLE_NAME
+ +
The reported value can be cast with BRIGHTNESS_VARIABLE_CLASS.cast(Object value)
static final java.lang.Class<java.util.List> OUTLINE_VARIABLE_CLASS+
OUTLINE_VARIABLE_NAME
+ +
The reported value can be cast with OUTLINE_VARIABLE_CLASS.cast(Object value)
static final java.lang.Class<java.lang.Float> DEVICE_ACCELERATION_VARIABLE_CLASS+
DEVICE_ACCELERATION_VARIABLE_NAME
+ +
The reported value can be cast with DEVICE_ACCELERATION_VARIABLE_CLASS.cast(Object value)
static final java.lang.Class<AnylineImage> THRESHOLD_IMAGE_VARIABLE_CLASS+
THRESHOLD_IMAGE_VARIABLE_NAME
+ +
The reported value can be cast with THRESHOLD_IMAGE_VARIABLE_CLASS.cast(Object value)
static final java.lang.Class<Vector_Contour> CONTOURS_VARIABLE_CLASS+
CONTOURS_VARIABLE_NAME
+ +
The reported value can be cast with CONTOURS_VARIABLE_CLASS.cast(Object value)
static final java.lang.Class<Square> SQUARE_VARIABLE_CLASS+
SQUARE_VARIABLE_NAME
+ +
The reported value can be cast with SQUARE_VARIABLE_CLASS.cast(Object value)
static final java.lang.Class<Polygon> POLYGON_VARIABLE_CLASS+
POLYGON_VARIABLE_NAME
+ +
The reported value can be cast with POLYGON_VARIABLE_CLASS.cast(Object value)
static final java.lang.Class<java.lang.Integer> SHARPNESS_VARIABLE_CLASS+
SHARPNESS_VARIABLE_NAME
+ +
The reported value can be cast with SHARPNESS_VARIABLE_CLASS.cast(Object value)
static final java.lang.Class<java.lang.Boolean> DEVICE_SHAKE_WARNING_VARIABLE_CLASS+
+ The name will be DEVICE_SHAKE_WARNING_VARIABLE_NAME
+
+
The reported value can be cast with SHAKE_WARNING_VARIABLE_CLASS.cast(Object value)
void onDebug(java.lang.String name, + java.lang.Object value)+
+
Any reported variable will have a unique name and the corresponding value.
+To check if a reported debug value is of correct name and type, one can check against the constants defined + in this interface. +
+ E.g. +
+ AnylineDebugListener.BRIGHTNESS_VARIABLE_NAME.equals(name) && (AnylineDebugListener
+ .BRIGHTNESS_VARIABLE_CLASS.equals(value.getClass()) || AnylineDebugListener.BRIGHTNESS_VARIABLE_CLASS
+ .isAssignableFrom(value.getClass()))
+
name
- the name of the reported variablevalue
- the actual value of the variablevoid onRunSkipped(RunFailure runFailure)+
RunFailure
.
+ A run can be skipped because of various reasons. For example if the light condition is not good enough, or + the user does not point the camera at the information to be scanned. +
+This does not mean that the scanning process is stopped. The scanning will continue with the next + frame from the camera. This callback is solely for debug purposes.
runFailure
- the reason for skipping the runpublic interface AnylineListener
+Modifier and Type | +Method and Description | +
---|---|
void |
+onAbortRun(RunFailure runFailure)
+Is called when the processing is aborted before reaching return.
+ |
+
void |
+onFinishedWithOutput(java.lang.Object resultObject)
+Is called when the processing has successfully finished.
+ |
+
void |
+onReportsVariable(java.lang.String name,
+ java.lang.Object var)
+Reports a specified intermediate result.
+ |
+
void onReportsVariable(java.lang.String name, + java.lang.Object var)+
name
- the variable name that is reportedvar
- the variablevoid onFinishedWithOutput(java.lang.Object resultObject)+
resultObject
- the resultvoid onAbortRun(RunFailure runFailure)+
runFailure
- the reason for the failed runpublic interface ImageProvider
+AnylineController
.Modifier and Type | +Method and Description | +
---|---|
AnylineImage |
+getNewImage()
+Return a new image that is ready to be analyzed.
+ |
+
boolean |
+hasNewImage()
+Return true only if a new image is ready to be analyzed.
+ |
+
boolean hasNewImage()+
AnylineImage getNewImage()+
hasNewImage()
returns true
+ and this should never return null if hasNewImage()
returned true.
+ public class SimpleImageProvider +extends java.lang.Object +implements ImageProvider+
Constructor and Description | +
---|
SimpleImageProvider() |
+
Modifier and Type | +Method and Description | +
---|---|
AnylineImage |
+getNewImage()
+Return a new image that is ready to be analyzed.
+ |
+
boolean |
+hasNewImage()
+Return true only if a new image is ready to be analyzed.
+ |
+
void |
+setNewImage(AnylineImage image)
+Adds an image that should be processed.
+ |
+
void |
+setNewImage(android.graphics.Bitmap bmp)
+A shortcut for setNewImage(new AlImage(bmp));
+ |
+
void |
+setNewImage(Mat mat)
+A shortcut for setNewImage(new AlImage(mat));
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public boolean hasNewImage()+
ImageProvider
hasNewImage
in interface ImageProvider
public AnylineImage getNewImage()+
ImageProvider
ImageProvider.hasNewImage()
returns true
+ and this should never return null if ImageProvider.hasNewImage()
returned true.
+ getNewImage
in interface ImageProvider
public void setNewImage(AnylineImage image)+
image
- the currentImage to processpublic void setNewImage(android.graphics.Bitmap bmp)+
bmp
- the bitmap image to setpublic void setNewImage(Mat mat)+
mat
- the Mat image to setpublic abstract class AbstractZoomHandler
+extends java.lang.Object
+implements android.view.View.OnTouchListener
+Constructor and Description | +
---|
AbstractZoomHandler(android.view.View touchableView,
+ int currentZoomLevel,
+ CameraController cameraController) |
+
Modifier and Type | +Method and Description | +
---|---|
int |
+getZoomLevel() |
+
abstract boolean |
+isPrepared() |
+
abstract void |
+notifyZoomChanged(int zoom) |
+
boolean |
+onTouch(android.view.View v,
+ android.view.MotionEvent event) |
+
void |
+setMaxZoom(float maxZoom) |
+
void |
+setZoomHardness(float zoomHardness) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public AbstractZoomHandler(android.view.View touchableView, + int currentZoomLevel, + CameraController cameraController)+
public void setMaxZoom(float maxZoom)+
public void setZoomHardness(float zoomHardness)+
public boolean onTouch(android.view.View v, + android.view.MotionEvent event)+
onTouch
in interface android.view.View.OnTouchListener
public int getZoomLevel()+
public abstract void notifyZoomChanged(int zoom)+
public abstract boolean isPrepared()+
public static interface ActiveArrayZoomHandler.IZoomHandlerListener
+Modifier and Type | +Method and Description | +
---|---|
void |
+onZoomChanged(android.graphics.Rect zoom) |
+
public class ActiveArrayZoomHandler +extends AbstractZoomHandler+
Modifier and Type | +Class and Description | +
---|---|
static interface |
+ActiveArrayZoomHandler.IZoomHandlerListener |
+
Modifier and Type | +Method and Description | +
---|---|
boolean |
+isPrepared() |
+
void |
+notifyZoomChanged(int zoom) |
+
void |
+setActiveArraySize(android.graphics.Rect activeArraySize) |
+
void |
+setZoomHandlerListener(ActiveArrayZoomHandler.IZoomHandlerListener zoomHandlerListener) |
+
getZoomLevel, onTouch, setMaxZoom, setZoomHardness
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void setZoomHandlerListener(ActiveArrayZoomHandler.IZoomHandlerListener zoomHandlerListener)+
public void setActiveArraySize(android.graphics.Rect activeArraySize)+
public void notifyZoomChanged(int zoom)+
notifyZoomChanged
in class AbstractZoomHandler
public boolean isPrepared()+
isPrepared
in class AbstractZoomHandler
public class ActiveArrayZoomHandlerBuilder
+extends java.lang.Object
+Modifier and Type | +Method and Description | +
---|---|
ActiveArrayZoomHandler |
+build() |
+
static ActiveArrayZoomHandlerBuilder |
+forView(android.view.View touchableView,
+ int currentZoomLevel,
+ CameraController cameraController) |
+
ActiveArrayZoomHandlerBuilder |
+setActiveArraySize(android.graphics.Rect activeArraySize) |
+
ActiveArrayZoomHandlerBuilder |
+setMaxZoom(float maxZoom) |
+
ActiveArrayZoomHandlerBuilder |
+setZoomListener(ActiveArrayZoomHandler.IZoomHandlerListener listener) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static ActiveArrayZoomHandlerBuilder forView(android.view.View touchableView, + int currentZoomLevel, + CameraController cameraController)+
public ActiveArrayZoomHandlerBuilder setZoomListener(ActiveArrayZoomHandler.IZoomHandlerListener listener)+
public ActiveArrayZoomHandlerBuilder setMaxZoom(float maxZoom)+
public ActiveArrayZoomHandlerBuilder setActiveArraySize(android.graphics.Rect activeArraySize)+
public ActiveArrayZoomHandler build()+
public class CameraConfig
+extends java.lang.Object
++ Class to specify desired settings and to hold the actual used settings for the camera. + (API independent) +
Constructor and Description | +
---|
CameraConfig()
+New instance with a default configuration for the camera.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
int |
+getAutoFocusInterval() |
+
java.util.EnumSet<CameraFeatures.LensFacing> |
+getFallbackLensFacings() |
+
double |
+getFocalLength()
+Get the current focal length
+ |
+
CameraFeatures.FocusMode |
+getFocusMode() |
+
int |
+getFrameHeight() |
+
CameraSize |
+getFrameSize() |
+
float |
+getFrameToViewScale() |
+
int |
+getFrameWidth() |
+
CameraSize |
+getHighResolutionImageSize() |
+
CameraFeatures.LensFacing |
+getLensFacing() |
+
double |
+getMaxFocalLength()
+Get the naximum focal length
+ |
+
double |
+getMaxZoomRatio()
+Get boolean if zoom gesture is enabled
+ |
+
CameraSize |
+getPictureSize()
+Deprecated.
+
+use
+getHighResolutionImageSize() instead |
+
CameraSize |
+getPreviewSize() |
+
CameraFeatures.SceneMode |
+getSceneMode() |
+
double |
+getZoomRatio()
+Get the current zoom ratio
+ |
+
boolean |
+isAutoExposureRegionEnabled() |
+
boolean |
+isFocusModeAuto() |
+
boolean |
+isFocusOnTouchEnabled() |
+
boolean |
+isFocusRegionEnabled() |
+
boolean |
+isOpticalStabilizationEnabled() |
+
boolean |
+isUpdateRegionsOnAutoFocusEnabled() |
+
boolean |
+isVideoStabilizationEnabled() |
+
boolean |
+isZoomGestureEnabled()
+Get boolean if zoom gesture is enabled
+ |
+
void |
+setAutoExposureRegionEnabled(boolean autoExposureRegionEnabled)
+Set to true to use the region where the cutout is for auto exposure calculation.
+ |
+
void |
+setAutoFocusInterval(int autoFocusInterval)
+Set the interval in millis the auto focus should be called in (or <= 0 if it should not be used).
+ |
+
void |
+setFallbackLensFacings(CameraFeatures.LensFacing... fallbackLensFacings)
+Set the fallback camera facings which are used if the default camera facing is not available on the device
+ |
+
void |
+setFallbackLensFacings(java.util.EnumSet<CameraFeatures.LensFacing> fallbackLensFacings)
+Set the fallback camera facings which are used if the default camera facing is not available on the device
+ |
+
void |
+setFocalLength(double focalLength)
+Set a focal length to the camera
+ |
+
void |
+setFocusMode(CameraFeatures.FocusMode focusMode)
+Set the focus mode
+ |
+
void |
+setFocusOnTouchEnabled(boolean focusOnTouchEnabled)
+Set to true if focus on touch should be enabled (only relevant if focus mode is auto or macro)
+ |
+
void |
+setFocusRegionEnabled(boolean focusRegionEnabled)
+Set to true to use the region where the cutout is for focusing.
+ |
+
void |
+setHighResolutionPictureSize(CameraSize highResImageSize)
+Set the size for high resolution images that should be used by the camera
+ |
+
void |
+setLensFacing(CameraFeatures.LensFacing lensFacing)
+Set the default camera used for scanning
+ |
+
void |
+setMaxFocalLength(double maxFocalLength)
+Set a custom maximum focal Length
+ |
+
void |
+setMaxZoomRatio(double maxZoomRatio)
+Set a custom maximum zoom Ratio
+ |
+
void |
+setOpticalStabilizationEnabled(boolean opticalStabilizationEnabled)
+
+ Set if optical stabilization should be used.
+ |
+
void |
+setPictureSize(CameraSize pictureSize)
+Deprecated.
+
+use
+setHighResolutionPictureSize(CameraSize) instead |
+
void |
+setPreviewSize(CameraSize previewSize)
+Set the preview size that should be used by the camera
+ |
+
void |
+setSceneMode(CameraFeatures.SceneMode sceneMode)
+
+ Set the scene mode that should be used.
+ |
+
void |
+setUpdateRegionsOnAutoFocusEnabled(boolean updateRegionsOnAutoFocusEnabled)
+Set to true if regions should be changed slightly before every auto focus call.
+ |
+
void |
+setVideoStabilizationEnabled(boolean videoStabilizationEnabled)
+
+ Set if software video stabilization should be used.
+ |
+
void |
+setZoomGestureEnabled(boolean zoomGestureEnabled)
+Enable the Gesture for pinch to zoom
+ |
+
void |
+setZoomRatio(double zoomRatio)
+Set a zoom Ratio to the camera
+ |
+
java.lang.String |
+toString() |
+
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public CameraConfig()+
CameraController.getPreferredCameraConfig()
instead.)public CameraSize getFrameSize()+
public int getFrameWidth()+
public int getFrameHeight()+
public float getFrameToViewScale()+
public CameraSize getPreviewSize()+
public void setPreviewSize(@Nullable + CameraSize previewSize)+
previewSize
- the desired preview size@Nullable + @Deprecated +public CameraSize getPictureSize()+
getHighResolutionImageSize()
instead@Deprecated +public void setPictureSize(@Nullable + CameraSize pictureSize)+
setHighResolutionPictureSize(CameraSize)
insteadpictureSize
- the desired picture size@Nullable +public CameraSize getHighResolutionImageSize()+
public void setHighResolutionPictureSize(@Nullable + CameraSize highResImageSize)+
highResImageSize
- the desired picture size@Nullable +public CameraFeatures.FocusMode getFocusMode()+
public void setFocusMode(@Nullable + CameraFeatures.FocusMode focusMode)+
focusMode
- the focus modepublic boolean isFocusModeAuto()+
@NonNull +public CameraFeatures.SceneMode getSceneMode()+
public void setSceneMode(@NonNull + CameraFeatures.SceneMode sceneMode)+
+ Set the scene mode that should be used. +
+ WARNING: Scene mode behavior is device dependent + and it may overrule all the other focus and auto exposure settings. + Usage NOT recommended. +
sceneMode
- the scene mode to use (if available)public boolean isFocusRegionEnabled()+
public void setFocusRegionEnabled(boolean focusRegionEnabled)+
focusRegionEnabled
- true to enablepublic boolean isAutoExposureRegionEnabled()+
public void setAutoExposureRegionEnabled(boolean autoExposureRegionEnabled)+
autoExposureRegionEnabled
- true to enableautoExposureRegionEnabled
- true to enablepublic boolean isFocusOnTouchEnabled()+
public void setFocusOnTouchEnabled(boolean focusOnTouchEnabled)+
focusOnTouchEnabled
- true to enablepublic boolean isUpdateRegionsOnAutoFocusEnabled()+
public void setUpdateRegionsOnAutoFocusEnabled(boolean updateRegionsOnAutoFocusEnabled)+
isFocusModeAuto()
and isFocusRegionEnabled()
.
+ (Some devices require slight change in the region or they don't work).updateRegionsOnAutoFocusEnabled
- true to enablepublic boolean isVideoStabilizationEnabled()+
public void setVideoStabilizationEnabled(boolean videoStabilizationEnabled)+
+ Set if software video stabilization should be used. +
+ Note: this will be ignored if optical stabilization is also enabled and available + (they are mutually exclusive and optical should be better) +
videoStabilizationEnabled
- true if software video stabilization should be usedpublic boolean isOpticalStabilizationEnabled()+
public void setOpticalStabilizationEnabled(boolean opticalStabilizationEnabled)+
+ Set if optical stabilization should be used. +
+ Note: this will only have an effect for devices where Camera API 2 can be used + (no differentiation of software/hardware stabilization available in API 1) +
opticalStabilizationEnabled
- true if optical stabilization should be usedpublic int getAutoFocusInterval()+
public void setAutoFocusInterval(int autoFocusInterval)+
autoFocusInterval
- the interval in millisecondspublic void setZoomGestureEnabled(boolean zoomGestureEnabled)+
public void setFocalLength(double focalLength)+
public void setMaxFocalLength(double maxFocalLength)+
public void setZoomRatio(double zoomRatio)+
public void setMaxZoomRatio(double maxZoomRatio)+
public boolean isZoomGestureEnabled()+
public double getFocalLength()+
public double getZoomRatio()+
public double getMaxFocalLength()+
public double getMaxZoomRatio()+
public CameraFeatures.LensFacing getLensFacing()+
public void setLensFacing(CameraFeatures.LensFacing lensFacing)+
lensFacing
- the CameraFacingpublic java.util.EnumSet<CameraFeatures.LensFacing> getFallbackLensFacings()+
public void setFallbackLensFacings(CameraFeatures.LensFacing... fallbackLensFacings)+
fallbackLensFacings
- the fallback options for CameraFacingpublic void setFallbackLensFacings(java.util.EnumSet<CameraFeatures.LensFacing> fallbackLensFacings)+
fallbackLensFacings
- the fallback options for CameraFacingpublic java.lang.String toString()+
toString
in class java.lang.Object
public static interface CameraController.CameraControllerListener
+Modifier and Type | +Method and Description | +
---|---|
void |
+onCameraOpened() |
+
public static enum CameraController.CameraOrientation +extends java.lang.Enum<CameraController.CameraOrientation>+
Enum Constant and Description | +
---|
CLOCKWISE_180_DEGREES |
+
CLOCKWISE_270_DEGREES |
+
CLOCKWISE_90_DEGREES |
+
NONE |
+
Modifier and Type | +Method and Description | +
---|---|
static CameraController.CameraOrientation |
+fromDegrees(int degrees) |
+
int |
+getValue() |
+
static CameraController.CameraOrientation |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static CameraController.CameraOrientation[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final CameraController.CameraOrientation NONE+
public static final CameraController.CameraOrientation CLOCKWISE_90_DEGREES+
public static final CameraController.CameraOrientation CLOCKWISE_180_DEGREES+
public static final CameraController.CameraOrientation CLOCKWISE_270_DEGREES+
public static CameraController.CameraOrientation[] values()+
+for (CameraController.CameraOrientation c : CameraController.CameraOrientation.values()) + System.out.println(c); +
public static CameraController.CameraOrientation valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()+
public static CameraController.CameraOrientation fromDegrees(int degrees)+
public abstract class CameraController
+extends java.lang.Object
+Modifier and Type | +Class and Description | +
---|---|
static interface |
+CameraController.CameraControllerListener |
+
static class |
+CameraController.CameraOrientation
+Helper enum to be able to get the back camera orientation
+ |
+
Constructor and Description | +
---|
CameraController() |
+
Modifier and Type | +Method and Description | +
---|---|
abstract void |
+callAutoFocus()
+Call auto focus.
+ |
+
CameraConfig |
+getCameraConfig()
+
+ Get the actually used settings (this is only available after the camera has been opened).
+ |
+
CameraFeatures |
+getCameraFeatures() |
+
abstract double |
+getCurrentFocalLength()
+Get the current focal length
+ |
+
double |
+getFocalLength()
+Get custom zoom level
+ |
+
int |
+getFrameHeight() |
+
float |
+getFrameToViewScale() |
+
int |
+getFrameWidth() |
+
abstract AnylineImage |
+getLastImageWithFullSize()
+
+ Get the latest image in full size.
+ |
+
abstract ImageReceiver |
+getLastImageWithFullSizeReceiver()
+
+ Get the a receiver for the latest image in full size.
+ |
+
abstract AnylineYuvImage |
+getNewImage() |
+
CameraConfig |
+getPreferredCameraConfig() |
+
android.view.View |
+getPreviewView() |
+
abstract double |
+getZoomRatio()
+Get the current zoom ratio
+ |
+
abstract boolean |
+hasNewImage() |
+
abstract void |
+openCameraInBackground()
+Open the camera in a background thread, if surface is already created and camera is not opened already.
+ |
+
abstract boolean |
+openCameraInBackgroundSuccessfully() |
+
abstract void |
+releaseCamera()
+
+ Release the camera.
+ |
+
abstract void |
+releaseCameraAndPreview()
+
+ Release the camera for the landscape to landscape mode.
+ |
+
abstract void |
+releaseCameraInBackground()
+
+ Release the camera in a background thread.
+ |
+
void |
+removeAllCameraOpenListeners() |
+
void |
+removeCameraOpenListener(CameraOpenListener listener) |
+
void |
+resetAutoFocusTimer()
+Reset the auto focus timer, if a focus config is set.
+ |
+
void |
+setCameraControllerListener(CameraController.CameraControllerListener cameraControllerListener) |
+
void |
+setCameraOpenListener(CameraOpenListener listener)
+Set the listener that is called when the camera is opened or a camera related error occurred.
+ |
+
abstract void |
+setCameraOrientation(CameraController.CameraOrientation cameraOrientation)
+Allows you to set the camera orientation for the BACK camera.
+ |
+
abstract void |
+setFlashOn(boolean isOn)
+Turn the torch flash on or off.
+ |
+
abstract void |
+setFocalLength(double focalLength)
+Set a zoom level through focal length
+ |
+
abstract void |
+setFocusRegionToCutout(android.content.Context context,
+ android.graphics.RectF cutOutRect,
+ float surfaceWidth,
+ float surfaceHeight)
+Updates the focus and metering region to be the same as the given cutout.
+ |
+
void |
+setHighResolutionImageListener(HighResolutionImageListener highResolutionImageListener)
+Sets an optional listener which is called with the final AnylineImage, once a picture was taken with the
+ camera via the
+takeHighResolutionImage() method. |
+
void |
+setImageListener(ImageListener imageListener)
+Set the listener that should be called when a new image is available
+ |
+
abstract void |
+setMaxFocalLength(double maxFocalLength)
+Set a maximum focal length
+ |
+
abstract void |
+setMaxZoomRatio(double maxZoomRatio)
+Set a maximum zoom ratio
+ |
+
void |
+setPreferredCameraConfig(CameraConfig preferredCameraConfig)
+Set the preferred camera settings.
+ |
+
abstract void |
+setupZoomHandler(android.view.View view)
+Set up the zoom for the camera
+ |
+
void |
+setZoomGestureEnabled(boolean isZoomEnabled)
+Enable zoom for the camera
+ Needs to be called before setupZoomHandler()
+ |
+
abstract void |
+setZoomRatio(double zoomLevelRatio)
+Set a zoom level through zoom Ratio
+ |
+
abstract void |
+takeHighResolutionImage()
+Takes a picture from the camera and calls
+HighResolutionImageListener.onImageTaken(AnylineImage) after the
+ image is taken successfully. |
+
abstract void |
+takeHighResolutionImage(int top,
+ int left,
+ int right,
+ int bottom,
+ int viewWidth,
+ int viewHeight) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@NonNull +public CameraConfig getPreferredCameraConfig()+
public void setPreferredCameraConfig(@NonNull + CameraConfig preferredCameraConfig)+
preferredCameraConfig
- the preferred settings@Nullable +public CameraConfig getCameraConfig()+
+ Get the actually used settings (this is only available after the camera has been opened). +
+
+ This is for information purposes only (to see what settings are actually used).
+ To change the settings use the getPreferredCameraConfig()
instead.
+
public abstract boolean hasNewImage()+
@Nullable +public abstract AnylineYuvImage getNewImage()+
@Nullable +public abstract AnylineImage getLastImageWithFullSize()+
+ Get the latest image in full size.
+ This does not check or manipulate hasNewImage()
.
+
+ Prefer getLastImageWithFullSizeReceiver()
, if you are not sure if the image is actually needed,
+ to save resources.
+
@Nullable +public abstract ImageReceiver getLastImageWithFullSizeReceiver()+
+ Get the a receiver for the latest image in full size.
+ This does not check or manipulate hasNewImage()
.
+
+ The receiver does not copy the image if no getter is called. +
public abstract void takeHighResolutionImage()+
HighResolutionImageListener.onImageTaken(AnylineImage)
after the
+ image is taken successfully.
+ If no HighResolutionImageListener
is set, the method returns.
+ Additionally, a picture is only taken if the safeToTakePicture flag is set to true, which means the camera is
+ open and preview is started.public abstract void takeHighResolutionImage(int top, + int left, + int right, + int bottom, + int viewWidth, + int viewHeight)+
public void setHighResolutionImageListener(@Nullable + HighResolutionImageListener highResolutionImageListener)+
takeHighResolutionImage()
method.highResolutionImageListener
- the listener to call if a picture was taken (or an error occured)public void setCameraOpenListener(@Nullable + CameraOpenListener listener)+
listener
- the listenerpublic void removeCameraOpenListener(CameraOpenListener listener)+
public void removeAllCameraOpenListeners()+
public void setImageListener(ImageListener imageListener)+
imageListener
- the listener that should be notified if an image is availablepublic abstract void setFlashOn(boolean isOn)+
isOn
- true to turn the flash on false to turn it offpublic void setZoomGestureEnabled(boolean isZoomEnabled)+
public abstract void setupZoomHandler(android.view.View view)+
public abstract void setFocalLength(double focalLength)+
public double getFocalLength()+
public abstract void setZoomRatio(double zoomLevelRatio)+
zoomLevelRatio
- public abstract void setMaxFocalLength(double maxFocalLength)+
maxFocalLength
- public abstract void setMaxZoomRatio(double maxZoomRatio)+
maxZoomRatio
- public abstract double getZoomRatio()+
public abstract double getCurrentFocalLength()+
public abstract void callAutoFocus()+
java.lang.IllegalStateException
- if no FocusConfig has been setpublic void resetAutoFocusTimer()+
public abstract void releaseCamera()+
+ Release the camera. +
+ ALWAYS call this or releaseCameraInBackground()
in onPause of your activity!!
+
public abstract void releaseCameraAndPreview() + throws java.lang.Exception+
+ Release the camera for the landscape to landscape mode. +
+
java.lang.Exception
public abstract void openCameraInBackground()+
setCameraOpenListener(CameraOpenListener)
.public abstract boolean openCameraInBackgroundSuccessfully()+
public abstract void releaseCameraInBackground()+
+ Release the camera in a background thread. + Camera releasing may take a bit, so it may interfere with your exit animation. Use this to do it in the + background. +
+ ALWAYS call this or releaseCamera()
in onPause of your activity!!
+
public android.view.View getPreviewView()+
public int getFrameWidth()+
public int getFrameHeight()+
public float getFrameToViewScale()+
@Nullable +public CameraFeatures getCameraFeatures()+
public abstract void setCameraOrientation(CameraController.CameraOrientation cameraOrientation)+
cameraOrientation
- represents orientation typepublic void setCameraControllerListener(CameraController.CameraControllerListener cameraControllerListener)+
public abstract void setFocusRegionToCutout(@NonNull + android.content.Context context, + @NonNull + android.graphics.RectF cutOutRect, + float surfaceWidth, + float surfaceHeight)+
cutOutRect
- the cutout rect relative to the surfacesurfaceWidth
- the width of the surfacesurfaceHeight
- the height of the surfacecontext
- the contextpublic class CameraController1 +extends CameraController+
CameraController.CameraControllerListener, CameraController.CameraOrientation
Modifier and Type | +Method and Description | +
---|---|
void |
+callAutoFocus()
+Call auto focus.
+ |
+
android.hardware.Camera |
+getCamera() |
+
CameraController.CameraOrientation |
+getCameraOrientation() |
+
double |
+getCurrentFocalLength()
+Get the current focal length
+ |
+
AnylineImage |
+getHighResolutionImage() |
+
AnylineImage |
+getLastImageWithFullSize()
+
+ Get the latest image in full size.
+ |
+
ImageReceiver |
+getLastImageWithFullSizeReceiver()
+
+ Get the a receiver for the latest image in full size.
+ |
+
int |
+getMaxCameraExposure() |
+
int |
+getMaxZoomLevel() |
+
int |
+getMinCameraExposure() |
+
AnylineYuvImage |
+getNewImage() |
+
double |
+getZoomRatio()
+Get the current zoom ratio
+ |
+
boolean |
+hasNewImage() |
+
void |
+openCameraInBackground()
+Open the camera in a background thread, if surface is already created and camera is not opened already.
+ |
+
boolean |
+openCameraInBackgroundSuccessfully() |
+
void |
+releaseCamera()
+
+ Release the camera.
+ |
+
void |
+releaseCameraAndPreview()
+
+ Release the camera for the landscape to landscape mode.
+ |
+
void |
+releaseCameraInBackground()
+
+ Release the camera in a background thread.
+ |
+
void |
+resetPreviewCallback()
+Reset the preview callback.
++ NOTE: This should only be called manually in very special circumstances + (e.x.: after the surface is used as a preview for recording a video ). |
+
void |
+setCameraOrientation(CameraController.CameraOrientation cameraOrientation)
+Allows you to set the camera orientation for the BACK camera.
+ |
+
void |
+setCustomZoomLevel(int zoomLevel) |
+
void |
+setDefaultCameraExposure()
+set default camera exposure
+ |
+
void |
+setExposureForBlackOnBlack() |
+
void |
+setFlashOn(boolean isOn)
+Turn the torch flash on or off.
+ |
+
void |
+setFocalLength(double focalLength)
+Set a zoom level through focal length
+ |
+
void |
+setFocusRegionToCutout(android.content.Context context,
+ android.graphics.RectF cutOutRect,
+ float surfaceWidth,
+ float surfaceHeight)
+Updates the focus and metering region to be the same as the given cutout.
+ |
+
void |
+setMaxFocalLength(double maxFocalLength)
+Set a maximum focal length
+ |
+
void |
+setMaxZoomRatio(double maxZoomRatio)
+Set a maximum zoom ratio
+ |
+
void |
+setMinCameraExposure()
+set the minimum camera exposure
+ |
+
void |
+setupZoomHandler(android.view.View view)
+Set up the zoom for the camera
+ |
+
void |
+setZoomRatio(double zoomLevelRatio)
+Set a zoom level through zoom Ratio
+ |
+
void |
+takeHighResolutionImage()
+Takes a picture from the camera and calls
+HighResolutionImageListener.onImageTaken(AnylineImage) after the
+ image is taken successfully. |
+
void |
+takeHighResolutionImage(int top,
+ int left,
+ int right,
+ int bottom,
+ int scanViewWidth,
+ int scanViewHeight) |
+
getCameraConfig, getCameraFeatures, getFocalLength, getFrameHeight, getFrameToViewScale, getFrameWidth, getPreferredCameraConfig, getPreviewView, removeAllCameraOpenListeners, removeCameraOpenListener, resetAutoFocusTimer, setCameraControllerListener, setCameraOpenListener, setHighResolutionImageListener, setImageListener, setPreferredCameraConfig, setZoomGestureEnabled
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void releaseCameraAndPreview() + throws java.lang.Exception+
CameraController
+ Release the camera for the landscape to landscape mode. +
+
releaseCameraAndPreview
in class CameraController
java.lang.Exception
public boolean hasNewImage()+
hasNewImage
in class CameraController
public AnylineYuvImage getNewImage()+
getNewImage
in class CameraController
public AnylineImage getLastImageWithFullSize()+
CameraController
+ Get the latest image in full size.
+ This does not check or manipulate CameraController.hasNewImage()
.
+
+ Prefer CameraController.getLastImageWithFullSizeReceiver()
, if you are not sure if the image is actually needed,
+ to save resources.
+
getLastImageWithFullSize
in class CameraController
@Nullable +public ImageReceiver getLastImageWithFullSizeReceiver()+
CameraController
+ Get the a receiver for the latest image in full size.
+ This does not check or manipulate CameraController.hasNewImage()
.
+
+ The receiver does not copy the image if no getter is called. +
getLastImageWithFullSizeReceiver
in class CameraController
public AnylineImage getHighResolutionImage()+
public void takeHighResolutionImage()+
CameraController
HighResolutionImageListener.onImageTaken(AnylineImage)
after the
+ image is taken successfully.
+ If no HighResolutionImageListener
is set, the method returns.
+ Additionally, a picture is only taken if the safeToTakePicture flag is set to true, which means the camera is
+ open and preview is started.takeHighResolutionImage
in class CameraController
public void takeHighResolutionImage(int top, + int left, + int right, + int bottom, + int scanViewWidth, + int scanViewHeight)+
takeHighResolutionImage
in class CameraController
public void setFlashOn(boolean isOn)+
CameraController
setFlashOn
in class CameraController
isOn
- true to turn the flash on false to turn it offpublic void setupZoomHandler(android.view.View view)+
CameraController
setupZoomHandler
in class CameraController
public void setCustomZoomLevel(int zoomLevel)+
public void setMaxZoomRatio(double maxZoomRatio)+
CameraController
setMaxZoomRatio
in class CameraController
public void setMaxFocalLength(double maxFocalLength)+
CameraController
setMaxFocalLength
in class CameraController
public void setFocalLength(double focalLength)+
CameraController
setFocalLength
in class CameraController
public void setZoomRatio(double zoomLevelRatio)+
CameraController
setZoomRatio
in class CameraController
public void setMinCameraExposure()+
public void setExposureForBlackOnBlack()+
public void setDefaultCameraExposure()+
public int getMinCameraExposure()+
public int getMaxCameraExposure()+
public double getZoomRatio()+
CameraController
getZoomRatio
in class CameraController
public double getCurrentFocalLength()+
CameraController
getCurrentFocalLength
in class CameraController
public int getMaxZoomLevel()+
public void callAutoFocus()+
CameraController
callAutoFocus
in class CameraController
public void openCameraInBackground()+
CameraController
CameraController.setCameraOpenListener(CameraOpenListener)
.openCameraInBackground
in class CameraController
public boolean openCameraInBackgroundSuccessfully()+
openCameraInBackgroundSuccessfully
in class CameraController
public void releaseCameraInBackground()+
CameraController
+ Release the camera in a background thread. + Camera releasing may take a bit, so it may interfere with your exit animation. Use this to do it in the + background. +
+ ALWAYS call this or CameraController.releaseCamera()
in onPause of your activity!!
+
releaseCameraInBackground
in class CameraController
public void setCameraOrientation(CameraController.CameraOrientation cameraOrientation)+
CameraController
setCameraOrientation
in class CameraController
cameraOrientation
- represents orientation typepublic CameraController.CameraOrientation getCameraOrientation()+
public void releaseCamera()+
CameraController
+ Release the camera. +
+ ALWAYS call this or CameraController.releaseCameraInBackground()
in onPause of your activity!!
+
releaseCamera
in class CameraController
public android.hardware.Camera getCamera()+
public void resetPreviewCallback()+
public void setFocusRegionToCutout(@NonNull + android.content.Context context, + @NonNull + android.graphics.RectF cutOutRect, + float surfaceWidth, + float surfaceHeight)+
CameraController
setFocusRegionToCutout
in class CameraController
context
- the contextcutOutRect
- the cutout rect relative to the surfacesurfaceWidth
- the width of the surfacesurfaceHeight
- the height of the surfacepublic static enum CameraController2.State +extends java.lang.Enum<CameraController2.State>+
Enum Constant and Description | +
---|
PICTURE_TAKEN
+Camera state: Picture was taken.
+ |
+
PREVIEW
+Camera state: Showing camera preview.
+ |
+
WAITING_LOCK
+Camera state: Waiting for the focus to be locked.
+ |
+
WAITING_NON_PRECAPTURE
+Camera state: Waiting for the exposure state to be something other than precapture.
+ |
+
WAITING_PRECAPTURE
+Camera state: Waiting for the exposure to be precapture state.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static CameraController2.State |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static CameraController2.State[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final CameraController2.State PREVIEW+
public static final CameraController2.State WAITING_LOCK+
public static final CameraController2.State WAITING_PRECAPTURE+
public static final CameraController2.State WAITING_NON_PRECAPTURE+
public static final CameraController2.State PICTURE_TAKEN+
public static CameraController2.State[] values()+
+for (CameraController2.State c : CameraController2.State.values()) + System.out.println(c); +
public static CameraController2.State valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic class CameraController2 +extends CameraController+
Modifier and Type | +Class and Description | +
---|---|
static class |
+CameraController2.State |
+
CameraController.CameraControllerListener, CameraController.CameraOrientation
Modifier and Type | +Method and Description | +
---|---|
void |
+callAutoFocus()
+Call auto focus.
+ |
+
CameraController.CameraOrientation |
+getCameraOrientation() |
+
double |
+getCurrentFocalLength()
+Get the current focal length
+ |
+
double |
+getFocalLength()
+Get custom zoom level
+ |
+
AnylineImage |
+getLastImageWithFullSize()
+
+ Get the latest image in full size.
+ |
+
ImageReceiver |
+getLastImageWithFullSizeReceiver()
+
+ Get the a receiver for the latest image in full size.
+ |
+
AnylineYuvImage |
+getNewImage() |
+
double |
+getZoomRatio()
+Get the current zoom ratio
+ |
+
boolean |
+hasNewImage() |
+
void |
+openCameraInBackground()
+Open the camera in a background thread, if surface is already created and camera is not opened already.
+ |
+
boolean |
+openCameraInBackgroundSuccessfully() |
+
void |
+openCameraReportError() |
+
void |
+releaseCamera()
+
+ Release the camera.
+ |
+
void |
+releaseCameraAndPreview()
+
+ Release the camera for the landscape to landscape mode.
+ |
+
void |
+releaseCameraInBackground()
+
+ Release the camera in a background thread.
+ |
+
void |
+setCameraOrientation(CameraController.CameraOrientation cameraOrientation)
+Allows you to set the camera orientation for the BACK camera.
+ |
+
void |
+setCustomZoomLevel(double zoomLevel) |
+
void |
+setFlashOn(boolean isOn)
+Set the flash (torch) on or off for the preview
+ |
+
void |
+setFocalLength(double focalLength)
+Set a zoom level through focal length
+ |
+
void |
+setFocusRegionToCutout(android.content.Context context,
+ android.graphics.RectF cutOutRect,
+ float surfaceWidth,
+ float surfaceHeight)
+Updates the focus and metering region to be the same as the given cutout.
+ |
+
void |
+setMaxFocalLength(double maxFocalLength)
+Set a maximum focal length
+ |
+
void |
+setMaxZoomRatio(double maxZoomRatio)
+Set a maximum zoom ratio
+ |
+
void |
+setupZoomHandler(android.view.View view)
+Set up the zoom for the camera
+ |
+
void |
+setZoomRatio(double zoomLevelRatio)
+Set a zoom level through zoom Ratio
+ |
+
void |
+takeHighResolutionImage()
+Takes a picture from the camera and calls
+HighResolutionImageListener.onImageTaken(AnylineImage) after the
+ image is taken successfully. |
+
void |
+takeHighResolutionImage(int top,
+ int left,
+ int right,
+ int bottom,
+ int viewWidth,
+ int viewHeight) |
+
getCameraConfig, getCameraFeatures, getFrameHeight, getFrameToViewScale, getFrameWidth, getPreferredCameraConfig, getPreviewView, removeAllCameraOpenListeners, removeCameraOpenListener, resetAutoFocusTimer, setCameraControllerListener, setCameraOpenListener, setHighResolutionImageListener, setImageListener, setPreferredCameraConfig, setZoomGestureEnabled
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public boolean hasNewImage()+
hasNewImage
in class CameraController
public AnylineYuvImage getNewImage()+
getNewImage
in class CameraController
public AnylineImage getLastImageWithFullSize()+
CameraController
+ Get the latest image in full size.
+ This does not check or manipulate CameraController.hasNewImage()
.
+
+ Prefer CameraController.getLastImageWithFullSizeReceiver()
, if you are not sure if the image is actually needed,
+ to save resources.
+
getLastImageWithFullSize
in class CameraController
@Nullable +public ImageReceiver getLastImageWithFullSizeReceiver()+
CameraController
+ Get the a receiver for the latest image in full size.
+ This does not check or manipulate CameraController.hasNewImage()
.
+
+ The receiver does not copy the image if no getter is called. +
getLastImageWithFullSizeReceiver
in class CameraController
public void takeHighResolutionImage()+
CameraController
HighResolutionImageListener.onImageTaken(AnylineImage)
after the
+ image is taken successfully.
+ If no HighResolutionImageListener
is set, the method returns.
+ Additionally, a picture is only taken if the safeToTakePicture flag is set to true, which means the camera is
+ open and preview is started.takeHighResolutionImage
in class CameraController
public void takeHighResolutionImage(int top, + int left, + int right, + int bottom, + int viewWidth, + int viewHeight)+
takeHighResolutionImage
in class CameraController
public void callAutoFocus()+
CameraController
callAutoFocus
in class CameraController
public void openCameraReportError()+
public void openCameraInBackground()+
CameraController
CameraController.setCameraOpenListener(CameraOpenListener)
.openCameraInBackground
in class CameraController
public boolean openCameraInBackgroundSuccessfully()+
openCameraInBackgroundSuccessfully
in class CameraController
public void releaseCameraInBackground()+
CameraController
+ Release the camera in a background thread. + Camera releasing may take a bit, so it may interfere with your exit animation. Use this to do it in the + background. +
+ ALWAYS call this or CameraController.releaseCamera()
in onPause of your activity!!
+
releaseCameraInBackground
in class CameraController
public void setCameraOrientation(CameraController.CameraOrientation cameraOrientation)+
CameraController
setCameraOrientation
in class CameraController
cameraOrientation
- represents orientation typepublic CameraController.CameraOrientation getCameraOrientation()+
public void releaseCamera()+
CameraController
+ Release the camera. +
+ ALWAYS call this or CameraController.releaseCameraInBackground()
in onPause of your activity!!
+
releaseCamera
in class CameraController
public void releaseCameraAndPreview() + throws java.lang.Exception+
CameraController
+ Release the camera for the landscape to landscape mode. +
+
releaseCameraAndPreview
in class CameraController
java.lang.Exception
public void setFlashOn(boolean isOn)+
setFlashOn
in class CameraController
isOn
- true to switch on, false to switch offpublic void setupZoomHandler(android.view.View view)+
CameraController
setupZoomHandler
in class CameraController
public void setCustomZoomLevel(double zoomLevel)+
public void setFocalLength(double focalLength)+
CameraController
setFocalLength
in class CameraController
public double getFocalLength()+
CameraController
getFocalLength
in class CameraController
public void setZoomRatio(double zoomLevelRatio)+
CameraController
setZoomRatio
in class CameraController
public void setMaxFocalLength(double maxFocalLength)+
CameraController
setMaxFocalLength
in class CameraController
public void setMaxZoomRatio(double maxZoomRatio)+
CameraController
setMaxZoomRatio
in class CameraController
public double getZoomRatio()+
CameraController
getZoomRatio
in class CameraController
public double getCurrentFocalLength()+
CameraController
getCurrentFocalLength
in class CameraController
public void setFocusRegionToCutout(@NonNull + android.content.Context context, + @NonNull + android.graphics.RectF cutOutRect, + float surfaceWidth, + float surfaceHeight)+
CameraController
setFocusRegionToCutout
in class CameraController
context
- the contextcutOutRect
- the cutout rect relative to the surfacesurfaceWidth
- the width of the surfacesurfaceHeight
- the height of the surfacepublic static enum CameraFeatures.FocusMode +extends java.lang.Enum<CameraFeatures.FocusMode>+
Enum Constant and Description | +
---|
AUTO |
+
CONTINUOUS_PICTURE |
+
CONTINUOUS_VIDEO |
+
EDOF |
+
FIXED |
+
INFINITY |
+
MACRO |
+
OFF |
+
Modifier and Type | +Method and Description | +
---|---|
static CameraFeatures.FocusMode |
+fromCamera1(java.lang.String mode) |
+
static CameraFeatures.FocusMode |
+fromCamera2(int mode) |
+
java.lang.String |
+toCamera1() |
+
int |
+toCamera2() |
+
java.lang.String |
+toString() |
+
static CameraFeatures.FocusMode |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static CameraFeatures.FocusMode[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final CameraFeatures.FocusMode AUTO+
public static final CameraFeatures.FocusMode MACRO+
public static final CameraFeatures.FocusMode CONTINUOUS_PICTURE+
public static final CameraFeatures.FocusMode CONTINUOUS_VIDEO+
public static final CameraFeatures.FocusMode EDOF+
public static final CameraFeatures.FocusMode FIXED+
public static final CameraFeatures.FocusMode INFINITY+
public static final CameraFeatures.FocusMode OFF+
public static CameraFeatures.FocusMode[] values()+
+for (CameraFeatures.FocusMode c : CameraFeatures.FocusMode.values()) + System.out.println(c); +
public static CameraFeatures.FocusMode valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CameraFeatures.FocusMode fromCamera1(java.lang.String mode)+
mode
- the camera api 1 focus modepublic static CameraFeatures.FocusMode fromCamera2(int mode)+
mode
- the camera api 2 focus modepublic java.lang.String toString()+
toString
in class java.lang.Enum<CameraFeatures.FocusMode>
public java.lang.String toCamera1()+
public int toCamera2()+
public static class CameraFeatures.FpsRange
+extends java.lang.Object
+Constructor and Description | +
---|
FpsRange(int lower,
+ int upper)
+Create a new range
+ |
+
Modifier and Type | +Method and Description | +
---|---|
int |
+getLower() |
+
static CameraFeatures.FpsRange[] |
+getRangesFromCamera1(java.util.List<int[]> cam1Ranges) |
+
static CameraFeatures.FpsRange[] |
+getRangesFromCamera2(android.util.Range<java.lang.Integer>[] cam2Ranges) |
+
int |
+getUpper() |
+
android.util.Range<java.lang.Integer> |
+toCamera2() |
+
java.lang.String |
+toString()
+Return the range as a string representation
+"[lower, upper]" . |
+
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public FpsRange(int lower, + int upper)+
lower
- the lower bound in millisecondsupper
- the upper bound in millisecondspublic static CameraFeatures.FpsRange[] getRangesFromCamera1(@NonNull + java.util.List<int[]> cam1Ranges)+
cam1Ranges
- camera 1 style list of ranges to convertpublic static CameraFeatures.FpsRange[] getRangesFromCamera2(@NonNull + android.util.Range<java.lang.Integer>[] cam2Ranges)+
cam2Ranges
- camera 2 style list of ranges to convertpublic int getLower()+
public int getUpper()+
public java.lang.String toString()+
"[lower, upper]"
.toString
in class java.lang.Object
public android.util.Range<java.lang.Integer> toCamera2()+
public static enum CameraFeatures.LensFacing +extends java.lang.Enum<CameraFeatures.LensFacing>+
Enum Constant and Description | +
---|
BACK |
+
EXTERNAL |
+
FRONT |
+
UNDEFINED |
+
Modifier and Type | +Method and Description | +
---|---|
static CameraFeatures.LensFacing |
+fromBitFlag(int cameraFacingBit) |
+
static java.util.EnumSet<CameraFeatures.LensFacing> |
+fromBitFlags(int fallbackCameraBits)
+Returns an EnumSet consisting of all LensFacings whos bits set in fallbackCameraBits.
++ E.g. |
+
static CameraFeatures.LensFacing |
+fromCamera1(int camera1Facing) |
+
static CameraFeatures.LensFacing |
+fromCamera2(java.lang.Integer camera2Facing) |
+
static CameraFeatures.LensFacing |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static CameraFeatures.LensFacing[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final CameraFeatures.LensFacing UNDEFINED+
public static final CameraFeatures.LensFacing BACK+
public static final CameraFeatures.LensFacing FRONT+
public static final CameraFeatures.LensFacing EXTERNAL+
public static CameraFeatures.LensFacing[] values()+
+for (CameraFeatures.LensFacing c : CameraFeatures.LensFacing.values()) + System.out.println(c); +
public static CameraFeatures.LensFacing valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CameraFeatures.LensFacing fromBitFlag(int cameraFacingBit)+
public static CameraFeatures.LensFacing fromCamera1(int camera1Facing)+
camera1Facing
- the camera 1 facing constantpublic static CameraFeatures.LensFacing fromCamera2(java.lang.Integer camera2Facing)+
camera2Facing
- the camera 2 facing constantpublic static java.util.EnumSet<CameraFeatures.LensFacing> fromBitFlags(int fallbackCameraBits)+
fallbackCameraBits
- public static enum CameraFeatures.OutputFormat +extends java.lang.Enum<CameraFeatures.OutputFormat>+
Enum Constant and Description | +
---|
DEPTH_POINT_CLOUD |
+
DEPTH16 |
+
FLEX_RGB_888 |
+
FLEX_RGBA_8888 |
+
JPEG |
+
NV16 |
+
NV21 |
+
PRIVATE |
+
RAW_SENSOR |
+
RAW10 |
+
RAW12 |
+
RGB_565 |
+
UNKNOWN |
+
YUV_420_888 |
+
YUV_422_888 |
+
YUV_444_888 |
+
YUY2 |
+
YV12 |
+
Modifier and Type | +Method and Description | +
---|---|
static CameraFeatures.OutputFormat |
+fromImageFormat(int format) |
+
int |
+toImageFormat() |
+
java.lang.String |
+toString() |
+
static CameraFeatures.OutputFormat |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static CameraFeatures.OutputFormat[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final CameraFeatures.OutputFormat DEPTH16+
public static final CameraFeatures.OutputFormat DEPTH_POINT_CLOUD+
public static final CameraFeatures.OutputFormat FLEX_RGB_888+
public static final CameraFeatures.OutputFormat FLEX_RGBA_8888+
public static final CameraFeatures.OutputFormat JPEG+
public static final CameraFeatures.OutputFormat NV16+
public static final CameraFeatures.OutputFormat NV21+
public static final CameraFeatures.OutputFormat PRIVATE+
public static final CameraFeatures.OutputFormat RAW10+
public static final CameraFeatures.OutputFormat RAW12+
public static final CameraFeatures.OutputFormat RAW_SENSOR+
public static final CameraFeatures.OutputFormat RGB_565+
public static final CameraFeatures.OutputFormat UNKNOWN+
public static final CameraFeatures.OutputFormat YUV_420_888+
public static final CameraFeatures.OutputFormat YUV_422_888+
public static final CameraFeatures.OutputFormat YUV_444_888+
public static final CameraFeatures.OutputFormat YUY2+
public static final CameraFeatures.OutputFormat YV12+
public static CameraFeatures.OutputFormat[] values()+
+for (CameraFeatures.OutputFormat c : CameraFeatures.OutputFormat.values()) + System.out.println(c); +
public static CameraFeatures.OutputFormat valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CameraFeatures.OutputFormat fromImageFormat(int format)+
format
- the int constant of the image formatImageFormat
)public java.lang.String toString()+
toString
in class java.lang.Enum<CameraFeatures.OutputFormat>
public int toImageFormat()+
public static enum CameraFeatures.SceneMode +extends java.lang.Enum<CameraFeatures.SceneMode>+
Enum Constant and Description | +
---|
ACTION |
+
AUTO |
+
BARCODE |
+
BEACH |
+
CANDLELIGHT |
+
DISABLED |
+
FACE_PRIORITY |
+
FIREWORKS |
+
HDR |
+
LANDSCAPE |
+
NIGHT |
+
NIGHT_PORTRAI |
+
NON_STANDARD |
+
PARTY |
+
PORTRAIT |
+
SNOW |
+
SPORTS |
+
STEADYPHOTO |
+
SUNSET |
+
THEATRE |
+
Modifier and Type | +Method and Description | +
---|---|
static CameraFeatures.SceneMode |
+fromCamera1(java.lang.String mode) |
+
static CameraFeatures.SceneMode |
+fromCamera2(int mode) |
+
java.lang.String |
+toCamera1() |
+
int |
+toCamera2() |
+
java.lang.String |
+toString() |
+
static CameraFeatures.SceneMode |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static CameraFeatures.SceneMode[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final CameraFeatures.SceneMode DISABLED+
public static final CameraFeatures.SceneMode AUTO+
public static final CameraFeatures.SceneMode ACTION+
public static final CameraFeatures.SceneMode SPORTS+
public static final CameraFeatures.SceneMode STEADYPHOTO+
public static final CameraFeatures.SceneMode BARCODE+
public static final CameraFeatures.SceneMode NIGHT+
public static final CameraFeatures.SceneMode PARTY+
public static final CameraFeatures.SceneMode BEACH+
public static final CameraFeatures.SceneMode CANDLELIGHT+
public static final CameraFeatures.SceneMode FACE_PRIORITY+
public static final CameraFeatures.SceneMode FIREWORKS+
public static final CameraFeatures.SceneMode HDR+
public static final CameraFeatures.SceneMode LANDSCAPE+
public static final CameraFeatures.SceneMode NIGHT_PORTRAI+
public static final CameraFeatures.SceneMode PORTRAIT+
public static final CameraFeatures.SceneMode SNOW+
public static final CameraFeatures.SceneMode SUNSET+
public static final CameraFeatures.SceneMode THEATRE+
public static final CameraFeatures.SceneMode NON_STANDARD+
public static CameraFeatures.SceneMode[] values()+
+for (CameraFeatures.SceneMode c : CameraFeatures.SceneMode.values()) + System.out.println(c); +
public static CameraFeatures.SceneMode valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CameraFeatures.SceneMode fromCamera1(java.lang.String mode)+
mode
- the camera 1 constantpublic static CameraFeatures.SceneMode fromCamera2(int mode)+
mode
- the camera 2 constantpublic java.lang.String toString()+
toString
in class java.lang.Enum<CameraFeatures.SceneMode>
public java.lang.String toCamera1()+
public int toCamera2()+
public abstract class CameraFeatures
+extends java.lang.Object
+Modifier and Type | +Class and Description | +
---|---|
static class |
+CameraFeatures.FocusMode
+Helper enum for the focus mode to abstract away the differences in camera API 1 and 2
+ |
+
static class |
+CameraFeatures.FpsRange
+Helper class for the FPS ranges to abstract away the differences in camera API 1 and 2
+ |
+
static class |
+CameraFeatures.LensFacing
+Helper enum for the lens facing direction to abstract away the differences in camera API 1 and 2
+ |
+
static class |
+CameraFeatures.OutputFormat
+Helper enum to be able to get a string representation of the output format.
+ |
+
static class |
+CameraFeatures.SceneMode
+Helper enum for the scene mode to abstract away the differences in camera API 1 and 2
+ |
+
Constructor and Description | +
---|
CameraFeatures() |
+
Modifier and Type | +Method and Description | +
---|---|
static boolean |
+allCamerasHaveApi2Support(android.content.Context context) |
+
float |
+getExposureStep() |
+
java.util.List<CameraFeatures.FocusMode> |
+getFocusModes() |
+
CameraFeatures.FpsRange[] |
+getFpsRanges() |
+
CameraFeatures.LensFacing |
+getLensFacing() |
+
int |
+getMaxAutoExposureRegions() |
+
int |
+getMaxExposure() |
+
int |
+getMaxFocusRegions() |
+
CameraFeatures.FpsRange |
+getMaxFpsRange() |
+
int |
+getMinExposure() |
+
java.util.List<CameraSize> |
+getPictureSizes() |
+
java.util.List<CameraSize> |
+getPreviewSizes() |
+
java.util.List<CameraFeatures.SceneMode> |
+getSceneModes() |
+
int |
+getSensorOrientation()
+
+ Clockwise angle through which the output image needs to be rotated
+ to be upright on the device screen in its native orientation.
+ |
+
java.util.List<CameraSize> |
+getVideoSizes() |
+
static boolean |
+hasCameraApi2Support(android.content.Context context,
+ CameraFeatures.LensFacing lensFacing) |
+
boolean |
+isFlashSupported() |
+
boolean |
+isVideoStabilizationSupported() |
+
java.lang.String |
+toString() |
+
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static boolean hasCameraApi2Support(android.content.Context context, + CameraFeatures.LensFacing lensFacing)+
public static boolean allCamerasHaveApi2Support(android.content.Context context)+
public CameraFeatures.LensFacing getLensFacing()+
public int getSensorOrientation()+
+ Clockwise angle through which the output image needs to be rotated + to be upright on the device screen in its native orientation. +
+Range of valid values:
+ 0, 90, 180, 270
@NonNull +public java.util.List<CameraFeatures.FocusMode> getFocusModes()+
@Nullable +public java.util.List<CameraFeatures.SceneMode> getSceneModes()+
@NonNull +public java.util.List<CameraSize> getPreviewSizes()+
@NonNull +public java.util.List<CameraSize> getPictureSizes()+
@Nullable +public java.util.List<CameraSize> getVideoSizes()+
public boolean isFlashSupported()+
public int getMaxFocusRegions()+
public int getMaxAutoExposureRegions()+
public boolean isVideoStabilizationSupported()+
@NonNull +public CameraFeatures.FpsRange[] getFpsRanges()+
@NonNull +public CameraFeatures.FpsRange getMaxFpsRange()+
public int getMinExposure()+
getExposureStep()
public int getMaxExposure()+
getExposureStep()
public float getExposureStep()+
public java.lang.String toString()+
toString
in class java.lang.Object
public class CameraFeatures1 +extends CameraFeatures+
CameraFeatures.FocusMode, CameraFeatures.FpsRange, CameraFeatures.LensFacing, CameraFeatures.OutputFormat, CameraFeatures.SceneMode
Constructor and Description | +
---|
CameraFeatures1(int cameraId,
+ android.hardware.Camera camera)
+New camera features from the given id and characteristics
+ |
+
Modifier and Type | +Method and Description | +
---|---|
boolean |
+isAutoExposureLockSupported() |
+
allCamerasHaveApi2Support, getExposureStep, getFocusModes, getFpsRanges, getLensFacing, getMaxAutoExposureRegions, getMaxExposure, getMaxFocusRegions, getMaxFpsRange, getMinExposure, getPictureSizes, getPreviewSizes, getSceneModes, getSensorOrientation, getVideoSizes, hasCameraApi2Support, isFlashSupported, isVideoStabilizationSupported, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public CameraFeatures1(int cameraId, + @NonNull + android.hardware.Camera camera)+
cameraId
- the id of the cameracamera
- the camera to get the available features frompublic static enum CameraFeatures2.AutoExposureMode +extends java.lang.Enum<CameraFeatures2.AutoExposureMode>+
Enum Constant and Description | +
---|
OFF |
+
ON |
+
ON_ALWAYS_FLASH |
+
ON_AUTO_FLASH |
+
ON_AUTO_FLASH_REDEYE |
+
Modifier and Type | +Method and Description | +
---|---|
static CameraFeatures2.AutoExposureMode |
+fromCamera2(int mode) |
+
int |
+toCamera2() |
+
java.lang.String |
+toString() |
+
static CameraFeatures2.AutoExposureMode |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static CameraFeatures2.AutoExposureMode[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final CameraFeatures2.AutoExposureMode OFF+
public static final CameraFeatures2.AutoExposureMode ON+
public static final CameraFeatures2.AutoExposureMode ON_AUTO_FLASH+
public static final CameraFeatures2.AutoExposureMode ON_ALWAYS_FLASH+
public static final CameraFeatures2.AutoExposureMode ON_AUTO_FLASH_REDEYE+
public static CameraFeatures2.AutoExposureMode[] values()+
+for (CameraFeatures2.AutoExposureMode c : CameraFeatures2.AutoExposureMode.values()) + System.out.println(c); +
public static CameraFeatures2.AutoExposureMode valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()+
toString
in class java.lang.Enum<CameraFeatures2.AutoExposureMode>
public static CameraFeatures2.AutoExposureMode fromCamera2(int mode)+
public int toCamera2()+
public class CameraFeatures2 +extends CameraFeatures+
Modifier and Type | +Class and Description | +
---|---|
static class |
+CameraFeatures2.AutoExposureMode
+Helper enum to be able to get a string representation of the auto exposure modes
+ |
+
CameraFeatures.FocusMode, CameraFeatures.FpsRange, CameraFeatures.LensFacing, CameraFeatures.OutputFormat, CameraFeatures.SceneMode
Constructor and Description | +
---|
CameraFeatures2(java.lang.String cameraId,
+ android.hardware.camera2.CameraCharacteristics characteristics)
+New camera features from the given id and characteristics
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static CameraFeatures2[] |
+getForAllCameras(android.content.Context context)
+Get the available features for all cameras.
+ |
+
boolean |
+isOpticalStabilizationSupported() |
+
allCamerasHaveApi2Support, getExposureStep, getFocusModes, getFpsRanges, getLensFacing, getMaxAutoExposureRegions, getMaxExposure, getMaxFocusRegions, getMaxFpsRange, getMinExposure, getPictureSizes, getPreviewSizes, getSceneModes, getSensorOrientation, getVideoSizes, hasCameraApi2Support, isFlashSupported, isVideoStabilizationSupported, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public CameraFeatures2(@NonNull + java.lang.String cameraId, + @NonNull + android.hardware.camera2.CameraCharacteristics characteristics)+
cameraId
- the id of the cameracharacteristics
- the characteristics to read the features frompublic boolean isOpticalStabilizationSupported()+
public static CameraFeatures2[] getForAllCameras(android.content.Context context) + throws android.hardware.camera2.CameraAccessException+
context
- the contextandroid.hardware.camera2.CameraAccessException
- if a camera device could not be queried by the CameraManagerpublic interface CameraOpenListener
+Modifier and Type | +Method and Description | +
---|---|
void |
+onCameraError(java.lang.Exception e)
+Invoked when something went wrong connecting to the camera.
+ |
+
void |
+onCameraOpened(CameraController cameraController,
+ int width,
+ int height)
+This method is invoked when camera preview has started.
+ |
+
void onCameraOpened(CameraController cameraController, + int width, + int height)+
cameraController
- - the camera controller used to control the camerawidth
- - the width of the frames that will be deliveredheight
- - the height of the frames that will be deliveredvoid onCameraError(java.lang.Exception e)+
e
- the exception that occurredpublic class CameraPermissionHelper
+extends java.lang.Object
+Modifier and Type | +Field and Description | +
---|---|
static int |
+REQUEST_CODE_CAMERA_PERMISSIONS
+Anyline Camera Permission Request Code
+ |
+
Constructor and Description | +
---|
CameraPermissionHelper(android.app.Activity activity) |
+
Modifier and Type | +Method and Description | +
---|---|
boolean |
+hasPermissions()
+Checks if the Camera Permission was already granted by the user
+ |
+
boolean |
+onRequestPermissionsResult(int requestCode,
+ java.lang.String[] permissions,
+ int[] grantResults)
+Takes the result from
+Activity.onRequestPermissionsResult(int, String[], int[]) and evaluates if the
+ Camera Permission was given by the user. |
+
void |
+requestPermissions()
+Sends a permission request to the user.
+ |
+
void |
+showPermissionMessage(java.lang.String message)
+Displays an AlertDialog to the user, informing him about the necessity of granting the Camera Permission.
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final int REQUEST_CODE_CAMERA_PERMISSIONS+
public CameraPermissionHelper(android.app.Activity activity)+
public void requestPermissions()+
Activity.onRequestPermissionsResult(int, String[], int[])
. The result should be forwarded to
+ onRequestPermissionsResult(int, String[], int[])
, which will evaluate the
+ parameters and return the result.public boolean hasPermissions()+
public boolean onRequestPermissionsResult(int requestCode, + java.lang.String[] permissions, + int[] grantResults)+
Activity.onRequestPermissionsResult(int, String[], int[])
and evaluates if the
+ Camera Permission was given by the user.
+
+ If the provided permissions are not the ones requested with this helper, this method will also return false.requestCode
- the code of the request (should be REQUEST_CODE_CAMERA_PERMISSIONS
)permissions
- the requested permissionsgrantResults
- the results of the request@UiThread +public void showPermissionMessage(@Nullable + java.lang.String message)+
message
- the message to display to the user. If null is passed, a default message will be displayedpublic class CameraSize
+extends java.lang.Object
+Constructor and Description | +
---|
CameraSize(android.hardware.Camera.Size size) |
+
CameraSize(int width,
+ int height) |
+
CameraSize(android.util.Size size) |
+
Modifier and Type | +Method and Description | +
---|---|
boolean |
+equals(java.lang.Object obj)
+Check if this size is equal to another size.
+ |
+
int |
+getHeight() |
+
int |
+getLonger() |
+
int |
+getShorter() |
+
int |
+getWidth() |
+
int |
+hashCode() |
+
java.lang.String |
+toString()
+Return the size represented as a string with the format
+"WxH" |
+
getClass, notify, notifyAll, wait, wait, wait
public CameraSize(android.hardware.Camera.Size size)+
public CameraSize(android.util.Size size)+
public CameraSize(int width, + int height)+
public int getWidth()+
public int getHeight()+
public int getLonger()+
public int getShorter()+
public java.lang.String toString()+
"WxH"
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)+
+ Two sizes are equal if and only if both their widths and heights are + equal. +
++ A size object is never equal to any other type of object. +
equals
in class java.lang.Object
true
if the objects were equal, false
otherwisepublic int hashCode()+
hashCode
in class java.lang.Object
public static enum CameraUtil.AspectRatio +extends java.lang.Enum<CameraUtil.AspectRatio>+
Enum Constant and Description | +
---|
RATIO_16_10 |
+
RATIO_16_9 |
+
RATIO_4_3 |
+
RATIO_5_3 |
+
RATIO_ANY |
+
Modifier and Type | +Method and Description | +
---|---|
static CameraUtil.AspectRatio |
+fromRatio(double ratio) |
+
static CameraUtil.AspectRatio |
+fromString(java.lang.String aspectRatioString) |
+
static CameraUtil.AspectRatio |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static CameraUtil.AspectRatio[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final CameraUtil.AspectRatio RATIO_16_9+
public static final CameraUtil.AspectRatio RATIO_5_3+
public static final CameraUtil.AspectRatio RATIO_16_10+
public static final CameraUtil.AspectRatio RATIO_4_3+
public static final CameraUtil.AspectRatio RATIO_ANY+
public static CameraUtil.AspectRatio[] values()+
+for (CameraUtil.AspectRatio c : CameraUtil.AspectRatio.values()) + System.out.println(c); +
public static CameraUtil.AspectRatio valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CameraUtil.AspectRatio fromString(java.lang.String aspectRatioString)+
public static CameraUtil.AspectRatio fromRatio(double ratio)+
public class CameraUtil
+extends java.lang.Object
+Modifier and Type | +Class and Description | +
---|---|
static class |
+CameraUtil.AspectRatio |
+
Constructor and Description | +
---|
CameraUtil() |
+
Modifier and Type | +Method and Description | +
---|---|
static CameraSize |
+getBestFittingPictureSize(java.util.List<CameraSize> pictureSizes,
+ int preferredPictureWidth,
+ int preferredPictureHeight,
+ java.util.List<CameraUtil.AspectRatio> preferredAspectRatios)
+Determines the best fitting Picture size for the given parameters.
+ |
+
static CameraFeatures.FpsRange |
+getBiggestFittingPreviewFps(CameraFeatures.FpsRange[] supportedFps,
+ int minFps,
+ int maxFps)
+This helper method can be called to select camera preview FPS.
+ |
+
static CameraSize |
+getBiggestFittingPreviewSize(java.util.List<CameraSize> sizes,
+ int maxWidth,
+ int maxHeight)
+This helper method can be called to select camera preview size.
+ |
+
static int |
+getCameraDisplayRotation(android.content.Context context,
+ android.hardware.camera2.CameraCharacteristics cameraCharacteristics)
+Get the rotation of camera relative to the display orientation
+ |
+
static int |
+getCameraDisplayRotation(android.content.Context context,
+ int cameraId)
+An implementation of the code in the docs of
+Camera.setDisplayOrientation(int)
+ (just returning the degrees instead of setting them directly). |
+
static int |
+getCameraRotation(android.content.Context context,
+ int cameraId)
+An implementation of the code in the docs of
+Camera.Parameters.setRotation(int)
+ (just returning the degrees instead of setting them directly). |
+
static int |
+getDisplayRotationDegrees(android.content.Context context) |
+
static boolean |
+hasCamera(android.content.Context context)
+return true if device has a camera.
+ |
+
static void |
+setCameraDisplayOrientation(android.content.Context context,
+ int cameraId,
+ android.hardware.Camera camera)
+An implementation of the code in the docs of
+Camera.setDisplayOrientation(int) . |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static boolean hasCamera(android.content.Context context)+
public static void setCameraDisplayOrientation(android.content.Context context, + int cameraId, + android.hardware.Camera camera)+
Camera.setDisplayOrientation(int)
.context
- - the contextcameraId
- - the id of the used cameracamera
- - the camera itselfpublic static int getCameraDisplayRotation(android.content.Context context, + int cameraId)+
Camera.setDisplayOrientation(int)
+ (just returning the degrees instead of setting them directly).
+ This returns the degrees the preview frame needs to get rotated to be the same as actually seen.context
- the contextcameraId
- the camera id to get the rotation frompublic static int getCameraRotation(android.content.Context context, + int cameraId)+
Camera.Parameters.setRotation(int)
+ (just returning the degrees instead of setting them directly).
+ Returns the camera rotation which needs to be compensated with Camera.Parameters.setRotation(int)
context
- the contextcameraId
- the camera id to get the rotation frompublic static int getCameraDisplayRotation(android.content.Context context, + android.hardware.camera2.CameraCharacteristics cameraCharacteristics)+
context
- the contextcameraCharacteristics
- the camera characteristics of the camera to checkpublic static int getDisplayRotationDegrees(android.content.Context context)+
context
- the contextpublic static CameraSize getBiggestFittingPreviewSize(java.util.List<CameraSize> sizes, + int maxWidth, + int maxHeight)+
sizes
- - the supported sizesmaxWidth
- - the max widthmaxHeight
- - the max heightpublic static CameraFeatures.FpsRange getBiggestFittingPreviewFps(CameraFeatures.FpsRange[] supportedFps, + int minFps, + int maxFps)+
supportedFps
- the supported FPS ranges of the deviceminFps
- the preferred min preview fpsmaxFps
- the preferred max preview fpspublic static CameraSize getBestFittingPictureSize(java.util.List<CameraSize> pictureSizes, + int preferredPictureWidth, + int preferredPictureHeight, + java.util.List<CameraUtil.AspectRatio> preferredAspectRatios)+
+ If the preferred sizes are not 0, the lowest available resolution greater than the sizes is returned. + If there is no resolution found greater than the preferred sizes, the highest resolution in 16:9, 5:3 or 16:10 + is returned. + If there is no resolution with these aspect ratios, the highest resolution in any aspect ratio is returned. +
++ If the preferred sizes are 0, the highest available resolution in the preferredAspectRatio is returned. If + none is found, the highest resolution in any aspect ratio is returned. +
pictureSizes
- the supported sizespreferredPictureWidth
- the preferred (minimum) width of the picturepreferredPictureHeight
- the preferred (minimum) height of the picturepreferredAspectRatios
- a list of the preferred aspect ratiospublic class CameraView
+extends android.view.ViewGroup
+
+ A view that shows a camera preview and can provide the previewed image to
+ e.g the AnylineController
via the ImageProvider Interface.
+
+ The camera will be initialized in a background thread. Use the CameraOpenListener
to get notified if this
+ was successful or not.
+
android.view.ViewGroup.LayoutParams, android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnCapturedPointerListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener, android.view.View.OnUnhandledKeyEventListener
Modifier and Type | +Field and Description | +
---|---|
CameraController |
+cameraController |
+
int |
+frameIndex |
+
int |
+layoutBottom |
+
int |
+layoutLeft |
+
int |
+layoutRight |
+
int |
+layoutTop |
+
static int |
+PREVIEW_CROP_GRAVITY_BOTTOM |
+
static int |
+PREVIEW_CROP_GRAVITY_CENTER_VERTICALLY |
+
static int |
+PREVIEW_CROP_GRAVITY_TOP |
+
FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR, AUTOFILL_HINT_CREDIT_CARD_NUMBER, AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE, AUTOFILL_HINT_EMAIL_ADDRESS, AUTOFILL_HINT_NAME, AUTOFILL_HINT_PASSWORD, AUTOFILL_HINT_PHONE, AUTOFILL_HINT_POSTAL_ADDRESS, AUTOFILL_HINT_POSTAL_CODE, AUTOFILL_HINT_USERNAME, AUTOFILL_TYPE_DATE, AUTOFILL_TYPE_LIST, AUTOFILL_TYPE_NONE, AUTOFILL_TYPE_TEXT, AUTOFILL_TYPE_TOGGLE, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLE, FOCUSABLE_AUTO, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, IMPORTANT_FOR_AUTOFILL_AUTO, IMPORTANT_FOR_AUTOFILL_NO, IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_AUTOFILL_YES, IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_CONTENT_CAPTURE_AUTO, IMPORTANT_FOR_CONTENT_CAPTURE_NO, IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_CONTENT_CAPTURE_YES, IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, NOT_FOCUSABLE, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VISIBLE, X, Y, Z
Constructor and Description | +
---|
CameraView(android.content.Context context) |
+
CameraView(android.content.Context context,
+ android.util.AttributeSet attrs) |
+
CameraView(android.content.Context context,
+ android.util.AttributeSet attrs,
+ int defStyleAttr) |
+
CameraView(android.content.Context context,
+ boolean api2Enabled)
+Construct a camera view with the given api 2 option.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+callAutoFocus()
+
+ Call auto focus.
+ |
+
void |
+disableBarcodeDetection() |
+
void |
+enableBarcodeDetection(NativeBarcodeResultListener barcodeResultListener,
+ java.util.List<BarcodeFormat> format)
+Enable the Native Barcode Detector
+ |
+
CameraController |
+getCameraController() |
+
int |
+getFrameHeight() |
+
int |
+getFrameWidth() |
+
AnylineImage |
+getLastImageWithFullSize()
+
+ Get the latest image in full size.
+ |
+
ImageReceiver |
+getLastImageWithFullSizeReceiver()
+
+ Get the a receiver for the latest image in full size.
+ |
+
AnylineImage |
+getNewImage() |
+
CameraConfig |
+getPreferredCameraConfig()
+
+ Get the current preferred camera settings.
+ |
+
float |
+getScale() |
+
CameraConfig |
+getSettings()
+
+ Get the actually used settings (this is only available after the camera has been opened).
+ |
+
boolean |
+hasNewImage() |
+
boolean |
+isBarcodeDetectionEnabled() |
+
boolean |
+isBarcodeDetectionOperational() |
+
boolean |
+onTouchEvent(android.view.MotionEvent event) |
+
boolean |
+openCameraInBackground()
+Open the camera in a background thread, if surface is already created and camera is not opened already.
+ |
+
void |
+releaseCamera()
+
+ Release the camera.
+ |
+
void |
+releaseCameraAndPreview() |
+
void |
+releaseCameraInBackground()
+
+ Release the camera in a background thread.
+ |
+
void |
+resetAutoFocusTimer()
+Reset the auto focus timer, if a focus config is set.
+ |
+
static void |
+setApi2Enabled(boolean enabled)
+
+ Set globally if camera api 2 should be enabled or not (for devices that have better than legacy API 2 support).
+ |
+
void |
+setCameraOpenListener(CameraOpenListener listener)
+Set the listener that is called when the camera is opened or a camera related error occurred.
+ |
+
void |
+setFlashOn(boolean isOn)
+Turn the torch flash on or off.
+ |
+
void |
+setFocusConfig(FocusConfig focusConfig)
+Deprecated.
+
+use
+CameraConfig together with setPreferredCameraConfig(CameraConfig) |
+
void |
+setHighResolutionImageListener(HighResolutionImageListener highResolutionImageListener)
+Sets an optional listener which is called with the final AnylineImage, once a picture was taken with the
+ camera via the
+takeHighResolutionImage() method. |
+
void |
+setImageListener(ImageListener imageListener)
+Set the listener that should be called when a new image is available
+ |
+
void |
+setPreferredCameraConfig(CameraConfig preferredConfig)
+
+ Set the preferred camera settings.
+ |
+
void |
+setPreferredPictureSize(int width,
+ int height)
+Deprecated.
+
+use
+CameraConfig together with setPreferredCameraConfig(CameraConfig) |
+
void |
+setPreferredPreviewFps(int minFps,
+ int maxFps)
+Deprecated.
+
+this will be integrated into CameraConfig or removed completely in the future
+ |
+
void |
+setPreferredPreviewSize(int width,
+ int height)
+Deprecated.
+
+use
+CameraConfig together with setPreferredCameraConfig(CameraConfig) |
+
void |
+setPreviewCropGravity(int cropGravity) |
+
void |
+setSceneMode(java.lang.String sceneMode)
+Deprecated.
+
+use
+CameraConfig together with setPreferredCameraConfig(CameraConfig) |
+
void |
+setUseMaxFpsRange(boolean isEnabled)
+Deprecated.
+
+this will be integrated into CameraConfig or removed completely in the future
+ |
+
void |
+takeHighResolutionImage()
+Takes a picture from the camera and calls
+HighResolutionImageListener.onImageTaken(AnylineImage) after the
+ image is taken successfully. |
+
void |
+takeHighResolutionImage(int top,
+ int left,
+ int right,
+ int bottom,
+ int scanViewWidth,
+ int scanViewHeight) |
+
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, bringChildToFront, childDrawableStateChanged, childHasTransientStateChanged, clearChildFocus, clearDisappearingChildren, clearFocus, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchSetActivated, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, generateLayoutParams, getAccessibilityClassName, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isLayoutSuppressed, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onDescendantInvalidated, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setTouchscreenBlocksFocus, setTransitionGroup, setWindowInsetsAnimationCallback, shouldDelayChildPressedState, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, suppressLayout, updateViewLayout
addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, animate, announceForAccessibility, autofill, autofill, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeScroll, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, draw, drawableHotspotChanged, findViewById, findViewWithTag, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRevealOnFocusHint, getRight, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTouchables, getTouchDelegate, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOnLongClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingRelative, isPivotSet, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, keyboardNavigationClusterSearch, measure, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onCreateInputConnection, onDragEvent, onDrawForeground, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideStructure, onProvideVirtualStructure, onRtlPropertiesChanged, onScreenStateChanged, onStartTemporaryDetach, onTrackballEvent, onVisibilityAggregated, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, requestUnbufferedDispatch, requireViewById, resetPivot, resolveSize, resolveSizeAndState, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setAnimationMatrix, setAutofillHints, setAutofillId, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, willNotCacheDrawing, willNotDraw
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, keyboardNavigationClusterSearch, requestFitSystemWindows, requestLayout
public static final int PREVIEW_CROP_GRAVITY_TOP+
public static final int PREVIEW_CROP_GRAVITY_BOTTOM+
public static final int PREVIEW_CROP_GRAVITY_CENTER_VERTICALLY+
public int frameIndex+
public CameraController cameraController+
public int layoutLeft+
public int layoutTop+
public int layoutRight+
public int layoutBottom+
public CameraView(android.content.Context context)+
public CameraView(android.content.Context context, + boolean api2Enabled)+
+ app:api_2_enabled="true"
+
context
- the contextapi2Enabled
- true if api 2 should be used (for devices that have better than legacy API 2 support)public CameraView(android.content.Context context, + android.util.AttributeSet attrs)+
public CameraView(android.content.Context context, + android.util.AttributeSet attrs, + int defStyleAttr)+
public static void setApi2Enabled(boolean enabled)+
+ Set globally if camera api 2 should be enabled or not (for devices that have better than legacy API 2 support). + Default is true. +
+ Must be called BEFORE the constructor of the CameraView that should be effected is called. + Will effect every constructed CameraView after it is set. +
enabled
- false to disable camera 2 api@Deprecated +public void setPreferredPreviewSize(int width, + int height)+
CameraConfig
together with setPreferredCameraConfig(CameraConfig)
width
- the preferred widthheight
- the preferred height@Deprecated +public void setPreferredPictureSize(int width, + int height)+
CameraConfig
together with setPreferredCameraConfig(CameraConfig)
takeHighResolutionImage()
is called.
+ If set, the supported picture size closest, and max the given size will be used. Otherwise the maximum
+ supported size will be used. This must be set before the camera is initialized to have an effect.width
- the preferred picture widthheight
- the preferred picture height@Deprecated +public void setSceneMode(java.lang.String sceneMode)+
CameraConfig
together with setPreferredCameraConfig(CameraConfig)
+ Set the scene mode that should be used if it is supported. +
+ This setting needs to be set before the camera is opened. +
+ This has no effect on Nexus 4 + 5, because the flash is not working if a scene mode is set on those devices. + +
sceneMode
- the scene mode to use (one of: android.hardware.Camera.Parameters.SCENE_MODE_*)public void setUseMaxFpsRange(boolean isEnabled)+
+ Use maximum fps available or not. + By enabling this mode, the camera tries to set the shutter + speed as high as possible, and thus reducing motion blur and providing a more fluid look and feel. +
+ Generally, a high shutter speed leads to less camera sensor exposure, which means that + the image may become darker and may need a flashlight, so that proper lighting conditions are + met for the processing of the image. +
+ This setting needs to be set before the camera is opened. +
+ This setting is applied after the scene mode. +
isEnabled
- - true if high FPS mode should be enabled, false by defaultpublic void setPreferredPreviewFps(int minFps, + int maxFps)+
+ Set the proffered values for the minimum and maximum preview frames per second. + This should usually NOT be used, but special values maybe required for certain hardware (like google glasses). +
+ This setting has higher priority then setUseMaxFpsRange(boolean)
.
minFps
- the preferred min FPSmaxFps
- the preferred max FPS@Deprecated +public void setFocusConfig(FocusConfig focusConfig)+
CameraConfig
together with setPreferredCameraConfig(CameraConfig)
+ Set the focus config to use for focusing. +
+ This setting needs to be set before the camera is opened. +
focusConfig
- the focus configpublic CameraConfig getPreferredCameraConfig()+
+ Get the current preferred camera settings. +
+ This can be used to change the preferred settings. + Changes needs to be made before the camera is opened to have an effect. +
public void setPreferredCameraConfig(CameraConfig preferredConfig)+
+ Set the preferred camera settings. The actual used settings will be composed of this and the available features. +
+ This needs to be set before the camera is opened. +
+ It is also possible to just manipulate the settings returned by getPreferredCameraConfig()
.
+
preferredConfig
- the preferred settingspublic CameraConfig getSettings()+
+ Get the actually used settings (this is only available after the camera has been opened). +
+
+ This is for information purposes only (to see what settings are actually used).
+ To change the settings use the getPreferredCameraConfig()
instead.
+
public void setCameraOpenListener(CameraOpenListener listener)+
listener
- the listenerpublic void setHighResolutionImageListener(HighResolutionImageListener highResolutionImageListener)+
takeHighResolutionImage()
method.highResolutionImageListener
- the listener to call if a picture was taken (or an error occured)public float getScale()+
public int getFrameWidth()+
public int getFrameHeight()+
@NonNull +public CameraController getCameraController()+
public void callAutoFocus()+
+ Call auto focus. This will only do anything if the focus mode is set to auto. + It usually should not be called manually. + (is called through interval or through touch automatically if configured) +
java.lang.IllegalStateException
- if the camera is not yet initalizedpublic void setFlashOn(boolean isOn)+
isOn
- true to turn the flash on false to turn it offpublic void resetAutoFocusTimer()+
public void setImageListener(@Nullable + ImageListener imageListener)+
imageListener
- the listener that should be notified if a new image is availablepublic boolean hasNewImage()+
@Nullable +public AnylineImage getNewImage()+
public void takeHighResolutionImage()+
HighResolutionImageListener.onImageTaken(AnylineImage)
after the
+ image is taken successfully.
+ If no HighResolutionImageListener
is set, the method returns.
+ Additionally, a picture is only taken if the safeToTakePicture flag is set to true, which means the camera is
+ open and preview is started.public void takeHighResolutionImage(int top, + int left, + int right, + int bottom, + int scanViewWidth, + int scanViewHeight)+
@Nullable +public AnylineImage getLastImageWithFullSize()+
+ Get the latest image in full size.
+ This does not check or manipulate hasNewImage()
.
+
+ Prefer getLastImageWithFullSizeReceiver()
, if you are not sure if the image is actually needed,
+ to save resources.
+
@Nullable +public ImageReceiver getLastImageWithFullSizeReceiver()+
+ Get the a receiver for the latest image in full size.
+ This does not check or manipulate hasNewImage()
.
+
+ The receiver does not copy the image if no getter is called. +
public void setPreviewCropGravity(int cropGravity)+
public boolean openCameraInBackground()+
setCameraOpenListener(CameraOpenListener)
.public void releaseCameraInBackground()+
+ Release the camera in a background thread. + Camera releasing may take a bit, so it may interfere with your exit animation. Use this to do it in the + background. +
+ ALWAYS call this or releaseCamera()
in onPause of your activity!!
+
public void releaseCameraAndPreview() + throws java.lang.Exception+
java.lang.Exception
public void releaseCamera()+
+ Release the camera. +
+ ALWAYS call this or releaseCameraInBackground()
in onPause of your activity!!
+
public boolean onTouchEvent(android.view.MotionEvent event)+
onTouchEvent
in class android.view.View
public void enableBarcodeDetection(@NonNull + NativeBarcodeResultListener barcodeResultListener, + java.util.List<BarcodeFormat> format)+
barcodeResultListener
- listener for Native barcodeformat
- barcodeFormatListpublic void disableBarcodeDetection()+
public boolean isBarcodeDetectionEnabled()+
public boolean isBarcodeDetectionOperational()+
public interface CutoutUpdateListener
+Modifier and Type | +Method and Description | +
---|---|
void |
+onCutoutUpdate(android.graphics.Rect cutoutRect,
+ android.graphics.Rect waterMarkRect)
+Method is called on the UI thread, whenever the cutout is updated.
+ |
+
void onCutoutUpdate(@NonNull + android.graphics.Rect cutoutRect, + @Nullable + android.graphics.Rect waterMarkRect)+
cutoutRect
- the rect where the cutout is on the viewwaterMarkRect
- the rect where the watermark is on the view (may be null with commercial license)public static interface FaceDetector.FaceDetectionResultHandler
+Modifier and Type | +Method and Description | +
---|---|
void |
+onFailure(java.lang.String e) |
+
void |
+onSuccess(AnylineImage faceImage) |
+
void onSuccess(AnylineImage faceImage)+
void onFailure(java.lang.String e)+
public class FaceDetector
+extends java.lang.Object
+Modifier and Type | +Class and Description | +
---|---|
static interface |
+FaceDetector.FaceDetectionResultHandler |
+
Constructor and Description | +
---|
FaceDetector(FaceDetector.FaceDetectionResultHandler faceDetectionResultHandler) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+startFaceDetection(AnylineImage imageForProcessing) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public FaceDetector(FaceDetector.FaceDetectionResultHandler faceDetectionResultHandler)+
public void startFaceDetection(@NonNull + AnylineImage imageForProcessing)+
public static enum FlashControl.Mode +extends java.lang.Enum<FlashControl.Mode>+
Enum Constant and Description | +
---|
AUTO |
+
OFF |
+
ON |
+
Modifier and Type | +Method and Description | +
---|---|
static FlashControl.Mode |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static FlashControl.Mode[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final FlashControl.Mode AUTO+
public static final FlashControl.Mode ON+
public static final FlashControl.Mode OFF+
public static FlashControl.Mode[] values()+
+for (FlashControl.Mode c : FlashControl.Mode.values()) + System.out.println(c); +
public static FlashControl.Mode valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Deprecated
+public interface FlashControl
+Modifier and Type | +Interface and Description | +
---|---|
static class |
+FlashControl.Mode
+Deprecated.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+setAutoModeEnabled(boolean isEnabled)
+Deprecated.
+Implementer should enable the auto mode and switch to it, if enabled.
+ |
+
void |
+setCameraController(CameraController cameraController)
+Deprecated.
+
+ A camera is required to set the flash (at least for android < M).
+ |
+
void |
+setFlashOnIfAuto(boolean isOn)
+Deprecated.
+Implementer should set the flash on/off if the control is in auto mode.
+ |
+
void |
+setMode(FlashControl.Mode mode)
+Deprecated.
+Implementer should switch to the given mode.
+ |
+
void setMode(FlashControl.Mode mode)+
mode
- the mode to set to.void setAutoModeEnabled(boolean isEnabled)+
setFlashOnIfAuto(boolean)
.isEnabled
- true to enable auto mode, false to disable it.void setFlashOnIfAuto(boolean isOn)+
isOn
- true to set the flash on if in auto mode, false tovoid setCameraController(CameraController cameraController)+
+ A camera is required to set the flash (at least for android < M). + Implementer should check if flash is possible for this device in here, and don't show the view at all if not. +
+ Implementer should set the gui back to default when this is called with a none null camera. (This may be called + in the background, so post gui stuff) +
cameraController
- the camera to useCameraConfig
instead@Deprecated
+public static class FocusConfig.Builder
+extends java.lang.Object
+Constructor and Description | +
---|
Builder()
+Deprecated.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
FocusConfig |
+build()
+Deprecated.
+Create the config.
++ + Note: You must still call init, if not used with at.nineyards.anyline.camera.AnylineView |
+
java.lang.String |
+getDefaultMode()
+Deprecated.
+ |
+
FocusConfig.Builder |
+setAutoFocusInterval(int millis)
+Deprecated.
+Set an auto focus interval.
+ |
+
FocusConfig.Builder |
+setDefaultMode(java.lang.String defaultMode)
+Deprecated.
+The default focus mode for devices that have no special internal treatment.
+ |
+
FocusConfig.Builder |
+setEnableAutoExposureAreas(boolean isEnabled)
+Deprecated.
+
+ Enable or disable auto exposure areas for the cut-out rectangle.
+ |
+
FocusConfig.Builder |
+setEnableFocusAreas(boolean isEnabled)
+Deprecated.
+
+ Enable or disable focus areas for the cut-out rectangle.
+ |
+
FocusConfig.Builder |
+setEnableFocusOnTouch(boolean isEnabled)
+Deprecated.
+Enable or disable focus on touch.
+ |
+
FocusConfig.Builder |
+setEnablePhaseAutoFocus(boolean isEnabled)
+Deprecated.
+Enable or disable the phase auto focus.
+ |
+
FocusConfig.Builder |
+setUpdateAreasOnAutoFocus(boolean updateAreasOnAutoFocus)
+Deprecated.
+set to true if the areas should be slightly changed before every auto focus call.
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public FocusConfig.Builder setDefaultMode(java.lang.String defaultMode)+
defaultMode
- - the default focus modepublic java.lang.String getDefaultMode()+
public FocusConfig.Builder setAutoFocusInterval(int millis)+
millis
- - the interval in millis to call auto focus inpublic FocusConfig.Builder setEnablePhaseAutoFocus(boolean isEnabled)+
isEnabled
- - true if phase auto focus should be enabledpublic FocusConfig.Builder setEnableFocusAreas(boolean isEnabled)+
+ Enable or disable focus areas for the cut-out rectangle. Particularly good, when cut-out + rectangle is not in the middle of the screen. +
+ TODO document api break, this does not influences the focus mode anymore + (this used to set the focus mode to AUTO)isEnabled
- - true if focus areas should be enabledpublic FocusConfig.Builder setEnableAutoExposureAreas(boolean isEnabled)+
+ Enable or disable auto exposure areas for the cut-out rectangle. +
isEnabled
- - true if auto exposure areas should be enabledpublic FocusConfig.Builder setEnableFocusOnTouch(boolean isEnabled)+
isEnabled
- - true if focus on touch should be enabledpublic FocusConfig.Builder setUpdateAreasOnAutoFocus(boolean updateAreasOnAutoFocus)+
updateAreasOnAutoFocus
- true to enablepublic FocusConfig build()+
at.nineyards.anyline.camera.AnylineView
CameraConfig
instead@Deprecated
+public class FocusConfig
+extends java.lang.Object
+
+ A class for configuring the focus settings.
+ Should be used together with CameraView
+
+ Use the FocusConfig.Builder
to create a config.
+
Modifier and Type | +Class and Description | +
---|---|
static class |
+FocusConfig.Builder
+Deprecated.
+
+use
+CameraConfig instead |
+
Modifier and Type | +Field and Description | +
---|---|
static int |
+NO_AUTO_FOCUS_TIMER
+Deprecated.
+ |
+
public static final int NO_AUTO_FOCUS_TIMER+
public interface HighResolutionImageListener
+Modifier and Type | +Method and Description | +
---|---|
void |
+onError(java.lang.Throwable e)
+This method is called if there was an error taking the picture.
+ |
+
void |
+onImageTaken(AnylineImage image)
+This method is called asynchronously once a picture was successfully taken.
+ |
+
void onImageTaken(AnylineImage image)+
image
- The full image taken via the cameravoid onError(java.lang.Throwable e)+
e
- The error that was thrownpublic interface HighResolutionImageProvider
+Modifier and Type | +Method and Description | +
---|---|
void |
+setHighResolutionImageListener(HighResolutionImageListener highResolutionImageListener)
+Sets an optional listener which is called with the final AnylineImage, once a picture was taken with the
+ camera via the
+takeHighResolutionImage() method. |
+
void |
+takeHighResolutionImage()
+Takes a picture from the camera and calls
+HighResolutionImageListener.onImageTaken(AnylineImage) after the
+ image is taken successfully. |
+
void |
+takeHighResolutionImage(int top,
+ int left,
+ int right,
+ int bottom,
+ int scanViewWidth,
+ int scanViewHeight) |
+
void takeHighResolutionImage()+
HighResolutionImageListener.onImageTaken(AnylineImage)
after the
+ image is taken successfully.
+ If no HighResolutionImageListener
is set, the method returns.
+ Additionally, a picture is only taken if the safeToTakePicture flag is set to true, which means the camera is
+ open and preview is started.void setHighResolutionImageListener(@Nullable + HighResolutionImageListener highResolutionImageListener)+
takeHighResolutionImage()
method.highResolutionImageListener
- the listener to call if a picture was taken (or an error occurred)void takeHighResolutionImage(int top, + int left, + int right, + int bottom, + int scanViewWidth, + int scanViewHeight)+
public interface ImageListener
+Modifier and Type | +Method and Description | +
---|---|
void |
+onImageAvailable(ImageReceiver imageReceiver)
+
+ Called for every new image that is received from the camera.
+ |
+
void onImageAvailable(ImageReceiver imageReceiver)+
+ Called for every new image that is received from the camera. +
+ The given ImageReceiver
is a helper class to get access to the image.
+
+ If no getter is called on the receiver, no work is done. + So just doing nothing here is fine, if there is currently no need for a new image to process. +
+ The ImageReceiver
should not be stored (the underlying data may change after the method returns).
+
+ Note: This is called in the cameras thread. + For your image processing you should kick off a background task or delegate the work to a background thread. +
imageReceiver
- the image receiver to access the frame data withpublic class ImageReceiver
+extends java.lang.Object
++ A helper class for receiving images. +
+ Do NOT store this class when received from the ImageListener
, the underlying image may be changed.
+
Modifier and Type | +Method and Description | +
---|---|
AnylineYuvImage |
+getYuvImage(boolean greyOnly)
+
+ Get the full frame as an
+AnylineYuvImage . |
+
AnylineYuvImage |
+getYuvImage(android.graphics.Rect cropRect,
+ boolean greyOnly)
+Get the frame cropped to the given rect (relative to the frame in the view's orientation).
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@NonNull +public AnylineYuvImage getYuvImage(boolean greyOnly)+
+ Get the full frame as an AnylineYuvImage
.
+
+ Prefer getYuvImage(Rect, boolean)
, if only a some part of the frame is required (faster)
+
greyOnly
- true if image can be grey only (faster), false to also get colorsAnylineYuvImage
.@NonNull +public AnylineYuvImage getYuvImage(@NonNull + android.graphics.Rect cropRect, + boolean greyOnly)+
cropRect
- the rect to crop relative to the camera frame in the orientation of the view.
+ AnylineBaseView#getFrameRectFromViewRect(Rect)
maybe helpful to calculate this.greyOnly
- true if image can be grey only (faster), false to also get colorspublic class NativeBarcodeDetectionThread
+extends java.lang.Thread
+java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier and Type | +Method and Description | +
---|---|
void |
+run() |
+
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public class NativeBarcodeDetector
+extends java.lang.Object
+Constructor and Description | +
---|
NativeBarcodeDetector() |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+disableBarcodeDetection()
+Disables the barcode detection if it has been enabled before.
+ |
+
void |
+enableBarcodeDetection(NativeBarcodeResultListener barcodeResultListener,
+ java.util.List<BarcodeFormat> format)
+Allows to search for barcodes simultaneously on the same image.
+ |
+
NativeBarcodeDetectionThread |
+getNativeBarcodeDetectionThread() |
+
boolean |
+isBarcodeDetectionEnabled() |
+
boolean |
+isBarcodeDetectionOperational() |
+
void |
+restartBarcodeDetection() |
+
void |
+setCameraView(CameraView cameraView) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void enableBarcodeDetection(@NonNull + NativeBarcodeResultListener barcodeResultListener, + java.util.List<BarcodeFormat> format)+
+ The listener will be called every time an image is analyzed and barcodes are found + e.g. the results are independent from the module's result. +
+
+ NOTE: this will only work if the device has the Google Play Service installed. + Have a look on the suggested methods to ensure the device is ready: https://developers.google.com/android/guides/setup. + Also, you need to include Google Play Services in your app. + For the barcode reader you need to include Mobile Vision version 7.8.0 or higher (recommended) in the build.gradle (see also vision release notes)barcodeResultListener
- the listener will be called whenever barcodes have been found on an image, note that is independent from the module's result listenerpublic void disableBarcodeDetection()+
public boolean isBarcodeDetectionEnabled()+
public boolean isBarcodeDetectionOperational()+
public void restartBarcodeDetection()+
public NativeBarcodeDetectionThread getNativeBarcodeDetectionThread()+
public void setCameraView(CameraView cameraView)+
public interface NativeBarcodeResultListener
+Modifier and Type | +Method and Description | +
---|---|
void |
+onFailure(java.lang.String failureMessage)
+Is called when NativeBarcode failed
+ |
+
void |
+onSuccess(java.util.List<com.google.firebase.ml.vision.barcode.FirebaseVisionBarcode> barcodes)
+Is called when NativeBarcode scanned with success
+ |
+
void onSuccess(java.util.List<com.google.firebase.ml.vision.barcode.FirebaseVisionBarcode> barcodes)+
barcodes
- the barcodeList found while scanningvoid onFailure(java.lang.String failureMessage)+
failureMessage
- the failure message when failure occurspublic static interface SimpleZoomHandler.IZoomHandlerListener
+Modifier and Type | +Method and Description | +
---|---|
void |
+onZoomChanged(int newZoom) |
+
public class SimpleZoomHandler +extends AbstractZoomHandler+
Modifier and Type | +Class and Description | +
---|---|
static interface |
+SimpleZoomHandler.IZoomHandlerListener |
+
Modifier and Type | +Method and Description | +
---|---|
boolean |
+isPrepared() |
+
void |
+notifyZoomChanged(int zoom) |
+
void |
+setZoomHandlerListener(SimpleZoomHandler.IZoomHandlerListener zoomHandlerListener) |
+
getZoomLevel, onTouch, setMaxZoom, setZoomHardness
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void setZoomHandlerListener(SimpleZoomHandler.IZoomHandlerListener zoomHandlerListener)+
public void notifyZoomChanged(int zoom)+
notifyZoomChanged
in class AbstractZoomHandler
public boolean isPrepared()+
isPrepared
in class AbstractZoomHandler
public class SimpleZoomHandlerBuilder
+extends java.lang.Object
+Modifier and Type | +Method and Description | +
---|---|
SimpleZoomHandler |
+build() |
+
static SimpleZoomHandlerBuilder |
+forView(android.view.View touchableView,
+ int currentZoomlevel,
+ CameraController cameraController) |
+
SimpleZoomHandlerBuilder |
+setMaxZoom(float maxZoom) |
+
SimpleZoomHandlerBuilder |
+setZoomListener(SimpleZoomHandler.IZoomHandlerListener listener) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static SimpleZoomHandlerBuilder forView(android.view.View touchableView, + int currentZoomlevel, + CameraController cameraController)+
public SimpleZoomHandlerBuilder setZoomListener(SimpleZoomHandler.IZoomHandlerListener listener)+
public SimpleZoomHandlerBuilder setMaxZoom(float maxZoom)+
public SimpleZoomHandler build()+
public static enum VisualFeedbackConfig.AnimationStyle +extends java.lang.Enum<VisualFeedbackConfig.AnimationStyle>+
Enum Constant and Description | +
---|
BLINK |
+
KITT |
+
PULSE |
+
PULSE_RANDOM |
+
RESIZE |
+
TRAVERSE_MULTI |
+
TRAVERSE_SINGLE |
+
Modifier and Type | +Method and Description | +
---|---|
static VisualFeedbackConfig.AnimationStyle |
+fromInt(int style) |
+
int |
+getValue() |
+
static VisualFeedbackConfig.AnimationStyle |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static VisualFeedbackConfig.AnimationStyle[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final VisualFeedbackConfig.AnimationStyle TRAVERSE_SINGLE+
public static final VisualFeedbackConfig.AnimationStyle KITT+
public static final VisualFeedbackConfig.AnimationStyle TRAVERSE_MULTI+
public static final VisualFeedbackConfig.AnimationStyle RESIZE+
public static final VisualFeedbackConfig.AnimationStyle BLINK+
public static final VisualFeedbackConfig.AnimationStyle PULSE+
public static final VisualFeedbackConfig.AnimationStyle PULSE_RANDOM+
public static VisualFeedbackConfig.AnimationStyle[] values()+
+for (VisualFeedbackConfig.AnimationStyle c : VisualFeedbackConfig.AnimationStyle.values()) + System.out.println(c); +
public static VisualFeedbackConfig.AnimationStyle valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()+
public static VisualFeedbackConfig.AnimationStyle fromInt(int style)+
public static enum VisualFeedbackConfig.FeedbackStyle +extends java.lang.Enum<VisualFeedbackConfig.FeedbackStyle>+
Enum Constant and Description | +
---|
CONTOUR_POINT |
+
CONTOUR_RECT |
+
CONTOUR_UNDERLINE |
+
RECT |
+
Modifier and Type | +Method and Description | +
---|---|
static VisualFeedbackConfig.FeedbackStyle |
+fromInt(int style) |
+
static int |
+fromString(VisualFeedbackConfig.FeedbackStyle style) |
+
int |
+getValue() |
+
static VisualFeedbackConfig.FeedbackStyle |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static VisualFeedbackConfig.FeedbackStyle[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final VisualFeedbackConfig.FeedbackStyle RECT+
public static final VisualFeedbackConfig.FeedbackStyle CONTOUR_RECT+
public static final VisualFeedbackConfig.FeedbackStyle CONTOUR_UNDERLINE+
public static final VisualFeedbackConfig.FeedbackStyle CONTOUR_POINT+
public static VisualFeedbackConfig.FeedbackStyle[] values()+
+for (VisualFeedbackConfig.FeedbackStyle c : VisualFeedbackConfig.FeedbackStyle.values()) + System.out.println(c); +
public static VisualFeedbackConfig.FeedbackStyle valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()+
public static VisualFeedbackConfig.FeedbackStyle fromInt(int style)+
public static int fromString(VisualFeedbackConfig.FeedbackStyle style)+
public class VisualFeedbackConfig
+extends java.lang.Object
+Modifier and Type | +Class and Description | +
---|---|
static class |
+VisualFeedbackConfig.AnimationStyle
+Possible animation styles (the animations are ALPHA and may change in the future)
+ |
+
static class |
+VisualFeedbackConfig.FeedbackStyle |
+
Constructor and Description | +
---|
VisualFeedbackConfig() |
+
VisualFeedbackConfig(org.json.JSONObject jsonObject,
+ int cutoutCornerRadius) |
+
Modifier and Type | +Method and Description | +
---|---|
int |
+getAnimationDuration() |
+
VisualFeedbackConfig.AnimationStyle |
+getAnimationStyle() |
+
int |
+getCornerRadiusInDp() |
+
int |
+getCornerRadiusInPix(android.content.Context context)
+Calculates and returns the corner radius in pixels
+ |
+
VisualFeedbackConfig.FeedbackStyle |
+getFeedbackStyle() |
+
int |
+getFillColor() |
+
java.lang.String |
+getFillColorString() |
+
int |
+getRedrawTimeout() |
+
int |
+getStrokeColor() |
+
java.lang.String |
+getStrokeColorString() |
+
int |
+getStrokeWidthInDp() |
+
int |
+getStrokeWidthInPix(android.content.Context context)
+Calculates and returns the stroke width in pixels
+ |
+
boolean |
+isBeepOnResult() |
+
boolean |
+isVibrateOnResult() |
+
void |
+setAnimationDuration(int animationDuration)
+Set duration for the rect animation
+ |
+
void |
+setAnimationStyle(VisualFeedbackConfig.AnimationStyle animationStyle)
+Set the animation style.
+ |
+
void |
+setBeepOnResult(boolean isBeepOnResult)
+
+ Set to true to play a beep sound on result.
+ |
+
void |
+setCornerRadiusInDp(int cornerRadius)
+Set the corner radius in display independent pixels
+ |
+
void |
+setFeedbackStyle(VisualFeedbackConfig.FeedbackStyle feedbackStyle)
+Set the feedback style
+ |
+
void |
+setFillColor(int fillColor)
+Set the fill color of the feedback
+ |
+
void |
+setFillColorString(java.lang.String fillColorString)
+Set the fill color of the feedback
+ |
+
void |
+setRedrawTimeout(int redrawTimeout)
+Set the timeout before the next draw can happen
+ |
+
void |
+setStrokeColor(int color)
+Set the stroke color of the feedback
+ |
+
void |
+setStrokeColorString(java.lang.String strokeColorString) |
+
void |
+setStrokeWidthInDp(int strokeWidthInDp)
+Set the stroke width of the feedback
+ |
+
void |
+setVibrateOnResult(boolean isVibrateOnResult)
+
+ Set to true to vibrate briefly on result.
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public VisualFeedbackConfig()+
public VisualFeedbackConfig(org.json.JSONObject jsonObject, + int cutoutCornerRadius)+
public VisualFeedbackConfig.FeedbackStyle getFeedbackStyle()+
public void setFeedbackStyle(VisualFeedbackConfig.FeedbackStyle feedbackStyle)+
feedbackStyle
- the style to usepublic int getStrokeColor()+
public void setStrokeColor(int color)+
color
- the stroke colorpublic int getStrokeWidthInDp()+
public int getStrokeWidthInPix(android.content.Context context)+
context
- the context (required to get display density)public void setStrokeWidthInDp(int strokeWidthInDp)+
strokeWidthInDp
- the stroke widthpublic int getFillColor()+
public java.lang.String getFillColorString()+
public void setStrokeColorString(java.lang.String strokeColorString)+
public java.lang.String getStrokeColorString()+
public void setFillColor(int fillColor)+
fillColor
- the fill colorpublic void setFillColorString(java.lang.String fillColorString)+
fillColorString
- the fill colorpublic int getCornerRadiusInDp()+
public void setCornerRadiusInDp(int cornerRadius)+
cornerRadius
- the corner radus in dppublic int getCornerRadiusInPix(android.content.Context context)+
context
- the context (required to get display density)public VisualFeedbackConfig.AnimationStyle getAnimationStyle()+
public void setAnimationStyle(VisualFeedbackConfig.AnimationStyle animationStyle)+
animationStyle
- the style to usepublic int getAnimationDuration()+
public void setAnimationDuration(int animationDuration)+
animationDuration
- the animation durationpublic int getRedrawTimeout()+
public void setRedrawTimeout(int redrawTimeout)+
redrawTimeout
- the redraw timeoutpublic boolean isBeepOnResult()+
public void setBeepOnResult(boolean isBeepOnResult)+
+ Set to true to play a beep sound on result. (Default: false) +
isBeepOnResult
- true to play a beep sound on resultpublic boolean isVibrateOnResult()+
public void setVibrateOnResult(boolean isVibrateOnResult)+
+ Set to true to vibrate briefly on result. (Default: false) +
+ This requires the permission:
isVibrateOnResult
- true vibrate briefly on result.public interface ZoomEventHandler
+Modifier and Type | +Method and Description | +
---|---|
void |
+onZoomEventOccured(double currentZoomLevel)
+Called when a zoom event occurs, e.g.
+ |
+
void onZoomEventOccured(double currentZoomLevel)+
currentZoomLevel
- - gives back the current zoom level
+ when a zoom event occursInterface | +Description | +
---|---|
ActiveArrayZoomHandler.IZoomHandlerListener | ++ |
CameraController.CameraControllerListener | ++ |
CameraOpenListener | +
+ A listener for Camera opening events.
+ |
+
CutoutUpdateListener | +
+ A listener that can be used to get notified if the cutout changed
+ |
+
FaceDetector.FaceDetectionResultHandler | ++ |
FlashControl | +Deprecated
+ As of release 10.1.
+ |
+
HighResolutionImageListener | +
+ A Listener for taken photos via takeHighResolutionImage() method.
+ |
+
HighResolutionImageProvider | +
+ An interface for providing a single picture.
+ |
+
ImageListener | +
+ A listener that can be set to a camera view to be able to receive images from it.
+ |
+
NativeBarcodeResultListener | ++ |
SimpleZoomHandler.IZoomHandlerListener | ++ |
ZoomEventHandler | ++ |
Class | +Description | +
---|---|
AbstractZoomHandler | ++ |
ActiveArrayZoomHandler | ++ |
ActiveArrayZoomHandlerBuilder | ++ |
CameraConfig | +
+
+ Class to specify desired settings and to hold the actual used settings for the camera.
+ |
+
CameraController | +
+ Class to abstract away camera api 1 and 2 differences.
+ |
+
CameraController1 | +
+ Camera controller implementation for camera API 1
+ |
+
CameraController2 | +
+ Camera controller implementation for camera API 2
+ |
+
CameraFeatures | +
+ A class to hold information about the supported features of a camera.
+ |
+
CameraFeatures.FpsRange | +
+ Helper class for the FPS ranges to abstract away the differences in camera API 1 and 2
+ |
+
CameraFeatures1 | +
+ Class to hold available features for the camera api 1
+ |
+
CameraFeatures2 | +
+ Class to hold available features for the camera api 2
+ |
+
CameraPermissionHelper | +
+ Helper class to handle Android 6 (API > 23) Runtime Camera Permissions.
+ |
+
CameraSize | +
+ Helper class used to abstract the camera size attributes for api1 and api2
+ |
+
CameraUtil | ++ |
CameraView | +
+
+ A view that shows a camera preview and can provide the previewed image to
+ e.g the
+AnylineController via the ImageProvider Interface. |
+
FaceDetector | ++ |
FocusConfig | +Deprecated
+ use
+CameraConfig instead |
+
FocusConfig.Builder | +Deprecated
+ use
+CameraConfig instead |
+
ImageReceiver | +
+
+ A helper class for receiving images.
+ |
+
NativeBarcodeDetectionThread | ++ |
NativeBarcodeDetector | ++ |
SimpleZoomHandler | ++ |
SimpleZoomHandlerBuilder | ++ |
VisualFeedbackConfig | +
+ A class to hold the configuration for the visual feedback
+ |
+
Enum | +Description | +
---|---|
CameraController.CameraOrientation | +
+ Helper enum to be able to get the back camera orientation
+ |
+
CameraController2.State | ++ |
CameraFeatures.FocusMode | +
+ Helper enum for the focus mode to abstract away the differences in camera API 1 and 2
+ |
+
CameraFeatures.LensFacing | +
+ Helper enum for the lens facing direction to abstract away the differences in camera API 1 and 2
+ |
+
CameraFeatures.OutputFormat | +
+ Helper enum to be able to get a string representation of the output format.
+ |
+
CameraFeatures.SceneMode | +
+ Helper enum for the scene mode to abstract away the differences in camera API 1 and 2
+ |
+
CameraFeatures2.AutoExposureMode | +
+ Helper enum to be able to get a string representation of the auto exposure modes
+ |
+
CameraUtil.AspectRatio | ++ |
FlashControl.Mode | ++ |
VisualFeedbackConfig.AnimationStyle | +
+ Possible animation styles (the animations are ALPHA and may change in the future)
+ |
+
VisualFeedbackConfig.FeedbackStyle | ++ |
public class AnylineImage
+extends java.lang.Object
+implements java.lang.Cloneable
+Constructor and Description | +
---|
AnylineImage(Mat cvMat)
+Create an AnylineImage from a cv Mat.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
AnylineImage |
+clone() |
+
AnylineYuvImage |
+getAlYuvImage() |
+
android.graphics.Bitmap |
+getBitmap() |
+
Mat |
+getCvMat() |
+
Mat |
+getGreyCvMat(boolean newInstance)
+Get this image as a gray scaled cv Mat.
+ |
+
int |
+getHeight() |
+
Mat |
+getRgbCvMat(boolean newInstance)
+Get this image as a rgb cv Mat (CV_8UC3).
+ |
+
int |
+getWidth() |
+
void |
+release()
+Releases the resources taken up by this image.
+ |
+
void |
+save(java.io.File file,
+ int quality)
+Saves this image to the given file in the given quality.
+ |
+
java.lang.String |
+toString() |
+
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public AnylineImage(Mat cvMat)+
cvMat
- the cv mat imagepublic void release()+
public android.graphics.Bitmap getBitmap()+
public Mat getCvMat()+
public int getWidth()+
public int getHeight()+
public Mat getGreyCvMat(boolean newInstance)+
newInstance
- if true, returned image will be a new instance. If false the current image is gray scaled (if not gray already) and returned.public Mat getRgbCvMat(boolean newInstance)+
newInstance
- if true, returned image will be a new instance.
+ If false the current image will be changed (if not of correct type already) and returned.public AnylineYuvImage getAlYuvImage()+
public void save(java.io.File file, + int quality) + throws java.io.IOException+
file
- the file to save toquality
- the quality to use (0-100)(ignored for PNG files)java.io.IOException
- if something goes wrongpublic AnylineImage clone()+
clone
in class java.lang.Object
public java.lang.String toString()+
toString
in class java.lang.Object
public class AnylineRawResult
+extends java.lang.Object
+Constructor and Description | +
---|
AnylineRawResult() |
+
AnylineRawResult(CoreResult result) |
+
Modifier and Type | +Method and Description | +
---|---|
int |
+getConfidence(java.lang.String identifier)
+Returns the all word confidence for the result as int
+ |
+
CoreResult |
+getCoreResult() |
+
java.util.Set<java.lang.String> |
+getIdentifiers() |
+
java.util.Set<java.lang.String> |
+getIdentifiersSpecialCharacterResult() |
+
java.lang.String |
+getResult(java.lang.String identifier)
+Returns the validated result object for an identifier or null if identifier
+ does not exist or no valid result was found for the identifier.
+ |
+
java.lang.String |
+getResultSpecialCharacters(java.lang.String identifier) |
+
boolean |
+hasConfidenceValue(java.lang.String identifier) |
+
boolean |
+isValid()
+Returns true if the result is valid.
+ |
+
java.lang.String |
+toString() |
+
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public AnylineRawResult()+
public AnylineRawResult(CoreResult result)+
public java.lang.String getResult(java.lang.String identifier)+
identifier
- The identifier for a result.public java.lang.String getResultSpecialCharacters(java.lang.String identifier)+
public java.util.Set<java.lang.String> getIdentifiers()+
public java.util.Set<java.lang.String> getIdentifiersSpecialCharacterResult()+
public int getConfidence(java.lang.String identifier)+
identifier
- The identifier for a resultpublic boolean hasConfidenceValue(java.lang.String identifier)+
public boolean isValid()+
public java.lang.String toString()+
toString
in class java.lang.Object
public CoreResult getCoreResult()+
public class AnylineScanResult<T>
+extends java.lang.Object
++
It holds the outline of the detected text, the confidence of the result, as well as the cutout image and the + full frame the scanning was performed on.
Modifier and Type | +Method and Description | +
---|---|
java.lang.Integer |
+getConfidence()
+Returns the confidence of the SDK in the detected result.
+ |
+
AnylineImage |
+getCutoutImage()
+Returns the image the result was found on.
+ |
+
AnylineImage |
+getFaceImage()
+Returns image returned by the face detector
+ |
+
AnylineImage |
+getFullImage()
+Returns the full image the result was found on.
+ |
+
java.util.List<android.graphics.PointF> |
+getOutline()
+Returns the outline around the detected result.
+ |
+
T |
+getResult()
+Returns the actual result of the scanning process.
+ |
+
void |
+setOutline(java.util.List<android.graphics.PointF> outline)
+Set the outline around the detected result.
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@Nullable +public AnylineImage getCutoutImage()+
at.nineyards.anyline.camera.AnylineViewConfig
.@Nullable +public AnylineImage getFullImage()+
@Nullable +public java.util.List<android.graphics.PointF> getOutline()+
The points of the outline are relative to the scanview, if a scanview was used, and null otherwise
+The points are ordered clockwise, starting from the top-left point.
@Nullable +public java.lang.Integer getConfidence()+
The confidence is a value between 0 and 100, with 100 meaning the result is definitely valid.
@NonNull +public T getResult()+
@Nullable +public AnylineImage getFaceImage()+
public void setOutline(@Nullable + java.util.List<android.graphics.PointF> outline)+
outline
- the outline of the detected textpublic class AnylineYuvImage
+extends java.lang.Object
+implements java.lang.Cloneable
+Constructor and Description | +
---|
AnylineYuvImage(android.media.Image image,
+ int targetOrientation,
+ int cropX,
+ int cropY,
+ int cropWidth,
+ int cropHeight,
+ boolean isGreyOnly)
+Construct a YUV image from the given image buffer cropped to the given bounds.
+ |
+
AnylineYuvImage(int format,
+ int width,
+ int height,
+ byte[] data,
+ int targetOrientation,
+ boolean isGreyOnly)
+Construct a yuv image with the given byte data.
+ |
+
AnylineYuvImage(int format,
+ int width,
+ int height,
+ int targetOrientation)
+Deprecated.
+
+use one of the other constructors
+ |
+
Modifier and Type | +Method and Description | +
---|---|
AnylineYuvImage |
+clone() |
+
AnylineYuvImage |
+crop(int cropX,
+ int cropY,
+ int cropWidth,
+ int cropHeight,
+ boolean isGreyOnly)
+
+ Returns a new image cropped to the given bounds.
+ |
+
android.graphics.Bitmap |
+getAsBitmap() |
+
Mat |
+getAsCvMat()
+Get this image as a cv mat (in target orientation).
++ If this image only contains the grey data, returned Mat will ge of type CV_8UC1 + (otherwise RGB CV_8UC3). |
+
byte[] |
+getData()
+
+ The image data in the format returned by
+getFormat() . |
+
int |
+getFormat()
+Get the format the image is stored in the byte data (see
+getData() ). |
+
int |
+getOriginalHeight() |
+
int |
+getOriginalWidth() |
+
int |
+getTargetHeight() |
+
int |
+getTargetOrientation()
+Get the target orientation of the image.
+ |
+
int |
+getTargetWidth() |
+
boolean |
+isGreyOnly() |
+
void |
+setTo(byte[] data)
+Set the data of this image to the given value.
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@Deprecated +public AnylineYuvImage(int format, + int width, + int height, + int targetOrientation)+
format
- the format (currently only NV21 is supported)width
- the target width of the imageheight
- the target height of the imagetargetOrientation
- the degree the raw data has to be rotated to be oriented as desired
+ (usually what
+ CameraUtil.getCameraDisplayRotation(Context, int)
+ returns)ImageFormat.NV21
public AnylineYuvImage(int format, + int width, + int height, + byte[] data, + int targetOrientation, + boolean isGreyOnly)+
format
- the format (currently only NV21 is supported)width
- the target width of the imageheight
- the target height of the imagedata
- the image data in landscape format (like received from the camera)targetOrientation
- the degree the raw data has to be rotated to be oriented as desired
+ (usually what
+ CameraUtil.getCameraDisplayRotation(Context, int)
+ returns)isGreyOnly
- true if given data only contains the Y component (and therefor is grey only)public AnylineYuvImage(android.media.Image image, + int targetOrientation, + int cropX, + int cropY, + int cropWidth, + int cropHeight, + boolean isGreyOnly)+
image
- the image to copy the data fromtargetOrientation
- the degree the raw data has to be rotated to be oriented as desired
+ (usually what
+ CameraUtil.getCameraDisplayRotation(Context, int)
+ returns)cropX
- the distance from the left (must be EVEN for color images)cropY
- the distance from the top (must be EVEN for color images)cropWidth
- the target width (must be EVEN for color images)cropHeight
- the target height (must be EVEN for color images)isGreyOnly
- true if a grey image is desired (faster), false if color is required toojava.lang.IllegalArgumentException
- if the image format is not supported,
+ or if crop values are uneven for color imagesjava.lang.IndexOutOfBoundsException
- if the crop is outside of the image's boundpublic void setTo(@NonNull + byte[] data)+
data
- the data to set this image to.public int getTargetOrientation()+
public byte[] getData()+
+ The image data in the format returned by getFormat()
.
+
+ Note: if isGreyOnly()
is true, the format is always Y8 (regardless of what getFormat returns).
+
getFormat()
public int getFormat()+
getData()
).
+ The format is one of the constants in ImageFormat
.
+ (Currently only ImageFormat.NV21
or ImageFormat.YUV_420_888
are possible here,
+ but more formats may be added in the future)getData()
)public int getTargetWidth()+
public int getTargetHeight()+
public int getOriginalWidth()+
public int getOriginalHeight()+
public boolean isGreyOnly()+
public Mat getAsCvMat()+
public android.graphics.Bitmap getAsBitmap()+
public AnylineYuvImage crop(int cropX, + int cropY, + int cropWidth, + int cropHeight, + boolean isGreyOnly)+
+ Returns a new image cropped to the given bounds. +
+ The given sizes must be EVEN for color images, because of how the YUV format stores color information. +
cropX
- the distance from the left in the target orientation (must be EVEN for color images)cropY
- the distance from the top in the target orientation (must be EVEN for color images)cropWidth
- the crop width in the target orientation (must be EVEN for color images)cropHeight
- the crop height in the target orientation (must be EVEN for color images)isGreyOnly
- true if a grey image is desired (faster), false if color is required toojava.lang.IllegalArgumentException
- if trying to crop color image from grey source,
+ or if crop values are uneven for color imagesjava.lang.IndexOutOfBoundsException
- if the crop is outside of the image's boundpublic AnylineYuvImage clone()+
clone
in class java.lang.Object
Class | +Description | +
---|---|
AnylineImage | +
+ A Image container that takes care of the different image formats used during processing.
+ |
+
AnylineRawResult | +
+ A container for Results.
+ |
+
AnylineScanResult<T> | +
+ This is the base class for all module result classes.
+ |
+
AnylineYuvImage | +
+ A helper class to deal with yuv images.
+ |
+
public interface AnylineModule<T extends AnylineModuleResultListener>
+Modifier and Type | +Method and Description | +
---|---|
void |
+cancelScanning()
+Stop the scanning (and also all background threads)
+ |
+
void |
+initAnyline(java.lang.String licenseKey,
+ T moduleSpecificListener)
+Init with license-key and a module specific listener.
+ |
+
void |
+setBeepOnResult(boolean isBeepOnResult)
+If set to true, there is a short beep when a result is found.
+ |
+
void |
+setBlinkOnResult(boolean isBlinkOnResult)
+If set to true, there is a short white flashing of the view when a result is found.
+ |
+
void |
+setCameraOpenListener(CameraOpenListener cameraOpenListener)
+Set the listener to be notify when the camera opened or an error occurred while opening the camera.
+ |
+
void |
+setCancelOnResult(boolean isCancelOnResult)
+
+ If set to true (default) the scanning is canceled automatically when a result is found.
+ |
+
void |
+setDebug(boolean isDebug)
+Set to true to get a few additional debug logs.
+ |
+
void |
+setVibrateOnResult(boolean isVibrateOnResult)
+If set to true, there is a short vibration if a result is found.
+ |
+
void |
+startScanning()
+Start the scanning.
+ |
+
void startScanning()+
void cancelScanning()+
void setCancelOnResult(boolean isCancelOnResult)+
+ If set to true (default) the scanning is canceled automatically when a result is found. (User needs to call + startScanning() again to continue scanning.) + If set to false the scanning goes on forever until cancelScanning is called manually. +
+ This MUST be called after initAnyline(String, AnylineModuleResultListener)
, or it
+ will have
+ no effect.
+
void setBeepOnResult(boolean isBeepOnResult)+
void setBlinkOnResult(boolean isBlinkOnResult)+
void setVibrateOnResult(boolean isVibrateOnResult)+
void setCameraOpenListener(CameraOpenListener cameraOpenListener)+
cameraOpenListener
- the listener to be called on camera eventsvoid initAnyline(java.lang.String licenseKey, + T moduleSpecificListener)+
void setDebug(boolean isDebug)+
public interface AnylineModuleResultListener<T extends AnylineScanResult>
+Modifier and Type | +Method and Description | +
---|---|
void |
+onResult(T scanResult)
+Is called with the result object of the scanning process, which is of base type
+AnylineScanResult |
+
void onResult(T scanResult)+
AnylineScanResult
scanResult
- the result of the scanning processpublic final class LicenseExpirationHelper
+extends java.lang.Object
+Modifier and Type | +Method and Description | +
---|---|
static void |
+showExpirationDialog(android.content.Context context,
+ android.content.DialogInterface.OnClickListener okListener,
+ android.content.DialogInterface.OnClickListener contactListener)
+Shows an AlertDialog to the user, informing him that the license has expired
+ Must be run on UiThread
+ |
+
static void |
+showPricingPage(android.content.Context context) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@UiThread +public static void showExpirationDialog(android.content.Context context, + android.content.DialogInterface.OnClickListener okListener, + android.content.DialogInterface.OnClickListener contactListener)+
public static void showPricingPage(android.content.Context context)+
Interface | +Description | +
---|---|
AnylineModule<T extends AnylineModuleResultListener> | +
+ Common interface for use-case specific anyline modules.
+ |
+
AnylineModuleResultListener<T extends AnylineScanResult> | +
+ An interface that should be extended by all module specific result listeners, to give them a common root.
+ |
+
Class | +Description | +
---|---|
LicenseExpirationHelper | ++ |
Interface | +Description | +
---|---|
AnylineDebugListener | +
+ A listener providing additional information about the scanning process.
+ |
+
AnylineListener | ++ |
ImageProvider | +
+ Used to provide images for analyzing to the
+AnylineController . |
+
Class | +Description | +
---|---|
AnylineController | +
+ The AnylineController is responsible for the actual processing of images.
+ |
+
SimpleImageProvider | +
+ A simple implementation of the ImageProvider interface.
+ |
+
public class ArrayUtil
+extends java.lang.Object
+Modifier and Type | +Method and Description | +
---|---|
static boolean |
+contains(float[] values,
+ float value) |
+
static boolean |
+contains(int[] values,
+ int value) |
+
static <T> boolean |
+contains(T[] values,
+ T value) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static <T> boolean contains(@NonNull + T[] values, + @NonNull + T value)+
T
- the object typevalues
- the array to search withinvalue
- the value to search forpublic static boolean contains(@NonNull + int[] values, + int value)+
values
- the array to search withinvalue
- the value to search forpublic static boolean contains(@NonNull + float[] values, + float value)+
values
- the array to search withinvalue
- the value to search forpublic class AssetUtil
+extends java.lang.Object
+Modifier and Type | +Method and Description | +
---|---|
static void |
+copyAnylineAssets(android.content.Context context,
+ org.json.JSONObject json,
+ java.lang.String mapJsonName,
+ java.io.File dirToCopyTo,
+ boolean isForceCopy)
+Copy the assets of the given map listed in the given json object
+ (must be a map with filename relative to assets as the key and the md5 sum of the file as value)
+ to the given directory.
+ |
+
static void |
+copyAssetFile(android.content.Context context,
+ java.lang.String pathInAssets,
+ java.io.File dirToCopyTo,
+ boolean isForceCopy)
+
+ Copy the asset file specified by path to given directory.
+ |
+
static void |
+copyAssetFile(android.content.Context context,
+ java.lang.String pathInAssets,
+ java.io.File dirToCopyTo,
+ java.lang.String md5Hash)
+
+ Copy the asset file specified by path to given directory.
+ |
+
static void |
+copyAssetFileWithoutPath(android.content.Context context,
+ java.lang.String pathInAssets,
+ java.io.File dirToCopyTo,
+ boolean isForceCopy)
+
+ Copy the asset file specified by path directly to the given directory
+ (without the relative path of the asset).
+ |
+
static void |
+copyAssetFileWithoutPath(android.content.Context context,
+ java.lang.String pathInAssets,
+ java.io.File dirToCopyTo,
+ java.lang.String md5Hash)
+
+ Copy the asset file specified by path directly to the given directory
+ (without the relative path of the asset).
+ |
+
static org.json.JSONObject |
+getAnylineAssetsJson(android.content.Context context,
+ java.lang.String fileName)
+Get the json object from the assets with the given file name.
+ |
+
static java.lang.String |
+readFile(android.content.Context context,
+ java.lang.String path,
+ java.lang.String fileName)
+Read the text of the given file within the assets.
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static java.lang.String readFile(android.content.Context context, + java.lang.String path, + java.lang.String fileName) + throws java.io.IOException+
context
- the contextfileName
- the file name of the file to read (full path within the assets folder)java.io.IOException
- if the file could not be found or readpublic static org.json.JSONObject getAnylineAssetsJson(android.content.Context context, + java.lang.String fileName) + throws java.io.IOException+
context
- the contextfileName
- the name of the json file in the assets folder to readjava.io.IOException
- if the file could not be found or it is not a valid json.public static void copyAnylineAssets(android.content.Context context, + org.json.JSONObject json, + java.lang.String mapJsonName, + java.io.File dirToCopyTo, + boolean isForceCopy) + throws org.json.JSONException, + java.io.IOException+
context
- the contextjson
- the json file containing a map with asset paths and md5 sumsmapJsonName
- the name of the map within the json objectdirToCopyTo
- the dir to copy the assets toisForceCopy
- true if files should be copied regardless of the hashesorg.json.JSONException
- if there is a problem parsing the json (e.g. if the given map name does not exist)java.io.IOException
- if there is any problem copying the filespublic static void copyAssetFile(android.content.Context context, + java.lang.String pathInAssets, + java.io.File dirToCopyTo, + boolean isForceCopy) + throws java.io.IOException+
+ Copy the asset file specified by path to given directory. +
+ Md5 sum will be calculated and stored to the target dir with .md5 ending.
+ Calculating this takes time, prefer auto generating the anyline_assets.json
+ or providing the md5 with copyAssetFile(Context, String, File, String)
.
+
+ If isForceCopy is false, this will not copy anything if the same .md5 file is in the target dir.
+
context
- the contextpathInAssets
- Path to asset, relative to app's assets directory.dirToCopyTo
- the target directoryisForceCopy
- if true the file will always be copied (an md5 will be calculated and checked otherwise)java.io.IOException
- if there is any problem copying the filespublic static void copyAssetFile(android.content.Context context, + java.lang.String pathInAssets, + java.io.File dirToCopyTo, + java.lang.String md5Hash) + throws java.io.IOException+
+ Copy the asset file specified by path to given directory. +
+ The file will only be copied if it does not exist in the target location, + or the saved md5 for that file is different to the one given. + (The file will always be copied if the given hash is null) +
context
- the contextpathInAssets
- Path to asset, relative to app's assets directory.dirToCopyTo
- the target directorymd5Hash
- the md5 checksum for the file to copyjava.io.IOException
- if there is any problem copying the filespublic static void copyAssetFileWithoutPath(android.content.Context context, + java.lang.String pathInAssets, + java.io.File dirToCopyTo, + boolean isForceCopy) + throws java.io.IOException+
+ Copy the asset file specified by path directly to the given directory + (without the relative path of the asset). +
+ Md5 sum will be calculated and stored to the target dir with .md5 ending.
+ Calculating this takes time, prefer auto generating the anyline_assets.json
+ or providing the md5 with copyAssetFileWithoutPath(Context, String, File, String)
.
+
+ If isForceCopy is false, this will not copy anything if the same .md5 file is in the target dir.
+
context
- the contextpathInAssets
- Path to asset, relative to app's assets directory.dirToCopyTo
- the target directoryisForceCopy
- if true the file will always be copied (an md5 will be calculated and checked otherwise)java.io.IOException
- if there is any problem copying the filespublic static void copyAssetFileWithoutPath(android.content.Context context, + java.lang.String pathInAssets, + java.io.File dirToCopyTo, + java.lang.String md5Hash) + throws java.io.IOException+
+ Copy the asset file specified by path directly to the given directory + (without the relative path of the asset). +
+ The file will only be copied if it does not exist in the target location, + or the saved md5 for that file is different to the one given. + (The file will always be copied if the given hash is null) +
context
- the contextpathInAssets
- Path to asset, relative to app's assets directory.dirToCopyTo
- the target directorymd5Hash
- the md5 checksum for the file to copyjava.io.IOException
- if there is any problem copying the filespublic class ColorUtil
+extends java.lang.Object
+Modifier and Type | +Method and Description | +
---|---|
static int |
+adjustAlpha(int color,
+ float alphaFactor) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public class ConstantUtil
+extends java.lang.Object
+Modifier and Type | +Field and Description | +
---|---|
static java.lang.String |
+ANYLINE_OCR_MODULE_IDENTIFIER |
+
static java.lang.String |
+BARCODE_MODULE_IDENTIFIER |
+
static java.lang.String |
+DOCUMENT_MODULE_IDENTIFIER |
+
static java.lang.String |
+ENERGY_MODULE_IDENTIFIER |
+
static java.lang.String |
+FIREBASE_APPLICATION_ID |
+
static java.lang.String |
+FIREBASE_NAME |
+
static java.lang.String |
+GENERIC_MODULE_IDENTIFIER |
+
static java.lang.String |
+ID_MODULE_IDENTIFIER |
+
static java.lang.String |
+LICENSE_PLATE_MODULE_IDENTIFIER |
+
static java.lang.String |
+PRODUCT_BARCODE |
+
static java.lang.String |
+PRODUCT_CONTAINER |
+
static java.lang.String |
+PRODUCT_DOCUMENT |
+
static java.lang.String |
+PRODUCT_DRIVING_LICENSE |
+
static java.lang.String |
+PRODUCT_GERMAN_ID_FRONT |
+
static java.lang.String |
+PRODUCT_LICENSEPLATE |
+
static java.lang.String |
+PRODUCT_METER |
+
static java.lang.String |
+PRODUCT_MRZ |
+
static java.lang.String |
+PRODUCT_OCR |
+
static java.lang.String |
+PRODUCT_TIN |
+
static java.lang.String |
+PRODUCT_UNIVERSAL_ID |
+
static java.lang.String |
+PRODUCT_VIN |
+
Constructor and Description | +
---|
ConstantUtil() |
+
public static final java.lang.String GENERIC_MODULE_IDENTIFIER+
public static final java.lang.String BARCODE_MODULE_IDENTIFIER+
public static final java.lang.String ANYLINE_OCR_MODULE_IDENTIFIER+
public static final java.lang.String LICENSE_PLATE_MODULE_IDENTIFIER+
public static final java.lang.String ID_MODULE_IDENTIFIER+
public static final java.lang.String ENERGY_MODULE_IDENTIFIER+
public static final java.lang.String DOCUMENT_MODULE_IDENTIFIER+
public static final java.lang.String FIREBASE_APPLICATION_ID+
public static final java.lang.String FIREBASE_NAME+
public static final java.lang.String PRODUCT_BARCODE+
public static final java.lang.String PRODUCT_METER+
public static final java.lang.String PRODUCT_UNIVERSAL_ID+
public static final java.lang.String PRODUCT_MRZ+
public static final java.lang.String PRODUCT_DRIVING_LICENSE+
public static final java.lang.String PRODUCT_GERMAN_ID_FRONT+
public static final java.lang.String PRODUCT_VIN+
public static final java.lang.String PRODUCT_TIN+
public static final java.lang.String PRODUCT_CONTAINER+
public static final java.lang.String PRODUCT_LICENSEPLATE+
public static final java.lang.String PRODUCT_DOCUMENT+
public static final java.lang.String PRODUCT_OCR+
public class DimensUtil
+extends java.lang.Object
+Constructor and Description | +
---|
DimensUtil() |
+
Modifier and Type | +Method and Description | +
---|---|
static int |
+dpToPx(android.content.Context context,
+ float dp) |
+
static int |
+getDpFromPix(android.content.Context context,
+ int pix)
+Get the dp for given pixels rounded to int.
+ |
+
static int |
+getPixFromDp(android.content.Context context,
+ int dp)
+Get the pixels for dp rounded to int.
+ |
+
static int |
+getScreenOrientation(android.content.Context context)
+Get the current screen orientation.
+ |
+
static boolean |
+isOrientationPortrait(android.content.Context context)
+Returns true if screen orientation is Portrait
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static int getPixFromDp(android.content.Context context, + int dp)+
context
- the contextdp
- the dp to convert to pixelspublic static int dpToPx(android.content.Context context, + float dp)+
public static int getDpFromPix(android.content.Context context, + int pix)+
context
- the contextpix
- the dp to convert to pixelspublic static int getScreenOrientation(android.content.Context context)+
context
- the contextpublic static boolean isOrientationPortrait(android.content.Context context)+
context
- the contextpublic class NumUtil
+extends java.lang.Object
+Modifier and Type | +Method and Description | +
---|---|
static java.lang.Double |
+asDouble(java.lang.Object param)
+'Casts' an Object that is a Number to a Double.
+ |
+
static java.lang.Float |
+asFloat(java.lang.Object param)
+'Casts' an Object that is a Number to a Float.
+ |
+
static java.lang.Integer |
+asInteger(java.lang.Object param)
+'Casts' an Object that is a Number to a Integer.
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static java.lang.Double asDouble(java.lang.Object param)+
param
- the object of type Double, Float or Integerjava.lang.IllegalArgumentException
- if given type is not Double, Integer or Float.public static java.lang.Float asFloat(java.lang.Object param)+
param
- the object of type Doulbe, Float or Integerjava.lang.IllegalArgumentException
- if given type is not Double, Integer or Float.public static java.lang.Integer asInteger(java.lang.Object param)+
param
- the object of type Doulbe, Float or Integerjava.lang.IllegalArgumentException
- if given type is not Double, Integer or Float.public class SoundUtil
+extends java.lang.Object
+Constructor and Description | +
---|
SoundUtil(android.content.Context context)
+Create a SoundUtil helper with the given context.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+loadSoundFromAssets(java.lang.String assetFileName)
+Load the sound from the given asset file name (with relative path within the assets).
+ |
+
void |
+playSound(java.lang.String assetFileName)
+Play the sound previously loaded from the given asset file name.
+ |
+
void |
+releaseSoundPool()
+Release the sound pool.
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public SoundUtil(android.content.Context context)+
releaseSoundPool()
when this util is no longer needed!context
- the contextpublic void loadSoundFromAssets(java.lang.String assetFileName) + throws java.io.IOException+
playSound(String)
is called.assetFileName
- the sound file to load (from assets, with relative path within assets)java.io.IOException
- if the file does not exist or could not be opened.public void playSound(java.lang.String assetFileName)+
loadSoundFromAssets(String)
MUST be called before this.assetFileName
- the sound file to play (same as previously used with load)java.lang.IllegalArgumentException
- if sound has not been loaded previouslypublic void releaseSoundPool()+
public class TempFileUtil
+extends java.lang.Object
+Constructor and Description | +
---|
TempFileUtil() |
+
Modifier and Type | +Method and Description | +
---|---|
static java.io.File |
+createTempFileCheckCache(android.content.Context context,
+ java.lang.String fileNamePrefix,
+ java.lang.String fileNameSuffix)
+THIS class is ALPHA and API may change.
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static java.io.File createTempFileCheckCache(android.content.Context context, + java.lang.String fileNamePrefix, + java.lang.String fileNameSuffix) + throws java.io.IOException+
+ Create a new temporary file with the given name. +
+ This automatically deletes the oldest files if the size of these files exceed 8MB. + If a deletion is triggered, it will delete files until there are less then 4MB used. + This only checks files created with this method (or in a specific folder) + but not all temporary files of the app. +
+ This will append a random number between prefix and suffix if the file already exists. +
context
- the context (usually the activity)fileNamePrefix
- the file name for the new temp filefileNameSuffix
- the suffix of the file (including the dot e.g. ".jpg", ".tmp" is used if null)java.io.IOException
- if the file could not be created.public class VersionUtil
+extends java.lang.Object
+Constructor and Description | +
---|
VersionUtil() |
+
Modifier and Type | +Method and Description | +
---|---|
static java.lang.String |
+getAnylineVersion() |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Class | +Description | +
---|---|
ArrayUtil | +
+ Utility functions for arrays.
+ |
+
AssetUtil | +
+ A helper class to deal with assets, mainly to copy the assets to a place where the C++ core can reach it.
+ |
+
ColorUtil | ++ |
ConstantUtil | +
+ Created by lorena on 03.05.18.
+ |
+
DimensUtil | +
+ A helper class with methods to deal with dimensions and orientation.
+ |
+
NumUtil | ++ |
SoundUtil | +
+ A helper class to deal with short notification sounds.
+ |
+
TempFileUtil | +
+ THIS class is ALPHA and API may change.
+ |
+
VersionUtil | ++ |
Modifier and Type | +Constant Field | +Value | +
---|---|---|
+
+public static final java.lang.String |
+BRIGHTNESS_VARIABLE_NAME |
+"$brightness" |
+
+
+public static final java.lang.String |
+CONTOURS_VARIABLE_NAME |
+"$contours" |
+
+
+public static final java.lang.String |
+DEVICE_ACCELERATION_VARIABLE_NAME |
+"$deviceAcceleration" |
+
+
+public static final java.lang.String |
+DEVICE_SHAKE_WARNING_VARIABLE_NAME |
+"$shake" |
+
+
+public static final java.lang.String |
+OUTLINE_VARIABLE_NAME |
+"$textRect" |
+
+
+public static final java.lang.String |
+POLYGON_VARIABLE_NAME |
+"$polygon" |
+
+
+public static final java.lang.String |
+SHARPNESS_VARIABLE_NAME |
+"$sharpness" |
+
+
+public static final java.lang.String |
+SQUARE_VARIABLE_NAME |
+"$square" |
+
+
+public static final java.lang.String |
+THRESHOLD_IMAGE_VARIABLE_NAME |
+"$thresholdedImage" |
+
Modifier and Type | +Constant Field | +Value | +
---|---|---|
+
+public static final int |
+REQUEST_CODE_CAMERA_PERMISSIONS |
+404 |
+
Modifier and Type | +Constant Field | +Value | +
---|---|---|
+
+public static final int |
+PREVIEW_CROP_GRAVITY_BOTTOM |
+2 |
+
+
+public static final int |
+PREVIEW_CROP_GRAVITY_CENTER_VERTICALLY |
+0 |
+
+
+public static final int |
+PREVIEW_CROP_GRAVITY_TOP |
+1 |
+
Modifier and Type | +Constant Field | +Value | +
---|---|---|
+
+public static final int |
+NO_AUTO_FOCUS_TIMER |
+-1 |
+
Modifier and Type | +Constant Field | +Value | +
---|---|---|
+
+public static final java.lang.String |
+ANYLINE_OCR_MODULE_IDENTIFIER |
+"ANYLINE_OCR" |
+
+
+public static final java.lang.String |
+BARCODE_MODULE_IDENTIFIER |
+"BARCODE" |
+
+
+public static final java.lang.String |
+DOCUMENT_MODULE_IDENTIFIER |
+"DOCUMENT" |
+
+
+public static final java.lang.String |
+ENERGY_MODULE_IDENTIFIER |
+"ENERGY" |
+
+
+public static final java.lang.String |
+FIREBASE_APPLICATION_ID |
+"1:658749195942:android:41939d4a44274aaa" |
+
+
+public static final java.lang.String |
+FIREBASE_NAME |
+"anylineSDKFirebase" |
+
+
+public static final java.lang.String |
+GENERIC_MODULE_IDENTIFIER |
+"GENERIC" |
+
+
+public static final java.lang.String |
+ID_MODULE_IDENTIFIER |
+"ID" |
+
+
+public static final java.lang.String |
+LICENSE_PLATE_MODULE_IDENTIFIER |
+"LICENSE_PLATE" |
+
+
+public static final java.lang.String |
+PRODUCT_BARCODE |
+"barcode" |
+
+
+public static final java.lang.String |
+PRODUCT_CONTAINER |
+"container" |
+
+
+public static final java.lang.String |
+PRODUCT_DOCUMENT |
+"document" |
+
+
+public static final java.lang.String |
+PRODUCT_DRIVING_LICENSE |
+"driving_license" |
+
+
+public static final java.lang.String |
+PRODUCT_GERMAN_ID_FRONT |
+"german_id_front" |
+
+
+public static final java.lang.String |
+PRODUCT_LICENSEPLATE |
+"license_plate" |
+
+
+public static final java.lang.String |
+PRODUCT_METER |
+"meter" |
+
+
+public static final java.lang.String |
+PRODUCT_MRZ |
+"mrz" |
+
+
+public static final java.lang.String |
+PRODUCT_OCR |
+"ocr" |
+
+
+public static final java.lang.String |
+PRODUCT_TIN |
+"tin" |
+
+
+public static final java.lang.String |
+PRODUCT_UNIVERSAL_ID |
+"universal_id" |
+
+
+public static final java.lang.String |
+PRODUCT_VIN |
+"vin" |
+
Modifier and Type | +Constant Field | +Value | +
---|---|---|
+
+public static final java.lang.String |
+COLOR_GREEN |
+"#00E510" |
+
Modifier and Type | +Constant Field | +Value | +
---|---|---|
+
+public static final java.lang.String |
+LAYOUT_TYPE_DRIVING_LICENSE |
+"drivingLicense" |
+
+
+public static final java.lang.String |
+LAYOUT_TYPE_ID_FRONT |
+"idFront" |
+
+
+public static final java.lang.String |
+LAYOUT_TYPE_INSURANCE_CARD |
+"insuranceCard" |
+
+
+public static final java.lang.String |
+LAYOUT_TYPE_MRZ |
+"mrz" |
+
Modifier and Type | +Constant Field | +Value | +
---|---|---|
+
+public static final java.lang.String |
+ANYLINE_LICENSE_PLATE_BUNDLE_PATH |
+"anyline/module_license_plate" |
+
Interface and Description | +
---|
at.nineyards.anyline.camera.FlashControl
+ As of release 10.1. This class will be removed by November 2019.
+ |
+
Class and Description | +
---|
at.nineyards.anyline.camera.FocusConfig
+ use
+CameraConfig instead |
+
at.nineyards.anyline.camera.FocusConfig.Builder
+ use
+CameraConfig instead |
+
io.anyline.plugin.id.TemplateConfig | +
io.anyline.plugin.id.TemplateFieldConfidences | +
io.anyline.plugin.id.TemplateFieldScanOptions | +
Constructor and Description | +
---|
at.nineyards.anyline.models.AnylineYuvImage(int, int, int, int)
+ use one of the other constructors
+ |
+
The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object
. The interfaces do not inherit from java.lang.Object
.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+ScanPlugin
interface,
+ that provides useful stuff for Plugins that use the AnylineController
.AnylineOcrConfig.setValidationRegex(String)
AnylineOcrConfig.setScanMode(ScanMode)
BarcodeScanPlugin
AnylineDebugListener.BRIGHTNESS_VARIABLE_NAME
AnylineDebugListener.BRIGHTNESS_VARIABLE_CLASS
at.nineyards.anyline.camera.AnylineView
AnylineController
via the ImageProvider Interface.AnylineDebugListener.CONTOURS_VARIABLE_NAME
AnylineDebugListener.CONTOURS_VARIABLE_CLASS
AnylineDebugListener.DEVICE_ACCELERATION_VARIABLE_NAME
AnylineDebugListener.DEVICE_ACCELERATION_VARIABLE_CLASS
DocumentScanResultListener#onPreviewProcessingFailure(DocumentError)
and
+ DocumentScanResultListener#onPictureProcessingFailure(DocumentError)
.DocumentScanViewPlugin.setDocumentRatios(Double...)
CameraConfig
insteadCameraConfig
insteadBarcodeScanViewPlugin
MrzFieldScanOptions.getVizAddress()
MrzIdentification.getVizAddress()
Camera.setDisplayOrientation(int)
+ (just returning the degrees instead of setting them directly).Camera.Parameters.setRotation(int)
+ (just returning the degrees instead of setting them directly).MrzIdentification.getCheckDigitDateOfBirth()
MrzIdentification.getCheckDigitDateOfExpiry()
MrzIdentification.getCheckDigitDocumentNumber()
MrzIdentification.getIssuingCountryCode()
and MrzIdentification.getNationalityCountryCode()
AnylineYuvImage.getFormat()
.MrzFieldScanOptions.getVizDateOfIssue()
MrzIdentification.getVizDateOfIssue()
MrzIdentification.getVizDateOfIssueObject()
DrivingLicenseIdentification.getDateOfBirth()
GermanIdFrontIdentification.getDateOfBirth()
MrzIdentification.getDateOfBirth()
DrivingLicenseIdentification.getDateOfBirthObject()
GermanIdFrontIdentification.getDateOfBirthObject()
MrzIdentification.getDateOfBirthObject()
DrivingLicenseIdentification.getDrivingLicenseString()
DrivingLicenseIdentification.getDateOfExpiry()
GermanIdFrontIdentification.getDateOfExpiry()
MrzIdentification.getDateOfExpiry()
DrivingLicenseIdentification.getDateOfExpiryObject()
MrzIdentification.getDateOfExpiryObject()
AnylineYuvImage.getData()
).DrivingLicenseIdentification.getGivenNames()
GermanIdFrontIdentification.getGivenNames()
DrivingLicenseIdentification.getDateOfIssue()
MrzIdentification.getDateOfIssue()
DrivingLicenseIdentification.getDateOfIssueObject()
MrzIdentification.getDateOfIssueObject()
DrivingLicenseIdentification.getDocumentNumber()
MrzIdentification.getOptionalData()
CameraConfig.getHighResolutionImageSize()
insteadDrivingLicenseIdentification.getSurname()
GermanIdFrontIdentification.getSurname()
MrzIdentification.getSurname()
SAnylineYuvImage
.AnylineController
.MeterScanPlugin
.MeterScanPlugin
OcrScanPlugin
DocumentScanViewPlugin.triggerPictureCornerDetection()
and after a picture was successfully
+ taken from the camera.DocumentScanViewPlugin#transformPicture(AnylineImage, List)
is called.DocumentScanViewPlugin#transformPicture(AnylineImage, List)
Activity.onRequestPermissionsResult(int, String[], int[])
and evaluates if the
+ Camera Permission was given by the user.AnylineScanResult
RunFailure
.DocumentScanResultListener.onPreviewProcessingSuccess(AnylineImage)
and after a picture was successfully taken from
+ the camera.AnylineDebugListener.OUTLINE_VARIABLE_NAME
AnylineDebugListener.OUTLINE_VARIABLE_CLASS
AnylineDebugListener.POLYGON_VARIABLE_NAME
AnylineDebugListener.POLYGON_VARIABLE_CLASS
ScanPlugin
s, to receive intermediate information.ScanPlugin
s, to receive the results.ScanPlugin
s, to receive information on why an image has been skipped (reached no result).AnylineWebView
and the FlashView
.ScanView
.#setVizAddress(FieldScanOption)
MrzIdentification.setVizAddress(String)
Camera.setDisplayOrientation(int)
.MrzIdentification.setCheckDigitDateOfBirth(String)
MrzIdentification.setCheckDigitDateOfExpiry(String)
MrzIdentification.setCheckDigitDocumentNumber(String)
MrzIdentification.setIssuingCountryCode(String)
()} and MrzIdentification.setNationalityCountryCode(String)
#setVizDateOfIssue(FieldScanOption)
MrzIdentification.setVizDateOfIssue(String)
DrivingLicenseIdentification.setDateOfBirth(String)
GermanIdFrontIdentification.setDateOfBirth(String)
MrzIdentification.setDateOfBirth(String)
()}DrivingLicenseIdentification.setDrivingLicenseString(String)
DrivingLicenseIdentification.setDateOfExpiry(String)
GermanIdFrontIdentification.setDateOfExpiry(String)
MrzIdentification.setDateOfExpiry(String)
CameraConfig
together with CameraView.setPreferredCameraConfig(CameraConfig)
DrivingLicenseIdentification.setGivenNames(String)
GermanIdFrontIdentification.setGivenNames(String)
CameraController.takeHighResolutionImage()
method.CameraView.takeHighResolutionImage()
method.HighResolutionImageProvider.takeHighResolutionImage()
method.DrivingLicenseIdentification.setDateOfIssue(String)
MrzIdentification.setDateOfIssue(String)
DrivingLicenseIdentification.setDocumentNumber(String)
AnylineOcrConfig.ScanMode.LINE
).MrzIdentification.setOptionalData(String)
()}CameraConfig
together with CameraView.setPreferredCameraConfig(CameraConfig)
CameraConfig
together with CameraView.setPreferredCameraConfig(CameraConfig)
BaseScanViewConfig
for cameraView and the flashView configurationsAbstractScanViewPlugin
CameraConfig
together with CameraView.setPreferredCameraConfig(CameraConfig)
DrivingLicenseIdentification.setSurname(String)
GermanIdFrontIdentification.setSurname(String)
MrzIdentification.setSurname(String)
()}AnylineDebugListener.SHARPNESS_VARIABLE_NAME
AnylineDebugListener.SHARPNESS_VARIABLE_CLASS
AnylineDebugListener.SQUARE_VARIABLE_NAME
AnylineDebugListener.SQUARE_VARIABLE_CLASS
HighResolutionImageListener.onImageTaken(AnylineImage)
after the
+ image is taken successfully.HighResolutionImageListener.onImageTaken(AnylineImage)
after the
+ image is taken successfully.HighResolutionImageListener.onImageTaken(AnylineImage)
after the
+ image is taken successfully.AnylineDebugListener.THRESHOLD_IMAGE_VARIABLE_NAME
AnylineDebugListener.THRESHOLD_IMAGE_VARIABLE_CLASS
BarcodeScanViewPlugin
"[lower, upper]"
."WxH"
ResultType
- the type of the resultpublic abstract class AbstractScanPlugin<ResultType extends ScanResult> +extends java.lang.Object +implements ScanPlugin<ResultType>+
+ An abstract implementation of the ScanPlugin
interface,
+ that provides useful stuff for Plugins that use the AnylineController
.
+
+ This class is in ALPHA state and may change in a future version. +
Constructor and Description | +
---|
AbstractScanPlugin(android.content.Context context,
+ java.lang.String id,
+ java.lang.String anylineAssetsJsonPath,
+ java.lang.String cmdFileName,
+ java.lang.String pathInAssets) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+addScanInfoListener(ScanInfoListener listener)
+Add a listener that is called with intermediate processing information.
+ |
+
void |
+addScanResultListener(ScanResultListener<ResultType> listener)
+Add a listener that is called if a result is found.
+ |
+
void |
+addScanRunSkippedListener(ScanRunSkippedListener listener)
+Add a listener that is called if an image was skipped (did not produce a result) with the reason for skipping.
+ |
+
void |
+cancelController() |
+
AnylineController |
+getAnylineController()
+Get the anyline controller (the underlying entity that controls the image processing).
+ |
+
AssetController |
+getAssetController() |
+
java.lang.String |
+getAssetPath() |
+
java.lang.String |
+getId() |
+
ImageProvider |
+getImageProvider() |
+
abstract java.lang.String |
+getModuleIdentifier() |
+
abstract java.lang.String |
+getProductName() |
+
boolean |
+isRunning() |
+
void |
+removeArgumentExceptionListener() |
+
void |
+removeScanInfoListener(ScanInfoListener listener)
+Remove the given info listener.
+ |
+
void |
+removeScanResultListener(ScanResultListener<ResultType> listener)
+Remove the given info listener.
+ |
+
void |
+removeScanRunSkippedListener(ScanRunSkippedListener listener)
+Remove an info listener.
+ |
+
void |
+setArgumentExceptionListener(WorkerRunnableExceptionListener workerRunnableExceptionListener) |
+
void |
+setAssetPath(java.lang.String assetPath) |
+
void |
+setCancelOnResult(boolean isCancelOnResult)
+
+ If set to true (default) the scanning is stopped automatically when a result is found.
+ |
+
void |
+setCmdFileName(java.lang.String cmdFileName) |
+
void |
+setCropRect(android.graphics.RectF cutoutRect) |
+
void |
+setDebug(boolean isDebug)
+Enable/Disables debug output.
+ |
+
void |
+setDelayScanTime(double delayScanTime) |
+
void |
+setId(java.lang.String id) |
+
void |
+setImageProvider(ImageProvider imageProvider)
+Set the provider, where the plugin can get the images from.
+ |
+
void |
+setReportingEnabled(boolean isReportingEnabled)
+Enable the reporting of results, including the photo of a scanned item.
+ |
+
void |
+start()
+Start the processing of the plugin
+ |
+
void |
+stop()
+Stop the processing of the plugin
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public AbstractScanPlugin(android.content.Context context, + java.lang.String id, + java.lang.String anylineAssetsJsonPath, + java.lang.String cmdFileName, + java.lang.String pathInAssets)+
context
- the contextid
- the identifier this plugin should useanylineAssetsJsonPath
- the path to the "anyline_assets.json" for this plugincmdFileName
- the name of the alc/ale file to use for scanningpathInAssets
- the path where the alc/ale can be foundpublic abstract java.lang.String getProductName()+
public java.lang.String getId()+
getId
in interface ScanPlugin<ResultType extends ScanResult>
public void setId(java.lang.String id)+
public void setImageProvider(ImageProvider imageProvider)+
ScanPlugin
setImageProvider
in interface ScanPlugin<ResultType extends ScanResult>
public ImageProvider getImageProvider()+
getImageProvider
in interface ScanPlugin<ResultType extends ScanResult>
public void addScanResultListener(ScanResultListener<ResultType> listener)+
ScanPlugin
addScanResultListener
in interface ScanPlugin<ResultType extends ScanResult>
listener
- the result listenerpublic void removeScanResultListener(ScanResultListener<ResultType> listener)+
ScanPlugin
removeScanResultListener
in interface ScanPlugin<ResultType extends ScanResult>
listener
- the result listener to removepublic void addScanInfoListener(ScanInfoListener listener)+
ScanPlugin
addScanInfoListener
in interface ScanPlugin<ResultType extends ScanResult>
listener
- the info listenerpublic void removeScanInfoListener(ScanInfoListener listener)+
ScanPlugin
removeScanInfoListener
in interface ScanPlugin<ResultType extends ScanResult>
listener
- the info listener to removepublic void addScanRunSkippedListener(ScanRunSkippedListener listener)+
ScanPlugin
addScanRunSkippedListener
in interface ScanPlugin<ResultType extends ScanResult>
listener
- the listener to be called if an image was skippedpublic void removeScanRunSkippedListener(ScanRunSkippedListener listener)+
ScanPlugin
removeScanRunSkippedListener
in interface ScanPlugin<ResultType extends ScanResult>
listener
- the listener to removepublic void setDelayScanTime(double delayScanTime)+
public void start()+
ScanPlugin
start
in interface ScanPlugin<ResultType extends ScanResult>
public void setCmdFileName(java.lang.String cmdFileName)+
public void stop()+
ScanPlugin
stop
in interface ScanPlugin<ResultType extends ScanResult>
public void cancelController()+
public boolean isRunning()+
public void setReportingEnabled(boolean isReportingEnabled)+
+ This setting can be overruled by your license. If your license has reporting set to off, setting this flag + will have no effect. This is also the case if your license has reporting set to on. +
isReportingEnabled
- true to enable reporting (default for community edition)public void setCancelOnResult(boolean isCancelOnResult)+ +
public void setDebug(boolean isDebug)+
isDebug
- true if debug output should be enabled, false otherwisepublic AnylineController getAnylineController()+
public void setCropRect(android.graphics.RectF cutoutRect)+
public java.lang.String getAssetPath()+
public void setAssetPath(java.lang.String assetPath)+
public AssetController getAssetController()+
public void setArgumentExceptionListener(WorkerRunnableExceptionListener workerRunnableExceptionListener)+
public void removeArgumentExceptionListener()+
public abstract java.lang.String getModuleIdentifier()+
getModuleIdentifier
in interface ScanPlugin<ResultType extends ScanResult>
public class ScanInfo
+extends java.lang.Object
++ The ScanInfo holds intermediate information that may arise during scanning. +
+ This class is in ALPHA state and may change in a future version. +
Constructor and Description | +
---|
ScanInfo(java.lang.String pluginId,
+ java.lang.String key,
+ java.lang.Object value)
+Create new scan information.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.String |
+getKey() |
+
java.lang.String |
+getPluginId() |
+
java.lang.Object |
+getValue() |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ScanInfo(java.lang.String pluginId, + java.lang.String key, + java.lang.Object value)+
pluginId
- the id of the plugin where this information arosekey
- the key to identify the information itselfvalue
- the value of the infopublic java.lang.String getPluginId()+
public java.lang.String getKey()+
public java.lang.Object getValue()+
public interface ScanInfoListener
+
+ A listener that can be added to ScanPlugin
s, to receive intermediate information.
+
+ This interface is in ALPHA state and may change in a future version. +
Modifier and Type | +Method and Description | +
---|---|
void |
+onInfo(ScanInfo info)
+Is called whenever new intermediate information is available.
+ |
+
ResultType
- the type of the result (the T in ScanResult
<T>)public interface ScanPlugin<ResultType extends ScanResult>
++ An interface for plugins that are capable of scanning things from images. +
+ This interface is in ALPHA state and may change in a future version. +
Modifier and Type | +Method and Description | +
---|---|
void |
+addScanInfoListener(ScanInfoListener listener)
+Add a listener that is called with intermediate processing information.
+ |
+
void |
+addScanResultListener(ScanResultListener<ResultType> listener)
+Add a listener that is called if a result is found.
+ |
+
void |
+addScanRunSkippedListener(ScanRunSkippedListener listener)
+Add a listener that is called if an image was skipped (did not produce a result) with the reason for skipping.
+ |
+
java.lang.String |
+getId() |
+
ImageProvider |
+getImageProvider() |
+
java.lang.String |
+getModuleIdentifier() |
+
void |
+removeScanInfoListener(ScanInfoListener listener)
+Remove the given info listener.
+ |
+
void |
+removeScanResultListener(ScanResultListener<ResultType> listener)
+Remove the given info listener.
+ |
+
void |
+removeScanRunSkippedListener(ScanRunSkippedListener listener)
+Remove an info listener.
+ |
+
void |
+setImageProvider(ImageProvider imageProvider)
+Set the provider, where the plugin can get the images from.
+ |
+
void |
+start()
+Start the processing of the plugin
+ |
+
void |
+stop()
+Stop the processing of the plugin
+ |
+
java.lang.String getId()+
void addScanResultListener(ScanResultListener<ResultType> listener)+
listener
- the result listenervoid removeScanResultListener(ScanResultListener<ResultType> listener)+
listener
- the result listener to removevoid addScanInfoListener(ScanInfoListener listener)+
listener
- the info listenervoid removeScanInfoListener(ScanInfoListener listener)+
listener
- the info listener to removevoid addScanRunSkippedListener(ScanRunSkippedListener listener)+
listener
- the listener to be called if an image was skippedvoid removeScanRunSkippedListener(ScanRunSkippedListener listener)+
listener
- the listener to removevoid setImageProvider(ImageProvider imageProvider)+
imageProvider
- ImageProvider getImageProvider()+
java.lang.String getModuleIdentifier()+
void start()+
void stop()+
public class ScanResult<T> +extends AnylineScanResult<T>+
+ This is the base class for all plugin result classes. +
+ It holds the outline of the detected text, the confidence of the result, as well as the cutout image and the + full frame the scanning was performed on.
++ This interface is in ALPHA state and may change in a future version. +
Constructor and Description | +
---|
ScanResult(java.lang.String pluginId,
+ java.util.List<android.graphics.PointF> outline,
+ java.lang.Integer confidence,
+ AnylineImage cutoutImage,
+ AnylineImage fullImage,
+ AnylineImage faceImage,
+ T result) |
+
ScanResult(java.lang.String pluginId,
+ java.util.List<android.graphics.PointF> outline,
+ java.lang.Integer confidence,
+ AnylineImage cutoutImage,
+ AnylineImage fullImage,
+ T result) |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.String |
+getPluginId() |
+
getConfidence, getCutoutImage, getFaceImage, getFullImage, getOutline, getResult, setOutline
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ScanResult(@Nullable + java.lang.String pluginId, + @Nullable + java.util.List<android.graphics.PointF> outline, + @Nullable + java.lang.Integer confidence, + @Nullable + AnylineImage cutoutImage, + @Nullable + AnylineImage fullImage, + @NonNull + T result)+
public ScanResult(@Nullable + java.lang.String pluginId, + @Nullable + java.util.List<android.graphics.PointF> outline, + @Nullable + java.lang.Integer confidence, + @Nullable + AnylineImage cutoutImage, + @Nullable + AnylineImage fullImage, + @Nullable + AnylineImage faceImage, + @NonNull + T result)+
public interface ScanResultListener<T extends ScanResult>
+
+ A listener that can be added to ScanPlugin
s, to receive the results.
+
+ This interface is in ALPHA state and may change in a future version. +
Modifier and Type | +Method and Description | +
---|---|
void |
+onResult(T result) |
+
public interface ScanRunSkippedListener
+
+ A listener that can be added to ScanPlugin
s, to receive information on why an image has been skipped (reached no result).
+
+ This interface is in ALPHA state and may change in a future version. +
Modifier and Type | +Method and Description | +
---|---|
void |
+onRunSkipped(ScanRunSkippedReason reason)
+Is called when an image is skipped (when it is not possible to reach a result for the current image)
+ |
+
void onRunSkipped(ScanRunSkippedReason reason)+
reason
- the reason for the skippingpublic class ScanRunSkippedReason
+extends java.lang.Object
++ The ScanRunSkippedReason holds the reason, why the processing of an image has been skipped (did not reach a result). +
+ This class is in ALPHA state and may change in a future version. +
Constructor and Description | +
---|
ScanRunSkippedReason(java.lang.String pluginId,
+ int code,
+ java.lang.String text)
+Create a new skip reason.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
int |
+getCode() |
+
java.lang.String |
+getPluginId() |
+
java.lang.String |
+getText() |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ScanRunSkippedReason(java.lang.String pluginId, + int code, + java.lang.String text)+
pluginId
- the id of the plugin that skipped an imagecode
- the code of the reason for the skippingtext
- the reason of the skipping as readable english textpublic java.lang.String getPluginId()+
public int getCode()+
public java.lang.String getText()+
public class Barcode
+extends java.lang.Object
+Modifier and Type | +Method and Description | +
---|---|
BarcodeFormat |
+getBarcodeFormat() |
+
java.util.List<Point> |
+getCoordinates() |
+
java.lang.String |
+getValue() |
+
void |
+setBarcodeFormat(BarcodeFormat barcodeFormat) |
+
void |
+setCoordinates(java.util.List<Point> coordinates) |
+
void |
+setValue(java.lang.String value) |
+
org.json.JSONObject |
+toJSONObject() |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public java.lang.String getValue()+
public void setValue(java.lang.String value)+
@NonNull +public BarcodeFormat getBarcodeFormat()+
public java.util.List<Point> getCoordinates()+
@NonNull +public void setBarcodeFormat(BarcodeFormat barcodeFormat)+
@NonNull +public void setCoordinates(java.util.List<Point> coordinates)+
public org.json.JSONObject toJSONObject()+
public enum BarcodeFormat +extends java.lang.Enum<BarcodeFormat>+
+ An enum for available Barcode Formats that can be detected by the BarcodeScanPlugin
+
+ Note that UNKNOWN
is only used as a return type,
+ and will have no effect if set as input.
+
Enum Constant and Description | +
---|
AZTEC |
+
AZTEC_INVERSE |
+
BOOKLAND |
+
CODABAR |
+
CODE_11 |
+
CODE_128 |
+
CODE_32 |
+
CODE_39 |
+
CODE_93 |
+
COUPON |
+
DATA_MATRIX |
+
DATABAR |
+
DISCRETE_2_5 |
+
DOT_CODE |
+
EAN_13 |
+
EAN_8 |
+
GS1_128 |
+
GS1_QR_CODE |
+
ISBT_128 |
+
ISSN_EAN |
+
ITF |
+
KIX |
+
MATRIX_2_5 |
+
MICRO_PDF |
+
MICRO_QR |
+
MSI |
+
ONE_D_INVERSE |
+
PDF_417 |
+
POST_UK |
+
QR_CODE |
+
QR_CODE_INVERSE |
+
RSS_14 |
+
RSS_EXPANDED |
+
TRIOPTIC |
+
UNKNOWN |
+
UPC_A |
+
UPC_E |
+
UPU_FICS |
+
US_PLANET |
+
US_POSTNET |
+
USPS_4CB |
+
Modifier and Type | +Method and Description | +
---|---|
static BarcodeFormat |
+fromBarcodeScanViewBarcodeFormat(BarcodeFormat barcodeFormat)
+Get the enum value from the old enum inside the
+BarcodeScanViewPlugin |
+
static int |
+toBarcodeFormatInt(BarcodeFormat barcodeFormat)
+Get the enum value from the old enum inside the
+BarcodeScanViewPlugin |
+
java.lang.String |
+toString() |
+
static BarcodeFormat |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static BarcodeFormat[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final BarcodeFormat ONE_D_INVERSE+
public static final BarcodeFormat AZTEC+
public static final BarcodeFormat AZTEC_INVERSE+
public static final BarcodeFormat BOOKLAND+
public static final BarcodeFormat CODABAR+
public static final BarcodeFormat CODE_11+
public static final BarcodeFormat CODE_32+
public static final BarcodeFormat CODE_39+
public static final BarcodeFormat CODE_93+
public static final BarcodeFormat CODE_128+
public static final BarcodeFormat DATABAR+
public static final BarcodeFormat COUPON+
public static final BarcodeFormat DATA_MATRIX+
public static final BarcodeFormat DISCRETE_2_5+
public static final BarcodeFormat DOT_CODE+
public static final BarcodeFormat EAN_8+
public static final BarcodeFormat EAN_13+
public static final BarcodeFormat GS1_QR_CODE+
public static final BarcodeFormat GS1_128+
public static final BarcodeFormat ITF+
public static final BarcodeFormat ISSN_EAN+
public static final BarcodeFormat ISBT_128+
public static final BarcodeFormat KIX+
public static final BarcodeFormat MATRIX_2_5+
public static final BarcodeFormat MSI+
public static final BarcodeFormat MICRO_QR+
public static final BarcodeFormat MICRO_PDF+
public static final BarcodeFormat PDF_417+
public static final BarcodeFormat POST_UK+
public static final BarcodeFormat QR_CODE+
public static final BarcodeFormat QR_CODE_INVERSE+
public static final BarcodeFormat RSS_14+
public static final BarcodeFormat RSS_EXPANDED+
public static final BarcodeFormat TRIOPTIC+
public static final BarcodeFormat UPC_A+
public static final BarcodeFormat UPC_E+
public static final BarcodeFormat UPU_FICS+
public static final BarcodeFormat USPS_4CB+
public static final BarcodeFormat US_PLANET+
public static final BarcodeFormat US_POSTNET+
public static final BarcodeFormat UNKNOWN+
public static BarcodeFormat[] values()+
+for (BarcodeFormat c : BarcodeFormat.values()) + System.out.println(c); +
public static BarcodeFormat valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()+
toString
in class java.lang.Enum<BarcodeFormat>
public static BarcodeFormat fromBarcodeScanViewBarcodeFormat(BarcodeFormat barcodeFormat)+
BarcodeScanViewPlugin
barcodeFormat
- the old enum valuepublic static int toBarcodeFormatInt(BarcodeFormat barcodeFormat)+
BarcodeScanViewPlugin
barcodeFormat
- the old enum valuepublic class BarcodeScanPlugin +extends AbstractScanPlugin<BarcodeScanResult>+
+ The Anyline Barcode Plugin scans bar- and qr-codes. +
+ This plugin is in ALPHA state and may change in a future version. +
Constructor and Description | +
---|
BarcodeScanPlugin(android.content.Context context,
+ java.lang.String id) |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.List<BarcodeFormat> |
+getBarcodeFormat() |
+
ImageProvider |
+getImageProvider() |
+
java.lang.String |
+getModuleIdentifier() |
+
java.lang.String |
+getProductName() |
+
void |
+setBarcodeFormats(BarcodeFormat... formats)
+Set all the barcode formats that should be supported (or null to set back to all supported types).
+ |
+
void |
+setMultiBarcode(boolean multiBarcode) |
+
void |
+setScanMode(io.anyline.plugin.barcode.BarcodeScanPlugin.ScanMode scanMode) |
+
void |
+start()
+Start the processing of the plugin
+ |
+
addScanInfoListener, addScanResultListener, addScanRunSkippedListener, cancelController, getAnylineController, getAssetController, getAssetPath, getId, isRunning, removeArgumentExceptionListener, removeScanInfoListener, removeScanResultListener, removeScanRunSkippedListener, setArgumentExceptionListener, setAssetPath, setCancelOnResult, setCmdFileName, setCropRect, setDebug, setDelayScanTime, setId, setImageProvider, setReportingEnabled, stop
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BarcodeScanPlugin(android.content.Context context, + java.lang.String id)+
public void setBarcodeFormats(BarcodeFormat... formats)+
formats
- all the supported formatspublic java.util.List<BarcodeFormat> getBarcodeFormat()+
public java.lang.String getProductName()+
getProductName
in class AbstractScanPlugin<BarcodeScanResult>
public ImageProvider getImageProvider()+
getImageProvider
in interface ScanPlugin<BarcodeScanResult>
getImageProvider
in class AbstractScanPlugin<BarcodeScanResult>
public java.lang.String getModuleIdentifier()+
getModuleIdentifier
in interface ScanPlugin<BarcodeScanResult>
getModuleIdentifier
in class AbstractScanPlugin<BarcodeScanResult>
public void setScanMode(io.anyline.plugin.barcode.BarcodeScanPlugin.ScanMode scanMode)+
public void setMultiBarcode(boolean multiBarcode)+
public void start()+
ScanPlugin
start
in interface ScanPlugin<BarcodeScanResult>
start
in class AbstractScanPlugin<BarcodeScanResult>
public class BarcodeScanResult +extends ScanResult<java.util.List<Barcode>>+
Constructor and Description | +
---|
BarcodeScanResult(java.lang.String pluginId,
+ java.util.List<android.graphics.PointF> outline,
+ java.lang.Integer confidence,
+ AnylineImage cutoutImage,
+ AnylineImage fullImage,
+ java.util.List<Barcode> result) |
+
getPluginId
getConfidence, getCutoutImage, getFaceImage, getFullImage, getOutline, getResult, setOutline
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BarcodeScanResult(@Nullable + java.lang.String pluginId, + @Nullable + java.util.List<android.graphics.PointF> outline, + @Nullable + java.lang.Integer confidence, + @Nullable + AnylineImage cutoutImage, + @Nullable + AnylineImage fullImage, + @NonNull + java.util.List<Barcode> result)+
public class BarcodeScanViewPlugin +extends AbstractScanViewPlugin+
The Anyline Barcode scans bar- and qr-codes.
Constructor and Description | +
---|
BarcodeScanViewPlugin(android.content.Context context,
+ AbstractScanPlugin scanPlugin,
+ ScanViewPluginConfig config) |
+
BarcodeScanViewPlugin(android.content.Context context,
+ ScanViewPluginConfig config,
+ java.lang.String id) |
+
Modifier and Type | +Method and Description | +
---|---|
boolean |
+isMultiBarcodeEnabled()
+Check if multi barcode is enabled
+ |
+
void |
+setBarcodeFormats(BarcodeFormat... formats)
+Set all the barcode formats that should be supported (or null to set back to all supported types).
+ |
+
void |
+setMultiBarcode(boolean multiBarcode)
+Enable multi barcode
+ Gives the possibility to scan more than one barcode within the cutout
+ |
+
addScanInfoListener, addScanResultListener, addScanRunSkippedListener, addUIConfigChangedListener, calcCutOutAndImageCropBounds, getAllScanViewPlugins, getCancelOnResult, getCutoutRect, getId, getScanPlugin, getScanViewPluginConfig, removeScanInfoListener, removeScanResultListener, removeScanRunSkippedListener, removeUIConfigChangedListener, setCancelOnResult, setCropRect, setDelayScanTime, setImageProvider, start, stop
setDebugListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BarcodeScanViewPlugin(@NonNull + android.content.Context context, + @NonNull + AbstractScanPlugin scanPlugin, + @NonNull + ScanViewPluginConfig config)+
public BarcodeScanViewPlugin(@NonNull + android.content.Context context, + @NonNull + ScanViewPluginConfig config, + java.lang.String id)+
public void setBarcodeFormats(BarcodeFormat... formats)+
formats
- all the supported formatspublic void setMultiBarcode(boolean multiBarcode)+
multiBarcode
- public boolean isMultiBarcodeEnabled()+
Class | +Description | +
---|---|
Barcode | ++ |
BarcodeScanPlugin | +
+ Anyline Barcode Plugin
+ |
+
BarcodeScanResult | ++ |
BarcodeScanViewPlugin | +
+ Anyline Barcode View
+ |
+
Enum | +Description | +
---|---|
BarcodeFormat | +
+
+ An enum for available Barcode Formats that can be detected by the
+BarcodeScanPlugin |
+
public interface DocumentNotifierListener
+Modifier and Type | +Method and Description | +
---|---|
void |
+notifyCamera() |
+
void |
+notifyDrawDocumentFeedback(java.util.List<android.graphics.PointF> points) |
+
void |
+notifyTakeHighPictureResolution(CombinedImageProvider combinedImageProvider) |
+
void notifyCamera()+
void notifyDrawDocumentFeedback(java.util.List<android.graphics.PointF> points)+
void notifyTakeHighPictureResolution(CombinedImageProvider combinedImageProvider)+
public class DocumentScanPlugin +extends AbstractScanPlugin<ScanResult<AnylineImage>>+
The Anyline Document-Plugin detects documents and takes a photo for further processing.
Constructor and Description | +
---|
DocumentScanPlugin(android.content.Context context,
+ java.lang.String id) |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.Integer |
+getContourBorder() |
+
AnylineImage |
+getCurrentCroppedImage() |
+
Polygon |
+getCurrentDocPolygon() |
+
Square |
+getCurrentDocSquare() |
+
AnylineImage |
+getFullImage() |
+
java.lang.String |
+getModuleIdentifier() |
+
boolean |
+getPostProcessingEnabled()
+Returns true if post processing is enabled.
+ |
+
java.lang.String |
+getProductName() |
+
java.lang.Float |
+getResizeWidth() |
+
DocumentScanState |
+getScanState() |
+
AnylineImage |
+getTransformedImage() |
+
boolean |
+isBrightnessValid() |
+
boolean |
+isCancelOnResult() |
+
static java.util.List<android.graphics.PointF> |
+pointsFromSquare(Square square) |
+
void |
+setCancelOnResult(boolean isCancelOnResult)
+
+ If set to true (default) the scanning is stopped automatically when a result is found.
+ |
+
void |
+setDocumentNotifierListener(DocumentNotifierListener listener) |
+
void |
+setDocumentRatios(java.lang.Double... ratios)
+Sets custom document ratios that should be supported (or null to set back to all supported types).
+ |
+
void |
+setImageProvider(ImageProvider imageProvider)
+Set the provider, where the plugin can get the images from.
+ |
+
void |
+setMaxDocumentOutputResolution(java.lang.Double width,
+ java.lang.Double height)
+Set the maximum output resolution of the document.
+ |
+
void |
+setMaxDocumentRatioDeviation(java.lang.Double deviation)
+Set the maximum ratio deviation of the document.
+ |
+
void |
+setMinBrightness(float minBrightness)
+Set the minimum brightness (default is 60).
+ |
+
void |
+setPostProcessingEnabled(boolean enabled)
+If enabled, starts post processing after a full document snap.
+ |
+
void |
+setSkipImages(boolean skip)
+Set to true to skip images until this is reset
+ (can be used to avoid processing, e.g.
+ |
+
void |
+start()
+Start the processing of the plugin
+ |
+
void |
+transformPicture(AnylineImage fullImage,
+ java.util.List<android.graphics.PointF> corners)
+Transforms an image of a document to a frontal view.
+ |
+
void |
+triggerPictureCornerDetection()
+Triggers corner detection on the high resolution picture taken by the camera.
+ |
+
addScanInfoListener, addScanResultListener, addScanRunSkippedListener, cancelController, getAnylineController, getAssetController, getAssetPath, getId, getImageProvider, isRunning, removeArgumentExceptionListener, removeScanInfoListener, removeScanResultListener, removeScanRunSkippedListener, setArgumentExceptionListener, setAssetPath, setCmdFileName, setCropRect, setDebug, setDelayScanTime, setId, setReportingEnabled, stop
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public DocumentScanPlugin(android.content.Context context, + java.lang.String id)+
public java.lang.String getProductName()+
getProductName
in class AbstractScanPlugin<ScanResult<AnylineImage>>
public void setImageProvider(@NonNull + ImageProvider imageProvider)+
ScanPlugin
setImageProvider
in interface ScanPlugin<ScanResult<AnylineImage>>
setImageProvider
in class AbstractScanPlugin<ScanResult<AnylineImage>>
public java.lang.String getModuleIdentifier()+
getModuleIdentifier
in interface ScanPlugin<ScanResult<AnylineImage>>
getModuleIdentifier
in class AbstractScanPlugin<ScanResult<AnylineImage>>
public void setDocumentRatios(java.lang.Double... ratios)+
ratios
- all supported formatspublic void setMaxDocumentRatioDeviation(java.lang.Double deviation)+
deviation
- the new maximum deviation.public void setMaxDocumentOutputResolution(java.lang.Double width, + java.lang.Double height)+
width
- the new maximum width.height
- the new maximum height.public void setCancelOnResult(boolean isCancelOnResult)+
AbstractScanPlugin
+ If set to true (default) the scanning is stopped automatically when a result is found. (User needs to call
+ AbstractScanPlugin.start()
again to continue scanning.)
+ If set to false the scanning goes on forever until AbstractScanPlugin.stop()
is called manually.
+
setCancelOnResult
in class AbstractScanPlugin<ScanResult<AnylineImage>>
public boolean isCancelOnResult()+
public void setSkipImages(boolean skip)+
skip
- true to skip, false to continuepublic void setMinBrightness(float minBrightness)+
minBrightness
- the new minimum brightness.public DocumentScanState getScanState()+
public Polygon getCurrentDocPolygon()+
public java.lang.Float getResizeWidth()+
public java.lang.Integer getContourBorder()+
public Square getCurrentDocSquare()+
public boolean isBrightnessValid()+
public AnylineImage getCurrentCroppedImage()+
public AnylineImage getTransformedImage()+
public AnylineImage getFullImage()+
public void start()+
ScanPlugin
start
in interface ScanPlugin<ScanResult<AnylineImage>>
start
in class AbstractScanPlugin<ScanResult<AnylineImage>>
public void transformPicture(AnylineImage fullImage, + java.util.List<android.graphics.PointF> corners)+
DocumentScanResultListener.onPictureTransformed(AnylineImage)
.
+ When an error during the transformation occurs, a callback will be triggered in
+ DocumentScanResultListener.onPictureTransformError(DocumentScanViewPlugin.DocumentError)
.fullImage
- The image of the document, that will be transformed.corners
- The corners based on which the image will be transformed. The order needs to be:
+ upLeft, upRight, downRight, downLeftpublic void triggerPictureCornerDetection()+
DocumentScanResultListener.onPictureCornersDetected(AnylineImage, List)
.@NonNull +public static java.util.List<android.graphics.PointF> pointsFromSquare(Square square)+
public void setPostProcessingEnabled(boolean enabled)+
enabled
- post processing enabledpublic boolean getPostProcessingEnabled()+
public void setDocumentNotifierListener(DocumentNotifierListener listener)+
public interface DocumentScanResultListener<T extends ScanResult> +extends ScanResultListener<T>+
Modifier and Type | +Method and Description | +
---|---|
boolean |
+onDocumentOutlineDetected(java.util.List<android.graphics.PointF> corners,
+ boolean documentShapeAndBrightnessValid)
+Called when the outline of a possible document is detected.
+ |
+
void |
+onPictureCornersDetected(AnylineImage fullFrame,
+ java.util.List<android.graphics.PointF> corners)
+Called after
+DocumentScanViewPlugin.triggerPictureCornerDetection() and after a picture was successfully
+ taken from the camera. |
+
void |
+onPictureProcessingFailure(DocumentScanViewPlugin.DocumentError error)
+Called if the run on the full frame was unsuccessful.
+ |
+
void |
+onPictureTransformed(AnylineImage transformedImage)
+Called after
+DocumentScanViewPlugin#transformPicture(AnylineImage, List is called. |
+
void |
+onPictureTransformError(DocumentScanViewPlugin.DocumentError error)
+Called if an error occured during the transformation triggered by
+
+DocumentScanViewPlugin#transformPicture(AnylineImage, List |
+
void |
+onPreviewProcessingFailure(DocumentScanViewPlugin.DocumentError error)
+Called if the preview run failed on an image.
+ |
+
void |
+onPreviewProcessingSuccess(AnylineImage anylineImage)
+Called if the preview scan detected a sharp and correctly placed document.
+ |
+
void |
+onTakePictureError(java.lang.Throwable error)
+Called if there was an error capturing the picture from the camera.
+ |
+
void |
+onTakePictureSuccess()
+Called after
+onPreviewProcessingSuccess(AnylineImage) and after a picture was successfully taken from
+ the camera. |
+
onResult
void onPreviewProcessingSuccess(AnylineImage anylineImage)+
ScanResultListener.onResult(ScanResult)
,
+ or a
+ onPictureProcessingFailure(DocumentScanViewPlugin.DocumentError)
+ callback call.anylineImage
- The image of the successful preview. The image is cropped to the document outline, but not
+ transformed to remove skew, etc.void onPreviewProcessingFailure(DocumentScanViewPlugin.DocumentError error)+
error
- The error of the preview run.void onPictureProcessingFailure(DocumentScanViewPlugin.DocumentError error)+
error
- The error of the full frame runboolean onDocumentOutlineDetected(java.util.List<android.graphics.PointF> corners, + boolean documentShapeAndBrightnessValid)+
DocumentScanViewPlugin
.
+
+ Return true if your implementation consumed the outline (e.g. drew the outline), or false, if the DocumentScanViewPlugin
should draw the outline.corners
- The list containing the points of the document outlinedocumentShapeAndBrightnessValid
- A boolean indicating if interior angles of the rectangle are within
+ a tolerance (so that it is not skew), the document is fitted well
+ into the screen, and the document outline ratio is valid, and if the
+ image is bright enoughDocumentScanViewPlugin
void onTakePictureSuccess()+
onPreviewProcessingSuccess(AnylineImage)
and after a picture was successfully taken from
+ the camera.
+ The taken picture will be processed after this method call.void onTakePictureError(java.lang.Throwable error)+
error
- The error that was thrown during taking the picturevoid onPictureCornersDetected(AnylineImage fullFrame, + java.util.List<android.graphics.PointF> corners)+
DocumentScanViewPlugin.triggerPictureCornerDetection()
and after a picture was successfully
+ taken from the camera. The picture is processed, and the (possible) document corners are detected and returned.
+ If no document corners are found, the returned corners are set to the image corners.
+ + Important: The document corners returned are relative to the fullFrame
fullFrame
- The image taken from the cameracorners
- The document corners found. The order is: upLeft, upRight, downRight, downLeftvoid onPictureTransformed(AnylineImage transformedImage)+
DocumentScanViewPlugin#transformPicture(AnylineImage, List)
is called. Returns the
+ perspectivelly transformed image.transformedImage
- The image with the perspective transformedvoid onPictureTransformError(DocumentScanViewPlugin.DocumentError error)+
DocumentScanViewPlugin#transformPicture(AnylineImage, List)
error
- The error that was thrown during processingpublic enum DocumentScanState +extends java.lang.Enum<DocumentScanState>+
Enum Constant and Description | +
---|
CORNER_DETECTION |
+
IMAGE_TRANSFORM |
+
PICTURE |
+
PREVIEW |
+
Modifier and Type | +Method and Description | +
---|---|
static DocumentScanState |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static DocumentScanState[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final DocumentScanState PREVIEW+
public static final DocumentScanState PICTURE+
public static final DocumentScanState CORNER_DETECTION+
public static final DocumentScanState IMAGE_TRANSFORM+
public static DocumentScanState[] values()+
+for (DocumentScanState c : DocumentScanState.values()) + System.out.println(c); +
public static DocumentScanState valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static enum DocumentScanViewPlugin.DocumentError +extends java.lang.Enum<DocumentScanViewPlugin.DocumentError>+
+ The errors that are returned in DocumentScanResultListener#onPreviewProcessingFailure(DocumentError)
and
+ DocumentScanResultListener#onPictureProcessingFailure(DocumentError)
.
+
DOCUMENT_OUTLINE_NOT_FOUND
The document outline could not be found in the frame. Note that
+ this can also happen if the frame is too blurryDOCUMENT_SKEW_TOO_HIGH
The document outline was found, but it is skew GLARE_DETECTED
A high amount of glare was detected.IMAGE_TOO_DARK
The brightness of the image was too lowSHAKE_DETECTED
The movement of the device is too highDOCUMENT_NOT_SHARP
The scanned document is detected to be blurryDOCUMENT_BOUNDS_OUTSIDE_OF_TOLERANCE
Usually if the camera is too far from the documentDOCUMENT_RATIO_OUTSIDE_OF_TOLERANCE
The document has an aspect ratio that is not supportedUNKNOWN
A different errorEnum Constant and Description | +
---|
DOCUMENT_BOUNDS_OUTSIDE_OF_TOLERANCE |
+
DOCUMENT_NOT_SHARP |
+
DOCUMENT_OUTLINE_NOT_FOUND |
+
DOCUMENT_RATIO_OUTSIDE_OF_TOLERANCE |
+
DOCUMENT_SKEW_TOO_HIGH |
+
GLARE_DETECTED |
+
IMAGE_TOO_DARK |
+
SHAKE_DETECTED |
+
UNKNOWN |
+
Modifier and Type | +Method and Description | +
---|---|
static DocumentScanViewPlugin.DocumentError |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static DocumentScanViewPlugin.DocumentError[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final DocumentScanViewPlugin.DocumentError DOCUMENT_OUTLINE_NOT_FOUND+
public static final DocumentScanViewPlugin.DocumentError DOCUMENT_SKEW_TOO_HIGH+
public static final DocumentScanViewPlugin.DocumentError GLARE_DETECTED+
public static final DocumentScanViewPlugin.DocumentError IMAGE_TOO_DARK+
public static final DocumentScanViewPlugin.DocumentError DOCUMENT_NOT_SHARP+
public static final DocumentScanViewPlugin.DocumentError SHAKE_DETECTED+
public static final DocumentScanViewPlugin.DocumentError DOCUMENT_BOUNDS_OUTSIDE_OF_TOLERANCE+
public static final DocumentScanViewPlugin.DocumentError DOCUMENT_RATIO_OUTSIDE_OF_TOLERANCE+
public static final DocumentScanViewPlugin.DocumentError UNKNOWN+
public static DocumentScanViewPlugin.DocumentError[] values()+
+for (DocumentScanViewPlugin.DocumentError c : DocumentScanViewPlugin.DocumentError.values()) + System.out.println(c); +
public static DocumentScanViewPlugin.DocumentError valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static enum DocumentScanViewPlugin.DocumentRatio +extends java.lang.Enum<DocumentScanViewPlugin.DocumentRatio>+
+ Pre-defined document ratios to be set with DocumentScanViewPlugin.setDocumentRatios(Double...)
+ Note the document ratios are implemented for convenience. You can always pass your own document ratios
+ to DocumentScanViewPlugin.setDocumentRatios(Double...)
+
Enum Constant and Description | +
---|
BUSINESS_CARD_LANDSCAPE |
+
BUSINESS_CARD_PORTRAIT |
+
COMPLIMENTS_SLIP_LANDSCAPE |
+
COMPLIMENTS_SLIP_PORTRAIT |
+
DIN_AX_LANDSCAPE |
+
DIN_AX_PORTRAIT |
+
LETTER_LANDSCAPE |
+
LETTER_PORTRAIT |
+
Modifier and Type | +Method and Description | +
---|---|
double |
+getRatio() |
+
static DocumentScanViewPlugin.DocumentRatio |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static DocumentScanViewPlugin.DocumentRatio[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final DocumentScanViewPlugin.DocumentRatio DIN_AX_LANDSCAPE+
public static final DocumentScanViewPlugin.DocumentRatio DIN_AX_PORTRAIT+
public static final DocumentScanViewPlugin.DocumentRatio COMPLIMENTS_SLIP_LANDSCAPE+
public static final DocumentScanViewPlugin.DocumentRatio COMPLIMENTS_SLIP_PORTRAIT+
public static final DocumentScanViewPlugin.DocumentRatio BUSINESS_CARD_LANDSCAPE+
public static final DocumentScanViewPlugin.DocumentRatio BUSINESS_CARD_PORTRAIT+
public static final DocumentScanViewPlugin.DocumentRatio LETTER_LANDSCAPE+
public static final DocumentScanViewPlugin.DocumentRatio LETTER_PORTRAIT+
public static DocumentScanViewPlugin.DocumentRatio[] values()+
+for (DocumentScanViewPlugin.DocumentRatio c : DocumentScanViewPlugin.DocumentRatio.values()) + System.out.println(c); +
public static DocumentScanViewPlugin.DocumentRatio valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic double getRatio()+
public class DocumentScanViewPlugin +extends AbstractScanViewPlugin+
Modifier and Type | +Class and Description | +
---|---|
static class |
+DocumentScanViewPlugin.DocumentError
+
+ The errors that are returned in
+DocumentScanResultListener#onPreviewProcessingFailure(DocumentError) and
+ DocumentScanResultListener#onPictureProcessingFailure(DocumentError) . |
+
static class |
+DocumentScanViewPlugin.DocumentRatio
+
+ Pre-defined document ratios to be set with
+setDocumentRatios(Double...) + Note the document ratios are implemented for convenience. |
+
Modifier and Type | +Field and Description | +
---|---|
static java.lang.String |
+COLOR_GREEN |
+
Constructor and Description | +
---|
DocumentScanViewPlugin(android.content.Context context,
+ AbstractScanPlugin scanPlugin,
+ ScanViewPluginConfig config) |
+
DocumentScanViewPlugin(android.content.Context context,
+ ScanViewPluginConfig config,
+ java.lang.String id) |
+
Modifier and Type | +Method and Description | +
---|---|
AnylineImage |
+getCurrentFullImage()
+ALPHA method (may be removed in the future).
+ |
+
boolean |
+getPostProcessingEnabled()
+Returns true if post processing is enabled.
+ |
+
void |
+setDocumentNotifierListener(DocumentNotifierListener listener) |
+
void |
+setDocumentRatios(java.lang.Double... ratios)
+Sets custom document ratios that should be supported (or null to set back to all supported types).
+ |
+
void |
+setMaxDocumentOutputResolution(java.lang.Double width,
+ java.lang.Double height)
+Set the maximum output resolution of the document.
+ |
+
void |
+setMaxDocumentRatioDeviation(java.lang.Double deviation)
+Set the maximum ratio deviation of the document.
+ |
+
void |
+setMinBrightness(float minBrightness)
+Set the minimum brightness (default is 60).
+ |
+
void |
+setPostProcessingEnabled(boolean enabled)
+If enabled, starts post processing after a full document snap.
+ |
+
void |
+setupListenersForScanView() |
+
void |
+start() |
+
void |
+stop() |
+
void |
+transformPicture(AnylineImage fullImage,
+ java.util.List<android.graphics.PointF> corners)
+Transforms an image of a document to a frontal view.
+ |
+
void |
+triggerPictureCornerDetection()
+Triggers corner detection on the high resolution picture taken by the camera.
+ |
+
addScanInfoListener, addScanResultListener, addScanRunSkippedListener, addUIConfigChangedListener, calcCutOutAndImageCropBounds, getAllScanViewPlugins, getCancelOnResult, getCutoutRect, getId, getScanPlugin, getScanViewPluginConfig, removeScanInfoListener, removeScanResultListener, removeScanRunSkippedListener, removeUIConfigChangedListener, setCancelOnResult, setCropRect, setDelayScanTime, setImageProvider
setDebugListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final java.lang.String COLOR_GREEN+
public DocumentScanViewPlugin(@NonNull + android.content.Context context, + @NonNull + AbstractScanPlugin scanPlugin, + @NonNull + ScanViewPluginConfig config)+
public DocumentScanViewPlugin(@NonNull + android.content.Context context, + @NonNull + ScanViewPluginConfig config, + java.lang.String id)+
public void start()+
start
in class AbstractScanViewPlugin
public void stop()+
stop
in class AbstractScanViewPlugin
public void setDocumentRatios(java.lang.Double... ratios)+
ratios
- all supported formatspublic void setMaxDocumentRatioDeviation(java.lang.Double deviation)+
deviation
- the new maximum deviation.public void setMaxDocumentOutputResolution(java.lang.Double width, + java.lang.Double height)+
width
- the new maximum width.height
- the new maximum height.public void setMinBrightness(float minBrightness)+
minBrightness
- the new minimum brightness.public AnylineImage getCurrentFullImage()+
DocumentScanResultListener#onPictureProcessingFailure(DocumentError)
+ to get the image anyway. (e.g. to save it for debugging)
+
+ Note: Returns a copy of the current full frame image. Once the image is not used anymore
+ the AnylineImage.release()
method needs to be called for proper memory
+ management.
+
public void transformPicture(AnylineImage fullImage, + java.util.List<android.graphics.PointF> corners)+
DocumentScanResultListener.onPictureTransformed(AnylineImage)
.
+ When an error during the transformation occurs, a callback will be triggered in
+ DocumentScanResultListener#onPictureTransformError(DocumentError)
.fullImage
- The image of the document, that will be transformed.corners
- The corners based on which the image will be transformed. The order needs to be:
+ upLeft, upRight, downRight, downLeftpublic void setPostProcessingEnabled(boolean enabled)+
enabled
- post processing enabledpublic boolean getPostProcessingEnabled()+
public void triggerPictureCornerDetection()+
DocumentScanResultListener.onPictureCornersDetected(AnylineImage, List)
.public void setupListenersForScanView()+
public void setDocumentNotifierListener(DocumentNotifierListener listener)+
Interface | +Description | +
---|---|
DocumentNotifierListener | ++ |
DocumentScanResultListener<T extends ScanResult> | +
+ Created by peter on 18/06/18.
+ |
+
Class | +Description | +
---|---|
DocumentScanPlugin | +
+ Anyline Document Plugin
+ |
+
DocumentScanViewPlugin | ++ |
Enum | +Description | +
---|---|
DocumentScanState | +
+ The states the document scanning can be in
+ |
+
DocumentScanViewPlugin.DocumentError | +
+
+ The errors that are returned in
+DocumentScanResultListener#onPreviewProcessingFailure(DocumentError) and
+ DocumentScanResultListener#onPictureProcessingFailure(DocumentError) . |
+
DocumentScanViewPlugin.DocumentRatio | +
+
+ Pre-defined document ratios to be set with
+DocumentScanViewPlugin.setDocumentRatios(Double...) + Note the document ratios are implemented for convenience. |
+
public interface DataObject
+public static enum DrivingLicenseConfig.DrivingLicenseCountry +extends java.lang.Enum<DrivingLicenseConfig.DrivingLicenseCountry>+
Enum Constant and Description | +
---|
AT |
+
AUTO |
+
BE |
+
DE |
+
NL |
+
UK |
+
Modifier and Type | +Method and Description | +
---|---|
static DrivingLicenseConfig.DrivingLicenseCountry |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static DrivingLicenseConfig.DrivingLicenseCountry[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final DrivingLicenseConfig.DrivingLicenseCountry AT+
public static final DrivingLicenseConfig.DrivingLicenseCountry DE+
public static final DrivingLicenseConfig.DrivingLicenseCountry UK+
public static final DrivingLicenseConfig.DrivingLicenseCountry NL+
public static final DrivingLicenseConfig.DrivingLicenseCountry BE+
public static final DrivingLicenseConfig.DrivingLicenseCountry AUTO+
public static DrivingLicenseConfig.DrivingLicenseCountry[] values()+
+for (DrivingLicenseConfig.DrivingLicenseCountry c : DrivingLicenseConfig.DrivingLicenseCountry.values()) + System.out.println(c); +
public static DrivingLicenseConfig.DrivingLicenseCountry valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic class DrivingLicenseConfig +extends IdConfig+
Modifier and Type | +Class and Description | +
---|---|
static class |
+DrivingLicenseConfig.DrivingLicenseCountry |
+
idFieldScanOptions, idMinFieldConfidences
Constructor and Description | +
---|
DrivingLicenseConfig() |
+
Modifier and Type | +Method and Description | +
---|---|
DrivingLicenseConfig.DrivingLicenseCountry |
+getScanMode() |
+
void |
+setScanMode(DrivingLicenseConfig.DrivingLicenseCountry scanMode) |
+
enableFaceDetection, getIdFieldScanOptions, getIdMinFieldConfidences, getMinConfidence, isFaceDetectionEnabled, setIdFieldScanOptions, setIdMinFieldConfidences, setMinConfidence
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void setScanMode(DrivingLicenseConfig.DrivingLicenseCountry scanMode)+
public DrivingLicenseConfig.DrivingLicenseCountry getScanMode()+
public class DrivingLicenseFieldConfidences +extends IDFieldConfidences+
Constructor and Description | +
---|
DrivingLicenseFieldConfidences() |
+
Modifier and Type | +Method and Description | +
---|---|
int |
+getAuthority() |
+
int |
+getCategories() |
+
int |
+getDateOfBirth() |
+
int |
+getDateOfExpiry() |
+
int |
+getDateOfIssue() |
+
int |
+getDocumentNumber() |
+
int |
+getGivenNames() |
+
int |
+getPlaceOfBirth() |
+
int |
+getSurname() |
+
void |
+setAuthority(int authority) |
+
void |
+setCategories(int categories) |
+
void |
+setDateOfBirth(int dateOfBirth) |
+
void |
+setDateOfExpiry(int dateOfExpiry) |
+
void |
+setDateOfIssue(int dateOfIssue) |
+
void |
+setDocumentNumber(int documentNumber) |
+
void |
+setGivenNames(int givenNames) |
+
void |
+setPlaceOfBirth(int placeOfBirth) |
+
void |
+setSurname(int surname) |
+
org.json.JSONObject |
+toJSONObject() |
+
initDictionaryStartVariableFromJsonObject
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public DrivingLicenseFieldConfidences()+
public int getSurname()+
public void setSurname(int surname)+
public int getGivenNames()+
public void setGivenNames(int givenNames)+
public int getDateOfBirth()+
public void setDateOfBirth(int dateOfBirth)+
public int getPlaceOfBirth()+
public void setPlaceOfBirth(int placeOfBirth)+
public int getDateOfIssue()+
public void setDateOfIssue(int dateOfIssue)+
public int getDateOfExpiry()+
public void setDateOfExpiry(int dateOfExpiry)+
public int getAuthority()+
public void setAuthority(int authority)+
public int getDocumentNumber()+
public void setDocumentNumber(int documentNumber)+
public int getCategories()+
public void setCategories(int categories)+
public org.json.JSONObject toJSONObject()+
public class DrivingLicenseFieldScanOptions +extends IDFieldScanOptions+
IDFieldScanOptions.FieldScanOption
Constructor and Description | +
---|
DrivingLicenseFieldScanOptions() |
+
initDictionaryStartVariableFromJsonObject
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public DrivingLicenseFieldScanOptions()+
public IDFieldScanOptions.FieldScanOption getSurname()+
public void setSurname(IDFieldScanOptions.FieldScanOption surname)+
public IDFieldScanOptions.FieldScanOption getGivenNames()+
public void setGivenNames(IDFieldScanOptions.FieldScanOption givenNames)+
public IDFieldScanOptions.FieldScanOption getDateOfBirth()+
public void setDateOfBirth(IDFieldScanOptions.FieldScanOption dateOfBirth)+
public IDFieldScanOptions.FieldScanOption getPlaceOfBirth()+
public void setPlaceOfBirth(IDFieldScanOptions.FieldScanOption placeOfBirth)+
public IDFieldScanOptions.FieldScanOption getDateOfIssue()+
public void setDateOfIssue(IDFieldScanOptions.FieldScanOption dateOfIssue)+
public IDFieldScanOptions.FieldScanOption getDateOfExpiry()+
public void setDateOfExpiry(IDFieldScanOptions.FieldScanOption dateOfExpiry)+
public IDFieldScanOptions.FieldScanOption getAuthority()+
public void setAuthority(IDFieldScanOptions.FieldScanOption authority)+
public IDFieldScanOptions.FieldScanOption getDocumentNumber()+
public void setDocumentNumber(IDFieldScanOptions.FieldScanOption documentNumber)+
public IDFieldScanOptions.FieldScanOption getCategories()+
public void setCategories(IDFieldScanOptions.FieldScanOption categories)+
public class DrivingLicenseIdentification +extends ID+
Constructor and Description | +
---|
DrivingLicenseIdentification() |
+
DrivingLicenseIdentification(AnylineRawResult alResult) |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.String |
+getAuthority()
+Gets the authority.
+ |
+
java.lang.String |
+getCategories()
+Gets the categories.
+ |
+
java.lang.String |
+getDateOfBirth()
+Gets the dateOfBirth.
+ |
+
java.util.Date |
+getDateOfBirthObject()
+Gets the dayOfBirth date object.
+ |
+
java.lang.String |
+getDateOfExpiry()
+Gets the dateOfExpiry.
+ |
+
java.util.Date |
+getDateOfExpiryObject()
+Gets the dateOfExpiry date object.
+ |
+
java.lang.String |
+getDateOfIssue()
+Gets the dateOfIssue.
+ |
+
java.util.Date |
+getDateOfIssueObject()
+Gets the dateOfIssue date object.
+ |
+
java.lang.String |
+getDayOfBirth()
+Deprecated.
+
+As of release 10 this will be replaced with
+getDateOfBirth() |
+
java.util.Date |
+getDayOfBirthObject()
+Deprecated.
+
+As of release 10 this will be replaced with
+getDateOfBirthObject() |
+
java.lang.String |
+getDocumentNumber() |
+
java.lang.String |
+getDrivingLicenseResultString()
+Deprecated.
+
+As of release 10 this will be replaced with
+getDrivingLicenseString() |
+
java.lang.String |
+getDrivingLicenseString()
+get Driving License result as a string
+ |
+
java.lang.String |
+getExpirationDate()
+Deprecated.
+
+As of release 10 this will be replaced with
+getDateOfExpiry() |
+
java.util.Date |
+getExpirationDateObject()
+Deprecated.
+
+As of release 10 this will be replaced with
+getDateOfExpiryObject() |
+
DrivingLicenseFieldConfidences |
+getFieldConfidences() |
+
java.lang.String |
+getGivenName()
+Deprecated.
+
+As of release 10 this will be replaced with
+getGivenNames() |
+
java.lang.String |
+getGivenNames()
+Gets the givenNames.
+ |
+
java.lang.String |
+getIssuingDate()
+Deprecated.
+
+As of release 10 this will be replaced with
+getDateOfIssue() |
+
java.util.Date |
+getIssuingDateObject()
+Deprecated.
+
+As of release 10 this will be replaced with
+getDateOfIssueObject() |
+
java.lang.String |
+getLicenseNumber()
+Deprecated.
+
+As of release 10 this will be replaced with
+getDocumentNumber() |
+
java.lang.String |
+getPlaceOfBirth()
+Gets the pob.
+ |
+
java.lang.String |
+getSurname()
+Gets the surname.
+ |
+
java.lang.String |
+getSurName()
+Deprecated.
+
+As of release 10 this will be replaced with
+getSurname() |
+
void |
+setAuthority(java.lang.String authority)
+Sets the authority.
+ |
+
void |
+setCategories(java.lang.String categories)
+Sets the categories.
+ |
+
void |
+setDateOfBirth(java.lang.String dateOfBirth)
+Sets the dateOfBirth.
+ |
+
void |
+setDateOfExpiry(java.lang.String dateOfExpiry)
+Sets the dateOfExpiry.
+ |
+
void |
+setDateOfIssue(java.lang.String dateOfIssue)
+Sets the dateOfIssue.
+ |
+
void |
+setDayOfBirth(java.lang.String dayOfBirth)
+Deprecated.
+
+As of release 10 this will be replaced with
+setDateOfBirth(String) |
+
void |
+setDocumentNumber(java.lang.String documentNumber) |
+
void |
+setDrivingLicenseResultString(java.lang.String drivingLicenseResultString)
+Deprecated.
+
+As of release 10 this will be replaced with
+setDrivingLicenseString(String) |
+
void |
+setDrivingLicenseString(java.lang.String drivingLicenseString)
+set driving license result as a string
+ |
+
void |
+setExpirationDate(java.lang.String expirationDate)
+Deprecated.
+
+As of release 10 this will be replaced with
+setDateOfExpiry(String) |
+
void |
+setGivenName(java.lang.String givenNames)
+Deprecated.
+
+As of release 10 this will be replaced with
+setGivenNames(String) |
+
void |
+setGivenNames(java.lang.String givenNames)
+Sets the givenNames.
+ |
+
void |
+setIssuingDate(java.lang.String issuingDate)
+Deprecated.
+
+As of release 10 this will be replaced with
+setDateOfIssue(String) |
+
void |
+setLicenseNumber(java.lang.String documentNumber)
+Deprecated.
+
+As of release 10 this will be replaced with
+setDocumentNumber(String) |
+
void |
+setPlaceOfBirth(java.lang.String placeOfBirth)
+Sets the placeOfBirth.
+ |
+
void |
+setSurname(java.lang.String surname)
+Deprecated.
+ |
+
void |
+setSurName(java.lang.String surName)
+Deprecated.
+
+As of release 10 this will be replaced with
+setSurname(String) |
+
org.json.JSONObject |
+toJSONObject()
+Gets the data of this object as a JSONObject
+ |
+
java.lang.String |
+toString()
+Deprecated.
+ |
+
getFaceImage, setFaceImage, setFieldConfidences
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public DrivingLicenseIdentification()+
public DrivingLicenseIdentification(AnylineRawResult alResult)+
@Deprecated +public java.lang.String getSurName()+
getSurname()
public void setSurName(java.lang.String surName)+
setSurname(String)
surName
- public java.lang.String getSurname()+
@Deprecated +public void setSurname(java.lang.String surname)+
surname
- @Deprecated +public java.lang.String getGivenName()+
getGivenNames()
@Deprecated +public void setGivenName(java.lang.String givenNames)+
setGivenNames(String)
givenNames
- public java.lang.String getGivenNames()+
public void setGivenNames(java.lang.String givenNames)+
givenNames
- @Deprecated +public java.lang.String getDayOfBirth()+
getDateOfBirth()
@Deprecated +public void setDayOfBirth(java.lang.String dayOfBirth)+
setDateOfBirth(String)
dayOfBirth
- @Deprecated +public java.util.Date getDayOfBirthObject()+
getDateOfBirthObject()
public java.lang.String getDateOfBirth()+
public void setDateOfBirth(java.lang.String dateOfBirth)+
dateOfBirth
- public java.util.Date getDateOfBirthObject()+
@Deprecated +public java.lang.String getLicenseNumber()+
getDocumentNumber()
@Deprecated +public void setLicenseNumber(java.lang.String documentNumber)+
setDocumentNumber(String)
documentNumber
- @Deprecated +public java.lang.String getIssuingDate()+
getDateOfIssue()
@Deprecated +public void setIssuingDate(java.lang.String issuingDate)+
setDateOfIssue(String)
issuingDate
- @Deprecated +public java.util.Date getIssuingDateObject()+
getDateOfIssueObject()
public java.lang.String getDateOfIssue()+
public void setDateOfIssue(java.lang.String dateOfIssue)+
dateOfIssue
- public java.util.Date getDateOfIssueObject()+
@Deprecated +public java.lang.String getExpirationDate()+
getDateOfExpiry()
@Deprecated +public void setExpirationDate(java.lang.String expirationDate)+
setDateOfExpiry(String)
expirationDate
- @Deprecated +public java.util.Date getExpirationDateObject()+
getDateOfExpiryObject()
public java.lang.String getDateOfExpiry()+
public void setDateOfExpiry(java.lang.String dateOfExpiry)+
dateOfExpiry
- public java.util.Date getDateOfExpiryObject()+
public java.lang.String getAuthority()+
public void setAuthority(java.lang.String authority)+
authority
- public java.lang.String getPlaceOfBirth()+
public java.lang.String getDocumentNumber()+
public void setDocumentNumber(java.lang.String documentNumber)+
@Deprecated +public java.lang.String getDrivingLicenseResultString()+
getDrivingLicenseString()
@Deprecated +public void setDrivingLicenseResultString(java.lang.String drivingLicenseResultString)+
setDrivingLicenseString(String)
drivingLicenseResultString
- public java.lang.String getDrivingLicenseString()+
public void setDrivingLicenseString(java.lang.String drivingLicenseString)+
drivingLicenseString
- public void setPlaceOfBirth(java.lang.String placeOfBirth)+
placeOfBirth
- public java.lang.String getCategories()+
public void setCategories(java.lang.String categories)+
categories
- public org.json.JSONObject toJSONObject()+
@Deprecated +public java.lang.String toString()+
toString
in class java.lang.Object
public DrivingLicenseFieldConfidences getFieldConfidences()+
getFieldConfidences
in class ID
public class GermanIDFrontFieldConfidences +extends IDFieldConfidences+
Constructor and Description | +
---|
GermanIDFrontFieldConfidences() |
+
Modifier and Type | +Method and Description | +
---|---|
int |
+getCardAccessNumber() |
+
int |
+getDateOfBirth() |
+
int |
+getDateOfExpiry() |
+
int |
+getDocumentNumber() |
+
int |
+getGivenNames() |
+
int |
+getNationality() |
+
int |
+getPlaceOfBirth() |
+
int |
+getSurname() |
+
void |
+setCardAccessNumber(int cardAccessNumber) |
+
void |
+setDateOfBirth(int dateOfBirth) |
+
void |
+setDateOfExpiry(int dateOfExpiry) |
+
void |
+setDocumentNumber(int documentNumber) |
+
void |
+setGivenNames(int givenNames) |
+
void |
+setNationality(int nationality) |
+
void |
+setPlaceOfBirth(int placeOfBirth) |
+
void |
+setSurname(int surname) |
+
org.json.JSONObject |
+toJSONObject() |
+
initDictionaryStartVariableFromJsonObject
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public GermanIDFrontFieldConfidences()+
public int getSurname()+
public void setSurname(int surname)+
public int getGivenNames()+
public void setGivenNames(int givenNames)+
public int getDateOfBirth()+
public void setDateOfBirth(int dateOfBirth)+
public int getNationality()+
public void setNationality(int nationality)+
public int getPlaceOfBirth()+
public void setPlaceOfBirth(int placeOfBirth)+
public int getDateOfExpiry()+
public void setDateOfExpiry(int dateOfExpiry)+
public int getDocumentNumber()+
public void setDocumentNumber(int documentNumber)+
public int getCardAccessNumber()+
public void setCardAccessNumber(int cardAccessNumber)+
public org.json.JSONObject toJSONObject()+
public class GermanIdFrontConfig +extends IdConfig+
idFieldScanOptions, idMinFieldConfidences
Constructor and Description | +
---|
GermanIdFrontConfig() |
+
enableFaceDetection, getIdFieldScanOptions, getIdMinFieldConfidences, getMinConfidence, isFaceDetectionEnabled, setIdFieldScanOptions, setIdMinFieldConfidences, setMinConfidence
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public class GermanIdFrontFieldScanOptions +extends IDFieldScanOptions+
IDFieldScanOptions.FieldScanOption
Constructor and Description | +
---|
GermanIdFrontFieldScanOptions() |
+
initDictionaryStartVariableFromJsonObject
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public GermanIdFrontFieldScanOptions()+
public IDFieldScanOptions.FieldScanOption getSurname()+
public void setSurname(IDFieldScanOptions.FieldScanOption surname)+
public IDFieldScanOptions.FieldScanOption getGivenNames()+
public void setGivenNames(IDFieldScanOptions.FieldScanOption givenNames)+
public IDFieldScanOptions.FieldScanOption getDateOfBirth()+
public void setDateOfBirth(IDFieldScanOptions.FieldScanOption dateOfBirth)+
public IDFieldScanOptions.FieldScanOption getNationality()+
public void setNationality(IDFieldScanOptions.FieldScanOption nationality)+
public IDFieldScanOptions.FieldScanOption getPlaceOfBirth()+
public void setPlaceOfBirth(IDFieldScanOptions.FieldScanOption placeOfBirth)+
public IDFieldScanOptions.FieldScanOption getDateOfExpiry()+
public void setDateOfExpiry(IDFieldScanOptions.FieldScanOption dateOfExpiry)+
public IDFieldScanOptions.FieldScanOption getDocumentNumber()+
public void setDocumentNumber(IDFieldScanOptions.FieldScanOption documentNumber)+
public IDFieldScanOptions.FieldScanOption getCardAccessNumber()+
public void setCardAccessNumber(IDFieldScanOptions.FieldScanOption cardAccessNumber)+
public class GermanIdFrontIdentification +extends ID+
Constructor and Description | +
---|
GermanIdFrontIdentification() |
+
GermanIdFrontIdentification(AnylineRawResult alResult) |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.String |
+getCardAccessNumber()
+Gets the cardAccessNumber.
+ |
+
java.lang.String |
+getDateOfBirth()
+Gets the dateOfBirth.
+ |
+
java.util.Date |
+getDateOfBirthObject()
+Gets the dateOfBirth date object.
+ |
+
java.lang.String |
+getDateOfExpiry()
+Gets the dateOfExpiry.
+ |
+
java.util.Date |
+getDateOfExpiryObject() |
+
java.lang.String |
+getDayOfBirth()
+Deprecated.
+
+As of release 10 this will be replaced with
+getDateOfBirth() |
+
java.util.Date |
+getDayOfBirthObject()
+Deprecated.
+
+As of release 10 this will be replaced with
+getDateOfBirthObject() |
+
java.lang.String |
+getDocumentNumber()
+Gets the documentNumber.
+ |
+
java.lang.String |
+getExpirationDate()
+Deprecated.
+
+As of release 10 this will be replaced with
+getDateOfExpiry() |
+
java.util.Date |
+getExpirationDateObject()
+Deprecated.
+ |
+
GermanIDFrontFieldConfidences |
+getFieldConfidences() |
+
java.lang.String |
+getGermanIdFrontString()
+Gets the Id front string
+ |
+
java.lang.String |
+getGivenName()
+Deprecated.
+
+As of release 10 this will be replaced with
+getGivenNames() |
+
java.lang.String |
+getGivenNames()
+Gets the given Names
+ |
+
java.lang.String |
+getNationality()
+Gets the nationality.
+ |
+
java.lang.String |
+getPlaceOfBirth()
+Gets the pob.
+ |
+
java.lang.String |
+getSurname()
+Gets the surName.
+ |
+
java.lang.String |
+getSurName()
+Deprecated.
+
+As of release 10 this will be replaced with
+getSurname() |
+
void |
+setCardAccessNumber(java.lang.String cardAccessNumber)
+Sets the cardAccessNumber.
+ |
+
void |
+setDateOfBirth(java.lang.String dateOfBirth)
+Sets the dateOfBirth.
+ |
+
void |
+setDateOfExpiry(java.lang.String dateOfExpiry)
+Sets the dateOfExpiry.
+ |
+
void |
+setDayOfBirth(java.lang.String dayOfBirth)
+Deprecated.
+
+As of release 10 this will be replaced with
+setDateOfBirth(String) |
+
void |
+setDocumentNumber(java.lang.String documentNumber)
+Sets the documentNumber.
+ |
+
void |
+setExpirationDate(java.lang.String expirationDate)
+Deprecated.
+
+As of release 10 this will be replaced with
+setDateOfExpiry(String) |
+
void |
+setGermanIdFrontString(java.lang.String germanIdFrontString)
+Sets the Id front string
+ |
+
void |
+setGivenName(java.lang.String givenNames)
+Deprecated.
+
+As of release 10 this will be replaced with
+setGivenNames(String) |
+
void |
+setGivenNames(java.lang.String givenNames)
+Sets the given Names
+ |
+
void |
+setNationality(java.lang.String nationality)
+Sets the nationality.
+ |
+
void |
+setPlaceOfBirth(java.lang.String placeOfBirth)
+Sets the pob.
+ |
+
void |
+setSurname(java.lang.String surname)
+Sets the surname.
+ |
+
void |
+setSurName(java.lang.String surName)
+Deprecated.
+
+As of release 10 this will be replaced with
+setSurname(String) |
+
org.json.JSONObject |
+toJSONObject()
+Gets the data of this object as a JSONObject
+ |
+
java.lang.String |
+toString()
+Deprecated.
+ |
+
getFaceImage, setFaceImage, setFieldConfidences
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public GermanIdFrontIdentification()+
public GermanIdFrontIdentification(AnylineRawResult alResult)+
@Deprecated +public java.lang.String getSurName()+
getSurname()
@Deprecated +public void setSurName(java.lang.String surName)+
setSurname(String)
surName
- public java.lang.String getSurname()+
public void setSurname(java.lang.String surname)+
surname
- @Deprecated +public java.lang.String getGivenName()+
getGivenNames()
@Deprecated +public void setGivenName(java.lang.String givenNames)+
setGivenNames(String)
givenNames
- public java.lang.String getGivenNames()+
public void setGivenNames(java.lang.String givenNames)+
givenNames
- @Deprecated +public java.lang.String getDayOfBirth()+
getDateOfBirth()
@Deprecated +public void setDayOfBirth(java.lang.String dayOfBirth)+
setDateOfBirth(String)
dayOfBirth
- public java.lang.String getDateOfBirth()+
public void setDateOfBirth(java.lang.String dateOfBirth)+
dateOfBirth
- public java.lang.String getGermanIdFrontString()+
public void setGermanIdFrontString(java.lang.String germanIdFrontString)+
germanIdFrontString
- @Deprecated +public java.util.Date getDayOfBirthObject()+
getDateOfBirthObject()
public java.util.Date getDateOfBirthObject()+
public java.lang.String getDocumentNumber()+
public void setDocumentNumber(java.lang.String documentNumber)+
documentNumber
- public java.lang.String getNationality()+
public void setNationality(java.lang.String nationality)+
nationality
- @Deprecated +public java.lang.String getExpirationDate()+
getDateOfExpiry()
@Deprecated +public void setExpirationDate(java.lang.String expirationDate)+
setDateOfExpiry(String)
expirationDate
- public java.lang.String getDateOfExpiry()+
public void setDateOfExpiry(java.lang.String dateOfExpiry)+
dateOfExpiry
- @Deprecated +public java.util.Date getExpirationDateObject()+
public java.util.Date getDateOfExpiryObject()+
public java.lang.String getCardAccessNumber()+
public void setCardAccessNumber(java.lang.String cardAccessNumber)+
cardAccessNumber
- public java.lang.String getPlaceOfBirth()+
public void setPlaceOfBirth(java.lang.String placeOfBirth)+
placeOfBirth
- public org.json.JSONObject toJSONObject()+
@Deprecated +public java.lang.String toString()+
toString
in class java.lang.Object
public GermanIDFrontFieldConfidences getFieldConfidences()+
getFieldConfidences
in class ID
public abstract class ID<TFieldConfidences extends IDFieldConfidences>
+extends java.lang.Object
+Modifier and Type | +Field and Description | +
---|---|
TFieldConfidences |
+fieldConfidences |
+
Constructor and Description | +
---|
ID() |
+
ID(Identification identification) |
+
Modifier and Type | +Method and Description | +
---|---|
android.graphics.Bitmap |
+getFaceImage() |
+
TFieldConfidences |
+getFieldConfidences() |
+
void |
+setFaceImage(android.graphics.Bitmap faceImage) |
+
void |
+setFieldConfidences(TFieldConfidences fieldConfidences) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public TFieldConfidences extends IDFieldConfidences fieldConfidences+
public ID()+
public ID(Identification identification)+
public TFieldConfidences getFieldConfidences()+
public void setFieldConfidences(TFieldConfidences fieldConfidences)+
public android.graphics.Bitmap getFaceImage()+
public void setFaceImage(android.graphics.Bitmap faceImage)+
public class IDFieldConfidences
+extends java.lang.Object
+Modifier and Type | +Method and Description | +
---|---|
static java.util.Map<java.lang.String,java.lang.Integer> |
+initDictionaryStartVariableFromJsonObject(android.content.Context context,
+ org.json.JSONObject json,
+ java.lang.Object object) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static enum IDFieldScanOptions.FieldScanOption +extends java.lang.Enum<IDFieldScanOptions.FieldScanOption>+
Enum Constant and Description | +
---|
DEFAULT |
+
DISABLED |
+
MANDATORY |
+
OPTIONAL |
+
Modifier and Type | +Method and Description | +
---|---|
static IDFieldScanOptions.FieldScanOption |
+fromInt(int fieldScanOption) |
+
int |
+getFieldScanOption() |
+
static IDFieldScanOptions.FieldScanOption |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static IDFieldScanOptions.FieldScanOption[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final IDFieldScanOptions.FieldScanOption MANDATORY+
public static final IDFieldScanOptions.FieldScanOption OPTIONAL+
public static final IDFieldScanOptions.FieldScanOption DISABLED+
public static final IDFieldScanOptions.FieldScanOption DEFAULT+
public static IDFieldScanOptions.FieldScanOption[] values()+
+for (IDFieldScanOptions.FieldScanOption c : IDFieldScanOptions.FieldScanOption.values()) + System.out.println(c); +
public static IDFieldScanOptions.FieldScanOption valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getFieldScanOption()+
public static IDFieldScanOptions.FieldScanOption fromInt(int fieldScanOption)+
public class IDFieldScanOptions
+extends java.lang.Object
+Modifier and Type | +Class and Description | +
---|---|
static class |
+IDFieldScanOptions.FieldScanOption
+Helper enum for the possible scan option applied to the fields
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static java.util.Map<java.lang.String,java.lang.Integer> |
+initDictionaryStartVariableFromJsonObject(android.content.Context context,
+ org.json.JSONObject json,
+ java.lang.Object object) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public abstract class IdConfig<TFieldConfidences,TFieldScanOptions>
+extends java.lang.Object
+Modifier and Type | +Field and Description | +
---|---|
TFieldScanOptions |
+idFieldScanOptions
+Enum for all possible cutout styles.
+ |
+
TFieldConfidences |
+idMinFieldConfidences |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+enableFaceDetection(boolean faceDetectionEnabled)
+Set strict mode for IdScanPlugin
+ If the strict mode is enabled, a scan will be performed just when all checkdigits are valid
+ |
+
TFieldScanOptions |
+getIdFieldScanOptions() |
+
TFieldConfidences |
+getIdMinFieldConfidences() |
+
int |
+getMinConfidence() |
+
boolean |
+isFaceDetectionEnabled() |
+
void |
+setIdFieldScanOptions(TFieldScanOptions idFieldScanOptions) |
+
void |
+setIdMinFieldConfidences(TFieldConfidences idMinFieldConfidences) |
+
void |
+setMinConfidence(int minConfidence) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public TFieldScanOptions idFieldScanOptions+
public TFieldConfidences idMinFieldConfidences+
public boolean isFaceDetectionEnabled()+
public void enableFaceDetection(boolean faceDetectionEnabled)+
faceDetectionEnabled
- represented as booleanpublic TFieldScanOptions getIdFieldScanOptions()+
public TFieldConfidences getIdMinFieldConfidences()+
public int getMinConfidence()+
public void setMinConfidence(int minConfidence)+
public void setIdFieldScanOptions(TFieldScanOptions idFieldScanOptions) + throws java.lang.RuntimeException+
java.lang.RuntimeException
public void setIdMinFieldConfidences(TFieldConfidences idMinFieldConfidences) + throws java.lang.RuntimeException+
java.lang.RuntimeException
public class IdScanPlugin +extends AbstractScanPlugin<ScanResult<ID<?>>> +implements FaceDetector.FaceDetectionResultHandler+
+ The Anyline ID plugin scans several kind of ids. +
Constructor and Description | +
---|
IdScanPlugin(android.content.Context context,
+ java.lang.String id,
+ IdConfig<?,?> idConfig) |
+
Modifier and Type | +Method and Description | +
---|---|
IdConfig<?,?> |
+getIdConfig() |
+
java.lang.String |
+getModuleIdentifier() |
+
java.lang.String |
+getProductName() |
+
void |
+onFailure(java.lang.String e) |
+
void |
+onSuccess(AnylineImage faceImage) |
+
void |
+setIdConfig(IdConfig<?,?> idConfig) |
+
void |
+setReportingEnabled(boolean isReportingEnabled)
+This has no effect in this plugin.
+ |
+
void |
+start()
+Start the processing of the plugin
+ |
+
addScanInfoListener, addScanResultListener, addScanRunSkippedListener, cancelController, getAnylineController, getAssetController, getAssetPath, getId, getImageProvider, isRunning, removeArgumentExceptionListener, removeScanInfoListener, removeScanResultListener, removeScanRunSkippedListener, setArgumentExceptionListener, setAssetPath, setCancelOnResult, setCmdFileName, setCropRect, setDebug, setDelayScanTime, setId, setImageProvider, stop
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public IdScanPlugin(android.content.Context context, + java.lang.String id, + IdConfig<?,?> idConfig)+
public IdConfig<?,?> getIdConfig()+
public void setIdConfig(IdConfig<?,?> idConfig)+
public void onSuccess(AnylineImage faceImage)+
onSuccess
in interface FaceDetector.FaceDetectionResultHandler
public void onFailure(java.lang.String e)+
onFailure
in interface FaceDetector.FaceDetectionResultHandler
public void setReportingEnabled(boolean isReportingEnabled)+
setReportingEnabled
in class AbstractScanPlugin<ScanResult<ID<?>>>
isReportingEnabled
- irrelevant for this pluginpublic java.lang.String getProductName()+
getProductName
in class AbstractScanPlugin<ScanResult<ID<?>>>
public java.lang.String getModuleIdentifier()+
getModuleIdentifier
in interface ScanPlugin<ScanResult<ID<?>>>
getModuleIdentifier
in class AbstractScanPlugin<ScanResult<ID<?>>>
public void start()+
ScanPlugin
start
in interface ScanPlugin<ScanResult<ID<?>>>
start
in class AbstractScanPlugin<ScanResult<ID<?>>>
public class IdScanViewPlugin +extends AbstractScanViewPlugin+
Constructor and Description | +
---|
IdScanViewPlugin(android.content.Context context,
+ AbstractScanPlugin scanPlugin,
+ ScanViewPluginConfig scanViewPluginConfig) |
+
IdScanViewPlugin(android.content.Context context,
+ ScanViewPluginConfig scanViewPluginConfig,
+ IdConfig idConfig) |
+
IdScanViewPlugin(android.content.Context context,
+ ScanViewPluginConfig scanViewPluginConfig,
+ IdConfig<?,?> idConfig,
+ java.lang.String id) |
+
addScanInfoListener, addScanResultListener, addScanRunSkippedListener, addUIConfigChangedListener, calcCutOutAndImageCropBounds, getAllScanViewPlugins, getCancelOnResult, getCutoutRect, getId, getScanPlugin, getScanViewPluginConfig, removeScanInfoListener, removeScanResultListener, removeScanRunSkippedListener, removeUIConfigChangedListener, setCancelOnResult, setCropRect, setDelayScanTime, setImageProvider, start, stop
setDebugListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public IdScanViewPlugin(@NonNull + android.content.Context context, + @NonNull + AbstractScanPlugin scanPlugin, + @NonNull + ScanViewPluginConfig scanViewPluginConfig)+
public IdScanViewPlugin(@NonNull + android.content.Context context, + @NonNull + ScanViewPluginConfig scanViewPluginConfig, + @NonNull + IdConfig idConfig)+
public IdScanViewPlugin(@NonNull + android.content.Context context, + @NonNull + ScanViewPluginConfig scanViewPluginConfig, + @NonNull + IdConfig<?,?> idConfig, + @NonNull + java.lang.String id)+
public class Identification +extends ID<UniversalIdFieldConfidences>+
fieldConfidences
Modifier and Type | +Method and Description | +
---|---|
java.util.List<java.lang.String> |
+getFieldNames() |
+
LayoutDefinition |
+getLayoutDefinition() |
+
java.util.Map<java.lang.String,java.lang.String> |
+getResultData() |
+
java.lang.String |
+getValue(java.lang.String fieldName) |
+
boolean |
+hasField(java.lang.String fieldName) |
+
getFaceImage, getFieldConfidences, setFaceImage, setFieldConfidences
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public boolean hasField(java.lang.String fieldName)+
public java.lang.String getValue(java.lang.String fieldName)+
public java.util.Map<java.lang.String,java.lang.String> getResultData()+
public java.util.List<java.lang.String> getFieldNames()+
public LayoutDefinition getLayoutDefinition()+
public class LayoutDefinition
+extends java.lang.Object
+Modifier and Type | +Field and Description | +
---|---|
java.lang.String |
+country |
+
java.lang.String |
+layout |
+
java.lang.String |
+type |
+
Constructor and Description | +
---|
LayoutDefinition(java.lang.String type,
+ java.lang.String country,
+ java.lang.String layout) |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.String |
+getCountry() |
+
java.lang.String |
+getLayout() |
+
java.lang.String |
+getType() |
+
void |
+setCountry(java.lang.String country) |
+
void |
+setLayout(java.lang.String layout) |
+
void |
+setType(java.lang.String type) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public java.lang.String type+
public java.lang.String country+
public java.lang.String layout+
public LayoutDefinition(java.lang.String type, + java.lang.String country, + java.lang.String layout)+
public java.lang.String getType()+
public void setType(java.lang.String type)+
public java.lang.String getCountry()+
public void setCountry(java.lang.String country)+
public java.lang.String getLayout()+
public void setLayout(java.lang.String layout)+
public class MrzConfig +extends IdConfig+
idFieldScanOptions, idMinFieldConfidences
Modifier and Type | +Method and Description | +
---|---|
boolean |
+isCropAndTransformID() |
+
boolean |
+isStrictMode() |
+
void |
+setCropAndTransformID(boolean cropAndTransformID)
+Set crop and transform ID mode for for IdScanPlugin
+ If the crop and transform ID mode is enabled, the image will be returned instead of the cutout image.
+ |
+
void |
+setStrictMode(boolean strictMode)
+Set strict mode for IdScanPlugin
+ If the strict mode is enabled, a scan will be performed just when all checkdigits are valid
+ |
+
enableFaceDetection, getIdFieldScanOptions, getIdMinFieldConfidences, getMinConfidence, isFaceDetectionEnabled, setIdFieldScanOptions, setIdMinFieldConfidences, setMinConfidence
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public boolean isStrictMode()+
public void setStrictMode(boolean strictMode)+
strictMode
- represented as booleanpublic boolean isCropAndTransformID()+
public void setCropAndTransformID(boolean cropAndTransformID)+
cropAndTransformID
- represented as booleanpublic class MrzFieldConfidences +extends IDFieldConfidences+
Constructor and Description | +
---|
MrzFieldConfidences() |
+
Modifier and Type | +Method and Description | +
---|---|
int |
+getCheckDigitDateOfBirth() |
+
int |
+getCheckDigitDateOfExpiry() |
+
int |
+getCheckDigitDocumentNumber() |
+
int |
+getCheckDigitFinal() |
+
int |
+getCheckDigitPersonalNumber() |
+
int |
+getDateOfBirth() |
+
int |
+getDateOfExpiry() |
+
int |
+getDocumentNumber() |
+
int |
+getDocumentType() |
+
int |
+getGivenNames() |
+
int |
+getIssuingCountryCode() |
+
int |
+getNationalityCountryCode() |
+
int |
+getOptionalData() |
+
int |
+getPersonalNumber() |
+
int |
+getSex() |
+
int |
+getSurname() |
+
int |
+getVizAddress()
+get visual inspection zone address of type int (mandatory, optional, disabled or default)
+ |
+
int |
+getVizDateOfBirth() |
+
int |
+getVizDateOfExpiry() |
+
int |
+getVizDateOfIssue() |
+
int |
+getVizGivenNames() |
+
int |
+getVizSurname() |
+
void |
+setCheckDigitDateOfBirth(int checkDigitDateOfBirth) |
+
void |
+setCheckDigitDateOfExpiry(int checkDigitDateOfExpiry) |
+
void |
+setCheckDigitDocumentNumber(int checkDigitDocumentNumber) |
+
void |
+setCheckDigitFinal(int checkDigitFinal) |
+
void |
+setCheckDigitPersonalNumber(int checkDigitPersonalNumber) |
+
void |
+setDateOfBirth(int dateOfBirth) |
+
void |
+setDateOfExpiry(int dateOfExpiry) |
+
void |
+setDocumentNumber(int documentNumber) |
+
void |
+setDocumentType(int documentType) |
+
void |
+setGivenNames(int givenNames) |
+
void |
+setIssuingCountryCode(int issuingCountryCode) |
+
void |
+setNationalityCountryCode(int nationalityCountryCode) |
+
void |
+setOptionalData(int optionalData) |
+
void |
+setPersonalNumber(int personalNumber) |
+
void |
+setSex(int sex) |
+
void |
+setSurname(int surname) |
+
void |
+setVizAddress(int vizAddress)
+set visual inspection zone address option (mandatory, optional, disabled or default)
+ |
+
void |
+setVizDateOfBirth(int vizDateOfBirth)
+Set VIZ Date OF Birth option (mandatory, optional, disabled or default)
+ |
+
void |
+setVizDateOfExpiry(int vizDateOfExpiry)
+Set VIZ Date Of Expiry option (mandatory, optional, disabled or default)
+ |
+
void |
+setVizDateOfIssue(int vizDateOfIssue)
+Set Date of Issue option (mandatory, optional, disabled or default)
+ |
+
void |
+setVizGivenNames(int vizGivenNames)
+Set VIZ GivenNames option (mandatory, optional, disabled or default)
+ |
+
void |
+setVizSurname(int vizSurname)
+Set VIZ Surname option (mandatory, optional, disabled or default)
+ |
+
org.json.JSONObject |
+toJSONObject() |
+
initDictionaryStartVariableFromJsonObject
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public int getVizAddress()+
public void setVizAddress(int vizAddress)+
vizAddress
- represents the option for address fieldpublic int getVizDateOfIssue()+
public void setVizDateOfIssue(int vizDateOfIssue)+
vizDateOfIssue
- public int getVizSurname()+
public void setVizSurname(int vizSurname)+
vizSurname
- public int getVizGivenNames()+
public void setVizGivenNames(int vizGivenNames)+
vizGivenNames
- public int getVizDateOfBirth()+
public void setVizDateOfBirth(int vizDateOfBirth)+
vizDateOfBirth
- public int getVizDateOfExpiry()+
public void setVizDateOfExpiry(int vizDateOfExpiry)+
vizDateOfExpiry
- public int getCheckDigitDateOfBirth()+
public void setCheckDigitDateOfBirth(int checkDigitDateOfBirth)+
public int getCheckDigitDateOfExpiry()+
public void setCheckDigitDateOfExpiry(int checkDigitDateOfExpiry)+
public int getCheckDigitDocumentNumber()+
public void setCheckDigitDocumentNumber(int checkDigitDocumentNumber)+
public int getCheckDigitFinal()+
public void setCheckDigitFinal(int checkDigitFinal)+
public int getCheckDigitPersonalNumber()+
public void setCheckDigitPersonalNumber(int checkDigitPersonalNumber)+
public int getDateOfBirth()+
public void setDateOfBirth(int dateOfBirth)+
public int getDateOfExpiry()+
public void setDateOfExpiry(int dateOfExpiry)+
public int getDocumentNumber()+
public void setDocumentNumber(int documentNumber)+
public int getDocumentType()+
public void setDocumentType(int documentType)+
public int getGivenNames()+
public void setGivenNames(int givenNames)+
public int getIssuingCountryCode()+
public void setIssuingCountryCode(int issuingCountryCode)+
public int getNationalityCountryCode()+
public void setNationalityCountryCode(int nationalityCountryCode)+
public int getOptionalData()+
public void setOptionalData(int optionalData)+
public int getPersonalNumber()+
public void setPersonalNumber(int personalNumber)+
public int getSex()+
public void setSex(int sex)+
public int getSurname()+
public void setSurname(int surname)+
public org.json.JSONObject toJSONObject()+
public class MrzFieldScanOptions +extends IDFieldScanOptions+
IDFieldScanOptions.FieldScanOption
Constructor and Description | +
---|
MrzFieldScanOptions() |
+
Modifier and Type | +Method and Description | +
---|---|
IDFieldScanOptions.FieldScanOption |
+getAddress()
+Deprecated.
+
+As of release 10.1 this will be replaced with
+getVizAddress() |
+
IDFieldScanOptions.FieldScanOption |
+getDateOfBirth() |
+
IDFieldScanOptions.FieldScanOption |
+getDateOfExpiry() |
+
IDFieldScanOptions.FieldScanOption |
+getDateOfIssue()
+Deprecated.
+
+As of release 10.1 this will be replaced with
+getVizDateOfIssue() |
+
IDFieldScanOptions.FieldScanOption |
+getVizAddress()
+get visual inspection zone address of type FieldScanOption (mandatory, optional, disabled or default)
+ |
+
IDFieldScanOptions.FieldScanOption |
+getVizDateOfBirth() |
+
IDFieldScanOptions.FieldScanOption |
+getVizDateOfExpiry() |
+
IDFieldScanOptions.FieldScanOption |
+getVizDateOfIssue() |
+
IDFieldScanOptions.FieldScanOption |
+getVizGivenNames() |
+
IDFieldScanOptions.FieldScanOption |
+getVizSurname() |
+
void |
+setAddress(IDFieldScanOptions.FieldScanOption address)
+Deprecated.
+
+As of release 10.1 this will be replaced with
+#setVizAddress(FieldScanOption) |
+
void |
+setDateOfBirth(IDFieldScanOptions.FieldScanOption dateOfBirth)
+Set Date Of Birth option (mandatory, optional, disabled or default)
+ |
+
void |
+setDateOfExpiry(IDFieldScanOptions.FieldScanOption dateOfExpiry)
+Set Date Of Expiry option (mandatory, optional, disabled or default)
+ |
+
void |
+setDateOfIssue(IDFieldScanOptions.FieldScanOption dateOfIssue)
+Deprecated.
+
+As of release 10.1 this will be replaced with
+#setVizDateOfIssue(FieldScanOption) |
+
void |
+setVizAddress(IDFieldScanOptions.FieldScanOption vizAddress)
+set visual inspection zone address option (mandatory, optional, disabled or default)
+ |
+
void |
+setVizDateOfBirth(IDFieldScanOptions.FieldScanOption vizDateOfBirth)
+Set VIZ Date OF Birth option (mandatory, optional, disabled or default)
+ |
+
void |
+setVizDateOfExpiry(IDFieldScanOptions.FieldScanOption vizDateOfExpiry)
+Set VIZ Date Of Expiry option (mandatory, optional, disabled or default)
+ |
+
void |
+setVizDateOfIssue(IDFieldScanOptions.FieldScanOption vizDateOfIssue)
+Set Date of Issue option (mandatory, optional, disabled or default)
+ |
+
void |
+setVizGivenNames(IDFieldScanOptions.FieldScanOption vizGivenNames)
+Set VIZ GivenNames option (mandatory, optional, disabled or default)
+ |
+
void |
+setVizSurname(IDFieldScanOptions.FieldScanOption vizSurname)
+Set VIZ Surname option (mandatory, optional, disabled or default)
+ |
+
initDictionaryStartVariableFromJsonObject
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@Deprecated +public IDFieldScanOptions.FieldScanOption getAddress()+
getVizAddress()
@Deprecated +public void setAddress(IDFieldScanOptions.FieldScanOption address)+
#setVizAddress(FieldScanOption)
address
- represents the option for address field@Deprecated +public IDFieldScanOptions.FieldScanOption getDateOfIssue()+
getVizDateOfIssue()
@Deprecated +public void setDateOfIssue(IDFieldScanOptions.FieldScanOption dateOfIssue)+
#setVizDateOfIssue(FieldScanOption)
dateOfIssue
- represents the option for date od issue fieldpublic IDFieldScanOptions.FieldScanOption getVizAddress()+
public void setVizAddress(IDFieldScanOptions.FieldScanOption vizAddress)+
vizAddress
- represents the option for address fieldpublic IDFieldScanOptions.FieldScanOption getVizDateOfIssue()+
public void setVizDateOfIssue(IDFieldScanOptions.FieldScanOption vizDateOfIssue)+
vizDateOfIssue
- public IDFieldScanOptions.FieldScanOption getVizSurname()+
public void setVizSurname(IDFieldScanOptions.FieldScanOption vizSurname)+
vizSurname
- public IDFieldScanOptions.FieldScanOption getVizGivenNames()+
public void setVizGivenNames(IDFieldScanOptions.FieldScanOption vizGivenNames)+
vizGivenNames
- public IDFieldScanOptions.FieldScanOption getVizDateOfBirth()+
public void setVizDateOfBirth(IDFieldScanOptions.FieldScanOption vizDateOfBirth)+
vizDateOfBirth
- public IDFieldScanOptions.FieldScanOption getVizDateOfExpiry()+
public void setVizDateOfExpiry(IDFieldScanOptions.FieldScanOption vizDateOfExpiry)+
vizDateOfExpiry
- public IDFieldScanOptions.FieldScanOption getDateOfBirth()+
public void setDateOfBirth(IDFieldScanOptions.FieldScanOption dateOfBirth)+
dateOfBirth
- public IDFieldScanOptions.FieldScanOption getDateOfExpiry()+
public void setDateOfExpiry(IDFieldScanOptions.FieldScanOption dateOfExpiry)+
dateOfExpiry
- public class MrzIdentification +extends ID+
Constructor and Description | +
---|
MrzIdentification() |
+
MrzIdentification(AnylineRawResult alResult) |
+
Modifier and Type | +Method and Description | +
---|---|
boolean |
+areAllCheckDigitsValid() |
+
java.lang.String |
+getAddress()
+Deprecated.
+
+As of release 10 this will be replaced with
+getVizAddress() |
+
java.lang.String |
+getCheckDigitDateOfBirth() |
+
java.lang.String |
+getCheckDigitDateOfExpiry() |
+
java.lang.String |
+getCheckDigitDayOfBirth()
+Deprecated.
+
+As of release 10 this will be replaced with
+getCheckDigitDateOfBirth() |
+
java.lang.String |
+getCheckDigitDocumentNumber() |
+
java.lang.String |
+getCheckDigitExpirationDate()
+Deprecated.
+
+As of release 10 this will be replaced with
+getCheckDigitDateOfExpiry() |
+
java.lang.String |
+getCheckDigitFinal() |
+
java.lang.String |
+getCheckDigitNumber()
+Deprecated.
+
+As of release 10 this will be replaced with
+getCheckDigitDocumentNumber() |
+
java.lang.String |
+getCheckDigitPersonalNumber() |
+
java.lang.String |
+getCountryCode()
+Deprecated.
+
+As of release 3.3 this will be replaced with
+getIssuingCountryCode() and getNationalityCountryCode() |
+
java.lang.String |
+getDateOfBirth() |
+
java.util.Date |
+getDateOfBirthObject() |
+
java.lang.String |
+getDateOfExpiry() |
+
java.util.Date |
+getDateOfExpiryObject() |
+
java.lang.String |
+getDateOfIssue()
+Deprecated.
+
+As of release 10.1 this will be replaced with
+getVizDateOfIssue() |
+
java.util.Date |
+getDateOfIssueObject()
+Deprecated.
+
+As of release 10.1 this will be replaced with
+getVizDateOfIssueObject() |
+
java.lang.String |
+getDayOfBirth()
+Deprecated.
+
+As of release 10 this will be replaced with
+getDateOfBirth() |
+
java.util.Date |
+getDayOfBirthObject()
+Deprecated.
+
+As of release 10 this will be replaced with
+getDateOfBirthObject() |
+
java.lang.String |
+getDocumentNumber() |
+
java.lang.String |
+getDocumentType() |
+
java.lang.String |
+getExpirationDate()
+Deprecated.
+
+As of release 10 this will be replaced with
+getDateOfExpiry() |
+
java.util.Date |
+getExpirationDateObject()
+Deprecated.
+
+As of release 10 this will be replaced with
+getDateOfExpiryObject() |
+
MrzFieldConfidences |
+getFieldConfidences() |
+
java.lang.String |
+getGivenNames() |
+
java.lang.String |
+getIssuingCountryCode() |
+
java.lang.String |
+getIssuingDate()
+Deprecated.
+
+As of release 10 this will be replaced with
+getDateOfIssue() |
+
java.util.Date |
+getIssuingDateObject()
+Deprecated.
+
+As of release 10 this will be replaced with
+getDateOfIssueObject() |
+
java.lang.String |
+getMrzString() |
+
java.lang.String |
+getNationalityCountryCode() |
+
java.lang.String |
+getOptionalData() |
+
java.lang.String |
+getPersonalNumber() |
+
java.lang.String |
+getPersonalNumber2()
+Deprecated.
+
+As of release 10 this will be replaced with
+getOptionalData() |
+
java.lang.String |
+getSex() |
+
java.lang.String |
+getSurname() |
+
java.lang.String |
+getSurNames()
+Deprecated.
+
+As of release 10 this will be replaced with
+getSurname() S |
+
java.lang.String |
+getVizAddress()
+Gets the address.
+ |
+
java.lang.String |
+getVizDateOfBirth() |
+
java.util.Date |
+getVizDateOfBirthObject() |
+
java.lang.String |
+getVizDateOfExpiry() |
+
java.util.Date |
+getVizDateOfExpiryObject() |
+
java.lang.String |
+getVizDateOfIssue()
+Gets the date of issue.
+ |
+
java.util.Date |
+getVizDateOfIssueObject()
+Gets the issue date from the Visual Inspection Zone
+ |
+
java.lang.String |
+getVizGivenNames() |
+
java.lang.String |
+getVizSurname() |
+
void |
+setAddress(java.lang.String address)
+Deprecated.
+
+As of release 10.1 this will be replaced with
+setVizAddress(String) |
+
void |
+setAllCheckDigitsValid(boolean allCheckDigitsValid) |
+
void |
+setCheckDigitDateOfBirth(java.lang.String checkDigitDateOfBirth) |
+
void |
+setCheckDigitDateOfExpiry(java.lang.String checkDigitDateOfExpiry) |
+
void |
+setCheckDigitDayOfBirth(java.lang.String checkDigitDayOfBirth)
+Deprecated.
+
+As of release 10 this will be replaced with
+setCheckDigitDateOfBirth(String) |
+
void |
+setCheckDigitDocumentNumber(java.lang.String checkDigitDocumentNumber) |
+
void |
+setCheckDigitExpirationDate(java.lang.String checkDigitExpirationDate)
+Deprecated.
+
+As of release 10 this will be replaced with
+setCheckDigitDateOfExpiry(String) |
+
void |
+setCheckDigitFinal(java.lang.String checkDigitFinal) |
+
void |
+setCheckDigitNumber(java.lang.String checkDigitNumber)
+Deprecated.
+
+As of release 10 this will be replaced with
+setCheckDigitDocumentNumber(String) |
+
void |
+setCheckDigitPersonalNumber(java.lang.String checkDigitPersonalNumber) |
+
void |
+setCountryCode(java.lang.String countryCode)
+Deprecated.
+
+As of release 3.3 this will be replaced with
+setIssuingCountryCode(String) ()} and setNationalityCountryCode(String) |
+
void |
+setDateOfBirth(java.lang.String dateOfBirth)
+set Date of Birth
+ |
+
void |
+setDateOfExpiry(java.lang.String dateOfExpiry) |
+
void |
+setDateOfIssue(java.lang.String dateOfIssue)
+Deprecated.
+
+As of release 10.1 this will be replaced with
+setVizDateOfIssue(String) |
+
void |
+setDayOfBirth(java.lang.String dayOfBirth)
+Deprecated.
+
+As of release 10 this will be replaced with
+setDateOfBirth(String) ()} |
+
void |
+setDocumentNumber(java.lang.String documentNumber) |
+
void |
+setDocumentType(java.lang.String documentType) |
+
void |
+setExpirationDate(java.lang.String expirationDate)
+Deprecated.
+
+As of release 10 this will be replaced with
+setDateOfExpiry(String) |
+
void |
+setGivenNames(java.lang.String givenNames)
+set givenNames
+ |
+
void |
+setIssuingCountryCode(java.lang.String issuingCountryCode) |
+
void |
+setIssuingDate(java.lang.String issuingDate)
+Deprecated.
+
+As of release 10 this will be replaced with
+setDateOfIssue(String) |
+
void |
+setMrzString(java.lang.String mrzString) |
+
void |
+setNationalityCountryCode(java.lang.String nationalityCountryCode) |
+
void |
+setOptionalData(java.lang.String optionalData) |
+
void |
+setPersonalNumber(java.lang.String personalNumber) |
+
void |
+setPersonalNumber2(java.lang.String personalNumber2)
+Deprecated.
+
+As of release 10 this will be replaced with
+setOptionalData(String) ()} |
+
void |
+setSex(java.lang.String sex) |
+
void |
+setSurname(java.lang.String surname)
+set Surname
+ |
+
void |
+setSurNames(java.lang.String surNames)
+Deprecated.
+
+As of release 10 this will be replaced with
+setSurname(String) ()} |
+
void |
+setVizAddress(java.lang.String vizAddress)
+Sets the address
+ |
+
void |
+setVizDateOfBirth(java.lang.String vizDateOfBirth) |
+
void |
+setVizDateOfExpiry(java.lang.String vizDateOfExpiry) |
+
void |
+setVizDateOfIssue(java.lang.String vizDateOfIssue)
+Sets the date of issue.
+ |
+
void |
+setVizGivenNames(java.lang.String vizGivenNames) |
+
void |
+setVizSurname(java.lang.String vizSurname) |
+
org.json.JSONObject |
+toJSONObject()
+Gets the data of this object as a JSONObject
+ |
+
java.lang.String |
+toString()
+Deprecated.
+ |
+
getFaceImage, setFaceImage, setFieldConfidences
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public MrzIdentification()+
public MrzIdentification(AnylineRawResult alResult)+
@Deprecated +public java.lang.String getSurNames()+
getSurname()
S@Deprecated +public void setSurNames(java.lang.String surNames)+
setSurname(String)
()}public java.lang.String getSurname()+
public void setSurname(java.lang.String surname)+
surname
- public java.lang.String getGivenNames()+
public void setGivenNames(java.lang.String givenNames)+
givenNames
- @Deprecated +public java.lang.String getDayOfBirth()+
getDateOfBirth()
@Deprecated +public void setDayOfBirth(java.lang.String dayOfBirth)+
setDateOfBirth(String)
()}public java.lang.String getDateOfBirth()+
public void setDateOfBirth(java.lang.String dateOfBirth)+
dateOfBirth
- @Deprecated +public java.lang.String getExpirationDate()+
getDateOfExpiry()
@Deprecated +public void setExpirationDate(java.lang.String expirationDate)+
setDateOfExpiry(String)
public java.lang.String getDateOfExpiry()+
public void setDateOfExpiry(java.lang.String dateOfExpiry)+
@Deprecated +public java.lang.String getCountryCode()+
getIssuingCountryCode()
and getNationalityCountryCode()
@Deprecated +public void setCountryCode(java.lang.String countryCode)+
setIssuingCountryCode(String)
()} and setNationalityCountryCode(String)
public java.lang.String getDocumentNumber()+
public void setDocumentNumber(java.lang.String documentNumber)+
public java.lang.String getDocumentType()+
public void setDocumentType(java.lang.String documentType)+
public java.lang.String getIssuingCountryCode()+
public void setIssuingCountryCode(java.lang.String issuingCountryCode)+
public java.lang.String getNationalityCountryCode()+
public void setNationalityCountryCode(java.lang.String nationalityCountryCode)+
public java.lang.String getSex()+
public void setSex(java.lang.String sex)+
public java.lang.String getPersonalNumber()+
public void setPersonalNumber(java.lang.String personalNumber)+
@Deprecated +public java.lang.String getPersonalNumber2()+
getOptionalData()
@Deprecated +public void setPersonalNumber2(java.lang.String personalNumber2)+
setOptionalData(String)
()}public java.lang.String getOptionalData()+
public void setOptionalData(java.lang.String optionalData)+
@Deprecated +public java.lang.String getCheckDigitNumber()+
getCheckDigitDocumentNumber()
@Deprecated +public void setCheckDigitNumber(java.lang.String checkDigitNumber)+
setCheckDigitDocumentNumber(String)
public java.lang.String getCheckDigitDocumentNumber()+
public void setCheckDigitDocumentNumber(java.lang.String checkDigitDocumentNumber)+
@Deprecated +public java.lang.String getCheckDigitExpirationDate()+
getCheckDigitDateOfExpiry()
@Deprecated +public void setCheckDigitExpirationDate(java.lang.String checkDigitExpirationDate)+
setCheckDigitDateOfExpiry(String)
public java.lang.String getCheckDigitDateOfExpiry()+
public void setCheckDigitDateOfExpiry(java.lang.String checkDigitDateOfExpiry)+
@Deprecated +public java.lang.String getCheckDigitDayOfBirth()+
getCheckDigitDateOfBirth()
@Deprecated +public void setCheckDigitDayOfBirth(java.lang.String checkDigitDayOfBirth)+
setCheckDigitDateOfBirth(String)
public java.lang.String getCheckDigitDateOfBirth()+
public void setCheckDigitDateOfBirth(java.lang.String checkDigitDateOfBirth)+
@Deprecated +public java.util.Date getDayOfBirthObject()+
getDateOfBirthObject()
public java.util.Date getDateOfBirthObject()+
@Deprecated +public java.util.Date getExpirationDateObject()+
getDateOfExpiryObject()
public java.util.Date getDateOfExpiryObject()+
public java.lang.String getCheckDigitFinal()+
public void setCheckDigitFinal(java.lang.String checkDigitFinal)+
public java.lang.String getCheckDigitPersonalNumber()+
public void setCheckDigitPersonalNumber(java.lang.String checkDigitPersonalNumber)+
public boolean areAllCheckDigitsValid()+
public void setAllCheckDigitsValid(boolean allCheckDigitsValid)+
public java.lang.String getMrzString()+
public void setMrzString(java.lang.String mrzString)+
public java.lang.String getAddress()+
getVizAddress()
@Deprecated +public void setAddress(java.lang.String address)+
setVizAddress(String)
public java.lang.String getVizAddress()+
public void setVizAddress(java.lang.String vizAddress)+
vizAddress
- @Deprecated +public java.lang.String getIssuingDate()+
getDateOfIssue()
@Deprecated +public void setIssuingDate(java.lang.String issuingDate)+
setDateOfIssue(String)
issuingDate
- @Deprecated +public java.lang.String getDateOfIssue()+
getVizDateOfIssue()
@Deprecated +public void setDateOfIssue(java.lang.String dateOfIssue)+
setVizDateOfIssue(String)
dateOfIssue
- public java.lang.String getVizDateOfIssue()+
public void setVizDateOfIssue(java.lang.String vizDateOfIssue)+
vizDateOfIssue
- @Deprecated +public java.util.Date getIssuingDateObject()+
getDateOfIssueObject()
@Deprecated +public java.util.Date getDateOfIssueObject()+
getVizDateOfIssueObject()
public java.util.Date getVizDateOfIssueObject()+
public org.json.JSONObject toJSONObject()+
@Deprecated +public java.lang.String toString()+
toString
in class java.lang.Object
public java.lang.String getVizSurname()+
public void setVizSurname(java.lang.String vizSurname)+
vizSurname
- Visual Inspection Zone Surnamepublic java.lang.String getVizGivenNames()+
public void setVizGivenNames(java.lang.String vizGivenNames)+
vizGivenNames
- Visual Inspection Zone Given Namespublic java.lang.String getVizDateOfBirth()+
public void setVizDateOfBirth(java.lang.String vizDateOfBirth)+
vizDateOfBirth
- Visual Inspection Zone Date Of Birthpublic java.lang.String getVizDateOfExpiry()+
public void setVizDateOfExpiry(java.lang.String vizDateOfExpiry)+
vizDateOfExpiry
- Visual Inspection Zone Date Of Expirypublic java.util.Date getVizDateOfBirthObject()+
public java.util.Date getVizDateOfExpiryObject()+
public MrzFieldConfidences getFieldConfidences()+
getFieldConfidences
in class ID
public class NFCConfig
+extends java.lang.Object
+Constructor and Description | +
---|
NFCConfig(java.lang.String passportNumber,
+ java.lang.String dateOfBirth,
+ java.lang.String expirationDate) |
+
Modifier and Type | +Method and Description | +
---|---|
AbstractReader |
+getAbstractReader() |
+
byte[] |
+readDataGroup1() |
+
byte[] |
+readDataGroup2() |
+
byte[] |
+readSOD() |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@Deprecated +public class TemplateConfig +extends UniversalIdConfig+
idFieldScanOptions, idMinFieldConfidences
Constructor and Description | +
---|
TemplateConfig(org.json.JSONObject jsonObject)
+Deprecated.
+ |
+
getAllowedLayouts, getAllowedLayoutsForLayoutType, setScanConfiguration
enableFaceDetection, getIdFieldScanOptions, getIdMinFieldConfidences, getMinConfidence, isFaceDetectionEnabled, setIdFieldScanOptions, setIdMinFieldConfidences, setMinConfidence
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@Deprecated +public class TemplateFieldConfidences +extends UniversalIdFieldConfidences+
fieldNames
Constructor and Description | +
---|
TemplateFieldConfidences()
+Deprecated.
+ |
+
addField, getConfidence, getFieldNames, hasField, removeField
initDictionaryStartVariableFromJsonObject
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@Deprecated +public class TemplateFieldScanOptions +extends UniversalIdFieldScanOptions+
IDFieldScanOptions.FieldScanOption
fieldNames
Constructor and Description | +
---|
TemplateFieldScanOptions()
+Deprecated.
+ |
+
addField, getFieldNames, getFieldScanOption, hasField, removeField
initDictionaryStartVariableFromJsonObject
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public class UniversalIdConfig +extends IdConfig<java.util.Map<java.lang.String,UniversalIdFieldConfidences>,java.util.Map<java.lang.String,UniversalIdFieldScanOptions>>+
idFieldScanOptions, idMinFieldConfidences
Constructor and Description | +
---|
UniversalIdConfig() |
+
UniversalIdConfig(org.json.JSONObject jsonObject) |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
+getAllowedLayouts()
+Get the Map of allowed layout types as keys and a list of allowed layouts for the specific key as value
+ |
+
java.util.List<java.lang.String> |
+getAllowedLayoutsForLayoutType(UniversalIdLayoutType universalIdLayoutType)
+Returns a List of strings for a universalIdLayoutType
+ |
+
void |
+setScanConfiguration(UniversalIdLayoutType universalIdLayoutType,
+ java.util.List<java.lang.String> layoutList)
+Sets programatically the allowed layout types and the layouts to be scanned for the specific layout type
+ |
+
enableFaceDetection, getIdFieldScanOptions, getIdMinFieldConfidences, getMinConfidence, isFaceDetectionEnabled, setIdFieldScanOptions, setIdMinFieldConfidences, setMinConfidence
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public UniversalIdConfig()+
public UniversalIdConfig(org.json.JSONObject jsonObject)+
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getAllowedLayouts()+
public void setScanConfiguration(@NonNull + UniversalIdLayoutType universalIdLayoutType, + @NonNull + java.util.List<java.lang.String> layoutList)+
universalIdLayoutType
- - Layout type (e.g. MRZ, idFront, driving license)layoutList
- - list of allowed layouts for the layout typepublic java.util.List<java.lang.String> getAllowedLayoutsForLayoutType(UniversalIdLayoutType universalIdLayoutType)+
universalIdLayoutType
- - Layout type (e.g. MRZ, idFront, driving license)public class UniversalIdFieldConfidences +extends IDFieldConfidences+
Modifier and Type | +Field and Description | +
---|---|
java.util.List<java.lang.String> |
+fieldNames |
+
Constructor and Description | +
---|
UniversalIdFieldConfidences() |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+addField(java.lang.String fieldName,
+ java.lang.Integer value) |
+
java.lang.Integer |
+getConfidence(java.lang.String fieldName) |
+
java.util.List<java.lang.String> |
+getFieldNames() |
+
java.lang.Boolean |
+hasField(java.lang.String fieldName) |
+
void |
+removeField(java.lang.String fieldName) |
+
initDictionaryStartVariableFromJsonObject
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public java.util.List<java.lang.String> fieldNames+
public UniversalIdFieldConfidences()+
public java.lang.Integer getConfidence(java.lang.String fieldName)+
public java.util.List<java.lang.String> getFieldNames()+
public java.lang.Boolean hasField(java.lang.String fieldName)+
public void addField(java.lang.String fieldName, + java.lang.Integer value)+
public void removeField(java.lang.String fieldName)+
public class UniversalIdFieldScanOptions +extends IDFieldScanOptions+
IDFieldScanOptions.FieldScanOption
Modifier and Type | +Field and Description | +
---|---|
java.util.List<java.lang.String> |
+fieldNames |
+
Constructor and Description | +
---|
UniversalIdFieldScanOptions() |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+addField(java.lang.String fieldName,
+ IDFieldScanOptions.FieldScanOption value) |
+
java.util.List<java.lang.String> |
+getFieldNames() |
+
IDFieldScanOptions.FieldScanOption |
+getFieldScanOption(java.lang.String fieldName) |
+
java.lang.Boolean |
+hasField(java.lang.String fieldName) |
+
void |
+removeField(java.lang.String fieldName) |
+
initDictionaryStartVariableFromJsonObject
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public java.util.List<java.lang.String> fieldNames+
public UniversalIdFieldScanOptions()+
public IDFieldScanOptions.FieldScanOption getFieldScanOption(java.lang.String fieldName)+
public java.lang.Boolean hasField(java.lang.String fieldName)+
public void addField(java.lang.String fieldName, + IDFieldScanOptions.FieldScanOption value)+
public void removeField(java.lang.String fieldName)+
public java.util.List<java.lang.String> getFieldNames()+
@Retention(value=SOURCE)
+public static @interface UniversalIdLayoutType.LayoutType
+public class UniversalIdLayoutType
+extends java.lang.Object
+Modifier and Type | +Class and Description | +
---|---|
static interface |
+UniversalIdLayoutType.LayoutType |
+
Modifier and Type | +Field and Description | +
---|---|
static java.lang.String |
+LAYOUT_TYPE_DRIVING_LICENSE |
+
static java.lang.String |
+LAYOUT_TYPE_ID_FRONT |
+
static java.lang.String |
+LAYOUT_TYPE_INSURANCE_CARD |
+
static java.lang.String |
+LAYOUT_TYPE_MRZ |
+
Constructor and Description | +
---|
UniversalIdLayoutType(java.lang.String type) |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.String |
+getType() |
+
void |
+setType(java.lang.String type) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final java.lang.String LAYOUT_TYPE_MRZ+
public static final java.lang.String LAYOUT_TYPE_DRIVING_LICENSE+
public static final java.lang.String LAYOUT_TYPE_ID_FRONT+
public static final java.lang.String LAYOUT_TYPE_INSURANCE_CARD+
Interface | +Description | +
---|---|
DataObject | ++ |
Enum | +Description | +
---|---|
DrivingLicenseConfig.DrivingLicenseCountry | ++ |
IDFieldScanOptions.FieldScanOption | +
+ Helper enum for the possible scan option applied to the fields
+ |
+
Annotation Type | +Description | +
---|---|
UniversalIdLayoutType.LayoutType | ++ |
public enum LicensePlateScanMode +extends java.lang.Enum<LicensePlateScanMode>+
Enum Constant and Description | +
---|
Albania |
+
Andorra |
+
Armenia |
+
Austria |
+
Auto |
+
Azerbaijan |
+
Belarus |
+
Belgium |
+
BosniaAndHerzegovina |
+
Bulgaria |
+
Croatia |
+
Cyprus |
+
CzechRepublic |
+
Denmark |
+
Estonia |
+
Finland |
+
France |
+
Georgia |
+
Germany |
+
Greece |
+
Hungary |
+
Iceland |
+
Ireland |
+
Italy |
+
Latvia |
+
Liechtenstein |
+
Lithuania |
+
Luxembourg |
+
Malta |
+
Moldova |
+
Monaco |
+
Montenegro |
+
Netherlands |
+
NorthMacedonia |
+
Norway |
+
NorwaySpecial |
+
Poland |
+
Portugal |
+
Romania |
+
Russia |
+
Serbia |
+
Slovakia |
+
Slovenia |
+
Spain |
+
Sweden |
+
Switzerland |
+
Turkey |
+
Ukraine |
+
UnitedKingdom |
+
Modifier and Type | +Method and Description | +
---|---|
static LicensePlateScanMode |
+lookup(java.lang.String scanMode) |
+
static LicensePlateScanMode |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static LicensePlateScanMode[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final LicensePlateScanMode Auto+
public static final LicensePlateScanMode Albania+
public static final LicensePlateScanMode Andorra+
public static final LicensePlateScanMode Armenia+
public static final LicensePlateScanMode Austria+
public static final LicensePlateScanMode Azerbaijan+
public static final LicensePlateScanMode Belarus+
public static final LicensePlateScanMode Belgium+
public static final LicensePlateScanMode BosniaAndHerzegovina+
public static final LicensePlateScanMode Bulgaria+
public static final LicensePlateScanMode Croatia+
public static final LicensePlateScanMode Cyprus+
public static final LicensePlateScanMode CzechRepublic+
public static final LicensePlateScanMode Denmark+
public static final LicensePlateScanMode Estonia+
public static final LicensePlateScanMode Finland+
public static final LicensePlateScanMode France+
public static final LicensePlateScanMode Georgia+
public static final LicensePlateScanMode Germany+
public static final LicensePlateScanMode Greece+
public static final LicensePlateScanMode Hungary+
public static final LicensePlateScanMode Iceland+
public static final LicensePlateScanMode Ireland+
public static final LicensePlateScanMode Italy+
public static final LicensePlateScanMode Latvia+
public static final LicensePlateScanMode Liechtenstein+
public static final LicensePlateScanMode Lithuania+
public static final LicensePlateScanMode Luxembourg+
public static final LicensePlateScanMode Malta+
public static final LicensePlateScanMode Moldova+
public static final LicensePlateScanMode Monaco+
public static final LicensePlateScanMode Montenegro+
public static final LicensePlateScanMode Netherlands+
public static final LicensePlateScanMode NorthMacedonia+
public static final LicensePlateScanMode Norway+
public static final LicensePlateScanMode NorwaySpecial+
public static final LicensePlateScanMode Poland+
public static final LicensePlateScanMode Portugal+
public static final LicensePlateScanMode Romania+
public static final LicensePlateScanMode Russia+
public static final LicensePlateScanMode Serbia+
public static final LicensePlateScanMode Slovakia+
public static final LicensePlateScanMode Slovenia+
public static final LicensePlateScanMode Spain+
public static final LicensePlateScanMode Sweden+
public static final LicensePlateScanMode Switzerland+
public static final LicensePlateScanMode Turkey+
public static final LicensePlateScanMode Ukraine+
public static final LicensePlateScanMode UnitedKingdom+
public static LicensePlateScanMode[] values()+
+for (LicensePlateScanMode c : LicensePlateScanMode.values()) + System.out.println(c); +
public static LicensePlateScanMode valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static LicensePlateScanMode lookup(java.lang.String scanMode)+
public class LicensePlateScanPlugin +extends AbstractScanPlugin<LicensePlateScanResult>+
Modifier and Type | +Field and Description | +
---|---|
static java.lang.String |
+ANYLINE_LICENSE_PLATE_BUNDLE_PATH |
+
java.util.Map<LicensePlateScanMode,java.lang.String> |
+charWhiteList |
+
java.util.Map<LicensePlateScanMode,java.lang.String> |
+validationRegex |
+
Constructor and Description | +
---|
LicensePlateScanPlugin(android.content.Context context,
+ java.lang.String id) |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Map<LicensePlateScanMode,java.lang.String> |
+getCharWhiteList() |
+
static java.util.Map<LicensePlateScanMode,java.lang.String> |
+getMapFromJsonObject(org.json.JSONObject jsonObject) |
+
java.lang.String |
+getModuleIdentifier() |
+
java.lang.String |
+getProductName() |
+
LicensePlateScanMode |
+getScanMode() |
+
java.util.Map<LicensePlateScanMode,java.lang.String> |
+getValidationRegex() |
+
static java.lang.String |
+mapToStartVariableString(java.util.Map<LicensePlateScanMode,java.lang.String> map,
+ java.lang.String separator,
+ java.lang.String delimiter) |
+
void |
+setCharWhiteList(java.util.Map<LicensePlateScanMode,java.lang.String> charWhiteList) |
+
void |
+setScanMode(LicensePlateScanMode scanMode) |
+
void |
+setValidationRegex(java.util.Map<LicensePlateScanMode,java.lang.String> validationRegex) |
+
void |
+start()
+Start the processing of the plugin
+ |
+
addScanInfoListener, addScanResultListener, addScanRunSkippedListener, cancelController, getAnylineController, getAssetController, getAssetPath, getId, getImageProvider, isRunning, removeArgumentExceptionListener, removeScanInfoListener, removeScanResultListener, removeScanRunSkippedListener, setArgumentExceptionListener, setAssetPath, setCancelOnResult, setCmdFileName, setCropRect, setDebug, setDelayScanTime, setId, setImageProvider, setReportingEnabled, stop
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final java.lang.String ANYLINE_LICENSE_PLATE_BUNDLE_PATH+
public java.util.Map<LicensePlateScanMode,java.lang.String> charWhiteList+
public java.util.Map<LicensePlateScanMode,java.lang.String> validationRegex+
public LicensePlateScanPlugin(android.content.Context context, + java.lang.String id)+
public void setScanMode(LicensePlateScanMode scanMode)+
public LicensePlateScanMode getScanMode()+
public java.lang.String getProductName()+
getProductName
in class AbstractScanPlugin<LicensePlateScanResult>
public java.lang.String getModuleIdentifier()+
getModuleIdentifier
in interface ScanPlugin<LicensePlateScanResult>
getModuleIdentifier
in class AbstractScanPlugin<LicensePlateScanResult>
public void start()+
ScanPlugin
start
in interface ScanPlugin<LicensePlateScanResult>
start
in class AbstractScanPlugin<LicensePlateScanResult>
public java.util.Map<LicensePlateScanMode,java.lang.String> getCharWhiteList()+
public void setCharWhiteList(java.util.Map<LicensePlateScanMode,java.lang.String> charWhiteList)+
public java.util.Map<LicensePlateScanMode,java.lang.String> getValidationRegex()+
public void setValidationRegex(java.util.Map<LicensePlateScanMode,java.lang.String> validationRegex)+
public static java.util.Map<LicensePlateScanMode,java.lang.String> getMapFromJsonObject(org.json.JSONObject jsonObject)+
public static java.lang.String mapToStartVariableString(java.util.Map<LicensePlateScanMode,java.lang.String> map, + java.lang.String separator, + java.lang.String delimiter)+
public class LicensePlateScanResult +extends ScanResult<java.lang.String>+
Constructor and Description | +
---|
LicensePlateScanResult(java.lang.String pluginId,
+ java.util.List<android.graphics.PointF> outline,
+ java.lang.Integer confidence,
+ AnylineImage cutoutImage,
+ AnylineImage fullImage,
+ java.lang.String result,
+ java.lang.String country) |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.String |
+getCountry()
+Returns the detected License Plate country
+ |
+
getPluginId
getConfidence, getCutoutImage, getFaceImage, getFullImage, getOutline, getResult, setOutline
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public LicensePlateScanResult(@Nullable + java.lang.String pluginId, + @Nullable + java.util.List<android.graphics.PointF> outline, + @Nullable + java.lang.Integer confidence, + @Nullable + AnylineImage cutoutImage, + @Nullable + AnylineImage fullImage, + @NonNull + java.lang.String result, + @NonNull + java.lang.String country)+
public class LicensePlateScanViewPlugin +extends AbstractScanViewPlugin+
Constructor and Description | +
---|
LicensePlateScanViewPlugin(android.content.Context context,
+ AbstractScanPlugin scanPlugin,
+ ScanViewPluginConfig config) |
+
LicensePlateScanViewPlugin(android.content.Context context,
+ ScanViewPluginConfig config,
+ java.lang.String id) |
+
addScanInfoListener, addScanResultListener, addScanRunSkippedListener, addUIConfigChangedListener, calcCutOutAndImageCropBounds, getAllScanViewPlugins, getCancelOnResult, getCutoutRect, getId, getScanPlugin, getScanViewPluginConfig, removeScanInfoListener, removeScanResultListener, removeScanRunSkippedListener, removeUIConfigChangedListener, setCancelOnResult, setCropRect, setDelayScanTime, setImageProvider, start, stop
setDebugListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public LicensePlateScanViewPlugin(@NonNull + android.content.Context context, + @NonNull + AbstractScanPlugin scanPlugin, + @NonNull + ScanViewPluginConfig config)+
public LicensePlateScanViewPlugin(@NonNull + android.content.Context context, + @NonNull + ScanViewPluginConfig config, + java.lang.String id)+
Class | +Description | +
---|---|
LicensePlateScanPlugin | +
+ Created by clemens on 28/09/17.
+ |
+
LicensePlateScanResult | +
+ Created by clemens on 28/09/17.
+ |
+
LicensePlateScanViewPlugin | +
+ Created by lorena on 18.06.18.
+ |
+
Enum | +Description | +
---|---|
LicensePlateScanMode | ++ |
public enum MeterScanMode +extends java.lang.Enum<MeterScanMode>+
MeterScanPlugin
.Enum Constant and Description | +
---|
ANALOG_METER |
+
AUTO_ANALOG_DIGITAL_METER |
+
BARCODE |
+
DIAL_METER |
+
DIGITAL_METER |
+
DOT_MATRIX_METER |
+
HEAT_METER_4 |
+
HEAT_METER_5 |
+
HEAT_METER_6 |
+
SERIAL_NUMBER |
+
Modifier and Type | +Method and Description | +
---|---|
static MeterScanMode |
+fromEnergyScanMode(MeterScanMode scanMode)
+Get the enum value
+ |
+
java.lang.String |
+toLicenseStringIdentifier() |
+
static MeterScanMode |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static MeterScanMode[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final MeterScanMode AUTO_ANALOG_DIGITAL_METER+
public static final MeterScanMode ANALOG_METER+
public static final MeterScanMode DIGITAL_METER+
public static final MeterScanMode HEAT_METER_4+
public static final MeterScanMode HEAT_METER_5+
public static final MeterScanMode HEAT_METER_6+
public static final MeterScanMode BARCODE+
public static final MeterScanMode SERIAL_NUMBER+
public static final MeterScanMode DIAL_METER+
public static final MeterScanMode DOT_MATRIX_METER+
public static MeterScanMode[] values()+
+for (MeterScanMode c : MeterScanMode.values()) + System.out.println(c); +
public static MeterScanMode valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static MeterScanMode fromEnergyScanMode(MeterScanMode scanMode)+
scanMode
- the old enum valuepublic java.lang.String toLicenseStringIdentifier()+
public class MeterScanPlugin +extends AbstractScanPlugin<MeterScanResult>+
+ The Anyline Meter Plugin scans a variety of meters (and also bar- and qr-codes) +
+ This plugin is in ALPHA state and may change in a future version. +
Constructor and Description | +
---|
MeterScanPlugin(android.content.Context context,
+ java.lang.String id) |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.String |
+getModuleIdentifier() |
+
java.lang.String |
+getProductName() |
+
MeterScanMode |
+getScanMode() |
+
void |
+setScanMode(MeterScanMode scanMode)
+Set the scan mode (Select what should be scanned next).
+ |
+
void |
+setSerialNumberCharWhitelist(java.lang.String whiteList)
+Set the character whitelist (all the characters that may occur in the data that should be recognized)
+ as a string for the Serialnumber scan mode.
+ |
+
void |
+setSerialNumberValidationRegex(java.lang.String regexString)
+Set a validation regex string for the Serialnumber scan mode.
+ |
+
void |
+start()
+Start the processing of the plugin
+ |
+
addScanInfoListener, addScanResultListener, addScanRunSkippedListener, cancelController, getAnylineController, getAssetController, getAssetPath, getId, getImageProvider, isRunning, removeArgumentExceptionListener, removeScanInfoListener, removeScanResultListener, removeScanRunSkippedListener, setArgumentExceptionListener, setAssetPath, setCancelOnResult, setCmdFileName, setCropRect, setDebug, setDelayScanTime, setId, setImageProvider, setReportingEnabled, stop
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public MeterScanPlugin(android.content.Context context, + java.lang.String id)+
public java.lang.String getProductName()+
getProductName
in class AbstractScanPlugin<MeterScanResult>
public java.lang.String getModuleIdentifier()+
getModuleIdentifier
in interface ScanPlugin<MeterScanResult>
getModuleIdentifier
in class AbstractScanPlugin<MeterScanResult>
public void start()+
ScanPlugin
start
in interface ScanPlugin<MeterScanResult>
start
in class AbstractScanPlugin<MeterScanResult>
public void setScanMode(MeterScanMode scanMode)+
Set the scan mode (Select what should be scanned next). +
+ Available Modes: +
MeterScanMode.BARCODE
+ - for scanning bar- and qr-codesMeterScanMode.AUTO_ANALOG_DIGITAL_METER
+ - for scanning analog meters and digital meters, will automatically detect the meter type and perform the
+ corresponding scan
+ (before and after the point)MeterScanMode.ANALOG_METER
+ - for scanning analog meters, will automatically detect the amount digits
+ (before and after the point)MeterScanMode.SERIAL_NUMBER
+ - for scanning the serial number of analog meters.MeterScanMode.DIGITAL_METER
+ - for scanning digital meters, with at least 5 digits.MeterScanMode.HEAT_METER_4
+ - for scanning digital heat meters with 4 digits before the point (and 0-3 after the point).
+ MeterScanMode.HEAT_METER_5
+ - for scanning digital heat meters with 5 digits before the point (and 0-3 after the point).
+ MeterScanMode.HEAT_METER_6
+ - for scanning digital heat meters with 6 digits before the point (and 0-3 after the point).
+ MeterScanMode.DIAL_METER
+ - for scanning dial meters.
+ MeterScanMode.DOT_MATRIX_METER
+ - for scanning dot matrix digital meters.
+
+ Call start()
after this to start the scanning.
+
scanMode
- the scan mode to use (see description)public MeterScanMode getScanMode()+
public void setSerialNumberValidationRegex(java.lang.String regexString)+
regexString
- the regular expression represented as a string used for validation.public void setSerialNumberCharWhitelist(java.lang.String whiteList)+
whiteList
- represents the whitelist of allowed characters.public class MeterScanResult +extends ScanResult<java.lang.String>+
MeterScanPlugin
Constructor and Description | +
---|
MeterScanResult(java.lang.String pluginId,
+ java.util.List<android.graphics.PointF> outline,
+ java.lang.Integer confidence,
+ AnylineImage cutoutImage,
+ AnylineImage fullImage,
+ java.lang.String result,
+ MeterScanMode scanMode) |
+
Modifier and Type | +Method and Description | +
---|---|
MeterScanMode |
+getScanMode()
+Returns the scan mode which was used to acquire the result.
+ |
+
getPluginId
getConfidence, getCutoutImage, getFaceImage, getFullImage, getOutline, getResult, setOutline
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public MeterScanResult(@Nullable + java.lang.String pluginId, + @Nullable + java.util.List<android.graphics.PointF> outline, + @Nullable + java.lang.Integer confidence, + @Nullable + AnylineImage cutoutImage, + @Nullable + AnylineImage fullImage, + @NonNull + java.lang.String result, + @NonNull + MeterScanMode scanMode)+
@NonNull +public MeterScanMode getScanMode()+
public class MeterScanViewPlugin +extends AbstractScanViewPlugin+
The Anyline Energy-Module scans a variety of meters (and also bar- and qr-codes)
Constructor and Description | +
---|
MeterScanViewPlugin(android.content.Context context,
+ AbstractScanPlugin scanPlugin,
+ ScanViewPluginConfig config) |
+
MeterScanViewPlugin(android.content.Context context,
+ ScanViewPluginConfig config,
+ java.lang.String id) |
+
Modifier and Type | +Method and Description | +
---|---|
MeterScanMode |
+getScanMode() |
+
void |
+setCancelOnResult(boolean isCancelOnResult)
+
+ If set to true (default) the scanning is stopped automatically when a result is found.
+ |
+
void |
+setScanMode(MeterScanMode scanMode)
+Set the scan mode (Select what should be scanned next).
+ |
+
addScanInfoListener, addScanResultListener, addScanRunSkippedListener, addUIConfigChangedListener, calcCutOutAndImageCropBounds, getAllScanViewPlugins, getCancelOnResult, getCutoutRect, getId, getScanPlugin, getScanViewPluginConfig, removeScanInfoListener, removeScanResultListener, removeScanRunSkippedListener, removeUIConfigChangedListener, setCropRect, setDelayScanTime, setImageProvider, start, stop
setDebugListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public MeterScanViewPlugin(@NonNull + android.content.Context context, + @NonNull + AbstractScanPlugin scanPlugin, + @NonNull + ScanViewPluginConfig config)+
public MeterScanViewPlugin(@NonNull + android.content.Context context, + @NonNull + ScanViewPluginConfig config, + @NonNull + java.lang.String id)+
public void setScanMode(MeterScanMode scanMode)+
Set the scan mode (Select what should be scanned next). +
+ Available Modes: +
MeterScanMode.BARCODE
+ - for scanning bar- and qr-codesMeterScanMode.AUTO_ANALOG_DIGITAL_METER
+ - for scanning analog meters and digital meters, will automatically detect the meter type and perform the
+ corresponding scan
+ (before and after the point)MeterScanMode.ANALOG_METER
+ - for scanning analog meters, will automatically detect the amount digits
+ (before and after the point)MeterScanMode.SERIAL_NUMBER
+ - for scanning the serial number of analog meters.MeterScanMode.DIGITAL_METER
+ - for scanning digital meters, with at least 5 digits.MeterScanMode.HEAT_METER_4
+ - for scanning digital heat meters with 4 digits before the point (and 0-3 after the point).
+ MeterScanMode.HEAT_METER_5
+ - for scanning digital heat meters with 5 digits before the point (and 0-3 after the point).
+ MeterScanMode.HEAT_METER_6
+ - for scanning digital heat meters with 6 digits before the point (and 0-3 after the point).
+ MeterScanMode.DIAL_METER
+ - for scanning dial meters.
+
+ Call AbstractScanViewPlugin.start()
after this to start the scanning.
+
scanMode
- the scan mode to use (see description)public MeterScanMode getScanMode()+
public void setCancelOnResult(boolean isCancelOnResult)+
+ If set to true (default) the scanning is stopped automatically when a result is found. (User needs to call
+ AbstractScanViewPlugin.start()
again to continue scanning.)
+ If set to false the scanning goes on forever until AbstractScanViewPlugin.stop()
is called manually.
+
setCancelOnResult
in class AbstractScanViewPlugin
Class | +Description | +
---|---|
MeterScanPlugin | +
+ Anyline Meter Plugin
+ |
+
MeterScanResult | +
+ A result class for the
+MeterScanPlugin |
+
MeterScanViewPlugin | +
+ Anyline Energy View
+ |
+
Enum | +Description | +
---|---|
MeterScanMode | +
+ A enum for the available scan modes in the
+MeterScanPlugin . |
+
public class AnylineCattleTagConfig +extends AnylineOcrBaseConfig+
Constructor and Description | +
---|
AnylineCattleTagConfig() |
+
toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static enum AnylineContainerConfig.ContainerScanMode +extends java.lang.Enum<AnylineContainerConfig.ContainerScanMode>+
Enum Constant and Description | +
---|
HORIZONTAL |
+
VERTICAL |
+
Modifier and Type | +Method and Description | +
---|---|
static AnylineContainerConfig.ContainerScanMode |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static AnylineContainerConfig.ContainerScanMode[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final AnylineContainerConfig.ContainerScanMode VERTICAL+
public static final AnylineContainerConfig.ContainerScanMode HORIZONTAL+
public static AnylineContainerConfig.ContainerScanMode[] values()+
+for (AnylineContainerConfig.ContainerScanMode c : AnylineContainerConfig.ContainerScanMode.values()) + System.out.println(c); +
public static AnylineContainerConfig.ContainerScanMode valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic class AnylineContainerConfig +extends AnylineOcrBaseConfig+
Modifier and Type | +Class and Description | +
---|---|
static class |
+AnylineContainerConfig.ContainerScanMode |
+
Constructor and Description | +
---|
AnylineContainerConfig() |
+
AnylineContainerConfig(org.json.JSONObject anylineContainerConfigJson) |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.String |
+getCharWhitelist() |
+
AnylineContainerConfig.ContainerScanMode |
+getScanMode() |
+
java.lang.String |
+getValidationRegex() |
+
void |
+setCharacterWhitelist(java.lang.String characterWhiteList) |
+
void |
+setScanMode(AnylineContainerConfig.ContainerScanMode scanMode) |
+
void |
+setValidationRegex(java.lang.String validationRegex) |
+
toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public AnylineContainerConfig()+
public AnylineContainerConfig(org.json.JSONObject anylineContainerConfigJson)+
public void setScanMode(AnylineContainerConfig.ContainerScanMode scanMode)+
public AnylineContainerConfig.ContainerScanMode getScanMode()+
public void setCharacterWhitelist(java.lang.String characterWhiteList)+
public void setValidationRegex(java.lang.String validationRegex)+
public java.lang.String getCharWhitelist()+
public java.lang.String getValidationRegex()+
public abstract class AnylineOcrBaseConfig
+extends java.lang.Object
+Constructor and Description | +
---|
AnylineOcrBaseConfig() |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.String |
+toString() |
+
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static enum AnylineOcrConfig.AnylineOcrRegex +extends java.lang.Enum<AnylineOcrConfig.AnylineOcrRegex>+
+ Pre-defined regular expressions to be set with AnylineOcrConfig.setValidationRegex(String)
+ Note the regular expressions are implemented for convenience, and give some an example for some
+ use cases. You can always pass your own regular expression to AnylineOcrConfig.setValidationRegex(String)
+
Enum Constant and Description | +
---|
EMAIL |
+
IMEI |
+
ISBN |
+
PRICE |
+
URL |
+
VIN |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.String |
+getRegex() |
+
java.lang.String |
+getWhiteList() |
+
static AnylineOcrConfig.AnylineOcrRegex |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static AnylineOcrConfig.AnylineOcrRegex[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final AnylineOcrConfig.AnylineOcrRegex URL+
public static final AnylineOcrConfig.AnylineOcrRegex EMAIL+
public static final AnylineOcrConfig.AnylineOcrRegex ISBN+
public static final AnylineOcrConfig.AnylineOcrRegex VIN+
public static final AnylineOcrConfig.AnylineOcrRegex IMEI+
public static final AnylineOcrConfig.AnylineOcrRegex PRICE+
public static AnylineOcrConfig.AnylineOcrRegex[] values()+
+for (AnylineOcrConfig.AnylineOcrRegex c : AnylineOcrConfig.AnylineOcrRegex.values()) + System.out.println(c); +
public static AnylineOcrConfig.AnylineOcrRegex valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getRegex()+
public java.lang.String getWhiteList()+
public static enum AnylineOcrConfig.ScanMode +extends java.lang.Enum<AnylineOcrConfig.ScanMode>+
AnylineOcrConfig.setScanMode(ScanMode)
Enum Constant and Description | +
---|
AUTO
+The AUTO mode is optimal if you want to scan more than one use case in one mode.
+ |
+
GRID
+The GRID mode is optimal for characters with equal size laid out in a grid with a constant font,
+ background and character count (like loyalty codes inside bottle caps)
+ |
+
LINE
+The LINE mode is optimal for scanning one or more lines of variable length or font (like IBANs or addresses)
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static AnylineOcrConfig.ScanMode |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static AnylineOcrConfig.ScanMode[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final AnylineOcrConfig.ScanMode LINE+
public static final AnylineOcrConfig.ScanMode GRID+
public static final AnylineOcrConfig.ScanMode AUTO+
public static AnylineOcrConfig.ScanMode[] values()+
+for (AnylineOcrConfig.ScanMode c : AnylineOcrConfig.ScanMode.values()) + System.out.println(c); +
public static AnylineOcrConfig.ScanMode valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic class AnylineOcrConfig +extends AnylineOcrBaseConfig+
Modifier and Type | +Class and Description | +
---|---|
static class |
+AnylineOcrConfig.AnylineOcrRegex
+
+ Pre-defined regular expressions to be set with
+setValidationRegex(String) + Note the regular expressions are implemented for convenience, and give some an example for some + use cases. |
+
static class |
+AnylineOcrConfig.ScanMode
+The possible scan modes see
+setScanMode(ScanMode) |
+
Constructor and Description | +
---|
AnylineOcrConfig() |
+
AnylineOcrConfig(android.content.Context context,
+ java.lang.String configFileName)
+
+ Create config from the given json file.
+ |
+
AnylineOcrConfig(org.json.JSONObject jsonObject)
+Create config from the given json object.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
int |
+getCharCountX() |
+
int |
+getCharCountY() |
+
double |
+getCharPaddingXFactor() |
+
double |
+getCharPaddingYFactor() |
+
java.lang.String |
+getCharWhitelist() |
+
java.lang.String |
+getCustomCmdFile() |
+
java.lang.String |
+getCustomScript() |
+
int |
+getMaxCharHeight() |
+
int |
+getMinCharHeight() |
+
int |
+getMinConfidence() |
+
int |
+getMinSharpness() |
+
java.lang.String |
+getModel() |
+
java.lang.String |
+getModelsAsJsonString() |
+
AnylineOcrConfig.ScanMode |
+getScanMode() |
+
java.lang.String |
+getValidationRegex() |
+
void |
+setCharCountX(int charCountX) |
+
void |
+setCharCountY(int charCountY) |
+
void |
+setCharPaddingXFactor(double charPaddingXFactor) |
+
void |
+setCharPaddingYFactor(double charPaddingYFactor) |
+
void |
+setCharWhitelist(java.lang.String charWhitelist)
+Set all the characters that may occurred on the data that should be recognized.
+ |
+
void |
+setCustomCmdFile(java.lang.String customCmdFile)
+Set the custom command file (ale) to use for the image processing.
+ |
+
void |
+setCustomScript(java.lang.String customScript)
+Set the custom script to use for the image processing (text, not file name).
+ |
+
void |
+setMaxCharHeight(int maxCharHeight)
+Set the maximum height of a character to scan in pixels (relative to the configured capture resolution)
+ |
+
void |
+setMinCharHeight(int minCharHeight)
+Set the minimum height of a character to scan in pixels (relative to the configured capture resolution)
+ |
+
void |
+setMinConfidence(int minConfidence)
+The minimum confidence required to return a result, a value between 0 and 100.
+ |
+
void |
+setMinSharpness(int minSharpness)
+
+ Experimental parameter to set the minimum sharpness (value between 0-100; 0 to turn sharpness detection off;
+ only used in
+AnylineOcrConfig.ScanMode.LINE ). |
+
void |
+setModel(java.lang.String model)
+Sets the model with a string path
+ |
+
void |
+setScanMode(AnylineOcrConfig.ScanMode scanMode)
+Set the scan mode.
+ |
+
void |
+setValidationRegex(java.lang.String validationRegex)
+Set a regex string to validate the result (invalid results will not be returned).
+ |
+
toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public AnylineOcrConfig()+
public AnylineOcrConfig(android.content.Context context, + java.lang.String configFileName)+
+ Create config from the given json file. +
++ JSON example: +
+ { + "scanMode": "LINE" + "customCmdFile": "pathTo.ale", + "minCharHeight": 15, + "maxCharHeight": 65, + "model": "mymodel.any", + "charWhitelist": "ABCDEFG", + "validationRegex": "\\d", + "minConfidence": 65, + "charCountX": 4, + "charCountY": 2, + "charPaddingXFactor": 1.0, + "charPaddingYFactor": 1.0, + "minSharpness": 70 + } ++
context
- the contextconfigFileName
- the json file name in the assets (with relative path to assets)public AnylineOcrConfig(org.json.JSONObject jsonObject)+
jsonObject
- the json object with the settings@Nullable +public java.lang.String getCustomCmdFile()+
public void setCustomCmdFile(@Nullable + java.lang.String customCmdFile)+
setCustomScript(String)
(customScript is set to null here).customCmdFile
- the file name within the assets (including path within the assets folder)@Nullable +public java.lang.String getCustomScript()+
public void setCustomScript(@Nullable + java.lang.String customScript)+
setCustomCmdFile(String)
(customCmdFile is set to null here).customScript
- the custom script to use (text, not file name)public int getMinCharHeight()+
public void setMinCharHeight(int minCharHeight)+
minCharHeight
- the minimum heightpublic int getMaxCharHeight()+
public void setMaxCharHeight(int maxCharHeight)+
maxCharHeight
- the maximum height@NonNull +public java.lang.String getModel()+
@Nullable +public java.lang.String getCharWhitelist()+
public void setCharWhitelist(@Nullable + java.lang.String charWhitelist)+
charWhitelist
- the whitelist of allowed characters@NonNull +public java.lang.String getValidationRegex()+
public void setValidationRegex(@Nullable + java.lang.String validationRegex)+
validationRegex
- the regex string to use for validationpublic int getMinConfidence()+
public void setMinConfidence(int minConfidence)+
minConfidence
- the minimum confidence@NonNull +public AnylineOcrConfig.ScanMode getScanMode()+
AnylineOcrConfig.ScanMode.LINE
or AnylineOcrConfig.ScanMode.GRID
)public void setScanMode(@NonNull + AnylineOcrConfig.ScanMode scanMode)+
scanMode
- the scan mode (AnylineOcrConfig.ScanMode.LINE
or AnylineOcrConfig.ScanMode.GRID
)public int getCharCountX()+
AnylineOcrConfig.ScanMode.GRID
mode)public void setCharCountX(int charCountX)+
charCountX
- the character count in x direction (only used in AnylineOcrConfig.ScanMode.GRID
mode)public int getCharCountY()+
AnylineOcrConfig.ScanMode.GRID
mode)public void setCharCountY(int charCountY)+
charCountY
- the character count in y direction (only used in AnylineOcrConfig.ScanMode.GRID
mode)public double getCharPaddingXFactor()+
AnylineOcrConfig.ScanMode.GRID
mode)public void setCharPaddingXFactor(double charPaddingXFactor)+
charPaddingXFactor
- the average distance between characters in X direction,
+ measured in percentage of character width.
+ (only used in AnylineOcrConfig.ScanMode.GRID
mode)public double getCharPaddingYFactor()+
AnylineOcrConfig.ScanMode.GRID
mode)public void setCharPaddingYFactor(double charPaddingYFactor)+
charPaddingYFactor
- The average distance between characters in Y direction,
+ measured in percentage of character height.
+ (only used in AnylineOcrConfig.ScanMode.GRID
mode)public int getMinSharpness()+
AnylineOcrConfig.ScanMode.LINE
)public void setMinSharpness(int minSharpness)+
+ Experimental parameter to set the minimum sharpness (value between 0-100; 0 to turn sharpness detection off;
+ only used in AnylineOcrConfig.ScanMode.LINE
).
+
+ The goal of the minimum sharpness is to avoid a time consuming ocr step, + if the image is blurry and good results are therefor not likely. Detecting sharpness is however difficult, + good values for the minimum are use case dependent. +
+ The detected sharpness will be reported in AnylineDebugListener.onDebug(String,
+ Object)
}
+
+ NOTE: Experimental means that this may be removed or changed in the future. +
minSharpness
- the minimum sharpness (0-100)@NonNull +public java.lang.String getModelsAsJsonString()+
public void setModel(java.lang.String model)+
model
- public static enum AnylineTINConfig.TINScanMode +extends java.lang.Enum<AnylineTINConfig.TINScanMode>+
Enum Constant and Description | +
---|
FLEXIBLE |
+
STANDARD |
+
Modifier and Type | +Method and Description | +
---|---|
static AnylineTINConfig.TINScanMode |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static AnylineTINConfig.TINScanMode[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final AnylineTINConfig.TINScanMode STANDARD+
public static final AnylineTINConfig.TINScanMode FLEXIBLE+
public static AnylineTINConfig.TINScanMode[] values()+
+for (AnylineTINConfig.TINScanMode c : AnylineTINConfig.TINScanMode.values()) + System.out.println(c); +
public static AnylineTINConfig.TINScanMode valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static enum AnylineTINConfig.TINUpsideDownMode +extends java.lang.Enum<AnylineTINConfig.TINUpsideDownMode>+
Enum Constant and Description | +
---|
AUTO |
+
DISABLED |
+
ENABLED |
+
Modifier and Type | +Method and Description | +
---|---|
static AnylineTINConfig.TINUpsideDownMode |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static AnylineTINConfig.TINUpsideDownMode[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final AnylineTINConfig.TINUpsideDownMode DISABLED+
public static final AnylineTINConfig.TINUpsideDownMode ENABLED+
public static final AnylineTINConfig.TINUpsideDownMode AUTO+
public static AnylineTINConfig.TINUpsideDownMode[] values()+
+for (AnylineTINConfig.TINUpsideDownMode c : AnylineTINConfig.TINUpsideDownMode.values()) + System.out.println(c); +
public static AnylineTINConfig.TINUpsideDownMode valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic class AnylineTINConfig +extends AnylineOcrBaseConfig+
Modifier and Type | +Class and Description | +
---|---|
static class |
+AnylineTINConfig.TINScanMode |
+
static class |
+AnylineTINConfig.TINUpsideDownMode |
+
Constructor and Description | +
---|
AnylineTINConfig() |
+
AnylineTINConfig(org.json.JSONObject anylineTINConfigJson) |
+
Modifier and Type | +Method and Description | +
---|---|
AnylineTINConfig.TINScanMode |
+getScanMode() |
+
AnylineTINConfig.TINUpsideDownMode |
+getUpsideDownMode() |
+
void |
+setScanMode(AnylineTINConfig.TINScanMode scanMode) |
+
void |
+setUpsideDownMode(AnylineTINConfig.TINUpsideDownMode upsideDownMode) |
+
toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public AnylineTINConfig()+
public AnylineTINConfig(org.json.JSONObject anylineTINConfigJson)+
public void setScanMode(AnylineTINConfig.TINScanMode scanMode)+
public AnylineTINConfig.TINScanMode getScanMode()+
public void setUpsideDownMode(AnylineTINConfig.TINUpsideDownMode upsideDownMode)+
public AnylineTINConfig.TINUpsideDownMode getUpsideDownMode()+
public class AnylineVINConfig +extends AnylineOcrBaseConfig+
Constructor and Description | +
---|
AnylineVINConfig() |
+
AnylineVINConfig(org.json.JSONObject vinConfigJson) |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.String |
+getCharWhitelist() |
+
java.lang.String |
+getValidationRegex() |
+
void |
+setCharacterWhitelist(java.lang.String characterWhiteList) |
+
void |
+setValidationRegex(java.lang.String validationRegex) |
+
toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public AnylineVINConfig()+
public AnylineVINConfig(org.json.JSONObject vinConfigJson)+
public void setCharacterWhitelist(java.lang.String characterWhiteList)+
public void setValidationRegex(java.lang.String validationRegex)+
public java.lang.String getCharWhitelist()+
public java.lang.String getValidationRegex()+
public class OcrScanPlugin +extends AbstractScanPlugin<OcrScanResult>+
+ The AnylineOcrScanView can be used to recognize text.
+ It can be adapted to different kinds of use cases with the the AnylineOcrConfig
.
+
+ This plugin is in ALPHA state and may change in a future version. +
Constructor and Description | +
---|
OcrScanPlugin(android.content.Context context,
+ java.lang.String id,
+ AnylineOcrBaseConfig config) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+copyTrainedData(java.lang.String fileName,
+ java.lang.String fileHash)
+Copies given traineddata-file to a place where the core can access it.
+ |
+
AnylineOcrBaseConfig |
+getAnylineOcrConfig()
+Get anyline Ocr Config
+ |
+
java.lang.String |
+getModuleIdentifier() |
+
java.lang.String |
+getProductName() |
+
void |
+setAnylineOcrConfig(AnylineOcrBaseConfig anylineOcrConfig)
+set AnylineOcrConfig
+ |
+
void |
+start()
+Start the processing of the plugin
+ |
+
addScanInfoListener, addScanResultListener, addScanRunSkippedListener, cancelController, getAnylineController, getAssetController, getAssetPath, getId, getImageProvider, isRunning, removeArgumentExceptionListener, removeScanInfoListener, removeScanResultListener, removeScanRunSkippedListener, setArgumentExceptionListener, setAssetPath, setCancelOnResult, setCmdFileName, setCropRect, setDebug, setDelayScanTime, setId, setImageProvider, setReportingEnabled, stop
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public OcrScanPlugin(android.content.Context context, + java.lang.String id, + AnylineOcrBaseConfig config)+
public AnylineOcrBaseConfig getAnylineOcrConfig()+
public void setAnylineOcrConfig(AnylineOcrBaseConfig anylineOcrConfig)+
anylineOcrConfig
- public java.lang.String getProductName()+
getProductName
in class AbstractScanPlugin<OcrScanResult>
public java.lang.String getModuleIdentifier()+
getModuleIdentifier
in interface ScanPlugin<OcrScanResult>
getModuleIdentifier
in class AbstractScanPlugin<OcrScanResult>
public void start()+
ScanPlugin
start
in interface ScanPlugin<OcrScanResult>
start
in class AbstractScanPlugin<OcrScanResult>
public void copyTrainedData(java.lang.String fileName, + java.lang.String fileHash)+
start()
).
+ The file must be located directly in the assets directory (or in tessdata/ but no other sub folders are allowed)fileName
- the file (e.g.: xyz.traineddata or tessdata/xyz.traineddata)fileHash
- a hash for the file (faster) or null to calculate an md5 hash automaticallypublic class OcrScanResult +extends ScanResult<java.lang.String>+
OcrScanPlugin
Constructor and Description | +
---|
OcrScanResult(java.lang.String pluginId,
+ java.util.List<android.graphics.PointF> outline,
+ java.lang.Integer confidence,
+ AnylineImage cutoutImage,
+ AnylineImage fullImage,
+ java.lang.String result,
+ AnylineImage thresholdedImage) |
+
Modifier and Type | +Method and Description | +
---|---|
AnylineImage |
+getThresholdedImage() |
+
getPluginId
getConfidence, getCutoutImage, getFaceImage, getFullImage, getOutline, getResult, setOutline
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public OcrScanResult(@Nullable + java.lang.String pluginId, + @Nullable + java.util.List<android.graphics.PointF> outline, + @Nullable + java.lang.Integer confidence, + @Nullable + AnylineImage cutoutImage, + @Nullable + AnylineImage fullImage, + @NonNull + java.lang.String result, + @Nullable + AnylineImage thresholdedImage)+
public AnylineImage getThresholdedImage()+
public class OcrScanViewPlugin +extends AbstractScanViewPlugin+
AnylineOcrConfig
(settings to adapt the recognition to your use case).Constructor and Description | +
---|
OcrScanViewPlugin(android.content.Context context,
+ AbstractScanPlugin scanPlugin,
+ ScanViewPluginConfig config) |
+
OcrScanViewPlugin(android.content.Context context,
+ AnylineOcrBaseConfig ocrConfig,
+ ScanViewPluginConfig config,
+ java.lang.String id) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+copyTrainedData(java.lang.String fileName,
+ java.lang.String fileHash) |
+
AnylineOcrBaseConfig |
+getAnylineOcrConfig() |
+
void |
+setAnylineOcrConfig(AnylineOcrBaseConfig config) |
+
void |
+start() |
+
void |
+stop() |
+
addScanInfoListener, addScanResultListener, addScanRunSkippedListener, addUIConfigChangedListener, calcCutOutAndImageCropBounds, getAllScanViewPlugins, getCancelOnResult, getCutoutRect, getId, getScanPlugin, getScanViewPluginConfig, removeScanInfoListener, removeScanResultListener, removeScanRunSkippedListener, removeUIConfigChangedListener, setCancelOnResult, setCropRect, setDelayScanTime, setImageProvider
setDebugListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public OcrScanViewPlugin(@NonNull + android.content.Context context, + @NonNull + AbstractScanPlugin scanPlugin, + @NonNull + ScanViewPluginConfig config)+
public OcrScanViewPlugin(@NonNull + android.content.Context context, + @NonNull + AnylineOcrBaseConfig ocrConfig, + @NonNull + ScanViewPluginConfig config, + java.lang.String id)+
public void setAnylineOcrConfig(AnylineOcrBaseConfig config)+
public AnylineOcrBaseConfig getAnylineOcrConfig()+
public void copyTrainedData(java.lang.String fileName, + java.lang.String fileHash)+
public void start()+
start
in class AbstractScanViewPlugin
public void stop()+
stop
in class AbstractScanViewPlugin
public class TINResult +extends OcrScanResult+
Constructor and Description | +
---|
TINResult(java.lang.String pluginId,
+ java.util.List<android.graphics.PointF> outline,
+ java.lang.Integer confidence,
+ AnylineImage cutoutImage,
+ AnylineImage fullImage,
+ java.lang.String result,
+ AnylineImage thresholdedImage,
+ java.util.Map<java.lang.String,java.lang.String> topCandidates) |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Map<java.lang.String,java.lang.String> |
+getTopCandidates() |
+
getThresholdedImage
getPluginId
getConfidence, getCutoutImage, getFaceImage, getFullImage, getOutline, getResult, setOutline
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public TINResult(@Nullable + java.lang.String pluginId, + @Nullable + java.util.List<android.graphics.PointF> outline, + @Nullable + java.lang.Integer confidence, + @Nullable + AnylineImage cutoutImage, + @Nullable + AnylineImage fullImage, + @NonNull + java.lang.String result, + @Nullable + AnylineImage thresholdedImage, + java.util.Map<java.lang.String,java.lang.String> topCandidates)+
Class | +Description | +
---|---|
AnylineCattleTagConfig | ++ |
AnylineContainerConfig | ++ |
AnylineOcrBaseConfig | ++ |
AnylineOcrConfig | +
+ A class used to configure the Anyline OCR module
+ |
+
AnylineTINConfig | ++ |
AnylineVINConfig | ++ |
OcrScanPlugin | +
+
+ The AnylineOcrScanView can be used to recognize text.
+ |
+
OcrScanResult | +
+ A result class for the
+OcrScanPlugin |
+
OcrScanViewPlugin | +
+ The OcrScanViewPlugin can be used to recognize text.
+ |
+
TINResult | ++ |
Enum | +Description | +
---|---|
AnylineContainerConfig.ContainerScanMode | ++ |
AnylineOcrConfig.AnylineOcrRegex | +
+
+ Pre-defined regular expressions to be set with
+AnylineOcrConfig.setValidationRegex(String) + Note the regular expressions are implemented for convenience, and give some an example for some + use cases. |
+
AnylineOcrConfig.ScanMode | +
+ The possible scan modes see
+AnylineOcrConfig.setScanMode(ScanMode) |
+
AnylineTINConfig.TINScanMode | ++ |
AnylineTINConfig.TINUpsideDownMode | ++ |
Interface | +Description | +
---|---|
ScanInfoListener | +
+
+ A listener that can be added to
+ScanPlugin s, to receive intermediate information. |
+
ScanPlugin<ResultType extends ScanResult> | +
+
+ An interface for plugins that are capable of scanning things from images.
+ |
+
ScanResultListener<T extends ScanResult> | +
+
+ A listener that can be added to
+ScanPlugin s, to receive the results. |
+
ScanRunSkippedListener | +
+
+ A listener that can be added to
+ScanPlugin s, to receive information on why an image has been skipped (reached no result). |
+
Class | +Description | +
---|---|
AbstractScanPlugin<ResultType extends ScanResult> | +
+
+ An abstract implementation of the
+ScanPlugin interface,
+ that provides useful stuff for Plugins that use the AnylineController . |
+
ScanInfo | +
+
+ The ScanInfo holds intermediate information that may arise during scanning.
+ |
+
ScanResult<T> | +
+
+ This is the base class for all plugin result classes.
+ |
+
ScanRunSkippedReason | +
+
+ The ScanRunSkippedReason holds the reason, why the processing of an image has been skipped (did not reach a result).
+ |
+
public abstract class AbstractBaseScanViewPlugin<ResultType extends ScanResult>
+extends java.lang.Object
+Modifier and Type | +Method and Description | +
---|---|
abstract void |
+addScanInfoListener(ScanInfoListener listener) |
+
abstract void |
+addScanResultListener(ScanResultListener<ResultType> listener) |
+
abstract void |
+addScanRunSkippedListener(ScanRunSkippedListener listener) |
+
abstract void |
+addUIConfigChangedListener(UIChangeListener listener) |
+
abstract void |
+calcCutOutAndImageCropBounds(android.content.Context context,
+ int frameWidth,
+ int frameHeight,
+ int viewWidth,
+ int viewHeight,
+ float scale) |
+
abstract java.util.ArrayList<AbstractScanViewPlugin> |
+getAllScanViewPlugins() |
+
abstract boolean |
+getCancelOnResult() |
+
abstract java.lang.String |
+getId() |
+
abstract void |
+removeScanInfoListener(ScanInfoListener listener) |
+
abstract void |
+removeScanResultListener(ScanResultListener<ResultType> listener) |
+
abstract void |
+removeScanRunSkippedListener(ScanRunSkippedListener listener) |
+
abstract void |
+removeUIConfigChangedListener(UIChangeListener listener) |
+
abstract void |
+setCancelOnResult(boolean cancelOnResult) |
+
abstract void |
+setCropRect(android.graphics.RectF cropRect) |
+
void |
+setDebugListener(AnylineDebugListener debugListener) |
+
abstract void |
+setDelayScanTime() |
+
abstract void |
+setImageProvider(ImageProvider imageProvider) |
+
abstract void |
+start() |
+
abstract void |
+stop() |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public abstract void addScanResultListener(ScanResultListener<ResultType> listener)+
public abstract void removeScanResultListener(ScanResultListener<ResultType> listener)+
public abstract void addScanInfoListener(ScanInfoListener listener)+
public abstract void removeScanInfoListener(ScanInfoListener listener)+
public abstract void addScanRunSkippedListener(ScanRunSkippedListener listener)+
public abstract void removeScanRunSkippedListener(ScanRunSkippedListener listener)+
public abstract void addUIConfigChangedListener(UIChangeListener listener)+
public abstract void removeUIConfigChangedListener(UIChangeListener listener)+
public abstract void setImageProvider(ImageProvider imageProvider)+
public abstract void start()+
public abstract void stop()+
public abstract java.lang.String getId()+
public abstract void setDelayScanTime()+
public abstract boolean getCancelOnResult()+
public abstract void setCancelOnResult(boolean cancelOnResult)+
public abstract java.util.ArrayList<AbstractScanViewPlugin> getAllScanViewPlugins()+
public void setDebugListener(AnylineDebugListener debugListener)+
public abstract void calcCutOutAndImageCropBounds(android.content.Context context, + int frameWidth, + int frameHeight, + int viewWidth, + int viewHeight, + float scale)+
public abstract void setCropRect(android.graphics.RectF cropRect)+
public class AbstractScanViewPlugin +extends AbstractBaseScanViewPlugin+
Constructor and Description | +
---|
AbstractScanViewPlugin() |
+
AbstractScanViewPlugin(android.content.Context context,
+ AbstractScanPlugin scanPlugin,
+ ScanViewPluginConfig scanViewConfig) |
+
setDebugListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public AbstractScanViewPlugin(@NonNull + android.content.Context context, + @NonNull + AbstractScanPlugin scanPlugin, + @NonNull + ScanViewPluginConfig scanViewConfig)+
public AbstractScanViewPlugin()+
public void addScanResultListener(ScanResultListener listener)+
addScanResultListener
in class AbstractBaseScanViewPlugin
public void removeScanResultListener(ScanResultListener listener)+
removeScanResultListener
in class AbstractBaseScanViewPlugin
public void addScanInfoListener(ScanInfoListener listener)+
addScanInfoListener
in class AbstractBaseScanViewPlugin
public void removeScanInfoListener(ScanInfoListener listener)+
removeScanInfoListener
in class AbstractBaseScanViewPlugin
public void addScanRunSkippedListener(ScanRunSkippedListener listener)+
addScanRunSkippedListener
in class AbstractBaseScanViewPlugin
public void removeScanRunSkippedListener(ScanRunSkippedListener listener)+
removeScanRunSkippedListener
in class AbstractBaseScanViewPlugin
public void addUIConfigChangedListener(UIChangeListener listener)+
addUIConfigChangedListener
in class AbstractBaseScanViewPlugin
public void removeUIConfigChangedListener(UIChangeListener listener)+
removeUIConfigChangedListener
in class AbstractBaseScanViewPlugin
public void setImageProvider(ImageProvider imageProvider)+
setImageProvider
in class AbstractBaseScanViewPlugin
public AbstractScanPlugin getScanPlugin()+
public void start()+
start
in class AbstractBaseScanViewPlugin
public void setCancelOnResult(boolean cancelOnResult)+
setCancelOnResult
in class AbstractBaseScanViewPlugin
public void stop()+
stop
in class AbstractBaseScanViewPlugin
public java.lang.String getId()+
getId
in class AbstractBaseScanViewPlugin
public void setDelayScanTime()+
setDelayScanTime
in class AbstractBaseScanViewPlugin
public boolean getCancelOnResult()+
getCancelOnResult
in class AbstractBaseScanViewPlugin
public void calcCutOutAndImageCropBounds(android.content.Context context, + int frameWidth, + int frameHeight, + int viewWidth, + int viewHeight, + float scale)+
calcCutOutAndImageCropBounds
in class AbstractBaseScanViewPlugin
public void setCropRect(android.graphics.RectF cropRect)+
setCropRect
in class AbstractBaseScanViewPlugin
public java.util.ArrayList<AbstractScanViewPlugin> getAllScanViewPlugins()+
getAllScanViewPlugins
in class AbstractBaseScanViewPlugin
public CutoutRect getCutoutRect()+
public ScanViewPluginConfig getScanViewPluginConfig()+
public class AbstractScanViewPluginComposite +extends AbstractBaseScanViewPlugin+
Constructor and Description | +
---|
AbstractScanViewPluginComposite(java.lang.String id) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+add(AbstractScanViewPlugin scanViewPlugin) |
+
void |
+addScanInfoListener(ScanInfoListener listener) |
+
void |
+addScanResultListener(ScanResultListener listener) |
+
void |
+addScanRunSkippedListener(ScanRunSkippedListener listener) |
+
void |
+addUIConfigChangedListener(UIChangeListener listener) |
+
void |
+calcCutOutAndImageCropBounds(android.content.Context context,
+ int frameWidth,
+ int frameHeight,
+ int viewWidth,
+ int viewHeight,
+ float scale) |
+
java.util.ArrayList<AbstractScanViewPlugin> |
+getAllScanViewPlugins() |
+
boolean |
+getCancelOnResult() |
+
java.lang.String |
+getId() |
+
ImageProvider |
+getImageProvider() |
+
void |
+remove(AbstractScanViewPlugin scanViewPlugin) |
+
void |
+removeScanInfoListener(ScanInfoListener listener) |
+
void |
+removeScanResultListener(ScanResultListener listener) |
+
void |
+removeScanRunSkippedListener(ScanRunSkippedListener listener) |
+
void |
+removeUIConfigChangedListener(UIChangeListener listener) |
+
void |
+setCancelOnResult() |
+
void |
+setCancelOnResult(boolean cancelOnResult) |
+
void |
+setCropRect(android.graphics.RectF cropRect) |
+
void |
+setDelayScanTime() |
+
void |
+setImageProvider(ImageProvider imageProvider) |
+
void |
+start() |
+
void |
+stop() |
+
setDebugListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public AbstractScanViewPluginComposite(java.lang.String id)+
public java.lang.String getId()+
getId
in class AbstractBaseScanViewPlugin
public void setDelayScanTime()+
setDelayScanTime
in class AbstractBaseScanViewPlugin
public boolean getCancelOnResult()+
getCancelOnResult
in class AbstractBaseScanViewPlugin
public void setCancelOnResult(boolean cancelOnResult)+
setCancelOnResult
in class AbstractBaseScanViewPlugin
public void add(AbstractScanViewPlugin scanViewPlugin)+
public void remove(AbstractScanViewPlugin scanViewPlugin)+
public java.util.ArrayList<AbstractScanViewPlugin> getAllScanViewPlugins()+
getAllScanViewPlugins
in class AbstractBaseScanViewPlugin
public void setImageProvider(ImageProvider imageProvider)+
setImageProvider
in class AbstractBaseScanViewPlugin
public ImageProvider getImageProvider()+
public void start()+
start
in class AbstractBaseScanViewPlugin
public void stop()+
stop
in class AbstractBaseScanViewPlugin
public void addScanResultListener(ScanResultListener listener)+
addScanResultListener
in class AbstractBaseScanViewPlugin
public void calcCutOutAndImageCropBounds(android.content.Context context, + int frameWidth, + int frameHeight, + int viewWidth, + int viewHeight, + float scale)+
calcCutOutAndImageCropBounds
in class AbstractBaseScanViewPlugin
public void setCropRect(android.graphics.RectF cropRect)+
setCropRect
in class AbstractBaseScanViewPlugin
public void setCancelOnResult()+
public void removeScanResultListener(ScanResultListener listener)+
removeScanResultListener
in class AbstractBaseScanViewPlugin
public void addScanInfoListener(ScanInfoListener listener)+
addScanInfoListener
in class AbstractBaseScanViewPlugin
public void removeScanInfoListener(ScanInfoListener listener)+
removeScanInfoListener
in class AbstractBaseScanViewPlugin
public void addScanRunSkippedListener(ScanRunSkippedListener listener)+
addScanRunSkippedListener
in class AbstractBaseScanViewPlugin
public void removeScanRunSkippedListener(ScanRunSkippedListener listener)+
removeScanRunSkippedListener
in class AbstractBaseScanViewPlugin
public void addUIConfigChangedListener(UIChangeListener listener)+
addUIConfigChangedListener
in class AbstractBaseScanViewPlugin
public void removeUIConfigChangedListener(UIChangeListener listener)+
removeUIConfigChangedListener
in class AbstractBaseScanViewPlugin
public abstract class AbstractWebView
+extends android.webkit.WebView
+android.webkit.WebView.FindListener, android.webkit.WebView.HitTestResult, android.webkit.WebView.PictureListener, android.webkit.WebView.VisualStateCallback, android.webkit.WebView.WebViewTransport
android.widget.AbsoluteLayout.LayoutParams
android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnCapturedPointerListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener, android.view.View.OnUnhandledKeyEventListener
RENDERER_PRIORITY_BOUND, RENDERER_PRIORITY_IMPORTANT, RENDERER_PRIORITY_WAIVED, SCHEME_GEO, SCHEME_MAILTO, SCHEME_TEL
FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR, AUTOFILL_HINT_CREDIT_CARD_NUMBER, AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE, AUTOFILL_HINT_EMAIL_ADDRESS, AUTOFILL_HINT_NAME, AUTOFILL_HINT_PASSWORD, AUTOFILL_HINT_PHONE, AUTOFILL_HINT_POSTAL_ADDRESS, AUTOFILL_HINT_POSTAL_CODE, AUTOFILL_HINT_USERNAME, AUTOFILL_TYPE_DATE, AUTOFILL_TYPE_LIST, AUTOFILL_TYPE_NONE, AUTOFILL_TYPE_TEXT, AUTOFILL_TYPE_TOGGLE, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLE, FOCUSABLE_AUTO, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, IMPORTANT_FOR_AUTOFILL_AUTO, IMPORTANT_FOR_AUTOFILL_NO, IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_AUTOFILL_YES, IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_CONTENT_CAPTURE_AUTO, IMPORTANT_FOR_CONTENT_CAPTURE_NO, IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_CONTENT_CAPTURE_YES, IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, NOT_FOCUSABLE, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VISIBLE, X, Y, Z
Constructor and Description | +
---|
AbstractWebView(android.content.Context context) |
+
AbstractWebView(android.content.Context context,
+ VisualFeedbackConfig visualFeedbackConfig,
+ float resizeScale) |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.String |
+drawDocument(java.util.List<android.graphics.PointF> reportedShape) |
+
int |
+getScaleWebView(android.webkit.WebView webView) |
+
java.util.List<android.graphics.PointF> |
+getViewRelativePointListFromCutoutRelativeShape(java.util.List<android.graphics.PointF> shape) |
+
void |
+setCutoutInfo(android.graphics.Rect cutoutRectOnView,
+ float frameToViewScale,
+ int cutoutCropOffsetOnViewX,
+ int cutoutCropOffsetOnViewY) |
+
void |
+setRectRelativeToCutout(io.anyline.view.AbstractWebView.AnimatableRectF rect,
+ io.anyline.opencv.core.Rect reportedRect,
+ float resizeScale) |
+
java.util.List<android.graphics.PointF> |
+setShapeRelativeToCutout(java.util.List<android.graphics.PointF> reportedShape,
+ io.anyline.opencv.core.Rect cropRect,
+ float resizeScale) |
+
java.lang.String |
+updateContours(Vector_Contour contours,
+ float scale) |
+
java.lang.String |
+updateContours(Vector_SevenSegmentContour contours,
+ float scale) |
+
java.lang.String |
+updateContoursREACT(Vector_Contour contours,
+ float scale) |
+
java.lang.String |
+updateContoursREACT(Vector_SevenSegmentContour contours,
+ float scale) |
+
java.lang.String |
+updateShape(java.util.List<android.graphics.PointF> reportedShape,
+ io.anyline.opencv.core.Rect cropRect,
+ float scale) |
+
addJavascriptInterface, autofill, canGoBack, canGoBackOrForward, canGoForward, canZoomIn, canZoomOut, capturePicture, clearCache, clearClientCertPreferences, clearFormData, clearHistory, clearMatches, clearSslPreferences, clearView, computeScroll, copyBackForwardList, createPrintDocumentAdapter, createPrintDocumentAdapter, createWebMessageChannel, destroy, disableWebView, dispatchKeyEvent, documentHasImages, enableSlowWholeDocumentDraw, evaluateJavascript, findAddress, findAll, findAllAsync, findFocus, findNext, flingScroll, freeMemory, getAccessibilityClassName, getAccessibilityNodeProvider, getCertificate, getContentHeight, getCurrentWebViewPackage, getFavicon, getHandler, getHitTestResult, getHttpAuthUsernamePassword, getOriginalUrl, getProgress, getRendererPriorityWaivedWhenNotVisible, getRendererRequestedPriority, getSafeBrowsingPrivacyPolicyUrl, getScale, getSettings, getTextClassifier, getTitle, getUrl, getWebChromeClient, getWebViewClassLoader, getWebViewClient, getWebViewLooper, getWebViewRenderProcess, getWebViewRenderProcessClient, goBack, goBackOrForward, goForward, invokeZoomPicker, isPrivateBrowsingEnabled, isVisibleToUserForAutofill, loadData, loadDataWithBaseURL, loadUrl, loadUrl, onCheckIsTextEditor, onChildViewAdded, onChildViewRemoved, onCreateInputConnection, onDragEvent, onFinishTemporaryDetach, onGenericMotionEvent, onGlobalFocusChanged, onHoverEvent, onKeyDown, onKeyMultiple, onKeyUp, onPause, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideVirtualStructure, onResume, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onWindowFocusChanged, overlayHorizontalScrollbar, overlayVerticalScrollbar, pageDown, pageUp, pauseTimers, performLongClick, postUrl, postVisualStateCallback, postWebMessage, reload, removeJavascriptInterface, requestChildRectangleOnScreen, requestFocus, requestFocusNodeHref, requestImageRef, restoreState, resumeTimers, savePassword, saveState, saveWebArchive, saveWebArchive, setBackgroundColor, setCertificate, setDataDirectorySuffix, setDownloadListener, setFindListener, setHorizontalScrollbarOverlay, setHttpAuthUsernamePassword, setInitialScale, setLayerType, setLayoutParams, setMapTrackballToArrowKeys, setNetworkAvailable, setOverScrollMode, setPictureListener, setRendererPriorityPolicy, setSafeBrowsingWhitelist, setScrollBarStyle, setTextClassifier, setVerticalScrollbarOverlay, setWebChromeClient, setWebContentsDebuggingEnabled, setWebViewClient, setWebViewRenderProcessClient, setWebViewRenderProcessClient, shouldDelayChildPressedState, showFindDialog, startSafeBrowsing, stopLoading, zoomBy, zoomIn, zoomOut
generateLayoutParams
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, bringChildToFront, childDrawableStateChanged, childHasTransientStateChanged, clearChildFocus, clearDisappearingChildren, clearFocus, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchSetActivated, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, endViewTransition, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isLayoutSuppressed, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onDescendantInvalidated, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestDisallowInterceptTouchEvent, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setTouchscreenBlocksFocus, setTransitionGroup, setWindowInsetsAnimationCallback, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, suppressLayout, updateViewLayout
addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, animate, announceForAccessibility, autofill, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, draw, drawableHotspotChanged, findViewById, findViewWithTag, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRevealOnFocusHint, getRight, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTouchables, getTouchDelegate, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOnLongClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingRelative, isPivotSet, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, keyboardNavigationClusterSearch, measure, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onDrawForeground, onFilterTouchEventForSecurity, onHoverChanged, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyLongPress, onKeyPreIme, onKeyShortcut, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideStructure, onRtlPropertiesChanged, onScreenStateChanged, onVisibilityAggregated, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, requestUnbufferedDispatch, requireViewById, resetPivot, resolveSize, resolveSizeAndState, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setAnimationMatrix, setAutofillHints, setAutofillId, setBackground, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayoutDirection, setLeft, setLeftTopRightBottom, setLongClickable, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, willNotCacheDrawing, willNotDraw
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, keyboardNavigationClusterSearch, requestFitSystemWindows, requestLayout
public AbstractWebView(android.content.Context context, + VisualFeedbackConfig visualFeedbackConfig, + float resizeScale)+
public AbstractWebView(android.content.Context context)+
public void setCutoutInfo(android.graphics.Rect cutoutRectOnView, + float frameToViewScale, + int cutoutCropOffsetOnViewX, + int cutoutCropOffsetOnViewY)+
public void setRectRelativeToCutout(io.anyline.view.AbstractWebView.AnimatableRectF rect, + io.anyline.opencv.core.Rect reportedRect, + float resizeScale)+
public java.util.List<android.graphics.PointF> setShapeRelativeToCutout(java.util.List<android.graphics.PointF> reportedShape, + io.anyline.opencv.core.Rect cropRect, + float resizeScale)+
public java.lang.String drawDocument(java.util.List<android.graphics.PointF> reportedShape)+
public java.lang.String updateShape(java.util.List<android.graphics.PointF> reportedShape, + io.anyline.opencv.core.Rect cropRect, + float scale)+
public java.util.List<android.graphics.PointF> getViewRelativePointListFromCutoutRelativeShape(java.util.List<android.graphics.PointF> shape)+
public int getScaleWebView(android.webkit.WebView webView)+
public java.lang.String updateContours(Vector_Contour contours, + float scale)+
public java.lang.String updateContoursREACT(Vector_Contour contours, + float scale)+
public java.lang.String updateContoursREACT(Vector_SevenSegmentContour contours, + float scale)+
public java.lang.String updateContours(Vector_SevenSegmentContour contours, + float scale)+
public class AnylineCutoutBase
+extends java.lang.Object
+Constructor and Description | +
---|
AnylineCutoutBase(AnylineFeedbackView anylineFeedbackView,
+ CutoutConfig cutoutConfig) |
+
Modifier and Type | +Method and Description | +
---|---|
android.graphics.RectF |
+getCutoutRect() |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public AnylineCutoutBase(AnylineFeedbackView anylineFeedbackView, + CutoutConfig cutoutConfig)+
public class AnylineFeedbackView
+extends android.view.View
+android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnCapturedPointerListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener, android.view.View.OnUnhandledKeyEventListener
ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR, AUTOFILL_HINT_CREDIT_CARD_NUMBER, AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE, AUTOFILL_HINT_EMAIL_ADDRESS, AUTOFILL_HINT_NAME, AUTOFILL_HINT_PASSWORD, AUTOFILL_HINT_PHONE, AUTOFILL_HINT_POSTAL_ADDRESS, AUTOFILL_HINT_POSTAL_CODE, AUTOFILL_HINT_USERNAME, AUTOFILL_TYPE_DATE, AUTOFILL_TYPE_LIST, AUTOFILL_TYPE_NONE, AUTOFILL_TYPE_TEXT, AUTOFILL_TYPE_TOGGLE, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLE, FOCUSABLE_AUTO, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, IMPORTANT_FOR_AUTOFILL_AUTO, IMPORTANT_FOR_AUTOFILL_NO, IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_AUTOFILL_YES, IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_CONTENT_CAPTURE_AUTO, IMPORTANT_FOR_CONTENT_CAPTURE_NO, IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_CONTENT_CAPTURE_YES, IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, NOT_FOCUSABLE, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VISIBLE, X, Y, Z
Constructor and Description | +
---|
AnylineFeedbackView(android.content.Context context,
+ android.util.AttributeSet attrs) |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.List<AnylineCutoutBase> |
+getCutoutList() |
+
float |
+translateX(float x) |
+
float |
+translateY(float y) |
+
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addFocusables, addKeyboardNavigationClusters, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, addTouchables, animate, announceForAccessibility, autofill, autofill, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, clearFocus, combineMeasuredStates, computeScroll, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPointerCaptureChanged, dispatchPopulateAccessibilityEvent, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, draw, drawableHotspotChanged, findFocus, findViewById, findViewsWithText, findViewWithTag, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityClassName, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverlay, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRevealOnFocusHint, getRight, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTouchables, getTouchDelegate, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocus, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOnLongClickListeners, hasOverlappingRendering, hasPointerCapture, hasTransientState, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingRelative, isPivotSet, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, jumpDrawablesToCurrentState, keyboardNavigationClusterSearch, layout, measure, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onCreateInputConnection, onDragEvent, onDrawForeground, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideStructure, onProvideVirtualStructure, onResolvePointerIcon, onRtlPropertiesChanged, onScreenStateChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityAggregated, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, requestUnbufferedDispatch, requireViewById, resetPivot, resolveSize, resolveSizeAndState, restoreDefaultFocus, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setAnimationMatrix, setAutofillHints, setAutofillId, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setWindowInsetsAnimationCallback, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, willNotCacheDrawing, willNotDraw
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public AnylineFeedbackView(android.content.Context context, + @Nullable + android.util.AttributeSet attrs)+
public float translateX(float x)+
public float translateY(float y)+
public java.util.List<AnylineCutoutBase> getCutoutList()+
public class AnylineViewConfig
+extends java.lang.Object
+Constructor and Description | +
---|
AnylineViewConfig(android.content.Context context,
+ java.lang.String configFilName) |
+
Modifier and Type | +Method and Description | +
---|---|
IAnylineViewConfig |
+getScanViewConfig() |
+
IAnylineViewConfig |
+getScanViewPluginConfig() |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public AnylineViewConfig(android.content.Context context, + java.lang.String configFilName)+
public IAnylineViewConfig getScanViewPluginConfig()+
public IAnylineViewConfig getScanViewConfig()+
public class AnylineWebView
+extends android.webkit.WebView
+android.webkit.WebView.FindListener, android.webkit.WebView.HitTestResult, android.webkit.WebView.PictureListener, android.webkit.WebView.VisualStateCallback, android.webkit.WebView.WebViewTransport
android.widget.AbsoluteLayout.LayoutParams
android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnCapturedPointerListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener, android.view.View.OnUnhandledKeyEventListener
RENDERER_PRIORITY_BOUND, RENDERER_PRIORITY_IMPORTANT, RENDERER_PRIORITY_WAIVED, SCHEME_GEO, SCHEME_MAILTO, SCHEME_TEL
FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR, AUTOFILL_HINT_CREDIT_CARD_NUMBER, AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE, AUTOFILL_HINT_EMAIL_ADDRESS, AUTOFILL_HINT_NAME, AUTOFILL_HINT_PASSWORD, AUTOFILL_HINT_PHONE, AUTOFILL_HINT_POSTAL_ADDRESS, AUTOFILL_HINT_POSTAL_CODE, AUTOFILL_HINT_USERNAME, AUTOFILL_TYPE_DATE, AUTOFILL_TYPE_LIST, AUTOFILL_TYPE_NONE, AUTOFILL_TYPE_TEXT, AUTOFILL_TYPE_TOGGLE, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLE, FOCUSABLE_AUTO, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, IMPORTANT_FOR_AUTOFILL_AUTO, IMPORTANT_FOR_AUTOFILL_NO, IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_AUTOFILL_YES, IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_CONTENT_CAPTURE_AUTO, IMPORTANT_FOR_CONTENT_CAPTURE_NO, IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_CONTENT_CAPTURE_YES, IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, NOT_FOCUSABLE, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VISIBLE, X, Y, Z
Constructor and Description | +
---|
AnylineWebView(android.content.Context context) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+drawDocument(java.util.List<android.graphics.PointF> reportedShape,
+ java.lang.String id) |
+
void |
+drawFeedback(java.util.List<android.graphics.PointF> shape,
+ io.anyline.opencv.core.Rect cropRect,
+ float scale,
+ float scanViewPluginScale,
+ java.lang.String color,
+ java.lang.String id,
+ int x,
+ int y,
+ VisualFeedbackConfig.FeedbackStyle style,
+ android.graphics.Rect rectOnVisibleView) |
+
int |
+getScaleWebView(android.webkit.WebView webView) |
+
java.util.List<android.graphics.PointF> |
+getViewRelativePointListFromCutoutRelativeShape(java.util.List<android.graphics.PointF> shape,
+ java.lang.String id,
+ io.anyline.opencv.core.Rect cropRect,
+ int x,
+ int y,
+ float scale,
+ android.graphics.Rect rectOnVisibleView,
+ float scanViewPluginScale) |
+
void |
+initConfig(AbstractBaseScanViewPlugin scanViewPlugin) |
+
boolean |
+onTouchEvent(android.view.MotionEvent event) |
+
void |
+setCameraView(CameraView cameraView) |
+
void |
+setRectRelativeToCutout(io.anyline.view.AnylineWebView.AnimatableRectF rect,
+ float scale,
+ io.anyline.opencv.core.Rect reportedRect,
+ float resizeScale,
+ java.lang.String id,
+ io.anyline.opencv.core.Rect cropRect,
+ int x,
+ int y,
+ android.graphics.Rect cutoutRectOnView) |
+
void |
+setScanDelayTime(double delayTime,
+ java.lang.String id) |
+
void |
+updateContours(java.lang.Object contours,
+ float scale,
+ float resizeScale,
+ java.lang.String id,
+ io.anyline.opencv.core.Rect cropRect,
+ int x,
+ int y,
+ android.graphics.Rect rectOnVisibleView) |
+
void |
+updateCutouts(java.lang.String id,
+ boolean visible) |
+
void |
+updateShape(java.util.List<android.graphics.PointF> reportedShape,
+ io.anyline.opencv.core.Rect cropRect,
+ float scale,
+ java.lang.String id,
+ int x,
+ int y,
+ android.graphics.Rect rectOnVisibleView,
+ float scanViewPluginScale) |
+
addJavascriptInterface, autofill, canGoBack, canGoBackOrForward, canGoForward, canZoomIn, canZoomOut, capturePicture, clearCache, clearClientCertPreferences, clearFormData, clearHistory, clearMatches, clearSslPreferences, clearView, computeScroll, copyBackForwardList, createPrintDocumentAdapter, createPrintDocumentAdapter, createWebMessageChannel, destroy, disableWebView, dispatchKeyEvent, documentHasImages, enableSlowWholeDocumentDraw, evaluateJavascript, findAddress, findAll, findAllAsync, findFocus, findNext, flingScroll, freeMemory, getAccessibilityClassName, getAccessibilityNodeProvider, getCertificate, getContentHeight, getCurrentWebViewPackage, getFavicon, getHandler, getHitTestResult, getHttpAuthUsernamePassword, getOriginalUrl, getProgress, getRendererPriorityWaivedWhenNotVisible, getRendererRequestedPriority, getSafeBrowsingPrivacyPolicyUrl, getScale, getSettings, getTextClassifier, getTitle, getUrl, getWebChromeClient, getWebViewClassLoader, getWebViewClient, getWebViewLooper, getWebViewRenderProcess, getWebViewRenderProcessClient, goBack, goBackOrForward, goForward, invokeZoomPicker, isPrivateBrowsingEnabled, isVisibleToUserForAutofill, loadData, loadDataWithBaseURL, loadUrl, loadUrl, onCheckIsTextEditor, onChildViewAdded, onChildViewRemoved, onCreateInputConnection, onDragEvent, onFinishTemporaryDetach, onGenericMotionEvent, onGlobalFocusChanged, onHoverEvent, onKeyDown, onKeyMultiple, onKeyUp, onPause, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideVirtualStructure, onResume, onStartTemporaryDetach, onTrackballEvent, onWindowFocusChanged, overlayHorizontalScrollbar, overlayVerticalScrollbar, pageDown, pageUp, pauseTimers, performLongClick, postUrl, postVisualStateCallback, postWebMessage, reload, removeJavascriptInterface, requestChildRectangleOnScreen, requestFocus, requestFocusNodeHref, requestImageRef, restoreState, resumeTimers, savePassword, saveState, saveWebArchive, saveWebArchive, setBackgroundColor, setCertificate, setDataDirectorySuffix, setDownloadListener, setFindListener, setHorizontalScrollbarOverlay, setHttpAuthUsernamePassword, setInitialScale, setLayerType, setLayoutParams, setMapTrackballToArrowKeys, setNetworkAvailable, setOverScrollMode, setPictureListener, setRendererPriorityPolicy, setSafeBrowsingWhitelist, setScrollBarStyle, setTextClassifier, setVerticalScrollbarOverlay, setWebChromeClient, setWebContentsDebuggingEnabled, setWebViewClient, setWebViewRenderProcessClient, setWebViewRenderProcessClient, shouldDelayChildPressedState, showFindDialog, startSafeBrowsing, stopLoading, zoomBy, zoomIn, zoomOut
generateLayoutParams
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, bringChildToFront, childDrawableStateChanged, childHasTransientStateChanged, clearChildFocus, clearDisappearingChildren, clearFocus, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchSetActivated, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, endViewTransition, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isLayoutSuppressed, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onDescendantInvalidated, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestDisallowInterceptTouchEvent, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setTouchscreenBlocksFocus, setTransitionGroup, setWindowInsetsAnimationCallback, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, suppressLayout, updateViewLayout
addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, animate, announceForAccessibility, autofill, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, draw, drawableHotspotChanged, findViewById, findViewWithTag, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRevealOnFocusHint, getRight, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTouchables, getTouchDelegate, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOnLongClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingRelative, isPivotSet, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, keyboardNavigationClusterSearch, measure, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onDrawForeground, onFilterTouchEventForSecurity, onHoverChanged, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyLongPress, onKeyPreIme, onKeyShortcut, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideStructure, onRtlPropertiesChanged, onScreenStateChanged, onVisibilityAggregated, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, requestUnbufferedDispatch, requireViewById, resetPivot, resolveSize, resolveSizeAndState, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setAnimationMatrix, setAutofillHints, setAutofillId, setBackground, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayoutDirection, setLeft, setLeftTopRightBottom, setLongClickable, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, willNotCacheDrawing, willNotDraw
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, keyboardNavigationClusterSearch, requestFitSystemWindows, requestLayout
public AnylineWebView(android.content.Context context)+
public void initConfig(AbstractBaseScanViewPlugin scanViewPlugin)+
public void updateCutouts(java.lang.String id, + boolean visible)+
public void setScanDelayTime(double delayTime, + java.lang.String id)+
public void setRectRelativeToCutout(io.anyline.view.AnylineWebView.AnimatableRectF rect, + float scale, + io.anyline.opencv.core.Rect reportedRect, + float resizeScale, + java.lang.String id, + io.anyline.opencv.core.Rect cropRect, + int x, + int y, + android.graphics.Rect cutoutRectOnView)+
public void setCameraView(CameraView cameraView)+
public void updateContours(java.lang.Object contours, + float scale, + float resizeScale, + java.lang.String id, + io.anyline.opencv.core.Rect cropRect, + int x, + int y, + android.graphics.Rect rectOnVisibleView)+
public void drawDocument(java.util.List<android.graphics.PointF> reportedShape, + java.lang.String id)+
public void drawFeedback(java.util.List<android.graphics.PointF> shape, + io.anyline.opencv.core.Rect cropRect, + float scale, + float scanViewPluginScale, + java.lang.String color, + java.lang.String id, + int x, + int y, + VisualFeedbackConfig.FeedbackStyle style, + android.graphics.Rect rectOnVisibleView)+
public void updateShape(java.util.List<android.graphics.PointF> reportedShape, + io.anyline.opencv.core.Rect cropRect, + float scale, + java.lang.String id, + int x, + int y, + android.graphics.Rect rectOnVisibleView, + float scanViewPluginScale)+
public java.util.List<android.graphics.PointF> getViewRelativePointListFromCutoutRelativeShape(java.util.List<android.graphics.PointF> shape, + java.lang.String id, + io.anyline.opencv.core.Rect cropRect, + int x, + int y, + float scale, + android.graphics.Rect rectOnVisibleView, + float scanViewPluginScale)+
public int getScaleWebView(android.webkit.WebView webView)+
public boolean onTouchEvent(android.view.MotionEvent event)+
onTouchEvent
in class android.webkit.WebView
public class BaseScanViewConfig +extends java.lang.Object +implements IAnylineViewConfig+
Constructor and Description | +
---|
BaseScanViewConfig(android.content.Context context,
+ org.json.JSONObject json) |
+
BaseScanViewConfig(android.content.Context context,
+ java.lang.String configFileName) |
+
Modifier and Type | +Method and Description | +
---|---|
FlashViewConfig |
+getFlashViewConfig() |
+
int |
+getPreviewAlignment() |
+
ScanViewCameraConfig |
+getScanViewCameraConfig() |
+
void |
+init(android.content.Context context,
+ org.json.JSONObject json) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BaseScanViewConfig(android.content.Context context, + java.lang.String configFileName)+
public BaseScanViewConfig(android.content.Context context, + org.json.JSONObject json)+
public void init(android.content.Context context, + org.json.JSONObject json)+
init
in interface IAnylineViewConfig
public ScanViewCameraConfig getScanViewCameraConfig()+
public FlashViewConfig getFlashViewConfig()+
public int getPreviewAlignment()+
public static enum BrightnessHelper.BrightnessFeedback +extends java.lang.Enum<BrightnessHelper.BrightnessFeedback>+
Enum Constant and Description | +
---|
OK |
+
TOO_BRIGHT |
+
TOO_DARK |
+
Modifier and Type | +Method and Description | +
---|---|
static BrightnessHelper.BrightnessFeedback |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static BrightnessHelper.BrightnessFeedback[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final BrightnessHelper.BrightnessFeedback TOO_BRIGHT+
public static final BrightnessHelper.BrightnessFeedback TOO_DARK+
public static final BrightnessHelper.BrightnessFeedback OK+
public static BrightnessHelper.BrightnessFeedback[] values()+
+for (BrightnessHelper.BrightnessFeedback c : BrightnessHelper.BrightnessFeedback.values()) + System.out.println(c); +
public static BrightnessHelper.BrightnessFeedback valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic class BrightnessHelper
+extends java.lang.Object
+Modifier and Type | +Class and Description | +
---|---|
static class |
+BrightnessHelper.BrightnessFeedback |
+
Modifier and Type | +Method and Description | +
---|---|
BrightnessHelper.BrightnessFeedback |
+getBrightnessFeedback() |
+
void |
+setLevelsForAutoFlash(int lowBrightness,
+ int highBrightness,
+ int lowAmbientLight,
+ int highAmbientLight) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void setLevelsForAutoFlash(int lowBrightness, + int highBrightness, + int lowAmbientLight, + int highAmbientLight)+
public BrightnessHelper.BrightnessFeedback getBrightnessFeedback()+
public static enum CutoutConfig.AnimationStyle +extends java.lang.Enum<CutoutConfig.AnimationStyle>+
Enum Constant and Description | +
---|
FADE |
+
NONE |
+
ZOOM |
+
Modifier and Type | +Method and Description | +
---|---|
static CutoutConfig.AnimationStyle |
+fromInt(int style) |
+
int |
+getValue() |
+
static CutoutConfig.AnimationStyle |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static CutoutConfig.AnimationStyle[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final CutoutConfig.AnimationStyle NONE+
public static final CutoutConfig.AnimationStyle FADE+
public static final CutoutConfig.AnimationStyle ZOOM+
public static CutoutConfig.AnimationStyle[] values()+
+for (CutoutConfig.AnimationStyle c : CutoutConfig.AnimationStyle.values()) + System.out.println(c); +
public static CutoutConfig.AnimationStyle valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()+
public static CutoutConfig.AnimationStyle fromInt(int style)+
public static enum CutoutConfig.CutoutAlignment +extends java.lang.Enum<CutoutConfig.CutoutAlignment>+
Enum Constant and Description | +
---|
BOTTOM |
+
BOTTOM_HALF |
+
CENTER |
+
TOP |
+
TOP_HALF |
+
Modifier and Type | +Method and Description | +
---|---|
static CutoutConfig.CutoutAlignment |
+fromString(java.lang.String alignment) |
+
static CutoutConfig.CutoutAlignment |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static CutoutConfig.CutoutAlignment[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final CutoutConfig.CutoutAlignment TOP+
public static final CutoutConfig.CutoutAlignment TOP_HALF+
public static final CutoutConfig.CutoutAlignment CENTER+
public static final CutoutConfig.CutoutAlignment BOTTOM_HALF+
public static final CutoutConfig.CutoutAlignment BOTTOM+
public static CutoutConfig.CutoutAlignment[] values()+
+for (CutoutConfig.CutoutAlignment c : CutoutConfig.CutoutAlignment.values()) + System.out.println(c); +
public static CutoutConfig.CutoutAlignment valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CutoutConfig.CutoutAlignment fromString(java.lang.String alignment)+
public static enum CutoutConfig.CutoutStyle +extends java.lang.Enum<CutoutConfig.CutoutStyle>+
Enum Constant and Description | +
---|
ANIMATED_CIRCLE |
+
ANIMATED_RECT |
+
IMAGE |
+
RECT |
+
Modifier and Type | +Method and Description | +
---|---|
static CutoutConfig.CutoutStyle |
+fromString(java.lang.String cutoutStyle) |
+
static CutoutConfig.CutoutStyle |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static CutoutConfig.CutoutStyle[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final CutoutConfig.CutoutStyle RECT+
public static final CutoutConfig.CutoutStyle ANIMATED_RECT+
public static final CutoutConfig.CutoutStyle IMAGE+
public static final CutoutConfig.CutoutStyle ANIMATED_CIRCLE+
public static CutoutConfig.CutoutStyle[] values()+
+for (CutoutConfig.CutoutStyle c : CutoutConfig.CutoutStyle.values()) + System.out.println(c); +
public static CutoutConfig.CutoutStyle valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CutoutConfig.CutoutStyle fromString(java.lang.String cutoutStyle)+
public class CutoutConfig
+extends java.lang.Object
+Modifier and Type | +Class and Description | +
---|---|
static class |
+CutoutConfig.AnimationStyle |
+
static class |
+CutoutConfig.CutoutAlignment
+Enum for all possible alignments of the cutout
+ |
+
static class |
+CutoutConfig.CutoutStyle
+Enum for all possible cutout styles.
+ |
+
Constructor and Description | +
---|
CutoutConfig() |
+
CutoutConfig(android.content.Context context,
+ org.json.JSONObject jsonObject)
+Create config from the given json object.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
CutoutConfig.CutoutAlignment |
+getAlignment() |
+
float |
+getAlphaFactor() |
+
java.lang.String |
+getAlphaString() |
+
CutoutConfig.AnimationStyle |
+getAnimationStyle() |
+
int |
+getCornerRadiusInDp() |
+
int |
+getCornerRadiusInPix(android.content.Context context) |
+
int |
+getCropOffsetX() |
+
int |
+getCropOffsetY() |
+
int |
+getCropPaddingX() |
+
int |
+getCropPaddingY() |
+
java.lang.String |
+getCutoutOuterColorString()
+If the #cutoutOuterColorString is not set, this returns null
+ |
+
java.lang.String |
+getCutoutStrokeColorString() |
+
int |
+getCutoutStrokeWidthInPix(android.content.Context context) |
+
android.graphics.drawable.Drawable |
+getDrawable() |
+
int |
+getFeedbackStrokeColor()
+If the #feedbackStrokeColor is not set, this returns -1
+ |
+
java.lang.String |
+getFeedbackStrokeColorString()
+If the #feedbackStrokeColorString is not set, this returns -1
+ |
+
java.lang.String |
+getInactiveStrokeColorForDelay() |
+
int |
+getMaxHeightPercent() |
+
int |
+getMaxWidthPercent() |
+
int |
+getOffsetX() |
+
int |
+getOffsetY() |
+
int |
+getOuterColor() |
+
float |
+getRatio() |
+
int |
+getStrokeColor() |
+
int |
+getStrokeWidthInDp() |
+
CutoutConfig.CutoutStyle |
+getStyle() |
+
int |
+getWidth() |
+
void |
+setAlignment(CutoutConfig.CutoutAlignment alignment)
+Set the vertical alignment for the .
+ |
+
void |
+setAnimationStyle(CutoutConfig.AnimationStyle animationStyle)
+Set the animation style.
+ |
+
void |
+setCornerRadiusInDp(int rectRadiusInDp)
+Set the rect corner radius in dp.
+ |
+
void |
+setCropOffsetX(int cropOffsetX)
+
+ The x offset in pixels that the image, that will be cropped out of the preview to match the ,
+ should have in relation to the .
+ |
+
void |
+setCropOffsetY(int cropOffsetY)
+
+ The y offset in pixels that the image, that will be cropped out of the preview to match the ,
+ should have in relation to the .
+ |
+
void |
+setCropPaddingX(int cropPaddingX)
+
+ The x padding in pixels that the image, that will be cropped out of the preview to match the ,
+ should have in relation to the size.
+ |
+
void |
+setCropPaddingY(int cropPaddingY)
+
+ The y padding in pixels that the image, that will be cropped out of the preview to match the ,
+ should have in relation to the size.
+ |
+
void |
+setCutoutOuterColorString(java.lang.String outerColorString)
+The color outside of the cutout area.
+ |
+
void |
+setCutoutStrokeColorString(java.lang.String strokeColorString)
+Set the stroke color
+ |
+
void |
+setDrawable(android.graphics.drawable.Drawable drawable)
+The drawable to use inside the area.
+ |
+
void |
+setFeedbackStrokeColor(int feedbackStrokeColor)
+Sets a feedback colors for the stroke: if set, the will change its color
+ if the scanning process has started, e.g.
+ |
+
void |
+setFeedbackStrokeColorString(java.lang.String feedbackStrokeColorString)
+Sets a feedback colors for the stroke: if set, the will change its color
+ if the scanning process has started, e.g.
+ |
+
void |
+setInactiveStrokeColorForDelay(java.lang.String inactiveStrokeColorForDelay)
+Set the inactive stroke color when users sets a delay
+ |
+
void |
+setMaxHeightPercent(int maxHeightPercent)
+Set the maximum height of the as percentage of the views height.
+ |
+
void |
+setMaxWidthPercent(int maxWidthPercent)
+Set the max width of the as percentage of the views width.
+ |
+
void |
+setOffsetX(int offsetX)
+Set the x offset of the (+ moves the further to the right, - to the left).
+ |
+
void |
+setOffsetY(int offsetY)
+Set the y offset of the (+ moves the further down, - further up).
+ |
+
void |
+setOuterColor(int outerColor)
+The color outside of the area.
+ |
+
void |
+setRatio(float ratio)
+Set the ratio (width/height).
+ |
+
void |
+setStrokeColor(int strokeColor)
+Set the stroke color
+ |
+
void |
+setStrokeWidthInDp(int strokeWidthInDp)
+The stroke width in dp.
+ |
+
void |
+setStyle(CutoutConfig.CutoutStyle style)
+
+ Set the style.
+ |
+
void |
+setWidth(int width)
+
+ Set the width of the as a fix value relative to the preview size.
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public CutoutConfig()+
public CutoutConfig(@NonNull + android.content.Context context, + @Nullable + org.json.JSONObject jsonObject)+
context
- the contextjsonObject
- the json object with the settingspublic float getAlphaFactor()+
public java.lang.String getAlphaString()+
public CutoutConfig.CutoutAlignment getAlignment()+
public void setAlignment(CutoutConfig.CutoutAlignment alignment)+
alignment
- the desired alignmentpublic int getMaxWidthPercent()+
public void setMaxWidthPercent(int maxWidthPercent)+
maxWidthPercent
- the maximum width of the in percent 1-100 relative to the viewpublic int getMaxHeightPercent()+
public void setMaxHeightPercent(int maxHeightPercent)+
maxHeightPercent
- the maximum height of the in percent 0-100 relative to the viewpublic int getWidth()+
public void setWidth(int width)+
+ Set the width of the as a fix value relative to the preview size. +
+ This means if the preview is 720 wide and this is set to 360 the will use the half of the width and + the resulting cropped image will be 360 pixels wide too. + (But the view itself will be 720 wide on a 1080p screen if the view uses the whole width). +
+ Also note that the will be limited to the views width (so if set to 540 and the view is only 480, + it will be 480) +
width
- the width (related to the preview size not the view size)public int getOffsetX()+
public void setOffsetX(int offsetX)+
setWidth(int)
.
+ The offset is limited to move the to the start/end of the view.offsetX
- the x offset for the cutoutpublic int getOffsetY()+
public void setOffsetY(int offsetY)+
setWidth(int)
.
+ The offset is limited to move the to the start/end of the view.offsetY
- the x offset for the cutoutpublic CutoutConfig.CutoutStyle getStyle()+
public void setStyle(CutoutConfig.CutoutStyle style)+
+ Set the style. +
+at.nineyards.anyline.camera.AnylineViewConfig.CutoutStyle#RECT
+ Other things that should be set with this style:
+
setCornerRadiusInDp(int)
setStrokeWidthInDp(int)
setStrokeColor(int)
at.nineyards.anyline.camera.AnylineViewConfig.CutoutStyle#IMAGE
+ Other things that should be set with this style:
+
setDrawable(Drawable)
style
- the desired stylepublic int getCornerRadiusInDp()+
public int getCornerRadiusInPix(android.content.Context context)+
public void setCornerRadiusInDp(int rectRadiusInDp)+
at.nineyards.anyline.camera.AnylineViewConfig.CutoutStyle#RECT
.rectRadiusInDp
- the rect corner radius in dp.public float getRatio()+
public void setRatio(float ratio)+
ratio
- the desired ratio (width/height)public int getStrokeWidthInDp()+
public void setStrokeWidthInDp(int strokeWidthInDp)+
strokeWidthInDp
- stroke width in dp.public int getStrokeColor()+
public void setStrokeColor(int strokeColor)+
strokeColor
- the stroke color to usepublic int getCropPaddingX()+
public void setCropPaddingX(int cropPaddingX)+
+ The x padding in pixels that the image, that will be cropped out of the preview to match the , + should have in relation to the size. If positive the cropped image will be smaller then the cutout + and if negative the cropped image will be bigger. +
+ This should only be used in combination with a fixed width (that also fit on all supported devices), + because this is a fixed value that will not be adjusted to anything. +
cropPaddingX
- the x padding inside the used for the crop
+ (negative means bigger crop than )public int getCropPaddingY()+
public void setCropPaddingY(int cropPaddingY)+
+ The y padding in pixels that the image, that will be cropped out of the preview to match the , + should have in relation to the size. If positive the cropped image will be smaller then the cutout + and if negative the cropped image will be bigger. +
+ This should only be used in combination with a fixed width (that also fit on all supported devices), + because this is a fixed value that will not be adjusted to anything. +
cropPaddingY
- the y padding inside the used for the crop
+ (negative means bigger crop than )public int getCropOffsetX()+
public void setCropOffsetX(int cropOffsetX)+
+ The x offset in pixels that the image, that will be cropped out of the preview to match the , + should have in relation to the . If positive the cropped image will be further right than the view + and if negative the cropped image will be further left. +
+ This should only be used in combination with a fixed width (that also fit on all supported devices), + because this is a fixed value that will not be adjusted to anything. +
cropOffsetX
- the x offset to move the actual crop + right or - leftpublic int getCropOffsetY()+
public void setCropOffsetY(int cropOffsetY)+
+ The y offset in pixels that the image, that will be cropped out of the preview to match the , + should have in relation to the . If positive the cropped image will be further down than the view + and if negative the cropped image will be further up. +
+ This should only be used in combination with a fixed width (that also fit on all supported devices), + because this is a fixed value that will not be adjusted to anything. +
cropOffsetY
- the y offset to move the actual crop + up or - downpublic int getOuterColor()+
public void setOuterColor(int outerColor)+
outerColor
- color outside of the area (with transparency).public int getFeedbackStrokeColor()+
public void setFeedbackStrokeColor(int feedbackStrokeColor)+
feedbackStrokeColor
- the color the should stroke should get, if the
+ scanning process has startedpublic int getCutoutStrokeWidthInPix(android.content.Context context)+
public java.lang.String getCutoutStrokeColorString()+
public void setInactiveStrokeColorForDelay(java.lang.String inactiveStrokeColorForDelay)+
inactiveStrokeColorForDelay
- the inactive stroke color to usepublic java.lang.String getInactiveStrokeColorForDelay()+
public void setCutoutStrokeColorString(java.lang.String strokeColorString)+
strokeColorString
- the stroke color to usepublic java.lang.String getFeedbackStrokeColorString()+
public void setFeedbackStrokeColorString(java.lang.String feedbackStrokeColorString)+
feedbackStrokeColorString
- the color the should stroke should get, if the
+ scanning process has startedpublic android.graphics.drawable.Drawable getDrawable()+
public void setDrawable(android.graphics.drawable.Drawable drawable)+
at.nineyards.anyline.camera.AnylineViewConfig.CutoutStyle#IMAGE
.drawable
- drawable to use inside the areapublic java.lang.String getCutoutOuterColorString()+
public void setCutoutOuterColorString(java.lang.String outerColorString)+
outerColorString
- color outside of the cutout area (with transparency).public CutoutConfig.AnimationStyle getAnimationStyle()+
public void setAnimationStyle(CutoutConfig.AnimationStyle animationStyle)+
animationStyle
- the style to usepublic interface CutoutConfigChangedListener
+Modifier and Type | +Method and Description | +
---|---|
void |
+onCutoutConfigChanged(CutoutConfig cutoutConfig) |
+
void onCutoutConfigChanged(CutoutConfig cutoutConfig)+
public class CutoutRect
+extends java.lang.Object
+Modifier and Type | +Field and Description | +
---|---|
android.graphics.Rect |
+rectOnImage |
+
android.graphics.RectF |
+rectOnSurface |
+
android.graphics.Rect |
+rectOnVisibleView |
+
Constructor and Description | +
---|
CutoutRect(android.content.Context context,
+ CutoutConfig config) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+calcCutOutAndImageCropBounds(int frameWidth,
+ int frameHeight,
+ int viewWidth,
+ int viewHeight,
+ float scale) |
+
CutoutConfig |
+getCutoutConfig() |
+
int |
+getCutoutCropOffsetOnViewX() |
+
int |
+getCutoutCropOffsetOnViewY() |
+
int |
+getFrameHeight() |
+
int |
+getFrameWidth() |
+
float |
+getScale() |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public android.graphics.RectF rectOnSurface+
public android.graphics.Rect rectOnImage+
public android.graphics.Rect rectOnVisibleView+
public CutoutRect(android.content.Context context, + CutoutConfig config)+
public void calcCutOutAndImageCropBounds(int frameWidth, + int frameHeight, + int viewWidth, + int viewHeight, + float scale)+
public CutoutConfig getCutoutConfig()+
public int getCutoutCropOffsetOnViewX()+
public int getCutoutCropOffsetOnViewY()+
public int getFrameWidth()+
public int getFrameHeight()+
public float getScale()+
public class DebugUtil
+extends java.lang.Object
+public class FlashView +extends android.widget.ImageView +implements FlashControl+
android.widget.ImageView.ScaleType
android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnCapturedPointerListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener, android.view.View.OnUnhandledKeyEventListener
FlashControl.Mode
ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR, AUTOFILL_HINT_CREDIT_CARD_NUMBER, AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE, AUTOFILL_HINT_EMAIL_ADDRESS, AUTOFILL_HINT_NAME, AUTOFILL_HINT_PASSWORD, AUTOFILL_HINT_PHONE, AUTOFILL_HINT_POSTAL_ADDRESS, AUTOFILL_HINT_POSTAL_CODE, AUTOFILL_HINT_USERNAME, AUTOFILL_TYPE_DATE, AUTOFILL_TYPE_LIST, AUTOFILL_TYPE_NONE, AUTOFILL_TYPE_TEXT, AUTOFILL_TYPE_TOGGLE, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLE, FOCUSABLE_AUTO, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, IMPORTANT_FOR_AUTOFILL_AUTO, IMPORTANT_FOR_AUTOFILL_NO, IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_AUTOFILL_YES, IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_CONTENT_CAPTURE_AUTO, IMPORTANT_FOR_CONTENT_CAPTURE_NO, IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_CONTENT_CAPTURE_YES, IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, NOT_FOCUSABLE, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VISIBLE, X, Y, Z
Constructor and Description | +
---|
FlashView(android.content.Context context) |
+
FlashView(android.content.Context context,
+ android.util.AttributeSet attrs) |
+
FlashView(android.content.Context context,
+ android.util.AttributeSet attrs,
+ int defStyleAttr) |
+
FlashView(android.content.Context context,
+ FlashViewConfig config) |
+
Modifier and Type | +Method and Description | +
---|---|
FlashViewConfig |
+getConfig() |
+
void |
+hide() |
+
boolean |
+isExposureForBlackOnBlack() |
+
void |
+layout(int left,
+ int top,
+ int right,
+ int bottom) |
+
void |
+setAutoModeEnabled(boolean isEnabled)
+Call with true if you want to enable the "auto" mode.
+ |
+
void |
+setCameraController(CameraController cameraController)
+
+ A camera is required to set the flash (at least for android < M).
+ |
+
void |
+setConfig(FlashViewConfig config) |
+
void |
+setExposureForBlackOnBlack() |
+
void |
+setExposureToMinimum() |
+
void |
+setFlashOnIfAuto(boolean setFlashOn)
+Call this to set the flash on or off in auto mode.
+ |
+
void |
+setMode(FlashControl.Mode mode)
+Set the flash to the given Mode (On/Off or Auto).
+ |
+
animateTransform, clearColorFilter, drawableHotspotChanged, getAccessibilityClassName, getAdjustViewBounds, getBaseline, getBaselineAlignBottom, getColorFilter, getCropToPadding, getDrawable, getImageAlpha, getImageMatrix, getImageTintBlendMode, getImageTintList, getImageTintMode, getMaxHeight, getMaxWidth, getScaleType, hasOverlappingRendering, invalidateDrawable, isOpaque, jumpDrawablesToCurrentState, onCreateDrawableState, onRtlPropertiesChanged, onVisibilityAggregated, setAdjustViewBounds, setAlpha, setBaseline, setBaselineAlignBottom, setColorFilter, setColorFilter, setColorFilter, setCropToPadding, setImageAlpha, setImageBitmap, setImageDrawable, setImageIcon, setImageLevel, setImageMatrix, setImageResource, setImageState, setImageTintBlendMode, setImageTintList, setImageTintMode, setImageURI, setMaxHeight, setMaxWidth, setScaleType, setSelected, setVisibility
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addFocusables, addKeyboardNavigationClusters, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, addTouchables, animate, announceForAccessibility, autofill, autofill, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, clearFocus, combineMeasuredStates, computeScroll, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPointerCaptureChanged, dispatchPopulateAccessibilityEvent, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, draw, findFocus, findViewById, findViewsWithText, findViewWithTag, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBottom, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverlay, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRevealOnFocusHint, getRight, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTouchables, getTouchDelegate, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocus, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOnLongClickListeners, hasPointerCapture, hasTransientState, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateOutline, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isPaddingRelative, isPivotSet, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, keyboardNavigationClusterSearch, measure, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onCreateInputConnection, onDragEvent, onDrawForeground, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideStructure, onProvideVirtualStructure, onResolvePointerIcon, onScreenStateChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, requestUnbufferedDispatch, requireViewById, resetPivot, resolveSize, resolveSizeAndState, restoreDefaultFocus, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setAnimationMatrix, setAutofillHints, setAutofillId, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setWillNotCacheDrawing, setWillNotDraw, setWindowInsetsAnimationCallback, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, willNotCacheDrawing, willNotDraw
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public FlashView(android.content.Context context)+
public FlashView(android.content.Context context, + android.util.AttributeSet attrs)+
public FlashView(android.content.Context context, + android.util.AttributeSet attrs, + int defStyleAttr)+
public FlashView(android.content.Context context, + FlashViewConfig config)+
public void setExposureToMinimum()+
public void setExposureForBlackOnBlack()+
public boolean isExposureForBlackOnBlack()+
public void setConfig(FlashViewConfig config)+
public FlashViewConfig getConfig()+
public void hide()+
public void setMode(FlashControl.Mode mode)+
setMode
in interface FlashControl
mode
- the mode to set to.public void setAutoModeEnabled(boolean isEnabled)+
setFlashOnIfAuto(boolean)
+ to set the flash according to your own "auto" logic.setAutoModeEnabled
in interface FlashControl
isEnabled
- true if the auto mode should be enabledpublic void setFlashOnIfAuto(boolean setFlashOn)+
setFlashOnIfAuto
in interface FlashControl
setFlashOn
- true if flash should be onpublic void setCameraController(CameraController cameraController)+
FlashControl
+ A camera is required to set the flash (at least for android < M). + Implementer should check if flash is possible for this device in here, and don't show the view at all if not. +
+ Implementer should set the gui back to default when this is called with a none null camera. (This may be called + in the background, so post gui stuff) +
setCameraController
in interface FlashControl
cameraController
- the camera to usepublic void layout(@Px + int left, + @Px + int top, + @Px + int right, + @Px + int bottom)+
layout
in class android.view.View
public static enum FlashViewConfig.FlashAlignment +extends java.lang.Enum<FlashViewConfig.FlashAlignment>+
Enum Constant and Description | +
---|
BOTTOM |
+
BOTTOM_LEFT |
+
BOTTOM_RIGHT |
+
TOP |
+
TOP_LEFT |
+
TOP_RIGHT |
+
Modifier and Type | +Method and Description | +
---|---|
static FlashViewConfig.FlashAlignment |
+fromInt(int pos) |
+
static FlashViewConfig.FlashAlignment |
+fromString(java.lang.String flashPos) |
+
static FlashViewConfig.FlashAlignment |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static FlashViewConfig.FlashAlignment[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final FlashViewConfig.FlashAlignment TOP_LEFT+
public static final FlashViewConfig.FlashAlignment TOP_RIGHT+
public static final FlashViewConfig.FlashAlignment BOTTOM_LEFT+
public static final FlashViewConfig.FlashAlignment BOTTOM_RIGHT+
public static final FlashViewConfig.FlashAlignment BOTTOM+
public static final FlashViewConfig.FlashAlignment TOP+
public static FlashViewConfig.FlashAlignment[] values()+
+for (FlashViewConfig.FlashAlignment c : FlashViewConfig.FlashAlignment.values()) + System.out.println(c); +
public static FlashViewConfig.FlashAlignment valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static FlashViewConfig.FlashAlignment fromString(java.lang.String flashPos)+
public static FlashViewConfig.FlashAlignment fromInt(int pos)+
public static enum FlashViewConfig.FlashMode +extends java.lang.Enum<FlashViewConfig.FlashMode>+
Enum Constant and Description | +
---|
AUTO |
+
MANUAL |
+
NONE |
+
Modifier and Type | +Method and Description | +
---|---|
static FlashViewConfig.FlashMode |
+fromInt(int mode) |
+
static FlashViewConfig.FlashMode |
+fromString(java.lang.String mode) |
+
static FlashViewConfig.FlashMode |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static FlashViewConfig.FlashMode[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final FlashViewConfig.FlashMode AUTO+
public static final FlashViewConfig.FlashMode MANUAL+
public static final FlashViewConfig.FlashMode NONE+
public static FlashViewConfig.FlashMode[] values()+
+for (FlashViewConfig.FlashMode c : FlashViewConfig.FlashMode.values()) + System.out.println(c); +
public static FlashViewConfig.FlashMode valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static FlashViewConfig.FlashMode fromString(java.lang.String mode)+
public static FlashViewConfig.FlashMode fromInt(int mode)+
public class FlashViewConfig
+extends java.lang.Object
+Modifier and Type | +Class and Description | +
---|---|
static class |
+FlashViewConfig.FlashAlignment
+Enum for all possible flash alignments.
+ |
+
static class |
+FlashViewConfig.FlashMode |
+
Constructor and Description | +
---|
FlashViewConfig() |
+
FlashViewConfig(android.content.Context context,
+ org.json.JSONObject flashJson) |
+
Modifier and Type | +Method and Description | +
---|---|
FlashViewConfig.FlashAlignment |
+getAlignment() |
+
int |
+getImageAutoId() |
+
int |
+getImageOffId() |
+
int |
+getImageOnId() |
+
FlashViewConfig.FlashMode |
+getMode() |
+
int |
+getOffsetXInDp() |
+
int |
+getOffsetYInDp() |
+
int |
+getPaddingInDp() |
+
void |
+setAlignment(FlashViewConfig.FlashAlignment alignment)
+Set where the flash should be positioned.
+ |
+
void |
+setImageAutoId(int imageAutoId)
+Set the resource id for the AUTO state of the flash view.
+ |
+
void |
+setImageOffId(int imageOffId)
+Set the resource id for the OFF state of the flash view.
+ |
+
void |
+setImageOnId(int imageOnId)
+Set the resource id for the ON state of the flash view.
+ |
+
void |
+setMode(FlashViewConfig.FlashMode mode)
+Set the flash mode.
+ |
+
void |
+setOffsetXInDp(int offsetXInDp)
+set x offset for flash alignment
+ |
+
void |
+setOffsetYInDp(int offsetYInDp)
+set y offset for flash alignment
+ |
+
void |
+setPaddingInDp(int paddingInDp)
+Set the padding of the flash view in dp
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public FlashViewConfig()+
public FlashViewConfig(@NonNull + android.content.Context context, + @Nullable + org.json.JSONObject flashJson)+
public FlashViewConfig.FlashMode getMode()+
public void setMode(FlashViewConfig.FlashMode mode)+
mode
- the flash mode.public FlashViewConfig.FlashAlignment getAlignment()+
public void setAlignment(FlashViewConfig.FlashAlignment alignment)+
at.nineyards.anyline.camera.AnylineViewConfig.FlashMode#NONE
alignment
- the alignment of the flash viewpublic int getOffsetXInDp()+
public void setOffsetXInDp(int offsetXInDp)+
offsetXInDp
- positive values move flash view to right, negative values move it to the leftpublic int getOffsetYInDp()+
public void setOffsetYInDp(int offsetYInDp)+
offsetYInDp
- positive values move flash view closer to the bottom edge, negative values move it in
+ dircetion of the top edgepublic int getPaddingInDp()+
public void setPaddingInDp(int paddingInDp)+
paddingInDp
- the padding in dppublic int getImageOnId()+
public void setImageOnId(int imageOnId)+
imageOnId
- resource id for the ON statepublic int getImageOffId()+
public void setImageOffId(int imageOffId)+
imageOffId
- resource id for the OFF statepublic int getImageAutoId()+
public void setImageAutoId(int imageAutoId)+
imageAutoId
- resource id for the AUTO statepublic interface IAnylineViewConfig
+Modifier and Type | +Method and Description | +
---|---|
void |
+init(android.content.Context context,
+ org.json.JSONObject json) |
+
public class JsonParser
+extends java.lang.Object
+Constructor and Description | +
---|
JsonParser() |
+
Modifier and Type | +Method and Description | +
---|---|
static AbstractBaseScanViewPlugin<?> |
+init(org.json.JSONObject jsonObject,
+ android.content.Context context) |
+
static AbstractScanViewPlugin |
+parseViewPlugin(org.json.JSONObject jsonObject,
+ android.content.Context context) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static AbstractBaseScanViewPlugin<?> init(org.json.JSONObject jsonObject, + android.content.Context context)+
public static AbstractScanViewPlugin parseViewPlugin(org.json.JSONObject jsonObject, + android.content.Context context) + throws org.json.JSONException+
org.json.JSONException
public interface LicenseKeyExceptionListener
+Modifier and Type | +Method and Description | +
---|---|
void |
+licenseKeyCheck(LicenseException licenseCheck) |
+
public static enum LightLevelHelper.AmbientLightLevel +extends java.lang.Enum<LightLevelHelper.AmbientLightLevel>+
Enum Constant and Description | +
---|
HIGH |
+
LOW |
+
NONE |
+
OK |
+
Modifier and Type | +Method and Description | +
---|---|
static LightLevelHelper.AmbientLightLevel |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static LightLevelHelper.AmbientLightLevel[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final LightLevelHelper.AmbientLightLevel LOW+
public static final LightLevelHelper.AmbientLightLevel HIGH+
public static final LightLevelHelper.AmbientLightLevel OK+
public static final LightLevelHelper.AmbientLightLevel NONE+
public static LightLevelHelper.AmbientLightLevel[] values()+
+for (LightLevelHelper.AmbientLightLevel c : LightLevelHelper.AmbientLightLevel.values()) + System.out.println(c); +
public static LightLevelHelper.AmbientLightLevel valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static enum LightLevelHelper.BrightnessLevel +extends java.lang.Enum<LightLevelHelper.BrightnessLevel>+
Enum Constant and Description | +
---|
HIGH |
+
LOW |
+
OK |
+
Modifier and Type | +Method and Description | +
---|---|
static LightLevelHelper.BrightnessLevel |
+valueOf(java.lang.String name)
+Returns the enum constant of this type with the specified name.
+ |
+
static LightLevelHelper.BrightnessLevel[] |
+values()
+Returns an array containing the constants of this enum type, in
+the order they are declared.
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final LightLevelHelper.BrightnessLevel LOW+
public static final LightLevelHelper.BrightnessLevel HIGH+
public static final LightLevelHelper.BrightnessLevel OK+
public static LightLevelHelper.BrightnessLevel[] values()+
+for (LightLevelHelper.BrightnessLevel c : LightLevelHelper.BrightnessLevel.values()) + System.out.println(c); +
public static LightLevelHelper.BrightnessLevel valueOf(java.lang.String name)+
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static interface LightLevelHelper.LightLevelListener
+Modifier and Type | +Method and Description | +
---|---|
void |
+onLightLevelChanged(LightLevelHelper.BrightnessLevel brightnessLevel,
+ LightLevelHelper.AmbientLightLevel ambientLightLevel) |
+
void onLightLevelChanged(LightLevelHelper.BrightnessLevel brightnessLevel, + LightLevelHelper.AmbientLightLevel ambientLightLevel)+
public class LightLevelHelper
+extends java.lang.Object
+Modifier and Type | +Class and Description | +
---|---|
static class |
+LightLevelHelper.AmbientLightLevel |
+
static class |
+LightLevelHelper.BrightnessLevel |
+
static interface |
+LightLevelHelper.LightLevelListener |
+
Constructor and Description | +
---|
LightLevelHelper(LightLevelHelper.LightLevelListener listener) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+setAmbientLightThreshold(int low,
+ int high,
+ int duration) |
+
void |
+setBrightnessThreshold(int low,
+ int high,
+ int duration) |
+
void |
+setCurrentBrightness(double brightness) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public LightLevelHelper(@NonNull + LightLevelHelper.LightLevelListener listener)+
public void setBrightnessThreshold(int low, + int high, + int duration)+
public void setAmbientLightThreshold(int low, + int high, + int duration)+
public void setCurrentBrightness(double brightness)+
public class ParallelScanViewComposite +extends AbstractScanViewPluginComposite+
Constructor and Description | +
---|
ParallelScanViewComposite(java.lang.String id) |
+
Modifier and Type | +Method and Description | +
---|---|
CutoutRect |
+getCutoutRect() |
+
java.lang.String |
+getId() |
+
ScanViewPluginConfig |
+getScanViewPluginConfig() |
+
void |
+start() |
+
add, addScanInfoListener, addScanResultListener, addScanRunSkippedListener, addUIConfigChangedListener, calcCutOutAndImageCropBounds, getAllScanViewPlugins, getCancelOnResult, getImageProvider, remove, removeScanInfoListener, removeScanResultListener, removeScanRunSkippedListener, removeUIConfigChangedListener, setCancelOnResult, setCancelOnResult, setCropRect, setDelayScanTime, setImageProvider, stop
setDebugListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ParallelScanViewComposite(java.lang.String id)+
public CutoutRect getCutoutRect()+
public ScanViewPluginConfig getScanViewPluginConfig()+
public java.lang.String getId()+
getId
in class AbstractScanViewPluginComposite
public void start()+
start
in class AbstractScanViewPluginComposite
public class ScanPage
+extends java.lang.Object
+implements android.os.Parcelable
+android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T>
Modifier and Type | +Field and Description | +
---|---|
static android.os.Parcelable.Creator |
+CREATOR |
+
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description | +
---|
ScanPage(java.io.File fullImageFile,
+ java.io.File croppedImageFile,
+ java.util.ArrayList<android.graphics.PointF> corners) |
+
ScanPage(java.io.File fullImageFile,
+ java.io.File croppedImageFile,
+ java.util.ArrayList<android.graphics.PointF> corners,
+ java.lang.Integer startRotation) |
+
ScanPage(android.os.Parcel in) |
+
ScanPage(java.lang.String fullImagePath,
+ java.lang.String croppedImagePath,
+ java.util.ArrayList<android.graphics.PointF> corners) |
+
Modifier and Type | +Method and Description | +
---|---|
int |
+describeContents() |
+
java.io.File |
+getCroppedImageFile() |
+
java.lang.String |
+getCroppedImagePath() |
+
java.io.File |
+getFullImageFile() |
+
java.lang.String |
+getFullImagePath() |
+
java.io.File |
+getImage() |
+
int |
+getRotationInDegrees() |
+
int |
+getSessionRotationInDegrees() |
+
java.util.ArrayList<android.graphics.PointF> |
+getTransformationPoints() |
+
boolean |
+isRotated() |
+
void |
+rotateCw() |
+
void |
+setCroppedImageFile(java.io.File mImageFile) |
+
void |
+setCroppedImageFile(java.lang.String filePath) |
+
void |
+setFullImageFile(java.io.File mImageFile) |
+
void |
+setRotationInDegrees(int rotationInDegrees) |
+
void |
+setTransformationPoints(java.util.ArrayList<android.graphics.PointF> transformationPoints) |
+
void |
+writeToParcel(android.os.Parcel dest,
+ int flags) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final android.os.Parcelable.Creator CREATOR+
public ScanPage(java.lang.String fullImagePath, + java.lang.String croppedImagePath, + java.util.ArrayList<android.graphics.PointF> corners)+
public ScanPage(java.io.File fullImageFile, + java.io.File croppedImageFile, + java.util.ArrayList<android.graphics.PointF> corners)+
public ScanPage(java.io.File fullImageFile, + java.io.File croppedImageFile, + java.util.ArrayList<android.graphics.PointF> corners, + java.lang.Integer startRotation)+
public ScanPage(android.os.Parcel in)+
public java.io.File getImage()+
public void rotateCw()+
public java.lang.String getFullImagePath()+
public java.lang.String getCroppedImagePath()+
public java.io.File getFullImageFile()+
public void setFullImageFile(java.io.File mImageFile)+
public java.io.File getCroppedImageFile()+
public void setCroppedImageFile(java.io.File mImageFile)+
public int getSessionRotationInDegrees()+
public int getRotationInDegrees()+
public void setRotationInDegrees(int rotationInDegrees)+
public java.util.ArrayList<android.graphics.PointF> getTransformationPoints()+
public void setTransformationPoints(java.util.ArrayList<android.graphics.PointF> transformationPoints)+
public void setCroppedImageFile(java.lang.String filePath)+
public int describeContents()+
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, + int flags)+
writeToParcel
in interface android.os.Parcelable
public boolean isRotated()+
public class ScanView +extends CameraView +implements UIChangeListener, DocumentNotifierListener+
+ A generic view that combines the AnylineWebView
and the FlashView
.
+
+ This view is used in order to add a specific type of AbstractScanViewPlugin
, or more AbstractScanViewPlugin
android.view.ViewGroup.LayoutParams, android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnCapturedPointerListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener, android.view.View.OnUnhandledKeyEventListener
Modifier and Type | +Field and Description | +
---|---|
Rect |
+cropRect |
+
cameraController, frameIndex, layoutBottom, layoutLeft, layoutRight, layoutTop, PREVIEW_CROP_GRAVITY_BOTTOM, PREVIEW_CROP_GRAVITY_CENTER_VERTICALLY, PREVIEW_CROP_GRAVITY_TOP
FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR, AUTOFILL_HINT_CREDIT_CARD_NUMBER, AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE, AUTOFILL_HINT_EMAIL_ADDRESS, AUTOFILL_HINT_NAME, AUTOFILL_HINT_PASSWORD, AUTOFILL_HINT_PHONE, AUTOFILL_HINT_POSTAL_ADDRESS, AUTOFILL_HINT_POSTAL_CODE, AUTOFILL_HINT_USERNAME, AUTOFILL_TYPE_DATE, AUTOFILL_TYPE_LIST, AUTOFILL_TYPE_NONE, AUTOFILL_TYPE_TEXT, AUTOFILL_TYPE_TOGGLE, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLE, FOCUSABLE_AUTO, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, IMPORTANT_FOR_AUTOFILL_AUTO, IMPORTANT_FOR_AUTOFILL_NO, IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_AUTOFILL_YES, IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_CONTENT_CAPTURE_AUTO, IMPORTANT_FOR_CONTENT_CAPTURE_NO, IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_CONTENT_CAPTURE_YES, IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, NOT_FOCUSABLE, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VISIBLE, X, Y, Z
Constructor and Description | +
---|
ScanView(android.content.Context context) |
+
ScanView(android.content.Context context,
+ android.util.AttributeSet attrs) |
+
ScanView(android.content.Context context,
+ android.util.AttributeSet attrs,
+ int defStyleAttr) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+calculateBrightnessCount(double brightness) |
+
void |
+delayScanTime() |
+
void |
+drawShape(java.util.List<android.graphics.PointF> outline) |
+
BrightnessHelper.BrightnessFeedback |
+getBrightnessFeedBack() |
+
CameraView |
+getCameraView() |
+
FlashView |
+getFlashView() |
+
ImageProvider |
+getImageProvider() |
+
AbstractBaseScanViewPlugin<?> |
+getScanViewPlugin() |
+
ScanViewPluginConfig |
+getScanViewPluginConfig() |
+
void |
+init(org.json.JSONObject configJsonObject)
+Initializes the ScanView with the file path to a JSON config file and a license key.
+ |
+
void |
+init(java.lang.String configFileName)
+Initializes the ScanView with the file path to a JSON config file and a license key.
+ |
+
void |
+initAsync(TrainerContext trainerContext,
+ TrainerUtils.ViewConfigResultHandler resultHandler) |
+
void |
+initComposite(org.json.JSONObject jsonObject) |
+
void |
+notifyCamera() |
+
void |
+notifyDrawDocumentFeedback(java.util.List<android.graphics.PointF> points) |
+
void |
+notifyTakeHighPictureResolution(CombinedImageProvider imageProvider) |
+
void |
+onCutoutChanged(CutoutRect cutoutRect) |
+
void |
+onCutoutVisibility(java.lang.String id,
+ boolean visible) |
+
void |
+onScanFeedbackConfigChanged(java.lang.Object drawObject,
+ java.lang.String id) |
+
boolean |
+onTouchEvent(android.view.MotionEvent event) |
+
void |
+setCropRect(Rect cropRect) |
+
void |
+setScanConfig(org.json.JSONObject jsonObject) |
+
void |
+setScanConfig(java.lang.String pathFile) |
+
void |
+setScanViewConfig(BaseScanViewConfig scanViewConfig)
+Sets the ScanView with the base config
+BaseScanViewConfig for cameraView and the flashView configurations |
+
void |
+setScanViewPlugin(AbstractBaseScanViewPlugin<?> scanViewPlugin)
+Sets the ScanView with the specific
+AbstractScanViewPlugin |
+
void |
+start()
+Starts the worker thread.
+ |
+
void |
+startBlinkAnimation() |
+
void |
+stop() |
+
void |
+updateCutoutView() |
+
callAutoFocus, disableBarcodeDetection, enableBarcodeDetection, getCameraController, getFrameHeight, getFrameWidth, getLastImageWithFullSize, getLastImageWithFullSizeReceiver, getNewImage, getPreferredCameraConfig, getScale, getSettings, hasNewImage, isBarcodeDetectionEnabled, isBarcodeDetectionOperational, openCameraInBackground, releaseCamera, releaseCameraAndPreview, releaseCameraInBackground, resetAutoFocusTimer, setApi2Enabled, setCameraOpenListener, setFlashOn, setFocusConfig, setHighResolutionImageListener, setImageListener, setPreferredCameraConfig, setPreferredPictureSize, setPreferredPreviewFps, setPreferredPreviewSize, setPreviewCropGravity, setSceneMode, setUseMaxFpsRange, takeHighResolutionImage, takeHighResolutionImage
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, bringChildToFront, childDrawableStateChanged, childHasTransientStateChanged, clearChildFocus, clearDisappearingChildren, clearFocus, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchSetActivated, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, generateLayoutParams, getAccessibilityClassName, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isLayoutSuppressed, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onDescendantInvalidated, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setTouchscreenBlocksFocus, setTransitionGroup, setWindowInsetsAnimationCallback, shouldDelayChildPressedState, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, suppressLayout, updateViewLayout
addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, animate, announceForAccessibility, autofill, autofill, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeScroll, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, draw, drawableHotspotChanged, findViewById, findViewWithTag, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRevealOnFocusHint, getRight, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTouchables, getTouchDelegate, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOnLongClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingRelative, isPivotSet, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, keyboardNavigationClusterSearch, measure, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onCreateInputConnection, onDragEvent, onDrawForeground, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideStructure, onProvideVirtualStructure, onRtlPropertiesChanged, onScreenStateChanged, onStartTemporaryDetach, onTrackballEvent, onVisibilityAggregated, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, requestUnbufferedDispatch, requireViewById, resetPivot, resolveSize, resolveSizeAndState, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setAnimationMatrix, setAutofillHints, setAutofillId, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, willNotCacheDrawing, willNotDraw
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, keyboardNavigationClusterSearch, requestFitSystemWindows, requestLayout
public ScanView(android.content.Context context)+
public ScanView(android.content.Context context, + android.util.AttributeSet attrs)+
public ScanView(android.content.Context context, + android.util.AttributeSet attrs, + int defStyleAttr)+
public FlashView getFlashView()+
public void setScanViewConfig(BaseScanViewConfig scanViewConfig)+
BaseScanViewConfig
for cameraView and the flashView configurationsscanViewConfig
- the base configpublic void setScanViewPlugin(AbstractBaseScanViewPlugin<?> scanViewPlugin)+
AbstractScanViewPlugin
scanViewPlugin
- the scanView pluginpublic AbstractBaseScanViewPlugin<?> getScanViewPlugin()+
public BrightnessHelper.BrightnessFeedback getBrightnessFeedBack()+
public void start()+
public void stop()+
public ImageProvider getImageProvider()+
public boolean onTouchEvent(android.view.MotionEvent event)+
onTouchEvent
in class CameraView
public void drawShape(java.util.List<android.graphics.PointF> outline)+
public void updateCutoutView()+
public void startBlinkAnimation()+
public CameraView getCameraView()+
public void calculateBrightnessCount(double brightness)+
public void setCropRect(Rect cropRect)+
public void initComposite(org.json.JSONObject jsonObject)+
public void initAsync(TrainerContext trainerContext, + TrainerUtils.ViewConfigResultHandler resultHandler)+
public void init(@NonNull + java.lang.String configFileName)+
configFileName
- the file pathpublic ScanViewPluginConfig getScanViewPluginConfig()+
public void init(@NonNull + org.json.JSONObject configJsonObject)+
configJsonObject
- the config json Objectpublic void onScanFeedbackConfigChanged(java.lang.Object drawObject, + java.lang.String id)+
onScanFeedbackConfigChanged
in interface UIChangeListener
public void setScanConfig(java.lang.String pathFile)+
public void setScanConfig(org.json.JSONObject jsonObject)+
public void onCutoutChanged(CutoutRect cutoutRect)+
onCutoutChanged
in interface UIChangeListener
public void delayScanTime()+
delayScanTime
in interface UIChangeListener
public void onCutoutVisibility(java.lang.String id, + boolean visible)+
onCutoutVisibility
in interface UIChangeListener
public void notifyCamera()+
notifyCamera
in interface DocumentNotifierListener
public void notifyDrawDocumentFeedback(java.util.List<android.graphics.PointF> points)+
notifyDrawDocumentFeedback
in interface DocumentNotifierListener
public void notifyTakeHighPictureResolution(CombinedImageProvider imageProvider)+
notifyTakeHighPictureResolution
in interface DocumentNotifierListener
public class ScanViewCameraConfig
+extends java.lang.Object
+Constructor and Description | +
---|
ScanViewCameraConfig(org.json.JSONObject jsonObject)
+Create config from the given json object.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
CameraFeatures.LensFacing |
+getDefaultLensFacing() |
+
java.util.EnumSet<CameraFeatures.LensFacing> |
+getFallbackLensFacings() |
+
double |
+getFocalLength() |
+
double |
+getMaxFocalLength() |
+
double |
+getMaxZoomRatio() |
+
int |
+getPreferredPictureHeight() |
+
int |
+getPreferredPictureWidth() |
+
int |
+getPreferredPreviewHeight() |
+
int |
+getPreferredPreviewWidth() |
+
double |
+getZoomRatio() |
+
boolean |
+isZoomGestureEnabled() |
+
void |
+setDefaultLensFacing(CameraFeatures.LensFacing defaultLensFacing)
+Set the default camera used for scanning
+ |
+
void |
+setFallbackLensFacings(java.util.EnumSet<CameraFeatures.LensFacing> fallbackLensFacings)
+Set the fallback camera facings which are used if the default camera facing is not available on the device
+ |
+
void |
+setFocalLength(double focalLength) |
+
void |
+setMaxFocalLength(double maxFocalLength) |
+
void |
+setMaxZoomRatio(double maxZoomRatio) |
+
void |
+setPreferredPictureHeight(int preferredPictureHeight)
+Set the preferred height when taking a full picture.
+ |
+
void |
+setPreferredPictureWidth(int preferredPictureWidth)
+Set the preferred width when taking a full picture.
+ |
+
void |
+setPreferredPreviewHeight(int preferredPreviewHeight)
+Set the preferred preview height.
+ |
+
void |
+setPreferredPreviewWidth(int preferredPreviewWidth)
+Set the preferred preview width.
+ |
+
void |
+setZoomGestureEnabled(boolean zoomGestureEnabled) |
+
void |
+setZoomRatio(double zoomRatio) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ScanViewCameraConfig(@Nullable + org.json.JSONObject jsonObject)+
jsonObject
- the json object with the settingspublic int getPreferredPreviewWidth()+
public void setPreferredPreviewWidth(int preferredPreviewWidth)+
preferredPreviewWidth
- the desired preview widthpublic int getPreferredPreviewHeight()+
public void setPreferredPreviewHeight(int preferredPreviewHeight)+
preferredPreviewHeight
- the desired preview heightpublic int getPreferredPictureWidth()+
public void setPreferredPictureWidth(int preferredPictureWidth)+
preferredPictureWidth
- the desired picture widthpublic int getPreferredPictureHeight()+
public void setPreferredPictureHeight(int preferredPictureHeight)+
preferredPictureHeight
- the desired picture heightpublic CameraFeatures.LensFacing getDefaultLensFacing()+
public void setDefaultLensFacing(CameraFeatures.LensFacing defaultLensFacing)+
defaultLensFacing
- the CameraFacingpublic java.util.EnumSet<CameraFeatures.LensFacing> getFallbackLensFacings()+
public void setFallbackLensFacings(java.util.EnumSet<CameraFeatures.LensFacing> fallbackLensFacings)+
fallbackLensFacings
- the fallback options for CameraFacingpublic boolean isZoomGestureEnabled()+
public double getFocalLength()+
public double getMaxZoomRatio()+
public void setZoomGestureEnabled(boolean zoomGestureEnabled)+
public void setFocalLength(double focalLength)+
public void setMaxZoomRatio(double maxZoomRatio)+
public double getZoomRatio()+
public void setZoomRatio(double zoomRatio)+
public double getMaxFocalLength()+
public void setMaxFocalLength(double maxFocalLength)+
public class ScanViewPluginConfig +extends java.lang.Object +implements IAnylineViewConfig+
ScanView
.Constructor and Description | +
---|
ScanViewPluginConfig() |
+
ScanViewPluginConfig(android.content.Context context,
+ org.json.JSONObject json) |
+
ScanViewPluginConfig(android.content.Context context,
+ java.lang.String configFileName) |
+
Modifier and Type | +Method and Description | +
---|---|
CutoutConfig |
+getCutoutConfig() |
+
double |
+getDelayStartScanTime() |
+
float |
+getScale() |
+
VisualFeedbackConfig |
+getVisualFeedbackConfig()
+return the visual feedback configuration
+ |
+
void |
+init(android.content.Context context,
+ org.json.JSONObject json) |
+
boolean |
+isCancelOnResult() |
+
void |
+setCancelOnResult(boolean isCancelOnResult) |
+
void |
+setDelayStartScanTime(double delayStartScanTime) |
+
void |
+setScale(float scale) |
+
void |
+setVisualFeedbackConfig(VisualFeedbackConfig visualFeedbackConfig)
+Set the visual feedback behaviour
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ScanViewPluginConfig()+
public ScanViewPluginConfig(@NonNull + android.content.Context context, + @Nullable + java.lang.String configFileName)+
public ScanViewPluginConfig(@NonNull + android.content.Context context, + @Nullable + org.json.JSONObject json)+
public void init(@NonNull + android.content.Context context, + @Nullable + org.json.JSONObject json)+
init
in interface IAnylineViewConfig
public void setCancelOnResult(boolean isCancelOnResult)+
public void setDelayStartScanTime(double delayStartScanTime)+
public double getDelayStartScanTime()+
public boolean isCancelOnResult()+
public CutoutConfig getCutoutConfig()+
public VisualFeedbackConfig getVisualFeedbackConfig()+
public float getScale()+
public void setScale(float scale)+
public void setVisualFeedbackConfig(VisualFeedbackConfig visualFeedbackConfig)+
visualFeedbackConfig
- the visual feedback config to usepublic class ScanViewRefactor
+extends java.lang.Object
+Constructor and Description | +
---|
ScanViewRefactor() |
+
public class ScanViewUtil
+extends java.lang.Object
+Constructor and Description | +
---|
ScanViewUtil() |
+
Modifier and Type | +Method and Description | +
---|---|
static android.graphics.Rect |
+getFrameRectFromViewRect(android.graphics.Rect viewRect,
+ int frameWidth,
+ int frameHeight,
+ float scale)
+Get the rect relative to the camera frame from the rect that is relative to this view.
+ |
+
static java.util.List<android.graphics.PointF> |
+transformOutlineToPointListRelativeToFullFrame(AnylineImage fullFrame,
+ java.util.List<android.graphics.PointF> outlineCorners,
+ float offsetX,
+ float offsetY,
+ AnylineImage fullImage,
+ float resizeWidth,
+ int contourBorder)
+Transforms the provided document corners from the core to a List of PointF which are relative to the fullFrame
+ image.
+ |
+
static java.util.List<android.graphics.PointF> |
+transformOutlineToPointListRelativeToRect(java.util.List<Point> outlineCorners,
+ float resizeWidth,
+ int contourBorder,
+ android.graphics.Rect rect)
+Transforms the returned document outline from the core to a List of PointF which are directly drawable on the
+ screen.
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static java.util.List<android.graphics.PointF> transformOutlineToPointListRelativeToRect(java.util.List<Point> outlineCorners, + float resizeWidth, + int contourBorder, + android.graphics.Rect rect)+
outlineCorners
- The list of opencv Points to be transformedresizeWidth
- The resize widthcontourBorder
- The contour borderrect
- the rectpublic static java.util.List<android.graphics.PointF> transformOutlineToPointListRelativeToFullFrame(AnylineImage fullFrame, + java.util.List<android.graphics.PointF> outlineCorners, + float offsetX, + float offsetY, + AnylineImage fullImage, + float resizeWidth, + int contourBorder)+
fullFrame
- The full frame image to transform the points tooutlineCorners
- The list of opencv Points to be transformedoffsetX
- A potential offset from the leftoffsetY
- A potential offset from topfullImage
- The full imageresizeWidth
- The resize widthcontourBorder
- The contour border.public static android.graphics.Rect getFrameRectFromViewRect(android.graphics.Rect viewRect, + int frameWidth, + int frameHeight, + float scale)+
viewRect
- the rect relative to this viewpublic class SerialScanViewComposite +extends AbstractScanViewPluginComposite+
Constructor and Description | +
---|
SerialScanViewComposite(java.lang.String id) |
+
Modifier and Type | +Method and Description | +
---|---|
boolean |
+getCancelOnResult() |
+
CutoutRect |
+getCutoutRect() |
+
java.lang.String |
+getId() |
+
ScanViewPluginConfig |
+getScanViewPluginConfig() |
+
void |
+setCancelOnResult(boolean cancelOnResult) |
+
void |
+setDelayScanTime() |
+
void |
+start() |
+
void |
+startWithId(java.lang.String id) |
+
add, addScanInfoListener, addScanResultListener, addScanRunSkippedListener, addUIConfigChangedListener, calcCutOutAndImageCropBounds, getAllScanViewPlugins, getImageProvider, remove, removeScanInfoListener, removeScanResultListener, removeScanRunSkippedListener, removeUIConfigChangedListener, setCancelOnResult, setCropRect, setImageProvider, stop
setDebugListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public SerialScanViewComposite(java.lang.String id)+
public void setCancelOnResult(boolean cancelOnResult)+
setCancelOnResult
in class AbstractScanViewPluginComposite
public boolean getCancelOnResult()+
getCancelOnResult
in class AbstractScanViewPluginComposite
public java.lang.String getId()+
getId
in class AbstractScanViewPluginComposite
public void start()+
start
in class AbstractScanViewPluginComposite
public void startWithId(java.lang.String id)+
public CutoutRect getCutoutRect()+
public ScanViewPluginConfig getScanViewPluginConfig()+
public void setDelayScanTime()+
setDelayScanTime
in class AbstractScanViewPluginComposite
public interface UIChangeListener
+Modifier and Type | +Method and Description | +
---|---|
void |
+delayScanTime() |
+
void |
+onCutoutChanged(CutoutRect cutoutRect) |
+
void |
+onCutoutVisibility(java.lang.String id,
+ boolean visible) |
+
void |
+onScanFeedbackConfigChanged(java.lang.Object scanFeedbackConfig,
+ java.lang.String id) |
+
void onScanFeedbackConfigChanged(java.lang.Object scanFeedbackConfig, + java.lang.String id)+
void onCutoutChanged(CutoutRect cutoutRect)+
void delayScanTime()+
void onCutoutVisibility(java.lang.String id, + boolean visible)+
Interface | +Description | +
---|---|
CutoutConfigChangedListener | ++ |
IAnylineViewConfig | +
+ Created by lorena on 28.05.18.
+ |
+
LicenseKeyExceptionListener | ++ |
LightLevelHelper.LightLevelListener | ++ |
UIChangeListener | ++ |
Class | +Description | +
---|---|
AbstractBaseScanViewPlugin<ResultType extends ScanResult> | ++ |
AbstractScanViewPlugin | ++ |
AbstractScanViewPluginComposite | ++ |
AbstractWebView | ++ |
AnylineCutoutBase | ++ |
AnylineFeedbackView | ++ |
AnylineViewConfig | +
+ Created by lorena on 28.05.18.
+ |
+
AnylineWebView | +
+ This is a class for the webView
+ |
+
BaseScanViewConfig | ++ |
BrightnessHelper | ++ |
CutoutConfig | +
+ Class holds the configuration for the cutout
+ |
+
CutoutRect | ++ |
DebugUtil | ++ |
FlashView | +
+ A simple view that provides basic flash functionality.
+ |
+
FlashViewConfig | +
+ A class used to configure the Flash
+ |
+
JsonParser | ++ |
LightLevelHelper | ++ |
ParallelScanViewComposite | ++ |
ScanPage | ++ |
ScanView | +
+
+ A generic view that combines the
+AnylineWebView and the FlashView . |
+
ScanViewCameraConfig | +
+ Class holds configurations for the camera
+ |
+
ScanViewPluginConfig | +
+ A config class used to configure the
+ScanView . |
+
ScanViewRefactor | ++ |
ScanViewUtil | ++ |
SerialScanViewComposite | ++ |
Enum | +Description | +
---|---|
BrightnessHelper.BrightnessFeedback | ++ |
CutoutConfig.AnimationStyle | ++ |
CutoutConfig.CutoutAlignment | +
+ Enum for all possible alignments of the cutout
+ |
+
CutoutConfig.CutoutStyle | +
+ Enum for all possible cutout styles.
+ |
+
FlashViewConfig.FlashAlignment | +
+ Enum for all possible flash alignments.
+ |
+
FlashViewConfig.FlashMode | ++ |
LightLevelHelper.AmbientLightLevel | ++ |
LightLevelHelper.BrightnessLevel | ++ |
+ + diff --git a/BindingSource/AnylineXamarinSDK.Droid/Assets/tools/javadoc/overview-summary.html b/BindingSource/AnylineXamarinSDK.Droid/Assets/tools/javadoc/overview-summary.html new file mode 100644 index 000000000..691ac2eef --- /dev/null +++ b/BindingSource/AnylineXamarinSDK.Droid/Assets/tools/javadoc/overview-summary.html @@ -0,0 +1,183 @@ + + + + + +
Package | +Description | +
---|---|
at.nineyards.anyline | ++ |
at.nineyards.anyline.camera | ++ |
at.nineyards.anyline.models | ++ |
at.nineyards.anyline.modules | ++ |
at.nineyards.anyline.util | ++ |
io.anyline.plugin | ++ |
io.anyline.plugin.barcode | ++ |
io.anyline.plugin.document | ++ |
io.anyline.plugin.id | ++ |
io.anyline.plugin.licenseplate | ++ |
io.anyline.plugin.meter | ++ |
io.anyline.plugin.ocr | ++ |
io.anyline.view | ++ |