The Business Card Parser contains the necessary functionality to parse and represent the output of an OCR Business Card Reader. Two classes are contained, one that will represent the model of the contact info parsed from the business card, including: Name, Phone Number, and Email Address. The other class contains the necessary methods to parse each field from the string of business card text.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$USER" = root ]; then | |
echo "This script shouldn't be run as root. Aborting." | |
exit 1 | |
fi | |
# to skip any questions from APT | |
export DEBIAN_FRONTEND=noninteractive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from decimal import * | |
MONTHS_IN_A_YEAR = Decimal(12) | |
LOAN_TERM_YEARS = Decimal(30) | |
HOME_PRICE = Decimal(550000) | |
DOWN_PAYMENT = Decimal(50000) | |
INTEREST_RATE = Decimal(.030) | |
OPPORTUNITY_INITIAL_INVESTMENT = Decimal(5000) |