Skip to content

GarrettJMU/RoadWarrior

Repository files navigation

RoadWarrior

Created by: Garrett Hughes (823446111)
Rhythm Mecwan (819209255)

Description:

The use case for this app is:
As a service professional I can take a picture of a fellow truck so that I can expand my network

Features:

Upload a pic from camera or gallery
Customize text message to be sent
Use Vision ML to find text on image and regex to find the phone number
Use OCR to read said text
REST to slack with the image, message, and phone

Special Instructions to run:

App is restricted to iPhone 8 plus in portrait position
To run you'll need to use a real phone as your simulator, as you can't use the camera on the xcode simulator

Third party Libraries:

Swift OCR -> https://github.com/garnele007/SwiftOCR
NVActivityIndicatorView -> https://github.com/ninjaprox/NVActivityIndicatorView
Alamofire -> https://github.com/Alamofire/Alamofire

Known Issues:

The OCR isn't powerful enough to read the text so it always hits the else block and sends to slack (which is OK as we still retain the data). Given this issue we focused on just sending the image to slack no matter what (so we retain the image). We'll then have an intern read the text, send off the message on a short coded message (we do not have said intern, yet).
I cant put Housecall's private keys for Slack in the app (for obvious reasons) so I created a mock call here that just returns hello world
I'm not sure if it's on my end or on the OCR end but the OCR takes ~15-20s. I put some quick examples here that you can test off of:
We wanted to do one stretch feature (which we chose to be upload from gallery). For whatever reason that keeps crashing on us.

FAILING EXAMPLE: TAKE A PICTURE WITH YOUR PHONE, YOU'LL SEE A LOADING SPINNER AND A FAILURE DIALOG

AN EXAMPLE THAT SHOULD WORK: TAKE A PICTURE WITH YOUR PHONE, YOU'LL SEE A LOADING SPINNER AND A FAILURE DIALOG

You can see in the logs request.results has multiple things from the Vision kit yet OCR picks it up as TJLL

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages