zdavatz / AmiKo-iOS

AmiKo Desitin für iPhone und iPad
https://apps.apple.com/ch/app/amiko-desitin/id687642725
GNU General Public License v3.0
1 stars 2 forks source link

Use iOS 13 OCR API #102

Closed zdavatz closed 4 years ago

zdavatz commented 5 years ago

1 https://medium.com/atomic-robot/optical-text-recognition-in-ios-13-b25f5453c045 2 https://developer.apple.com/documentation/vision/locating_and_displaying_recognized_text_on_a_document 3 https://developer.apple.com/videos/play/wwdc2019/234 4 https://developer.apple.com/documentation/vision/vnrecognizetextrequest?language=objc

Try to show the text live like on Android with the Squares or better.

zdavatz commented 5 years ago

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

zdavatz commented 5 years ago

testflight_feedback_21.10.2019_14.30.zip

zdavatz commented 5 years ago
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)
zdavatz commented 5 years ago
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)
zdavatz commented 5 years ago
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)
zdavatz commented 5 years ago

What happens if we disable Metal?

zdavatz commented 5 years ago

https://developer.apple.com/documentation/metal/frame_capture_debugging_tools/enabling_frame_capture?language=objc

zdavatz commented 4 years ago
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)
zdavatz commented 4 years ago

https://stackoverflow.com/questions/52460670/ios12-is-causing-an-error-on-metal-command-buffer-execution-render-is-glitchy-o

zdavatz commented 4 years ago

please see: https://developer.apple.com/documentation/vision/recognizing_objects_in_live_capture?language=objc