zdavatz/AmiKo-iOS

Use iOS 13 OCR API

zdavatz opened this issue · 10 comments

Automatically detect and quit the preview when there is good data. Show the rectangles around the text.

2019-10-21 14:42:59.715076+0200 AmiKoDesitin[22656:9872171] gestureRecognizers:1 (
    "<SWDirectionPanGestureRecognizer: 0x14dd05f60; baseClass = UIPanGestureRecognizer; state = Possible; view = <UIView 0x14ff7d6c0>; target= <(action=_handleRevealGesture:, target=<SWRevealViewController 0x14e048400>)>>"
)
2019-10-21 14:43:00.110874+0200 AmiKoDesitin[22656:9872430] Metal API Validation Enabled
2019-10-21 14:43:01.125131+0200 AmiKoDesitin[22656:9872430] Line 261, VN box: 9, accepted: 2, sorted 2 good boxes instead of 3
2019-10-21 14:43:11.459089+0200 AmiKoDesitin[22656:9872571] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (IOAF code 2)
2019-10-21 14:43:11.459371+0200 AmiKoDesitin[22656:9872571] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (IOAF code 2)
command buffer was aborted due to an error during execution. Caused GPU Timeout Error (IOAF code 2)
2019-10-21 14:45:50.749241+0200 AmiKoDesitin[22656:9875261] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (IOAF code 2)
2019-10-21 14:45:51.161175+0200 AmiKoDesitin[22656:9872571] Line 592, not enough elements in first line: <(
    "Vers.-Nr. 70829165"
)>
2019-10-21 14:45:51.161227+0200 AmiKoDesitin[22656:9872571] Line 302, OCR failed validation
2019-10-21 14:46:01.217046+0200 AmiKoDesitin[22656:9875441] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (IOAF code 2)
2019-10-21 14:46:01.217437+0200 AmiKoDesitin[22656:9875441] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (IOAF code 2)
2019-10-21 15:03:31.849506+0200 AmiKoDesitin[22734:9887993] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (IOAF code 2)
2019-10-21 15:03:31.849852+0200 AmiKoDesitin[22734:9887993] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (IOAF code 2)
2019-10-21 15:03:38.377528+0200 AmiKoDesitin[22734:9887761] Line 261, VN box: 2, accepted: 1, sorted 1 good boxes instead of 3
2019-10-21 15:03:38.530398+0200 AmiKoDesitin[22734:9887761] Line 592, not enough elements in first line: <(
    "3.16"
)>
2019-10-21 15:03:38.530451+0200 AmiKoDesitin[22734:9887761] Line 302, OCR failed validation
2019-10-21 15:03:48.587891+0200 AmiKoDesitin[22734:9887993] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (IOAF code 2)
2019-10-21 15:03:48.588252+0200 AmiKoDesitin[22734:9887993] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (IOAF code 2)
2019-10-21 15:04:07.667201+0200 AmiKoDesitin[22734:9888837] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (IOAF code 2)
2019-10-21 15:04:07.667523+0200 AmiKoDesitin[22734:9888837] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (IOAF code 2)

What happens if we disable Metal?

2019-10-22 10:55:41.878815+0200 AmiKoDesitin[431:41210] Execution of the command buffer was aborted due to an error during execution. Discarded (victim of GPU error/recovery) (IOAF code 5)