Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Characters show up that aren't in white list #30

Closed
dxclancy opened this issue Jul 6, 2016 · 0 comments
Closed

Characters show up that aren't in white list #30

dxclancy opened this issue Jul 6, 2016 · 0 comments
Labels

Comments

@dxclancy
Copy link

dxclancy commented Jul 6, 2016

For instance, i whitelist digits only, but still get some letters in string output.

Perhaps there was no confidence of any digit?
[SwiftOCR.SwiftOCRRecognizedBlob(charactersWithConfidence: [("3", 0.500555277), ("7", 0.0274531413)], boundingBox: (6.0, 6.0, 21.0, 29.0)), SwiftOCR.SwiftOCRRecognizedBlob(charactersWithConfidence: [], boundingBox: (29.0, 7.0, 10.0, 27.0)), SwiftOCR.SwiftOCRRecognizedBlob(charactersWithConfidence: [("6", 0.083129324)], boundingBox: (44.0, 5.0, 23.0, 29.0)), SwiftOCR.SwiftOCRRecognizedBlob(charactersWithConfidence: [("2", 0.25452441)], boundingBox: (81.0, 6.0, 20.0, 28.0)), SwiftOCR.SwiftOCRRecognizedBlob(charactersWithConfidence: [("3", 0.500555277), ("7", 0.0274531413)], boundingBox: (105.0, 6.0, 21.0, 29.0)), SwiftOCR.SwiftOCRRecognizedBlob(charactersWithConfidence: [("5", 0.0765574574), ("9", 0.066627048)], boundingBox: (129.0, 6.0, 20.0, 29.0))]
The sting returned was "3IE23" (actual 316235)
Actually looking at the output here, I guess the issue is the confidence is lower than .1, so it still chose the letters?

@NMAC427 NMAC427 closed this as completed in 06be624 Jul 6, 2016
@NMAC427 NMAC427 added the bug label Jul 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants