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

Codes is showing invalid #117

Open
ghost opened this issue Jun 22, 2018 · 2 comments
Open

Codes is showing invalid #117

ghost opened this issue Jun 22, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 22, 2018

I tried generate a bunch of different barcodes with different format and strings, and i cross check the code and type with the following website. I encountered some issues:

Code39 WIKIPEDID
https://barcode.tec-it.com/en/Code39?data=*WIKIPEDID*

let isValid = RSUnifiedCodeValidator.shared.isValid("WIKIPEDID", machineReadableCodeObjectType: AVMetadataObject.ObjectType.code39.rawValue)
returned false. Is it because of the asterisk* sign? Is there anyway to include the * sign as part of the code?

EAN13 123456789015
https://barcode.tec-it.com/en/EAN13?data=123456789015

For this code, isValid return false.

Also, is it possible to display wording under the code like so: ?
download

@yeahdongcn
Copy link
Owner

yeahdongcn commented Jun 25, 2018

Code39 *WIKIPEDID* - Yes, the initiator and terminator of code39 is the asterisk (*). You can also see https://barcode.tec-it.com/en/Code39?data=*WIKIPEDID* , the generated barcode trims the asterisk (*).

EAN13 123456789015 - The length of contents is 12 (EAN13 - needs to be 13)

Is it possible to display wording under the code like so - Yes, you can simply add a label under the image view.

@huangmaoyixxx
Copy link

have same issue, EAN13 just have 12 length, put InputCorrectionLevel.Low, but still not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants