Dim frametext As JavaObject = frameBuildertext.RunMethod("build", Null)
Dim SparseArrayText As JavaObject = textdetector.RunMethod("detect", Array(frametext))
LastPreview = DateTime.Now
Dim MatchesText As Int = SparseArrayText.RunMethod("size", Null)
For i = 0 To MatchesText - 1
Dim TextBlock As JavaObject = SparseArrayText.RunMethod("valueAt", Array(i))
Dim Lines As JavaObject = TextBlock.RunMethod("getComponents", Null)
Dim MatchesLine As Int = Lines.RunMethod("size", Null)
For z = 0 To MatchesLine - 1
Log ("line " & z)
Dim line As JavaObject = Lines.RunMethod("valueAt", Array(z)) ' doesn't work
Next