Find Jobs
Hire Freelancers

issue in pdf417 scanning ios swift

$10-30 USD

Closed
Posted over 5 years ago

$10-30 USD

Paid on delivery
I have made simple ios app which recognize pdf417 barcode in swift. I used AVCaptureMetadataOutput . But issue is stringValue of AVMetadataObject is just short string, and rawData is returning different string from android. Please let me know if you have experience with AVMetadataObject in swift. thanks
Project ID: 17592652

About the project

5 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
5 freelancers are bidding on average $34 USD for this job
User Avatar
I believe the encoding you're seeing in the string is a bungled PDF417 encoding. It is omitting some characters, making it impossible to recover your original hex code from that string. After finding a scanner that properly handles the barcode, it turns out the barcode does not match your hex code. It turns out, the raw data does exist in your AVMetadataMachineReadableCodeObject, but it's not available through a public getter. In order to properly interpret the barcode, you'll need a reader that does not interpret the hex code as encoded strings, but as a byte stream. At the very least, you need a reader that will still preserve the 00 - 1F and 80 - 9F ranges. One such reader that I've found is NeoReader. It is entirely possible you've already tried it, but copy-pasting can cause errors with these special code ranges. *For clarity, what you refer to as the encrypted string(attachment), I will refer to as the hex code, to further differentiate from the random-looking string at the end of your post. Hence it will be great if I can get the source code to debug and solve the problem as well. By the way, do you have driver's license enabled in order to capture/read PDF417 data. Works great with a number of different state drivers' licenses. However, I have been able to get it to read any license from the state of Maryland/China. And I can successfully scan PDF417 codes after that.
$55 USD in 7 days
5.0 (95 reviews)
8.8
8.8
User Avatar
Hi, Thanks for providing an opportunity to apply for this job. I am interested to work with you for this project. Looking forward to hear from you and thanks for reading my proposal. Regards, Raju
$30 USD in 1 day
4.8 (42 reviews)
5.6
5.6

About the client

Flag of CHINA
YANJI CITY, China
0.0
0
Member since May 18, 2017

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.