public class WordboxPreviewView
Allows to highlight the words which were recognized by interface GenericTextRecognizer
interface GenericTextRecognizerpublic static io.scanbot.sdk.generictext.ui.WordboxPreviewView.Companion Companion
public WordboxPreviewView(@NotNull
android.content.Context context)
public WordboxPreviewView(@NotNull
android.content.Context context,
@Nullable
android.util.AttributeSet attrs)
public int getFrameWidth()
public void setFrameWidth(int p)
public int getFrameHeight()
public void setFrameHeight(int p)
public int getFrameOrientation()
public void setFrameOrientation(int p)
public void setColor(int strokeColor)
Changes stroke color of the polygon.
strokeColor - color (not resource!) to draw lines with. Alpha channel is supported.public void updateCharacters(@NotNull
java.util.List<io.scanbot.sdk.generictext.GenericTextWordBox> list)
Sets the list of words to highlight
list - of wordsprotected void onDraw(@Nullable
android.graphics.Canvas canvas)
public void setUiZoomLevel(float zoomLevel)