B4A Library Barcode reader based on Google Play Services Vision

Status
Not open for further replies.

Gandalf

Member
Licensed User
New version was uploaded. The detected rectangle is drawn.

I've locked the orientation to landscape to make it simpler.
If I set the orientation to portrait, detected rectangle gets incorrect coordinates. Can you please give me a hint how to fix it?
 

figorra

Member
Licensed User
Start with this:
B4X:
If 100%x < 100%y Then
                   r.Initialize(100%x - br.GetField("y"),tl.GetField("x") , 100%x - tl.GetField("y"),  br.GetField("x"))
                   Log(r)
               Else
                   'landscape
                   r.Initialize(tl.GetField("x"), tl.GetField("y"), br.GetField("x"), br.GetField("y"))
               End If
Where?
 
Status
Not open for further replies.
Top