Anyline / anyline-ocr-examples-ios

Example configurations of the Anyline OCR SDK.
https://anyline.com
Other
49 stars 12 forks source link

Positions of flash-alignment #7

Closed Rikco closed 4 years ago

Rikco commented 5 years ago

Dear Anyline-Team,

the flash-alignment is not working. Top-Right e.g. looks like that with plugins for GermanIDFront and MRZ.

Device iPhone 6S Plus, iOS 12.2

Regards, Enrico

IMG_0994 IMG_0993

melaniamuir commented 5 years ago

Hi Enrico,

Sorry for the late response.

In the flash button configuration:

Here is the original line of code to set the location: scanView.flashButtonConfig?.flashAlignment = .bottomRight Instead, please use this code: scanView.flashButtonConfig = ALFlashButtonConfig.init(flashMode: .manual, flashAlignment: .bottomRight, flashOffset: .zero)

You may have to play a bit with the flashOffset, because the button may disappear off the screen when positioned at the very bottom: scanView.flashButtonConfig = ALFlashButtonConfig.init(flashMode: .manual, flashAlignment: .bottomRight, flashOffset: CGPoint(x: 0, y: -100))

Please let us know if the issue persists to assist you further.

Thanks, Melania

philippAnyline commented 4 years ago

Hi Enrico,

We had a small internal flash rework. Could you please try if this issue persists for you?

Please open another issue if this is still an issue for you.

Thanks and regards, Philipp