Package io.anyline2.plugin
Class ScanPlugin
- java.lang.Object
-
- io.anyline2.plugin.ScanPlugin
-
public class ScanPlugin extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description Event<org.json.JSONObject>
errorReceived
Event<ScanResult>
resultReceived
Event<org.json.JSONObject>
runSkippedReceived
Event<org.json.JSONObject>
scanInfoReceived
Event<org.json.JSONObject>
visualFeedbackReceived
-
Constructor Summary
Constructors Constructor Description ScanPlugin(org.json.JSONObject jsonConfig)
ScanPlugin(org.json.JSONObject jsonConfig, AssetContext assetContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
ImageProvider
getImageProvider()
ALRect
getRegionOfInterest()
ScanPluginConfig
getScanPluginConfig()
ScanController.PluginType
getType()
boolean
isFaceDetectionEnabled()
boolean
isRunning()
boolean
isStarted()
void
onError(java.lang.String var)
void
onInfo(java.lang.String var)
void
onResult(AnylineImage image, java.lang.String var)
void
onRunSkipped(java.lang.String var)
void
onVisualFeedback(java.lang.String var)
void
processImage(AnylineImage anylineImage)
void
setImageProvider(ImageProvider imageProvider)
void
setRegionOfInterest(ALRect alRect)
void
start()
void
stop()
-
-
-
Field Detail
-
errorReceived
public Event<org.json.JSONObject> errorReceived
-
visualFeedbackReceived
public Event<org.json.JSONObject> visualFeedbackReceived
-
scanInfoReceived
public Event<org.json.JSONObject> scanInfoReceived
-
runSkippedReceived
public Event<org.json.JSONObject> runSkippedReceived
-
resultReceived
public Event<ScanResult> resultReceived
-
-
Constructor Detail
-
ScanPlugin
public ScanPlugin(org.json.JSONObject jsonConfig) throws AnylineException, org.json.JSONException
- Throws:
AnylineException
org.json.JSONException
-
ScanPlugin
public ScanPlugin(org.json.JSONObject jsonConfig, AssetContext assetContext) throws AnylineException, org.json.JSONException
- Throws:
AnylineException
org.json.JSONException
-
-
Method Detail
-
start
public void start()
-
stop
public void stop()
-
isStarted
public boolean isStarted()
-
isRunning
public boolean isRunning()
-
processImage
public void processImage(AnylineImage anylineImage) throws AnylineException
- Throws:
AnylineException
-
getRegionOfInterest
public ALRect getRegionOfInterest()
-
setRegionOfInterest
public void setRegionOfInterest(ALRect alRect)
-
getScanPluginConfig
public ScanPluginConfig getScanPluginConfig()
-
getId
public java.lang.String getId()
-
onError
public void onError(java.lang.String var)
-
onVisualFeedback
public void onVisualFeedback(java.lang.String var)
-
onInfo
public void onInfo(java.lang.String var)
-
onRunSkipped
public void onRunSkipped(java.lang.String var)
-
onResult
public void onResult(AnylineImage image, java.lang.String var)
-
getImageProvider
public ImageProvider getImageProvider()
-
setImageProvider
public void setImageProvider(ImageProvider imageProvider)
-
getType
public ScanController.PluginType getType()
-
isFaceDetectionEnabled
public boolean isFaceDetectionEnabled()
-
-