Package io.anyline2.plugin
Class ScanPlugin
-
- All Implemented Interfaces:
public class ScanPlugin
-
-
Field Summary
Fields Modifier and Type Field Description public Event<Void>
onStartReceived
public Event<Void>
onStopReceived
public Event<JSONObject>
errorReceived
public Event<JSONObject>
visualFeedbackReceived
public Event<JSONObject>
scanInfoReceived
public Event<JSONObject>
runSkippedReceived
public Event<ScanResult>
resultReceived
public String
id
public ImageProvider
imageProvider
public ScanPluginConfig
scanPluginConfig
-
Constructor Summary
Constructors Constructor Description ScanPlugin(JSONObject jsonConfig)
ScanPlugin(JSONObject jsonConfig, AssetContext assetContext)
-
Method Summary
Modifier and Type Method Description String
getId()
ImageProvider
getImageProvider()
void
setImageProvider(ImageProvider imageProvider)
ScanPluginConfig
getScanPluginConfig()
void
start()
void
stop()
boolean
isStarted()
boolean
isRunning()
void
processImage(AnylineImage anylineImage)
ALRect
getRegionOfInterest()
void
setRegionOfInterest(ALRect alRect)
void
onError(String var)
void
onVisualFeedback(String var)
void
onInfo(String var)
void
onRunSkipped(String var)
void
onResult(AnylineImage image, String var)
ScanController.PluginType
getType()
boolean
isFaceDetectionEnabled()
-
-
Constructor Detail
-
ScanPlugin
ScanPlugin(JSONObject jsonConfig)
-
ScanPlugin
ScanPlugin(JSONObject jsonConfig, AssetContext assetContext)
-
-
Method Detail
-
getImageProvider
ImageProvider getImageProvider()
-
setImageProvider
void setImageProvider(ImageProvider imageProvider)
-
getScanPluginConfig
ScanPluginConfig getScanPluginConfig()
-
start
void start()
-
stop
void stop()
-
isStarted
boolean isStarted()
-
isRunning
boolean isRunning()
-
processImage
void processImage(AnylineImage anylineImage)
-
getRegionOfInterest
ALRect getRegionOfInterest()
-
setRegionOfInterest
void setRegionOfInterest(ALRect alRect)
-
onVisualFeedback
void onVisualFeedback(String var)
-
onRunSkipped
void onRunSkipped(String var)
-
onResult
void onResult(AnylineImage image, String var)
-
getType
ScanController.PluginType getType()
-
isFaceDetectionEnabled
boolean isFaceDetectionEnabled()
-
-
-
-