Package io.anyline2.plugin
Class ScanPlugin
-
- All Implemented Interfaces:
public class ScanPlugin
-
-
Field Summary
Fields Modifier and Type Field Description public Event<Void>onStartReceivedpublic Event<Void>onStopReceivedpublic Event<JSONObject>errorReceivedpublic Event<JSONObject>visualFeedbackReceivedpublic Event<JSONObject>scanInfoReceivedpublic Event<JSONObject>runSkippedReceivedpublic Event<ScanResult>resultReceivedpublic Stringidpublic ImageProviderimageProviderpublic final PluginConfigscanPluginConfig
-
Constructor Summary
Constructors Constructor Description ScanPlugin(JSONObject jsonConfig)ScanPlugin(JSONObject jsonConfig, AssetContext assetContext)ScanPlugin(PluginConfig pluginConfig, AssetContext assetContext)
-
Method Summary
Modifier and Type Method Description StringgetId()ImageProvidergetImageProvider()voidsetImageProvider(ImageProvider imageProvider)PluginConfiggetScanPluginConfig()voidstart()voidpause()voidresume()voidstop()booleanisStarted()booleanisRunning()voidprocessImage(AnylineImage anylineImage)voidprocessImage(AnylineImage anylineImage, boolean sync)ALRectgetRegionOfInterest()voidsetRegionOfInterest(ALRect alRect)voidonError(String coreVariable)voidonVisualFeedback(String coreVariable)voidonInfo(String coreVariable)voidonRunSkipped(String coreVariable)voidonResult(String coreVariable)voidonResult(AnylineImage sdkImage, String coreVariable)voiddispose()PluginTypegetType()voidaddReportingValues(String jsonReportingValues)booleanisFaceDetectionEnabled()-
-
Constructor Detail
-
ScanPlugin
ScanPlugin(JSONObject jsonConfig)
-
ScanPlugin
ScanPlugin(JSONObject jsonConfig, AssetContext assetContext)
-
ScanPlugin
ScanPlugin(PluginConfig pluginConfig, AssetContext assetContext)
-
-
Method Detail
-
getImageProvider
ImageProvider getImageProvider()
-
setImageProvider
void setImageProvider(ImageProvider imageProvider)
-
getScanPluginConfig
PluginConfig getScanPluginConfig()
-
start
void start()
-
pause
void pause()
-
resume
void resume()
-
stop
void stop()
-
isStarted
boolean isStarted()
-
isRunning
boolean isRunning()
-
processImage
void processImage(AnylineImage anylineImage)
-
processImage
void processImage(AnylineImage anylineImage, boolean sync)
-
getRegionOfInterest
ALRect getRegionOfInterest()
-
setRegionOfInterest
void setRegionOfInterest(ALRect alRect)
-
onVisualFeedback
void onVisualFeedback(String coreVariable)
-
onRunSkipped
void onRunSkipped(String coreVariable)
-
onResult
void onResult(AnylineImage sdkImage, String coreVariable)
-
dispose
void dispose()
-
getType
PluginType getType()
-
addReportingValues
void addReportingValues(String jsonReportingValues)
-
isFaceDetectionEnabled
boolean isFaceDetectionEnabled()
-
-
-
-