Closed joptimus closed 1 year ago
@dtarnawsky i think I found the issue but I do not know swift well enough to know. In your plugin.swift for iOS, there is this code to resolve the call
self.detectedText = results.map {[
"topRight": [Double($0.topRight.x), Double($0.topRight.y)] as [Double],
"bottomLeft": [Double($0.bottomLeft.x), Double($0.bottomLeft.y)] as [Double],
"bottomRight": [Double($0.bottomRight.x), Double($0.bottomRight.y)] as [Double],
"text": $0.topCandidates(1).first?.string as String?
]}
It looks like topLeft is missing from this
@dtarnawsky Created a pull request that fixes this issue on iOS
Describe the bug When using the plugin, the topLeft coordinate does not return from plugin
To Reproduce Steps to reproduce the behavior:
Expected behavior The data should return coords for topLeft, topRight, bottomLeft, bottomRight
Screenshots I created a sample app where I plot the coordinates where the plugin says it found the topLeft, topRight, bottomLeft, bottomRight. In the screenshots you can see that topLeft never comes.
Desktop (please complete the following information):
Smartphone (please complete the following information): "@angular/common": "^15.0.0", "@ionic/angular": "7.3.0", "@ionic/cli": "^7.1.1", "@capacitor-community/image-to-text": "^5.0.1"
Additional context
Based on sample app, here is the console.log data